Save custom keymap command (kb), Dukpt operation, Get dukpt ksn and counter command – MagTek MagneSafe V5 User Manual

Page 71

Advertising
background image

Section 2. Communications

63


Save Custom Keymap Command (KB)

Command number:

0x05

Description:

This command is used to save the active key map as the custom key map
in non volatile memory. The active key map is determined by the active
key map property. Once a key map item is modified, the changes take
affect immediately. However, the changes will be lost if the reader is reset
or power cycled. To make the changes permanent, the save custom key
map command must be issued. To use the new custom key map after a
reset or power cycle, the active key map property must be set to custom.


Data structure:

Request Data: None
Response Data: None


Result codes:

0x00 Success

0x07 Incorrect MAC – Command not authorized


Example Save Custom Keymap Request (Hex):

Cmd Num

Data Len

Data

05

00


Example Save Custom Keymap Response (Hex):

Result Code Data Len

Data

00

00


DUKPT Operation

Since key loading is proprietary and performed at MagTek, there are no user commands to
support key injection.

Get DUKPT KSN and Counter Command

Command number:

0x09

Description:

This command is used to report the Key Serial Number and Encryption
Counter.


Data structure: No data is sent with this command.

Response Data:

Offset

Field Name

Description

0

Current Key
Serial Number

This eighty-bit field includes the Initial Key Serial
Number in the leftmost 59 bits and a value for the
Encryption Counter in the rightmost 21 bits.


Result codes:

0x00 Success
0x02 Bad Parameter – The Request Data is not the correct length. The

request command contains no data, so the Data Length must be 0.

Advertising