Questions tagged [usb-otg]

USB On-The-Go is a USB (Universal Serial Bus) specification that allows a device to act as Host to simpler gadgets, such as flash drives, but then also act as a "slave" device to other Hosts, such as a personal computer.

USB On-The-Go is a specification that allows a device to act as host to simpler gadgets, such as flash drives, but then also act as a slave device to other Hosts, such as a personal computer.

See:

227 questions
0
votes
0 answers

App android can not Play video with video in USB OTG

I make app android to interact with USB OTG, I can read info all file in USB OTG, but i can not play video in USB OTG, but i can play video in SD. help me. Thanks All my code: fun openVideo(path: String){ val viewIntent =…
0
votes
0 answers

listFiles() returns null on removable storage

I want to read from an OTG USB but listFiles() returns nothing. I'm able to get the path for the removable storage but couldn't access the files AndroidManifest
zzz
  • 83
  • 1
  • 9
0
votes
0 answers

Eject / Unmount USB Programmatically

I am developing an Android Application in Xamarin where I listen to USB devices connected to my Android Device via OTG. I have been successful in listening to the USB devices connecting to my Android Device through BroadcastReceiver. I am stuck on 2…
S M
  • 111
  • 11
0
votes
2 answers

How to boot STM32F405RGT6 with DFU

I have designed and assembled a PCB. All connections are fine and leds are blinking when i open the CUBEMX. But I don't know what to do after this point. Do I need to put some drivers before using DFU? If so, i don't have an ST-LINK Programmer how…
Hakan ONAY
  • 11
  • 5
0
votes
0 answers

How to get USB storage path?

I am trying to read the data in a text file inside my USB OTG storage but I am not able to do it as I am new to Android development. Can anyone guide me with the process? I tried the following library and implemented in a simple method: This…
0
votes
0 answers

How to acces usb otg (mass storage device) connected root folder to android phone and read data using android version > 7.0?

How to acces usb otg connected root folder to android phone and read data using android version > 7.0? Now I can read with version < 7.0.
cyrille gate
  • 81
  • 12
0
votes
0 answers

Reading USB OTG files returns null

I am trying to read thee content of a USB pendrive connected to the phone via otg cable. I can get the path of the pendrive but the listFiles() function returns null. No problem with the internal memory. I have specified also permissions. Why…
Lorenzo
  • 11
  • 2
0
votes
1 answer

How detect the OTG cable already connected with device in android?

I can detect whether the OTG cable attached or detached. But how to detect if OTG cable already connected when app runs. My app only detects if otg cable attached or detached. public class BootUpReceiver extends BroadcastReceiver { @Override …
Mukta Ghosh
  • 360
  • 1
  • 9
0
votes
1 answer

PC to Android USB streaming data using OTG USB - How?

I am trying to accomplish communication between PC Java Application and an Android Application as shown in the diagram. I want to be able to send streams of Strings from PC JAVA app to Android Application (Android studio). How can this be…
Daher928
  • 35
  • 6
0
votes
1 answer

Is it possible to test mobile device through usb to usb port from hub

I tried to build App to debug with an external device I want to debug while connecting external device. How can I achieve that I am using type C USB hub and trying to test with USB - USB cable but failed.
ahmed khattab
  • 2,311
  • 3
  • 16
  • 30
0
votes
1 answer

What is the path for MIT App Inventor to access a USB drive files connected via OTG?

I have a thumb drive with videos on it and it is connected to my Android using a USB OTG cable. The File Manager app on my phone sees the USB storage device and I can click into it and see the folders and videos I need, but I cant figure out the…
contractorwolf
  • 438
  • 1
  • 3
  • 14
0
votes
1 answer

OTG vs Usb extension cable?

Is there a difference in OTG and Usb extension cable? I'm trying to connect my Android phone with some IoT device and when I connect it via OTG cable it works fine, but with regular extension cable it doesn't. I assume there is a reason, right?
joe
  • 1,341
  • 4
  • 21
  • 32
0
votes
1 answer

Usb otg conflict with i2c on stm32f4 board

I have the stm32f429 discovery board and I'm experiencing a conflict between the usb otg hs and the i2c3. I use the cdc usb library which when initialized on it's own works fine as a virtual com port and I can communicate in windows. When any other…
0
votes
2 answers

STMF4 and USB OTG using FATfs

I am using STM32F407 Discovery Board for interfacing USB OTG FS. I am using CubeMx and Keil for development. First thing first, I have enabled PC0 - USB_Power(for Discovery Board) and the state is RESET for proper USB running.I have enabled PA9 -…
Ehsan Habib
  • 135
  • 1
  • 5
  • 12
0
votes
1 answer

pi-zero usb otg port identified as unknown device during boot

I currently have a pi zero which acts as a bluetooth keyboard which - when attached to a computer - types text read from the SD card. I followed this tutorial https://www.rmedgar.com/blog/using-rpi-zero-as-keyboard-setup-and-device-definition. I use…
pinas
  • 2,708
  • 4
  • 21
  • 33