Replies: 2 comments
-
|
I think this is doable now that the connect function has a timeout: https://github.com/intercreate/smpclient/blob/9895e9822c8bc6765ac3b95f210ab75d28491e58/smpclient/__init__.py#L36-L39 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Swinging back around on this, it's relevant that smpmgr could upgrade entire fleets of 100s of devices in parallel. This might be a good start - connect to all ports as they popup, including in parallel. I've actually already implemented and tested it once for a different project that was using smpclient. Clean way might be to filter by VID:PID. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Today, when using
smpmgr --port /dev/ttyACM0 upgrade filename.bin, if/dev/ttyACM0is not available,smpmgrerrors out. This is a common flow for many applicationsThe application
tiodoes things differently. If/dev/ttyACM0does not exist, it simply waits for it to exist.I'm wondering if we can do something similar with
smpmgr. It waits for the device to be available. Once available, it flashes the binary. After the device is removed,smpmgrgoes back to 'the top' and and waits again for the device to re-appear. At that time, it again flashes the binary... and on, and on..The value is that
thoughts?
Beta Was this translation helpful? Give feedback.
All reactions