2 - Connection Types
eDynamo| Secure Card Reader Authenticator | Programmer’s Manual (COMMANDS)
Page 25 of 245 (D998200115-17)
2.1.3 How to Receive Data On the USB Connection (HID Only)
When the device communicates with the host as a vendor-defined HID device, it sends unsolicited
messages such as card data to the host via one or more Input Reports, which are asynchronous data
packets (i.e., events) sent from the device to the host using the USB Interrupt IN pipe. Events occur
when the device state changes or when an asynchronous command (such as a command that requires
cardholder interaction) has completed.
Devices that do not support “Extended Notifications” (a specific way of sending asynchronous data to the
host, see section 1.5 About Device Features) implement a single input report for Magnetic Stripe Card
Data Sent from Device to Host (MSR Only | Keypad Entry Only). Because these devices only
implement one input report, the input report they send to the host does not include a report identifier, in
accordance with the USB HID specification. The host can locate a specific data element in the input
report by finding the corresponding Usage and interpreting its contents as binary data. For example, upon
receiving an input report, the host software can find Track 1 Decode Status (HID | TLV | GATT |
SLIP) as follows:
1) Knowing from section 2.1.1 that the device uses usage page 0xFF00, and knowing from the “Where
to Find Value” column in the first table of section 6.2 that the desired data is found in the usage with
Usage ID 0x0020, call the platform’s USB SDK to retrieve the data from usage 0xFF000020 in
the input report.
2) Interpret the single binary data byte from that Usage according to the second table in section 6.2.
Per the USB HID standard, the host polls the device on a regular Polling Interval to see if it has input data
available to send. If the device does not, it responds to the poll with a USB NAK.
(Extended Notifications Only)
The remainder of this section provides important information about compatibility between
host software designed for other MagneSafe V5 devices and this device.
Devices that support Notification Messages Sent from Device to Host (Extended Notifications Only)
implement a HID input report specifically for sending notification message packets. Because the USB
HID specification requires any device with more than one report of the same type to use HID report
identifiers, devices that support notification messages include a report identifier with every report:
Magnetic Stripe Card Data Sent from Device to Host uses Input Report ID 1 for card data. The
card data report descriptor is typically included even if the device does not send card data, to allow
for future flexibility.
Notification Messages Sent from Device to Host (Extended Notifications Only) use Input Report
ID 2 for asynchronous notifications [see section 7].
Host software written for devices that support notification messages must specify these report identifiers
when sending or retrieving reports to communicate with the device. Some pre-existing host software for
Windows may expect to see report identifier zero, which the platform APIs may send when report IDs are
not in use; this may need to change for compatibility with devices that use Extended Notifications.
The host can determine the size of notification message packet Input Reports by looking at the HID report
descriptor. Notification message packet reports are generally 63 bytes long. If a notification message
can’t fit into one packet, the device sends multiple packets, each containing the notification message
packet format in Table 7-2 and partial notification message data.