USB-HID working with IIO but now with hidraw subsystem
Posted: Thu Nov 29, 2018 8:44 am
Hello forum.
My uC is connected to a Linux kernel through a USB interface. It is running Chibios 16.1.0 firmware to send data collected from HID sensors to the Linux kernel. Running on a Linux kernel 4.x, the application can receive data through Industrial I/O subsystem (IIO) and consume them. That works really nice.
I have tryied to use this Chibios firmware with an older Linux kernel 3.x. The problem I found is kernel 3.x doesn't provide that IIO subsystem.
To fix this I tried enabling hidraw subsystem in that 3.x kernel to consume data. But any data is received though /dev/hidrawX.
Is there something missing on Chibios side that must be implemented to enable communications with that hidraw subsystem?
I can provide any relevant source code details you need to review this.
Thanks a lot in advance!
My uC is connected to a Linux kernel through a USB interface. It is running Chibios 16.1.0 firmware to send data collected from HID sensors to the Linux kernel. Running on a Linux kernel 4.x, the application can receive data through Industrial I/O subsystem (IIO) and consume them. That works really nice.
I have tryied to use this Chibios firmware with an older Linux kernel 3.x. The problem I found is kernel 3.x doesn't provide that IIO subsystem.
To fix this I tried enabling hidraw subsystem in that 3.x kernel to consume data. But any data is received though /dev/hidrawX.
Is there something missing on Chibios side that must be implemented to enable communications with that hidraw subsystem?
I can provide any relevant source code details you need to review this.
Thanks a lot in advance!