Appendix A - Examples
DynaPro Go| Handheld PIN Pad Device with MSR/Contact/Contactless | Programmer’s Manual (COMMANDS)
Page 151 of 247 (
D998200136-31
)
Appendix A
Examples
A.1
How to Get MSR/PIN Data from the Device for a Bank Simulation
This section provides a byte-by-byte example of transmitting commands on various devices using a USB
connection, an 802.11 wireless connection, an Ethernet connection, or an Apple 30-pin connection. All
data shown in this section is in hexadecimal format. 802.11 wireless, Ethernet, and USB connections
require bytes to be transmitted in least significant byte (little endian) order; iOS requires bytes to be
transmitted in most significant byte (big endian) order, so iOS command strings appear as the byte-by-
byte reverse of the others.
1)
Command 0x03 - Request Swipe Card
to the device, which expands to the
following bytes:
a)
0xC0: Ethernet packet header (802.11 Wireless Only | Ethernet only)
b)
0x01: Execute command in Get mode (802.11 Wireless Only | Ethernet Only | 30-Pin Only)
c)
0x03: Command ID (03=
Command 0x03 - Request Swipe Card
d)
0x20: Wait time (0x20=32 seconds)
e)
0x00: Display message ID (00=swipe card/idle)
f)
0x01: Beep prompt tone for card swipe (01=one beep)
g)
0xC0: Ethernet packet terminator (Ethernet Only | 802.11 Wireless Only)
Sample command data of Command 0x03 - Request Swipe Card (Hex)
03 20 00 01
USB format of command
C0 01 03 20 00 01 C0
802.11 wireless and Ethernet format of command
01 03 20 00 01
iOS format of command (Note MSB order)
2)
to the host, which expands to the following
Command 0x03 - Request Swipe Card
had failed (i.e. ACK status not = 00), the device
would not have returned a device state input report to the host:
a)
0xC0: Ethernet packet header (Ethernet Only | 802.11 Wireless Only)
b)
0x02: Response to command (Ethernet Only | 802.11 Wireless Only)
c)
0x01: Report ID (0x01=
d)
Command 0x03 - Request Swipe Card
e)
0x03: Command ID of the command being ACKed (0x03=
f)
0xC0: Ethernet packet terminator (Ethernet Only | 802.11 Wireless Only)
Sample response for Command 0x01 - Response ACK (Hex)
01 00 03
USB format of command
C0 02 01 00 03 C0
802.11 wireless and Ethernet format of command
01 00 03
iOS format of command (Note MSB order)
3)
The device prompts the cardholder to swipe his or her card, and sends