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:

210 questions
33
votes
3 answers

Communicating with serial USB device over Android

I have one custom made device for measuring current. This device can be connected to PC and communication is done over USB. It is based on FTDI chip. I have application written in Java and that application is using rxtxSerial.dll library and…
Josef
  • 2,430
  • 5
  • 29
  • 56
24
votes
2 answers

Android USB OTG: programmatically turn off power to the port

Suppose I have a USB-powered LED lamp connected through a USB OTG adapter to a Toshiba Excite 10 tablet running Android 4.0.3, which provides the power. I want to programmatically turn the USB OTG host port's power pins on and off from an app.…
AlcubierreDrive
  • 3,506
  • 2
  • 22
  • 44
20
votes
1 answer

How app can access files on USB OTG storages in Android 6.0 (API level 23) without root?

Android 6.0 Developer Preview (API level 23) can natively mounts external removable USB OTG storages out-of-the-box without any additional apps (for more info please see:…
19
votes
1 answer

Reading raw mouse data on android

In my Android app, I read the values from a 3DConnexion SpaceNavigator via USB-OTG to control an AR.Drone. Now I want to do the same with a mouse. However, Android is grabbing the mouse and presenting a mouse-cursor. When I write a device-filter…
ligi
  • 35,518
  • 37
  • 123
  • 220
14
votes
4 answers

Get the list of paths of all the Storage Devices connected to an Android device

I want to get the list of all Storage Devices which are connected to the Android device. For eg- Internal Storage(Storage in which all the folders such as Downloads, DCIM etc are present), SD Card and OTG device. I Know there are a lot of…
Rahulrr2602
  • 571
  • 8
  • 32
11
votes
1 answer

Debugging React Native over adb tcpip

I'm trying to attach a USB device (using USB OTG) to my Android device while developing an app using React-Native. Classically to debug an Android app, one connects using USB debug mode over adb, but since my USB port is being used for my USB OTG…
TinyTheBrontosaurus
  • 2,652
  • 5
  • 17
  • 32
11
votes
2 answers

How To Detect that Android Device is connected with USB OTG Or Not programmatically

I am working with custom OTG fingerprint scanner. I want to check that OTG is connected to my Android device or not in a specific android activity.
Hanan
  • 434
  • 4
  • 16
11
votes
1 answer

STM32 USB OTG HOST Library hangs trying to create file with FatFs

I am trying to create a file with FatFs on USB flash, but my f_open call trying to read boot sector for first time file system mount hangs on this function. DRESULT disk_read ( BYTE drv, /* Physical drive number (0) */ …
Mykola
  • 3,152
  • 6
  • 20
  • 39
11
votes
0 answers

Android USB Host read/write a file in USB device OTG

I am writing an application where Android device is the Host. User will connect an USB drive to the Android device and my application will write some text files in the USB drive. The path of the text files will be like…
tausiq
  • 887
  • 12
  • 20
8
votes
4 answers

Using Android phone as USB Host to mount external drives to phone and accessing the memory of the external drive through phone

I have been checking since some time to mount external drives to android phone i.e., if I plug external drive(hard/flash/camera) to android device, the android phone should be able to access the storage file system. There are apps in the market…
Shail Adi
  • 1,464
  • 4
  • 13
  • 34
7
votes
5 answers

USB OTG Supported Phones?

I'm looking for Symbian/Android/Windows Phone which support USB OTG. I Have simple device which send very basic ascii data thro USB and I need to read data in phone application. Is there any cellphones with USB Host support?
Edward Paulsen
  • 71
  • 1
  • 1
  • 2
7
votes
0 answers

how to check otg support option is enabled or not

Currently one of our app required to external device connectivity. So, I want to know how to check OTG support option in settings is enabled or not programatically. This question might explains whether OTG is supported but I'm looking for settings…
AskQ
  • 3,629
  • 4
  • 27
  • 54
7
votes
1 answer

Drawing power from USB device to android tablet through OTG cable

I am working on a project which involves communication between a android device and arduino. The final assembly of the project would be a box-like structure with only the android device's screen being visible (the remaining sides would be enclosed)…
MMss
  • 324
  • 3
  • 9
6
votes
1 answer

How can I read files from usb device on android?

I'm trying to create something like file explorer through connected usb devices(via OTG or usb ports on android TV). All I need for this is a path something like "/storage/sda4" and device identifier, and then I can work with device through simle…
LamaUltramarine
  • 115
  • 1
  • 6
6
votes
0 answers

Android read/write file in USB drive OTG programatically

I would like to read-write a file in USB drive OTG programatically. Use case is following: User connects an USB OTG to Nexus 10 device. My App will get notified that USB is connected. (achieved) My App will read some files from the USB drive…
tausiq
  • 887
  • 12
  • 20
1
2 3
13 14