Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading serial number on a Card Reader
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01369351
Message ID:
01369400
Views:
21
This message has been marked as the solution to the initial question of the thread.
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform