Breaking
November 24, 2024

USB-C For Hackers: Reusing Cables Arya Voronova | usagoldmines.com

Your project needs a cable, and since USB-C cables are omnipresent now, it’s only natural to want to reuse them for your evil schemes. Ever seen USB 3.0 cables used for PCIe link carrying duty? It’s because USB 3.0 cables are built to a reasonably high standard, both sockets and cables are easy to find, and they’re cheap. Well, USB-C cables beat USB 3.0 cables by all possible metrics.

Let’s go through USB-C cable reuse in great detail, and see just what exactly you get when you buy either a gas station C-C USB 2.0 cable, or, the fanciest all-features-supported 240 W Thunderbolt cable that money can buy. Looking for a cable to cut, or something to pass a seriously high-speed link? You’re reading the right article.

The Omnipresent Cables

USB-A to USB-C cables are the least interesting. They’re equivalent to a microUSB to USB-A cable, except there’s a resistor on the USB-C plug, connected from VBUS to one of the CC pins. That’s it. The cable contains four conductors, there’s really not much new. Save these cables for all the devices still built without the 5.1 kΩ resistors.

Now, a USB-C to USB-C cable – let’s say, 60 W max, the default USB-C cable capability. If your cable says anything less than 60 W, say, “2 A” or “15 W”, that’s a lie – it can handle 60 W no problem, all USB-C to C cables can do 60 W. This cable is also cool – for one, it has five conductors; GND, VBUS, D+, D-, and CC. Two of them (GND and VBUS) are guaranteed to be thick enough to carry 3 A without much voltage drop if any, too!

five conductors, two of them thicker – yep, you know where to find a replacement!

What does this mean? If you need a five-wire cable to fix your headphones, and you want something solid, a USB-C cable is probably your best bet ever – and you have a ton of choice here. You will inevitably end up with a heap of broken USB-C cables, which means you’ll never be short of 5-conductor cables – the kind of cable that has always been kind of a rarity, unless you’re pilfering headphone cables for your projects.

What about 100 W to 240 W cables? There’s good news and bad news. Good news is, the cable is likely to contain six wires. One extra wire is for VCONN – power for the emarker chip inside the cable plug, a memory chip you can read over the CC line, letting the PSU know whether the cable is indeed capable of carrying over 5 A – required for the 61 W to 240 W range.

Bad news is – there could still be five wires, if the cable is built using the alternative scheme with two emarkers, one per plug. The VCONN wire won’t be present then, and there’s no way to know until you cut the wire apart, so if you’re looking for a six-wire cable, you might have to try a few different cables. Also, the VCONN wire doesn’t connect the two plugs together – it’s isolated at one end, so don’t expect it to help if you use USB-C sockets instead of cutting the cable.

Now, you don’t always want to cut the cable – you can use USB-C sockets and apply your custom five-wire scheme to them. An idea I hear often is using USB-C cables for 3D printer hotends. It makes sense – such cables can handle 60 W of power without breaking a sweat, and you could likely do a fair bit more. Put extruder power onto the VBUS and GND pins, and use the three wires left for a thermistor and a limit switch. But the cable and socket mechanicals might be a dealbreaker. If your extruder-powering cable vibrates out of the socket, you might end up with a high-resistance-contact high-current connection on your hands – a recipe for melted plastic and possibly flames. Try it at your own risk!

You also won’t be able to make such cable reuse standard-compliant, and such port won’t be safe for any USB-C devices someone might plug into it, so label it accordingly, please.

What About Voltages?

What about putting arbitrary voltages onto VBUS, without PD negotiation? Again, it won’t be standards-compliant unless you really put some effort in – mark your jury-rigged sockets and cables accordingly, or they will eat your devices for breakfast. Also, SPR (100 W) cables contain 30 V 10 nF capacitors at each plug end, and EPR cables contain 63 V ones – reach these limits at your own risk, those capacitors are known to fail short-circuit.

Another factor is if you decide to go for the 48 V / 5 A target while bypassing the USB-C standard, because 48 V support is not as simple as putting 48 V on VBUS. If you just put 48 V on the VBUS pins, you’ll really want to figure out spark management, so that suddenly unplugging the cable won’t burn either the plug or the socket or both – PD has ways to deal with that, but they do require you to actually implement PD, specifically, EPR, which brings a heap of safety guarantees due to exceeding the 20 V limit.

That’s about it when it comes to reusing the cheapest kinds of USB-C cables – you get an extra wire compared to previous USB standards, it can handle a fair bit more power, and you can even use USB-C sockets. However, it will kill your devices if you’re not careful, and you need to take extra care if you go over 25 V or so. What about if you want to get more wires and pull some differential pairs instead?

Up The Speed

Fully-featured USB-C cables and sockets are genuinely wonderful for pulling high-speed communications over them. They are built to a solid standard, with proper impedance controls, shielding, and a modern-day understanding of digital transmission standards. Now, what exactly do you get from a fully-featured USB-C cable?

HDMI over USB C – as in, passing HDMI signals through USB-C cables. I guess, that’s one way to circumvent connector royalties!

Short answer is, you get six differential pairs, and one single-ended wire (CC), in addition to VBUS and GND. You might want to keep GND at a stable level here, and perhaps don’t mess too much with VBUS. There’s a ton you can do with these six diffpairs – two USB3 ports, or a PCIe x2 link, or two SATA, or HDMI, or CSI/DSI. You can even do Ethernet if you really want to – just don’t expect galvanic isolation to work.

There are nuances, of course! Ever see a teardown or an X-ray of a fancy fully-featured cable? There’s typically all sorts of ICs inside each plug. The first one is the emarker chip, and it’s a fun one to keep in mind. For a start, it will result in some ESD diodes between GND and CC – watch out, don’t bring CC below 0 V or above 5 V.

A second kind of IC is the signal re-driver, used in active cables. You have to provide power to these redrivers through either VBUS or VCONN, just like emarkers. If you don’t do it, your high-speed lines might just be unresponsive to any high-speed signal you apply to the pins.

What about rotation? That’s a tough one – unless your signal is very much like USB3/DisplayPort/Thunderbolt, you might not be able to find a suitable mux chip to rotate your signals. As such, you will likely want to stick to a single rotation and wire your signals directly. Then, if you plug in the cable in an unexpected way, it won’t work, so you should probably consider using the CC pin or the two SBU pins for lighting up LEDs. showing you whether you’re good, or whether you should unplug the cable, rotate it, and plug it back in, like in the good old days.

There’s one last thing you might care about. USB-C cables connect TX on one end to RX on another end, and vice-versa. This is nice for PCIe purposes, since it, too, flips pair naming at the connector. For any other signal, you’ll want to keep it in mind – RX1 won’t go to RX1 on the other end, it will go to TX1, and you’ll have to re-layout accordingly. Unfortunately, I’m not intimately familar with active cable inner workings – so, it’s hard for me to tell whether any active cable redriver chips would reject certain sorts of signaling, perhaps, signals that don’t match USB3, DisplayPort or Thunderbolt signaling types.

And One Last Hack

These are the basics of what you should know before you try and reuse a USB-C cable, no matter its complexity. That said, here’s an extra hack before we conclude!

Only one USB2 pair is actually connected at the USB-C cable end – the pair on the same side as the CC pin. My guess is, this was initially done to avoid stubs and cable plug PCB routing complications, as well as to accomodate standards like VirtualLink. Regretfully, we never got VirtualLink cables, which would allow us to use seven differential pairs at a time, but there is another hack we still get out of this!

What does this mean for you? If you use two USB2-grade 2:1 muxes, you can get two extra differential signals out of a fully-compliant USB socket, and they won’t even interfere with standard-compliant cables. Use this for SWD, JTAG, or whatever else, with your signals broken out through a custom plug – just make sure you dutifully switch the muxes depending on cable orientation, then you can keep your USB2 cake and eat it, too.

 

This articles is written by : Nermeen Nabil Khear Abdelmalak

All rights reserved to : USAGOLDMIES . www.usagoldmines.com

You can Enjoy surfing our website categories and read more content in many fields you may like .

Why USAGoldMines ?

USAGoldMines is a comprehensive website offering the latest in financial, crypto, and technical news. With specialized sections for each category, it provides readers with up-to-date market insights, investment trends, and technological advancements, making it a valuable resource for investors and enthusiasts in the fast-paced financial world.

Recent:

Flyback, Done Right Jenny List | usagoldmines.com
RISC CPU Lives in Excel Al Williams | usagoldmines.com
Modular Multi-Rotor Flies Up To Two Hours Danie Conradie | usagoldmines.com
Hacking the Soil to Combat Desertification Navarre Bartz | usagoldmines.com
$40 Ham Antenna Works Six Bands Al Williams | usagoldmines.com
RFID From First Principles and Saving a Cat Dan Maloney | usagoldmines.com
Forget Pixel Art: Try Subpixels Al Williams | usagoldmines.com
Police Issue Warning Against ‘Grandparent Scam’ After Elderly Man Loses $9,500 To Thief Posing As Hi...
Close Shave for an Old Oscilloscope Saved with a Sticky Note Dan Maloney | usagoldmines.com
8,100 Banks and Financial Institutions Brace for Fallout As Hackers Reveal Major Data Breach on Dark...
3D Printed Boat Uses Tank Tracks For Amphibious Propulsion Lewin Day | usagoldmines.com
Open Source, Forced Innovation, and Making Good Products Elliot Williams | usagoldmines.com
3D Space Can Be Tiled With Corner-free Shapes Donald Papp | usagoldmines.com
Drilling Rig Makes Accurate Holes In Seconds Lewin Day | usagoldmines.com
Transforming Drone Drives and Flies Danie Conradie | usagoldmines.com
Mammalian Ancestors Shed Light on The Great Dying Navarre Bartz | usagoldmines.com
Bankrupt Crypto Exchange FTX Set To Begin Paying Creditors and Customers in Early 2025, Says CEO Rho...
Lasers, Galvos, Action: A Quest for Laser Mastery Heidi Ulrich | usagoldmines.com
Build Yourself A Useful Resistor Decade Box Lewin Day | usagoldmines.com
OLED Screen Mounting, Without The Pain Jenny List | usagoldmines.com
Hack On Self: The Un-Crash Alarm Arya Voronova | usagoldmines.com
Enhiker Helps You Decide if its a Good Day to Hike Lewin Day | usagoldmines.com
This Week in Security: Footguns, Bing Worms, and Gogs Jonathan Bennett | usagoldmines.com
A Surprisingly Simple Omnidirectional Display Danie Conradie | usagoldmines.com
Learn About Robot Arms By Building Pedro 2.0 Lewin Day | usagoldmines.com
Quick and Very Dirty Repair Gets Smoked PLC Back in the Game Dan Maloney | usagoldmines.com
Creating and Control of Magnetic Skyrmions in Ferromagnetic Film Demonstrated Maya Posch | usagoldmi...
Gear Up: A 15-Minute Intro on Involute Gears Heidi Ulrich | usagoldmines.com
Custom Mouse Rocks Neat Thumbstick Design Lewin Day | usagoldmines.com
FREE-WILi Turns DC32 Badge Into Hardware Dev Tool Tom Nardi | usagoldmines.com
There’s Now a Wiki For Hacking Redbox Machines Lewin Day | usagoldmines.com
Blended Wing Body Passenger Airplanes and the End of Winged Tubes Maya Posch | usagoldmines.com
Measuring the Mighty Roar of SpaceX’s Starship Rocket Tom Nardi | usagoldmines.com
Simple Hydrogen Generator Makes Bubbles and Looks Cool Lewin Day | usagoldmines.com
Simple Stack of Ferrites Shows How Fluxgate Magnetometers Work Dan Maloney | usagoldmines.com
Stepping On LEGO For Science Kristina Panos | usagoldmines.com
A Tube Stereo Amplifier, From Scratch Jenny List | usagoldmines.com
A Cyberpunk Pocketwatch Navarre Bartz | usagoldmines.com
If Life Gives You Lemons, Build this Lemontron Heidi Ulrich | usagoldmines.com
FLOSS Weekly Episode 810: Pi4J – Stable and Boring on the Raspberry Pi Jonathan Bennett | usagoldmin...
With Core ONE, Prusa’s Open Source Hardware Dream Quietly Dies Tom Nardi | usagoldmines.com
FreeCAD Version 1.0 Released Maya Posch | usagoldmines.com
Boss Byproducts: Calthemites Are Man-Made Cave Dwellers Kristina Panos | usagoldmines.com
An Animated Walkthrough of How Large Language Models Work Donald Papp | usagoldmines.com
Junk Box Build Helps Hams with SDR Dan Maloney | usagoldmines.com
Most Extreme Hypergravity Facility Starts Up in China With 1,900 Times Earth’s Gravity Maya Posch | ...
Alleged Corrupt Los Angeles Police Officers Implicated in Crypto ‘Godfather’ Extortion Scheme Daily ...
Batteries Not Included: Navigating the Implants of Tomorrow Heidi Ulrich | usagoldmines.com
Dial-up Internet Using the Viking DLE-200B Telephone Line Simulator Maya Posch | usagoldmines.com
Raspberry Pi Compute Module 5 Seen in the Wild Elliot Williams | usagoldmines.com
Supercon 2024 SAO Petal KiCad Redrawing Project Chris Lott | usagoldmines.com
The Vecdec Cyberdeck is More than a Pretty Case Tom Nardi | usagoldmines.com
Supercon 2024 SAO Petal KiCad Redrawing Project Chris Lott | usagoldmines.com
The Great Redbox Cleanup: One Company is Hauling Away America’s Last DVD Kiosks Lewin Day | usagoldm...
Power Supply With Benchtop Features Fits In Your Pocket Donald Papp | usagoldmines.com
The Barcode Beast Likes Your CDs Jenny List | usagoldmines.com
Tearing Down A SLA Printer With The Engineers Who Built It Danie Conradie | usagoldmines.com
Hacking Haptics: The 19-Sensor Patch Bringing Touch to Life Heidi Ulrich | usagoldmines.com
A Very Fast Camera Slider For The Glam Shot Danie Conradie | usagoldmines.com
Crowdsourcing Ionosphere Data with Phones Al Williams | usagoldmines.com
Gloriously Impractical: Overclocking the Raspberry Pi 5 to 3.6 GHz Maya Posch | usagoldmines.com
Do You Dream in Color? Al Williams | usagoldmines.com
Exploring the Gakken FX Micro-Computer Alexander Rowsell | usagoldmines.com
Keebin’ with Kristina: the One With the Typo Kristina Panos | usagoldmines.com
The Laser Shadow Knows Al Williams | usagoldmines.com
Ruined 1993 ThinkPad Tablet Brought Back From The Brink Lewin Day | usagoldmines.com
Analog Shift Register Revealed Al Williams | usagoldmines.com
Completing the UE1’s Paper Tape Reader and First Squiggles Maya Posch | usagoldmines.com
Hackaday Links: November 17, 2024 Dan Maloney | usagoldmines.com
US’s UFO-Hunting Aerial Surveillance System Detailed In Report Maya Posch | usagoldmines.com
Schooling ChatGPT on Antenna Theory Misconceptions Dan Maloney | usagoldmines.com
ESP32 hosts a USB keyboard in this Typewriter Adam Fabio | usagoldmines.com
A Handheld Gaming PC With Steam Deck Vibes Bryan Cockfield | usagoldmines.com
Classic LED Bubble Displays Ride Again Dan Maloney | usagoldmines.com
Register Renaming: The Art of Parallel Processing Heidi Ulrich | usagoldmines.com
Open Source Universal ROM Programmer Grows Up Al Williams | usagoldmines.com
Nearly One-Third of All Customers at US Banks Have Experienced Fraud in Last 12 Months: Study Alex R...
Ethernet From First Principles Bryan Cockfield | usagoldmines.com
World’s First Virtual Meeting: 5,100 Engineers Phoned In Heidi Ulrich | usagoldmines.com
$500,000 Drained From American Bank Accounts As Insider Allegedly Steals Customers’ Sensitive Inform...
Playing Chess Against LLMs and the Mystery of Instruct Models Maya Posch | usagoldmines.com
Hackers, Patents, and 3D Printing Elliot Williams | usagoldmines.com
Spotted at Supercon: Glowtape Wearable Display Tom Nardi | usagoldmines.com
WiFi Status Indicator Keeps Eye on the Network Tom Nardi | usagoldmines.com
It’s a Soldering Iron! It’s A Multimeter! Relax! It’s Both! Al Williams | usagoldmines.com
BASIC Co-Inventor Thomas Kurtz Has Passed Away Jenny List | usagoldmines.com
Six US Banks Issue Urgent Debit Card Alerts, Forcing Mandatory Replacements for Many, After Third-Pa...
RISC-V Pushes 400 Million Forth Words Per Second Al Williams | usagoldmines.com
Bypassing Airpods Hearing Aid Georestriction With a Faraday Cage Maya Posch | usagoldmines.com
I Want To Believe: How To Make Technology Value Judgements Jenny List | usagoldmines.com
Hackaday Podcast Episode 296: Supercon Wrapup with Tom and Al, The 3DP Brick Layering Controversy, a...
This Week in Security: Hardware Attacks, IoT Security, and More Jonathan Bennett | usagoldmines.com
Homebrew pH Meter Uses Antimony Electrode Dan Maloney | usagoldmines.com
Desert Island Acetylene from Seashells and Driftwood Dan Maloney | usagoldmines.com
Retro Calculator Build Proves the Space Age Isn’t What It Used to Be Dan Maloney | usagoldmines.com
Nebraskan Farmers Were Using Wind Turbines Before Environmentalism Was Invented Jenny List | usagold...
Repairing The Questionable £25,000 Tom Evans Audiophile Pre-Amp Maya Posch | usagoldmines.com
Bluetooth Dongle Gives Up Its Secrets with Quick Snooping Hack Dan Maloney | usagoldmines.com
US DOE Sets New Nuclear Energy Targets Navarre Bartz | usagoldmines.com
Microfluidic Motors Could Work Really Well For Tiny Scale Tasks Lewin Day | usagoldmines.com

Leave a Reply