-
Notifications
You must be signed in to change notification settings - Fork 34
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
Mifare Init Error #73
Comments
Hi @Keriz, I haven't seen this one before. Are you running the polling example as root? |
Thanks for the quick answer. Yes I am running the polling example as root. |
Is this on a Raspberry Pi or an Orange Pi? I don't see any Armbian builds for Raspberry Pi. Forgive me if that's a stupid question - I'm not familiar with this distro. |
This is on an Orange Pi, sorry for not precising it in my post, as it might be the cause of the problem (but why?) Maybe it is a hardware specific issue? |
@Keriz It's a long time ago but did you find a solution.. I am desperated ! |
@thibww67 @Thunder8Storm Sorry for the late reply. It's a long time ago and I don't remember finding a solution to this. |
@thibww67 I am using a fresh Raspberry Pi OS, downloaded yesterday with their installer / imager for Windows. I tried reinstall two times once with gui once without. Both not working. Which OS did you use? |
@Thunder8Storm I use Raspbian Lite for my application, but I don't know the real problem behind this error so it's complicated.. |
@thibww67 I got it work today with an image of Raspian Jessie. Thank you for your help! |
The error exists in my case on almost every distribution for rpi 4 4ram |
|
Hi, on my Pi 2 this was a GPIO conflict - the NXP driver tries to grab GPIO7, which is already taken for cs1 (chip select 1) in the SPI driver. After switching to single chip select setup, nxppy works without issue. In /boot/config.txt, right after the line 'dtparam=spi=on', add this line: Then, reboot the pi. I have not tried this on a pi4, but I suspect it's same/similar issue. If you're trying to debug, you can use strace with the nxppy sample code (I used the polling code) to see what it's trying to request, and /sys/kernel/debug/gpio has a list of which gpio lines are in use and who is using them. |
Please answer these questions as part of your new issue.
Which version of Python are you using?
Python 2.7
Which OS and version are you running?
Armbian 5.38 Ubuntu 16.04 LTS 3.4.112-sun8i
Is SPI enabled?
Yes
Are you trying to read/write a Mifare Classic card? (This is currently unsupported)
No
Hello,
I followed all the steps on the readme and the installation process was rather smooth (good job on that)!
So I tried the polling example but it seems that I cannot get it to run.
I removed everything and just put the
import nxppy
.It works.
Added the mifare = nxppy.Mifare() line, and here I get an error:
nxppy.InitError: Nxppy:Unknown Error from Undefined Component
I've been reading all the issues and no one seems to solve my problem. I hope there is a solution for this!
The text was updated successfully, but these errors were encountered: