Tachograph company smart card returns "6A88"

487 Views Asked by At

I'm busy creating a server and software to remotely read out the data from a European Tachograph (Digital and smart). Everything so far works great but I have one strange problem.

When a new "remote tacho download" starts. I first request the ATR from the company smart card which I send to the tachograph. He processes it, and requests other stuff from the smart card. Some APDUs go up and down to each other and eventually the process is halted because of an error from the smart card. The error code "6A88" is returned. In other words, referenced data is not found. This always happends (with this tachograph + company card). Below you see the order of all commands:

  1. smartcard: 3BDF960080B1FE451F870031C16408923201738421E0059000C5 (gives atr)
  2. TACHO: 00A4020C020002 (selects some file)
  3. smartcard answer: 9000 (understood, ok)
  4. TACHO: 00B0000009 (read 9 bytes)
  5. smartcard answer: 0001036F1A042104309000 ( the bytes requested)
  6. TACHO: 00A4040C06FF544143484F (select a DF)
  7. smartcard answer: 9000 (understood, ok)
  8. TACHO: 00A4020C020501 (select some EF)
  9. smartcard answer: 9000 (understood, ok)
  10. TACHO: 00B0000001 (read one byte)
  11. smartcard answer: 04 (the byte)
  12. TACHO: 0022C1B60A8308001837DE0214FFA1 (manage the security environment command)
  13. smartcard answer: 6A88 (referenced data not found)

Everything here is automated. As fas as I can tell there are no errors in the communication between a device and the tachograph, or the PCSC software and the smart card. If there where, the first few apdus would have gone wrong anyhow. It always stops at the 12th command from the list above. We are out of ideas...

Anybody has any clue what to do about it?

0

There are 0 best solutions below