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.
8,016
questions
201
votes
11
answers
343k
views
Controlling a USB power supply (on/off) with Linux
Is it possible to turn on/off power supplies from USB manually with Linux?
There's this external USB cooling fan (the kind you use to cool yourself off, not the PC), and it would be nice to be able ...
154
votes
17
answers
198k
views
USB Debugging option greyed out
I have an LG-E405 phone running Android 2.3.6.
I connected my phone with a USB cable and selected the mode as Charge Only.
Now when I try to turn on USB Debugging, I find that that the option is ...
153
votes
9
answers
174k
views
Is there an equivalent of lsusb for OS X
This question seems to be all over google, but the answers all point to using System Profiler. That's nice, but with System Profiler all you get is something that looks like this:
...
117
votes
10
answers
251k
views
Get List of connected USB Devices
How can I get a list of all the connected USB devices on a windows computer?
91
votes
14
answers
148k
views
Is it possible to program Android to act as physical USB keyboard?
What I really want to know is whether it is a hardware problem, or a software problem. Could I plug my android phone into a computer via USB and have it act as a hardware keyboard. I do not want to ...
81
votes
11
answers
681k
views
How do I connect to a terminal to a serial-to-USB device on Ubuntu 10.10 (Maverick Meerkat)?
I am trying to connect minicom to a serial device that is connected via a USB-to-serial adapter. This is a PL2303 and from everything I've read no additional drivers are required. The device is ...
78
votes
16
answers
226k
views
How to load my app from Eclipse to my Android phone instead of AVD
I'm quite new to Android and have been using an AVD to debug my app so far. However, I want to start checking the media options and therfore need to start using my Android phone. How do I get Eclipse ...
65
votes
1
answer
120k
views
Using a remote host's USB port as local USB (Linux and Windows) [closed]
I have a USB device that reads data from a system and transfers them to the computer. I am wondering if it's possible to have a Linux single board PC (i.e. Raspberry Pi) to run a script and be a ...
65
votes
12
answers
111k
views
Linux USB: turning the power on and off?
How can I programmatically enable and disable the power to a particular USB port on Linux? Is such a thing even possible? Mac answers appreciated as well!
I was trying for a BOC (don't pretend you ...
61
votes
1
answer
36k
views
Android USB host read from device
I'm trying to get some data out of a USB device connected to my Android phone that is on host mode. I'm able to send data to it, but reading fails.
I've looked at several examples and tried all I ...
59
votes
6
answers
34k
views
macbook adb cannot open interface
I am encountering a problem with Android ADB debugging through USB.
Using Macbook Air 2013 and trying to connect Nexus 6 dev phone.
On the MAC Android Studio, android latest sdk is installed.
When ...
58
votes
20
answers
166k
views
Why does adb return offline after the device string?
I use "adb devices" to get following result. Only one device is connected to PC by USB, but we get 8 lines of result.
Could anyone suggest the reason?
WH96TNE00361 offline
WH96TNE00361 ...
56
votes
4
answers
63k
views
Android apps, communicating with a device plugged in the USB port
I'm thinking about an Android app (with possibly an accompanying physical device), and I'm trying to figure out whether this is something that's feasible.
1) Let's say I plug my Android to my PC. ...
55
votes
2
answers
64k
views
USB device access pop-up suppression?
When a USB device is connected to the Android tablet, a pop-up appears asking for user-permission. I want to suppress this as the client does not want it. How should I go about that?
In the code:
...
54
votes
6
answers
122k
views
How to sniff a USB port under Windows?
From time to time, I need to dump USB traffic under Windows, mostly to support hardware under Linux, so my primary goal is to produce dump files for protocol analysis.
For USB traffic, it seems that ...
50
votes
11
answers
122k
views
Working with USB devices in .NET
Using .Net (C#), how can you work with USB devices?
How can you detect USB events (connections/disconnections) and how do you communicate with devices (read/write).
Is there a native .Net solution ...
50
votes
1
answer
88k
views
How safely remove a USB flash disk via the command line [closed]
If your shell script helps you to safely remove your flash disk after finishing its job. The solution is expected to meet the following needs:
Suppose the flash disk is mounted as /media/A together ...
47
votes
7
answers
212k
views
Simple way to query connected USB devices info in Python?
How can we query connected USB devices info in Python?
I want to get UID Device Name (ex: SonyEricsson W660), path to device (ex: /dev/ttyACM0)
And also what would be the best Parameter out of above ...
45
votes
3
answers
4k
views
Multichannel USB recording with Java Sound API?
I'm trying to record/process some audio from three usb microphones with Java Sound on Snow Leopard (but can switch to Windows if it fixes things). Problem is, when I try to use the mixer that ...
44
votes
2
answers
78k
views
How to emulate USB devices?
The rest of my team will make for my application a simple non-standard USB microphone, but until they finish it I will have to emulate it, for integration testing purposes.
Is there any risk in a ...
42
votes
2
answers
90k
views
What's the difference between "COM", "USB", "Serial Port"? [closed]
I am confused about the these 3 concepts.
My understanding is, Serial Port usually means RS-232 compatible port (RS = Recommended Standard). USB stands for Universal Serial Bus. So its name contains ...
42
votes
4
answers
3k
views
USB bulkTransfer between Android tablet and camera
I would like to exchange data/commands between a camera and an Android tablet device using the bulkTransfer function. I wrote this Activity, but the method bulkTransfer returns -1 (error status). Why ...
41
votes
4
answers
56k
views
Can I control the architecture (32bit vs 64bit) when building a pyinstaller executable?
Short Question
Is there any way to control / guarantee the architecture (32bit vs 64bit) when building a pyinstaller executable?
Background
I migrated from py2exe to pyinstaller because of the lack ...
40
votes
4
answers
8k
views
Android USB Host - bulkTransfer() is losing data
I'm trying to receive data from a custom device based on an FTDI 2232H chip.
I am using a simple Async FIFO mode, and the incoming data rate is 3.2MB/sec.
Everything works perfectly with test code ...
39
votes
14
answers
120k
views
Could not recognize my android device on mac
I am trying to connect my android device on mac to test application I developed.
First I installed USB driver, then I activated in my phone the developer option by tapping on Build Number and then ...
39
votes
4
answers
46k
views
How can I listen for 'usb device inserted' events in Linux, in Python?
I'd like to write a Python script for Amarok in Linux to automatically copy the stackoverflow podcast to my player. When I plug in the player, it would mount the drive, copy any pending podcasts, and ...
39
votes
13
answers
64k
views
bypass android usb host permission confirmation dialog
I want to use android in industry,
I can connect to Profilic and Ftdi USB to Serial chips with slickdevlabs.com library without any problem.
The application has a service and it starts on boot,...
39
votes
3
answers
27k
views
Android 3.1 USB-Host - BroadcastReceiver does not receive USB_DEVICE_ATTACHED
I worked through the description and samples for USB host at developer.android.com to detect attached and detached USB-devices.
If I use an intent-filter in the manifest file to start my application ...
39
votes
12
answers
60k
views
How to programmatically unplug & replug an arbitrary USB device?
I'm trying to fix a non-responsive USB device that's masquerading as a virtual COM port. Manual replugging works, but there may be up to 12 of these units. Is there an API command to do the ...
37
votes
4
answers
87k
views
Connect USB device to Android Emulator?
We've been looking into Android 3.1+ and its ability to read/write to USB devices connected to the OTG/Host port.
I've found some code examples that allow me to detect and read/write to a USB HID ...
37
votes
7
answers
124k
views
"The semaphore timeout period has expired" error for USB connection
I'm getting this error...
The semaphore timeout period has expired.
On this line...
ThePorts.ActivePort1.Open();
...but I only get it from time to time. When it happens, it happens over and ...
37
votes
1
answer
4k
views
Android - Losing incoming (hi-speed) USB data
When using Android, I'm losing data on an incoming USB data stream that I do not lose when reading the same device/stream in Windows. (I know that Android is not a real-time OS, but neither is Windows,...
37
votes
1
answer
4k
views
Android USB host mode "soft-mode" drivers for standard class-compliant USB devices
Now that the Android APIs support working directly with USB devices (since 3.1), I am curious if there has been any work to create "soft-mode" drivers for some of the more popular class-compliant ...
36
votes
5
answers
72k
views
Power off an USB device in software on Windows
I would like to power cycle an USB device through software on Windows.
I am doing development on a small USB power microcontroller. This chip will revert to native behavior on a power cycle and allow ...
34
votes
6
answers
111k
views
How to access USB ports in java [closed]
I'm trying to write a java application that accesses the usb ports to read from and write to a device connected through usb. The problem I face is that I don't know what exactly to use in java to do ...
34
votes
2
answers
51k
views
How do I intercept messages from a USB device on Linux?
I have a popular drawing tablet that I connect to my PC with USB. Once connected, the tablet detects hand movements and manipulates the pointer accordingly. Somewhere, the tablet is transmitting this ...
34
votes
4
answers
49k
views
What is the minimum latency of USB 3.0
First up, I don't know much about USB, so apologies in advance if my question is wrong.
In USB 2.0 the polling interval was 0.125ms, so the best possible latency for the host to read some data from ...
33
votes
11
answers
54k
views
Nexus 10 - not visible to adb on Windows 7 or Linux
adb doesn't recognize my Nexus 10 on Windows 7. Here's what I've done:
Installed the SDK and USB driver from Google. Windows 7 sees the tablet as an 'Android ADB Interface.'
Put the tablet in ...
33
votes
11
answers
43k
views
Control USB port's power?
Does anybody know how to control USB pins on a certain USB port? I think it is definately possible in assembler but what about C++ or C#?
I want to be able to use USB battery as a power supply for an ...
32
votes
3
answers
41k
views
Safely remove a USB drive using the Win32 API?
How do I remove a USB drive using the Win32 API? I do a lot of work on embedded systems and on one of these I have to copy my programs on a USB stick and insert it into the target hardware.
Since I ...
31
votes
5
answers
93k
views
device descriptor read/64, error -110
I have a storage server running openmediavault which is based on debian.
The OS is in a USB 3.0 Stick pluged directly on the motherboard (no USB-Hub or sth).
The system was running fine for about 3 ...
31
votes
5
answers
44k
views
Is there an easy way to put my entire installation of Intellij on a USB stick?
I'm considering switching from Eclipse to Intellij. One thing I like about Eclipse is that the whole installation is just a folder, and I can put that on a USB stick and copy it to another computer ...
31
votes
3
answers
38k
views
How to force driver to device match in Linux?
I have a piece of USB hardware, for which I know the driver.
However, the vendor id and product id do not match the VID, PID pair registered in the driver.
Is there a way in Linux to force a driver to ...
29
votes
3
answers
59k
views
Eclipse Android SDK cannot see new Samsung Galaxy S4 device via a USB connection
Using Eclipse (Juno SR2) with all the latest updates for Android (ADT plugin v21.1.0) cannot see the new Galaxy S4 as an available device via the USB connection.
Per the Samsung website the correct ...
29
votes
3
answers
25k
views
Simulating a keyboard's output (making a computer pose as another computer's keyboard)
I want to be able to connect a computer A's USB port to computer B's USB port so as to make computer A act as computer B's keyboard.
Any idea how I would go about doing that?
I'm not looking for a ...
28
votes
11
answers
30k
views
USB_DEVICE_ATTACHED Intent not firing
Has anyone out there been able to get the android.hardware.usb.action.USB_DEVICE_ATTACHED" to work?
Ok so i'm trying to use the new usb host mode features to detect when a usb device is attached. For ...
28
votes
3
answers
26k
views
Java USB library [closed]
Is there a good Java USB API i can use? I tried JUSB but it doesn't seem to work. It's also very old, no updates since 2001.
27
votes
7
answers
69k
views
Debug device connected by USB to VirtualBox's host, from Android-Studio inside VM
I am trying to get mono for android (aka monodroid) working within a windows 7 virtual machine on virtualbox but I am having issues with the adb connection to my phone. When I run "adb devices" to ...
27
votes
8
answers
32k
views
How can I limit the cache used by copying so there is still memory available for other caches?
Basic situation:
I am copying some NTFS disks in openSUSE. Each one is 2 TB. When I do this, the system runs slow.
My guesses:
I believe it is likely due to caching. Linux decides to discard useful ...
27
votes
3
answers
84k
views
Use USB Camera on Android application
I need to display a video transmitted by an USB Camera connected to my tablet on Android 3.2.
How can I do this?
I can't use the tablet's camera, because my tablet is fixed on board.