ID TECH SREDKey 2 Integration Manual
Page | 11
7.
General Commands
SREDKey 2 devices use commands from both the NEO 2 and NGA protocols. SREDKey 2 devices
come equipped with the default settings already programmed. See Appendix A for a table of default
settings.
7.1.
IDG Protocol Commands
The following commands use IDG Protocol.
IDG Protocol Command Structure
Command:
<Command head><Command data><Sub command data><Length-H><Length-
L><Data><CRC-L><CRC-H>
Response:
<Command Head><Command data><Status code><Length-H><Length-L><Data><CRC-
L><CRC-H>
Where:
•
Command head is 10 bytes, including ASCII string “ViVOtech2” and 1 byte “0x00.”
•
Command data and Sub command data are all 1 byte.
•
Length-H and Length-L describe the length value of Data.
•
CRC-L and CRC-H is the calculated result data from Command Head to Data by CRC16-CCITT
algorithm.
7.1.1.
Get Firmware Version (29-00)
The
Get Firmware Version
command retrieves the ViVOpay firmware version number from the
SREDKey 2. The SREDKey 2 returns a response frame containing the firmware version information.
Command:
<ViVOtech2\0><81h><0Ch><00h><00h><CRC-L><CRC-H>
Response:
<ViVOtech2\0><81h><00h><Length-H><Length-L><Key status><CRC-L><CRC-H>
7.1.2.
Get Key Status (81-0C)
The
Get Key Status
command retrieves basic key information. Each pair of three bytes represents
one key’s parameters (index and slot).
Command:
<ViVOtech2\0><81h><0Ch><00h><00h><CRC-L><CRC-H>
Response:
<ViVOtech2\0><81h><00h><Length-H><Length-L><Key status><CRC-L><CRC-H>
Where:
•
Key status is multi blocks, to show the key status.
•
Each block contains: 1-byte Key name index, 2-byte key slot.
•
The SREDKey 2 has LCL-KEK(0x14), Data Encryption Key(0x02).