Hello everyone,
I'm using JSR80 for the first time.
I was able able to configure my system and everything seems to working fine
as my code is detecting the usb device i'm working with (basically a smart
card reader
"SCM Microsystems SDI010 Smart Card Reader" ).
Here is the device info
T: Bus=01 Lev=01 Prnt=01 Port=02 Cnt=02 Dev#= 6 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs= 1
P: Vendor=04e6 ProdID=5121 Rev= 6.32
S: Manufacturer=SCM Microsystems Inc.
S: Product=SDI010 Smart Card Reader
S: SerialNumber=21120706201272
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=200mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=usbfs
E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=83(I) Atr=03(Int.) MxPS= 16 Ivl=16ms
I have written a UsbPipeListener just to print the error/data event.
Now the problem is when i execute the code as root ,the interface is claimed
successfully
,but nothing happens when i flash a card.Once the execution is stopped the
reader reads
card details and displays it.I got to know this by going through the System
Log of linux(Ubuntu 7.04 & 8.04).
This is the output in sys log when my code is not running(i.e. reading the
card info) :
Feb 24 19:17:04 pcscd: ifdhandler.c:841:IFDHPowerICC() lun: 1, action:
PowerUp
Feb 24 19:17:04 pcscd: eventhandler.c:419:EHStatusHandlerThread() Card
inserted into SCM SDI 010 (21120706201272) 00 01
Feb 24 19:17:04 pcscd: Card ATR: 3B F5 91 00 FF 91 81 71 FE 40 00 41 08 00
00 00 0D
Feb 24 19:17:04 pcscd: eventhandler.c:350:EHStatusHandlerThread() Card
Removed From SCM SDI 010 (21120706201272) 00 00
Feb 24 19:17:14 pcscd: eventhandler.c:350:EHStatusHandlerThread() Card
Removed From SCM SDI 010 (21120706201272) 00 01
and once i run my code below is the result:
Feb 24 19:17:00 *kernel: [ 6835.736000] usb 1-3: usbfs: process 6705 (pcsc**d)
did not claim interface 0 before use*
Feb 24 19:17:02 pcscd: ccid_usb.c:507:ReadUSB() usb_bulk_read(001/005):
Resource temporarily unavailable
Feb 24 19:17:02 pcscd: ifdwrapper.c:493:IFDStatusICC() Card not transacted:
612
Feb 24 19:17:02 pcscd: eventhandler.c:301:EHStatusHandlerThread() Error
communicating to: SCM SDI 010 (21120706201272) 00 01
Feb 24 19:17:04 pcscd: ccid_usb.c:507:ReadUSB() usb_bulk_read(001/005):
Resource temporarily unavailable
Feb 24 19:17:04 pcscd: ifdwrapper.c:493:IFDStatusICC() Card not transacted:
612
Feb 24 19:17:04 pcscd: eventhandler.c:301:EHStatusHandlerThread() Error
communicating to: SCM SDI 010 (21120706201272) 00 00
as is visible that interface was not claimed before use but as i said that
my java code shows true for interface.isClaimed().
Any help will be really great full.
Thanks
ratish
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
javax-usb-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel