Device serial number, Sequence counter, Card data (kb) – MagTek USB MagnePrint Swipe Reader with Encryption User Manual

Page 30

Advertising
background image

USB MagnePrint Swipe Reader with Encryption

22


Device Serial Number

This sixteen byte field contains the device serial number. The device serial number is a NUL
(zero) terminated string. So the maximum length of the device serial number, not including the
null terminator, is 15 bytes. This device serial number can also be retrieved and set with the
device serial number property explained in the property section of this document. This field is
stored in non-volatile memory, so it will persist when the unit is power cycled.

Sequence Counter

This 8 byte field contains the sequence counter. The sequence counter is in big endian byte
order. Byte 1 is the most significant byte. The first four bytes is the counter value, the last four
is padding for encryption. The sequence counter is incremented by one every time a card is
swiped. The sequence number cannot be reset. This sequence counter can also be retrieved with
the sequence number property explained in the property section of this document. This field is
stored in non-volatile memory, so it will persist when the unit is power cycled.

CARD DATA (KB)

The card data is converted to ASCII and transmitted to the host as if it had been typed on a
keyboard. Any data with ASCII values 0 – 31 or 127 will be transmitted as their equivalent
control code combination. For example a carriage return value 13 (0x0D) will be sent as (^M)
where ^ represents the Ctrl key on the keyboard.

Caution

If another keyboard is connected to the same host as this device and a
key is pressed on the other keyboard while this device is transmitting,
then the data transmitted by this device may get corrupted.


The device’s programmable configuration options affect the format of the card data. During
normal device operation, the device acts like a USB HID keyboard so the host operating system
takes care of all low level communications with the device so that the application developer is
not burdened with these low level details.

All data will be sent in upper case regardless of the state of the caps lock key on the keyboard. If
no data is detected on a track then nothing will be transmitted for that track. If an error is
detected on a track, the ASCII character “E” will be sent in place of the track data to indicate an
error.

The card data format for all programmable configuration options is as follows:

[P18] [P11] [P13][Reader Encryption Status] [Tk1 SS] [Tk1 Encrypted Data] [ES] [LRC]
[P14] [P5] [P13] [Tk2 SS] [Tk2 Encrypted Data] [ES] [LRC] [P14] [P5] [P13] [Tk3 SS]
[Tk3 Encrypted Data] [ES] [LRC] [P14] [P23] [MagnePrint status] [P35]
[Encrypted MagnePrint data] [P35] [Device serial number] [P35]
[Encrypted Sequence counter] [P35] [Masked PAN] [P35] [Cardholder Name] [P35]
[Expiration date] [P35] [DUKPT serial number/counter] [P5] [P12] [P19]

Advertising