Emulate three USB devices with one Teensy device

Status
Not open for further replies.

LuisHS

Well-known member
*
Hello.

I need emulate three USB devices (Mouse, Keyboard, Xbox360 gamepad), with one Teensy board.

I have modify the USB descriptors to add support to Xbox360, the code compile but only can emulate Mouse/Keyboard or Xbox360, not the three. Mouse and Keyboard are HID, Xbox360 is Xinput device.

If I put these VID PID then work emulating an Xbox360 gamepad
#define VENDOR_ID 0x045e
#define PRODUCT_ID 0x028e

If I put these VID PID then work and emulate a Mouse + Keyboard
#define VENDOR_ID 0x16C0
#define PRODUCT_ID 0x0482

I do not know what is the problem, and if its really possible mix HID and non HID USB devices to emulate with one Teensy (any, LC, 3.2, 3.5 or 3.6).

Regards
 
Hi, have you find the answer or solution may be?

What I try to do is here https://stackoverflow.com/questions/61280513/teensy-3-2-outgoing-packet-payload-limit-8-bytes.


Not by software, that doesn't work, I already tried all the possible combinations with the USB descriptors.

I had to solve it by hardware, I designed my own board with two MKL26Z128 microcontrollers, one emulating keyboard-mouse, and the other emulating the Xbox360 gamepad. Then I added a USB2412-DZK chip that acts as a two-input USB HUB so I can connect the two USB outputs to a single USB port.

This works perfectly, emulating three USB devices, two HID and one Xbox proprietary, with a single USB device, although internally there are really two microcontrollers, each independently emulating the HID and the Xbox. All signals are transmitted wirelessly by Radio with an NRF24L01, to a main board with an STM32 microcontroller.


16252125_1259695134110720_5303433795901572479_o.jpg

16177787_1259695410777359_3501695082625596129_o.jpg

16179313_1259695460777354_2424136397118886291_o.jpg

16179486_1259695324110701_766720828919803540_o.jpg
 
Last edited:
Status
Not open for further replies.
Back
Top