Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desfire 4k EV1 reading UID getting 91 1c response #120

Open
RobertRozic opened this issue Nov 19, 2021 · 2 comments
Open

Desfire 4k EV1 reading UID getting 91 1c response #120

RobertRozic opened this issue Nov 19, 2021 · 2 comments

Comments

@RobertRozic
Copy link

RobertRozic commented Nov 19, 2021

Hello,

I am trying to obtain UID of desfire 4K EV1 card using this library.
I am using ACR122U card reader and I installed latest available drivers.

My code is working on Linux but when I rebuild it on Windows I am getting error response after last APDU command.

I am sending 3 APDU commands

  1. 90 60 00 00 00
    I receive correct response ending with 91 AF which means that additional data frame is expected to be sent.

  2. 90 AF 00 00 00
    Where I also receive response ending with 91 AF.

  3. 90 AF 00 00 00
    This is where it fails on windows.
    On Linux I receive response where I can read cards UID (7 first bytes) but on windows I receive 91 1C response.

Did anybody experience same behaviour and managed to fix this issue?

Kind regards

@cyrstron
Copy link

cyrstron commented Jun 11, 2024

I am having the same problem specifically on Windows. For now, it seemed like setTimeout around 400ms after the card connection helps, but that is a very unsettling solution.

@cyrstron
Copy link

So it seems that WIN sends some commands to a card under the hood and breaks the transaction.

I used pcsclite-node with exclusive share_mode and it helped. But it seems that in this wrapper you can't set it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants