Marco Moock <m…@dorfdsl.de> wrote:
> Am 24.10.26 um 13:40 schrieb Theo:
> > Marco Moock <m…@dorfdsl.de> wrote:
> >> Thanks for the link. > >> I need to figure out how I can read and set the OTGID in FreeBSD.
> > > > It's a physical 5th pin on the micro USB connector. If you insert a normal > > A male (host) to microUSB male (device) cable the cable grounds the pin. If > > you insert an OTG cable (microUSB to A female, so the Pi becomes the host) > > the pin is left floating. > > > > So if you use an 'OTG' cable the port will be put into 'host' mode, if you > > connect it to a PC with a regular micro USB cable the port will be in > > 'device' mode.
> > I have a normal USB cable (other side is male) connected to a USB power > supply. > > I have another PI 3B (in use, so I cannot play around with it) connected > to a USB power supply. I do not know how that cable handles it. >
> > You can override this with some dwc2 settings in config.txt.
> > Can you give more info about this setting?
It's: dtoverlay=dwc2,dr_mode=host or dtoverlay=dwc2,dr_mode=peripheral or dtoverlay=dwc2,dr_mode=otg The latter is the default, which is deciding between host and device using the ID pin in the microUSB socket. There's a doc: https://pip-assets.raspberrypi.com/categories/685-app-notes-guides-whitepapers/documents/RP-009276-WP-1-Using%20OTG%20mode%20on%20Raspberry%20Pi%20SBCs.pdf Theo