Open Hannsek opened 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:
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 intrezor.wire
).Resolve any issues with cross-session interaction. Off the top of my head:
ProcessError(Busy)
or maybeBusyError
as a new code?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.