Questions tagged [otg]

On-The-Go USB ports can be used as either masters or slaves, enabling some Pi models to easily emulate devices such as keyboards or harddrives. The tag is also used for questions about using dedicated slave ports for the same purpose (only the Pi 4 has such a thing).

https://en.wikipedia.org/wiki/USB_On-The-Go

24 questions
7
votes
1 answer

USB OTG on Compute Module 3

Has anyone ever tried configuring the USB of the Compute Module 3 as USB OTG? In the default kernel (Raspbian Stretch - Kernel7), support for usb otg appears to be disabled. Has anyone managed to recompile the kernel and test if it works? The…
6
votes
3 answers

USB OTG w/ Raspberry Pi Zero

I'm following Simple guide for setting up OTG modes on the Raspberry Pi Zero, the fast way! What I've done; flashed latest (2017-04-10) Raspbian image onto SD card, added dtoverlay=dwc2 on new line to config.txt created blank ssh file (without any…
alexus
  • 337
  • 2
  • 12
  • 25
5
votes
1 answer

USB 3.0 OTG on Raspberry Pi 4 (USB gadget)

Raspberry Pi 4 can do USB OTG via the USB-C connector (according to this answer) - but only at USB 2.0 speeds since the USB-C connector only connects to USB 2.0 lanes. My question is - can Pi 4 also do OTG at USB 3.0 speeds? Maybe via the standard…
Kozuch
  • 250
  • 4
  • 17
4
votes
1 answer

PIKVM: OTG via USB-C port but powering via GPIO pins

For my PIKVM I want to use the OTG functionality of the USB-C port of my Raspberry Pi 4 to control the mouse and keyboard, however, I want to power the Raspberry via the GPIO pins instead, because I don't really like the Y-cable solution so much -…
Tintenfisch
  • 163
  • 7
2
votes
0 answers

Debug OTG on RPI 4 for g_midi?

I tried to set a RPI 4 in OTG device mode I added dtoverlay=dwc2 to config.txt I modified the cmdline.txt so it launches wc2 & g_midi I tried ,dr_mode=peripheral too I just tried replacing Raspbian by raspbery pi os, same problem it works on a pi…
phil123456
  • 21
  • 2
2
votes
0 answers

Raspberry Pi Zero OTG g_mass_storage plug / unplug events

I have a RaspberryPi Zero connected to my PS4 and want to use it like a smart Network USB stick. The ultimate goal of my project is, that I want to automatically send data to a specific host in my network when it get's written from my PS4 to the…
2manyvcos
  • 56
  • 3
2
votes
4 answers

Pi Zero USB On The Go cannot connect

There are several posts that say a Pi Zero can be connected to another computer with USB to enable networking (e.g. Linux host, Windows host or https://www.circuitbasics.com/raspberry-pi-zero-ethernet-gadget/). The USB connection provides both…
Peter Bill
  • 339
  • 2
  • 8
1
vote
0 answers

Android device not detected when connected to rpizero before boot

I'm working on a project in which a RPi Zero (raspibian buster) controls an android phone by sending commands via adb. Everything works correctly if I connect the device once the RPi Zero has done the bootup. pi@raspberrypi:~ $ lsusb -t /: Bus…
muimota
  • 111
  • 1
1
vote
1 answer

Looking to have Raspberry Pi Zero act as USB mouse

I’m looking to use a Raspberry Pi Zero to act as a USB mouse for a computer. I’m wanting to move my mouse on a remote computer and have it correspond and move the cursor on the PC the PiZero is connected to. In other words, I want to do a Remote…
Steven
  • 11
  • 2
1
vote
1 answer

Pass traffic from one network interface to another

I have a project where I have 4x RPiZ plugged into a single RPi4. The RPiZs appear as Ethernet over USB devices as network interfaces ethpi1, ethpi2,ethpi3, and ethpi4 with IP addresses 10.0.11.2, 10.0.12.2, 10.0.13.2, and 10.0.14.2 respectively.…
Rusty
  • 152
  • 1
  • 10
0
votes
0 answers

How do I rename UVC Camera on host computer

I've spent all day trying to figure out how to rename the webcam I made using this tutorial. It shows up as UVC Camera on my Windows 11 PC and I want to change what the name of it is. I can't figure out how to. The only place I found "UVC Camera"…
Elias
  • 21
  • 2
0
votes
0 answers

Does the Pi Pico require the OTG ID pin grounded to act as host?

It doesn't look like it's even connected to anything?
Kirby
  • 238
  • 1
  • 2
  • 9
0
votes
0 answers

pi zero 2 W hub "hat" ports don't work

I just picked up a USB hub "HAT" (it actually attaches underneath, so it's more of a HAB I guess?) for my pi zero 2 W (running Ubuntu 24.04 server): https://makerspot.com/stackable-usb-hub-for-raspberry-pi-zero/ This was pretty straightforward to…
mayostard
  • 31
  • 1
  • 3
0
votes
1 answer

How to decouple USB power and OTG on RPi4 USB-C?

I want to use USB-OTG on my Raspberry Pi 4, but I want to have a possibility to cut the power off and thus force reboot of the device. Currently my RPi is powered via Power pins in 40 pin GPIO headers. I use USB-C in OTG mode to simulate external…
lewiatan
  • 733
  • 2
  • 9
  • 16
0
votes
0 answers

Can I turn a Pi + HDMI Display into a USB monitor?

Would it be possible to turn a Pi + HDMI display into a USB monitor? The Pi with the monitor would act as a 2nd display. (note that I'm not looking to avoid buying a USB monitor, I want to build an external gadget that incorporates a 2nd display) I…
1
2