It looks like your native pcscd daemon is trying to talk to the device. Are you sure you want to talk directly to the device instead of using the pcscd daemon?
On Wed, Feb 25, 2009 at 5:53 AM, ratish nair <[email protected]> wrote: > > Hello everyone, > > > I have written a UsbPipeListener just to print the error/data event. You have to actually submit a data buffer to send or receive data to/from the device. You do realize that with javax.usb you have to implement the full device driver protocol yourself, right? > > 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). As you didn't show any code here, I don't think anyone can really tell you if it's correct or not. > 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 (pcscd) > 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(). Is "pcscd" your process? I think that is also a local system smart card reader daemon. And as I said, without you showing us your code, how can we say if it's right or not? > > 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 > ------------------------------------------------------------------------------ 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
