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).

Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

Compute Module 4 board to board connector to OTG USB C

I am currently thinking about a project that I want to do with a Raspberry Pi CM4 or an equivalent product. The thing is that I know some things about Raspberry Pi computers (I own a 3B+ model) but in ...
Johnny Ratton's user avatar
0 votes
0 answers
68 views

Pi 4B OTG USB advanced troubleshooting/debug or logs

I followed this wonderful guide: https://magpi.raspberrypi.com/articles/pi-zero-w-smart-usb-flash-drive and I was able to made it working on my loved Pi4B. Everything works fine as mass storage ...
flic47921's user avatar
0 votes
0 answers
40 views

Raspberry pi zero 2w and usb c hub

I have a raspi zero 2w and inside flirc case and using 4year old 16gb sd card and headless pi os; it uses usb micro to usb c and then usb c to ethernet. I wanted to transfer some files from pi to my ...
splintercell9's user avatar
3 votes
1 answer
639 views

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 ...
Tintenfisch's user avatar
0 votes
0 answers
182 views

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 ...
Richard's user avatar
1 vote
0 answers
351 views

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 ...
muimota's user avatar
  • 111
1 vote
1 answer
305 views

can Rpi 4 model b work as keyboard emulator to two pc?

I am using Raspberry pi model B. I Connected one keyboard to it in usb2 port and I want to write in two pc whatever i am typing on keyboard. right now i tried for one pc. connected keyboard and OTG c ...
Tjtech2's user avatar
  • 11
0 votes
1 answer
2k views

how to configure usb in raspberry pi as otg

How can I configure usb port available in raspberry pi to OTG ?
user avatar
1 vote
1 answer
855 views

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 ...
Steven's user avatar
  • 11
0 votes
1 answer
235 views

Pi4 mass storage gadget and powerbank powered

I'm planning on using a pi 4B to act as a usb mass storage via a gadget module on the usb-c port. However, I want it to keep being powered when the usbc power is down, to finalise it's internal tasks. ...
Remy Grandin's user avatar
1 vote
1 answer
242 views

Zero4u usb hub on raspberry pi Zero W does not recognize whatever USB device I connect to it

I am writing to tell how I managed to solve my USB hub problems related to raspberry pi zero W, but I would still want a feedback and related help on this. The issue was, I could not get anything ...
Christianidis Vasilis's user avatar
0 votes
0 answers
407 views

Can a PI emulate a CD/RW drive

I have a piece of software that archives out onto CD and I really want to remove the drive as I am just archiving the data and copying it back off the disk onto my computer and putting the CD in the ...
user avatar
1 vote
1 answer
2k views

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....
Rusty's user avatar
  • 152
0 votes
2 answers
211 views

Connect 2 Pi's for file transfer, but with minimum networking [closed]

I want to connect two Pi's together for the purpose of transferring files, but I want to do it in the most secure method possible. One Pi ("Device 1") will be connected to the internet, and ...
DatsunBing's user avatar
0 votes
0 answers
397 views

Pi Zero OTG ethernet zero with USB-C

I have been doing a series of projects using RPiZs networked using ethernet over USB. In the middle of this, I upgraded my computer to a new MacBook Pro which only has USB-C ports, so now I need to ...
Rusty's user avatar
  • 152
0 votes
0 answers
36 views

Raspberry Pi 400 as external keyboard via USB [duplicate]

Is it possible to use the raspberry pi 400 as an external keyboard on another PC or tablet using the USB-C (OTG) feature?
MisterGin's user avatar
0 votes
0 answers
862 views

OTG mode Multi (g_multi) is not working on Raspberry Pi 4

I want to use the Raspberry Pi 4 as ethernet and mass storage device. According to the documentation I have to do configure the following files: /boot/config.txt: dtoverlay=dwc2,dr_mode=peripheral /...
Thost91's user avatar
2 votes
0 answers
350 views

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 ...
phil123456's user avatar
0 votes
1 answer
5k views

SSH into Rasberry Pi 4 over USB (Ubuntu Core) [duplicate]

Is it possible to SSH connect via USB-C -> USB to Rasberry Pi 4 in Ubuntu? Like this
Nikta's user avatar
  • 1
2 votes
0 answers
309 views

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 ...
2manyvcos's user avatar
0 votes
1 answer
645 views

Pi Zero configured as HID not being recognized by PC (dmesg error)

I followed this guide to setup my Pi Zero W as a keyboard HID. Connected it to a laptop (via the data USB, not the power) to see no effect. When I started investigating, I saw that dmesg is showing ...
Alexander Tsepkov's user avatar
2 votes
4 answers
3k views

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-...
Peter bill's user avatar
5 votes
1 answer
8k views

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 ...
Kozuch's user avatar
  • 250
7 votes
1 answer
911 views

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 ...
Alfredo Pons Menargues's user avatar
5 votes
3 answers
3k views

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 ...
alexus's user avatar
  • 327