Cursed USB-C: When Plug Orientation Matters

One of the selling points of the USB-C plug is that supposedly there is no way to incorrectly insert it. As [Pim de Groot] shows with a ‘Cursed USB-C 2.0 Device‘, reality is a bit more complicated when it comes to USB 2.0 compatibility in USB-C. He made a PCB that elegantly demonstrates the simplicity of the problem, featuring two LEDs. Only one orientation of the USB-C plug will cause one of the LEDs to light up green, with the other orientation leaving both LEDs blinking red.

Sigil on the back of the cursed USB-C 2.0 device, by Pim de Groot.

The reason for this behavior is simple: as [Pim] explains, although the USB-C plug has only a single pair of data lines (D+/-) for USB 2.0 connectivity, the receptor duplicates these on either side of its pins, leading out two pairs of D+/- lines. Normally you would connect the matching lines in these pairs together to ensure consistent behavior no matter the plug orientation, but you don’t have to.

By leading each USB 2.0 data pair to its own SAMD11C MCU, only one of the MCUs would be connected to USB, resulting in the connected MCU blinking the LEDs. With a bit more circuitry it’s possible to detect which way around the plug is inserted and use this information in a single MCU system, altering its behavior. While at first glance this seems little more than a fun party trick, but it also offers insight in a possible failure mode of USB-C 2.0 devices where only one plug orientation works, due to broken traces or pads.

Board view of [Pim]’s Cursed USB-C 2.0 Device.

(Heading image: Cursed USB-C 2.0 Device, by Pim de Groot)

71 thoughts on “Cursed USB-C: When Plug Orientation Matters

    1. Moto z2 play has done the same thing for almost a year.
      It ain’t the data lines though, obviously.
      I’d love to get it fixed but have learned the orientation of most of my cords. Sucks tho.

  1. I had this exact issue over the weekend with a dev board PCB I made. One orientation meant the PC detected the board fine, the other powered it but wouldn’t communicate with it. Doofus here didn’t realise there were separate data pins for each orientation because the datasheet was borderline unlabelled, and different connectors seem to break the lines out in very different ways. Yet another thing to fix for the next revision.

    I’m sure there could be some sort of fun thing to do with this. Confuse the heck out of people with a thumbdrive which “loses” files depending on the orientation.

    1. Given the (historically speaking) crazy powerful MCUs you can get in tiny footprints and power budgets, you could probably go for something like the old upside-downternet but with the orientation of images on the drive varying based on either plug orientation or readings from an inertial sensor checking which way gravity was pulling relative to the package.

      Wouldn’t work for huge images or esoteric formats; but small stuff would be viable. Having text documents run right-to-left rather than left-to-right in one orientation would also be an option.

        1. Text would be really annoying because you’d think it was a glitch, probably find some online thing or script to re-flip it, or just retype it, save it back to your disk, and then find that it was wrong again next time you flip the drive.

          By the time you figured it out you might have half your files going the opposite way!

    2. USB C is a lot more complex and both power and data lines require special attention. I’m pretty sure You and the guy from the article aren’t last to make this error. I’m not sure how this design mistake rises to the level of a HAD article – I have a bunch of screwups of that quality but won’t be bragging about it. And, honestly, this isn’t a fault of USB-C’s design – why does the article seem to present it that way?

      Perhaps this is just a PSA? So I’ll pile on. Read the datasheet. Read the USB-C articles. Read the USB-C spec (or at least one of several good summarizations thereof). it is all clearly spelled out. This isn’t your father’s 5-pin connector anymore.

      1. Did you read the article? It wasn’t a mistake, it was an intentionally built board, just to demonstrate that USB C can be abused in this way. It’s a hack, just for the fun of it, which is very much on brand for HaD.

  2. There is pros and cons with the two sets of data lines being independent.
    For USB 2.0 it isn’t majorly important and is generally a beginner mistake waiting to happen.

    But one can technically have a cable with 2 separate differential pairs talking, as to double the bandwidth. Even if a USB-C connector already has room for 4 more differential pairs. But if one needs 6 pairs, it is a wonderful feature.

    1. Think of it this way: USBC is a high density connector that wastes half of the pins so that lazy users don’t have to care about orientation. The fancy USB modes waste system resources to do multiple things whether you need it or not – power delivery (cost ofextra parts), PCIe lanes (limited).

      1. It doesn’t really waste half of the pins. Depending on how you count, more like 3 pins: DP, DM and one of CC pins.

        The superspeed channels are all used in both orientations, using digital switching in the transceivers, and the power pins are just connected in parallel.

    2. If your have a cable that uses the ‘extra’ D+/D- pair for something other than D+/D- (eg D2+/D2-, whatever those are), then its a non-compliant cable.

      I’ve seen designs that uses the four superspeed pairs to carry 10GBase-T with the USB2 signal as any out-of-band interface. It’s neat, it works, but it’s not official USB Type-C, so why anyone thinks this sort of repurposing of signals us worthy of this sort of ‘gotcha’ is beyond me!

    3. Yes you can technically manufacture such a cable (however, non-compliant), but the intended usage for these “extra” D+/D- positions is for implementation in captive cable/captive plug accessories only. And, such accessories would necessarily have limited interoperability e.g. within a single OEM’s product ecosystem.

    4. From my understanding the cable is the same as a “standard” USB3 cable, its just that the pins of the connector are doubled up. There is no doubling up of the wires in the cable.

      1. Strain reliefs on connectors are often fairly abhorrent when they do exist, and at most times they don’t even exist. It is a rare sight to see a proper strain relief on a cable these days…

        Some manufacturers are happy to just have a small hard plastic nub and call it a day. And when the product breaks due to the cable, then they can simply flog another product out the door, since it is easy to blame the user.

        Some use a long piece of plastic with some cuts on the side, but these are rarely long enough to be helpful, and some are so rock hard that it isn’t anything more than extension of the case itself…

        Then there is the opposite side of the scale, where the strain relief exist, but it is so extremely soft and flimsy that it doesn’t give any support at the root, leading to the cable breaking there instead.

        Is it really that hard to have a steadily tapering piece of somewhat soft plastic?

        The goal of a strain relief is to transition between being in axis with the connector and then slowly fading over to tangenting the curve of the cable itself.

        The strain relief can be designed to have a stiffer root. (typically going to 2x the cable diameter is sufficient, more isn’t unreasonable, though a larger root diameter compared to the cable will require a longer strain relief to get a proper transition.)
        Some cuts in its sides along its length to give it some extra flexibility along its length, if the material one uses is too stiff in itself.
        Having the strain relief taper out to be as thin as reasonably possible around the cable itself is another method of making it more flexible, but this can be combined with the prior to not have to make the sheath extremely thin.
        And the relief should preferably have a length that is covering no less than 1/8th of the circle that the minimum bend radius forms. Though, I would recommend going towards 1/4 of the circle to be on the safe side if one has a thicker root.

        Though, even if one makes a proper strain relief, it doesn’t really stop people from doing exceedingly tight cable management. Where the cable is forced to bend sharper than its minimum bend radius, either at its root or along its length. I have though seen “reputable” websites/organizations/documentation that stated that “the minimum bend radius is the smallest diameter a cable can be subject to repeatedly.” Something that makes me quest if people have studied sufficient geometry in school to know the difference between those terms…

        But the most stupid thing I have heard were from a network technician that placed cable labels far too close to the root of the connectors, so that the technician needs to force the cable sharply to the side just to read said label, breaking the cable at its root, and then blaming the cable for being poorly made. Just put the label 2-4 inches out from the connector and this is rarely a problem for network cables at least. (and if one can’t follow the cable for 2-4 inches, then one has abhorrent cable management…)

        In the end.
        It is a nice surprise when one sees a properly made strain relief that isn’t also having some other stupidity applied to it by the end user…

        1. “It is a rare sight to see a proper strain relief on a cable these days…”

          What are you considering “proper”?

          Any typical USB cable, for instance, has an overmolded plug such that the strain is entirely away from all of the wire joints, and the design of USB A, for instance, insures that you’re putting stress on the shield and not the pins, and the shield’s well anchored. Yes, the *smaller* USB plugs are crap, but there’s not much you can do with connectors that small. And the connector itself is usually still overmolded.

          I mean, we’re a mile away from old crappy cables like handmade RJ45s without boots and ribbon cables that practically destroy expensive electronics by just being removed.

          1. In regards to reliving strain at the solder joint, modern cables are exceptionally good.

            Though, that I weren’t talking about.

            But reliving strain from excessive bending of the cable where it meets up with the connector molding is an area where there is little to no strain relief. This strain on the cable itself tends to eventually lead to breaks in the conductors and renders the cable far from usable. In this aspect, strain reliefs on most cables aren’t properly made.

  3. Not to lowball the coolness of this hack, but detecting the orientation of the Type-C plug is one of the exact purposes of the CC lines. Yes they’re kind of a kitchen sink, but orientation is part of this sink.

    1. Yes, I have a display port over USB-C application that requires knowledge of the port orientation to work properly. There is a inline switch to select which one of the high speed lines will go to the Display Port receiver. Which is flipped depending on the orientation of the cable. All of that logic is handled by the USB-C Power Delivery micro.

      1. More like laziness of engineers/manufacturers. I have a few older USB-A to Type-C cables that will only provide data in a specific orientation with certain devices, because the other side’s D+/D- pins are not connected…

  4. I dropped my chuwi mini book and the usb c cable only worked one way. Eventually the cable now basically doesn’t work. I’ve bit the bullet and bought a hot air gun to hopefully fix it.

  5. I came across an article about this while diagnosing USB issues between older devices and a newer system’s USB 3.0 ports running Windows 10.

    It wasn’t relevant to the issue so I just flagged it for later reading.

    Side Note: Apparently backward compatibility is more 3.0 devices to 2.0/1.0 ports than older devices to 3.0 ports.

    The solution for my Logitech C910 webcam was to plug it into a USB 2.0 port. Then it worked fine.

    Other older 2.0/1.0 devices caused freezes similar to what was happening when I tried to get the webcam working so I tried plugging them into the 2.0 ports and that resolved the issue.

    One of computing’s Dirty Little Secrets is that “backward compatibility” isn’t guaranteed.

  6. Questions:

    1. Is this why some USB-C cables need to be plugged-in in a certain orientation?
    I believe that is something I spotted while researching a USB issue.

    2. Is this why the descriptions for some USB-C (and older versions) say “data only” or something like that?

    1. 1. Possibly. But something is broken if orientation matters.
      2. There are (legit) Type-C cables that only carry a subset of the conductors so don’t provide Superspeed functionality (I.e.. Won’t work with USB3, Thunderbolt 3, Displayport, etc). These cables are cheap but do is n I favors, because they undermine the promise of Type-C being a truly valuable high-speed connector.

  7. Suppose otherwise USB-C devices could use this as a plug orientation sensor, but I can’t figure out why other than to bring back the good old days of having to turn a plug around. Maybe have it make you try a couple rotations, making sure of course that the user actually rotated the plug. Or, maybe the plug is part of a toy, where two pieces join together, but it should make sure that it’s oriented correctly. There are better and easier ways, but I feel there’s something practical.

    1. I imagine this is mostly to raise awareness of how this actually works, and that there’s actually two sets of USB 2 D+/D- pins. (Or maybe for pranks). The CC pins exist to detect the orientation among other things, and USB C devices that don’t have symmetric pins just connected to each other are supposed to have a mux to detect and swap for you.

    1. Try connecting a microusb into a phone, in the dark. It can be a royal pain if the connector doesn’t have any clues in its texture regarding its orientation. USB-C was definitely a step up for ordinary consumers, even if it does present some new challenges for others.

  8. “…there is no way to incorrectly insert it…”


    I’ve known users who it wouldn’t surprise me one bit if they destroyed a plug and/or a socket by forcefully trying to insert it perpendicularly.

    I wouldn’t make a claim like that unless it was a round connector, maybe some sort of multi-level barrel jack.

    1. As someone that works retail, there is no idiot proof connector. Even barrel jack connections are unable to fend against morons that plug in any round connection ranging from polarity reversed ones to trying to insert the wrong size or even inserting a 3.5mm audio connector into a power port.

  9. This is why I think I’m sticking with iPhones. The lightning cable may break, but the ports in the phones seem to immune to any damage. I don’t mind replacing the cables from time to time.

    Meanwhile, my Androids with mini/micro USB plugs failing is the primary reason to move on from those devices.

    1. The lightning connector has a leg up on USB of pretty much all types – in terms of durability.
      One thing Apple did right was their physical connector – it is sturdy as heck.

    2. The iPhone 6 my wife had blew its charging circuit a few years ago when a defective lightning cable was plugged into it. I bought a replacement circuit, but the instructions on yootuub show different components inside.

  10. How about a USB C cable tester with two Type C and one USB 3.x Type A connector. Plug both ends of a C cable, with a 2.0 or 3.x Type A end or both ends Type C into the thing and the lights and colors of them tell you what’s what about the cable.

  11. “One of the selling points of the USB-C plug is that supposedly there is no way to incorrectly insert it.”

    People keep saying this. I’m not sure how something so obviously false is so widely perpetuated.

    USB-C only works in two out of infinite possible radial orientations. Has it really been so long that people have already forgotten what a power core that _actually_ can be plugged in any orientation looks like?

  12. If I charge my iPhone XR through a USB C to USB C power meter and then an Apple USB C to Lightning cable the rate of charging depends on the orientation of the USB C connector on the Lightning cable.

    One way It charges at 7W, flip the connector and it charges at 17W!

  13. USB-Catastrophe

    I have had many devices need the orientation to be correct to charge. Some will not charge or charge slower if the orientation is not correct. Even brand new out of the box devices.

    There is one device that not only needs the cable oriented correctly, but needs a brick with quick charge QC2.0. Never heard of this until the device would not charge with any other matching powered charger.
    Of course the device did not ship with a charger or cable.

    The USB c ports on most devices are flimsy and break easily and quickly. Worse than USB mini or micro.

    Time for smart people to develop USB-D.

  14. footnote is that i have a Sony phone with USB and have to colour code the “up” side of the usb-C to 3.5mm adapter. This definitely only works one way around, and that is from ‘premium’ manufacturer who should have rtfm.
    Any suggestions how i can find out the way around the phone port is wired… i have a usb-DAC and it feels like there are times it drains the battery quicker. Not sure if it’s related or just my imagination :/

  15. I have a Bose Flex SE Soundlink Speaker (Costco about $99) btw…great sounding cheap Bose (no mic) speaker. The USB-C charging port on the side works with double cable orientation when using the USB-C Cable provided by Bose in the box. I have MANY USB-C cables. Some cheap and some VERY expensive and most only work with correct orientation on my Bose speaker.

  16. – same with HDMI cables. in some cases the DELL monitor is not detected using the Dell display manager, and neither in Device manager in windows. If you insert the HDMI cable the other way, the dell monitor name appears in device manager, instead of generic PNP monitor.
    – Possibly the same with audio interfaces that use USB C, they require the correct direction, or the sound changes polarity (?)
    – Also with video games. lets say super tux carts on linux, where it was tested on. If you insert the HDMI cable one way, you focus on the driving cart (the cart driving around). If you reverse the HDMI direction, then the player focuses on the distant background and focuses on the entire screen (like the cart is driving in the screen, rather than the user focusing on the cart)

    Same with snes MINI ghoul’s and ghosts: HDMI cable in one direction makes it look like the arcade version, a lot more difficult, and with less forgiving collision with the sprites (collision detected one pixel earlier less or so?) like the collision code is running with a 1 pixel lag compared to what you see. also you focus on the right side of the screen (incoming zombies, enemies, etc, a bit more difficult)
    in the other direction, it looks like the super nintendo version. Easier, more story driven, easier to win.

    You are very lucky that the pixel phones do not charge in the other direction. as there could be some other bugs that appear because of polarity.

  17. I have tried 5 different USB C extension cables. If I plug the extension cable into my phone they are fine. If I plug the extension cable to the PC or tablet then plugging the cable into the extension cable is directional. I have USB C extenders with no wires. They work right always.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.