8 - Commands
eDynamo| Secure Card Reader Authenticator | Programmer’s Manual (COMMANDS)
Page 80 of 245 (
D998200115-17
)
8.3.10
Command 0x15 - Get / Set Security Level (MAC)
This command is used to set or get the the device’s current Security Level (see section
). The host can use this to raise the Security Level, but can not lower it.
When using this command to set the device’s security level, the host should include the specified data in
the request, and the device will not return an explicit response. When using this command to get the
device’s current security level, the host should include no data, and the device will return a response.
Table 8-17 - Request Data for Command 0x15 - Get / Set Security Level (MAC)
Offset Field Name
Description
0
Security Level
Optional: if present must be either
0x03
or
0x04
. If absent, this is a query
for the current Security Level.
1
MAC
Four byte MAC to secure the command [see section
]. If the host does not include a value for
Security Level, it should not include the MAC value.
Table 8-18 - Response Data for Command 0x15 - Get / Set Security Level (MAC)
Offset Field Name
Description
0
Security
Level
Only present if there was no Data in the request. This value gives the current
Security Level.
Result codes:
0x00 = Success
0x02 = Bad Parameters. The Data field in the request is not a correct length OR the specified Security
Level is invalid; OR the current Security Level is 4.
0x07 = Incorrect MAC; command not authorized
Example Set Security Level Request (Hex)
Cmd Num
Data Len
Data
15
05
03 xx xx xx xx, where xx xx xx xx is a valid MAC
Example Set Security Level Response (Hex)
Result Code
Data Len
Data
00
00
Example Get Request (Hex)
Cmd Num
Data Len
Data
15
00
Example Get Security Level Response (Hex)
Result Code
Data Len
Data
00
01
03