Unable to read from CCID USB reader

2009-05-17 Thread Mario Pavlov
Hi,
I just got a CCID USB reader with my digital signature...unfortunately I can't 
make it work
I installed pcsc-lite and libccid from ports...
when I plug-in the reader I can see this:

ugen0:  on 
uhub4

then I do this:

# pcscd -d -f
 pcscdaemon.c:267:main() pcscd set to foreground with debug send to 
stderr
0427 pcscdaemon.c:505:main() pcsc-lite 1.5.1 daemon ready.
00196162 hotplug_libusb.c:477:HPAddHotPluggable() Adding USB device: 
/dev/usb4:/dev/ugen0
0043 readerfactory.c:1083:RFInitializeReader() Attempting startup of ACS 
ACR 38U-CCID 00 00 using 
/usr/local/lib/pcsc/drivers//ifd-ccid.bundle/Contents/FreeBSD/libccid.so
0207 readerfactory.c:950:RFBindFunctions() Loading IFD Handler 3.0
0036 ifdhandler.c:1377:init_driver() Driver version: 1.3.9
0285 ifdhandler.c:1390:init_driver() LogLevel: 0x0003
0218 ifdhandler.c:1410:init_driver() DriverOptions: 0x
0008 ifdhandler.c:81:IFDHCreateChannelByName() lun: 0, device: 
usb:072f/90cc:libusb:/dev/usb4:/dev/ugen0
00054635 ccid_usb.c:238:OpenUSBByName() Manufacturer: Ludovic Rousseau 
(ludovic.rouss...@free.fr)
0243 ccid_usb.c:248:OpenUSBByName() ProductString: Generic CCID driver
0212 ccid_usb.c:254: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.
00033042 ccid_usb.c:410:OpenUSBByName() Found Vendor/Product: 072F/90CC (ACS 
ACR 38U-CCID)
0529 ccid_usb.c:412:OpenUSBByName() Using USB bus/device: 
/dev/usb4//dev/ugen0
2242 ccid_usb.c:782:get_data_rates() IFD does not support GET_DATA_RATES 
request: Unknown error: 0
05104167 ccid_usb.c:491:WriteUSB() usb_bulk_write(/dev/usb4//dev/ugen0): 
Operation timed out
05104154 ccid_usb.c:491:WriteUSB() usb_bulk_write(/dev/usb4//dev/ugen0): 
Operation timed out
05103197 ccid_usb.c:491:WriteUSB() usb_bulk_write(/dev/usb4//dev/ugen0): 
Operation timed out
0025 ifdhandler.c:122:IFDHCreateChannelByName() failed
0058 readerfactory.c:1122:RFInitializeReader() Open Port 20 Failed 
(usb:072f/90cc:libusb:/dev/usb4)
0013 readerfactory.c:995:RFUnloadReader() Unloading reader driver.
0065 readerfactory.c:249:RFAddReader() ACS ACR 38U-CCID init failed.

apparently there is something wrong...looks like the ccid driver is trying to 
write to the USB device ? As far as I know you can't write to the reader, right 
? And why is ccid trying to write at all ? I just plug-in the reader and start 
pcscd...
Could you help me guys, I just need to use my digital signature with firefox...
thank you

Regards
MGP

P.S.
# uname -a
FreeBSD home.mydomain.org 7.2-STABLE FreeBSD 7.2-STABLE #5: Sat May 16 08:00:31 
EEST 2009 myu...@home.mydomain.org:/usr/obj/usr/src/sys/Ss-STABLE  amd64

and ports from yesterday
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Unable to read from CCID USB reader

2009-05-18 Thread Hans Petter Selasky
On Sunday 17 May 2009, Mario Pavlov wrote:
> Hi,
> I just got a CCID USB reader with my digital signature...unfortunately I
> can't make it work I installed pcsc-lite and libccid from ports...
> when I plug-in the reader I can see this:
>
> ugen0:  on
> uhub4
>
> then I do this:
>

Is the problem the same on -current?

--HPS
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Unable to read from CCID USB reader

2009-05-18 Thread Hans Petter Selasky
On Monday 18 May 2009, Mario Pavlov wrote:
> Hi,
> no I haven't tried it on CURRENT
> should I do that ?
> is there something new in the USB stuff there ?

There is a new USB stack in 8-current and a new libusb which is installed as a 
part of the base system.

--HPS
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Unable to read from CCID USB reader

2009-05-20 Thread Hans Petter Selasky
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 0020 ifdwrapper.c:469:IFDStatusICC() Card not transacted:
> 612
> 0010 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 0021
> ifdwrapper.c:469:IFDStatusICC() Card not transacted: 612
> 0010 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 0016
> ifdwrapper.c:469:IFDStatusICC() Card not transacted: 612
> 0010 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
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Re: Unable to read from CCID USB reader

2009-05-18 Thread Mario Pavlov
Hi,
no I haven't tried it on CURRENT
should I do that ?
is there something new in the USB stuff there ?
thank you

regards,
mgp

 >On Sunday 17 May 2009, Mario Pavlov wrote:
 >> Hi,
 >> I just got a CCID USB reader with my digital signature...unfortunately I
 >> can't make it work I installed pcsc-lite and libccid from ports...
 >> when I plug-in the reader I can see this:
 >>
 >> ugen0:  on
 >> uhub4
 >>
 >> then I do this:
 >>
 >
 >Is the problem the same on -current?
 >
 >--HPS
 >___
 >freebsd-curr...@freebsd.org mailing list
 >http://lists.freebsd.org/mailman/listinfo/freebsd-current
 >To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
 >
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Re: Unable to read from CCID USB reader

2009-05-19 Thread Mario Pavlov
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
0020 ifdwrapper.c:469:IFDStatusICC() Card not transacted: 612
0010 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
0021 ifdwrapper.c:469:IFDStatusICC() Card not transacted: 612
0010 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
0016 ifdwrapper.c:469:IFDStatusICC() Card not transacted: 612
0010 eventhandler.c:333:EHStatusHandlerThread() Error communicating to: ACS 
ACR 38U-CCID 00 00
...
...
...

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 ?

thanks

regards,
mgp



 >On Monday 18 May 2009, Mario Pavlov wrote:
 >> Hi,
 >> no I haven't tried it on CURRENT
 >> should I do that ?
 >> is there something new in the USB stuff there ?
 >
 >There is a new USB stack in 8-current and a new libusb which is installed as 
 >a 
 >part of the base system.
 >
 >--HPS
 >
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"