|
From: Tim R. <ti...@pr...> - 2016-03-10 18:37:18
|
Phani Kumar wrote: > > 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? Have you done a debug dump of the buffers to check that the content exactly matches what your Windows system sends? If the buffers match byte-for-byte, then it has to work. -- Tim Roberts, ti...@pr... Providenza & Boekelheide, Inc. |