balena-io-hardware / testbot-sdk-sw

Node SDK for controlling and performing operations with testbot
https://www.npmjs.com/package/@balena/testbot
Apache License 2.0
4 stars 0 forks source link

fin usb hub driver not respecting uhubcitl commands #27

Closed rcooke-warwick closed 2 years ago

rcooke-warwick commented 2 years ago

noted here:

https://github.com/balena-io-hardware/balena-fulfillment-rig/blob/master/core/app/utils/dut-power/index.js#L26 When toggling the state of the usb port connected to the fin DUT while flashing it, the hub sometimes doesn't respect the uhubctl command (reportedly)

We have been having problems with provisioning fins using the testbotsdk - this could be related.

rcooke-warwick commented 2 years ago

PR here doubles up uhubctl commands to try and avoid this issue: https://github.com/balena-io-hardware/testbotsdk/pull/26

Bucknalla commented 2 years ago

We should be doing this in accordance to a suggestion from uhubctl maintainer to use -r 1000 instead of the command twice.

Bucknalla commented 2 years ago

This was resolved in #28