Getdeviceserial – MagTek Audio Reader for Android Devices User Manual

Page 14

Advertising
background image

8

This four-byte field contains the MagnePrint status. The MagnePrint status is in little endian
byte order. Byte 1 is the least significant byte. Byte 1 LSB is status bit 0. Byte 4 MSB is status
bit 31. MagnePrint status is defined as follows:

Bit 0

= This is a MagnePrint-capable product (usage M)

Bits 1-15

= Product revision & mode (usage R)

Bit 16

= STATUS-only state (usage S)

Bit 17

= Noise too high or “move me” away from the noise source (used only in

STATUS) (usage N)

Bit 18

= Swipe too slow (usage L)

Bit 19

= Swipe too fast (usage F)

Bit 20

= Unassigned (always set to Zero)

Bit 21

= Actual Card Swipe Direction (0 = Forward, 1 = Reverse) (usage D)

Bits 22-31 = Unassigned (always set to Zero)


If the Enable/Disable MagnePrint property is set to disable MagnePrint, this field will not be
sent.

getDeviceSerial

Get stored device serial number. This 16-byte ASCII 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.

-

public String getDeviceSerial()

Parameters

Return Value

Return stored device serial number.

Advertising