Conversation
|
| model | device_test | click_test | persistence_test |
|---|---|---|---|
| T2T1 | test(all) main(all) ![]() |
test(all) main(all) ![]() |
test(all) main(all) ![]() |
| T3B1 | test(all) main(all) ![]() |
test(all) main(all) ![]() |
test(all) main(all) ![]() |
| T3T1 | test(all) main(all) ![]() |
test(all) main(all) ![]() |
test(all) main(all) ![]() |
| T3W1 | test(all) main(all) ![]() |
test(all) main(all) ![]() |
test(all) main(all) ![]() |
Latest CI run: 17658231521
da3c742 to
e2f4edb
Compare
mmilata
commented
Apr 29, 2025
ea387e6 to
287c0a6
Compare
287c0a6 to
5ca3d38
Compare
romanz
approved these changes
Aug 19, 2025
romanz
approved these changes
Aug 19, 2025
64286bb to
4ed1e0d
Compare
Member
Author
|
@matejcik want to take a quick look? There are some potentially intrusive changes (async, persistent subprocess), then again none of it gets run when bleak is not installed. |
matejcik
approved these changes
Aug 25, 2025
Contributor
matejcik
left a comment
There was a problem hiding this comment.
LGTM, very reasonable actually
Contributor
Contributor
|
I'll rebase to resolve the conficts. |
Contributor
git range-diff output |
7be7463 to
713e512
Compare
Contributor
|
Tested locally: # trezorctl ble connect
Scanning...
Found 1 BLE device(s)
Device: T3W1 (ABC), 11:22:33:44:55:66
Connecting to T3W1 (ABC)...
Connected
# TREZOR_PATH=ble:11:22:33:44:55:66 trezorctl ping 123
Please confirm action on your Trezor device.
123Sometimes it prints |
Contributor
713e512 to
4eca838
Compare
Member
Author
|
Good point, that is annoying. In 4eca838 BLE is enabled only if:
Also rebased on top of the uv changes. Please take a look. |
Co-authored-by: tychovrahe <brunam@seznam.cz>
[no changelog]
4eca838 to
d78ff8b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




































Uses cross-platform bleak library (you need to run
poetry install). The library is async so we run it in a separate process and trezorlib talks to it using a pipe. It could potentially work on macOS but I haven't tested yet.Bleak has a particular way of working with BLE devices, namely that it cannot see devices that are already connected to the system. This could affect Suite interoperability and may have to be worked around in platform-specific ways. For trezorlib to see a connected device you have to manually disconnect it first. Trezorlib disconnects from a connected device automatically using
atexit.For pairing to work you need to have the system pairing dialog open, then run
trezorctl ble connect. In linux it would be possible to enter the pairing code through trezorlib, but this is IIUC impossible on macOS (see also hbldh/bleak#1100).If I remember correctly the original BLE support on which this is based was written by @TychoVrahe.