Re: [Linux-usb-users] Help with talking to a device

2007-07-26 Thread David Hooker
to:[EMAIL PROTECTED] Sent: Thursday, July 26, 2007 8:59 AM To: David Hooker Cc: linux-usb-users@lists.sourceforge.net Subject: RE: [Linux-usb-users] Help with talking to a device On Wed, 25 Jul 2007, David Hooker wrote: > Ah, thanks. > > Changing my timeout value to 1000 doesn't help

Re: [Linux-usb-users] Help with talking to a device

2007-07-26 Thread David Hooker
-usb-users] Help with talking to a device On Thu, 26 Jul 2007, David Hooker wrote: > What I mean, is that I'm expecting data back from the device, and I'm > not getting any. I thought, after your earlier email, that maybe it > was because I had such a short timeout on the poll

Re: [Linux-usb-users] Help with talking to a device

2007-07-26 Thread Alan Stern
On Thu, 26 Jul 2007, David Hooker wrote: > What I mean, is that I'm expecting data back from the device, and I'm > not getting any. I thought, after your earlier email, that maybe it > was because I had such a short timeout on the poll and that increasing > it would give the device time to respon

Re: [Linux-usb-users] Help with talking to a device

2007-07-26 Thread Alan Stern
On Wed, 25 Jul 2007, David Hooker wrote: > Ah, thanks. > > Changing my timeout value to 1000 doesn't help, though. What do you mean, it doesn't help? The request still times out? But isn't that what you want it to do? After all, if the request never timed out and the device didn't send any

Re: [Linux-usb-users] Help with talking to a device

2007-07-25 Thread David Hooker
Stern [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 3:27 PM To: David Hooker Cc: linux-usb-users@lists.sourceforge.net Subject: RE: [Linux-usb-users] Help with talking to a device On Wed, 25 Jul 2007, David Hooker wrote: > Right... I'm using a timeout of 10ms in my call. I tho

Re: [Linux-usb-users] Help with talking to a device

2007-07-25 Thread Alan Stern
On Wed, 25 Jul 2007, David Hooker wrote: > Right... I'm using a timeout of 10ms in my call. I thought that > since the device wants a poll every 10ms, why have a longer timeout? Because the polling will occur automatically every 10 ms without your program doing anything, until the request times

Re: [Linux-usb-users] Help with talking to a device

2007-07-25 Thread David Hooker
users@lists.sourceforge.net Subject: RE: [Linux-usb-users] Help with talking to a device On Wed, 25 Jul 2007, David Hooker wrote: > Timeout is 10ms - the device's protocol spec defines it. > > Endpoint Descriptor: > bLength 7 >

Re: [Linux-usb-users] Help with talking to a device

2007-07-25 Thread Alan Stern
On Wed, 25 Jul 2007, David Hooker wrote: > Timeout is 10ms - the device's protocol spec defines it. > > Endpoint Descriptor: > bLength 7 > bDescriptorType 5 > bEndpointAddress 0x81 EP 1 IN > bmAttributes3 > T

Re: [Linux-usb-users] Help with talking to a device

2007-07-25 Thread David Hooker
the interrupt pipe is in a different thread than the one issuing the request over the bulk pipe.) -Original Message- From: Alan Stern [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 1:14 PM To: David Hooker Cc: linux-usb-users@lists.sourceforge.net Subject: Re: [Linux-usb-users] He

Re: [Linux-usb-users] Help with talking to a device

2007-07-25 Thread Alan Stern
On Wed, 25 Jul 2007, David Hooker wrote: > I'm trying to communicate with a device over USB from Java. I have > the LibusbJava jar which is basically a thin wrapper around libusb, > and I have that all working. I can open the device and claim the > interface (for some reason I have to forcibly k

[Linux-usb-users] Help with talking to a device

2007-07-25 Thread David Hooker
I'm trying to communicate with a device over USB from Java. I have the LibusbJava jar which is basically a thin wrapper around libusb, and I have that all working. I can open the device and claim the interface (for some reason I have to forcibly kick the hub's claim off first sometimes). The