beautypg.com

Read asic control command – MagTek iDynamo MagneSafe V5 User Manual

Page 45

background image

Section 2. Communications

39

The DUKPT key counter/pointer will be incremented before processing
this command.


Example Request (Encrypt Bulk Data) (Hex):

Cmd Num

Data Len

Data

30

05

01 02 03 04 05


Example Encrypt Bulk Data Response (Hex):


DSN – Device Serial Number, this data field will always be fixed at 16 bytes. If the serial
number is less than 15 bytes, it will be left justified. The 16

th

byte will always be set to NULL.


Cryptogram – Encrypted data, the length of which is always a multiple of 8, this field can be
maximum of 120 characters.

Result codes:

0x00 Success
0x02 Bad Parameters, the Data Len is not supported
0x07 Security Level < 2, MSCI CMUT was incorrect


READ ASIC Control Command

Command number:

0xA0

Description:

This command is used to enable or disable the Read ASIC. Setting S to 0
causes the read ASIC to be in the disabled and low power state. In this
state, the ASIC will not read cards. The S bit must be set to 1 to enable
cards to be read.


Data structure:

Request Data:

Offset

Field Name

Description

0

ASIC Control

This 1-byte field controls the state of the Read ASIC:

0

0

0

0

0

0

0

S

S

0 – Read ASIC disabled.

1 – Read ASIC enabled.

Response Data: None


Result codes:

0x00 Success

0x02 Bad Parameters – the Request Data is not a correct length


Example Read ASIC Control Request (Hex), Enable ASIC:

Result
Code

Data
Len

DSN (16 bytes)

Num Bytes
Encrypted
(1 byte)

KSN
(10 bytes)

Cryptogram
(8 bytes)

MAC
(4 bytes)

00

0x27

32 31 30 34 32 38
31 32
44 30 31 31 31 31
31 00

05

31 32 33
34 35 31
32 33 34
35

01 02 03 04
05 06 07 08

01 02 03
04