cancel
Showing results for 
Search instead for 
Did you mean: 

Bidirectional Communication over USB HID

anuj
Associate II

In my project, the two STM32 devices are connected over USB line and communicating over HID interface. Usually communication is unidirectional i.e. device to host. I can find the example for USB host and USB device but communication works one way. But I am looking for bidirectional communication so that any of the STM32 can receive or transmit data. Here no mouse or keyboard is used. Just two STM32 devices connected.

Any help would be appreciated.

1 REPLY 1
Lubos KOUDELKA
ST Employee

Hello,

to communicate between two USB devices you need one device to act as host and one as device. For data communication over interrupt endpoints you can use custom HID, for device we can offer the middleware support, for host we're not offering custom HID class.

Either I would target for different USB class (CDC) or different interface (UART/SPI/I2C) which would be also easier to handle. If custom HID is a must for you, you need to look for custom HID host sources in 3th party resources.