Learning the details of USB-C connectors makes me really appreciate the simplicity of USB-A: just 4 pins/wires achieves up to 480Mbps of half duplex speed, which is more than enough for many use cases.
Reversible USB-C is very convenient, but the connector is really complicated and I am always amazed that it is able to transmit 40~120Gbps data while simultaneously conduct up to 240W of power with 24 very tiny pins in tight proximity.
edit: USB-C isn't even serial (the S in USB) anymore with many parallels pairs.
What would be possible with a circular (thus omnidirectional) simple data plug (with a few pins as possible) given modern tech?
The complexity isn't even in the connector, it's in the insanity of the protocols used for negotiation. There's multiple protocols, over two different physical links, implementing what amounts to a network with negotiation between source and sink devices. You're supposed to be able to do things like connect two devices to a charger and have the devices dynamically work out how much power they can use, but I doubt anybody has ever completed support for any of it. The differing support for the protocols results in constant mysteries of "why isn't this charging", even with a cable analyzer and an inline protocol analyzer I'm often left head scratching.
> You're supposed to be able to do things like connect two devices to a charger and have the devices dynamically work out how much power they can use, but I doubt anybody has ever completed support for any of it.
You can buy an off the shelf solution for this. Several IC vendors sell auto-negotiating power sharing USB-PD source controllers. It's not that hard to implement and it's a feature you never notice when it works correctly.
Mainly this shows up in power banks and higher end AC adapters.
Also, which device is responsible for what. I have a nice chunky battery that I sometimes charge my phone from while away from power. It it runs out of juice during this, it stops, comes back to life because the phone sees a device in its port and advertises itself as a potential power source, then the phone proceeds to drain power back into the external battery.
Nothing mysterious in there. When the battery runs out of power completely, its PD controller ends up advertising being a sink so the "dead battery charging" can work. The phone notices it and starts feeding it power, as it should. A well-designed power bank would cut the power out from the phone before the power for PD IC goes down too and would hold off with advertising being a sink until the cable is unplugged, but that requires a bit more consideration for the particular use-case than just sticking a few generic ICs together and hoping for the best.
it would seem undesirable for the tiny battery to attempt to charge the big battery. you would be left with a phone at 10%, and a battery bank at like.... 5%
I've seen a video of someone kickstarting their car's battery with a phone; inferring user intention isn't always trivial. That said, the power bank case described above does not even require any such assumptions, I'd 100% expect the phone to start charging a power bank if it's dead while plugging it in, but that doesn't change the fact that it shouldn't do that if the power bank goes flat while charging the phone.
I've dreamed of having a device that I could put between two batteries and be able to say which battery should charge which (e.g., laptop to battery or the reverse)
But obviously that'd be a crazy device to carry with me at all times?? But yeah, "charging" vs "charge me" usb-c antics are a bit wild.
It forces the charging role: The single end is always source, the split ends are always sinks.
It also allows the two sink ends to be at different voltages, which means there must be some ultra-tiny SMPS in the blob, which blows my mind. (Though in my testing, it will pass 20v through to a single laptop, but when I plug in a 5v sink, the cable drops and renegotiates 15v from the source, so the laptop now gets 15v instead of 20. With two laptops connected, both get 20v and the source shows 20v.)
I carry this cable and a single Haribo AC charger when I travel, and it serves every need I've thrown at it.
This is called "design by committee" btw, the inevitable result of trying to make a product do everything. Good designs know what's in scope and what's out of scope and they aggressively prune extra use cases that would make the main ones more complicated.
> You're supposed to be able to do things like connect two devices to a charger and have the devices dynamically work out how much power they can use, but I doubt anybody has ever completed support for any of it
This is pretty common and works reasonably well in practice. The main annoyance is usually how well documented it is if you have reason to care about the details.
> Learning the details of USB-C connectors makes me really appreciate the simplicity of USB-A: just 4 pins/wires achieves up to 480Mbps of half duplex speed, which is more than enough for many use cases.
You're welcome to do that with USB-C, it has the VCC/GND/D+/D- wires and USB 2.0 support as a minimum requirement.
> edit: USB-C isn't even serial (the S in USB) anymore with many parallels pairs.
USB-C is not the same as USB the protocol, it's a connector standard that supports many different transmission methods. It supports USB 2, USB 3, Thunderbolt, DisplayPort, etc.
PCIe is generally considered a serial bus too, yet has many parallel lanes, each of which is hooked up behind a SerDes (serializer/deserializer).
Having multiple serial lanes generally doesn't make something a parallel bus.
At a guess… that the meaning of a high/low level on one of the pins is not independent of the high/low level of the other pins?
I.e. you have 8 wires which together give a single number between 0-256 per clock cycle, rather than 8 independent channels each with its own independent stream of 1’s and 0’s on it
Generally a parallel bus transmits an entire N-bit message at once, as N separate wires, with a single shared clock.
PCI has 32 address/data wires, and a whole 32 bit message is output at once on the bus and a clock is toggled when the data is valid along with some contextual information.
PCIe for example has many lanes, each lane has a shift register that turns an N-bit message into N 1-bit messages, which are shifted back in on the other end and turned back into an N-bit message. There's no shared clock, each lane operates essentially independently, and the clock is recovered from the signals on the differential pair. The controller then turns each part of the message each serial lane transmits into one word.
A parallel bus has a single clock and fixed timings between all signals (ideally sampled at the same time, but in practice there's skew compensation nowadays). For multiple serial lanes they each have their own clock, and they're combined together at a higher level.
The basic difference between a parallel and a serial communication channel is the number of electrical conductors used at the physical layer to convey bits. [1]
In usb, each differential pair (dp/dm) is driven by a serial interface engine (sie); and even though it is a pair, it is effectively half duplex and serial. Multiple dp/dm pairs does not make it parallel.
Yes. Silly name, but so it goes. PCIe and USB are different because there isn't a shared clock, which in practice means that there are not super strict requirements on the relative timing of signals across each lane (which is the main reason high-speed interconnects have generally moved to a 'multiple serial lanes' approach).
USB-C to me is the best power/data connector we've had for most electronics. This consolidates some points you made, and in sibling comments.
- Reversible
- Small
- You can still use the same wiring as USB 2.0/A, with the addition of 2 passives on the CC pins to ground. Or wire up all the USB 3.0 data lines, configure for high power draw etc.
- Universal
Replacing the mismatched pile of barrel plugs and competing USB standards we used to have. (Micro, Mini, A, B)
Many uses fall within the USB 2.0 data limit (480Mbit/s?) and power reqwuirements. So USB-C wired for USB 2.0 is a fantastic connector. Exceptions are charging Li-Ion batteries quickly, and data storage devices.
The devices may be broken, but thankfully USB-A trained us to try it, flip it, try it, flip it, try it. Usually works. Except for the devices with a usb-c charge port that can only charge from a usb-a to usb-c cable. :P
Thankfully, no device manufacturers label their products as broken by design... and you usually don't notice until way after the return period.
Is it a problem though? What is the provenance of devices which have this problem? I suspect we can help ameliorate this by confining the problem to a smaller set. The implication above is "USB C 2.0 connectors or cables have unreliable reversibility". An actionable change may be "USB C 2.0 connectors or cables from new brands at low prices sourced from Ali Express and Amazon have unreliable reversibility"
Nor does blaming the standard for shitty implementations.
I guess you could argue that the more complex a standard is, the higher the chance that somebody will take cheap shortcuts, but I don't really buy that logic, as you could then just as well e.g. blame the USB-A spec for a non-compliant charger exposing 230 V on GND.
That’s weird. For the USB 2.0 devices that I’ve designed, I literally only needed to connect the 2 DP and 2 DN pins at the connector and it just worked?
> the simplicity of USB-A: just 4 pins/wires achieves up to 480Mbps of half duplex speed, which is more than enough for many use cases.
USB-A is 4 or 9 pins. USB-3 added 5 more for two differential pairs and a signal ground.
> What would be possible with a circular (thus omnidirectional) simple data plug (with a few pins as possible) given modern tech?
Depends on how crazy you want to go. Tip/Ring/Ring/Ring/Sleve is mass produced, so you could have 5 conductors if you want.
TRRS gives you four conductors. If you cut down 40GBase-T to two pair, you should be able to do 20 Gbps on a twisted pair trrs cable... and you can send power over that too. USB 4 Gen 4 does 40 Gbps per pair, but uses one pair per direction. If you wanted just tip and ring, there's 10Gbase-T1 which is single pair, with optional power delivery.
You would need to make special twisted pair cables with the phone jacks. If you use 1/4" jacks, the connectors could probably manage a few amps. But disconnecting is going to be pretty gnarly as the sleeve tends to short across multiple jack connectors as it's pulled out.
The basic problem with T/R/S connectors is that all the contacts short circuit to each other while the plug's going in or out. For audio it "just" makes a pop (that may be extremely loud depending on what you've connected downstream), but you wouldn't want to be carrying significant power.
> If you cut down 40GBase-T to two pair, you should be able to do 20 Gbps on a twisted pair trrs cable
What you are describing is electrically impossible for any USB specified cable length due to capacitance and inductance as a result of poor ground ties. 20Gb/s line rate is barely possible on connectors designed for it.
Maybe with a magical twinaxial cable, but I still doubt it because of the size of the connector contacts.
> What you are describing is electrically impossible for any USB specified cable length due to capacitance and inductance as a result of poor ground ties
USB 4 Gen 3 runs at 20 gbps per pair (unidirectional), and USB 4 2.0 Gen 4 [1] is specced for 40 gbps per pair unidirectional.
Ethernet 10G-base-T is real and works without a shared ground. 40G-base-T doesn't seem to really exist, but I don't think it has a shared ground either.
[1] thanks USB Promoter Group. If ever I have trouble with naming things, I can always say I did better than USB. :P
> USB 4 Gen 3 runs at 20 gbps per pair (unidirectional), and USB 4 2.0 Gen 4 [1] is specced for 40 gbps per pair unidirectional.
Connectors are the issue: you have a 0.5pF capacitance budget. TRRS has massive contacts and a distant shared ground. 0.5pF on a normal 3.5mm TRRS is impossible. Not to mention the impedance discontinuities inherent to that arrangement. The face contact between the plug and receptacle is also extremely imperfect.
> Ethernet 10G-base-T is real and works without a shared ground.
Because it's galvanically isolated via a transformer and the connectors are small and designed for it? I thought we were talking about USB here.
> just 4 pins/wires achieves up to 480Mbps of half duplex speed
*With an incredibly large, complicated analog PHY
> USB-C isn't even serial (the S in USB) anymore with many parallels pairs
Only one of the pairs (each, for TX/RX) is used except for 2x2 configurations, and both are still serial links (which are then reassembled using an elastic buffer, like PCIe.)
Parallel means "clocked in parallel" - USB-C 2x2 is mesochronously clocked serial, the edges need not land in the same phase.
> What would be possible with a circular (thus omnidirectional) simple data plug (with a few pins as possible) given modern tech?
Reminds me of the old GoPros that could do composite video out of their headphone jack (actually a 2.5mm rather than the standard 3.5). This was a somewhat common arrangement for camcorders from the era.
And theres also the cursed ipod shuffle that CHARGED through its headphone port. It could even do USB 2.0 data over it too.
Most of the frustration people have with usb-c boils down to 2 things. 1: devices that only charge with usb-a-c cables because they've been updated from an older micro-usb device without much care. 2: In a hub or adapter with downstream ports, you cannot possibly get all capabilities on all ports because you can't really have one port capable of 15W and 40Gbps (for example) break out into 4 more ports, each capable of 15W and 40Gbps. It's also a bit weird that laptops generally have very impressive capabilities with multiple usb-c ports that can do so many things, but desktops for the most part have fewer and less capable usb-c ports.
The connector is complicated, but not from the user's perspective aside from the above limitations. Maybe there could be a bit of colour coding or connector keying for low power and data rate devices to clear things up. But all things considered, usb-c is really good and better than the alternate history where we ended up with 10 different connectors, some of them optical and some not.
If you want to do a circular plug with modern tech, you make it optical. Single led/laser in the center, barrel plug for power. As much data throughput as you want, scale up with WDMA.
Reversible USB-C is very convenient, but the connector is really complicated and I am always amazed that it is able to transmit 40~120Gbps data while simultaneously conduct up to 240W of power with 24 very tiny pins in tight proximity.
edit: USB-C isn't even serial (the S in USB) anymore with many parallels pairs.
What would be possible with a circular (thus omnidirectional) simple data plug (with a few pins as possible) given modern tech?
Replies (9)
Replies (5)
You can buy an off the shelf solution for this. Several IC vendors sell auto-negotiating power sharing USB-PD source controllers. It's not that hard to implement and it's a feature you never notice when it works correctly.
Mainly this shows up in power banks and higher end AC adapters.
Also, which device is responsible for what. I have a nice chunky battery that I sometimes charge my phone from while away from power. It it runs out of juice during this, it stops, comes back to life because the phone sees a device in its port and advertises itself as a potential power source, then the phone proceeds to drain power back into the external battery.
Replies (3)
Replies (1)
Replies (1)
Continue this thread (1 replies) →
But obviously that'd be a crazy device to carry with me at all times?? But yeah, "charging" vs "charge me" usb-c antics are a bit wild.
Replies (2)
Replies (1)
https://www.amazon.com/dp/B0CRZ6JJ6D
It forces the charging role: The single end is always source, the split ends are always sinks.
It also allows the two sink ends to be at different voltages, which means there must be some ultra-tiny SMPS in the blob, which blows my mind. (Though in my testing, it will pass 20v through to a single laptop, but when I plug in a 5v sink, the cable drops and renegotiates 15v from the source, so the laptop now gets 15v instead of 20. With two laptops connected, both get 20v and the source shows 20v.)
I carry this cable and a single Haribo AC charger when I travel, and it serves every need I've thrown at it.
Replies (1)
This is pretty common and works reasonably well in practice. The main annoyance is usually how well documented it is if you have reason to care about the details.
You're welcome to do that with USB-C, it has the VCC/GND/D+/D- wires and USB 2.0 support as a minimum requirement.
> edit: USB-C isn't even serial (the S in USB) anymore with many parallels pairs.
USB-C is not the same as USB the protocol, it's a connector standard that supports many different transmission methods. It supports USB 2, USB 3, Thunderbolt, DisplayPort, etc.
PCIe is generally considered a serial bus too, yet has many parallel lanes, each of which is hooked up behind a SerDes (serializer/deserializer).
Having multiple serial lanes generally doesn't make something a parallel bus.
Replies (1)
What does make it a parallel bus?
Replies (4)
I.e. you have 8 wires which together give a single number between 0-256 per clock cycle, rather than 8 independent channels each with its own independent stream of 1’s and 0’s on it
PCI has 32 address/data wires, and a whole 32 bit message is output at once on the bus and a clock is toggled when the data is valid along with some contextual information.
PCIe for example has many lanes, each lane has a shift register that turns an N-bit message into N 1-bit messages, which are shifted back in on the other end and turned back into an N-bit message. There's no shared clock, each lane operates essentially independently, and the clock is recovered from the signals on the differential pair. The controller then turns each part of the message each serial lane transmits into one word.
Replies (1)
The basic difference between a parallel and a serial communication channel is the number of electrical conductors used at the physical layer to convey bits. [1]
In usb, each differential pair (dp/dm) is driven by a serial interface engine (sie); and even though it is a pair, it is effectively half duplex and serial. Multiple dp/dm pairs does not make it parallel.
[1] https://en.wikipedia.org/wiki/Parallel_communication
Replies (1)
Replies (2)
It's not clear what your question is trying to imply or query. What does SPI got to do with USB?
https://onlinedocs.microchip.com/oxy/GUID-450989FA-38E4-4D68...
Continue this thread (1 replies) →
Many uses fall within the USB 2.0 data limit (480Mbit/s?) and power reqwuirements. So USB-C wired for USB 2.0 is a fantastic connector. Exceptions are charging Li-Ion batteries quickly, and data storage devices.
Replies (1)
Replies (4)
Replies (2)
Thankfully, no device manufacturers label their products as broken by design... and you usually don't notice until way after the return period.
Replies (2)
I guess you could argue that the more complex a standard is, the higher the chance that somebody will take cheap shortcuts, but I don't really buy that logic, as you could then just as well e.g. blame the USB-A spec for a non-compliant charger exposing 230 V on GND.
Continue this thread (1 replies) →
USB-A is 4 or 9 pins. USB-3 added 5 more for two differential pairs and a signal ground.
> What would be possible with a circular (thus omnidirectional) simple data plug (with a few pins as possible) given modern tech?
Depends on how crazy you want to go. Tip/Ring/Ring/Ring/Sleve is mass produced, so you could have 5 conductors if you want.
TRRS gives you four conductors. If you cut down 40GBase-T to two pair, you should be able to do 20 Gbps on a twisted pair trrs cable... and you can send power over that too. USB 4 Gen 4 does 40 Gbps per pair, but uses one pair per direction. If you wanted just tip and ring, there's 10Gbase-T1 which is single pair, with optional power delivery.
You would need to make special twisted pair cables with the phone jacks. If you use 1/4" jacks, the connectors could probably manage a few amps. But disconnecting is going to be pretty gnarly as the sleeve tends to short across multiple jack connectors as it's pulled out.
Replies (2)
Replies (2)
Replies (1)
Replies (1)
Continue this thread (1 replies) →
Which isn't an issue for current-mode AC coupled differential pairs and the ground connection being the final mate.
The actual issues here are electrical infeasibility at these speeds.
What you are describing is electrically impossible for any USB specified cable length due to capacitance and inductance as a result of poor ground ties. 20Gb/s line rate is barely possible on connectors designed for it.
Maybe with a magical twinaxial cable, but I still doubt it because of the size of the connector contacts.
Replies (1)
USB 4 Gen 3 runs at 20 gbps per pair (unidirectional), and USB 4 2.0 Gen 4 [1] is specced for 40 gbps per pair unidirectional.
Ethernet 10G-base-T is real and works without a shared ground. 40G-base-T doesn't seem to really exist, but I don't think it has a shared ground either.
[1] thanks USB Promoter Group. If ever I have trouble with naming things, I can always say I did better than USB. :P
Replies (1)
Connectors are the issue: you have a 0.5pF capacitance budget. TRRS has massive contacts and a distant shared ground. 0.5pF on a normal 3.5mm TRRS is impossible. Not to mention the impedance discontinuities inherent to that arrangement. The face contact between the plug and receptacle is also extremely imperfect.
> Ethernet 10G-base-T is real and works without a shared ground.
Because it's galvanically isolated via a transformer and the connectors are small and designed for it? I thought we were talking about USB here.
Replies (1)
> What would be possible with a circular (thus omnidirectional) simple data plug (with a few pins as possible) given modern tech?
So I'd assume galvanic isolation is available as it falls under modern tech (although it could also fall under ancient tech :P).
Phono connections have too much capacitance is a good objection --- but I was responding more to the question of lengths.
Continue this thread (1 replies) →
*With an incredibly large, complicated analog PHY
> USB-C isn't even serial (the S in USB) anymore with many parallels pairs
Only one of the pairs (each, for TX/RX) is used except for 2x2 configurations, and both are still serial links (which are then reassembled using an elastic buffer, like PCIe.)
Parallel means "clocked in parallel" - USB-C 2x2 is mesochronously clocked serial, the edges need not land in the same phase.
Reminds me of the old GoPros that could do composite video out of their headphone jack (actually a 2.5mm rather than the standard 3.5). This was a somewhat common arrangement for camcorders from the era.
And theres also the cursed ipod shuffle that CHARGED through its headphone port. It could even do USB 2.0 data over it too.
The connector is complicated, but not from the user's perspective aside from the above limitations. Maybe there could be a bit of colour coding or connector keying for low power and data rate devices to clear things up. But all things considered, usb-c is really good and better than the alternate history where we ended up with 10 different connectors, some of them optical and some not.