Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3586

General discussion • Can RPi 4 act as Host and Peripheral at the same time for 2 different USB connections?

$
0
0
I have been researching the RPi 4's USB ports and have not been able to find a definitive answer before going out to purchase, so I figured I would ask those who have tried to do something similar. My research indicated that the USB-C OTG port could run as HID while the others act as host, but I never got a solid answer as to if this can be done simultaneously.



I am looking to have the RPi 4 be a hardware passthrough, acting as a host for a keyboard, but then also acting as an HID device so that my computer will detect the RPi as a keyboard and I can put my keypresses back onto my computer from the keyboard. I have been trying this with an RPi Zero 2 W with a USB to TTL Serial cable, but I cannot have the Zero 2 W act as an HID and host for the keyboard at the same time.



This is a time-sensitive project and I'm new to this. I've heard the RPi 5 has 2 USB controllers that could successfully do this, but the wait time on getting an RPi 5 is a bit long for me, but if that is the only board that can do this, then so be it.

TLDR; Should I buy an RPi 4 or 5 in order to be able to be a hardware passthrough with one USB port being a host and another being a peripheral HID Device simultaneously?

Statistics: Posted by skipsfate — Fri Jan 26, 2024 9:18 pm — Replies 2 — Views 176



Viewing all articles
Browse latest Browse all 3586

Trending Articles