PN532 connected with raspberry SPI don't working

#1

Hi community
I have installed the PN532 node for manage RFID reader.. all hardware connection seems correct, no error on log but the node don't working, when I deploy the node go in "Stopped" state with red icon.

someone can help me.. what / how I can check?

Thankyou in advance
MArco

0 Likes

#2

Assuming you mean node-red-contrib-pn532 did you install the pre-requisites as mentioned in the readme?
If you did then in a terminal run

node-red-stop
node-red-start

and post the output here. You can copy from the terminal using Ctrl+Shift+C.

0 Likes

#3

Yes I'm working with node-red-contrib-pn532
Yes I installed the pre-requisites as mentioned in the PN532 documentation: RPi.GPIO and spidev.
when I was starting the node-red (with node-red-start) no any error appeared..
but I'm working on troubleshooting and i tryed to install also the libnfc (sudo apt-get install libnfc-dev) IMHO needed.
now when I start Nodered I have this log:

21 Feb 16:47:12 - [info] Starting flows
21 Feb 16:47:12 - [info] Started flows
21 Feb 16:47:12 - [info] Server now running at http://127.0.0.1:1880/
<Buffer 45 52 52 4f 52 3a 20 55 6e 61 62 6c 65 20 74 6f 20 6f 70 65 6e 20 4e 46 43 20 64 65 76 69 63 65 2e 0a>
21 Feb 16:47:12 - [warn] Card Error - ERROR: Unable to open NFC device.

in the red-node UI now the node is green "waiting for card" but the reader don't running...

if I try to run (in terminal) the c code (/home/pi/node_modules/node-red-contrib-pn532/PN532/PN532) i have this message:

./PN532: line 17: 7788 Segmentation fault $BASEDIR/nfc_scan $@

I have no idea how to solve

0 Likes

#4

You might be better to ask via an issue on the node, if no-one here has experience with it.
Also if you discovered an undocumented dependency then that would be worth feeding back to the author.

0 Likes