>Hi all,
>
>I am trying to read the serial number from a card reader. I have the MSComm control installed on a form. I am able to read driver's license info from the reader. I am trying to read the device serial number. According to the programming specification, I should be able to do this, but I get nothing back when I send the command. I can tell that I am communicating with the device, because the indicator lights up when I send the command. The programming specification is located at
http://www.e-seek.com/pdf/Serial_Programming.pdf.
>
>Here is the code I am sending to the device.
>Any help will be greatly appreciated.
>
>
>lcString=['SOH'<SERIAL:>'EOT']
>ThisForm.Olecontrol1.output=lcString
>lcx=ThisForm.Olecontrol1.input
>?lcx
>
I'd insert a delay between the output and input commands. A simple INKEY(5) should suffice as a test.
UPDATE: After looking at the PDF, I think you need to supply the command as:
lcString = CHR(1) + "<SERIAL:>" + CHR(4)