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-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-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-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-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-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-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: vendor 0x072f CCID USB Reader, class 0/0, rev 1.10/1.00, addr 2 on
 uhub4

 then I do this:


Is the problem the same on -current?

--HPS
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-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-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org