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
1 answer

Android OTG communication (UsbSerial lib) with Arduino: reading weird bytes

I’m currently working on a project with Android, Firebase, and Arduino, where I want to send the UID from the FireBase project, to my arduino (after registering a new user) so that I can write it to a MIFARE tag using the MFRC522. I'm doing this…
JAG
  • 1
0
votes
0 answers

USB OTG and L2 modes

I connect the following to an Android in OTG USB mode: Mouse (HID) Mass storage (MSD) USB to Serial port (CDC) Some headsets (ADC) When the phone goes into sleep mode, the USB does NOT send a suspend command, and does NOT go into L2 mode. When I…
Adrian
  • 1
  • 3
0
votes
3 answers

Can a tablet implement OTG for its own purpose, but prevent apps from using it?

I'm new to android programming and my project needs serial communication with an arduino board. I began with building my very first project by importing the source code of ArduinoUSB. In this code, I have use the android device in OTG mode and the…
Phono
  • 1
  • 3
0
votes
1 answer

Xamarin.Forms Android cannot access USB OTG folder

I'm on an Android 5.0 device where a usb mass storage is mounted at "/storage/usbotg" via USB OTG cable. Unfortunately from my app I only have read access to that folder. Please note that I set the write external storage permission as I'm able to…
0
votes
1 answer

Is a terminal and USB Device or a USB Host

If I use Tera Term, to connect to a USB OTG port on a STM32 MCU, is Tera Term a USB Device or a USB Host. The question arises as I presumably could configure the STM32 OTG port to be a USB Host CDC or a USB Device CDC. It's possible that it doesn't…
Richard
  • 261
  • 1
  • 3
  • 9
0
votes
1 answer

Trouble connecting phone to arduino using droidScript

I am trying to connect my sony xperia sp running on android 7.1 ( Lineage OS ) to my arduino uno using an OTG cable and the droidScript app. It worked perfectly the first time, it asked permission to open droidScript : I clicked on "OK" and checked…
0
votes
1 answer

Android Get OTG USB/External SD CARD Storage devices and their paths

I'm using the following code to get the list of all external storage devices either SDCard or USB connected via OTG List paths = new ArrayList(); File directory = new File("/storage"); File[] files =…
0
votes
1 answer

Android to Android Communication over USB

Basically I need to build an APP to communicate between two android devices, send and receive data, in the safest way without Internet. I could use WiFi, but they are prone to hacks and Jamming. My first question is if Local WiFi Hot Spot…
Tanmoy
  • 171
  • 1
  • 1
  • 5
0
votes
0 answers

How can i modify certain android kernel to recognize external wifi adapters?

When i flashed my custom rom i tried to see what it recognizes because the stock kernel was not recognizing this atheros external adapter which was connected with OTG cable. So when i typed in the terminal (in this case i was using Termux, which is…
0
votes
1 answer

How to get video thumbnail from UsbStorageProvider document uri

The origin of problem is UsbFile from mjdev:libaums and UsbStorageProvider. I try to extract video frame from uri.getPath() -> /document/usb1002:/GOPR04252.MP4 like ImageUtils.getVideoThumbnail(documentUri.getPath(), size.x, size.y); method from…
Qamar
  • 4,959
  • 1
  • 30
  • 49
0
votes
1 answer

Android Kernel OTG

How can I use an app to detect when the otg cable is plugged in and when it's not? Is there an intent for otg cables like the one below for usb devices: "android.hardware.usb.action.USB_DEVICE_ATTACHED" I have created an app but it only detects a…
Pavle_nis
  • 141
  • 1
  • 10
0
votes
1 answer

GadgetFS on Allwinner H3 based linux board

I have the nanopi-neo which is an Allwinner H3 based linux board. It supports USB OTG mode so I wanted to try and convert it into slave by using GadgetFS. From what I understand, I am supposed to rebuild the linux kernel provided by them with this…
azmath
  • 863
  • 1
  • 11
  • 30
0
votes
1 answer

DHCP server bound to hotpluggable interfaces

I have a Raspberry Pi 3 (Pi3) and a Raspberry Pi Zero (Pi0). The Pi0 is pluged into the Pi3 via USB. I am using Raspberry Pi Zero OTG Mode to make the Pi0 appear as a network interface on the Pi3 I have installed isc-dhcp-server on the Pi3. I want…
Robert3452
  • 1,354
  • 2
  • 17
  • 39
0
votes
1 answer

How to write code to connect a hardware device to Android mobile using USB cable in XAMARIN

My organization build ARM chip based hardware devices. I am trying to connect those devices via USB OTG to Android devices (Phones, tablet). I want to do it in C#.Net using XAMARIN. I found some examples in Java Android, but nothing in .Net…
Mini
  • 447
  • 5
  • 16
0
votes
1 answer

How to get OTG files via Storage Access Framework

So, I want to read a very specific file from any connected USB OTG drive. It's a text file that should be stored on a USB stick and I need to read that file, which has a specific name, say myFile.txt. While I understand this kind of getting user…
Mehdi
  • 65
  • 4