Integration Manual

ID TECH VP3350 User Manual
Page | 14
Activate Transaction Command Frame Data Format
Data Item
Length (bytes)
Description
Timeout
1
Time in seconds that the reader waits for a card to be presented before
timing out and returning an Error response. The reader will continue to poll
for this amount of time if no card is found.
Note that if a card is found, the transaction may not complete within the
timeout period.
This field must be present in the Activate command.
Format: Binary
TLV Data
varies
See Activate Command TLVs in the NEO 2 IDG.
Response Frame
Byte 0-9
Byte 10
Byte 11
Byte 12
Byte 13
Byte 14 …
Byte 14+n-1
Byte 14+n
Byte 15+n
Header Tag &
Protocol
Version
Command
Status Code
Data
Length
(MSB)
Data
Length
(LSB)
Data
CRC (MSB)
CRC
(LSB)
ViVOtech2\0
02h
See Status
Code Table
See Response
Frame Data
Format
Note: The information above omits many command details, particularly TLV information. See the
NEO 2 Interface Developer’s Guide (available from your ID TECH representative) for the full Activate
Transaction (02-40) description.
7.2. Set CA Public Key (D0-03)
The Set CA Public Key command adds a new key to the reader.
Command Frame
Byte 0-9
Byte 10
Byte 11
Byte 12
Byte 13
Byte 14 18
Byte 19
Bytes
19-n
Byte n+1
Byte n+2
Header Tag &
Protocol Version
Cmd
Sub
Cmd
Length
(MSB)
Length
(LSB)
RID
(5 bytes)
Key Index (1
byte)
Key Data
CRC
(LSB)
CRC
(MSB)
ViVOtech2\0
D0h
03h
varies
varies
varies
varies
See
below
Varies
Varies
Key Data is as follows: (all binary)
Byte
Name
Length
(bytes)
Description
0
Hash Algorithm
1
The only algorithm supported is SHA-1. The value is set to 01h
1
Public Key
Algorithm
1
The encryption algorithm in which this key is used. Currently support
only one type: RSA. The value is set to 01h
3-22
Checksum/Hash
20
Checksum which is calculated using SHA-1 over the following fields:
RID & KeyIndex & Modulus & Exponent
where the exponent is either one byte or 3 bytes (although we store it
in a 4-byte field)
23-26
Public Key
Exponent
4
Actually, the real length of the exponent is either one byte or 3 bytes. It
can have two values: 3, or 65537.
27-28
Modulus Length
2
Indicates the length of the next field, MSB followed by LSB.
29-n
Modulus
Variable
This is the modulus field of the public key. Its length is specified in the
field above.