7,957 questions
0
votes
0
answers
8
views
TUSB MSC example hanging on 'waiting for download' on the ESP32s3
I'm attempting to run the Tiny USB MSC example (Provided in the ESP-IDF github repository), and it doesn't appear to work.
Initially, the example flashes, but only outputs the below and hangs on '...
Advice
0
votes
2
replies
54
views
USB Low Speed bandwidth?
I have an embedded system where 2 microcontrollers communicate over Full Speed USB bus. The host is an iMX RT1060, the device is an LPC55S69. From EMI standpoint it would be beneficial to use Low ...
1
vote
1
answer
43
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 ...
3
votes
1
answer
148
views
Windows USB Driver refuses to accept my manufacturer string
I am homebuilding a USB driver on STM32. I have managed to get the device to enumerate which is awesome, but only when I disable all the strings (set all ID's to 0). Right now, when I set ...
0
votes
0
answers
67
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
1
answer
44
views
Mac Catalyst (MAUI): IOHID InputReportCallback not firing, IOUSBInterfaceOpen returns kIOReturnNotPermitted (0xe00002e2) for custom HID device
I am developing a .NET MAUI Mac Catalyst app (sandboxed) that communicates with a custom vendor-specific HID USB device.
Within the Catalyst app, I’m using a native iOS library (built with Objective-C ...
0
votes
0
answers
88
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
100
views
Trying to Get Serial info to separate it from other
I have a list of 12 serial COM ports and I am trying to pick only the ones made from a specific Manufacturer, "FTDI". For some reason, I cannot pull this info without using the Systems....
1
vote
0
answers
74
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" > /...
1
vote
1
answer
445
views
system_profiler SPUSBDataType not working on macOS Tahoe 26 [closed]
I’m testing on macOS Tahoe 26.0 and noticed that running the following command gives me either no output or errors:
system_profiler SPUSBDataType
On earlier versions of macOS this would list all USB ...
3
votes
1
answer
99
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
50
views
FTDI Communication Problem with Pylibftdi on a Windows Machine
I have a Digilent Nexys Video Artix-7 FPGA development board. This board has two Micro USB ports. One is used for UART-USB communication, and the other one for uploading bitstreams(as a JTAG). I ...
0
votes
0
answers
62
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
0
answers
111
views
How to connect SDK Epson EPOS on android via USB (flutter)?
I'd like to know how I can connect the Epson ePOS SDK to Android using Flutter.
From what I've learned, the SDK isn't available for download and installation in my project. Therefore, I need to write ...
0
votes
1
answer
171
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 ...
6
votes
2
answers
465
views
What does it mean to "cancel" a command in the linux kernel and how can one do so?
Context
I bought a CM749 UGREEN Bluetooth 5.4 USB adapter for my Nixos machine. It is recognized by lsusb as ID 33fa:0010 USB2.0-BT, but is not detected by KDE/Plasma's bluetooth daemon.
I dug deeper ...
1
vote
0
answers
81
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 ...
-2
votes
1
answer
94
views
Mapping Bluetooth device to USB device on linux
I am trying to share Xbox One controller that is connected to my RPI 5 bluetooth to my windows computer. In past few days, I couldn't find anything about Bluetooth over IP or Bluetooth over USB, but I ...
0
votes
1
answer
51
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 ...
1
vote
1
answer
58
views
If I enqueue multiple read commands on a USB Mass Storage device, can I be guaranteed that the responses will come back in a predictable order?
According to the USB Mass Storage Class Bulk Only Transport spec, when I want to read a block of data from a USB flash drive, I do the following:
Write a CBW describing the read request to the device'...
0
votes
0
answers
285
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 ...
2
votes
0
answers
48
views
FunctionFS fails to start with 3 endpoints (INT IN x2, BULK OUT) — error -524
I'm using FunctionFS on Linux to implement a USB gadget with 3 endpoints:
EP1 IN (Interrupt)
EP2 IN (Interrupt)
EP3 OUT (Bulk)
The gadget fails to bind to the UDC (echo <udc> > /sys/kernel/...
0
votes
1
answer
100
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 ...
2
votes
1
answer
195
views
How to Access USB Device via USB-OTG in Qt 6.9 Android App?
I'm using Qt Creator with Qt 6.9.0 to develop an Android application. The code works fine, and I can successfully build and run the app on my Android phone.
Now, I'm trying to access a USB device ...
1
vote
0
answers
45
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 ...
0
votes
1
answer
51
views
WaterRower S4 (Firmware 2.10) only responds to RESET – all other serial commands return ERROR
I’m trying to communicate with a WaterRower S4 Performance Monitor (firmware version 2.10) over USB, using standard serial communication.
The connection itself works, but I’m having trouble accessing ...
1
vote
1
answer
76
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
0
answers
53
views
Flutter POS Printer Fails After Android Reboot Unless Printer is Power Cycled
My Flutter POS app works with a Sunmi Android 13 device (dual-screen) and a Possify USB printer. Normally, printing works flawlessly. However, after rebooting the Android device, the printer stops ...
0
votes
1
answer
54
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
0
answers
49
views
Unable to read an interrupt transfer composed of multiple DATAx packets with libusb
I want to build a simple C program that uses libusb to interface with a USB device that exposes one interrupt endpoint.
This device accepts and sends data in DATAx packets composed of exactly 64 bytes ...
2
votes
1
answer
111
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
148
views
STM32 USB SOF needed for device mode when using RNDIS?
We already have a setup for a product where we don't have any free pins for USB SOF, will RNDIS device mode work without SOF signal, or I need to push my team to redesign the pinout and use SOF signal?...
0
votes
0
answers
58
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
1
answer
70
views
USB permissions windows apeared sometimes after granting permissions
I wrote the apk which use FTDI usb to serial converter.
I use Samsung Galaxy Tab Active 4 Pro 5G and Docking station https://www.gamberjohnson.com/product/7160-1418-50/
This docking staion expands 2 ...
1
vote
0
answers
58
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)....
0
votes
0
answers
68
views
When trying to use JPA with eclipse, it automatically disconnects my USB
I was trying to clone coding one of the open class on the youtube.
It was using JPA, and I was using eclipse.
JPA was occuring a problem; it was continually disconnected my USB which includes the ...
1
vote
0
answers
41
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 ...
1
vote
1
answer
113
views
I've read through the USB documentation, but i still don't understand where the prefixes for USB report descriptor usage pages and usages come from
I've read through the documentation for the USB HID class and the USB usages tables, and looked at examples provided.
Here:
https://www.usb.org/sites/default/files/hut1_6.pdf
https://www.usb.org/sites/...
2
votes
0
answers
81
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 ...
1
vote
1
answer
48
views
Why buffer size of boost::asio::serial_port::async_read_some affects function speed?
I have a USB device that replies {0x00 0xFF 0x01 0x03} when you send him {0x00,0xFF,0x01,0x02}. I'd like to implement a ping test, sending commands and computing an average response time.
Here is my ...
0
votes
0
answers
120
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
97
views
SE custom rules in AOSP
I am a junior AOSP developer, I have myservice application with type of coredomain,
type myservice, domain, coredomain, mlstrustedsubject;
I need to open functionfs objects, but adding
allow myservice ...
0
votes
0
answers
71
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 ...
0
votes
1
answer
223
views
How to write libusb code to read raw mouse data
I am a beginner with USB and libusb.
I am looking for libusb 1.0 code, capable of reading data from a usb mouse.
I have found some relevant code online, e.g. https://github.com/Mathias-L/STM32F4-...
1
vote
0
answers
94
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:
...
1
vote
0
answers
70
views
Changes in usb_deregister_device_driver() are not reflected
I changed the code in kernel-source/drivers/usb/core/driver.c to:
void usb_deregister_device_driver(struct usb_device_driver *udriver)
{
pr_info("%s: deregistering device driver %s\n",
...
0
votes
1
answer
49
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
137
views
How to setup USB Serial Device over dart/flutter?
I have an RFID Reader from a company called Metratec. I actually enjoy this reader very much and there is a detailed PDF and prewritten packages for Java, Python and .NET. Now I want to write my own ...
0
votes
1
answer
327
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 ...
2
votes
1
answer
236
views
How to find which device is plugged in to which usb port?
I am running in a simple embedded sysytem (busybox based), so prefereably answers should not be systemd/udev based, but if that is the only solution I will take it.
I have 2 usb 3.0 ports, and 2 ...