Track 1 data, Track 2 data, Track 3 data – MagTek USB INSERTION READER User Manual
Page 26: Card status, Commands

USB Insertion Reader
18
TRACK 1 DATA
This field contains the decoded track data for track 1.
TRACK 2 DATA
This field contains the decoded track data for track 2.
TRACK 3 DATA
This field contains the decoded track data for track 3.
CARD STATUS
Bits
7-1
0
Value
Reserved
Card Inserted
This is a one-byte value, which indicates the card status. Bit position zero indicates that the card
was swiped in the insertion direction if it is set to one. If it is set to zero, then the card was
swiped in the withdrawal direction. All other bit positions are reserved.
COMMANDS
Most host applications do not need to send commands to the device. Most host applications only
need to obtain card data from the device as described previously in this section. This section of
the manual can be ignored by anyone who does not need to send commands to the device.
Command requests and responses are sent to and received from the device using feature reports.
Command requests are sent to the device using the HID class specific request Set Report. The
response to a command is retrieved from the device using the HID class specific request Get
Report. These requests are sent over the default control pipe. When a command request is sent,
the device will Nak the Status stage of the Set Report request until the command is completed.
This insures that as soon as the Set Report request is completed, the Get Report request can be
sent to get the command response. The usage ID for the command message was shown
previously in the Usage Table.
The following table shows how the feature report is structured for command requests:
Offset
Field Name
0
Command Number
1
Data Length
2 – 23
Data
The following table shows how the feature report is structured for command responses.
Offset
Field Name
0
Result Code
1
Data Length
2 – 23
Data