Remix.run Logo
▲ drum55 an hour ago

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.

▲dspillett 32 minutes ago | parent | next [-]

> constant mysteries of "why isn't this charging"

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.

▲gregsadetsky 3 minutes ago | parent | next [-]

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.

▲drum55 a minute ago | parent [-]

That sort of exists, lots of the USB-C analyzer things can force the direction with a switch.

▲seba_dos1 6 minutes ago | parent | prev [-]

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.

▲unrented7977 an hour ago | parent | prev [-]

> 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.