Git Product home page Git Product logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.