7,961 questions
2
votes
0
answers
56
views
Android app consistently fails to obtain USB permission
My Android app needs to export Excel files to a USB drive when it's connected. I'm handling the USB connection and permission request. However, even after the user grants permission, my ...
0
votes
0
answers
36
views
Is it expected for an android device to only be detected by a computer on No Data Transfer mode?
I am developing an app in C# to send through Bulk Endpoint Transfer data to an android-powered device (a tablet in this case).
My tablet is configured to use USB for "No data transfer", with ...
0
votes
0
answers
52
views
Error receiving device information (IMEI, Serial No, etc.) via USB COM port in C#
I am trying to retrieve device information such as IMEI, Serial Number, and other details from a device connected to my system via USB (COM6 port) in C#. The device communicates over a serial ...
0
votes
0
answers
96
views
What should I check to solve a USB HID Write error?
I write data to host using a usb hid.
The following is the script for hid.
#!/bin/sh
usb_id=1
case "$1" in
start)
#1 mount configfs
mount -t configfs none /sys/kernel/...
0
votes
0
answers
56
views
USB camera integration into android app using android studio
I am trying to get my android tablet to get the feed from a razer kiyo usb camera connected via usb hub. This is a custom app, I am able to detect the camera and verify that it is a camera and which ...
1
vote
0
answers
98
views
How to Send Files Between Two Android Devices Via USB
I'm part of a team working on a project where we have a small Android 12 device acting as an HID device for a host Android 12 device. The idea is that they press a button on the smaller device and ...
4
votes
2
answers
252
views
Is there a systemd-independent function for getting a USB device model?
I want to get a ID_MODEL and ID_VENDOR properties of a USB device in Linux. I know its /dev/bus/usb/xxx/yyy path.
I can do it with this code that depends on systemd (cc -lsystemd test.c):
#include <...
0
votes
1
answer
251
views
ESP32-C6 USB CDC code upload does not work with example sketches
I wanted to try out the ESP32-C6-Mini chips, so I built a breakout board for it. Below, you can see a picture of my setup.
As you can see, I wanted to skip a USB-TTL-adapter and tried the USB CDC ...
0
votes
0
answers
124
views
How to allow FILES app (by Google) to access a USB stick in Kiosk mode?
I have modified the Advanced Android Kiosk Mode for my needs so it launches another app, and can also update it making the user choose an .apk file from a USB stick.
To choose the .apk file, the kiosk ...
0
votes
2
answers
125
views
How to list COM over USB ports in Powershell?
I'm trying to list COM over USB ports in Powershell.
So far, I found this command on the internet :
PS C:\> Get-CimInstance Win32_SerialPort | Select Name, Description, DeviceID
Name ...
0
votes
0
answers
51
views
Arduino SD.writeRAW() is very slow
I need to make it possible to load data from the USB connector onto the HSPI bus of an ESP32S2. I've built the following code, which works well but is very slow:
#ifndef ARDUINO_USB_MODE
#error This ...
0
votes
1
answer
140
views
USB HID Consumer Volume Increment/Decrement as relative input auto-repeats on Win10
I have implemented a rotary encoder to control a Host PC's volume through as an HID device. Here's the report descriptor:
0x05, 0x0C, /* Usage Page (Consumer). */
0x09, 0x01, /* Usage (Consumer ...
0
votes
0
answers
58
views
Why is it saying inappropriate ioctl for device for USBDEVFS_DISCONNECT?
I'm trying to write a program in assembly that cuts power/disconnects connection to a usb device of my choosing, I was told that USBDEVFS_DISCONNECT would do it, but when I execute the program, it ...
0
votes
0
answers
16
views
I have a software that will only accept input from a specific game controller and i want that to change
So I work for a company and we have just recently purchased an ROV. The controller the ROV company gave us upon purchase isnt fit for use and i want to use a different one, preferably a flight stick. ...
0
votes
1
answer
104
views
touchscreen raspberry pi phantom touch (reset fixes)
I am working on a kivy project to create some control panel for a ship (toggle lights etc). One of the screens I am also working on is a navigation using the kivy_garden.mapview. This is the screen ...
0
votes
1
answer
90
views
USB Devices not working after enabling VM-Plattform
i´m using podman with wsl. For podman to work the windows feature "VM-Plattform" needs to be active. If that´s the case podman works fine. But while "VM-Plattform" is active none ...
0
votes
1
answer
72
views
How to send an output report to a DS4 Controller connected via USB?
I'm having some problems changing the led and rumble on a DS4 controller, the project I'm working on is in Java, currently I can receive de inputData from all the buttons on the controller.
But the ...
1
vote
0
answers
116
views
USB permission not automatically granted for filtered devices in Android manifest, ACTION_USB_PERMISSION not triggered
I'm developing an Android application that manages USB devices using an external library. The MainActivity instantiates this library, which handles USB device events (connect/disconnect) and ...
-1
votes
1
answer
71
views
How to get the right ttyACMx
the command dmesg produce this output when i plug my device on a USB port
> dmesg -wH
[ +9.913990] usb 3-1.2: new high-speed USB device number 8 using xhci_hcd
[ +0.091634] usb 3-1.2: New USB ...
0
votes
1
answer
195
views
When should an USB host send a Zero Length Packet (ZLP) to an OUT bulk pipe function if the host is sending a video stream
Im writing firmware for a USB 2.0 FS host that communicates with a LTE modem via bulk pipes, ppp mode. I am a bit uncertain about the use case for ZLP when the host is streaming data to the device. If ...
0
votes
0
answers
407
views
STM32F103C8T6 -> USB unknown driver error: descriptor request failed
I have switched from Arduino to create and learn with custom STM32 boards. I followed a tutorial on how to make a simple STM32 breakout board. The design matches the tutorial and datasheet from STM32. ...
0
votes
0
answers
92
views
Android Open Accessory USB communication failing after closing and re-openning the android app
So i have an android app which communicates with a PC using AOA mode. The problem is when i close my app and re-open it i can send data from android device to PC but my listening thread does not work ...
1
vote
1
answer
63
views
Wireshark - Unused Setup Header
I'm trying to reverse engineer the RGB controls for my SteelSeries Apex 3 TKL keyboard. My end goal is to control the RGB using Python, specifically the ctrl_transfer(bmRequestType, bmRequest, wValue, ...
1
vote
0
answers
47
views
What is the formatting for PNPDeviceID?
When I get PNPDeviceID for a certain COMXX, I am getting back this: USB\VID_067B&PID_2303\5&27699D6T&0&10
I understand the 4 digits after the VID and PID, but what is the last part &...
1
vote
1
answer
370
views
UsbManager returns empty device list in emulator - even when USB device is connected via usb-passthrough
I'm debugging USB related issue due to upgrade to SDK34 and failure on Android 14. I don't have a physical device so I resort to emulator.
I chmoded the usb device: such that the device is readable/...