Read the DIN (driver identification number) from the smart card (driver card)

I would like to know how to get an identification number (driver ID) from a smart card. Card - a driver card used to store tachograph data.

I can already communicate with a smart card reader, but I have no clue on how to read this information.

Looking at the faces of the smart card, it displays a list of entries (I think):

  1. Surname
  2. Name (s)
  3. Date and place of birth
   ...
  5b. Card number

The last one is the information I need: the card number on the record 5b.

I have no experience reading smart cards. I do not know what to do. I assume that I need to send the “select file” APDU command and then read the 5b record, but I don’t know which file or how to format these commands.

There is a rectangle on the map with E1 inside, and 182 under it, I don’t know if this could be a hint of what to read ...

I know that driver cards need authentication to read important data, but I think the card number is something public (although not sure).

Who can help me?

+4
source share
1 answer

I assume that you are referring to a tachograph driver card in accordance with ECC rule No. 3821/85, right?

In this case, the communication flow with the card will be something like this:

  • SELECT

    00 A4 04 0C 06 FF544143484F
    
  • SELECT (xxxx)

    00 A4 02 0C 02 xxxx
    
  • READ BINARY, (zz bytes from offset xxyy)

    00 B0 xx yy zz
    

EF Identification (FID 0520), 16 , 1.

().

+7

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


All Articles