beautypg.com

Command list, Reset device command, Dukpt operation – MagTek iDynamo MagneSafe V5 User Manual

Page 38: Get dukpt ksn and counter command

background image

iDynamo MagneSafe V5 Communication Manual

32

COMMAND LIST

The following commands are used with this reader.

Reset Device Command

Command number:

0x02

Description:

This command resets the reader. It can be used to make previously
changed properties take effect without power cycling the reader.

Note

When the reader begins an Authentication Sequence, the Reset command will not
be honored until after the Authentication Sequence has successfully completed,
the user swipes a card, or the unit is power cycled.


Data structure:

No data is sent with this command

Result codes:

0x00 Success

0x01 Failure


Example Reset Device Request (Hex):

Cmd Num

Data Len

Data

02

00


Example Reset Device 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.


Example Request (Hex):

Cmd Num

Data Len

Data

09

00

none