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

NXP NFC Reader PNEV512R with nxppy not working with Raspberry Pi 4 #80

Open
AlexanderLaix opened this issue Dec 1, 2020 · 0 comments
Open

Comments

@AlexanderLaix
Copy link

Please answer these questions as part of your new issue.

Which version of Python are you using?

Python-3.6

Which OS and version are you running?

Raspbian GNU/Linux 10

Is SPI enabled?

Yes --> and already checked!

Are you trying to read/write a Mifare Classic card? (This is currently unsupported)

Also

Hi,
the NFC card reader PNEV512R (https://www.nxp.com/products/rfid-nfc/nfc-hf/nfc-readers/explore-nfc-exclusive-from-element14:PNEV512R) does not work with my new raspberry pi 4.

Kernel:

Linux AlexPi 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7l GNU/Linux
Release:
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"  
NAME="Raspbian GNU/Linux" VERSION_ID="10" 
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian

For installing the needed software I followed this manual: https://github.com/svvitale/nxppy
Installation was without any fails.
But even the instantiation of Mifare raises an exception.

Python Code:

import nxppy
mifare=nxppy.Mifare()

Exception:

nxppy.InitError: Nxppy: Unknown Error from Undefined Component

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
      File "nfc.py", line 3, in <module>
            mifare=nxppy.Mifare()
    SystemError: <class 'nxppy.Mifare'> returned a result with an error set

The SPI was switched on of course. ^^ And I tested the interface with the loopbacktest: https://elinux.org/RPi_SPI
So SPI is working.
On my Raspbarry Pi 3B+ everything works fine. Now I am looking for a solution to fix this problem.
Do you can help me out here?

Thanks a lot
Alexander

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

1 participant