ondryaso / pi-rc522

Raspberry Pi Python library for SPI RFID RC522 module
MIT License
417 stars 149 forks source link

Port to SpiDev #18

Closed AndiCui closed 7 years ago

AndiCui commented 8 years ago

It’s maybe good to use SPIDEV instead of SPI-Py. See https://github.com/mxgxw/MFRC522-python/issues/31 As long as I am aware of (I am not a pro), SpiDev is more popular than SPI-Py. It doesn’t make much sense in my setup to run two different SPI lib, since it may cause compatibility issues.

LudwigKnuepfer commented 7 years ago

I tried and succeeded. Will probably open a PR soon ;)

LudwigKnuepfer commented 7 years ago

Not sure of the root cause of https://github.com/mxgxw/MFRC522-python/issues/21 yet, but I had the same problem (reader stops registering new cards after some time). Leaving a card on the reader over night (2 second reading interval) resulted in continuous reads throughout. Next test is seeing if cards still register after a prolonged period of no activity.

LudwigKnuepfer commented 7 years ago

Nice, the driver seems to work robustly with spidev. A couple hours of inactivity did not result in an unresponsive device anymore.