trezor / trezor-firmware

:lock: Trezor Firmware Monorepo
https://trezor.io
Other
1.33k stars 648 forks source link

Prepare FW for bluetooth integration #2725

Open Hannsek opened 1 year ago

Hannsek commented 1 year ago

Step one: enable communication over UART/SPI combo. @TychoVrahe has a prototype branch, so let's clean that up and get it to master -- behind some sort of feature flag, probably?

This should be done in a separate session handler (handle_session mechanism in trezor.wire).

Resolve any issues with cross-session interaction. Off the top of my head:

This might be an opportunity to move incoming packet processing to Rust (cf. #2156), but the main idea was originally based on being able to block while reading the whole message, which won't work anymore (see above), so i'm unsure.

TychoVrahe commented 1 year ago

This is the main branch i use https://github.com/trezor/trezor-firmware/tree/tychovrahe/bluetooth/master

Some of the issues above i already attempted to solve, i.e.:

Building on https://github.com/trezor/trezor-firmware/pull/2912 which should be merged first.

Some other issues that will need addressing before we can merge this:

TychoVrahe commented 1 year ago