by groovybits · 7y ago · 0 comments
However, it damages the purpose (in name) of USB C. Isn't C supposed to be the 'all purpose' spec? If we have popular manufacturers failing to follow the spec, we end up with cables marked as 'compatible with Raspberry Pi' or 'compatible with Nintendo Switch'. To the average consumer (and even most techies), USB C was supposed to be the 'one size fits all' connector. We're slowly heading in the opposite direction.
Given this has happened time and time again, it seems like a process flaw more than a document flaw. Maybe well-meaning people just make mistakes. Or maybe people knowingly cut corners to save money (because saving on parts is a pressure that will never go away). Or something else.
So some sort of process fix seems to be needed, one that will (1) reward those who succeed and/or (2) punish those who try to get away with violating the spec and/or (3) create tools (like test equipment or certification services or processes) to make compliance easier to achieve for those who are trying to.
So, for example, could the Pi people have used some kind of device that would plug in and run through all the combinations? Or could there have been a canned list of test cases (representatives of different types of chargers, how they should behave) they should have run? Or could they have sent a prototype device off to USB Shouldn't Suck Labs to have them test it? Or email a schematic to them to have it reviewed by an engineer?
I wasn’t aware there were different specs until a few weeks ago. I’m sure the rpi4 was in development since last year. They should have tested more cables, maybe they can fix it somehow.
If they'd instead specified that every detachable USB C cable must be 40 Gbps / 100 watt capable, and any lower-spec cable must be captive to the device (like mouse and keyboard cables are) then this problem wouldn't have happened.
If you are specifying that every cable is going to be $30 minimum, then your spec is dead from day 0. The USB-C committee has to balance a spec that will be used by a significant chunk of the planet, not all of whom can afford expensive cables.
Obviously not, since there is a way to get it almost right, which is what the Pi 4 demonstrates here. Experience from cryptography suggests that for a spec to be truly unambiguous, any deviation should make the implementation fail obviously in as many situations as possible.
That would have been right in line with demanding that everyone buy 65,536 IDs at a time for thousands of dollars while attempting to prohibit resale.
I started digging into USB for a project and the rabbit hole kept going deeper and deeper; I never fathomed the amount of complexity hidden under the hood of USB until I needed to start talking to a Qualcomm modem on the other side of a USB 3.0 connection (and the modem, even though it is a single device, enumerates 16+ USB 3.0 endpoints, which is a problem for a lot of ARM SoCs, or at least the vendors we tried!).
I'd assume there are a bunch of reference designs, probably provided by the USB consortium itself, which should make it unnecessary to know anything about the spec to produce a USB C port.
The hard bit is fitting all those traces (some potentially high current) around that dinky connector with 24+ ground pins - with many all trying to do the swap thing at the same time
7 bits even parity? 8 bits no parity? hardware or software flow control? how do I know the modem is connected? lots o' fun!
The specs weren’t that simple (why would a serial port connector need 25 wires?).
It’s more the implementations that were simple, going down to 5, 3 or even 2 wires (https://en.m.wikipedia.org/wiki/RS-232#3-wire_and_5-wire_RS-...)
"The Figure 4–9 I posted above isn’t simply a rough guideline of one way of making a USB-C receptacle. It’s actually normative, meaning mandatory, required by the spec in order to call your system a compliant USB-C power sink. Just copy it."
The reason this is wrong on the Pi is not because of "a huge matrix of incompatibility", but of ignorance to a mandatory design spec that is provided to everyone already.
It seems to parallel crypto from a high level. Yes, USB-C can be complex. But they did the hard work here so: don't roll your own and use this free and complete reference implementation.
And yet people keep saying USB-C will get better, the controller will get better, the quality of USB-C cable will get better. And Time and Time again it has proved vendors only care about cost, not quality.
Maybe people remember the beginning of USB. No cable marked charging/data but some are charging-only. Different resistances interfering with charging. USB 1 hubs pretending to be 2. It was all sorted out with time. Now USB 2 seems like magic that just works everywhere, but it really used to suck. (The experience, not the tech itself)
In fact, you can buy lightning connectors that will destroy your iphone.
Poor quality implementations in order to save costs have nothing to do with USB-C vs Lightning.
In fact, because Apple charges so much to be able to build official lightning devices, people are more likely to go with unofficial cables from unknown brands. At least USB-C cables and chargers are a lot cheaper for reputed brands to manufacture officially.
Why design them to fit together if they won't always work right?
In my experience, finding the right cable has never been an issue. All the USB-C devices I've bought came with a suitable cable in the box.
My wife wanted a charger with a longer cable for her phone. We need it to be able to fast charge, which is called a variety of different names on both the phone and charger sides. Can I get the $10 charger, or do I need the $40 charger the size of the MBP charger?
We ended up just biting the bullet and getting one of the more expensive, MBP-charger-shaped chargers, since I have laptops that use USB-C - but it was a confusing mess, and I still wasn't really sure fast charging would work on her phone till I plugged it in the first time.
Which is fine, until you need you need a new cable. When I lost the cable for my phone, finding a cable I could trust was a pain.
I too don’t understand dynamic typing. ;)
USB-C is designed for graceful degradation.
There are two main types of non-captive cables: USB 2.0 only and USB 2.0 plus USB 3.x. Hosts and devices have to support at least USB 2.0, so if you try to connect two USB 3.x devices with a USB 2.0 only cable, it'll fallback to a USB 2.0 connection.
There are two main current levels: 3A and 5A. Cables which can carry higher power have a small chip describing this fact; if the chip is missing, the power source will limit itself to 3A.
Then there are the alternate modes. If you try to plug a device which only understands an alternate mode (for instance, a DisplayPort adapter), and the host doesn't understand that alternate mode (or can't understand it, like in the case of a USB-A port with a USB-A to USB-C cable), that device will instead appear as an USB 2.x device (the "billboard device"), which the operating system can use to show an error popup.
And so on. At every corner of the spec you can notice an interest in making it degrade gracefully. Of course, that can only work when the manufacturers follow the spec correctly.
Surely a not insignificant number of customers have MacBooks? If I was writing some test specs this use case would almost certainly feature, given the MacBook Pro's USB C adapter must be one of the most widespread high power USB C charger designs in existence. Especially when the stock device does not ship with a power supply, not like it was unforeseeable some customers would just use the chargers they already have.
"Good, low-cost USB-C power supplies (and USB-C cables) are surprisingly hard to find, as we discovered when sending out prototype units to alpha testers"
In hindsight that reads that they tried a bunch of off-the-shelf cables and were perplexed about why some of them didn't work.
So they built their own official power supply that worked around the design flaw.
[0] https://www.raspberrypi.org/blog/raspberry-pi-4-on-sale-now-...
The key point here is the standard charger design used on almost all laptop models from the world's 4th largest computer vendor. In my experience laptops from the top three have nothing close to the level of standardization in their charger design, given none of the top three have standardized solely on USB C for laptop charging. It was entirely foreseeable many people would try this and be disappointed when it didn't work.
Well, didn't seem that way to me when I bought an RPi4, tried it with two different power supplies and cables, and it didn't work at all. I thought the device was DoA so I did an RME with the distributor.
Today I learned a different story, and now I'll have to scrounge up yet another cable to see what the true story is. The one cable I have not tried may or may not be "dumb" enough for the RPi4 to work.
It's annoying at best.
At least the "dumb" cable I use in the car with my phone is dumb enough to feed power to the RPi4 anyway, so I'm going to keep the device and just remember to only use it with cheap, dumb cables.
I was very confused a few days ago when I plugged it into the MacBook Pro power supply, thinking "this ought to have more than enough juice for the Pi" - except the thing stayed dead and silent altogether. :)
RISC-V, is that you?
"There are 14 competing standards"...