4 ms·
Case Studies in USB-C Debugging (2020)
- theamk 5y agoIt is pretty sad how hardware test suites are uncommon, hard to use and sometimes are missing altogether. Consortums release the standards for free or for nominal fees, but don't release the test suites under the same conditions. Forget complex USB 3 - even something as simple as I2C often has bugs under unusual circumstances. Ans compate this to software world - Python for example comes with a large test suite, and re-implementations can use it to see how close they are.
- zerohp 5y agoSome standards come with test suites. For example, if you design a CPU from scratch under an ARM architecture license there’s a comprehensive set of tests provided by ARM that must pass.
- andromeduck 5y agodEQP for android is another example https://android.googlesource.com/platform/external/deqp/ https://android.googlesource.com/platform/external/deqp/
- epall 5y agoThis work seems so much more challenging, interesting, and fun compared to what I do as a senior software engineer. Why does hardware engineering pay so much less??
- wongarsu 5y agoFor the same reason game development or software development at SpaceX pays so little: if people want to do it you don't have to pay them to show up, only to survive.
- gary_0 5y agoThe number of hardware designs companies can produce is restricted by economies of scale and the less mutable nature of hardware versus software, which in turn restricts the number of hardware engineers needed and thus the market demand for their skills. Also, much of the hardware production pipeline has been moved overseas to places with lower standards of living.
- 2rsf 5y agoTry being an embedded software engineer, it tends to pay more than a HW engineer gets and still have all the fun
- d-sc 5y agoYup - also you need to know both fields hence why it pays more.
- vatys 5y agoThe worst thing about having read the USB PD specification is having to live with this knowledge
- formerly_proven 5y agoI like the appendix that talks about actively managing the arcing that EDMs the contacts away.
- bartvk 5y agoThe writer of the piece, Nathan K., has been such a hero to me. He used to post scathing (or glowing!) reviews on Google Plus, on whether certain cables, chargers or other hardware stuck to the standards or not. I believe it got him into hot water, because when he was looking for a job, one unnamed prospective employer thought him "too critical" (not "too knowledgeable" mind you). I got obsessed with USB-C for a while, and he'd answer questions there, and point to the specs when appropriate.
- RickHull 5y agoOh yeah, I remember this guy! We need more people like this writing critically about technology and hardware.
- mmebane 5y agoIf you're still interested in that sort of thing, Benson Leung is another Google engineer who's done a lot of work similar to Nathan K. He's u/LaughingMan11 on Reddit [1], and engages in a lot of technical discussions on r/UsbCHardware [2]. [1]: https://old.reddit.com/user/LaughingMan11/ https://old.reddit.com/user/LaughingMan11/ [2]: https://old.reddit.com/r/UsbCHardware/ https://old.reddit.com/r/UsbCHardware/
- Nathan_K 5y agoSpoiler: I'm his colleague. I kept as strict professional/personal isolation as I could, which is why I didn't discuss it much. I had to take a step back when I took an NDA to the knee. Plus some other local hurdles. We're normal people like everyone else. This work is quite rewarding, although complexity has skyrocketed since Kernel-side connection manager for USB4 was implemented. Definitely pick up a Type-C PD analyzer, 4-channel scope, current probe, breakout, and start poking at products around you to learn. (Just not anything EPR yet; you'll fry out your analyzer's eye diagram, kid.) For industry news and cool tech I'd recommend following Benson instead. He is aware of the ins and outs of his professional station, and serves as a better ambassador for the technology. I'm more of his hardware-biased understudy, and a heckler from the peanut gallery. Closing, here's some tool suggestions for those wanting to heed the call to action: Good breakouts are the hardest part to find. Wilder has an excellent "PD coupon" but it prices out most hobbyists. Team-Solutions has the much more accessible Acute Co Tw "AC034 Type-C Breakout Board", but you need to look for "USB Type-C Fixture" on their rather old website. For analyzers Ellisys Type-C Tracker is the most polished suite, but runs around $5k for single DP/USB4 unlock. TotalPhase PD analyzer is "lingua franca" for Benson since it runs on Linux and his team designed the underlying open-source hardware, however the decode lens hasn't been updated in a very long time. Cypress CY4500 I've found some packet parsing bugs (crosschecking with other analyzers), so always double check the decoded data. Saleae Pro may be your best bet; it is common at Fruit Companies, and Saleae provides a generous hobbyist discount.
- mst 5y agoWorth noting there is, as implied in the post, a part two among other things available from here: https://medium.com/@kolluru.nathan https://medium.com/@kolluru.nathan
- joshstrange 5y agoI would pay $100-200 for a smallish device (around raspberry pi sized ideally) that I could plug a USB-C cable into (both sides, maybe this device would need at least on USB-A as well?) and it would spit out all the capabilities PD/Speed/TB?/display/etc.
- mmebane 5y agoI don't have one myself yet, but the Power-Z KM002C [1] looks like it can do most/all of that. There's an example on their unboxing video [2]. [1]: https://www.chargerlab.com/power-z-km002c-is-now-available-on-amazon/ https://www.chargerlab.com/power-z-km002c-is-now-available-o... [2]: https://youtu.be/RVMxe_NIDJI?t=2m20s https://youtu.be/RVMxe_NIDJI?t=2m20s