Hmm, you shouldn't be getting the "did not claim interface" errors...does your device by chance have more than one configuration and/or multiple interface alternate settings?
As far as the data, you can pass the parameter -DJAVAX_USB_MSG_LEVEL=DEBUG3 to java to enable JNI debugging, which should show you all the data going back and forth...do you see the incoming data there? Also, are you submitting an empty (correctly-sized) buffer to the input pipe? You have to do that (submit a buffer) to actually get data. And if you are expecting an amount of data in a multiple of bMaxPacketSize, use a buffer no larger than that. For example if you expect exactly bMaxPacketSize bytes, use a buffer exactly that size. Otherwise the buffer may remain "pending" waiting to be filled up with more data. On Mon, 9 Jun 2003, Benjamin Milde wrote: >Hi, >I have an ricoh rdc7 digitalcam and want to write a linux-usb-driver for it >with javaxusb. I have the Java 2 Standard Edition (build 1.3.1_04-b02) with >the latest javaxusb compiled from cvs, and SuSE 8.1 with kernel 2.4.19. > >The device has only one interface and one configuration and I can use it >without any problems. >But it have 4 endpoints: an input+output bulk and a interrupt-in + bulk-out. I >can use the pipe of the bulk-output-emdpoint and can send a command to the >camera with syncSubmit(byte[]) (I got that command with usbsnoop). >Ok, the camera reacts, shows me the last picture on the display, like on >windows. But according to usbsnoop it sends immediatly an ack, but if I try >to read it with syncSubmit(byte[]) on the other pipe nothing happens. > >I got also an error-msg on /var/log/messages: > >Jun 9 21:47:03 Benjamin kernel: usb.c: USB disconnect on device 71 >Jun 9 21:47:07 Benjamin kernel: hub.c: USB new device connect on bus1/2, >assigned device number 72 >Jun 9 21:47:07 Benjamin kernel: usb.c: USB device 72 (vend/prod 0x5ca/0x2201) >is not claimed by any active driver. >Jun 9 21:47:24 Benjamin kernel: usbdevfs: process 4286 (java) did not claim >interface 0 before use >Jun 9 21:47:24 Benjamin kernel: usbdevfs: process 4286 (java) did not claim >interface 0 before use >Jun 9 21:47:51 Benjamin kernel: usbdevfs: process 4337 (java) did not claim >interface 0 before use >Jun 9 21:47:54 Benjamin kernel: usb_control/bulk_msg: timeout >Jun 9 21:47:54 Benjamin kernel: usbdevfs: process 4337 (java) did not claim >interface 0 before use > >But I claimed that interface before and isClaimed() returns true. I tried also >the other endpoints: on the other bulk-out, I can send what I want, >the camera shows for a short time a black picture, on the >interrupt-in-endpoint comes also nothing. >I tested various combinations of it, and get no vaild data from the >inputpipes. Is it perhaps a bug in javaxusb or in the kernel? Can anybody help >me with it? Or perhaps tell me what I can test? > >Benjamin Milde, Germany > > > >------------------------------------------------------- >This SF.net email is sponsored by: Etnus, makers of TotalView, The best >thread debugger on the planet. Designed with thread debugging features >you've never dreamed of, try TotalView 6 free at www.etnus.com. >_______________________________________________ >javax-usb-devel mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/javax-usb-devel > -- Dan Streetman [EMAIL PROTECTED] --------------------- 186,272 miles per second: It isn't just a good idea, it's the law! ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ javax-usb-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel