----------------------------------------------------------------------------------
@MSGID: 3:633/10 397d7b47
@REPLY: 3:633/10 5f47e0fb
@PID: PyGate 1.5.19
@TID: PyGate/Linux 1.5.19
@NOTE: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-44-amd64 (x86_64))
@CHRS: ASCII 1
@TZUTC: 0100
@REPLYADDR: theom+news@chiark.greenend.org.uk
@REPLYTO: 3:633/10 UUCP
@RFC-Message-ID: ruZTA@news.chiark.greenend.org.uk>
Marco Moock <
mm@dorfdsl.de> wrote:
> Am 24.10.26 um 13:40 schrieb Theo:
> > Marco Moock <
mm@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
--- PyGate Linux v1.5.19
* Origin: Dragon`s Lair, PyGate NNTP<>Fido Gate (3:633/10)
SEEN-BY: 19/10 50/109 153/757 218/840 840 220/70 221/1 6 360 226/17 100
SEEN-BY: 229/426 240/1120 267/800 301/1 113 812 310/31 335/364 341/66 463/68
SEEN-BY: 550/278 633/10 280 281 416 418 420 422 509 2744 712/848 770/1 3 100
SEEN-BY: 770/340 772/210 220 230 5001/100 5020/715 848 1042 4441 12000 5023/24
SEEN-BY: 5030/49 722 1081 1474 5051/44 5061/133 5075/128
@PATH: 633/10 280 770/1 218/840 221/6 301/1 5020/1042 4441 715