7,961 questions
1
vote
1
answer
24
views
UAC 2.0 Microphone USB Configuration Descriptor
I am really trying to understand the ADC2.0 spec to create a really simple USB UAC2.0 8 bit microphone. My device enumerates fine, but the driver doesn't like it (it says it cannot start).
Q1. How do ...
-5
votes
0
answers
62
views
Android USB Buffering Causes Delay in Communication [closed]
so I'm trying to build an app that sends the phone's sensor data (accelerometer, GPS, etc) to an ESP32 through serial communication
I'm not a app developer and I have little to no knowledge when it ...
0
votes
0
answers
59
views
Python loss of connection after OS USB Disconnect/Reconnect, but Python can't see the device
While I'd appreciate the answer, I'd really like to understand how to diagnose what's happening in Python.
The basic issue is that Raspberry PI OS or a driver causes some USB connections to disconnect ...
0
votes
0
answers
83
views
RS232 to USB in a hub with other device: potential loss of data?
I'm currently using a SBC (a Raspberry Pi Zero 2W) to receive data from a device (let's call it Sensor). Sensor is connected to the micro USB port on the SBC through an adaptor with FTDI FT232R USB ...
1
vote
0
answers
71
views
Read/write to USB serial device while it's in use
I have a C# application that uses the USB serial device mounted to /dev/ttyUSB0.
I need to send a status request to this device, which I can do very easily with printf "\00\48\ee\ff" > /...
3
votes
1
answer
97
views
Why does SET_INTERFACE on my Logitech QuickCam via libusb give a "LIBUSB_ERROR_PIPE", but the official program can do the same thing without issue?
As a project to learn libusb, I am writing a driver for my old Logitech QuickCam Chat from 2006. To clarify, the camera quality is awful and I have no intention of using this for anything other than ...
0
votes
0
answers
60
views
USB Driver [usb_bulk_msg]
When I was writing a USB driver, I used the usb_bulk_msg function to send data. When I used an array created with stack space, I could only send data under 8 bytes. If I sent more than 8 bytes, the ...
0
votes
1
answer
154
views
Windows 11 How do I read data from a USB device>
I have been attempting to read data from a TEMPerHUM USB temperature and humidity device.
I can read the device from Linux.
I have tried many things, pyusb, wmi, libusb, etc. None seems to work.
I get ...
1
vote
0
answers
71
views
Why isn't my device address being set correctly?
I've been trying to program a CH552 chip using assembly, however, I've ran into a bit of a problem when trying to implement USB. My device replies to the first GET_DESCRIPTOR (device) fine, as shown ...
0
votes
1
answer
47
views
Suspending USB using XHSETT
I had installed XHSETT in my laptop and suspended my USB, so usb stopped working, and then I forgot I did that.
XHSETT - https://www.usb.org/document-library/xhsett
Later When I tried to use the USB ...
0
votes
0
answers
266
views
STM32 USB Host. Virtual Port Com. FTDI and CH340
I use the stm32g0b1 microcontroller to USB Host. I use the HAL library from STMicroelectronics. Class for FS IP: Communication Host Class (Virtual Port Com). And it works great with other ...
0
votes
1
answer
87
views
USB FunctionFS Gadget: "Invalid argument" with Combined Full-Speed and High-Speed Descriptors (Kernel 4.9.118)
Problem Description
I'm developing a USB 2.0 gadget using Linux FunctionFS (ConfigFS) on an embedded device running kernel 4.9.118. My goal is to implement a vendor-specific bulk data interface that ...
1
vote
0
answers
40
views
Why does the USB stop receiving cached data when it reaches a certain amount in the official routine of xusbps_audio_ example in zynq?
Why does the USB stop receiving cached data when it reaches a certain amount in the official routine of xusbps_audio_ example in zynq? In the experiment, the address of the WrRamDiskPtr array is ...
1
vote
1
answer
69
views
Two USB Linux Kernel driver urbs are timing out
Doing some Linux Kernel USB driver learning. I've got a Seeeduino Xiao SAMD21 and have changed the VID/PID (yeah I know) so it looks like "my own" device.
The Xiao's program is simple: take ...
0
votes
1
answer
45
views
Datalogic GD4400 Scanner Outputs Encoded Data via CH340 Serial Interface
Problem Description
I have a Datalogic GD4400 barcode scanner connected to a Raspberry Pi/Linux system via a CH340 USB-to-Serial adapter. When scanning barcodes, the scanner outputs encoded data ...
2
votes
1
answer
103
views
Can I send raw image data (e.g. RGB565 or JPEG) over USB-C from an iOS app to my own screen via custom PCB?
I’m working on a personal prototype where I’m building a selfie phone case that has a custom screen on the back. The iPhone connects to the case via USB-C, and I want to display the live camera feed (...
0
votes
0
answers
50
views
Which off the shelf USB Ethernet Adapter uses the USB/RNDIS protocol?
Would like to test using the USB/RNDIS protocol. USB/RNDIS is sometimes used to pass Ethernet over USB hardware. I Understand that some USB Ethernet Adapters use this protocol. So far I have tried 2 ...
1
vote
0
answers
53
views
How can I implement minimal xHCI (USB 3.0) support in the Pintos OS?
I'm working on extending Stanford's Pintos OS to support USB 3.0 HID devices using the xHCI specification (Rev 1.2, May 2019). Currently, the OS only supports UHCI (USB 1.1) and partial EHCI (USB 2.0)....
1
vote
0
answers
39
views
How to mitigate USB latency
I have 8-channel Saleae Logic Analyzer connected to PC via USB. When I try to use higher sampling rates (16 MS/s), I receive Timeout Error stating that the analyzer ran out of buffer due to delays on ...
2
votes
0
answers
79
views
How to make Android reclaim a USB device after claimInterface() controlTransfer() releaseInterface()?
So I use a USB audio device for recording via Android's AudioRecord framework. I need to send a USB control transfer to the device, as this enables a function, that otherwise is not available under ...
0
votes
0
answers
114
views
USB host vs, gadget linux device driver
I'm trying to learn USB linux device drivers to implement a project idea I have:
Primary device is a Rasp Pi with USB port
Secondary device is a custom USB stick that I'm going to design with some ...
0
votes
0
answers
70
views
ADB Device going offline
Problem
Until yesterday my OnePlus 11R was working perfectly with Android Studio. However, since this morning, I'm facing some issues.
When connecting my device using USB, it stays connected for ...
1
vote
0
answers
92
views
Issue with USB CCID Communication on STM32F4
Hi StackOverflow Community,
I am encountering an issue while implementing USB CCID functionality on an STM32F4 MCU. I recently integrated the CCID driver from the following repository into my project:
...
0
votes
1
answer
42
views
Does Android reuse device IDs for UsbDevice objects?
In the Android API reference, UsbDevice objects have a function, getDeviceId(), that returns a unique integer ID. The API reference notes that IDs are not persistent across disconnects.
However, the ...
0
votes
1
answer
280
views
How to reliably determine which USB device under /sys/device corresponds to the plug at the front of the computer
Here my problem: most of Qnap's NAS feature a "copy" button on the front, next to a USB-A port. That button will copy the content of any hard-drive plugged to the USB port next to it.
I ...