azonenberg / starshipraider

Open hardware test equipment
BSD 3-Clause "New" or "Revised" License
143 stars 22 forks source link

Active Probe Control/Power Prototypes #3

Open davidlenfesty opened 3 years ago

davidlenfesty commented 3 years ago

As discussed on IRC (I may have misinterpreted things or got something wrong):

There needs to be a standard power/control interface for active probes (that lives separately from what carries the actual signal). USB-C is a prime candidate, it's an easy cable/connector to get a hold of, has a fairly permissive spec, and is just ergonomic to use.

To do this we need to first design proof of concept prototypes of both the probe and host side, so that we can embed them into the probe/host (BLONDEL first for the host as far as I know). I am planning on implementing the host side, and

Interface requirements

Interface Design

USB-C compatibility

We are slightly out of spec in that SSTX/SSRX aren't allowed to proved +-7VDC, but that is mitigated by gating that power behind a successful handshake. Other than that it follows the standard for a debug accessory.

I am currently unsure how to account for Source-Source connections on the host side (i.e. plugging a laptop into the host), but that should shake out in doing the full design and is fully captured by the amount of the spec we follow. Also on the host side we'll probably just use a dedicated USB C controller IC, which should handle that automagically.

EDIT: We also need to take care that we account for active cables. Apparently some of them have signal reprocessors, which means we could accidentally burn out a cable.

Prototype requirements

Host side:

Probe side:

azonenberg commented 3 years ago

For host-to-host handling, can we use a MOSFET based ideal diode on Vbus to prevent backfeeding from an external host?

davidlenfesty commented 3 years ago

Update on general progress (discussed in IRC but I feel should be updated here as well):

I have ordered the PCBs for the probe and host, TODO is ordering the parts and actually assembling them. My time is fairly limited so this will be a decent while still.

Host side firmware seems to be mostly done - pending some USB PD handshaking implementation, which seems simple but probably isn't, and the grunt work of creating a SPI register interface. I don't have hardware on hand to debug, so all I really know is that it compiles. Debugging will probably start when I have hardware brought up.