Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 2009 09:10:01 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        Mario Pavlov <freebsd@abv.bg>
Cc:        freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-questions@freebsd.org, freebsd-usb@freebsd.org
Subject:   Re: Unable to read from CCID USB reader
Message-ID:  <200905200910.03093.hselasky@c2i.net>
In-Reply-To: <438704678.26539.1242769700629.JavaMail.apache@mail53.abv.bg>
References:  <438704678.26539.1242769700629.JavaMail.apache@mail53.abv.bg>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 19 May 2009, Mario Pavlov wrote:
> Hi,
> I tired CURRENT and it's working for me :)
> I only have one small issue...
> when I unplug the reader pcscd goes to some sort of infinite loop
> it would print this forever:
>
> 48111939 ccid_usb.c:491:WriteUSB() usb_bulk_write(/dev/usb//dev/ugen4.2):
> Device busy 00000020 ifdwrapper.c:469:IFDStatusICC() Card not transacted:
> 612
> 00000010 eventhandler.c:333:EHStatusHandlerThread() Error communicating to:
> ACS ACR 38U-CCID 00 00 00402930 ccid_usb.c:491:WriteUSB()
> usb_bulk_write(/dev/usb//dev/ugen4.2): Device not configured 00000021
> ifdwrapper.c:469:IFDStatusICC() Card not transacted: 612
> 00000010 eventhandler.c:333:EHStatusHandlerThread() Error communicating to:
> ACS ACR 38U-CCID 00 00 00402953 ccid_usb.c:491:WriteUSB()
> usb_bulk_write(/dev/usb//dev/ugen4.2): Device not configured 00000016
> ifdwrapper.c:469:IFDStatusICC() Card not transacted: 612
> 00000010 eventhandler.c:333:EHStatusHandlerThread() Error communicating to:
> ACS ACR 38U-CCID 00 00 ...

Maybe a bug in the pcsc driver.

> ...
> ...
>
> firefox does almost the same thing:
>
> [opensc-pkcs11] reader-pcsc.c:1015:pcsc_detect_readers: returning with: No
> readers found [opensc-pkcs11] reader-pcsc.c:906:pcsc_detect_readers:
> SCardEstablishContext failed: 0x8010001d [opensc-pkcs11]
> reader-pcsc.c:1015:pcsc_detect_readers: returning with: No readers found
> [opensc-pkcs11] reader-pcsc.c:906:pcsc_detect_readers:
> SCardEstablishContext failed: 0x8010001d [opensc-pkcs11]
> reader-pcsc.c:1015:pcsc_detect_readers: returning with: No readers found
> ...
> ...
> ...
>
> I guess this is not FreeBSD's fault, is it ?

If the usb device /dev/usb/xxx for your device is not accessible to firefox 
then firefox can't open it.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905200910.03093.hselasky>