Ports and Interfaces > USB

linux box not allowing control set's but does get's ok.

<< < (3/3)

ulao:
If it was not returning ack these statement would not be true.

1) the host sends a control transfer get ok. No errors.
2) the host sends a control transfer set and gets error -7. NOTE the device received the set ok.
3) Libusb 1.0 tries to send the set over and over, no idea why.
4) libusb 0.1  sends a control transfer set ok. No errors.

and

1) this device works with libusb 0.1
2) this device works with windows
3) This device work with linux FFB (FFB uses control transfers set/get)


What I'm trying to say is that I have boxed this thing in. It is not the device. There has to be a bug in libusb 1.0. Unless you have an example that works.

ulao:
Analyzing the code it looks like I may not be returning ack. It just so happens that all other forms of the usbapi somehow deal with it ok. I will try this tonight and report back.

ulao:
Jan you are an amazing person, thank you. Apparently 0.1 of libusb and hidapi are a lot less picky. This bug goes back about 5 years and was in the device.  The issue was the device didnt reply with ACK for 8 byte data. instead it was replying NAC assuming more data was to follow.

Jan Axelson:
Glad to hear you found the source of the problem! Thanks for reporting back.

Navigation

[0] Message Index

[*] Previous page

Go to full version