Determine card type from ATR

Is it possible to use ATR to determine if I have a card like ISO14443A or ISO14443B? If so, how?

+4
source share
2 answers

As mictter correctly explained , a true AT R exists for ISO 7816 contact cards. I can follow the argument that the equivalent of ISO 14443 can be ATQA / ATQB, as this is the first answer you get from tags after activation, although I would rather say that equvalent ATR is a combination of ATQA + SAK + ATS (for type A) and a combination of ATQB + ATTRIB response (for type B).

Regarding ATR, as you can see, I assume that it is ATR with PC / SC emulation according to PC / SC specification .

For smart cards (transport protocol ISO 14443-4) this ATR will take the form

3B 8n 80 01 T[1]..T[n] xx

with T[1]to T[n]being

  • ATS historical bytes for ISO 14443 Type A or
  • ATQB (T[1] T[2] T[3] T[4]), ATQB (T[5] T[6] T[7]) MBLI ATTRIB (T[8]).

, , , - A B. n == 8 T[1] T[n] , B. , .

, , . ATR :

3B 8n 80 01 T[1]..T[n] xx

T[1] T[n], ( 4F). T[1] T[n] :

80 4F yy A000000306 ss nnnn 00000000

ss, :

0x01: ISO 14443-1 Type A
0x02: ISO 14443-2 Type A
0x03: ISO 14443-3 Type A
0x05: ISO 14443-1 Type B
0x06: ISO 14443-2 Type B
0x07: ISO 14443-3 Type B

nnnn (. /SC ).

+7

ATR -. ATQ, : ATQ-A ATQ-B ISO14443.

, :

  • REQ-A, REQ-B, , .
  • REQ-A, A; REQ-B, B.

. ISO 14443-3, , A B.

+3

Source: https://habr.com/ru/post/1538830/


All Articles