Getdevicetype, Getencryptionstatus – MagTek Audio Reader for Android Devices User Manual

Page 22

Advertising
background image

16


Return Value

String representing device configuration

getDeviceType

Retrieves device type
-

public int getDeviceType()


Parameters

Return Value

Device type:
MagTekSCRA.DEVICE_TYPE_NONE
MagTekSCRA.DEVICE_TYPE_AUDIO
MagTekSCRA.DEVICE_TYPE_BLUETOOTH

getEncryptionStatus

Retrieves encryption status. This two byte Binary field contains the Encryption Status. The
Reader Encryption Status is sent in big endian byte order. Byte 1 is the least significant byte.
Byte 1 LSB is status bit 0. Byte 2 MSB is status bit 15.
-

public String getEncryptionStatus()


Parameters

Return Value

String representing decryption status as a 2-byte binary field.

Bit 0 = DUKPT Keys exhausted (1=exhausted, 0=keys available)
Bit 1 = Initial DUKPT key Injected, always set to One (Primary DUKPT Key)
Bit 2 = Encryption Enabled, always set to One
Bit 3 = Reserved (always set to zero)
Bit 4 = Reserved (always set to zero)
Bit 5 = Reserved (always set to zero)
Bit 6 = Reserved (always set to zero)
Bit 7 = Reserved (always set to zero)
Bit 8 = Reserved (always set to zero)
Bit 9 = Initial DUKPT key injected (Secondary DUKPT Key)
Bit 10 = DUKPT Key used for encryption, 0=Primary, 1=Secondary
Bit 11 = DUKPT Key Variant used to encrypt data, 0=PIN Variant, 1=Data
Variant/Bidirectional
Bits 12–15 = Unassigned (always set to Zero)

Advertising