Section 4. usb communications, Hid usages – MagTek USB MagnePrint Swipe Reader with Encryption User Manual

Page 21

Advertising
background image

13

SECTION 4. USB COMMUNICATIONS

This device conforms to the USB specification revision 1.1. This device also conforms to the
Human Interface Device (HID) class specification version 1.1. The device communicates to the
host either as a vendor-defined HID device or as a HID Keyboard Emulation device. (Refer to

Interface_Type Property

for information on how to change modes.) The latest versions of the

Windows operating system come with standard Windows USB drivers that will support both
modes.

The device has an adjustable endpoint descriptor polling interval value that can be set to any
value in the range of 1ms to 255ms. This property can be used to speed up or slow down the
card data transfer rate. The device also has an adjustable serial number descriptor. More details
about these properties can be found later in this document in the command section.

The device will go into suspend mode when directed to do so by the host. The device will wake
up from suspend mode when directed to do so by the host. The device does not support remote
wakeup.

This is a full speed USB device. It is powered from the USB bus. The vendor ID is 0x0801.
The product ID is 0x000E when in the HID mode and 0x0001 when in the Keyboard Emulation
mode.

Since there are two modes of operation, there are some properties and commands that are
exclusive to one of the two modes. Where a property or command is unique, it will be identified
with either HID or KB. Properties and commands that are common to both modes do not
include any modifier.

HID USAGES

HID devices send data in reports. Elements of data in a report are identified by unique identifiers
called usages. The structure of the device’s reports and the device’s capabilities are reported to
the host in a report descriptor. The host usually gets the report descriptor only once, right after
the device is plugged in. The report descriptor usages identify the devices capabilities and report
structures. For example, a device could be identified as a keyboard by analyzing the device’s
report descriptor. Usages are four byte integers. The most significant two bytes are called the
usage page and the least significant two bytes are called usage IDs. Usages that are related can
share a common usage page. Usages can be standardized or they can be vendor defined.
Standardized usages such as usages for mice and keyboards can be found in the HID Usage
Tables document and can be downloaded free at

www.usb.org

. Vendor-defined usages must

have a usage page in the range 0xFF00 – 0xFFFF. All usages for this device use vendor-defined
magnetic stripe reader usage page 0xFF00. The usage IDs for this device are defined in the
following tables. The usage types are also listed. These usage types are defined in the HID
Usage Tables document.

Advertising