Dan Streetman | 5 Apr 2012 15:35
Picon

Re: Reg: Endpoints for reading the data

CC'ing my response to the list; I forgot to reply-all.

On Wed, Apr 4, 2012 at 8:07 AM, Dan Streetman <ddstreet <at> ieee.org> wrote:
> endpoint 0 is the "default" endpoint and not available in any
> interface (it could be argued that the usb spec says it's available in
> "all" interfaces, which is equally unhelpful).  The only access to
> endpoint 0 is the "default control pipe" which is accessed directly
> from the device, via UsbDevice.asyncSubmit(UsbControlIrp) or
> UsbDevice.syncSubmit(UsbControlIrp)
>
> On Wed, Apr 4, 2012 at 3:32 AM, Hardik Shah <hardik.shah <at> jetmobile.com> wrote:
>> Hi All,
>>
>>
>>
>> I am working on a code which does a read/write operation on usb Device.
>>
>>
>>
>> I am successfully able to read data at endpoint 1.     But I came across a
>> situation where I need to read data from endpoint 0. How can I achieve this.
>>
>>
>>
>> When I try to get number of endpoint for a device. I get one.
>>
>> List eps = interf.getUsbEndpoints();
>>
>> Eps.size()
>>
(Continue reading)


Gmane