![]() ![]() This would avoid having to update environment variables each time the USB devices change order.Īs a workaround, I wanted to use the -json-output flag with jq to extract the information, but I’m not so familiar with jq. What would be ideal is to be able to dynamically find the port that corresponds to a device’s serial number, which pio device list reports via SER=xxx in the hwid, and use that as part of the CI build. However, when more devices are added, or USB hubs changed, the assigned ports will also change. I used pio remote device list to determine the ports that correspond to the devices, which I added statically as environment variables on the runner, so that they can be changed fairly easily. I’m using pio as part of Hardware in the Loop testing, using a SBC to run a self-hosted github actions runner, which has the hardware under test attached via USB.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |