Author Topic: What's in an USB-C cable?  (Read 927 times)

0 Members and 1 Guest are viewing this topic.

Offline ulianoTopic starter

  • Regular Contributor
  • *
  • Posts: 178
  • Country: it
What's in an USB-C cable?
« on: February 20, 2023, 08:32:25 am »
I just received this  ch32v307 evaluation which has an onboard debugger driven by an USB-C connector (on the right, the two on the left are for appliactions). Nice, I thought, I just happen to have (quite) a few USB-C to USB-C cables it would be nice to connect directly from my MacBook to the board!

Alas no! It didn't work directly with any of those cable (and I tested them all!) and I tested both on the MacBook and a Thinkpad.

It works only using an USB-A to USB-C cable either directly (on the Thinkpad) or through an adapter USB-A to USB-C then chained with the USB-C to USB-C cable.

I'm puzzled and also I expected technology and progress would have done (way) better.
« Last Edit: February 20, 2023, 08:36:21 am by uliano »
 

Offline Berni

  • Super Contributor
  • ***
  • Posts: 5023
  • Country: si
Re: What's in an USB-C cable?
« Reply #1 on: February 20, 2023, 08:49:55 am »
The problem is the extra CC pins on USB-C that inform the device about how to handle what was just plugged in.

These modern small laptops use the USB-C for both charging and to connect devices, so the port has to know if it has to receive power or give out power, if so at what voltage. They also tell it to interrupt the power when the cable is pulled out, since at the higher power levels this could draw an arc and damage the connector.

USB-A does not have these extra pins so 5V power is always presented by the host. So a USB-A to USB-C cable will provide power even when the USB-C end is not plugged into anything. However on a USB-C to USB-C cable these pins are wired directly between both ends. In the case of a USB-C to female USB-A adapter cable, the appropriate resistors are built into the cable, this tells the host machines USB-C port "Please act like a USB host and provide 5V power".

So now the device on the other end has to present the correct signals/pullups/pulldowns in order to tell the host to provide power. So there are some badly designed devices out there that just use a USB-C connector as a direct replacement for a microUSB, only connecting the regular USB 2.0 pins.
 
The following users thanked this post: David Aurora, SeanB, thm_w, JustMeHere, uliano

Offline ulianoTopic starter

  • Regular Contributor
  • *
  • Posts: 178
  • Country: it
Re: What's in an USB-C cable?
« Reply #2 on: February 20, 2023, 12:58:40 pm »
I'm starting to suspect that R10 and R11 could be soldered in order to request power... If only I had the schematics :-//
 

Offline ulianoTopic starter

  • Regular Contributor
  • *
  • Posts: 178
  • Country: it
Re: What's in an USB-C cable?
« Reply #3 on: February 20, 2023, 01:11:56 pm »
and here it is

So, does this means that i need to solder 5k resistor and it will power the board?

 

Offline ulianoTopic starter

  • Regular Contributor
  • *
  • Posts: 178
  • Country: it
Re: What's in an USB-C cable?
« Reply #4 on: February 20, 2023, 01:28:41 pm »
Easy!  ;D
 
The following users thanked this post: thm_w

Offline argile_tile

  • Contributor
  • Posts: 17
  • Country: us
Re: What's in an USB-C cable?
« Reply #5 on: February 23, 2023, 05:57:35 pm »
https://www.extremetech.com/computing/115251-how-usb-charging-works-or-how-to-avoid-blowing-up-your-smartphone

all c cables are not alike despite labeling.  be careful.  a separate url has lists of "good and bad" cables - which is "out of date" unfortunately.
« Last Edit: February 23, 2023, 05:59:57 pm by argile_tile »
 

Offline newbrain

  • Super Contributor
  • ***
  • Posts: 1767
  • Country: se
Re: What's in an USB-C cable?
« Reply #6 on: February 25, 2023, 12:50:55 am »
If only I had the schematics :-//
The github fairy granted your wish.
Bottom right corner.

Strange that you did not know of openwch github repos?
https://github.com/openwch/ch32v307

EtA: Ah, should have read all the messages  :=\
Nandemo wa shiranai wa yo, shitteru koto dake.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf