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: toggle hub twice to make flashing consistant #26

Closed rcooke-warwick closed 2 years ago

rcooke-warwick commented 2 years ago

We have had problems with the flashing of balena fins using the deviceInteractor. We have tried to isolate the problem to no effect.

When looking at the fin fullfillment rig code I saw this: https://github.com/balena-io-hardware/balena-fulfillment-rig/blob/master/core/app/utils/dut-power/index.js#L26

If it's true, and the usb hub driver doesn't always respect the uhubctl commands, doubling up the commands might help. This was the only difference I could find between the fin flashing procedure in the testbotsdk and the fin-fulfillment rig (software) - and the fulfillment rig never seems to have the problem. So hopefully this will help!

Change-type: patch Signed-off-by: Ryan Cooke ryan@balena.io

rcooke-warwick commented 2 years ago

@balena-ci rebase

rcooke-warwick commented 2 years ago

@balena-ci I self-certify!