Author Topic: USB Type C connector and cable  (Read 4759 times)

0 Members and 1 Guest are viewing this topic.

Offline ricko_ukTopic starter

  • Super Contributor
  • ***
  • Posts: 1157
  • Country: gb
USB Type C connector and cable
« on: January 19, 2020, 10:08:33 pm »
Hi,
I am thinking to use a USB type C connectors and cable between two units for a new product. The signals are low speed and the only reason for using this solution is the large number of contacts in a compact connector and relatively flexible cable without making it custom. I want to use it as a straight cable withOUT any ICs, just to transfer signals and few mA of power.

1) do USB type C connectors in cables which transfer data (i.e. all pins connected/active) contain electronics or are they just plain simple cables with straight copper wires between the connectors?
2) what is the best and simplest (!) way to implement such solution?


Thank you :)
 

Online wraper

  • Supporter
  • ****
  • Posts: 17952
  • Country: lv
Re: USB Type C connector and cable
« Reply #1 on: January 19, 2020, 10:23:48 pm »
There is no electronics in the cable. Be aware that in USB 3.x cables number of actual wires is only half of the total pin count. USB 2.0 cables have only 4. GND wire usually is connected to a shield. Also if you use it, be ready that people will certainly plug something non compatible on the other end like charger, laptop, whatever. So circuit should tolerate such conditions, not blow up.
« Last Edit: January 19, 2020, 10:28:48 pm by wraper »
 

Online ejeffrey

  • Super Contributor
  • ***
  • Posts: 4034
  • Country: us
Re: USB Type C connector and cable
« Reply #2 on: January 19, 2020, 10:46:40 pm »
Only about half the pins or fewer on the USB-C connector are wired up on any given cable.  For instance, the D+ and D- pins are duplicated on the connector, but only one side is wired up.  Likewise, the power and ground pins are all connected together in parallel.

Also, some cables are USB2 only--they do not have any superspeed pairs.  Many USB-C chargers come with this kind of cable only intended for charging. Other cables may have 2 or 4 pairs present.

One of the two CC pins is normally wired through, but there are electronically marked cables in which case there will be a chip hanging off the CC pin (and powered by the "other" CC pin).  All cables supporting USB 3.1 or higher, supporting alternate modes (like thunderbolt or HDMI) or 5A charging need to be electronically marked.

So all you can really guarantee are the basic USB-2 pins: VBUS, GND, D+, and D-.  Anything else is going to be at the least more complicated and may not be present in whatever cables you use.

Of course, you also want to consider the possibility of someone plugging an arbitrary USB type-C device into yours.
« Last Edit: January 19, 2020, 10:49:05 pm by ejeffrey »
 

Online ejeffrey

  • Super Contributor
  • ***
  • Posts: 4034
  • Country: us
Re: USB Type C connector and cable
« Reply #3 on: January 19, 2020, 11:00:25 pm »
Oh, you said "product" -- I would not recommend doing this in any sort of product.  That is just going to lead to frustrated customers and possibly equipment damage.
 
 
The following users thanked this post: thm_w, tooki

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28429
  • Country: nl
    • NCT Developments
Re: USB Type C connector and cable
« Reply #4 on: January 19, 2020, 11:17:27 pm »
USB-C connectors are pretty cheap and cables are readily available. I've used a USB-C connector to take a PCIexpress bus to a daughterboard in a price sensitive product. There is one catch though: you can plug a USB C in in any direction and the connection isn't 1 to 1.

However for a low speed signals and a small bit of power I'd recommend to use ribbon cable or a crimp style connection. Molex pico-spox, JST XH, etc.
« Last Edit: January 19, 2020, 11:20:33 pm by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 13157
  • Country: ch
Re: USB Type C connector and cable
« Reply #5 on: January 22, 2020, 05:26:46 am »
USB-C connectors are pretty cheap and cables are readily available. I've used a USB-C connector to take a PCIexpress bus to a daughterboard in a price sensitive product. There is one catch though: you can plug a USB C in in any direction and the connection isn't 1 to 1.
Sooooo... you reinvented Thunderbolt??
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 13157
  • Country: ch
Re: USB Type C connector and cable
« Reply #6 on: January 22, 2020, 05:34:08 am »
Hi,
I am thinking to use a USB type C connectors and cable between two units for a new product. The signals are low speed and the only reason for using this solution is the large number of contacts in a compact connector and relatively flexible cable without making it custom. I want to use it as a straight cable withOUT any ICs, just to transfer signals and few mA of power.
If there is ONE connector family one should NEVER misappropriate, it’s USB, because you can pretty much guarantee it WILL get connected to an actual USB device or power source, causing it to not work at best, and damaging one or both devices at worst.

So I agree with the others who strongly suggest using something else.

How many pins do you need?
 
The following users thanked this post: Kilrah

Offline ricko_ukTopic starter

  • Super Contributor
  • ***
  • Posts: 1157
  • Country: gb
Re: USB Type C connector and cable
« Reply #7 on: January 22, 2020, 05:51:49 am »
If there is ONE connector family one should NEVER misappropriate, it’s USB, because you can pretty much guarantee it WILL get connected to an actual USB device or power source, causing it to not work at best, and damaging one or both devices at worst.

So I agree with the others who strongly suggest using something else.

How many pins do you need?

Thank you Tooki
we need minimum 10 ideally 12 poles. As compact as possible. Connector with sleeve/grip to be inserted and pulled out easily like any consumer cables (Ethernet/USB etc).

BTW, we were looking at USB C because we only need to make 60 units. Not a mass market solution. And the cable would be provided with the equipment. Also the entire equipment/system is only on loan.

Thank you
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 13157
  • Country: ch
Re: USB Type C connector and cable
« Reply #8 on: January 22, 2020, 06:33:16 am »
Well, for 10 pins I’d suggest a 10p10c modular connector (same as RJ-45 but with more pins). Ethernet is tolerant of being connected wrong, so unlikely to cause problems if connected by accident.

Of course, if you could get it to 8 pins or less you could use cheap Ethernet cables.
 
The following users thanked this post: ricko_uk

Offline mansaxel

  • Super Contributor
  • ***
  • Posts: 3559
  • Country: se
  • SA0XLR
    • My very static home page
Re: USB Type C connector and cable
« Reply #9 on: January 22, 2020, 06:34:57 am »
Unless operated only by its builder, I'd STRONGLY recommend against using USB connectors.

D-sub high-density 15-pole ("VGA") is a better alternative, while also to some extent suffering from the "too familiar" problem. Beyond that, Hirose or similar japanese manufacturers, or a mini-Tuchel (there is a 12-pin) can do the job. Of course milspec connectors like 5015 or KPT are always best. But, at a price.


Offline Berni

  • Super Contributor
  • ***
  • Posts: 5050
  • Country: si
Re: USB Type C connector and cable
« Reply #10 on: January 22, 2020, 07:03:53 am »
Oh, you said "product" -- I would not recommend doing this in any sort of product.  That is just going to lead to frustrated customers and possibly equipment damage.
If there is ONE connector family one should NEVER misappropriate, it’s USB, because you can pretty much guarantee it WILL get connected to an actual USB device or power source, causing it to not work at best, and damaging one or both devices at worst.

Oh so you mean like using the USB-C connector for different things on different consumer electronics devices? That sounds familiar. By standard USB-C only needs to support USB 2.0 to meet the spec.

But if the device so chooses it can also have the flowing:
-USB 3.0
-USB-PD power delivery(from 5V all the way to 20V 5A, varies on what is supported)
-Thunderbolt
-HDMI
-DVI
-MHL (Another digital video format)
-Analog video (VGA, Component, Composite...)
-DisplayPort
-Debug Accessory (Like JTAG)
-Analog line level audio

You can plug any two USB-C devices together using a cable, but it will only actually work correctly if both devices support the same features from that list above.So in this regard USB-C is already fucked from the start. Only guarantee is USB 2.0, everything else is a gamble. :palm:

So if you come up with another feature for USB-C there is nothing really wrong with it because everyone else has already thrown compatibility out the window already. Just make sure you respect the 5V GND and CC pins so that nothing blows up if plugged into a USB-C port.
 
The following users thanked this post: GeorgeOfTheJungle, Howardlong, ricko_uk

Offline GeorgeOfTheJungle

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Re: USB Type C connector and cable
« Reply #11 on: January 22, 2020, 09:16:10 am »
You can always use GND, +5V, D+ and D- up to 5V. But that's only power + two signals, not 14.

"Universal Serial Bus Specification"
Quote
A USB device must be able to withstand a continuous short circuit of D+ and D- to VBUS, GND, other data line, or the cable shield at the connector
« Last Edit: January 22, 2020, 01:37:01 pm by GeorgeOfTheJungle »
The further a society drifts from truth, the more it will hate those who speak it.
 
The following users thanked this post: ricko_uk

Offline tooki

  • Super Contributor
  • ***
  • Posts: 13157
  • Country: ch
Re: USB Type C connector and cable
« Reply #12 on: January 22, 2020, 11:39:39 am »
Oh, you said "product" -- I would not recommend doing this in any sort of product.  That is just going to lead to frustrated customers and possibly equipment damage.
If there is ONE connector family one should NEVER misappropriate, it’s USB, because you can pretty much guarantee it WILL get connected to an actual USB device or power source, causing it to not work at best, and damaging one or both devices at worst.

Oh so you mean like using the USB-C connector for different things on different consumer electronics devices? That sounds familiar. By standard USB-C only needs to support USB 2.0 to meet the spec.

But if the device so chooses it can also have the flowing:
-USB 3.0
-USB-PD power delivery(from 5V all the way to 20V 5A, varies on what is supported)
-Thunderbolt
-HDMI
-DVI
-MHL (Another digital video format)
-Analog video (VGA, Component, Composite...)
-DisplayPort
-Debug Accessory (Like JTAG)
-Analog line level audio

You can plug any two USB-C devices together using a cable, but it will only actually work correctly if both devices support the same features from that list above.So in this regard USB-C is already fucked from the start. Only guarantee is USB 2.0, everything else is a gamble. :palm:

So if you come up with another feature for USB-C there is nothing really wrong with it because everyone else has already thrown compatibility out the window already. Just make sure you respect the 5V GND and CC pins so that nothing blows up if plugged into a USB-C port.
Oh, I totally agree that USB-C is a clusterfuck. But using the connector for something that isn’t USB or any sanctioned extension to it is asking for trouble.
 
The following users thanked this post: ricko_uk

Offline GeorgeOfTheJungle

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Re: USB Type C connector and cable
« Reply #13 on: January 22, 2020, 12:22:43 pm »
Oh, I totally agree that USB-C is a clusterfuck. But using the connector for something that isn’t USB or any sanctioned extension to it is asking for trouble.

No, it isn't, nothing bad can happen if you only use PWR and D+/-. For example, you can use D+/- as TxD and RxD for a serial port, no problem whatsoever.
The further a society drifts from truth, the more it will hate those who speak it.
 
The following users thanked this post: ricko_uk

Offline Berni

  • Super Contributor
  • ***
  • Posts: 5050
  • Country: si
Re: USB Type C connector and cable
« Reply #14 on: January 22, 2020, 12:32:20 pm »
Yep already did combination of USB and UART on MicroUSB before. Just a MUX that switches over the USB data lines over to RX and TX. Since its all 3.3V levels nothing bad happens, adding the usual resistors also makes it survive 5V on those pins.

This is pretty much the same as what USB-C does. It muxes over the pins to the appropriate function, except that now doing this is part of the spec. As long as nothing blows up by plugging it into the wrong thing.
 
The following users thanked this post: ricko_uk

Offline GromBeestje

  • Frequent Contributor
  • **
  • Posts: 285
  • Country: nl
Re: USB Type C connector and cable
« Reply #15 on: January 22, 2020, 01:35:06 pm »
Looking at the Wikipedia article,
https://en.wikipedia.org/wiki/USB-C#Alternate_Mode_partner_specifications
I'd say "Debug Accessory Mode" seems suitable. it gives 14 pins.
 
The following users thanked this post: ricko_uk

Offline senso

  • Frequent Contributor
  • **
  • Posts: 953
  • Country: pt
    • My AVR tutorials
Re: USB Type C connector and cable
« Reply #16 on: January 22, 2020, 04:09:15 pm »
How cheap does it need to be?
I would go for Harting Push-Pull family, with the 20 pins cables, more than enough pins, robust enough, wont be mis-connected, can use bulkhead connectors on the device side, and then make custom length or buy pre-made cables:

https://b2b.harting.com/ebusiness/en/Interface-connectors-PushPull-Device-connectivity-PushPull-Signal/34750?detail=false&sewConfig=false

Inquire their rep, and they can show you some more solutions, this would be my approach, given that the end user will surprise you in how dumb they can be, and there will be fried electronics after a while..

If you want cheaper, 19 pins DB connectors, not the typical VGA, or it will be mis-used as well..
 
The following users thanked this post: ricko_uk

Online thm_w

  • Super Contributor
  • ***
  • Posts: 7521
  • Country: ca
  • Non-expert
Re: USB Type C connector and cable
« Reply #17 on: January 23, 2020, 12:52:14 am »
There is no electronics in the cable. Be aware that in USB 3.x cables number of actual wires is only half of the total pin count. USB 2.0 cables have only 4. GND wire usually is connected to a shield. Also if you use it, be ready that people will certainly plug something non compatible on the other end like charger, laptop, whatever. So circuit should tolerate such conditions, not blow up.

Most cables do not have electronics, maybe one resistor, however, USB-PD emarked will have some ICs. So you might want to watch out what pins those are connected to. I believe if you stick with 5V or less Vcc it will be fine.
Cables were discussed a lot in the RPL1116 thread.

Finding fully wired passive cables was hard before, but now its getting a lot easier: https://www.primecables.ca/p-356977-cab-usbcm-cm-1ma-usb-c-31-to-usb-c-gen-2-mm-cable-with-aluminum-alloy-connector-primecables#sku365277

These are a bit stiffer than typical cables.
« Last Edit: January 23, 2020, 12:53:51 am by thm_w »
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 
The following users thanked this post: ricko_uk

Offline tooki

  • Super Contributor
  • ***
  • Posts: 13157
  • Country: ch
Re: USB Type C connector and cable
« Reply #18 on: January 23, 2020, 06:15:57 am »
Oh, I totally agree that USB-C is a clusterfuck. But using the connector for something that isn’t USB or any sanctioned extension to it is asking for trouble.

No, it isn't, nothing bad can happen if you only use PWR and D+/-. For example, you can use D+/- as TxD and RxD for a serial port, no problem whatsoever.
Will it really handle the ±25V allowed in RS-232 without damage? I kinda doubt it.

Regardless, USB-C and USB 3.x are a huge clusterfuck. This has been discussed at length on the forum and elsewhere.
 
The following users thanked this post: ricko_uk

Offline GeorgeOfTheJungle

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Re: USB Type C connector and cable
« Reply #19 on: January 23, 2020, 09:17:36 am »
Will it really handle the ±25V allowed in RS-232 without damage? I kinda doubt it.

RS-232? Hello? Tooki? It's 2020 already!  :)
The further a society drifts from truth, the more it will hate those who speak it.
 
The following users thanked this post: langwadt, ricko_uk

Offline mansaxel

  • Super Contributor
  • ***
  • Posts: 3559
  • Country: se
  • SA0XLR
    • My very static home page
Re: USB Type C connector and cable
« Reply #20 on: January 23, 2020, 02:15:48 pm »

RS-232? Hello? Tooki? It's 2020 already!  :)

I use it every day.  Because it works.

Offline GeorgeOfTheJungle

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Re: USB Type C connector and cable
« Reply #21 on: January 23, 2020, 02:37:30 pm »
I use it every day.  Because it works.

In new designs? Bipolar? +/- 25V? Really? Thermionic valves work too but...  :wtf:
The further a society drifts from truth, the more it will hate those who speak it.
 

Offline Berni

  • Super Contributor
  • ***
  • Posts: 5050
  • Country: si
Re: USB Type C connector and cable
« Reply #22 on: January 23, 2020, 03:10:31 pm »
Yeah you get at best +/- 10V out of your usual charge pump style RS232 transceiver IC these days. Even less for ones running from 3.3V

Also they have pretty limited current on the output so the ESD diodes in a USB port would probably just clamp it down.
 

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5424
  • Country: gb
Re: USB Type C connector and cable
« Reply #23 on: January 23, 2020, 04:56:51 pm »
You can plug any two USB-C devices together using a cable, but it will only actually work correctly if both devices support the same features from that list above.So in this regard USB-C is already fucked from the start. Only guarantee is USB 2.0, everything else is a gamble. :palm:

..."using a cable"... and there's another rub! Not even apparently identical cables are the same, not by a long way. For a consumer it's a disaster.

I'll also add my 2 cents that, both physically and electrically, USB Type C has shown itself to be very fragile. IMHO while the aim was noble, trying to share a tiny high density connector with high power and high speed data was a mistake. The USB receptacle itself has proven to be very likely to fail (as well as the high speed data muxes) and if soldered to a motherboard for example, it can be a very expensive failure, especially if the SSD is soldered in too.

When it works it's great, my OH has an external 15" monitor that plugs into the USB C on her laptop, and all the power and video goes down the same cable. But not many USB Type C cables support high speed data/video and power delivery.

Edit: when USB Type C works, it's often the exception rather than the rule.
« Last Edit: January 23, 2020, 05:00:52 pm by Howardlong »
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 13157
  • Country: ch
Re: USB Type C connector and cable
« Reply #24 on: January 24, 2020, 04:07:13 pm »
Will it really handle the ±25V allowed in RS-232 without damage? I kinda doubt it.

RS-232? Hello? Tooki? It's 2020 already!  :)
When an external serial port is discussed without specifying a particular standard, it remains understood that RS-232 is meant. TTL serial is extremely rare for external ports. (The debug headers on PCBs don’t count as external.)

RS-233 ports are still widely used in some applications, even if I haven’t used one in years. (And as a long-time Mac user, most of the serial I used back in the day was actually RS-422.)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf