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

add support for setting BLE name from Trezor firmware #4504

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

TychoVrahe
Copy link
Contributor

Expands the ble_issue_command to support adding data.

Allows sending the name to NRF (this will then be used for advertising and GATT)

@TychoVrahe TychoVrahe self-assigned this Jan 15, 2025
Copy link

github-actions bot commented Jan 15, 2025

core UI changes device test click test persistence test
T2T1 Model T test(screens) main(screens) test(screens) main(screens) test(screens) main(screens)
T3B1 Safe 3 test(screens) main(screens) test(screens) main(screens) test(screens) main(screens)
T3T1 Safe 5 test(screens) main(screens) test(screens) main(screens) test(screens) main(screens)
All main(screens)

@TychoVrahe TychoVrahe force-pushed the tychovrahe/T3W1/bt_name branch from 804ee84 to 3259cda Compare January 15, 2025 13:48
@TychoVrahe TychoVrahe force-pushed the tychovrahe/T3W1/bt_name branch from 3259cda to 20347e8 Compare January 15, 2025 14:27
@TychoVrahe TychoVrahe marked this pull request as ready for review January 16, 2025 08:14
@TychoVrahe TychoVrahe requested a review from prusnak as a code owner January 16, 2025 08:14
@TychoVrahe TychoVrahe requested review from cepetr and removed request for prusnak January 16, 2025 08:14
unit_properties_t props;
unit_properties_get(&props);

uint8_t data[2 + BLE_ADV_NAME_LEN] = {0};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 + BLE_ADV_NAME_LEN ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, i added struct for this message f6dc982


typedef struct {
ble_command_type_t cmd_type;
int connection_id;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

connection_id seems to be unused now, isn't it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed 2e5e720.

I will add connection identification later, but it will probably be directly mac address of the central, so no point in keeping this integer.

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

Successfully merging this pull request may close these issues.

2 participants