Hi all, I have got a HID device with a few buttons and LEDs, and would like to communicate with it. I wrote a simple program that sets LEDs, reads button events and queries serial number. It works fine with kernel 2.6. However, with kernel 2.4, querying serial number behaves strange. Communication is done with blocks of 9 values. I send 9 usage_refs to the device using HIDIOCSUSAGE and HIDIOCSREPORT ioctl calls, and wait for the reply. Using cat /dev/usb/hiddev0 I can see that answer has arrived. But only at the first time! After that, no reply arrives, until I press a button on the device. Then the button pressed data can be seen, and after that the serial number query works correctly again for _one_ time, and stops working until the next button event. Setting LEDs and reading button events work always. It seems that only messages that need reply from the device fail. And the very same code works on 2.6. If anyone of you has got an idea or experience, what can cause this or how to repair it, please share with me. Thank you very much in advance: Bertalan Szilvasi
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel