Result code, Get and set property commands, Result codes – MagTek iDynamo MagneSafe V5 User Manual
Page 18

iDynamo MagneSafe V5 Communication Manual
12
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
GET AND SET PROPERTY COMMANDS
The Get Property command gets a property from the reader. The Get Property command
number is 00.
The Set Property command sets a property in the reader. The Set Property command number
is 01. For security purposes, this command is privileged. This commands must be MACed in
order to be accepted.
The Get and Set Property command data fields for the requests and responses are structured as
follows:
Get Property Request Data:
Data Offset
Value
0
Property ID
Get Property Response Data:
Data Offset
Value
0 – n
Property Value
Set Property Request Data:
Data Offset
Value
0
Property ID
1 – n
Property Value
Set Property Response Data:
None
Result Codes
The result codes for the Get and Set Property commands can be any of the codes listed in the
generic result code table.