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.
You can override this with some dwc2 settings in config.txt.
Theo