Is it actually Possible to define multiple distinct HID joysticks on one interface?
I have Nucleo F439ZI Board
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-23 2:57 AM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-10 7:15 AM
Hi,
first of all, having 2 configurations won't solve your problem. As mentioned in the training, configurations are used for different "power modes" of the USB device. What you need is to have 1 device descriptor, 1 configuration descriptor and 2 interface descriptors (assuming you are going the "composite device way").
If you are using ST Middleware, you need to change interface descriptors in usbd_hid.c file, and also other functions, e. g. for reporting and enumeration of the device.
BR,
Jaroslav
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-26 4:26 AM
Hi @VDodi.1​ ,
yes, this is possible either with multiple HID Top-level collections (if you mean under the term "interface" the logical USB interface) or with a composite device (multiple USB interfaces, but still one device = one HW interface).
BR,
Jaroslav
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-26 7:11 PM
Yes, and here are several different examples:
https://github.com/hathach/tinyusb/tree/master/examples/device
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-27 2:43 AM
thanks, actually i have configure my nucleo board as device and pc as host and created joystick controller interface. now i have to do multiple joystick controller with one device.
can you help how to send my data from device to pc as host ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-27 2:43 AM
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-27 6:37 AM
Hi,
if you are starting with USB, I would recommend you some tutorials, e. g. this. There you can learn the general principles as well as how to send data to the host device. Or check the examples @Piranha​ posted.
If you have some specific question about sending the data, please share more details.
BR,
Jaroslav
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-10 1:46 AM
Hi,
I had check this STM32 USB training - 04 USB descriptors video. as i understand i can interface 1 device descriptor and two configuration at different time.
Can you help where should i have to edit in configuration descriptor file and other file also ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-10 7:15 AM
Hi,
first of all, having 2 configurations won't solve your problem. As mentioned in the training, configurations are used for different "power modes" of the USB device. What you need is to have 1 device descriptor, 1 configuration descriptor and 2 interface descriptors (assuming you are going the "composite device way").
If you are using ST Middleware, you need to change interface descriptors in usbd_hid.c file, and also other functions, e. g. for reporting and enumeration of the device.
BR,
Jaroslav
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-14 1:42 AM
Hi,
Thank You, i have created two game controller but i need different controller name to recognize my pc.
