-
Notifications
You must be signed in to change notification settings - Fork 8
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
Failure with PN532 #3
Comments
Indeed. Looking at your log, it seem a few commands get sent correctly which leads me to think the Adafruit library is working fine with this module as well. However, it fails here, when reading the second page of data from the EF_DH elementary file. It's hard to say what the problem might be since I don't own a CIE nor that module at the present time. My first guess is the NFC module is not able seek into an elementary file but I cannot tell for sure right now. My advice is to use the low-level library from this specific vendor. The cie-PN532 project abstracts all calls to the vendor library by using the cie_Nfc base class, so a new implementation of that class should be made, following the example of the cie_Nfc_Adafruit specialized class. In the meantime, try commenting out line #61 in the cie-ReadAll.ino sketch which will exclude reads from the EF_DH elementary file, and run it again to see whether subsequent reads work or not. |
Thank you for the quick answer! I tried commenting line 61 and this is what I get:
(I stripped the output of EF_ID_Servizi as this is a real card) |
Ok, thanks. I'll do some testing as soon as I get my own CIE and see if this is reproducible on the Adafruit module as well. I've just learned it has become available in my Common. |
I'm not aware of any difference (maybe @fottavi is?) but I'll try to test with a fake card myself. |
Hello. The specimen card contain test certificates from a test Certification Authority, but for the rest they are equal by all means to real ones. |
I tested with a specimen card and I confirm I get the same errors as above, so the issue seems related to the hardware I'm using. Since it's a pretty common alternative to the Adafruit module (and it's also quite cheaper and, last but not least, it has a smaller form factor) it would be nice to support it! |
I did some further investigation. Then I tried to raise both What do you think, @BrightSoul? A few more thoughts:
|
(By the way, congratulations for the code quality of CIE-PN532. It's nicely written) |
I tried using this library with one of the popular red PN532 modules.
It didn't work. Was this library tested only with the Adafruit module?
This is the serial output using the ReadAll example (with
cie.verbose = true
):The text was updated successfully, but these errors were encountered: