Questions tagged [usb]

USB is Universal Serial Bus. If your question relates to a specific chip, please mention it in your question.

The Universal Serial Bus (USB) is a 4-wire bus that supports communication between a host and one or more (up to 127) peripherals. The host controller allocates the USB bandwidth to attached devices through a token-based protocol. The bus supports hot-plugging and dynamic configuration of the devices. All transactions are initiated by the host controller. (source)

The standard specifies the connectors, cables, and protocols used on the bus.

USB has different speed classes: Low Speed (1.5 Mbps), Full Speed (12 Mbps), High Speed (480 Mbps), and Super Speed (up to 5 Gbps). Low speed and full speed have existed from the initial versions of the specification, while high speed was introduced with USB 2.0 and super speed was introduced with USB 3.0.

The specification has undergone several major revisions since its official release in 1995, the latest being USB 3.0.

Logically, USB implements a tree-structured master-slave bus. However, each physical connection is point-to-point between a host or upstream port and a device or downstream port.

Further reading:

3555 questions
125
votes
7 answers

Why does micro USB 2.0 have 5 pins, when the A-type only has 4?

What is the extra, 5th, pin on micro usb 2.0 adapters for? Here is an image with the different connectors. Most of them have 5 pins, but the A-type host only has four. (source: wikimedia.org)
Sponge Bob
  • 5,243
  • 17
  • 46
  • 65
51
votes
8 answers

How can I tell charge-only USB cables from USB data cables?

Like most computer hobbyists and programmers, I've amassed boxes of USB cables to connect USB, Micro-USB, and Mini-USB to chargers, computers, and gadgets. These cables are a mix of phone charger cables, and cables that came with external hard…
Benzo
  • 613
  • 1
  • 5
  • 5
34
votes
2 answers

How did USB 2.0 avoid collisions?

Looking at the pins of USB 3.0 receptacles, I can see that there are separate transmission and reception pairs, however for USB 2.0 there is only one "data" pin pair. How does USB 2.0 ensure that the devices aren't communicating simultaneously?
VortixDev
  • 562
  • 4
  • 18
32
votes
3 answers

What do the 3 symbols (circle, square, triangle) in the USB Type-A plug represent?

What do the 3 symbols (circle, square, triangle) in the USB Type-A plug represent? Is it power-/data-related notifications or just universal identification for USB?
Ram_HW
  • 1,303
  • 3
  • 17
  • 23
16
votes
3 answers

Identifying a USB charging port without enumeration

Is there a low cost and reliable way to identify a USB charging port? I plan to charge a device via the USB port. The USB Battery Charging Specification 1.1 allows 1.5A current draw when connected to a Dedicated Charging Port (DCP) and 500mA when…
morten
  • 4,673
  • 4
  • 27
  • 26
15
votes
1 answer

D+ and D- on USB

I'm making a small project which will take +5v from USB, What should I do with the D+ and D-, keep it open or short them to ground or do I have to add some components? I want to run ATMEGA168 and 16x2 LCD with back light.
Hemal Chevli
  • 986
  • 1
  • 6
  • 19
13
votes
5 answers

Why does USB only use 2 lines for RX, TX instead of multiple data lines?

Wouldn't it be faster if there were multiple data lines (say 8) to transmit/receive data (say sequential bytes) instead of using a single line to transmit sequential bits?
mhashim6
  • 257
  • 2
  • 7
13
votes
2 answers

USB C to USB A pinout

So I am working on a project for which I am using a USB Type C Receptacle for the main hardware interface. I am familiar with the previous USB types and how their pins are laid out, however, upon looking up the pinout for USB Type C, I cannot…
Ignatius_Gim
  • 285
  • 1
  • 2
  • 8
13
votes
4 answers

USB3 with fewer wires

USB3 offer a much faster bandwidth than USB2 but, technically, at the price of more wires that results in a thicker cable. USB3 is build with 9 wires, 4 are standard USB2 and 5 are the USB3 serial (2 differential transmit, 2 differential receive and…
Gilad
  • 2,097
  • 1
  • 21
  • 25
12
votes
2 answers

Difference between USB and ULPI

What is the difference between USB and ULPI? I know they are closely related, but how they are related is not clear to me. First time I came to know when I was looking at this board (See at the bottom middle): Xilinx Zynq-7000 All Programmable SoC…
gpuguy
  • 1,638
  • 8
  • 32
  • 55
10
votes
1 answer

USB descriptor tool

Could anyone recommend any wizard-like tool for creating USB device descriptors? Most (all?) USB firmware examples I've looked into so far define the descriptors as a simple byte array in a .c file, filled manually (with a little help from…
Code Painters
  • 1,070
  • 9
  • 13
10
votes
3 answers

How does the USB protocol work?

I have always wondered about how USB devices actually communicate. When I stripped a usb cable, I noticed that there were four different wires. Two of them being for power (positive and ground) and also two other wires. I have searched up the pin…
zack1544
  • 807
  • 2
  • 13
  • 25
8
votes
3 answers

Best way of making a battery powered USB charger?

I recently made a USB charger that takes a 9V battery. I've noticed it doesn't work with a lot of devices though. It was very simple though, just a 5volt regulator hooked to a USB plug and 9V battery and a switch. Note: I'm wanting to use what I…
Earlz
  • 3,376
  • 15
  • 46
  • 66
8
votes
4 answers

Advice for USB Sniffer

I am looking for a USB protocol analyzer and was wondering if anyone had any experience with one. So far, I am looking at an Internal Test Instruments and a Beagle USB 12. I only need to watch the full speed (12 Mbs). I need some low-level…
semaj
  • 1,283
  • 8
  • 15
8
votes
1 answer

What is a USB transceiver?

I'm in the process of learning how USB works. What is a USB transceiver and how is it different from the PHY logic of a host controller?
EpsilonVector
  • 203
  • 3
  • 7
1
2 3
15 16