Reader broken?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nfcpy |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I have two NFC readers, see https:/
Both are detected on Ubuntu Utopic as:
Bus 003 Device 0xy: ID 072f:2200 Advanced Card Systems, Ltd
Where device number 0xy increases when pluging in the other device. The one on the left isn't working properly. The green LED is blinking when connected. Looking at /var/log/sys the differences are minimal. See for left reader in image
Dec 9 14:33:06 *** kernel: [ 512.430663] usb 3-1: new full-speed USB device number 11 using xhci_hcd
Dec 9 14:33:06 *** kernel: [ 512.562084] usb 3-1: New USB device found, idVendor=072f, idProduct=2200
Dec 9 14:33:06 *** kernel: [ 512.562095] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Dec 9 14:33:06 *** kernel: [ 512.562101] usb 3-1: Product: CCID USB Reader
Dec 9 14:33:06 *** kernel: [ 512.562106] usb 3-1: Manufacturer:
Dec 9 14:33:06 *** mtp-probe: checking bus 3, device 11: "/sys/devices/
Dec 9 14:33:06 *** mtp-probe: bus: 3, device: 11 was not an MTP device
and the right reader:
Dec 9 14:33:46 *** kernel: [ 552.023415] usb 3-1: new full-speed USB device number 12 using xhci_hcd
Dec 9 14:33:46 *** kernel: [ 552.155217] usb 3-1: New USB device found, idVendor=072f, idProduct=2200
Dec 9 14:33:46 *** kernel: [ 552.155227] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Dec 9 14:33:46 *** kernel: [ 552.155233] usb 3-1: Product: ACR122U PICC Interface
Dec 9 14:33:46 *** kernel: [ 552.155238] usb 3-1: Manufacturer: ACS
Dec 9 14:33:46 *** kernel: [ 552.155798] usb 3-1: ep 0x81 - rounding interval to 256 microframes, ep desc says 400 microframes
Dec 9 14:33:46 *** mtp-probe: checking bus 3, device 12: "/sys/devices/
Dec 9 14:33:46 *** mtp-probe: bus: 3, device: 12 was not an MTP device
One can see that Product and Manufacturer and ep 0x81 (?) differs.
Output of the left reader for tagtool.py show is:
nfcpy-0.9.1$ python examples/tagtool.py show
[nfc.clf] searching for reader with path 'usb'
Traceback (most recent call last):
File "examples/
TagTool().run()
File "/home/
while self.run_once() and self.options.loop:
File "/home/
try: clf = nfc.Contactless
File "/home/
if path and not self.open(path):
File "/home/
self.dev = nfc.dev.
File "/home/
device = driver.init(usb)
File "/home/
chipset = Chipset(transport)
File "/home/
log.error("{0} not supported, need 2.xx".format(
UnboundLocalError: local variable 'frame' referenced before assignment
and the right reader is:
nfcpy-0.9.1$ python examples/tagtool.py show
[nfc.clf] searching for reader with path 'usb'
[nfc.clf] using ACS ACR122U PICC Interface at usb:003:012
[main] touch a tag
[nfc.dev] Driver.
Type2Tag ATQ=0200 SAK=18 UID=***
For this I didn't had to add the udev rules or modprobe blacklist to get it working.
Ubuntu Utopic 14.10 had installed:
python 2.7.8-1
libnfc5:amd64 1.7.1-1
python-usb 0.4.3-1
Despite the identical USB vendor and product id these are two quite different devices. The touchatag reader is a USB CCID profile. I remember that I have tried to get it working some time ago, but gave up.
The readers supported by nfcpy are listed here: https:/ /nfcpy. readthedocs. org/en/ latest/ overview. html#supported- hardware.