Hey all:

This is my first post in these forums and by the looks of the other posts on the forum, everyone seems to get their problems fixed very quickly.

Anyways, to the problem I am having. I have a TI S2000 RFID reader and I am taking the data from that reader and transmitting it serially to the computer. My overall goal is to take the data coming in and compare it to another value that would be stored in the VB code itself, which would then do something else.

First, a description of the data. The data coming into the computer is a 12 byte hexadecimal string (ie. 01 09 0C 96 38 F0 07 00 00 00 00 5C). This string goes into the computer and we use this code to get it into the VB program:
Code:
Private Sub cmdRun_Click()
Do
dummy = DoEvents()
Loop Until MSComm1.InBufferCount >= 12
Value = MSComm1.Input
Text1.Text = Value
Timer1.Enabled = True
End Sub

Private Sub Option2_Click()
MSComm1.PortOpen = True
End Sub

Private Sub Timer1_Timer()
cmdRun_Click
End Sub
When we use this code and it outputs to a textbox, we get jibberish characters. Pretty sure it is because a lot of those HEX characters can't be represented with simple ASCII.

We are using the MSComm component. We are interested in using the OnComm feature, but we really have no idea how to approach the problem.

Any help would be greatly appreciated.

Thanks in advance.

--Colin