acr122u running on beaglebone black wheezy but not on jessie

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

acr122u running on beaglebone black wheezy but not on jessie

toni incog
Hi,

I can't get the acr122U usb running on jessie while with the same kernel I can get it running fine on wheezy. am64 jessie als works fine.

Both do have:
blacklist pn533
blacklist nfc
and

apt-get install libpcsclite1 pcsc-tools pcscd libacsccid1

On wheezy the acsccid driver is used:

0003236 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x072F, PID: 0x2200, path: /dev/bus/usb/001/003
00001422 hotplug_libudev.c:311:HPAddDevice() Adding USB device: ACS ACR122U
00002064 readerfactory.c:941:RFInitializeReader() Attempting startup of ACS ACR122U 00 00 using /usr/lib/pcsc/drivers/ifd-acsccid.bundle/Contents/Linux/libacsccid.so
00007435 readerfactory.c:831

but on jessie not. Probably that's the prob but I don't understand why. Guess I've to build from src but that'sa bit more involved on this box.
Any pointers will be welcomed.


sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu | tee log.txt:

00000000 debuglog.c:292:DebugLogSetLevel() debug level=debug
00001368 debuglog.c:321:DebugLogSetCategory() Debug options: APDU
00001631 configfile.l:283:DBGetReaderListDir() Parsing conf directory: /etc/reader.conf.d
00001054 configfile.l:355:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/libccidtwin
00001026 configfile.l:317:DBGetReaderListDir() Skipping non regular file: .
00000766 configfile.l:317:DBGetReaderListDir() Skipping non regular file: ..
00000696 pcscdaemon.c:569:main() pcsc-lite 1.8.13 daemon ready.
00009103 hotplug_libudev.c:296:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
20171398 hotplug_libudev.c:614:HPEstablishUSBNotifications() USB Device add
00000822 hotplug_libudev.c:296:get_driver() Looking for a driver for VID: 0x072F, PID: 0x2200, path: /dev/bus/usb/001/005
00001466 hotplug_libudev.c:435:HPAddDevice() Adding USB device: ACS ACR122U
00001009 readerfactory.c:1012:RFInitializeReader() Attempting startup of ACS ACR122U 00 00 using /usr/lib/pcsc/drivers/ifd-acsccid.bundle/Contents/Linux/libacsccid.so
00002530 readerfactory.c:897:RFBindFunctions() Loading IFD Handler 3.0
00001189 ifdhandler.c:2330:init_driver() Driver version: 1.0.8
00001851 ifdhandler.c:2343:init_driver() LogLevel: 0x0003
00000863 ifdhandler.c:2353:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F
00001542 ifdhandler.c:2363:init_driver() DriverOptions: 0x00C0
00001576 ifdhandler.c:2390:init_driver() ACR38CardVoltage: 0
00001536 ifdhandler.c:2397:init_driver() ACR38CardType: 0
00000916 ifdhandler.c:94:IFDHCreateChannelByName() lun: 0, device: usb:072f/2200:libudev:0:/dev/bus/usb/001/005
00000740 ccid_usb.c:236:OpenUSBByName() Reader index: 0, Device: usb:072f/2200:libudev:0:/dev/bus/usb/001/005
00000715 ccid_usb.c:338:OpenUSBByName() interface_number: 0
00002258 ccid_usb.c:375:OpenUSBByName() Manufacturer: Advanced Card Systems Ltd.
00001723 ccid_usb.c:385:OpenUSBByName() ProductString: ACS CCID driver
00001574 ccid_usb.c:391:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00052326 ccid_usb.c:485:OpenUSBByName() Checking device: 001/005
00000917 ccid_usb.c:576:OpenUSBByName() Trying to open USB bus/device: 001/005
00000853 ccid_usb.c:652:OpenUSBByName() Found Vendor/Product: 072F/2200 (ACS ACR122U)
00000693 ccid_usb.c:654:OpenUSBByName() Using USB bus/device: 001/005
00000679 -> 000000 63 00 00 00 00 00 00 00 00 00
02001259 ccid_usb.c:1090:ReadUSB() usb_bulk_read(001/005): Resource temporarily unavailable
00000948 -> 000000 63 00 00 00 00 00 01 00 00 00
00001188 <- 000000 81 00 00 00 00 00 01 02 81 00
01000938 -> 000000 65 00 00 00 00 00 02 00 00 00
00001673 <- 000000 81 00 00 00 00 00 02 02 81 00
00000842 ifdhandler.c:220:IFDHCreateChannelByName() dwFeatures: 0x00020040
00000838 ifdhandler.c:221:IFDHCreateChannelByName() wLcdLayout: 0x0000
00000611 ifdhandler.c:222:IFDHCreateChannelByName() bPINSupport: 0x00
00000579 ifdhandler.c:223:IFDHCreateChannelByName() dwMaxCCIDMessageLength: 271
00000579 ifdhandler.c:224:IFDHCreateChannelByName() dwMaxIFSD: 256
00000544 ifdhandler.c:225:IFDHCreateChannelByName() dwDefaultClock: 4000
00000539 ifdhandler.c:226:IFDHCreateChannelByName() dwMaxDataRate: 250000
00000525 ifdhandler.c:227:IFDHCreateChannelByName() bMaxSlotIndex: 0
00000523 ifdhandler.c:228:IFDHCreateChannelByName() bCurrentSlotIndex: 0
00000525 ifdhandler.c:229:IFDHCreateChannelByName() bInterfaceProtocol: 0x00
00000518 ifdhandler.c:230:IFDHCreateChannelByName() bNumEndpoints: 3
00000535 ifdhandler.c:231:IFDHCreateChannelByName() bVoltageSupport: 0x07
00000541 ifdhandler.c:536:IFDHGetCapabilities() tag: 0xFB3, usb:072f/2200:libudev:0:/dev/bus/usb/001/005 (lun: 0)
00000542 readerfactory.c:350:RFAddReader() Using the pcscd polling thread
00000545 ifdhandler.c:2099:IFDHICCPresence() usb:072f/2200:libudev:0:/dev/bus/usb/001/005 (lun: 0)
00000547 ccid_usb.c:1475:InterruptRead() before (0)
00000845 ccid_usb.c:1478:InterruptRead() after (0) (No error)
00000692 NotifySlotChange: 50 03
00000822 ccid_usb.c:1498:InterruptRead() Reader: 001/005
00000554 ccid_usb.c:1516:InterruptRead() Slot 0: 0x00
00000655 -> 000000 65 00 00 00 00 00 03 00 00 00
02001210 ccid_usb.c:1090:ReadUSB() usb_bulk_read(001/005): Resource temporarily unavailable
00001581 ifdwrapper.c:371:IFDStatusICC() Card not transacted: 612
00000039 eventhandler.c:233:EHSpawnEventHandler() Initial Check Failed on ACS ACR122U 00 00
00000017 readerfactory.c:361:RFAddReader() ACS ACR122U init failed.
00000050 readerfactory.c:558:RFRemoveReader() UnrefReader() count was: 1
00000014 readerfactory.c:1063:RFUnInitializeReader() Attempting shutdown of ACS ACR122U 00 00.
00000029 ifdhandler.c:437:IFDHCloseChannel() usb:072f/2200:libudev:0:/dev/bus/usb/001/005 (lun: 0)
00000027 -> 000000 63 00 00 00 00 00 04 00 00 00
00000539 <- 000000 81 00 00 00 00 00 04 02 81 00
00000027 ccid_usb.c:1134:CloseUSB() Closing USB device: 001/005
00000013 ccid_usb.c:1153:CloseUSB() Last slot closed. Release resources
00000151 readerfactory.c:934:RFUnloadReader() Unloading reader driver.
00000281 hotplug_libudev.c:501:HPAddDevice() Failed adding USB device: ACS ACR122U
00000051 readerfactory.c:1012:RFInitializeReader() Attempting startup of ACS ACR122U 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00008071 readerfactory.c:897:RFBindFunctions() Loading IFD Handler 3.0
00001126 ifdhandler.c:1927:init_driver() Driver version: 1.4.18
00003702 ifdhandler.c:1944:init_driver() LogLevel: 0x0003
00000958 ifdhandler.c:1955:init_driver() DriverOptions: 0x0000
00001559 ifdhandler.c:1968:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F
00000767 ifdhandler.c:96:CreateChannelByNameOrChannel() Lun: 0, device: usb:072f/2200:libudev:0:/dev/bus/usb/001/005
00000649 ccid_usb.c:236:OpenUSBByName() Reader index: 0, Device: usb:072f/2200:libudev:0:/dev/bus/usb/001/005
00000696 ccid_usb.c:268:OpenUSBByName() interface_number: 0
00000552 ccid_usb.c:284:OpenUSBByName() Using: /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
00003553 ccid_usb.c:302:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau ([hidden email])
00000894 ccid_usb.c:303:OpenUSBByName() ifdProductString: Generic CCID driver
00000678 ccid_usb.c:304:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00005117 ccid_usb.c:433:OpenUSBByName() Checking device: 1/5
00001207 ccid_usb.c:495:OpenUSBByName() Trying to open USB bus/device: 1/5
00001343 ccid_usb.c:596:OpenUSBByName() Found Vendor/Product: 072F/2200 (ACS ACR122U PICC Interface)
00000828 ccid_usb.c:598:OpenUSBByName() Using USB bus/device: 1/5
00000644 ccid_usb.c:650:OpenUSBByName() bNumDataRatesSupported is 0
00002162 ccid_usb.c:1210:InterruptRead() before (0)
00001662 ccid_usb.c:1254:InterruptRead() after (0) (0)
00000806 NotifySlotChange: 50 02
00000655 -> 000000 65 00 00 00 00 00 00 00 00 00
03001062 ccid_usb.c:798:ReadUSB() read failed (1/5): -7 Resource temporarily unavailable
00000989 -> 000000 65 00 00 00 00 00 01 00 00 00
00048914 <- 000000 81 00 00 00 00 00 01 02 81 00
00000829 ifdhandler.c:375:IFDHGetCapabilities() tag: 0xFB3, usb:072f/2200:libudev:0:/dev/bus/usb/001/005 (lun: 0)
00000676 readerfactory.c:355:RFAddReader() Using the reader polling thread
00000582 ifdhandler.c:1787:IFDHICCPresence() usb:072f/2200:libudev:0:/dev/bus/usb/001/005 (lun: 0)
00000582 -> 000000 65 00 00 00 00 00 02 00 00 00
00001168 <- 000000 81 00 00 00 00 00 02 02 81 00
00000718 ifdhandler.c:1908:IFDHICCPresence() Card absent
00000858 ifdhandler.c:375:IFDHGetCapabilities() tag: 0xFAE, usb:072f/2200:libudev:0:/dev/bus/usb/001/005 (lun: 0)
00000783 ifdhandler.c:463:IFDHGetCapabilities() Reader supports 1 slot(s)
00000743 ifdhandler.c:1787:IFDHICCPresence() usb:072f/2200:libudev:0:/dev/bus/usb/001/005 (lun: 0)
00000639 -> 000000 65 00 00 00 00 00 03 00 00 00
00001304 <- 000000 81 00 00 00 00 00 03 02 81 00
00000751 ifdhandler.c:1908:IFDHICCPresence() Card absent
00000626 ifdhandler.c:1787:IFDHICCPresence() usb:072f/2200:libudev:0:/dev/bus/usb/001/005 (lun: 0)
00000668 -> 000000 65 00 00 00 00 00 04 00 00 00
00001185 <- 000000 81 00 00 00 00 00 04 02 81 00
00000711 ifdhandler.c:1908:IFDHICCPresence() Card absent
00000614 ifdhandler.c:304:IFDHPolling() usb:072f/2200:libudev:0:/dev/bus/usb/001/005 (lun: 0) 600000 ms
00000502 ccid_usb.c:1210:InterruptRead() before (0)
10050957 ccid_usb.c:1254:InterruptRead() after (0) (0)
00000686 NotifySlotChange: 50 03
00000040 ifdhandler.c:1787:IFDHICCPresence() usb:072f/2200:libudev:0:/dev/bus/usb/001/005 (lun: 0)
00000031 -> 000000 65 00 00 00 00 00 05 00 00 00
03000494 ccid_usb.c:798:ReadUSB() read failed (1/5): -7 Resource temporarily unavailable
00000220 ifdwrapper.c:371:IFDStatusICC() Card not transacted: 612
00000087 eventhandler.c:336:EHStatusHandlerThread() Error communicating to: ACS ACR122U 00 00
00000083 ifdhandler.c:304:IFDHPolling() usb:072f/2200:libudev:0:/dev/bus/usb/001/005 (lun: 0) 600000 ms
00000070 ccid_usb.c:1210:InterruptRead() before (0)
04900808 ccid_usb.c:1254:InterruptRead() after (0) (0)
00000248 NotifySlotChange: 50 02
00000096 ifdhandler.c:1787:IFDHICCPresence() usb:072f/2200:libudev:0:/dev/bus/usb/001/005 (lun: 0)
00000089 -> 000000 65 00 00 00 00 00 06 00 00 00
03000482 ccid_usb.c:798:ReadUSB() read failed (1/5): -7 Resource temporarily unavailable
00000214 ifdwrapper.c:371:IFDStatusICC() Card not transacted: 612
00000086 eventhandler.c:336:EHStatusHandlerThread() Error communicating to: ACS ACR122U 00 00
00000082 ifdhandler.c:304:IFDHPolling() usb:072f/2200:libudev:0:/dev/bus/usb/001/005 (lun: 0) 600000 ms
00000072 ccid_usb.c:1210:InterruptRead() before (0)




_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: acr122u running on beaglebone black wheezy but not on jessie

Ludovic Rousseau
2016-04-01 18:56 GMT+02:00 toni incog <[hidden email]>:
Hi,

Hello,
 

I can't get the acr122U usb running on jessie while with the same kernel I can get it running fine on wheezy. am64 jessie als works fine.

Both do have:
blacklist pn533
blacklist nfc
and

apt-get install libpcsclite1 pcsc-tools pcscd libacsccid1

On wheezy the acsccid driver is used:

0003236 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x072F, PID: 0x2200, path: /dev/bus/usb/001/003
00001422 hotplug_libudev.c:311:HPAddDevice() Adding USB device: ACS ACR122U
00002064 readerfactory.c:941:RFInitializeReader() Attempting startup of ACS ACR122U 00 00 using /usr/lib/pcsc/drivers/ifd-acsccid.bundle/Contents/Linux/libacsccid.so
00007435 readerfactory.c:831

but on jessie not. Probably that's the prob but I don't understand why. Guess I've to build from src but that'sa bit more involved on this box.
Any pointers will be welcomed.

From your log you are using the driver  ifd-acsccid.bundle. I guess that is the ACS driver.

Why do you write that you do not use the ACS driver on Jessie?
What driver are you using on Jessie?

Bye

--
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: acr122u running on beaglebone black wheezy but not on jessie

toni incog
In reply to this post by toni incog


> >From your log you are using the driver  ifd-acsccid.bundle. I guess that is
> the ACS driver.
>
> Why do you write that you do not use the ACS driver on Jessie?
> What driver are you using on Jessie?
>
> Bye
>

Copy/pasting in gmail and replying to digests is no fun.

Indeed when I look now (and test it again) at the log I see the acsccid
driver is used first without success. A bit later in the log it switches
to ccid also without any luck. iirc first it didn't use the acs driver
at all, but now I'm not sure any more. Forget it. Too long trying too
much kernels, versions etc.

No idea what is happening. Same board under wheezy working like charm
using libacsccid1.
Anything in the log the can be useful?

thx,
toni

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle