50
\$\begingroup\$

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 drives, bike lights, GPS units, and other miscellaneous gadgets. The problem is, they all look the same, just plain black cables.

How can I tell if one of these cables is a charge-only USB cable instead of a USB data cable? Ideally, I would love to rely on some visual clue, but I have a multimeter I could use to test the cables with if I knew a good approach to this.

My goal is to label these cables so I can resolve this ambiguity so when I reach in to my box of cables, I know which cable to use for charging my phone and which one to use to synchronise my GPS with my computer.

\$\endgroup\$
5
  • 1
    \$\begingroup\$ I'm sure there might be exceptions, but I was under the impression that they are both the same. The data pins must be shorted to signal a higher amp draw, but I'd imagine this would be done on the charger end, not in the cable. \$\endgroup\$ Nov 25, 2014 at 20:34
  • 3
    \$\begingroup\$ @JarrodChristman - In my experience I've had cables that simply wont carry any data, but still charge the device (these have all been from phone chargers with removable cables, but they get mixed up, as they look exactly the same.) \$\endgroup\$
    – UpTheCreek
    Jan 22, 2016 at 14:10
  • 3
    \$\begingroup\$ Simply connecting a USB device you know is working is the fastest and most accurate test there is. \$\endgroup\$ Jun 23, 2017 at 7:57
  • 4
    \$\begingroup\$ I'd throw out all the "charge-only" cables. As the other answers have indicated, charging over a cable with the data lines disconnected is slow at best, and overloads the port at worst. If you want to inhibit data communication, use a USB condom or one of its many clones that reproduce the power negotiation while blocking data. \$\endgroup\$ Apr 9, 2018 at 20:17
  • 1
    \$\begingroup\$ Charge-only cables are still useful (to me, anyway)! It's a shame there seems to be little quality control or regulation and one can end up with lots of charge-only cables, but they are useful to have around anyway. I tie two knots in a cable if I find it is charge-only, and three knots if it doesn't work at all then throw it in a box I keep for electrical junk that I intend to dispose of properly at a later date. \$\endgroup\$
    – drkvogel
    Feb 16, 2021 at 11:09

8 Answers 8

29
\$\begingroup\$

The kind of cable you mean is missing the D+ and D- data lines. It simply doesn't have those wires inside the cable.

You can test for continuity or resistance using a multimeter. Probe between the corresponding data pins: D+ on one side to D+ on the other, or D- to D-. The D+/D- lines are the middle two pins of a USB connector. Just select one on one side of the cable, and test continuity to both of the middle pins on the other side.

You will see no continuity or a high/"infinite" resistance on your meter if the cable is missing data wires and is a "charge only cable".

Technically USB requires the data lines to request more power from a host device, so a cable missing these connections would, in theory, only let devices charge very slowly. In practice most USB hosts will not enforce such a limit. It is also possible that some phones will refuse to charge without data lines in the cable.

\$\endgroup\$
3
  • 3
    \$\begingroup\$ You're latter comments about the dataline being required to request more power could explain why the 1.2A USB power supply I have for my raspberry pi, when plugged into a mobile, displays an error saying that it is unable to charge quickly and indeed takes a long time to charge. \$\endgroup\$
    – flungo
    Nov 25, 2014 at 20:59
  • 7
    \$\begingroup\$ It's probably going to be easier to try the cable on a device than it will be to probe the pins of a micro usb plug with a continuity tester. Once you have figured out which is which you can mark the limited ones with colored tape or heatshrink or a wire tie zipped tight or whatever. \$\endgroup\$ Jul 3, 2015 at 19:34
  • 4
    \$\begingroup\$ The last paragraph is actually a bit misleading. The USB battery charging standard defines two types of ports: Charging ports, and "regular" data ports (and combi ports). A charging port is one that supplies >500mA@5V, but can't do data. A charging port is indicated to the device by a short between the D+/D- lines. QC aside, there's no digital data communication. The short should be implemented in the charger, but some charge-only cables and adapters actually short these in the MicroUSB plug or cable itself, which leads to the sorts of shenanigans like the USB-C cables blowing up laptops \$\endgroup\$ Sep 18, 2016 at 14:51
8
\$\begingroup\$

Look for something on cable like: (some number)AWG/1P. If it does exist then you have shielded twisted pair of conductor denoted by P above. And they use for data transmission.

Here: (some number)AWG/1Pdenotes

  • some number = number of wire gauge
  • AWG = American Wire Gauge?
  • 1 = Number of pairs
  • P = shielded twisted pair of conductor

28AWG/1P (for data) +28AWG/2C (for charging)

\$\endgroup\$
7
\$\begingroup\$

You can tell that a cable almost certainly has all four wires connected and will reliably transfer USB data at the speed it's rated for if it is unmodified and has the USB trident logo on top of the plugs:

USB Trident Logo alt text (Images from Wikipeida.)

The USB standard does not provide for cables without data lines, and the USB Implementors Forum does not allow the use of their trademarked logo above on non-standard cables.

(And yes, to address the comments, trademark law is not always perfectly enforced. But nor is it particularly poorly enforced in most first-world countries even for low-value products such as soft-drinks and USB cables. Further, simple testing of connectivity with a multimeter is no guarantee that the cables do not have other issues related to their inductance and capacitance that will cause problems with data transfer.)

\$\endgroup\$
8
  • \$\begingroup\$ Just because something is not allowed does not mean it does not happen \$\endgroup\$ Feb 17, 2020 at 0:40
  • \$\begingroup\$ @Chris Trademark violation is rare in most countries because trademark owners have legal means to enforce their trademarks, including products barred from import or seized if the manufacturer is not local. When you buy a can of what is clearly labled "Coca-cola" it's almost certainly not Pepsi or some other drink instead; the same is true of USB cables with the logo. \$\endgroup\$
    – cjs
    Feb 17, 2020 at 1:15
  • \$\begingroup\$ Not in practice, no. Cheap products like random cables fly under the radar much more readily than fake soft drinks. You really can't rely on the pattern on the plastic - the other answers on this page propose technical methods of verification which in contrast are reliable. \$\endgroup\$ Feb 17, 2020 at 5:02
  • \$\begingroup\$ @ChrisStratton Presumably one might reasonably assume that a cable without the symbol is a charge-only cable (and if it happens to be a data cable, that's an unexpected bonus). \$\endgroup\$ Oct 27, 2020 at 10:39
  • \$\begingroup\$ @AndrewLeach, no its as likely that one without a symbol simply didn't want to pay to use that \$\endgroup\$ Oct 27, 2020 at 12:31
5
\$\begingroup\$

If the cable has any markings on it, look for the wire size and amount on it. They will typically say AWG 22-2 or similar for a 2 conductor of AWG size 22 cable. A 4 conductor cable would be different.

Of course, you could find a cable that has four conductors inside but not all four wires connected, so it would still be a charge only cable. But that seems like a waste of copper.

\$\endgroup\$
1
  • 1
    \$\begingroup\$ This is a good answer. Many times the wire gauge will be different for the power conductors and the data conductors. See this image: usb-cable.com/mini-b-usb-cable-short-8-inch.jpg . If you look at the writing on the A end, you'll see "28AWG/2C + 24AWG/2C". I believe this stands for 2 28AWG conductors and 2 24AWG conductors. This would suggest it has all four conductors, meaning it can be used for charging and for data. \$\endgroup\$
    – DerStrom8
    May 27, 2016 at 17:59
4
\$\begingroup\$

You'd like an easy way to tell a "charging only" cable from a complete cable. Unfortunately, your only solution is to place your own sticker or wire tie around the cables.

The USB Implementers Forum does not recognize charging only cables, and does not publish any form of graphic or symbol to distinguish one from the other. To contact the USB-IF on this issue see http://www.usb.org/about .

The production process for a "charge only" cable is simply to leave out the two center wires. There's no enforcement of any rules related to USB, so you just get whatever the factory churns out.


To see what you've got plug in a phone to a PC and browse files. If browsing works, you have 4 wires. If not, chances are you've got just 2 wires.


Note that the center two wires are used even for charging. There's a bizzare and incompatible set of signals used by the device to determine how much current (charging power) to try and draw. Without the center two wires, you get whatever the device's default behavior is (which may be slow charging).

\$\endgroup\$
1
  • \$\begingroup\$ " Without the center two wires, you get whatever the device's default behavior is (which may be slow charging). " It should be slow charging, if the device's behavior meets the USB spec. The practice of USB devices slow charging if the data contacts are left floating goes way back, the USB-BC spec codified this as specified behavior later. This was to allow for the construction of inexpensive 5 watt USB chargers. It was inevitable, and likely predicted, that someone would exploit this standard to make cheap USB charging cables. \$\endgroup\$
    – MacGuffin
    Feb 16, 2021 at 12:02
3
\$\begingroup\$

Use a Smartphone, if it gives the message "Connected as a media device" the cable allows data connection, if not, the cable is a charge-only cable!

\$\endgroup\$
1
\$\begingroup\$

The outer insulation on charge only cables tends to be thinner than that of a data/charge cable because they physically contain 2 less wires. but the continuity test described above is the only way to be 100% certain.

\$\endgroup\$
-2
\$\begingroup\$

Not sure my experience is true generally, but when I look at the end of a charge-only cable, I see an "arrow" symbol, while USB symbol for a data cable.

Pls see my blog post for details.

\$\endgroup\$
1
  • 5
    \$\begingroup\$ Link-only answers is frowned upon. Please add the relevant parts of the blog post to your answer. Your post would become useless if the blog post gets deleted in the future. \$\endgroup\$ Apr 8, 2017 at 8:23

Not the answer you're looking for? Browse other questions tagged or ask your own question.