New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection timed out after first connection to ACR122U-A9 #154
Comments
Meanwhile, I set up a test environment on a Win7 system, with almost identical results: First connection attempt after pluggin the reader in:
On the next run, the NFC reader is unresponsive:
|
ACR122U213 was the latest hardware revision I could test. You have revision 216 and I remember problem reports already for revision 215 (see #105). |
Thank you for the link to #105. I'll check if increasing the timeout works. |
Any update with this issue ? I have the same behavior here and I didn't find any workaround for this problem. Using revision 216. |
Also looking for an update. |
Hi all, I also have the 216 revision. Any update on getting that working? |
Exact same problem here. I'm trying to follow these instructions https://www.hackster.io/mark-hank/sonos-spotify-vinyl-emulator-3be63d but it fails to connect. Is it not possible to get it to work? |
I've now ordered two of these readers: one from Amazon UK and another from AliExpress. It's impossible to tell which revision you'll receive from the product listings and frustratingly both of mine are revision 216 which means I can't currently get them working Anyone had any luck getting revision 216 to work? |
Yes, got my rev 216 work like a charm using pcscd and pyscard |
could you tell us how? |
I started out with https://github.com/BrianHVB/intro-to-smartcard-development#heading--python-example-1 and it really worked out-of-the-box |
I got some of the non-working ones and after some experimentation, I think the timeout is too short in
|
Thanks @Dennovin . I think it's an implementation error that the command exchange time depends on the "turn on for .. seconds" time value. Can you confirm that with the 1 second command timeout other, longer, "turn on" values also work? |
No, using a longer "turn on" value with a 1 second timeout breaks also.
|
Hi guys, For those stuck with this error, I have found a work around. Then, when we have got a read, end your script by using this This uses Windows PnPutil command to restart the ACR122u device, which frees up the device and allows for a new connection. Hope this helps! Note: This was tested with a 216 revision of the ACR122u. |
Dear @Mallon94 thanks for your suggestion, but if I change driver I am then unable to connect to device with nfcpy (under windows 10) I get error when i do clf=nfc.ContactlessFrontend('usb'): it seems I need to stay with winusb driver.. Any idea? thanks! |
@fabiom84 The Errno 19 No such device error is typical of the reader when it hangs unresponsive. If you go into an elevated(run as admin) cmd and run this command, it will clear up the device and allow connection. Hope that helps. |
Dear @Mallon94 how can I run a command as elevated from inside python script? I really have not knowledge in coding, maybe it's a silly question but I do not know how to do it.. thanks Btw your command seems to work if I run cmd as administrator and then run the command. EDIT: the command works only seldom from cmd as administrator...I get it reboot correctly once after 4-5 try..sorry |
I have just purchased a ACR122U-A9 which seems to work perfectly the first time after plugging it in.
Running
python -m nfc
on a raspberry pi with raspbian stretch yields:Afterwards, however, nfcpy seems to not find the reader again:
It is still listed in the usb subsystem, though:
dmesg
does not report anything after the usual device-just-got-plugged-in stuff:Only after pulling the USB plug and plugging the reader back in, it can be used once again before posing the same problem.
I set up a brand new virtual environment with fresh packages for the tests.
Is this a known problem and are there any workarounds? Would updating the distro help?
Thanks for any hints, cheers,
Andy.
The text was updated successfully, but these errors were encountered: