Closed RobMeades closed 1 year ago
uhubctl
without parameters will list all hubs e.g. 1-1 as well as port numbers with devices attached to them (1, 2, ...).
Hub location for RPi should be always 1-1, and it will always have only 4 ports 1 to 4. If may as well do it for all of them
Ah, yes, got it. I will do that, thanks!
I am using your marvelous code on a test system which consists of multiple Raspberry Pis, (Raspbian, Linux kernel version 5.15.76-v8+ aarch64) each RPi controlling a set of HW under test, driven over USB,
uhubctl
being used to power that HW up and down.Where the HW under test involves a debugger, specifically in the case of Segger JLink Base or ST-Link debug chips, these have that "turn themselves back on" tendency you discuss on the front page. I've tried setting 1000 retries:
uhubctl -a 0 -l 1-1 -r 1000
...but some still persist in staying on, so I was going to try:
...but I don't fully understand how I construct the command. I guess
${location}
is1-1
, but how do I determine the${port}
part? None of the Raspberry Pis know exactly what is connected to them, this all being driven from a genericJenkinsfile
, so ideally I need a "hammer" that will work in all cases.