Source code – MagTek USB INSERTION READER User Manual

Page 68

Advertising
background image

USB Insertion Reader

60

• To send commands to the device, click the Send Commands tab (if not already selected).

• Enter a command in the Message edit box. All data entered should be in hexadecimal bytes

with a space between each byte. Enter the command number followed by the command data
if there is any. The application will automatically calculate and send the command data
length for you
if the Auto Add Length box is checked. For example, to send the GET
PROPERTY command for property SOFTWARE ID enter 00 00.

• Press Enter or click Send Msg to send the command and receive the result.

• The command request and the command result will be displayed in the Communications

Dialog edit box.

• The Clear Dialog button clears the Communication Dialog edit box.

• To read cards and view the card data when, click the Read Cards tab and swipe a card.

SOURCE CODE

Source code is included with the demo program. It can be used as a guide for application
development. It is described in detail, with comments, to assist developers. The book USB
Complete
by Jan Axelson is also a good guide for application developers, especially the chapter
on Human Interface Device Host Applications (see “Reference Documents” in Section 1).

Advertising