News for hackers. Stuff that matters.
Re:USB inventor explains why the connector was not designed ... by crote on Tuesday October 10, 2023 @06:14AM (#37830296)
If you want to do it properly:

    1: GND/sense
    2: DATA +/-
    3: VCC
    4: DATA +/-
    5: GND/sense
Have the host side connect only pin 1 to GND and leave pin 5 floating, but have the device side connect both 1&5 to gnd, with individual pullups for 1 & 5 to VCC.

The device will sense LO on 1 and HI on 5 if either both sides are plugged in straight or both sides are plugged in reversed, but it will sense HI on 1 and LO on 5 if exactly one of them is reversed. This allows the device to detect when inversion of D+/D- is needed.

There are no comments on this comment yet.