Skip to content

Implement GetVersion command for all devices#24

Merged
edouardparis merged 7 commits intowizardsardine:mainfrom
trevarj:get-version
Apr 10, 2026
Merged

Implement GetVersion command for all devices#24
edouardparis merged 7 commits intowizardsardine:mainfrom
trevarj:get-version

Conversation

@trevarj
Copy link
Copy Markdown
Collaborator

@trevarj trevarj commented Apr 10, 2026

This has a lot of async-hwi's implementation for getting device version.

Once this is merged, I will put up a fix for #23. I needed this first so that I
can query the configured network from the devices and then we can match it up
with what the CLI is expecting.

I tried to make each commit clean so that it's easy to review commit-by-commit.

trevarj added 2 commits April 10, 2026 05:13
When the Coldcard emulator isn't running there was an IO error that prevented
other devices from being enumerated.
Perhaps not the best way to handle errors, but for now it's much more useful
during development.
@trevarj trevarj requested a review from edouardparis April 10, 2026 11:40
@trevarj
Copy link
Copy Markdown
Collaborator Author

trevarj commented Apr 10, 2026

@edouardparis thanks for reviewing! Pushed the fixes.

trevarj added 3 commits April 10, 2026 14:45
Lots of work inspired by async-hwi and LedgerHQ/app-bitcoin-new
Coldcold returns a giant newline delimited string, so we will parse that out and
get the invalid semver (can contain letters) and the device model.
@edouardparis edouardparis merged commit 141f094 into wizardsardine:main Apr 10, 2026
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants