NEO 2 Interface Developer’s Guide
Copyright © 2019, International Technologies & Systems Corporation. All rights reserved.
304
8.16.1.
Mifare Authenticate Block (2C-06)
This command allows the terminal to instruct the ViVOpay reader to authenticate the Mifare
Card sector containing the specified block of data. The Key to be used is also specified by the
terminal. This command is applicable only for Mifare Standard/Classic Cards.
This command is not applicable for Mifare Ultralight Cards.
Command Frame
Byte 0-9
Byte 10
Byte 11
Byte 12 Byte 13 Byte 14–Byte 21
Byte 22
Byte 23
Header Tag &
Protocol
Version
Command
Sub-
Command
Data
Length
(MSB)
Data
Length
(LSB)
Data
CRC (MSB)
CRC (LSB)
ViVOtech2\0
2Ch
06h
00h
08h
See Table below
Mifare Authentication Block Data Field
Data Field
Length (bytes)
Description
Block
1
Block Number in the Mifare Card for which the relevant sector must
be authenticated.
Key Type
1
Specifies which type of key to use for authentication. It can have the
following values.
01h: Key A 02h: Key B
Key
6
Value of the Key
For details on these fields, refer to the relevant Mifare Specifications
This command does not actually perform the authentication. It sets the key to be used for
the subsequent authentication. The actual authentication will be performed before the next
read or write operation. If a sector boundary is crossed, the reader will attempt to
authenticate using the key that was established with this command.
After receiving the
Command Frame
, the ViVOpay reader verifies the data and if the data is
valid, it interacts with the Mifare card to authenticate the sector containing the specified block.
If this operation is successful, the ViVOpay reader sends a
Response Frame
with an OK Status.
If the operation fails or the data was invalid, then the reader returns a
Response Frame
with
an appropriate Status.
Response Frame
Byte 0-9
Byte 10
Byte 11
Byte 12
Byte 13
Byte 14
Byte 15
Header Tag &
Protocol Version
Command
Status Code
Data
Length
(MSB)
Data
Length
(LSB)
CRC (MSB)
CRC (LSB)
ViVOtech2\0
2Ch
See
00h
00h
If the card in the field is not a Mifare card, a 0Ch (Sub-command not allowed) will be returned
in the status code.