Questions tagged [usb]

HARDWARE QUESTIONS ARE OFF-TOPIC. Consider https://superuser.com if you need USB hardware help. USB is an acronym for Universal Serial Bus, a standard for a serial host-to-device protocol defined by the USB Implementors Forum.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Device path using 'usb' lib

I'm using 'usb' lib in node.js env (https://www.npmjs.com/package//usb). Everything seems to be fine but what I really need to achieve is to get the device serial path. Is it possible to do that using ...
pawcio's user avatar
  • 71
1 vote
0 answers
39 views

How to receive byte from USB using LUFA for AT90USB162?

using LUFA demo from: /Demos/Device/ClassDriver/VirtualSerial/ I cleared all the code of garbage (joystick and LEDs), all that was left was this: #include "VirtualSerial.h" ...
piro-s's user avatar
  • 11
0 votes
0 answers
46 views

How do I read an 85 FPS webcam on windows without incurring multiple frames of latency?

I am having trouble reading an ~85 FPS USB webcam Windows, on average I am measuring 85 Hz but its being read in bursts. I have a python script like below to capture images import cv2 as cv import sys ...
QueryCat's user avatar
0 votes
1 answer
31 views

Serial port reads are delayed (and bytes missing)

I have a Rasperry Pi and a Raspberry Pi Pico communicating together via serial. I was using the UART pins on both, and everything was fine in terms of communications, except some environments were ...
user1532080's user avatar
0 votes
0 answers
15 views

Udev hook to backup USB content not working, but script working

I've included a rule script in /etc/udev/rules.d to automate backup my USB content in a folder when i plug it in. student@student-VirtualBox:/etc/udev/rules.d$ cat 80-local.rules SUBSYSTEM=="...
Samuel Edi's user avatar
0 votes
0 answers
31 views

C# HidLibrary - USB HID

I'm attempting to emulate communication with a device connected via USB/HID and its accompanying software. So far, I've managed to replicate the message flow up to obtaining the descriptor and serial ...
suria suria's user avatar
0 votes
0 answers
17 views

CreateFile for \\.\usbscan0 returns ERROR_FILE_NOT_FOUND

I'm trying to find usb device by vid/pid, scanning usb ports: for (int i = 0; i < 127; i++) { char fileName[30] = ""; wsprintf(fileName, "\\\\.\\usbscan%d", i); ...
ImageLite's user avatar
0 votes
0 answers
17 views

Using STM32 as USB host to communicate with TTL

everyone! I'm trying to connect a TTL module on the CP210X chip to the STM32F401CDU6. I have attempted to set up the STM as a USB Device Virtual Port Com, but it hasn't worked. I also tried setting up ...
Shcholkin Michael's user avatar
0 votes
0 answers
22 views

usb protocol: my device is not see any next packet after set address request

i can't see any packet after i set address for usb device. hello everyone i'm writting code for usb device im use STM32F103RCT6 microcontroler for my project,because i'm not use library (hal,.. or ...
Nguyễn Nam-LRMT15-3N's user avatar
-3 votes
0 answers
81 views

How do I open a USB connected cash drawer using C#

Well i have developed a POS app using WPF with the .NET Framework v:4.8, My client wants a functionality that enables him to open his cash drawer by clicking on the button F1 (Cash drawer doesn't ...
Othman Birem's user avatar
0 votes
0 answers
18 views

Both USB Host and charging on android device

I'm looking a way to achieve simultaneous OTG and charging on Android device. How does the device detect this? My goal is to connect a self-powered custom Arduino-based board to an Android device, ...
user3700538's user avatar
0 votes
0 answers
18 views

How to use USB-serial and debug simultaneously via ONLY one USB port in Android?

I have successfully used the usb-serial package in Flutter on Windows to communicate data via UART with an external custom device. However, I'm looking to port this functionality to Android. How can I ...
Kevin Ong's user avatar
-2 votes
0 answers
14 views

How to differentiate between USB in OS?

USB (Universal Serial Bus), is a type of computer port that can charge a device and transfer data between two devices. It is rather popular because of its compatibility with many platforms and ...
Ankana Talukdar's user avatar
1 vote
0 answers
37 views

How to use USB to I2C break-out module in Windows to communicate with I2C-slave

I am using a the UMFT201XB-01 break-out board to communicate with an I2C slave. So far I installed the provided driver from FTDI. If I plug in the module, Windows Device Manager tells me that I can ...
unskilledDev's user avatar
0 votes
0 answers
23 views

Python interface to USB game controller [closed]

Using Python, what is the best way to programatically interface with a HID-compliant game controller plugged into a USB port? I tried the library pywinusb but could not get consistent data output in ...
SteveTriplett's user avatar
0 votes
0 answers
15 views

Getting speed or rpm data from kettler racer S 2018 to use in Unity Game

I wish to connect a kettler racer s to my computer and get its speed or rpm data so i can use it in a unity3D game to move the player. I am relatively new to this and somewhat lost at the moment and i'...
swiizz's user avatar
  • 1
-2 votes
0 answers
17 views

IO-Link master usb/ethernet [closed]

I have a IO-Link device that I would like to control via c++ code on a linux system. To keep it simple I would like to use ethernet or usb. I found a bunch of usb options: https://www.ifm.com/us/en/...
user155370's user avatar
0 votes
0 answers
41 views

Communication via PyUSB to Agilent E4980A

Communication to USB devices drives me crazy. It's now at least the third USB device creating problems: the first device (OWON oscilloscope) had erroneous software and wrong documentation and I ...
theozh's user avatar
  • 23.1k
0 votes
0 answers
10 views

Will Android in USB accessory mode function immediately as USB host mode after physically disconnecting a connected USB device?

We want the USB device connected to Android to act as a USB accessory when it is a USB host and to act as a USB host when it is a USB device. At this time, when the USB device connected to Android ...
Shota Saiki's user avatar
0 votes
0 answers
55 views

USB Serial For Android - Echo only

I use usb-serial-for-android project to communicate with a device pluged in USB I can detect the device, open the port and send data BUT data received is always the data I just sent before I Also ...
erbl's user avatar
  • 1
2 votes
0 answers
18 views

Multiple usb microphones/input in android?

I am using getSystemService(AUDIO_SERVICE) as AudioManager to get manager and then looking into microphones or getDevices(GET_DEVICES_INPUTS) to see what is available. I have connected powered 4 port ...
Renetik's user avatar
  • 6,025
-1 votes
0 answers
6 views

USB gadget zero test routine is configured and no generated character devices are found?

I am going to test the gadget zero USB device driver routine, but after I use configfs and load module, PC (win, linux) recognize the gadget zero USB. but I can't find the configured USB character ...
诸葛骑狗's user avatar
0 votes
1 answer
51 views

How to develop a DEXT for sending vendor SCSI commands to a USB mass storage device using USBDriverKit?

I am currently in the process of developing a DEXT for a USB based external mass storage device using the USBDriverKit framework. IOUSBHostInterface is used as the provider to communicate with the ...
abkmd's user avatar
  • 13
0 votes
0 answers
30 views

Why doesn't the MSR605X respond to my bytes being sent from a C# WPF .NET application using HidSharp?

So I wanted to play around with the MSR605X lately and found it pretty hard to control ANY aspect of the hardware. I've created a sample code to try to turn off the LEDs on the device to no avail. In ...
Ge1p's user avatar
  • 35
1 vote
1 answer
41 views

Android accessory protocol is slow (3.7 MB/s)

I want to send large image data over USB from a PC to my Android Phone. I learned about the Android accessory protocol https://developer.android.com/develop/connectivity/usb/accessory and can now send ...
Flo's user avatar
  • 33
0 votes
0 answers
23 views

Android code for receiving data from USB device by my Android cellular phone

Is connection.BulkTransfer used for transfering data in both ways? I mean: To endpoint_OUT From endpoint_IN? But if I want to receive data from endpoint_IN, how do I know how much data is waiting ...
Z.B.'s user avatar
  • 1
0 votes
1 answer
25 views

My intent is null but I should get an intent from my Broadcastreceiver

I am new to android development and I struggle on this problem for a while, it would be really nice if you can help me. :) I try to build an App where I can transfer data between my mobile phone (it ...
seaarebee's user avatar
0 votes
1 answer
48 views

The f_gets function reads one byte less than I specified

I specify in the f_gets function that 6 bytes should be read, but the f_gets function reads only 5 bytes. A USB drive is connected to the STM32F407VGT6, and a text file is located on this USB drive. ...
stm's user avatar
  • 1
-1 votes
0 answers
51 views

Use a PC to create a virtual USB server [closed]

I'm trying to find a way to create a "virtual USB server" hosted by a PC (any kind of PC, non matter which OS, these aspects will be seen later..). Basically, I would like to.. store ...
Marcoooo's user avatar
0 votes
0 answers
53 views

Fault tolerant USB HID communication

Is there a way to send fault tolerant USB communication over HID where the standard Windows driver doesn't throw BROKEN_PIPE when an error is detected? In my experience, the generic HID driver in ...
wronex's user avatar
  • 975
-1 votes
0 answers
50 views

QFileSystemModel doesn't update USB drive contents

I have a legacy Qt application with the ability to copy files to a USB drive. The application shows 2 treeviews, one for local files, one for files on the USB drive. Problem: I copy a file from the ...
orangelo96's user avatar
0 votes
1 answer
33 views

ADB on docker container does not read Android device connected to host

So short story long, I want to containerise my Appium android automation tests. I have downloaded all the required tools on the container: nvm node appium uiautomator2 android-sdk android-tools-adb ...
Youssef Ehab's user avatar
0 votes
0 answers
7 views

How can I reprogram a wireless music receiver to turn it into a mp3 player?

I was wondering if it is possible to transform a wireless music receiver into a mp3 player. As a wireless music receiver has both a jack and a usb, I was wondering if it could somehow be hacked to ...
ScriptKitty's user avatar
0 votes
0 answers
52 views

My Scale Controller Software fails to read the scale after around 5 minutes of being connected

I've created some software to control USB scales using the hidusb crate. Heres a general overview of my control flow: Each frame of the app (10 per second): Get the HidApi singleton. Open the Hid ...
Ben Faerber's user avatar
0 votes
0 answers
61 views

Setting up RNDIS and ECM in Android on same network interface

I'm trying to setup USB tethering support on an Android 10 based device using configfs to setup the USB Gadget. Right now I'm trying to setup both RNDIS and CDC ECM so that you can connect to it using ...
Axenth's user avatar
  • 73
0 votes
1 answer
28 views

Where is the table for HID Global Items?

I looked through the HID Usage Tables, and I can understand which codes correspond to which in a report descriptor, for example a mouse or a keyboard. But I couldn't find anything both in the Usage ...
Alif Ahsan Nibir's user avatar
0 votes
0 answers
17 views

Error when using Control_Surface: usb_midi_handleSysExPartial cast error

When trying to compile the following code in Arduino IDE using the Control_Surface MIDI library, I stumble upon a cast error coming from usb_midi_handleSysExPartial function in the usb_midi.h library. ...
HCKRMVT's user avatar
  • 365
0 votes
0 answers
48 views

How do I send (and receive) raw data over USB through the HID protocol?

I have a Seeed Studio XIAO ESP32-S3, and I want to send data from an IMU (ICM20948) to my computer through USB using the HID protocol. To build towards that, I first want to send one or a series of ...
Alif Ahsan Nibir's user avatar
0 votes
0 answers
31 views

problems with usb virtual com port stm32f769 discovery

I am trying to initialise VCP through usb on n stm32f769 diso. The following function seems happy enough. But nothing happens. ioreg -p IOUSB doesn't detect anything Where do I look next? I am using ...
mr oli's user avatar
  • 1
1 vote
1 answer
45 views

Serial port (USB) status, powering off a peripheral device vs. unplugging it?

A few years ago, I wrote a little program in PyQt5 which monitored changes in the output from QSerialPortInfo.availablePorts() to produce a live information display, showing devices which are ...
John Ladasky's user avatar
  • 1,046
1 vote
1 answer
116 views

Change Audio Source for Speech Recognition - Android

The problem is that we are using an HDMI capture device to renderer frame and audio. The device uses UAC protocol which is registered as an input audio device and selected as the default source of ...
Qamar's user avatar
  • 4,987
0 votes
0 answers
25 views

How to emulate a HID device (mouse) on rPI Zero

I am trying to get my RaspberryPi Zero to act as a USB mouse on my Macbook (OSX). I followed this guide (pi-zero as universal usb stick) Sorry, but it's a German guide. As I understood it statse that ...
Juergen's user avatar
  • 51
1 vote
0 answers
46 views

Opencv videocapture can not open 4 cameras simultaneously

I have four usb camers mounted via usb hub. they are video4,video6,video8 and video10. When I open the camera one by one, they works fine. When I open three cameras together, they still works fine. ...
HC S's user avatar
  • 11
0 votes
0 answers
60 views

adb on ubuntu won't connect to my android phone via usb or wifi

I am unable to connect to android phone using adb on my ubuntu computer. I have enabled Developer Options on the Android phones and enabled USB debugging After connecting the phone with the USB cable, ...
noah's user avatar
  • 11
0 votes
1 answer
28 views

How to write API to get signal EEG raw data from Emotiv's USB Receiver Device

How to write API to get signal EEG raw data from emotiv flex without their pre paid software ? , Normally it will receive signals from the device transmitted via USB via bluetooth and displayed on ...
Anh Phung's user avatar
0 votes
1 answer
14 views

How can I understand the difference between ethernet controller over PCie and USB

I need to write an ethernet driver for ASIX AX-88179-(USB 3.0 ethernet controller) for a proprietary OS. Can please someone guide me how can I understand the difference between ethernet controller ...
Ravi's user avatar
  • 1
0 votes
1 answer
49 views

Dualshock4 and Joystick API [Linux]

I'm running Debian 12 on an X64 machine. I plugged in my Dualshock4 controller by USB and I can read from /dev/input/js0 using the joystick API https://www.kernel.org/doc/Documentation/input/joystick-...
Nigel Redding's user avatar
0 votes
1 answer
24 views

Android Persistent USB Permissions (Allow always) showing but failing to allow permission always

in my new android project, I have a broadcast receiver that obtains a usb device and requests permissions if needed. I also have an intent filter on the activity that has the vendor ids it should ...
Jamie Ward's user avatar
0 votes
0 answers
49 views

USB Device driver failed to send descriptor / USB enumeraion

I am writing a usb driver from scratch on STM32F4 to work as a msc deivce. However it always failed at enumeration process. Here is a sequence of events happened when I tested it: On start, it ...
David's user avatar
  • 17
0 votes
0 answers
10 views

USB SUSPEND MODE

Every single guide I read about USB suspend specifies that after HOST stops sending SOF keep alive tokens and after 3ms of IDLE USB device would enter SUSPEND. Do anyone know cases where HOST stops ...
ypm's user avatar
  • 9

1
2 3 4 5
160