ocsacesar / rc522

node.js module to access a rfid reader with rc522 chipset which is connected a raspberry pi
21 stars 15 forks source link

rc522 blocks execution of other code #1

Open imtweety opened 8 years ago

imtweety commented 8 years ago

The Demo code does run and it echos the RFIDs on the screen. However when I try to combine it with other functions, it seems to block the other code. Is this supposed to do so? How do I prevent this blocking?

SillOega commented 8 years ago

Did you find a solution for the problem?

ocsacesar commented 8 years ago

Hello, I am sorry, I'll looking a solution this next week and fix this.

imtweety commented 8 years ago

Meanwhile I use rc522-rfid-promise successfuly. Tested on RPI 1 model B and RPI 3 model B. https://www.npmjs.com/package/rc522-rfid-promise Good luck!

SillOega commented 8 years ago

The rc522-promise also works but the problem is that it closes after each read. Yours keep reading and is exactly what i need.

Trying to send a request to an external php file and run the card id through mysql. Works fine alone but when combined with your rc522 module nothing returns :(

Den 2016-04-24 kl. 10:39, skrev imtweety:

Meanwhile I use rc522-rfid-promise successfuly. Tested on RPI 1 model B and RPI 3 model B. https://www.npmjs.com/package/rc522-rfid-promise Good luck!

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/ocsacesar/rc522/issues/1#issuecomment-213916034

ocsacesar commented 8 years ago

Try change the path "rc522/build/Release/rc522" to "rc522". Could you check and inform?

imtweety commented 8 years ago

When using var rc522 = require("rc522"); it works like a charme! Tested on Rasp 3 in conjunction with mysql, onoff and bleno. Thank you very much!