marcus905 / libnfc

Automatically exported from code.google.com/p/libnfc
GNU Lesser General Public License v3.0
0 stars 0 forks source link

'Too small reply' with ACR122U using nfc-poll #224

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. just Compiled version 1.7.0-rc2
2. using NFC Reader ACR122U-WB-R from ACS
3. using nfc-poll or self-written programm with poll function

What is the expected output? What do you see instead?
expected: polling of targets
what i see:
NFC reader: ACS / ACR122U PICC Interface opened
NFC device will poll during 30000 ms (20 pollings of 300 ms for 5 modulations)
error   libnfc.driver.acr122_usb    Too small reply
nfc_initiator_poll_target: Input / Output Error

What version of the product are you using? On what operating system?
1.7.0-rc2, LUbuntu 12.10

Original issue reported on code.google.com by peter.bu...@gmail.com on 31 Jan 2013 at 9:16

GoogleCodeExporter commented 9 years ago
Fixed yesterday :-)

A new RC3 is upcomming...

Original comment by romu...@libnfc.org on 31 Jan 2013 at 3:31

GoogleCodeExporter commented 9 years ago
still the same error with new RC4 Version:

sudo nfc-poll 
nfc-poll uses libnfc libnfc-1.7.0-rc4
NFC reader: ACS / ACR122U PICC Interface opened
NFC device will poll during 30000 ms (20 pollings of 300 ms for 5 modulations)
error   libnfc.driver.acr122_usb    Too small reply
nfc_initiator_poll_target: Input / Output Error

Original comment by peter.bu...@gmail.com on 7 Feb 2013 at 11:35

GoogleCodeExporter commented 9 years ago
I merged it with issue 217 which is re-opened.
See my recommendations in the other issue:
Please use only one of the two acr122 drivers, either acr122_usb (preferred) or 
acr122_pcsc.
If you use acr122_usb and have sometimes errors, better to stop pcscd or to 
remove acr122 from libccid detection list to avoid any conflict.

Please report your results and a full log trace if possible in the other issue, 
thanks!

Original comment by yob...@gmail.com on 7 Feb 2013 at 11:42

GoogleCodeExporter commented 9 years ago
the other issue was now closed, but my problem is still there. can we re-open 
this issue to get a fix of my problem?

Original comment by peter.bu...@gmail.com on 15 Feb 2013 at 8:19

GoogleCodeExporter commented 9 years ago
cf comment #14 in issue 217  by romuald:

I think its possible to do some work to enable ACR122 polling in libnfc, but 
that's not a few minutes question...
I think this need to hack polling method to cut polling in 4 seconds long 
passes... Patches are welcome.

Original comment by yob...@gmail.com on 16 Feb 2013 at 1:44

GoogleCodeExporter commented 9 years ago
Please keep in mind that ACR122U is not a good device to be used with libnfc...

The front MCU prevents libnfc from using whole functions available on PN532 
chip.

Original comment by romu...@libnfc.org on 16 Feb 2013 at 1:48

GoogleCodeExporter commented 9 years ago
hi, i have the same problem here:

StarK shm # nfc-list 
nfc-list uses libnfc libnfc-1.7.0-rc6-55-gdd20946
error   libnfc.driver.acr122_usb    Too small reply
nfc-list: ERROR: Unable to open NFC device: acr122_usb:004:002

and it's make the device make "beeps" while an nfc card is on it.

i use app-misc/acsccid-1.0.4 (from gentoo ~amd64 tree) (so i dont know how to 
remove acr122 from the detection list) , should i remove it totaly ?

Original comment by hisoka2501 on 11 Mar 2013 at 4:25

GoogleCodeExporter commented 9 years ago
For me, my touchatag reader stopped working with the "Too small reply" since 
git e49eb6c6600448f18f8bdcd0f59da85f04a3aa7f
I also bisected the svn archive, it breaks for me since svn 1328

Original comment by bert...@gmail.com on 26 Apr 2013 at 10:51

GoogleCodeExporter commented 9 years ago
On closer inspection, the problem with my reader is that it is recognized 
internally in the acr122_usb as an acr122, based on the USB vendor/product id. 
Once I force it to recognize as a touchatag (with a different escaping 
mechanism to communicate with the pn532), the reader works.

Original comment by bert...@gmail.com on 13 May 2013 at 2:15

GoogleCodeExporter commented 9 years ago
Please check latest commit as a few changes have been made.

With my devices all I get now is at rare occasions a failure at initialization 
and an automatic retry, which gives when opening the device:

error   libnfc.driver.acr122_usb    PN532 didn't reply
error   libnfc.driver.acr122_usb    PN532 init failed, trying again...
NFC reader: ACS / ACR122U PICC Interface opened

This happens very rarely, both for ACR122U and for Touchatag.
What's your experience?
Thanks for your feedback.

Original comment by yob...@gmail.com on 14 Jun 2013 at 11:07

GoogleCodeExporter commented 9 years ago
The acr122_usb now works for me with current git (as of 2013-6-15), thanks!

Original comment by bert...@gmail.com on 15 Jun 2013 at 11:07

GoogleCodeExporter commented 9 years ago
Thanks for the feedback.
I will close this bugreport.
Maybe some people will still get problems but anyways the faulty behavior will 
be quite different so better to open a new bugreport if needed.

Original comment by yob...@gmail.com on 15 Jun 2013 at 10:27