Report descriptor, Card data – MagTek P-SERIES USB User Manual

Page 21

Advertising
background image

Section 4. USB Communications (HID)

13

REPORT DESCRIPTOR

The HID report descriptor is structured as follows:

Item

Value(Hex)

Usage Page (Magnetic Stripe Reader)

06 00 FF

Usage (Decoding reader device)

09 01

Collection (Application)

A1 01

Logical Minimum (0)

15 00

Logical Maximum (255)

26 FF 00

Report Size (8)

75 08

Usage (Track 1 decode status)

09 20

Usage (Track 2 decode status)

09 21

Usage (Track 3 decode status)

09 22

Usage (Track 1 data length)

09 28

Usage (Track 2 data length)

09 29

Usage (Track 3 data length)

09 2A

Usage (Card encode type)

09 38

Report Count (7)

95 07

Input (Data, Variable, Absolute, Bit Field)

81 02

Usage (Track 1 data)

09 30

Report Count (110)

95 6E

Input (Data, Variable, Absolute, Buffered Bytes)

82 02 01

Usage (Track 2 data)

09 31

Report Count (110)

95 6E

Input (Data, Variable, Absolute, Buffered Bytes)

82 02 01

Usage (Track 3 data)

09 32

Report Count (110)

95 6E

Input (Data, Variable, Absolute, Buffered Bytes)

82 02 01

Usage (Card Status)

09 39

Report Count (1)

95 01

Input (Data, Variable, Absolute, Bit Field)

81 02

Usage (Command message)

09 20

Report Count (24)

95 18

Feature (Data, Variable, Absolute, Buffered
Bytes)

B2 02 01

End Collection

C0


CARD DATA

Card data is only sent to the host on the Interrupt In pipe using an Input Report. The device will
send only one Input Report per card swipe. The MSR direction property, defined later in this
section, determines the direction of the card swipe that will generate an Input Report. This
property can be set to insert, withdrawal or both. If the host requests data from the device when
no data is available, the device will send a Nak to the host to indicate that it has nothing to send.
When a card is swiped, the Input Report will be sent even if the data is not decodable. The
following table shows how the input report is structured.

Advertising