Set session id command, Activate authenticated mode command – MagTek iDynamo MagneSafe V5 User Manual
Page 39

Section 2. Communications
33
Example Response (Hex):
Result Code Data Len
Data
00
0A
FFFF 9876 5432 10E0 0001
Set Session ID Command
Command number:
0x0A
Description:
This command is used to set the current Session ID. The new Session ID
stays in effect until one of the following occurs:
1. Another Set Session ID command is received.
2. The reader is powered down.
3. The reader is put into Suspend mode.
The Session ID is used by the host to uniquely identify the present
transaction. Its primary purpose is to prevent replays. After a card is read,
the Session ID will be encrypted, along with the card data, and supplied as
part of the transaction message. The clear text version of this will never
be transmitted.
Data structure:
Request Data:
Offset
Field Name
Description
0
New Session ID
This eight byte field may contain any value the
application wishes.
Response Data: None
Result codes:
0x00 Success
0x02 Bad Parameter – The Request Data is not the correct length. The
Session ID is an 8-byte field, so the Data Length must be 8.
Example Set Session ID Request (Hex):
Cmd Num
Data Len
Data
0A
08
54 45 53 54 54 45 53 54
Example Set Session ID Response (Hex):
Result Code Data Len
Data
00
00
Activate Authenticated Mode Command
Command number:
0x10
Description:
This command is used to Activate the Authenticated Mode. Note that this
command provides the only means by which to enter this Mode.
The application specifies a PreAuthentication Time Limit. This is the
maximum number of seconds the reader will wait for the Activation
Challenge Reply Command before timing out. If the supplied value is less
than 120 seconds, the reader will use 120 seconds. If the reader times out
waiting for the Activation Challenge Reply Command, the Authentication
attempt fails and anti-hacking behavior may be invoked.