News for hackers. Stuff that matters.
Re:All About USB-C: Example Circuits by megous on Tuesday September 05, 2023 @03:07AM (#37388762)
> I’ve never done this circuit, but the way I see it, it should be enough to use two FETs, one per CC pin, both put in parallel.

Yeah, don't do it. CC also carries BMC signalling and pull-up/downs are normally dynamic and can change at runtime after plugin.

CH32X035 looks very interesting for playing with USB-PD. :)

Re:All About USB-C: Example Circuits by MenhirMike on Tuesday September 05, 2023 @03:12AM (#37388790)
Isn't something like that what made the original Raspberry Pi 4 not actually USB-C compliant, because they combined two signals that shouldn't have been combined?
Re:All About USB-C: Example Circuits by megous on Tuesday September 05, 2023 @03:41AM (#37388973)
I don't think so.
Re:All About USB-C: Example Circuits by greggsy on Tuesday September 05, 2023 @07:47AM (#37390437)
Isn’t it just for power, which would make it non compliant anyway if it’s not transferring data? Assuming that would make it non compliant…
Re:All About USB-C: Example Circuits by stavros on Tuesday September 05, 2023 @03:42AM (#37388974)
This post gave me the idea of making a USB-C Russian roulette chip, where plugging the USB jack in on one side works fine, but the other side fries your device.
Re:All About USB-C: Example Circuits by mschuster91 on Tuesday September 05, 2023 @04:55AM (#37389399)
New product idea for USBKill... for the uninitiated, a device that is used to test hardware defenses against malicious input using high voltage [1].

[1] https://usbkill.com/

Re:All About USB-C: Example Circuits by midoridensha on Tuesday September 05, 2023 @06:25AM (#37389967)
A more interesting and complicated version would use a random number generator to give you a 1 in 6 chance of frying your device when you plug it in.
Re:All About USB-C: Example Circuits by stavros on Tuesday September 05, 2023 @06:26AM (#37389971)
Yeah but then that's not a commentary on how USB-C is supposed to be the same in both directions but isn't.
Re:All About USB-C: Example Circuits by gsliepen on Tuesday September 05, 2023 @08:11AM (#37390618)
Oh! How about a USB-C device that detects its orientation this way, and requires you to replug it in the different orientation twice before it starts to work?
Re:All About USB-C: Example Circuits by gumby on Tuesday September 05, 2023 @08:18AM (#37390665)
Nice back compatibility thinking!
Re:All About USB-C: Example Circuits by dist-epoch on Tuesday September 05, 2023 @09:18AM (#37391230)
This could work in audiophile land.

Start a legend that the DAC sounds "digital", "harsh" and "jittery" if the USB-C plug is not inserted in the "correct orientation".

And of course, your device has a small LED near the plug which is green when plugged with the correct orientation.

Re:All About USB-C: Example Circuits by LargoLasskhyfv on Tuesday September 05, 2023 @03:08PM (#37396302)
Green isn't audiophile enough. Needs to shine in royal purple pink, or something like that.
Re:All About USB-C: Example Circuits by eternityforest on Wednesday September 06, 2023 @02:21AM (#37401865)
LEDs in general aren't audiophile enough. It should be like, a bare hot loop of nichrome behind some chicken wire for an indicator.
Re:All About USB-C: Example Circuits by burstmode on Tuesday September 05, 2023 @05:44AM (#37389732)
Every few sentences there there is a remark like "This circuit might have edge cases,... "...perfect for the majority of use cases,..". In other words: It will, at best, work on the developers table, but nowhere else. Why is somebody publishing examples that won't work in the real world ?
Re:All About USB-C: Example Circuits by saikia81 on Tuesday September 05, 2023 @07:19AM (#37390262)
hackaday is not about making consumer products. It's for hackers and hobbyist. The real world is vague, but should include people trying different implementations.
Re:All About USB-C: Example Circuits by m0llusk on Tuesday September 05, 2023 @10:17AM (#37391975)
USB is a mess. Lots of devices that claim support are actually way out of spec. As a result it is hard to say exactly what will happen when people start plugging stuff in.
Re:All About USB-C: Example Circuits by MichaelZuo on Wednesday September 06, 2023 @10:22AM (#37405590)
This is especially true for USB hubs of any kind, so much so that I think even Caldigit sold a hub that wasn't fully compliant to it's advertised capabilities.
Re:All About USB-C: Example Circuits by bloopernova on Tuesday September 05, 2023 @09:56AM (#37391683)
For testing your USB-C cables, I highly recommend the caberQU C2C: https://caberqu.com/home/20-c2c-caberqu-746052578813.html

So many cables aren't power delivery, just USB 2 spec: If you're wondering why your phone doesn't charge quickly, the cable tester might be able to help you find the issue.

Re:All About USB-C: Example Circuits by wlesieutre on Tuesday September 05, 2023 @10:47AM (#37392394)
You'd think you could plug a cable into a computer and have it tell you the capabilities instead of needing a dedicated device
Re:All About USB-C: Example Circuits by bloopernova on Tuesday September 05, 2023 @10:59AM (#37392567)
Yeah but that would be useful. Like being able to switch USB sockets on or off from software. Or lock them to a specific speed/bandwidth.
Re:All About USB-C: Example Circuits by extraduder_ire on Tuesday September 05, 2023 @12:55PM (#37394587)
You'd need to plug the other end into something and, unless you know what that device is, you wouldn't know if it's the cable that's lacking or the device you plugged in on the other end.

Better control of USB devices from computers would be swell though.