Get reader state command – MagTek MagneSafe V5 User Manual

Page 76

Advertising
background image

MagneSafe V5

68

behavior is intended to discourage denial of service attacks. Exiting the
Authenticated Mode by timeout or card swipe always increments the
KSN, exiting Authenticated Mode by the Deactivate Authenticated Mode
command may increment the KSN.


Data structure:

Request Data:

Offset

Field Name

Description

0

Response to
Challenge 2

Seven bytes of Challenge 2 plus one byte of
Increment flag as outlined above, encrypted by the
specified variant of the current DUKPT Key

Response Data: None


Result codes:

0x00 Success

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

0x03 Bad Data – the encrypted reply data could not be verified

0x07 Sequence – not expecting this command


Example Deactivate Authenticated Mode Request (Hex):

Cmd Num

Data Len

Data

12

08

8579827521573495


Example Deactivate Authenticated Mode Response (Hex):

Result Code Data Len

Data

00

00


Get Reader State Command

Command Number: 0x14
Description:

This command is used to get the current state of the reader. The state is
returned as two bytes that represent the Current State of the reader and
how it got to that state (Antecedent). For more information see

Reader

States

.

Advertising