Hi everyone...
I have problem here on how to read data from COM Port. Recently i'm working a project on read data from RFID. This device were attached to COM Port. The 1'st i've done is connect to COM port using this code:
However the output is "||||||". Could someone help me on this? If i'm not mistaken the data from COM Port is in HEX format. Is it true? If true...what should i do to convert to text or string. Really need help here.Code:Private Sub MSComm1_OnComm() Dim strInput As String With MSComm1 'test for incoming event Select Case .CommEvent Case comEvReceive 'display incoming event data to displaying textbox strInput = .Input Text1.SelText = strInput End Select End With 'MSComm1 End Sub
Thanks in advances.




Reply With Quote