8,022
questions
0
votes
0
answers
5
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/...
0
votes
0
answers
15
views
Read USB isochronous data with libusb, usbDK. Reading USB Webcam Stream
I want to read isochronous data from my usb webcam. I am using Windows 11, C++, and the device's driver is not WinUSB. So I am using UsbDK for the backend of libusb.
What I want is this:
This is the ...
0
votes
0
answers
26
views
Programatically stream using USBPcap (Windows USB)
I am trying to capture USB traffic in realtime on Windows. I installed USBPcap and was able to invoke USBPcapCMD.exe to save traffic to a file, as well as to output garbled output on the command line ...
0
votes
1
answer
20
views
nanoFramework - using windows as a target with a USB to I2C converter
Is it possible to use nanoFramework with a USB top I2C serial converter so that it may be used on a Windows 10/11 client.
If so, is there a recommended hardware USB/I2C device.
0
votes
0
answers
16
views
Nodejs USB thermal-printer
I need help configuring my printer for the project. I am working with a Windows system and the connection is via USB. The printer configuration does not find the interface port. Windows does detect ...
0
votes
0
answers
41
views
Detect connection usb device(storage) to IOS in MAUI
I have usb flash drive which connect to Iphone XR via adapter.
I want to detect when device was connected to Iphone.
I read this links and try to write something similar
xamarin link
swift link
...
-1
votes
0
answers
28
views
How to get the volume of the host in Linux UAC2.0
May I ask how to obtain data on PC volume adjustment in Linux uac2.0? Now, the volume of a PC can be controlled through hid, and I want to adjust the volume of the device through a PC as well.
The ...
0
votes
1
answer
42
views
STM32H5 development board transplant USBX send data encountered a bug, how should I go troubleshooting
I ported a USBX using the stm32H5 development board, and then created a task to send data using FreeRtos, but the task runs three times before it successfully sends data once. I tried debugging with ...
0
votes
0
answers
39
views
Where do the `values` for `MSC_SCAN` in `evdev` come from?
If you run something like
sudo evtest /dev/input/event7
where event7 corresponds to (say) a keyboard and you press a key, you get a report like:
Event: time 1725511187.487035, type 4 (EV_MSC), code 4 ...
0
votes
0
answers
29
views
Failing to read USB stick with xHCI
I'm writing an x86_64 OS and testing it on qemu pc. I'm trying to make a very minimal and rough implementation of an xHCI driver, to read from the usb stick I use for booting. I have located the MMIO ...
-2
votes
0
answers
15
views
Does formatting a pen drive create any specific file on the drive? [closed]
I recently encountered a question during a technical interview that left me uncertain. The interviewer asked if any specific file is created when formatting a pen drive. My understanding is that no ...
0
votes
0
answers
60
views
Can't write to HID device using Device.Net library
I am trying to communicate with an HID device (STM32) using the Device.Net library. At the moment I have to transmit 256 bytes (including ReportID) from my PC, which represents the device's status ...
0
votes
0
answers
34
views
problem in android re-establish connection after USBOutTransferResult's status show OK
first, i am new to webusb and usb programming. i just want to make this thing (https://medium.com/@denyskarpov/send-android-application-data-directly-to-browser-with-android-accessory-mode-webusb-...
0
votes
0
answers
28
views
Capture Multiple Interfaces on tshark [closed]
I want to capture multiple interfaces at once using tshark. On Wireshark this is easy, i can just selcet them in the UI and view all of those selected interfaces at once. I want to do the same with ...
0
votes
0
answers
33
views
Cross-platform USB communication via HID device
I am trying to create a cross-platform app with .net maui. The purpose of the app is to be able to communicate with a USB device (HID) by sending and receiving raw data.
After much research I managed ...
1
vote
1
answer
31
views
Make leds accessible from hid device
i have a winwing rudder peddal which has three leds, but the leds are not direct accessible from usb hid evdev and
/sys/bus/hid/devices/0003:xxxx/input/inputxx/capabilities/led
reports 0.
The report ...
0
votes
0
answers
70
views
How to send Unicode in a USB HID report?
There's a question with almost an exact name name. The answer states that for (general) Unicode characters his solution was OS-dependent.
However, the HID Usage Tables 1.5 doc has a dedicated Usage ...
0
votes
0
answers
10
views
libusb_get_next_timeout always returns 0
I am trying to implement asynchronous event handling using libusb library.
Currently I am trying to call handle event through API
libusb_handle_events(context, &tv)
So before calling ...
0
votes
0
answers
184
views
ESP32s3 as JTAG debugger
I'm trying to use ESP32s3 as JTAG debugger for my ESP32d and after spend some time it seems I'm stuck. There is too many ongoing errors and too little understanding of what happening.
Port layout: ...
0
votes
0
answers
21
views
Problem is Cosmos oskit (usb mouse on real hardware)
I coded a simple OS in cosmos c# nad on VM and it works fine. When I build it on a real hardware, the mouse does not move. I discovered that cosmos does not support USB mouses and Keyboards. Did ...
-1
votes
0
answers
17
views
Is there a way to force getActiveUsbConfiguration() of class UsbConfiguration to reset in java?
As the question states, I am wondering if there is a way to force getActiveUsbConfiguration() to reset the configuration.
Preface: I have an application where I connect to Scales. I have the react ...
0
votes
1
answer
29
views
Why is hidapi no longer showing any devices?
I have USB realtime clock (RTC) which connects to an embedded linux device. The RTC is accessed over i2c, and the i2c is exposed over USB. I access the RTC via the PyMCP2221A module, which in turn ...
0
votes
0
answers
18
views
Directly change the data pins on USB?
Using the usb-a pinout Data+ & Data- can you manually toggle between 0 and 1 (powered and not) or take in input using pyserial by just using the Data+ & Data-? Could this be done with usb-c ...
0
votes
0
answers
81
views
STM32: read data in device sent by host over USB HID
In an STM32CubeIDE USB HID project for an STM32F103C8 board I can send data from the device to the host using the USBD_HID_SendReport() function, like so:
USBD_HID_SendReport(&hUsbDeviceFS, (...
0
votes
0
answers
52
views
ttyACM Increasing maximum USB packet size
I am working with a virtual serial port over USB (using the ACM driver). I have noticed that, when parsing some packets, I am missing data. After putting a bunch of log statements in, I noticed that ...
0
votes
0
answers
52
views
cannot access USB webcam within Raspian OS in a VM
I have been trying to get some code that I got from github to run but I keep getting the error cannot open camera by Index.I am using opencv.I am running raspbian os on a vm. my webcam shows up on ...
0
votes
1
answer
35
views
How to read a file from an external usb drive connected to android, java solution
I have a React Native application where I need to find a specific file, DataXYZ.txt, when an external USB device is connected and be able to share it. Since, to my knowledge, React Native does not ...
0
votes
0
answers
29
views
Is Notification endpoint in USB CDC required?
Usecase
I am implementing USB Host using GD32F405 MCU to communicate with USB Devices, that implement CDC protocol.
I have a case, where USB Device is Android-based device. We have UI APP designed by ...
0
votes
0
answers
23
views
USB CDC init sequence. Two issues with setup messages
I am very new to USB programming.
I am working on a full speed USB peripheral.
For now I have two problems, which may be connected to each other.
The host asks for a device qualifier, which should ...
0
votes
1
answer
36
views
USB CDC freezes (Host to Device transfers)
My setup
I try to use USB FS Host on GD32F405 (=STM32) microcontroller. I use CMSIS and operate directly on registers.
I have Android device, that is working as VCP (Virtual COM port) by default and ...
-1
votes
0
answers
13
views
Factory Machine [E154 Lcard ADC/DAC] Emulation
There is software for Window10 that controls the balancing machine, in it I cannot get to some windows without connecting to the machine, however, I do not always have the opportunity to connect to ...
0
votes
0
answers
19
views
How to Sign a JSON Using USB DSC Hardware
I am working on a project where I need to sign a JSON object using a Digital Signature Certificate (DSC) stored on a USB token.
I understand that the private key is not directly extractable from the ...
0
votes
0
answers
65
views
USB not working in u-boot on Raspberry Pi 4B with custom Yocto image
On my Raspberry Pi 4B board, I'm trying to load file from USB during my boot.scr script, but when I call USB start or USB reset command, I get following error:
starting USB...
Bus xhci_pci: ...
0
votes
0
answers
42
views
How to passthrough USB in Android Studio emulator
I really, really would like to use and test my USB device through the emulator on android studio, and not have to resort to pluging it into a physical device.
There has to be a way to do this, I just ...
0
votes
0
answers
46
views
Pi pico acting as a USB HID keyboard device for windows
I am trying to make a raspberry pi pico act as a USB HID keyboard. To do so I am using freeRTOS and tinyUSB library. So far I managed to make the code work on linux (elementary OS) but not in Windows ...
0
votes
0
answers
21
views
USB HID mouse scrolling: how to increase granularity
I'm working on a project to reuse a laptop touchpad. I'm interfacing it with an Atmel Mega32u4 microcontroller and present it as a USB HID mouse to the host.
Everything is functioning well. But I'm a ...
0
votes
0
answers
17
views
Android USB_DEVICE_ATTACHED persistent permission for Service
I have an Android service application with a USB host connection to a CDC device.
How can I set permament USB permission without auto start Activity?
I found lot of examples with intent-filter android....
0
votes
0
answers
38
views
Get files from USB storage device on android
I do not know how to access files on an USB device from android device.
I can get Device
UsbManager manager = (UsbManager)act.GetSystemService(Context.UsbService); IDictionary<string, UsbDevice> ...
0
votes
0
answers
27
views
Cannot Duplicate Reverse Engineered USB Commands from Wireshark Using PyUSB on Linux
I'm attempting to reverse engineer a USB HID device with a display on it. It has 4 endpoints (two interfaces), with two endpoints as IN and two endpoints as OUT. I'm duplicating some of the commands ...
0
votes
0
answers
23
views
Send APDU command over USB Android Java
I am trying to build plugin for react native that allows me to read data from driver card data, but non stop I am receiving error from data reading.
Here is a code
package com.plainreactnativeapp;
...
0
votes
0
answers
38
views
How to turn on or off the LEDs of an USB keyboard?
I am developing an ESP32S3-based device that has to be able to host a standard USB keyboard
The "usb_host_lib" example (https://github.com/espressif/esp-idf/tree/master/examples/peripherals/...
0
votes
1
answer
16
views
Is there any way to get information about a hardware keyboard connected to an Android device?
I've looked everywhere but can't find an answer specifically for hardware keyboards.
I've tried checking the devices list from UsbManager but it comes up empty.
I am able to detect whether a hardware ...
0
votes
0
answers
19
views
How to Retrieve USB String Descriptors from a CDC device in UWP
This is a different angle on the same question posed here. I've been trying to amalgamate advice from here and here, as well as various other places whose links I don't have handy.
I have an embedded ...
1
vote
0
answers
25
views
Python: detect regularly disconnecting faulty USB device and reinitialize instance
I have a USB device that sometimes sends serial data through USB port. Issue is that the device is faulty and sometimes for no reason it disconnects and connects again to PC. Not too large of an issue,...
0
votes
0
answers
13
views
error during backing up my pc with windows 11 on external drive?
error encountered
I'm trying to back up my Windows 11 system using the Control Panel, but I'm encountering an error (0x800700E1) stating that the operation did not complete because the file contains a ...
0
votes
0
answers
42
views
Pairing Linux hiddev file with specific device in .NET C#
On my Linux system I have 2 hiddev files (there could be more in the future):
> ls /dev/usb
hiddev0 hiddev1 lp2
And I have a bunch of USB devices:
> lsusb
Bus 001 Device 001: ID 1d6b:0002 ...
0
votes
0
answers
160
views
USB connection to Zebra printer in C#
I've been tasked with establishing a USB connection which I can use to send and receive data. More specifically, I need to send ZPL commands to a Zebra Label Printer ZD421 and the whole process needs ...
0
votes
0
answers
57
views
USB Communication between android App and PC Using C#
I am trying to interface an android app with a windows PC. The android tablet will act as the slave and the PC has the host. The PC will run a c# windows service, does any know what type of C# is ...
0
votes
0
answers
72
views
Uncheck "Allow the computer to turn off this device to save power" programatically in Windows 11
I have several computers with cameras connected to them via USB. I figured that after more than 30 hours of utilization, the cameras would disconnect from the computer. The reason seem to be related ...
0
votes
0
answers
177
views
How Raspberry Pi Pico Connect The USB Device?
I have a raspberry pi pico, a usb storage device, the usb lines with D+, D-, VCC and GUN. My develop environment is pico-sdk.
I want to connect the usb storage device to the raspberry pi pico, but I ...