Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamWhat do USB wire colors mean?
In a typical USB 2.0 cable, the internal wire colors usually mean:
| Wire color | USB signal | Meaning |
|---|---|---|
| Red | VBUS | +5 V power |
| Black | GND | Ground / return |
| White | D− | USB data negative |
| Green | D+ | USB data positive |
| Bare / foil / braid | Shield / drain | Cable shield, usually connected to connector shell/ground |
The most important caution: do not trust wire color blindly. Most cables follow this convention, but cheap, proprietary, damaged, or USB-C cables may not. Verify with a multimeter before connecting power or splicing wires.
Most older USB-A, USB-B, mini-USB, and micro-USB cables use four main conductors:
Red: VBUS
Black: GND
White: D−
Green: D+
The white and green wires should ideally remain twisted together as much as possible because USB data is transmitted as a differential signal. Untwisting them excessively, extending them poorly, or splicing them with long separated leads can cause unreliable communication.
A USB 3.0 / USB 3.1 / USB 3.2 cable usually retains the original USB 2.0 wires and adds extra high-speed differential pairs.
A common USB 3.x internal color convention is:
| Wire color | Signal | Function |
|---|---|---|
| Red | VBUS | +5 V power |
| Black | GND | Power ground |
| White | D− | USB 2.0 data negative |
| Green | D+ | USB 2.0 data positive |
| Blue | SSRX− | SuperSpeed receive negative |
| Yellow | SSRX+ | SuperSpeed receive positive |
| Purple | SSTX− | SuperSpeed transmit negative |
| Orange | SSTX+ | SuperSpeed transmit positive |
| Bare / drain | GND_DRAIN / shield | Shield or SuperSpeed pair drain |
In USB 3.x cables, the high-speed pairs are more sensitive to impedance, length matching, shielding, and routing. Splicing USB 3.x cables is much less forgiving than splicing simple USB 2.0 power leads.
For USB-C, internal wire colors are much less reliable.
USB-C cables may contain:
A USB-C cable can also carry much more than 5 V when USB Power Delivery is negotiated. Modern USB PD Extended Power Range can go up to 48 V and 5 A, or 240 W, in properly rated cables and devices. Therefore, with USB-C, color identification alone is especially unsafe.
If you are repairing or modifying a USB cable:
Use a multimeter in continuity mode
Identify VBUS and GND first
Keep D+ and D− together
Reconnect shielding if possible
Do not use unknown thin wires for high current
Be careful with charge-only cables
USB wire colors are not the same thing as USB port colors.
For example, a blue USB-A port often indicates USB 3.x capability, while the internal blue wire in a USB 3.x cable may be part of a SuperSpeed data pair. These are related only loosely and should not be confused.
For a normal USB 2.0 cable:
For USB 3.x and USB-C, there are additional conductors, and the color coding becomes less dependable. If you are cutting, splicing, or reusing a USB cable, verify every wire with a multimeter before applying power.