Re: electronic id card reader visual basic

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

The methods will differ. This is completely controlled by the card reader.

If the connection is by serial port (or Virtual Serial port, via USB), then you would use System.IO.Ports.SerialPort, and the documentation from the card reader manufacturer to decode the actual data received. However, it is possible that the device uses a HID USB connection, and then you would have to wrap the USB APIs (for which Visual Studio does have a class). Decoding the data still would depend on information from the manufacturer. Some manufacturers might provide APIs via a library (either .NET or COM) that you would call.

***

--
Richard Grier (Microsoft MVP - Visual Basic) Hard & Software 12962 West Louisiana Avenue Lakewood, CO 80228 303-986-2179 (voice) Homepage: www.hardandsoftware.net Author of Visual Basic Programmer's Guide to Serial Communications, 4th Edition ISBN 1-890422-28-2 (391 pages) published July 2004, Revised July 2006.

.


Quantcast