Command number, Data length, Data – MagTek Bluetooth MagneSafe V5 Swipe Reader User Manual
Page 30: Result code

Bluetooth MagneSafe V5 Swipe Reader
22
COMMAND NUMBER
This one-byte field contains the value of the requested command number. The following table
lists all the existing commands:
Value
(Hex)
Command Number
Description
00
Get Property
Gets a property from the reader
01
Set Property
Sets a property in the reader
02
Reset Device
Resets the reader
09
Get DUKPT KSN
Reports DUKPT KSN and Counter
0A
Set Session ID
Sets the current Session ID
10
Activate Authenticated
Mode
Starts Activation of Authenticated Mode of
secure operation
11
Activation Challenge Reply
Command
Completes the Activation of Authenticated Mode
of secure operation
12
Deactivate Authenticated
Mode
Deactivates the Authenticated Mode of secure
operation
13
Reserved
14
Get Reader State
Gets the current state of the reader
15
Set Security Level
Sets or gets the current Security Level
25
Relinquish Interface
Makes reader receptive to commands on either
Bluetooth or USB interface.
28
Power Down MSR
Powers down the MSR circuits (if running on
battery turns reader off).
29
Get Battery Status
Gets Charge Status of battery
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 60 bytes. Valid data should be placed in the field starting at offset 2.
RESULT CODE
This one-byte field contains the value of the result code. There are two types of result codes:
generic result codes and command-specific result codes. Generic result codes always have the
most significant bit set to zero. Generic result codes have the same meaning for all commands
and can be used by any command. Command-specific result codes always have the most
significant bit set to one. Command-specific result codes are defined by the command that uses
them. The same code can have different meanings for different commands. Command-specific
result codes are defined in the documentation for the command that uses them. Generic result
codes are defined in the following table.
Value (Hex)
Result Code
Description
00
Success
The command completed successfully.
01
Failure
The command failed.
02
Bad Parameter
The command failed due to a bad parameter or
command syntax error.
05
Delayed
The request is refused due to anti-hacking mode
07
Invalid Operation
Depends on context of command