Command number, Data length, Data – MagTek iDynamo MagneSafe V5 User Manual
Page 17

Section 2. Communications
11
command is Privileged to prevent a hacker from using this sequence to exhaust DUKPT
keys, thereby rendering the reader unusable.
The privileged commands must be MACed in order to be accepted. If a MAC is required but not
present or incorrect, RC = 07 will be returned.
Command Number
This one-byte field contains the value of the requested command number. The following table
lists all the existing commands.
Value
Command Number
Description
0x00
Get Property
Gets a property from the reader
0x01
Set Property
Sets a property in the reader
0x02
Reset Device
Resets the reader
0x09
Get DUKPT KSN
Reports DUKPT KSN and Counter
0x0A
Set Session ID
Sets the current Session ID
0x10
Activate Authenticated Mode
Starts Activation of Authenticated Mode of
secure operation
0x11
Activation Challenge Reply
Completes the Activation of Authenticated Mode
of secure operation
0x12
Deactivate Authenticated Mode
Deactivates the Authenticated Mode of secure
operation
0x14
Get Reader State
Gets the current state of the reader
0x1C
Get Encryption Counter
Gets the encryption counter
0x30
Bulk Encrypt
Encrypts Bulk Data
0xA0
Read ASIC Control
Enables / disables the Read ASIC
Data Length
This one-byte field contains the length of the valid data contained in the Data field. For
example, a command with one byte of data would send 01 for this byte; a command with 18
bytes of data would send 12 for this byte.
Data
This multi-byte field contains command data if any. Note that the maximum length of this field
is fixed at 120 bytes. Valid data should be placed in the field starting at offset 2.