C
T
U
-M
x
x
NETRONIX CTU-Mxx
NETRONIX .
35
5.13.
MAD – Mifare Application Directory
5.13.1.
Card MAD formatting
Command frame:
Header C_FormatMad
Type, Infobyte
CRC
Wherein:
Parameter name
Parameter description
Value range
C_FormatMad
0xA8
Formatting to MAD
0xA8
Type
1 - MAD1 (15 sectors)
2 – MAD2 (30 sectors)
0x01,0x02
Infobyte
Mark in emitent sector (default 0x00)
0x00-0x1F
Response frame:
Header C_Fo1
OperationCode CRC
Notes:
Before you run C_FormatMad command:
•
switch AutoReader mode off (using C_SetAutoReaderConfig command)
•
load the keys (default 0xff,0xff,0xff,0xff,0xff,0xff)
•
turn antenna supply on (using C_TurnOnAntennaPower)
•
select the cart (using C_Select command)
•
login to sector with number 0, using key of AA type
5.13.2.
Adding the application to MAD directory
Command frame:
Header C_AddApplication
LSB, MSB, Sector
CRC
Wherein:
Parameter name
Parameter description
Value range
C_AddApplication
Adding application
0xAA
LSB
LSB of application number
0x00 - 0xFF
MSB
MSB of application number
0x00 - 0xFF
Sector
Number of sector, in which the application is
to be present
0x01-0x0F :MAD1
0x01-0x1F :MAD2
Response frame:
Header C_AddAppl1
OperationCode CRC
Notes:
Application number should be other than 0x0000
Before you run C_AddApplication command:
•
switch AutoReader mode off (using command C_SetAutoReaderConfig)
•
load the keys (default 0xff,0xff,0xff,0xff,0xff,0xff)
•
turn antenna supply on (using C_TurnOnAntennaPower command)
•
select the card (using C_Select command)
•
login to sector with number 0, using key of AA type