ID TECH SREDKey 2 Integration Manual
Page | 13
7.2. NGA Protocol Commands
The following commands follow NGA Protocol.
NGA Protocol Command Structure
<STX><Len-Low><Len-High><Command Body / Response Body / Notification
Body><Command Data><CheckLRC><CheckSUM><ETX>
Where:
• <Len_Low><Len_High>: Length of <Command Body / Response Body / Notification Body>
• <CheckLRC>: LRC of <Command Body / Response Body / Notification Body>
• <CheckSUM>: SUM of <Command Body / Response Body / Notification Body>
• Response Body: <Response Status> + [<Response Data>]
o <Response Status>: Status of the response. 1 byte.
NAK: 0x15
ACK: 0x06
o <Response Data>: Main response string.
If <Response Status> is ACK, several bytes needed.
If <Response Status> is NAK, response data is error codes (2 bytes).
7.2.1. Get Model Number (78 46 20)
The Get Model Number command retrieves the SREDKey 2’s model number.
Command Body: 78 46 20
Response: 06 <Model Number>
Where:
• Model Number is several bytes of ASCII code; for example: “SREDKey2-xxxx.”
• The Model Number must be set before it can be read; see the Set Model Number command.
7.2.2. Get Detailed Firmware Version (78 46 31)
The Get Detailed Firmware Version command retrieves the SREDKey 2’s detailed firmware version.
Command Body: 78 46 31
Response: 06 <TM4 Firmware version information>
The detail firmware version is in X.YY.ZZZ format.
7.2.3. Reboot Device (78 46 CC)
The Reboot Device command immediately reboots the reader.
Command Body: 78 46 CC
Response: 06