SPRINGCARD SAS PRNHSP01 用户手册
PMD2271-BA
page 32 of 118
S
PRING
C
ARD
PC/SC C
OUPLERS
- H663
GROUP
- Developer's reference manual
3.3. S
PRING
C
ARD
-
SPECIFIC
INSTRUCTIONS
FOR
THE
CONTACTLESS
SLOT
3.3.1.
MIFARE CLASSIC READ instruction
The MIFARE CLASSIC READ instruction retrieves data from a Mifare Classic PICC (e.g. Mifare 1K or
Mifare 4K, or Mifare Plus in level 1).
The difference with READ BINARY lies in the authentication scheme:
The difference with READ BINARY lies in the authentication scheme:
With the READ BINARY instruction, authentication must be performed before, using the
GENERAL AUTHENTICATE instruction,
GENERAL AUTHENTICATE instruction,
With the MIFARE CLASSIC READ instruction, the authentication is performed automatically
by the H663, trying every keys one after the other, until one succeed.
This “automatic” authentication makes MIFARE CLASSIC READ instruction an interesting helper to
read Mifare data easily.
read Mifare data easily.
Do not invoke this function if the currently activated PICC is not a Mifare Classic!
a.
MIFARE CLASSIC READ using coupler’s keys
In this mode, the application doesn't specify anything. The H663 tries every keys he knows (both
permanent keys in E2PROM and temporary keys previously loaded in volatile memory – use LOAD
KEY to do so) until one succeeds.
KEY to do so) until one succeeds.
Since the coupler must try all the keys, this method may take up to 1000ms. The ordering of the
keys in coupler's memory is very important to speed-up the process: the upper the right key is in
the coupler's memory, the sooner the authentication will succeed.
the coupler's memory, the sooner the authentication will succeed.
Note that the coupler tries all “type A” keys first, and only afterwards all the “type B” keys. This
behaviour has been chosen because in 95% of Mifare applications, the “type A” key is the
behaviour has been chosen because in 95% of Mifare applications, the “type A” key is the
preferred key for reading (where the “type B” key is used for writing).
MIFARE CLASSIC READ command APDU
CLA
INS
P1
P2
Lc
Data In
Le
h
FF
h
F3
h
00
Block Number
-
-
XX
Refer to the READ BINARY command (§ 3.2.4) for response and status words.
SPRINGCARD, the SPRINGCARD logo, PRO ACTIVE and the PRO ACTIVE logo are registered trademarks of PRO ACTIVE SAS.
All other brand names, product names, or trademarks belong to their respective holders.
Information in this document is subject to change without notice. Reproduction without written permission of PRO ACTIVE is forbidden.