Source code – MagTek MagneSafe V5 User Manual

Page 86

Advertising
background image

MagneSafe V5

78

• To send commands to the reader, 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 in the HID mode, click the Read Cards tab.

• To read cards and view the card data when in the Keyboard Emulation mode, do not use

the demo program. Use a text editor program such as Windows Notepad.


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