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
28
votes
11 answers

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 my purposes i want to be notified any time a…
D-T
  • 441
  • 1
  • 4
  • 6
28
votes
5 answers

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 Months and 2 days ago I got this errors: usb 1-3:…
mxcd
  • 1,954
  • 2
  • 25
  • 38
27
votes
3 answers

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.
neoffreeman
  • 271
  • 1
  • 3
  • 4
27
votes
7 answers

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 list the devices present it show up no problem, but…
Brian
  • 951
  • 2
  • 10
  • 20
26
votes
5 answers

How do I automatically run an application on USB attach or CD insert on Mac OS X?

Is there any way to automatically launch an application on USB attach or CD insert on Mac OS X? it's easy on Windows, but I found that AutoRun.Inf does not work on the Mac at all.
Yigang Wu
  • 3,596
  • 5
  • 40
  • 54
26
votes
8 answers

.NET API for HID (USB)?

Is there an API in .NET (C#) for using USB HID (human interface) devices?
jco
  • 1,335
  • 3
  • 17
  • 29
26
votes
3 answers

Turning off a single usb device... again

I know that this topic has been discussed many times, but none of the answers helped me. For the record, i'm running Debian. The deal is: I bought an usb powered led lamp, which is very simple and doesn't even have an on/off switch (it works and is…
user2772761
  • 261
  • 1
  • 3
  • 3
26
votes
2 answers

Android USB OTG: programmatically turn off power to the port

Suppose I have a USB-powered LED lamp connected through a USB OTG adapter to a Toshiba Excite 10 tablet running Android 4.0.3, which provides the power. I want to programmatically turn the USB OTG host port's power pins on and off from an app.…
AlcubierreDrive
  • 3,654
  • 2
  • 29
  • 45
26
votes
8 answers

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 caches (for example, KDE 4 bloat, virtual machine…
Peter
  • 3,067
  • 2
  • 17
  • 18
25
votes
9 answers

Send raw ZPL to Zebra printer via USB

Typically, when I plug in my Zebra LP 2844-Z to the USB port, the computer sees it as a printer and I can print to it from notepad like any other generic printer. However, my application has some bar code features. My application parses some input…
Jason 'Bug' Fenter
  • 1,616
  • 1
  • 16
  • 27
25
votes
4 answers

Detecting USB Insertion / Removal Events in Windows using C++

I am writing an extension for an existing application that needs to handle USB insertion/removal events. I know the VID/PID of the device of interest. However, I don't have access to the window handle, so I don't know if RegisterDeviceNotification…
Jim Fell
  • 13,750
  • 36
  • 127
  • 202
25
votes
4 answers

Failed to attach the USB device SEGGER J-Link [0100] to the virtual machine WINDOWS 7

I am running Windows 7 inside Mac OS X with VirtualBox, I used a BLE inside W7 without any problem. Then I used the BLE USB in the Mac, and when I try to use it again in the W& I got this message: Failed to attach the USB device SEGGER J-Link [0100]…
25
votes
5 answers

Programmable USB dongles

Where can I buy a programmable USB dongle that supports C as a development language?
Sakthikannan
  • 463
  • 3
  • 11
  • 17
24
votes
1 answer

How to install Wireshark on Linux and capture USB traffic?

I have encountered numerous problems in the installation of Wireshark, and the capture of USB traffic, especially due to user permissions. How to install Wireshark on Linux and capture USB traffic?
matthieu
  • 1,412
  • 1
  • 11
  • 33
24
votes
5 answers

C++ USB Programming

I am new to hardware programming(especially USB) so please bear with me and my questions. I am using C++ and I need to send/receive some data (a byte array) to/from a USB port on a microprocessor board. Now, I have done some serial port…
JB_SO
  • 471
  • 3
  • 8
  • 18