Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multidevice - mass flashing #2366

Open
kareltucek opened this issue Dec 9, 2024 · 3 comments
Open

Multidevice - mass flashing #2366

kareltucek opened this issue Dec 9, 2024 · 3 comments

Comments

@kareltucek
Copy link
Contributor

@ert78gb Assume I call the flashing script (update-device-firmware.ts) while specifying the pid (say dongle's). Assume that multiple such devices (dongles) are connected.

How difficult would it be to introduce a new argument (say --flashAll) that would make the flashing script flash all the connected devices of that kind, one by one?

@ert78gb
Copy link
Member

ert78gb commented Dec 10, 2024

Very difficult in a reliable way. The USB descriptor has path property that the unique identifier of the device. This value is changing under the firmware upgrade process. So not easy to identify the newly appeared device is a newly connected device or reenumerated after the firmware upgrade process. Logically I could use the device serial number but as far as I know it is 0000000000 in case of dongle.

@kareltucek
Copy link
Contributor Author

I think the path-based variant is (definitely) not worth the effort.

If serial number implementation is not too laborous, I would appreciate that - you can assume non-zero serials.

(Am I correct that it currently is possible to flash a hardware config (and thus serial number) onto a dongle manually via the agent script?)

(Usecase: I am now messing with switching between multiple dongles and so this would make the build-flash-test development cycle more comfortable. Of course this is a niche usecase/request...)

@mondalaci
Copy link
Member

The devices accepted by ./write-hardware-config.ts should be extended with dongle. Other than that, it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants