|
From: Phani K. <pha...@gm...> - 2016-03-23 14:45:43
|
Hi After debugging using USB analyzer, came to know its toggle endpoint issue. However facing another issue because of toggle. Kindly help. My application has : write to endpoint 2 read from endpoint 81 First time it works successfully. If I run the application second time, it fails again. Do I need to do reset the toggle bit after every transfer? Kindly help Regards Venkat On Thu, Mar 10, 2016 at 7:57 PM, Phani Kumar <pha...@gm...> wrote: > Hi All > > I am facing an issue on big endian platform and the details are given > below: > > There is a device with vendor specific command structure. I send a > command on OUT endpoint (endpoint number 2) using libusb_bulk_transfer and > read the output by placing buffer on IN endpoint(Endpoint number 0x81). > > The OUT endpoint always responds and IN endpoint does not respond. My > command times out and it calls abort. For the IN endpoint, I am not getting > interrupt from the device. > > The command structure has all unsigned char fields with one integer field. > I made sure I did byte swapping for the integer field to make it endianness > compatible. > > The same code perfectly works in windows. > > May I know if anybody knows any solution for this or am I missing > something? > > Regards > Venkat > |