Reference Manual
Prox–DU & Prox–SU
www.gemalto.com
DOC118569D Public Use Page 56/145
NN = 00h means: Return full length
of the UID (e.g. for ISO14443-A
single 4 bytes, double 7 bytes, triple
10 bytes, for ISO14443-B 4 bytes
PUPI
Data Serial Number
For ISO14443-A smart cards:
UID0-UID1-UID2-UID3 or
UID0-UID1-UID2-UID3-UID4-UID5-
UID6 or
UID0-UID1-UID2-UID3-UID4-UID5-
UID6-UID7-UID8-UID9
For ISO14443-B smart cards:
PUPI3-PUPI2-PUPI1-PUPI0
The UID is exposed as a string of
the expected length. If the expected
length is greater than the actual
length the rest of the string is filled
with zero-value padding bytes.
No cast must be done over the UID
or parts of it. For example, casting
four bytes of the UID to a 32-bit
Integer is illegal.
The order of the bytes within the
string matches the order of bytes
received from the card during the
anti-collision process.
Consequently,
the first byte received will be at
index zero.
The bit order of the string bytes must
be such that the LSB (MSB)
matches with the LSB (MSB) of the
card-defined UID.
Historical bytes of the ATS
Refer to ISO14443-A standard.
For a MIFARE
®
or ISO14443-B card
that command is not supported.
SW1-SW2 Command execution status
Command executed successfully 90h 00h
Others Refer to the error codes table below
Load Keys command
This command is used to load the MIFARE
®
secret keys into the contactless reader/writer.
Up to 160 keys can be loaded to support all the keys pairs needed for the Mifare 4K cards
(2 keys for each sector):
• 80 keys stored in the reader/writer’s EEPROM
• 80 keys stored in the reader/writer’s RAM
The command is formatted as follows:
CLA INS P1 P2 Lc Data
FFh 82h KS KN KL Key
1 byte 1 byte 1 byte 1 byte 1 byte 6 bytes
If the Load MIFARE
®
key security bit is set to one in the configuration EEPROM, a Transport
secret key should be added to the MIFARE
®
key:
The command is formatted as follows: