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

ACR 1281-u : Unable to load mifare key #32

Closed
Sukhoimaster opened this issue Oct 16, 2022 · 4 comments
Closed

ACR 1281-u : Unable to load mifare key #32

Sukhoimaster opened this issue Oct 16, 2022 · 4 comments

Comments

@Sukhoimaster
Copy link

Failed while using APDU on ISO 14443-4 A Card ; Mifare load key [0xFF, 0x82, 0x00, 0x20, 0x06] + hex(key)

Platform

  • OS : Linux beaglebone 4.19.94-ti-r42 #1buster SMP PREEMPT Tue Mar 31 19:38:29 UTC 2020 armv7l GNU/

Version

  • Reader driver ; libacsccid1 v1.1.6-1 installed from linux apt package manager
  • Middleware (PC/SC) ; libpcsclite1:armhf v1.8.24-1 installed from linux apt package manager
  • USB Driver ; libusb-1.0-0:armhf v2:1.0.22-2 installed from linux apt package manager
  • python3-pyscard ; 1.9.9-2build1-armhf installed from linux apt package manager

With error ; Failed to transmit with protocol T1. Transaction failed. using the pyscard API
Force using T0_protocol were also FAILED

The failed card ATR ;(3B 89 80 01 D0 05 00 03 00 5E BB 00 00 3B) Fetch via ACS Quickview Tools
Failed Card ATR

Failed process at line 1146 log_acr1281-u_failed.txt

Below is the

Success sample

Using the same environment setup but with different card (Mifare+ SL1_4k)

The success card ATR ; (3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 00 37 00 00 00 00 5C)

mifare+ 4k
Here's the succeed process log ; log_acr1281-u.txt

Another approach

Using another environment setup (latest/stable release) as below ;
-acsccid ; 1.1.8
-pcscd ; 1.9.9
-libusb ; 1.0.26
-pyscard ; 2.0.5

Changes of environment setup has done with proper install & removal/uninstall step.
e.g: apt autoremove , make uninstall , make distclean , configure.

Also getting the same problem with the ISO 14443-4 A Card but SUCCESS with (Mifare+ SL1_4k)

I did also try replace acsccid with ccid `1.5.0' release from @LudovicRousseau

  • since the latest release is now supporting the ACR1281-U
  • Resulting the same as above
@godfreychung
Copy link
Contributor

According to your card ATR (3B 89 80 01 D0 05 00 03 00 5E BB 00 00 3B), it is not a Mifare card. Therefore, the load key command cannot be used.

@Sukhoimaster
Copy link
Author

I was told the card is DESFIRE EV2 loaded with Mifare+ data and configuration,
Any source of getting the supported APDU command.
Since in the ACR1281-u API DOCUMENTATION only explaining very short about ISO 14443-4 A

@godfreychung
Copy link
Contributor

You need to contact NXP for the reference manual.

@Sukhoimaster
Copy link
Author

Okay , Thanks for your time

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