Set session id command – MagTek MagneSafe V5 User Manual
Page 72
![background image](/manuals/413692/72/background.png)
MagneSafe V5
64
Example Get DUKPT KSN and Counter Request (Hex):
Cmd Num
Data Len
Data
09
00
None
Example Get DUKPT KSN and Counter 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 ocurrs:
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, a 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