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.
7,730
questions
0
votes
0
answers
9
views
Android Save permission for a USB device across detach, re-attach
Struggling a bit with Android >=10's UsbDevice class and detecting re-attachment of the same USB device. Prior to Android 10, I could use UsbDevice.getSerialNumber to get a unique handle for a USB ...
-1
votes
0
answers
20
views
Can i send data from an arduino to computer by Usb? [closed]
Well, i pretend to create a NFC System that i just plug the arduino into my computer and made the contact to my nfc tag. After that i want to show in a browser the name of the person who have passed ...
0
votes
0
answers
37
views
Why Does This Foreach Loop Iterate Twice?
This code will cause 2 iterations before continuing to my next code. Running this off a USB drive.
write-Host "McAfee Consumer Product Removal" -ForegroundColor Cyan
$drives = Get-PSDrive
...
-1
votes
0
answers
26
views
How should I rewrite a list of connected USB device within a while loop? (Using Python) [duplicate]
I am trying to write a code that keep an eye on the USB plug/unplug event.
The program this will go in is already quite complex, so I'm trying to keep this code simple.
My idea was to just get a list ...
0
votes
0
answers
25
views
How to change color of led's in a mouse device through c#?
I want to change colors of led lights on a mouse with c# by a clickable button. Mouse is usb connected to my pc. When i plug mouse to my computer lights light randomly. I want to change that. I don't ...
-1
votes
1
answer
16
views
Problems writing to USB drive from _www process
I have a macOS C program which is a helper app. It runs as root and has sticky permissions.
One of the jobs of this program is to backup files to an external USB drive.
When I run the program from a ...
0
votes
0
answers
20
views
AndroidStudio USB: EXTRA_PERMISSION_GRANTED returns false - always
I want to connect an USB CDC Device (an FTDI chip or a CD2010 or a custom made) to my Galaxy A12 (Android SDK 30) using the following code (AndroidStudio Chipmunk):
public class MainActivity extends ...
1
vote
0
answers
14
views
How to create IOUSBDeviceInterface without iterating IORegistry
In a project involving USB devices with a custom protocol, I can successfully enumerate the connected USB devices and work with the desired one:
io_iterator_t iter = 0;
// Get the IO registry which ...
-1
votes
0
answers
15
views
Why am I unable to install Windows XP on an Ivy Bridge cpu? [closed]
I have an Ivy Bridge cpu (i5 3470) and I tried installing both 32 bit and 64 bit versions of Windows XP from a USB. I have windows 7 Ultimate installed. When I try to boot from the installation USB ...
0
votes
0
answers
27
views
How to send ADB commands to USB Host-connected device (Oculus)
First of all, I'd just like to point out that I'm a junior dev breaking new ground here for myself. I'm trying to send an ADB command to my Oculus to change the texture quality so that I don't have to ...
0
votes
0
answers
17
views
How to send data simultaneously to 2 HID device which have the same VendorID and ProductID with HID API?
1. About the problem
I'm trying to send data store in a array called UxbTx[64] to 2 Hid devices that have the same VendorID(VID) and ProductID(PID) but differ in SerialNum (this differnce help me to ...
0
votes
0
answers
23
views
Access properties\{83da6326-97a6-4088-9453-a1923f573b29} subkey
In my console application I need to retrive some information about last connected time and last disconnected time about USB devices.
To do this I need to access to properties{83da6326-97a6-4088-9453-...
0
votes
0
answers
13
views
How do I root my fireboltt smartwatch and change its code? [closed]
I have a Fireboltt beast pro smartwatch and there is a game in that watch. So I want to get over the coding of the smartwatch and change my high score so to do that i have to root my smartwatch but i ...
0
votes
0
answers
15
views
How can I reset LG TV to factory settings from locked mode without remote and with USB?
I have an LG TV model 24lt661hbza that is locked so I can't access menu or any of the functions except for volume and changing channel. How can I reset the TV to factory settings so I can access all ...
0
votes
0
answers
10
views
Usb4java The UsbServices implementation class org.usb4java.javax.Services was not found : org.usb4java.javax.Services [closed]
I work on Raspberry Pi 3 with linux, and I want to implementation Usb4java.
I write javax.usb.properties to CLASSPATH, but when I could runt the program, I got the next error:
"The UsbServices ...
-1
votes
0
answers
11
views
USB storage stuck at read only, how to format and use the USB?
The usb storage has stuck to read only mode and I have tried all the ways over internet to change it to write mode. Please help me out.
0
votes
2
answers
36
views
Where to begin when programming USB dev boards?
I recently acquired a Microchip EVB USB7252. I can use it as a USB hub. There are some pins on the board, and I have been looking for ways to use these as an interface between my computer and other ...
1
vote
0
answers
12
views
view and control a windows 10 desktop with raspbian?
I am trying to control a windows 10 laptop from a Raspberry Pi 4 with Raspbian. I would like to do this over an HDMI and/or USB connection between the two devices. It does appear that accessing a ...
0
votes
0
answers
10
views
How to view stream of device input in binary form
I have this steering wheel device (Thrustmaster Ferrari 458 Spider) that's only intended platform to be played on, is Xbox One, though I am attempting to make drivers for it on PC (windows 10), it has ...
0
votes
0
answers
8
views
Android USB accessory using Arduino Due does not restart
I have the code from http://arduino-er.blogspot.com/2013/04/android-code-sending-command-to-arduino.html working fine except that:
If the phone goes to sleep or the screen orientation is changed or ...
0
votes
0
answers
27
views
how to read/write USB device [duplicate]
Recently I'm learning the operating system, I know how to read and write floppy disks, disks, VGA interface through IO ports, now I want to know how to control USB devices, because I didn't find the ...
0
votes
1
answer
38
views
PyUSB: reading from a USB device (2)
Unfortunately, again I am experiencing some problems with communication via USB with PyUSB under Windows. In my question about 2-3 years ago, the problem was that the vendor provided wrong ...
0
votes
0
answers
12
views
Python path error in encryption decryption function
I am attempting to use encryption key from my USB stick to decrypt a file on my computer.
The output I get from my current script (based on source: https://medium.com/codex/encrypting-your-files-using-...
-1
votes
0
answers
13
views
Cannot connect iphone to Mac
I want to use a real iPhone to debug my flutter APP. But when I connect my iPhone to my Mac, both my mac and iPhone are no reaction.
I using XCode -> window -> "Devices and Simulators" ...
0
votes
0
answers
18
views
Unable to use USB port after disconnecting and connecting the printer
I'm using pos_printer_manager to write data to pos printer through USB port via OTG. everything works fine untill I detach the printer and reconnect it again. It throughs exception that the port is ...
0
votes
0
answers
12
views
USB Transmition Isolation
after destroying a few USB ports on my computer i decided i needed USB isolation from my USBASP ISP AVR Programmer, i purchased one of these, but where the power is working and is isolated, my ...
-1
votes
0
answers
24
views
I have 3 usb respeaker array devices of same product id and vendor id and I want o use them separately. How to make sure which one Im connecting to?
The output for usb-devices:
T: Bus=01 Lev=03 Prnt=07 Port=00 Cnt=01 Dev#= 12 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=2886 ProdID=0018 Rev=03.00
S: ...
0
votes
1
answer
33
views
How can I acces a device that uses Usbccgp driver
In my project, ı need to write a program that can access an external soundcard and take discrete input sound data. The device uses isochronous data transfer and Usbccgp.sys driver. In that case, I can ...
-1
votes
1
answer
25
views
How to show Linux mass storage gadget connection speed?
I have a serial console shell connected to the Device and loaded the mass storage gadget driver and have a USB connection from the Linux Device to a PC host and I want to print the connection speed ...
-1
votes
0
answers
18
views
ADB does not see device with USB-C to USB-C cable
I have a phone that I want to get access to through adb. Here is the deal.
Working setup:
Phone -> USB-C -> USB-A -> dongle -> USB-C -> Mac
If I want to get rid of the dongle and go:
...
0
votes
0
answers
30
views
How to convert USB to TTL in software?
I'm a totally newbie and interested in physical programming like raspberry pi's. Is there any way to get the data which is intended to go to a "USB to TTL converter device" through USB(e.g. ...
0
votes
1
answer
32
views
USB 2.0 "This device cannot start. (Code 10)"
This is probably a long shot question, but I try it anyway.
I'm developing hardware using PIC Microcontrollers (MicroChip). Communication is done through a FS USB 2.0 link.
I connect the ...
0
votes
0
answers
7
views
Unable to validate syslinux.cfg syntax
I am trying to boot an appliance to a USB drive and the provided configuration file for the syslinux.cfg file seems to have some error in it. Is there any way to validate a syslinux.cfg file and its ...
0
votes
0
answers
40
views
Ubuntu does not recognize the external USB hard drive [closed]
I was formatting my USB external hard drive when it's unplugged accidentally from the PC.
Right now neither Ubuntu nor Mac can detect it.
The output of lsusb command is positive and it shows the HDD ...
0
votes
0
answers
23
views
How to detect only a connected USB flash drive path in Raspberry Pi4 using Python Script
How could I get the path of connected USB Devices(SD Card/Flash Drives) only and not the other hard drives list
in python on Raspberry Pi 4b FYI?
I am working on a project in which I have to develop a ...
0
votes
0
answers
41
views
how Printing raw from asc file with changing from LPT1 to USB001
I want to do a print of the dos program that supports lpt1 then I want to do the print by redirecting to the usb port and below the file path asc file. how can do a raw print of the asc file that is ...
-1
votes
0
answers
20
views
NodeJS/Python send ESC P commands to USB printer
For a USB connected photo printer I have documentation how to communicate with that printer. According to the documentation I have to send ESC P commands to the printer and it will return bytes as a ...
0
votes
0
answers
15
views
How can I switch my barcode scanner from keyboard to serial programmatically
I have an Electron application that is using Honeywell Xenon 1900 barcode reader to get the content of a QR code to a serial port and all is working fine, but the same computer has another application ...
1
vote
0
answers
17
views
CMSIS USB firmware for stm32f401. Fails to send device descriptor with EOVERFLOW (-75) error
I am trying to get USB device code working on my stm32f401 microcontroller. So far, I'm able to read the packets from the host, send the first device request, receive and apply the assigned address. ...
0
votes
1
answer
41
views
Cypress CyGetSignature ... libusb error is 0
I'm trying to run the test utility included in the Cypress USB-Serial SDK to create a linux USB-Serial applications for the CY7C65215A eventually
I've gone through the top-level README file and built ...
0
votes
1
answer
49
views
Multi-pointer handling in Linux via QT application
Xorg servers starting from version 1.7 supports having multiple mouse cursors in one PC.
I also know that QT provides functionality to handle mouse events and operate on them.
Question:
I want to ...
0
votes
0
answers
30
views
Creating a Python usb filter by serial number, whith on or off permitions
I'm trying to implement a python script to deatch a usb device when the variable named 'serial' don't have the specific serial number. I'm begning with:
#!/usr/bin/env python3
import re
import usb....
0
votes
1
answer
46
views
How to find USB path (tty) Ubuntu 20.04
I am running Ubuntu server 20.04 in a VM under Proxmox and I have passed trough a USB device from the host to the VM, now I can see that the VM detected this device when I do dmesg | grep usb this is ...
0
votes
1
answer
58
views
What is the best way to read a USB device using Java?
I want to write an app that is connected to a robotic arm, which is connected by USB to my PC. I want to use Java.
So far, I haven't found a reliable way to make this connection happen.
Can I get some ...
0
votes
0
answers
13
views
How to detect if a USB Port is being supplied power using python?
I have an external device which is outputting 5v power into a USB cable (it does not output data of any kind, only power). The USB cable is connected into a USB Hub, which is connected into my ...
-1
votes
0
answers
10
views
Can I downgrade android
I have been having trouble with android 10 recently because of this my USB functions are now pretty much gone I can't upload, my computer won't recognize the phone but my android 8 phone is working ...
0
votes
0
answers
27
views
USB Camera overlapping the functionality of mipi camera
I have implemented the USB camera. The MIPI camera is plugged out from the hardware. When I opened the normal camera app with the USB camera is plugged in, The USB camera started showing the preview ...
1
vote
0
answers
42
views
How can I get the product name of the device connected to a USB port (Linux) in C++?
I have two devices connected to their respective USB ports on a computer (running Ubuntu OS), each device will typically connect to the /dev/ttyACM0 or /dev/ttyACM1 ports. However, this is not fixed, ...
0
votes
0
answers
30
views
Printing checks from Usb thermal printer don't work in some devices and version android/sdk
I use flutter_usb_printer library for printing checks on usb thermal printer.
On some devices it's work, but on Google pixel 3 with android version 12 and on Google pixel 4 with android version 13, it'...
0
votes
0
answers
20
views
PySerial seems to have a read() limit
I'm trying to send a large stream of data via serial, and using the PySerial library for my purposes. However, the program freezes whenever I need to read more than somewhere between 10,000 and 15,000 ...