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.

This tag should only be used for programming-related questions involving USB, and not hardware-related questions.

USB is an acronym for Universal Serial Bus, a standard for a serial host-to-device protocol defined by the USB Implementors Forum. Today, it is the most commonly used method for connecting computers to peripherals such as keyboards, printers, phones, and data storage devices.


Versions

  • USB 1 (Full Speed) -- Released in January 1996, USB 1 specified data rates of 1.5 Mbit/s (Low-Bandwidth) and 12 Mbit/s (Full-Bandwidth).
  • USB 2 (High Speed) -- USB 2.0: Released in April 2000. Added higher maximum signaling rate of 480 Mbit/s (effective throughput up to 35 MB/s or 280 Mbit/s) (now called "Hi-Speed").
  • USB 3 (Super Speed) -- USB 3.0 was released in November 2008. The standard claims a theoretical "maximum" transmission speed of up to 5 Gbit/s (625 MB/s).
  • USB 3.1 (Super Speed Plus) -- USB 3.1 was released in July 2013. The standard claims a theoretical "maximum" transmission speed of up to 10 Gbps
  • USB 3.2 (Dual lane Super Speed Plus) -- USB 3.2 was released in September 2017. The standard mainly adds dual lane support on top of USB 3.1. Dual lane can give up to 20 Gbps of speed i.e. 2x of USB 3.1

References


7960 questions
196
votes
11 answers

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 to control it from the terminal, because I want to…
kamziro
  • 7,882
  • 9
  • 55
  • 78
150
votes
15 answers

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 greyed out. So, how can I enable USB debugging in this…
Hashken
  • 4,396
  • 7
  • 35
  • 51
144
votes
10 answers

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: DasKeyboard: Product ID: 0x1919 …
Ted Middleton
  • 6,859
  • 10
  • 51
  • 71
117
votes
9 answers

Get List of connected USB Devices

How can I get a list of all the connected USB devices on a windows computer?
Robert
  • 6,086
  • 19
  • 59
  • 84
87
votes
14 answers

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 install anything on the computer, I want android to…
Billy Moon
  • 57,113
  • 24
  • 136
  • 237
78
votes
16 answers

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 to load my app to my phone instead of my AVD?
user616076
  • 3,907
  • 8
  • 38
  • 64
76
votes
10 answers

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 recognised as a PL2303. I'm a beginner at minicom. Is…
codingJoe
  • 4,713
  • 9
  • 47
  • 61
64
votes
1 answer

Using a remote host's USB port as local USB (Linux and Windows)

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 remote-server for my USB device and I can connect to…
Caspian
  • 741
  • 1
  • 6
  • 4
64
votes
12 answers

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 weren't try to get one too!) and ended up with one…
Mark Harrison
  • 297,451
  • 125
  • 333
  • 465
61
votes
1 answer

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 could but I don't have any experience in USB…
Solenoid
  • 2,351
  • 5
  • 29
  • 48
59
votes
6 answers

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 I do adb kill-server adb devices I get: adb I …
robscure
  • 901
  • 2
  • 8
  • 11
58
votes
20 answers

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 offline WH96TNE00361 offline WH96TNE00361 …
susantjs
  • 939
  • 2
  • 10
  • 19
56
votes
4 answers

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. Would it be possible for an app installed on the PC…
Daniel Magliola
  • 30,898
  • 61
  • 164
  • 243
53
votes
2 answers

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: UsbManager.requestpermission(); is called to give…
venkat
52
votes
6 answers

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 SniffUsb is the clear winner... It works under…
dpavlin
  • 1,372
  • 2
  • 9
  • 18
1
2 3
99 100