Device_serial_num property, Sequence_counter property – MagTek USB MagnePrint Swipe Reader with Encryption User Manual

Page 49

Advertising
background image

Section 4. USB Communications

41

DEVICE_SERIAL_NUM PROPERTY

Property ID:

32 (0x20)

Property Type:

String

Length:

0 – 15 bytes

Get Property:

Yes

Set Property:

Yes

Default Value:

The default value is no string with a length of zero.

Description:

The value is an ASCII string that represents the device serial number. This
string can be 0 – 15 bytes long. The value of this property, if any, will be sent
to the host in the device serial number field of the USB input report when a
card is swiped. This is explained in the card data section of this document.

This property is stored in non-volatile memory, so it will persist when the unit
is power cycled. When this property is changed, the unit must be reset (see
Command Number 2) or power cycled to have these changes take effect. This
device must be unplugged for at least 30 seconds to properly power cycle it.


Example Set DEVICE_SERIAL_NUM property Request (Hex):

Cmd Num

Data Len

Prp ID

Prp Value

01

04

20

31 32 33


Example Set DEVICE_SERIAL_NUM property Response (Hex):

Result Code Data Len

Data

00 00


Example Get DEVICE_SERIAL_NUM property Request (Hex):

Cmd Num

Data Len

Prp ID

00 01

20

Example Get DEVICE_SERIAL_NUM property Response (Hex):

Result Code Data Len

Prp Value

00

03

31 32 33


SEQUENCE_COUNTER PROPERTY

Property ID:

33 (0x21)

Property Type:

Double Word

Length: 4

bytes

Get Property:

Yes

Set Property:

No

Default Value:

0

Description:

This 4 byte field contains the sequence counter. The sequence counter is in
little endian byte order. Byte 1 is the least significant byte. The sequence
counter is incremented by one every time a card is swiped. The sequence
number can not be reset.

This property is stored in non-volatile memory, so it will persist when the unit
is power cycled.

Advertising