Closed SmithChart closed 1 year ago
I've always assumed that we would implement this using the HTTP API of the tacd
but it does not have to be that way.
Using uhubctl
is perfectly fine, as it uses the same kernel API as the tacd
to do the switching and the tacd
notices the change eventually via periodic polling.
Implementing this using the HTTP API shouldn't be any more difficult than using the USBPowerPort
. But a polling interval of 1s still feels quite responsive.
All three USB ports on the LXA TAC are power switchable (e.g. using
uhubctl
).labgrid
already has a driver that can handle ports where power can be switched:USBPowerPort
.With this change we'll export the three USB ports as power ports. This way they can be used to switch DUTs on or off.
The resources exported will look something like this: