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
2
votes
0 answers

Is Android Emulator able to connect to a printer on PC as an On-The-Go Printer?

I need to debug an Android application on either a physical Android Tablet or on an emulated AVD. The Android application needs to either connect to a USB printer using the Tablet's On-The-Go port or somehow have the printer appear to the emulator…
Aglets
  • 31
  • 4
2
votes
0 answers

Connecting an external speakerphone with Android phone using USB

Problem: If I make a Google Hangout call from my Android phone and want to use an external speakerphone Jabra speak 410. The only way I could make Hangouts use this device was to connect it with Bluetooth. I want to use a USB cable connection and…
SabbirH
  • 21
  • 1
2
votes
1 answer

How can I disable and enable a USB OTG connection to power a hardware device on and off?

I am working on an android project where I use a phone to power an external device. Through a USB-OTG connection, I can power the external device. I want to know if I can write a program on android studio where I can press a button in the app to…
Adam Higgins
  • 705
  • 1
  • 10
  • 25
2
votes
1 answer

Detect when a USB OTG device disconnects

I have an app which interacts with a USB OTG device: When a USB device connects, a helper activity is started to display the Android confirmation dialog. This is done via an IntentFilter in the manifest. The helper activity starts a service is…
user149408
  • 5,385
  • 4
  • 33
  • 69
2
votes
1 answer

Connecting peers via USB OTG

my problem is to connect two identical devices with OTG-capable USB interfaces. Is this a simple giveaway or do I have to start and stop host- and device-mode manually with an arbitrary timing pattern so that eventually one is hit in device mode…
slartibartfast
  • 641
  • 4
  • 12
2
votes
1 answer

Android requestWait of usb serial is not blocking for FT232R device

I am currently using: Device Name: FT232R device. Device Serial Number: A104WOUG. Device Description: FT232R USB UART. Device ID: 04036001. Device Location: 41d1. for an Android device configured with OTG-USBS. Everything works fine. Recently, I…
Jacky Lam
  • 21
  • 2
2
votes
0 answers

Use RaspberryPi model B 1 (Broadcom BCM2835) with USB OTG as an slave ethernet

I'm trying to use the Broadcom BCM2835 OTG functionality to use the RPi as a Ethernet gadget in order to establish a network connection with a host (I found this is used with RPi Zero). The OTG is supported in RPi B1 as you can see in the Broadcom…
rjc
  • 21
  • 2
2
votes
0 answers

Programmatically prevent USB file system pop-up when plugging in USB via OTG cable connected to Android device

I'm creating an Android app to access a file system of a USB mass storage drive via an USB-OTG cable. When I attach the drive via cable, the file system pops up automatically. Is there any way I can programmatically prevent this?
steam1234322
  • 63
  • 1
  • 6
2
votes
0 answers

How to Setup Bulk In/Out USB Endpoints for OTG peripheral in PetaLinux 2016.3

I am presently designing a peripheral device with a ZC702 board using PetaLinux. The examples provided for USB OTG peripherals are either mass storage or Ethernet over USB. Both of these examples work with the board. I am now trying to implement…
teastham
  • 21
  • 1
2
votes
1 answer

Android USB OTG: How to detect Mass Storage hot-plug event, then copy data?

I have an Android-based Huawei tablet, running Lollipop, and want to know how to detect when USB Mass Storage OTG has been hotplugged, and how to copy files from the OTG to tablet internal storage once the device is connected. I haven't been able to…
Mr T
  • 1,409
  • 1
  • 17
  • 24
2
votes
0 answers

Android OTG Marshmallow create a file in USB drive

I'm trying to create folder in USB drive mounted using OTG. Works fine in Lollipop but I'm struggle with Marshmallow. All permissions are given. I know SAF is the way to go about it. And I've been trying to write custom DocumentProvider to mkdir.…
2
votes
1 answer

is there any way to get thumbnail of images from USB OTG storage connected to android without copying full image

I am trying to import selected images from usb drive connected to mobile phone (Nexus 6) which is not showing pendrive as external storage directories. I used this library: https://github.com/mjdev/libaums While using this library, I have to first…
Praveen Pandey
  • 409
  • 3
  • 20
2
votes
2 answers

How to change the (physical) keyboard language in android?(Besides SHIFT-SPACE)

I bought an OTG cable for my LG-G2. I connected to the OTG a wireless logitech keyboard (MK 250). In my keyboard layout I got 2 Languages: English and Hebrew. When I press SHIFT-SPACE (language change), I see on the top of the screen the EN(English…
Maor Gordon
  • 67
  • 1
  • 1
  • 6
2
votes
0 answers

Show native keyboard while using external keyboard or barcodescanner

I'm developping an android app which uses a USB OTG barcodescanner. We made a custom keyboard in a fragment and custom a EditText which communicates with our own keyboard fragment to write. Everything works well, until I used a webview to display a…
Hermandroid
  • 2,120
  • 4
  • 29
  • 35
2
votes
1 answer

How to read OTG USB storage

I want to read/write OTG USB storage from device. For that I have written the code below but it shows only the SD card. HashSet out = new HashSet(); String reg = "(?i).*vold.*(vfat|ntfs|exfat|fat32|ext3|ext4).*rw.*"; String s =…
user3997016