nfcpy / nfcpy

A Python module to read/write NFC tags or communicate with another NFC device.
European Union Public License 1.1
586 stars 147 forks source link

NFC reader disconnect on completion #231

Open WarmWelcome opened 1 year ago

WarmWelcome commented 1 year ago

Using reader acr122u-a9, the reader disconnects after any usage of the examples provided. To use them again, it forces me to replug them. I've attached an image showing the problem. My usage case for nfcpy requires that I have it constantly listening on the reader for tags, and needing to unplug and plug it back in constantly wouldn't do. image

mcilhargey commented 1 year ago

Likely the same issue as https://github.com/nfcpy/nfcpy/issues/154

Bluemanni commented 11 months ago

I had the same issue on Ubuntu desktop. The problem seems to the wakeup of the device after calling power_down in nfc/clf/pn532.py:232. (in the nfc module) Removing this line fixed my problem. However, without power_down, you better remove the reader if you don't need it for a longer period of time. :)