USB HID Mouse+Keyboard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-07 7:41 AM
Hi guys,
I've a problem and I hope you can help me.
my project must acquire a ps2 keyobard and a ps2 mouse and must be see with the usb.
This is ioc configuration:
The first step I tested the firmware only acquire a keyboard and works fine. The PC see the keyboard descriptor and write the character.
The next step I tested the firmware only acquire a mouse and works fine. The PC see the mouse descriptor and move the mouse.
So I've try to combined the descriptors and the PC see the keyboard and mouse.
When I send the report of keyboard I'm able to write the character.
But when I send the report of mouse I see an "Abort pipe" and the usb crash.
I attached my project so you can see it
Thanks.
Best,
Michael
- Labels:
-
STM32F7 Series
-
USB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-07 3:12 PM
What means acquire? Are you making a converter of PS/2 keyboard and mouse to USB? If so, these converters already exist, very cheap. Just buy and use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-07 4:05 PM
I wouldn't be surprised if PS/2 mice & keyboards are now collector's items and sell for a premium ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-07 11:10 PM
Acquire means read Data and Clock signal from mouse and keyboard. This step works fine
I know there is a converters but our client want a custom board and that is allways avaible.
So we can't buy a commercial product
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-08 2:42 AM - edited ‎2024-11-08 2:44 AM
About 10 years ago I did a similar thing on a STM32F4. Don't have sources but recall that the USB part of it was straightforward. Just make sure the HID descriptors are correct.
For the best compatibility (any old host) converters are composite devices with the keyboard as the 1st function.
But any modern desktop OS understands one device with two HID collections: two report descriptors in one HID device, one for keyboard another for mouse. Only one function descriptor and one endpoint.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-08 3:23 AM
Some Knowledge base articles on STM32 USB Composite devices:
