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
3
votes
1 answer

Drag'n'drop files from (e.g.) iPhone in Windows Explorer onto a WPF application

I have a C# WPF app that allows users to import files by dragging them in from Windows Explorer and dropping them on the main app window. It works fine when dragging files from physical disks, but when dragging files from a connected device like an…
Dylan Beattie
  • 53,688
  • 35
  • 128
  • 197
3
votes
1 answer

Script in udev rule doesn't run

I'm running Ubuntu 9.10 (Karmic Koala) on a laptop and would like NumLock to automatically toggle depending on whether my USB keyboard is plugged in (numlock on) or unplugged (numlock off). To accomplish this, I first installed the "numlockx"…
Eric Heikes
  • 53
  • 1
  • 6
3
votes
1 answer

Canceling a WinUSB asynchronous control transfer

For a user application (not a driver) using WinUSB, I use WinUsb_ControlTransfer in combination with overlapped I/O to asynchronously send a control message. Is it possible to cancel the asynchronous operation? WinUsb_AbortPipe works for all other…
madwizard
  • 31
  • 3
3
votes
4 answers

STM32f107 usb re-enumerate

I have a board that is connected to USB on a STM32F107 with the following pins USB_OTG_VBUS : PA9 USBDM : PA11 USBDP : PA12 I have a project that needs to use both Virtual Com Port and USB Mass Storage. It needs to re-enumerate the USB then do a…
marshall9
  • 53
  • 2
  • 4
3
votes
1 answer

Mounting/Unmounting USB disks on Windows

On Windows Server, by default, external USB disks don't always get mounted. I'd like my program (written in C#) to be able to detect external USB disks, identify them, and then mount them. When it's finished, it should do whatever the programmatic…
Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
3
votes
0 answers

Where is the code that the Linux USB storage driver uses to transfer data?

I am working on a project where I want to modify the Linux USB storage driver to encrypt the contents that it sends over to a USB thumb drive. Naturally, I need to find where the data is actually transferred over from the computer to the USB…
Sefu
  • 2,404
  • 8
  • 42
  • 59
3
votes
1 answer

Getting gps data from blackberry (pearl) directly from usb interface

Has anyone researched how to access the gps chipset on a blackberry over usb so that it is unnecessary to transmit this data over the cell carrier's data network? Is it possible to access the GPS chipset, store information in a buffer, and open an…
rramirez
  • 33
  • 3
3
votes
2 answers

How to distinguish between USB Hard Disk Drive and USB flash drive?

In Windows, you can get GetDriveType return value to determine USB Hard Disk Drive or USB flash drive. DRIVE_REMOVABLE ==> USB flash drive DRIVE_FIXED ==> USB Hard Disk Drive How should I do it in linux? how should I do it from a developer's point…
kangear
  • 2,493
  • 2
  • 31
  • 44
3
votes
1 answer

Intent Filter not calling onReceive for USB_ACCESSORY_ATTACHED

I have declared an intent filter for USB_ACCESSORY_ATTACHED in the constructor of a MyDialogFragment and registered/unregistered it in the fragment's onResume and onPause methods. MyReceiver extends BroadcastReceiver in an inner class to receive the…
James B
  • 8,975
  • 13
  • 45
  • 83
3
votes
1 answer

Interpret USB joystick axis

There are a fair few questions about this already, but none answered my question. I have a Saitek P990 Dual Analog Gamepad, and want to read the joystick movements as intelligible data that I can use to control motors etc. How would I go about…
theo-brown
  • 653
  • 10
  • 27
3
votes
1 answer

Routing Multiple USB 2.0 connections through a USB 3.0 connection

Is there any USB 3.0 hub or device that multiple USB 2.0 devices can be connected to and still retain the maximum USB 2.0 bandwidth for each device by utilizing the higher bandwidth of USB 3.0? These devices exist for USB2.0/1.1 interfacing (they…
user1414031
  • 73
  • 1
  • 6
3
votes
1 answer

Delcom USB 7-segment display C#

I am attempting to change the display of a Delcom USB 7-segment display in Unity (Mono framework) with C#. I am able to find the device and read the serial number, but I am unable to properly send control packets. I'm pretty positive that I am…
Geo Ego
  • 1,315
  • 7
  • 27
  • 53
3
votes
0 answers

How to set idle and power off timeout values for USB devices

I would like to programatically set the timeout value before an USB device goes into idle and power off states. I can see SetPowerState is something that could do the work however it says it is not implemented by WMI. How can I use…
Martin Kulov
  • 181
  • 2
  • 8
3
votes
2 answers

Programatically getting USB power draw of a device?

In Windows, it is possible to view a Power tab for a USB hub in Device Manager that lists information such as whether the hub is self-powered and the total power available. Is this information available programatically, either in Windows (perhaps…
Soo Wei Tan
  • 3,262
  • 2
  • 34
  • 36
3
votes
1 answer

Find USB Device in Android

I'm using Galaxy SII (Android version 4.1.2), and I'm trying to build an app that can tell me if I connect an USB device. I also have an OTG adapter (that works great..) When I connect a keyboard/mice, my Android recognizes them and I can use them…
Rubi
  • 41
  • 3
1 2 3
99
100