cancel
Showing results for 
Search instead for 
Did you mean: 

nucleo-H755ZIQ mouse+keyboard simultaneous HID

stefanoma76
Associate

Dear All,

I'm trying to develop a USB HID mouse and keyboard both on the same USB connection for the nucleo-H755ZIQ board. I mean a complete project (from configuration in CubeMx) and software implementation for CubeIDE.

On the net I've tryed some example to emulate mouse and keyboard separately (one a time) and they work. But I'm not able to implement mouse and keyboard simultaneously on the same single USB connection.

My goal, at the moment, is software in which if I press the user button could move the mouse pointer and send a character as a keyboard.

Could somebody help me?

Best regards

 

2 REPLIES 2
Pavel A.
Super User

This can be done in two ways: (1) composite device with two HID functions, (2) one HID device with two "top-level collections.  Method (2) needs less resources (only one USB interface and one set of end points) and should work with all decent hosts (Linux, Windows, MAC).

CubeMX generates a limited HID device code that you can improve, based either on the "legacy" ST USB device library or UsbX.

Here you can find help with understanding the examples and coding.

 

FBL
ST Employee

Hi @stefanoma76 

This thread should be helpful.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.