i'm using the GM board and trying to make a little application with evb. the probleme is that i cant get anything on the port, sometimes a character but not what i 'm supposed to get. Can i use this code ?? Dim nIndex As Integer Dim nType As Integer Dim nBarCodeSize As Integer Dim sText As String On Error Resume Next
nIndex = cmbPort.ListIndex If nIndex > -1 Then nIndex = cmbPort.ItemData(nIndex) End If commCtrl.CommPort = nIndex sText = cmbSpeed.Text commCtrl.Settings = sText & ", N, 8, 1" commCtrl.Handshaking = 2 commCtrl.PortOpen = True If commCtrl.PortOpen = False Then MsgBox "Unable to open COM " & nIndex Exit Sub End If
The eVB Comm control works just fine through eVB. I put together a quick sample showing how to send and receive serial data and posted it at Topic 962. Try testing it with Hyperterminal on your PC.