docs: fix PROTOCOL.md worked example bytes, add latency principle to DESIGN.md
This commit is contained in:
2 files changed
+7
-3
No files matched your search
@@ -51,7 +51,11 @@ radio — it just gives you clean access to it.
|
|||||||
board, and even some uncommon ones. The architecture is designed to accommodate
|
board, and even some uncommon ones. The architecture is designed to accommodate
|
||||||
them cleanly. If the code isn't structured for a new board, fix the code.
|
them cleanly. If the code isn't structured for a new board, fix the code.
|
||||||
|
|
||||||
11. **Standard toolchain.** No custom Rust forks or special SDKs. Use stock `rustup`
|
11. **Minimal overhead.** The dongle should add as little latency as possible
|
||||||
|
between the radio and the host. No unnecessary copies, no blocking operations
|
||||||
|
in the radio path, no computation that isn't strictly needed.
|
||||||
|
|
||||||
|
12. **Standard toolchain.** No custom Rust forks or special SDKs. Use stock `rustup`
|
||||||
channels (stable, nightly). Xtensa targets use nightly + `-Zbuild-std`; Cortex-M
|
channels (stable, nightly). Xtensa targets use nightly + `-Zbuild-std`; Cortex-M
|
||||||
and RISC-V targets use stable. Boards that need the `esp` toolchain (via `espup`)
|
and RISC-V targets use stable. Boards that need the `esp` toolchain (via `espup`)
|
||||||
are supported but gracefully skipped when the toolchain isn't installed.
|
are supported but gracefully skipped when the toolchain isn't installed.
|
||||||
@@ -60,7 +64,7 @@ radio — it just gives you clean access to it.
|
|||||||
|
|
||||||
```
|
```
|
||||||
Host PC
|
Host PC
|
||||||
│ USB CDC-ACM (COBS-framed postcard)
|
│ USB CDC-ACM (COBS-framed fixed-size LE)
|
||||||
▼
|
▼
|
||||||
usb_task ──Command──► radio_task ──► SX1262
|
usb_task ──Command──► radio_task ──► SX1262
|
||||||
◄──Response── │
|
◄──Response── │
|
||||||
|
|||||||
+1
-1
@@ -116,7 +116,7 @@ config = struct.pack("<IBBBHB",
|
|||||||
command = b"\x02" + config # tag 2 = SetConfig
|
command = b"\x02" + config # tag 2 = SetConfig
|
||||||
```
|
```
|
||||||
|
|
||||||
Raw bytes: `02 00 93 87 36 07 07 05 24 14 80`
|
Raw bytes: `02 C0 CA 89 36 07 07 05 24 14 80`
|
||||||
|
|
||||||
### 2. COBS-encode and send
|
### 2. COBS-encode and send
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user