Yes but you might not get enough power from the USB host to run everything that's connected to the Pi.
The quick and dirty version:
You'll now have a /dev/ttyGS0 on the PI. The USB host will have a serial port but what it's called is OS dependent. Treat as you would any other serial port.
The quick and dirty version:
- Add the following to the end of config.txt:
Code:
dtoverlay=dwc2,dr_mode=peripheral - Add the following to the end of cmdline.txt:
Code:
modules-load=dwc2,g_serial - Reboot
You'll now have a /dev/ttyGS0 on the PI. The USB host will have a serial port but what it's called is OS dependent. Treat as you would any other serial port.
Statistics: Posted by thagrol — Mon May 18, 2026 11:30 pm






