Source code – MagTek P-SERIES USB User Manual

Page 66

Advertising
background image

P-Series USB Insertion Reader

58

• 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, swipe the 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