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

Interfacing (DSI, CSI, I2C, etc.) • Re: serial comms over usbc onthego connection

$
0
0
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:
  1. Add the following to the end of config.txt:

    Code:

    dtoverlay=dwc2,dr_mode=peripheral
  2. Add the following to the end of cmdline.txt:

    Code:

     modules-load=dwc2,g_serial
  3. 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



Viewing all articles
Browse latest Browse all 7760

Latest Images

Trending Articles



Latest Images