eclipse / upm

UPM is a high level repository that provides software drivers for a wide variety of commonly used sensors and actuators. These software drivers interact with the underlying hardware platform through calls to MRAA APIs.
MIT License
661 stars 410 forks source link

PN532 -> systematic Not ready, timeout #695

Open Franklin62120 opened 4 years ago

Franklin62120 commented 4 years ago

Hi !!

I'm trying the pn532.py example : https://github.com/eclipse/upm/blob/master/examples/python/pn532.py

I've just changed line 31 myNFC = upmPn532.PN532(3, 2) to this one to match Respeaker specifications (https://github.com/respeaker/mraa/blob/master/docs/axolotl.md ) myNFC = upmPn532.PN532(0, 0, 0, 0x24)

But got systematically this error :

respeaker@v2:~$ python3 pn532.py
sendCommandCheckAck: Not ready, timeout
Could not identify PN532
Exiting

I'm using a Respeaker Core V2 : http://wiki.seeedstudio.com/ReSpeaker_Core_v2.0/#hardware-overview and this NFC card : http://wiki.seeedstudio.com/Grove_NFC/#grove-nfc-v11

I tried with LibNfc, got no problem to read a tag. What could be the error when using UPM lib ?