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

Mapping USB device name to com port in C#?

I have a USB device that provides a virtual com port. However this device does not identify itself by a COM port "friendly name" (in windows unit manager for instance). However it does provide a proper name for the USB device. Which in turn lists…
ChewToy
  • 737
  • 2
  • 10
  • 25
3
votes
2 answers

Issue with arduino/mac communication using ORSSerialPort

I am trying to send a three digit number from an XCode foundation command-line tool to an arduino over USB as a proof of concept for sending a data stream. The arduino code is supposed to flash a light the number of times that the number in the…
JP762
  • 31
  • 1
3
votes
1 answer

Best way to generate data to fill USB memory?

I need to fill a USB memory and I want others to be able to repeat this in an easy way. SO I dont want to write "find a file that filles the memory" so they have to look around for such a file. Rather I want to generate X MB of data and write that…
user1190832
3
votes
1 answer

Remote control Android device via USB on a computer, device screen and sound must be transfered to the computer

We are doing experiments with mobile phones in a shielded box. No wireless/radio communication is possible, so we need to use an USB cable. "androidscreencast" is working great to remote control an android device via USB. Now it is necessary to get…
ASA
  • 1,911
  • 3
  • 20
  • 37
3
votes
1 answer

Remove USB Accessory permission dialog

I am working on an application which uses USB accessory.When I attach device to arduino it asks for usb permission and it has checkbox in dialog "use by default".When I checked and press ok then it should save permission and do not ask me again but…
ashokk
  • 437
  • 1
  • 5
  • 13
3
votes
1 answer

usb connection event on linux without udev or libusb

I need to find a way to detect when a usb device is plugged in C on an old embedded Linux (CentOs 4). libudev and libusb are not available so I'm a little clueless with my options here. There is dbus, however I cannot use udisks as the device I need…
Martin
  • 3,960
  • 7
  • 43
  • 43
3
votes
1 answer

Connect Android virtual device to Mac OS X via Parallels

I have a virtual Android OS 4.3 that is installed via Parallels 9.0. And I need to connect it to Mac OS X like external usb device. Is there any walkthrough how to connect the virtual machine like usb device to the host OS?
Petr Syrov
  • 14,689
  • 3
  • 20
  • 30
3
votes
8 answers

Eclipse does not see my device from one day to another (samsung galaxy s3 mini)

Okay so the facts: I have been developing for Android device (Samsung Galaxy S3 Mini GT-I8190) in my PC for the last half year. When i installed the developing tools, android SDK, eclipse, etc, all was like "plug and play" It was easy and worked…
Adam Varhegyi
  • 11,307
  • 33
  • 124
  • 222
3
votes
1 answer

How can I test-drive IOKit userspace driver development?

I'm about to attempt to write a USB driver for my application on OS X using IOKit. I've opted for the userspace route rather than developing a kext since it's so much easier to debug etc, but I'm having trouble working out how I could possibly…
jkp
  • 78,960
  • 28
  • 103
  • 104
3
votes
2 answers

A _disk_id.pod file appears on a windows flash drive

What causes a   _disk_id.pod   file to appear on a windows flash drive, and is it advisable to remove it?
Mark Goldfain
  • 731
  • 2
  • 8
  • 24
3
votes
0 answers

Android USB-Serial to Arduino R3

I am working on a simple app for the android OS. It needs to reliably communicate with the Arduino Uno. I used the USBSerialDriver with AndroidStudio. I'm getting data but there are dropped characters. my code below. I get the same result when i use…
CEO Hack
  • 31
  • 2
3
votes
2 answers

java serial I/O: handling USB serial connection/disconnection in a robust manner

I'm using rxtx for serial I/O handling in Java with an FTDI2232H that provides a USB comm port. It works great, with one exception: if I unplug the USB cable, so that the COM port disappears at runtime, it spews exceptions left and…
Jason S
  • 184,598
  • 164
  • 608
  • 970
3
votes
1 answer

Android: usb hid driver in C

I need to write a usb "driver" in Android that talks to our custom HID device. I have been able to open and get data from the device using android.hardware.usb from Java, but its much better for us to use a C .so file as all the other code is in…
Rolle
  • 2,900
  • 5
  • 36
  • 40
3
votes
0 answers

How to read data on Raspberry Pi with Python from HID device?

I am new at Raspberry and Python, so I will be very glad if you help me at my problem. I need to read some data from weight scale when button on scale is pressed. When I connected this scale via USB on PC, I saw that it works as HID. When I pressed…
anze87
  • 253
  • 2
  • 8
  • 19
3
votes
1 answer

How to get USB Device handle using device instance handle?

I'm enumerating device manager tree using the CM_Locate_DevNode(), CM_Get_Child() and CM_Get_DevNode_Registry_Property() APIs. I'm able to get the device instance handle. Using that handle I'm trying to get the device handle to query the string…
Mankutimma
  • 103
  • 1
  • 8