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

pn532i2c.writeCommand exception occured #3

Open
igoralves98 opened this issue Feb 19, 2016 · 1 comment
Open

pn532i2c.writeCommand exception occured #3

igoralves98 opened this issue Feb 19, 2016 · 1 comment

Comments

@igoralves98
Copy link

Hi,
first of all thanks for sharing this library.

When I run your program, using i2c connection, everything runs ok.

But after a few moments I get the error:

pn532i2c.writeCommand exception occured: Error writing to /dev/i2c-1 at address 0x24 to address 0x24. Got -20001.

Do you know what could be causing this?

@kibukamusoke
Copy link

Sounds like an issue when using Raspberry pi.
There's 3 possibilities I can think of:

  1. Try running the app as root. :)
  2. Your pn532 connection is loose. You could check to make sure the contacts are ok. (You notice this error when you disconnect your pn532 from your rPi.
  3. I2C address Clash. You could have another device on the same I2C connection that is interfering / is sharing the same address.

Hope this helps.

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

2 participants