Comments (6)
Please provide a trace of the execution with:
LIBNFC_LOG_LEVEL=3 mifare_classic_authenticate
I don't have such card so I cannot test myself.
Original comment by [email protected]
on 20 Dec 2013 at 3:58
from libfreefare.
debug libnfc.chip.pn53x InDataExchange
debug libnfc.chip.pn53x No timeout
debug libnfc.driver.acr122_usb TX: 6f 14 00 00 00 00 00 00 00 00 ff 00 00 00 0f
d4 40 01 60 04 ff ff ff ff ff ff a0 d9 89 78
debug libnfc.driver.acr122_usb RX: 80 07 00 00 00 00 00 00 81 00 d5 41 00 67 00
90 00
error libnfc.chip.pn53x Buffer size is too short: 1 available(s), 2 needed
Original comment by [email protected]
on 20 Dec 2013 at 5:11
from libfreefare.
For regular Mifare Classic card it's a little bit different:
debug libnfc.chip.pn53x InDataExchange
debug libnfc.chip.pn53x No timeout
debug libnfc.driver.acr122_usb TX: 6f 14 00 00 00 00 00 00 00 00 ff 00 00 00 0f
d4 40 01 60 04 ff ff ff ff ff ff e7 38 a1 4a
debug libnfc.driver.acr122_usb RX: 80 05 00 00 00 00 00 00 81 00 d5 41 00 90 00
so I guess second byte of RX is a length of response that probably was
hardcoded somewhere.
Original comment by [email protected]
on 20 Dec 2013 at 5:49
from libfreefare.
Ok I figured out that this issue is a duplicate of
https://code.google.com/p/libnfc/issues/detail?id=229
I added:
nfc_set_property_bool(pnd, NP_AUTO_ISO14443_4, false)
before calling mifare_classic_connect
and it fixed my problem
Original comment by [email protected]
on 20 Dec 2013 at 8:26
from libfreefare.
As mifare_classic_connect() implies connecting to MIFARE Classic, which is not
a ISO14443-4 card, we maybe could disable NP_AUTO_ISO14443_4 feature in
libfreefare ?
Note: we will need to re-enable it before connection to DESFire.
Original comment by [email protected]
on 20 Dec 2013 at 10:47
- Changed state: Accepted
from libfreefare.
This makes sense to me, yes.
Note that at the moment current examples mifare-classic-format etc are also
buggy.
Original comment by [email protected]
on 20 Dec 2013 at 11:31
from libfreefare.
Related Issues (20)
- ARM issue desfire_crc32 wrong direction HOT 3
- Unknown key version - card locked after desfire test HOT 1
- Support for NTAG 424, DESFire Lite, and some limited DESFire EV2 HOT 13
- Why doesn't it support mifare plus? HOT 2
- MIFARE DESFire EV2 fails some unit tests HOT 1
- Cut a 1.0.0 release HOT 6
- Create a 0.4.x branch HOT 4
- Wiki, Website and Forum not available HOT 2
- libnfc.driver.acr122_usb: Command Code verification failed when calling mifare_classic_write() HOT 1
- Wrong implementation for CRC padding in mifare_cryto_postprocess_data
- Specs for setting encrypted transfer modes with DESFire tags HOT 2
- PCSC detection for PN532 board via SPI
- mifare_desfire_get_key_settings() discards encryption type bits HOT 5
- Failure to compile HOT 1
- Just some explanation needed HOT 1
- Why freefare_get_tags() not detect smartphone NFC?
- QUESTION: libfreefare portable to non-android system
- unable to dump application 0x9011f2
- DESFire key diversification - problem with random UID
- JCOB CARD EV3 8k Issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libfreefare.