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
0answers
17 views

Multiple gadgets through one USB OTG

I would like to use my RPi to provide input to my PC through one USB interface. I was reading on how to configure OTG on RPi and found this great guide: https://gist.github.com/gbaman/...
1
vote
0answers
30 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 ...
1
vote
1answer
46 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 ...
0
votes
1answer
115 views

how to configure usb in raspberry pi as otg

How can I configure usb port available in raspberry pi to OTG ?
0
votes
1answer
57 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 ...
0
votes
1answer
61 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. ...
0
votes
0answers
44 views

Power RPi4 only from GPIO pins (disable USB-C power input)

I am using the USB-C/power port of an RPi4 in "gadget mode" (acting as USB Mass Storage Device connected to 3rd party instrument that logs measurements to it). However, that USB connection ...
0
votes
1answer
49 views

Zero4u usb hub on raspberry pi Zero W does not recognize whatever 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 ...
0
votes
0answers
101 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 ...
0
votes
0answers
66 views

Use RPi 0w as HDMI/DVI capture device using USB OTG

In a new project, I would like to setup my Raspberry Pi Zero W as a USB display adaptor or display monitor using USB OTG. First to clarify, I do not want to capture video from a camera or game console....
1
vote
1answer
65 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....
0
votes
2answers
66 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 ...
0
votes
0answers
174 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 ...
0
votes
0answers
32 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?
0
votes
0answers
343 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 /...
2
votes
0answers
119 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 ...
0
votes
1answer
2k 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
1
vote
0answers
124 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 ...
0
votes
1answer
271 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 ...
1
vote
4answers
1k 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-...
3
votes
1answer
4k 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 ...
7
votes
1answer
738 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 ...
5
votes
3answers
2k 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 ...