Fast USB HID switch

danshtr

Member
Hi All,

Looking for guidance. I am using a USB switch to connect keyboard and mouse to two different hosts. However switching takes a second or two because the USB switch disconnects from old host and reconnect to the new host every switch.
My idea for a project is to have the USB switch to permanently connect to the two hosts and have a USB keyboard and mouse "events" be forwarded to one active host, and a switch button that will switch between the active host and the standby host. That way there will be zero latency when switching between hosts since there will be no USB connect event.
So hardware wise, how do I connect to Teensy a keyboard, a mouse in host mode and then connect the teensy to two different hosts as client?

Thanks!
 
It can't be done.
The USB ports on the Teensy operate in either host or device mode. They can't do both at the same time. A port in device mode can only connect to a single host. So to connect to two host PCs at the same time both ports would need to be in device mode, which leaves no ports to act as host mode for the keyboard and mouse.
 
Thanks!
How about having one teensy to implement two hosts and one teensy to implement two clients and then somehow connect them to each other? Would that work?
 
Back
Top