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

Mifare Init Error #73

Open
Keriz opened this issue Apr 14, 2018 · 14 comments
Open

Mifare Init Error #73

Keriz opened this issue Apr 14, 2018 · 14 comments

Comments

@Keriz
Copy link

Keriz commented Apr 14, 2018

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!

@svvitale
Copy link
Owner

Hi @Keriz,

I haven't seen this one before. Are you running the polling example as root?

@Keriz
Copy link
Author

Keriz commented Apr 14, 2018

Thanks for the quick answer. Yes I am running the polling example as root.

@svvitale
Copy link
Owner

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.

@Keriz
Copy link
Author

Keriz commented Apr 14, 2018

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?

@thibww67
Copy link

thibww67 commented Aug 24, 2020

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 !

@Thunder8Storm
Copy link

I have the same error on a new installed raspberry 3b. Any ideas to fix this?
Unbenannt

@Keriz
Copy link
Author

Keriz commented Aug 30, 2020

@thibww67 @Thunder8Storm Sorry for the late reply. It's a long time ago and I don't remember finding a solution to this.
Maybe try changing of distribution, or dive into the nxxpy code if you feel capable.

@thibww67
Copy link

I have the same error on a new installed raspberry 3b. Any ideas to fix this?
Unbenannt

For my part, I had this error when I worked on a RPi used for an other application. But when I tried to work on a totally new version, it works. Try to just installed the libraries that you need for nxppy.

@Thunder8Storm
Copy link

@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?

@thibww67
Copy link

@Thunder8Storm I use Raspbian Lite for my application, but I don't know the real problem behind this error so it's complicated..

@Thunder8Storm
Copy link

@thibww67 I got it work today with an image of Raspian Jessie. Thank you for your help!

@incubo4u
Copy link

The error exists in my case on almost every distribution for rpi 4 4ram

@AlexanderLaix
Copy link

The error exists in my case on almost every distribution for rpi 4 4ram
... Almost? Which is working?
I have the same issue I guess #80

@mac2612
Copy link

mac2612 commented Jun 6, 2022

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:
dtoverlay=spi0-1cs

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.

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

7 participants