Correct the firmware README's receive-path description and link the bench tests
This commit is contained in:
@@ -90,7 +90,7 @@ It prints the log, the 131-octet STATUS once a second (uptime, signing and radio
|
|||||||
battery) and the first V2X_RX messages. Status exchange: the host sends `STATUS_REQUEST` every
|
battery) and the first V2X_RX messages. Status exchange: the host sends `STATUS_REQUEST` every
|
||||||
1000 ms; `CONFIRM.detail` contains the snapshot.
|
1000 ms; `CONFIRM.detail` contains the snapshot.
|
||||||
|
|
||||||
Received messages reach the phone on two paths that both stay in the firmware: `V2X_RX` (ours, always on, already unwrapped, one message up to 494 octets, fragmented above that up to 2300) and `RAW_FRAME` (the spec's debug capture, on after `RAW_CAPTURE`, the whole radio frame, fragmented when large). The Android app has a switch for which one it consumes; the board always sends `V2X_RX`. See [NOTES.md](NOTES.md).
|
Received messages reach the phone on two paths that both stay in the firmware: `V2X_RX` (ours, always on, already unwrapped, one message up to 494 octets, fragmented above that up to 2300) and `RAW_FRAME` (the spec's debug capture, on after `RAW_CAPTURE`, the whole radio frame, fragmented when large). The Android app has a switch for which one it consumes. The board always sends `V2X_RX` for a message that fits one link message (up to 494 octets), also while the raw capture is on; a larger one (a road SPATEM or MAPEM) goes out as fragmented `V2X_RX`, except while `RAW_CAPTURE` is on, when the `RAW_FRAME` copy carries it and it is not sent twice. `RAW_CAPTURE` modes are bits: 0x01 on, 0x02 broadcast only, 0x04 own transmissions too (the app uses 0x03; the bench tests use 0x05 to read back the station's own frames). See [NOTES.md](NOTES.md).
|
||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
flowchart LR
|
flowchart LR
|
||||||
@@ -99,7 +99,7 @@ flowchart LR
|
|||||||
Radio --> Unwrap[gn_unwrap.c: 802.11, LLC, GN, BTP, signature envelope]
|
Radio --> Unwrap[gn_unwrap.c: 802.11, LLC, GN, BTP, signature envelope]
|
||||||
Radio -->|only while RAW_CAPTURE is on| Cap[Raw capture tap: ITS5 record]
|
Radio -->|only while RAW_CAPTURE is on| Cap[Raw capture tap: ITS5 record]
|
||||||
Stack -->|verified only| Ind[BTP_DATA_INDICATION 0x81]
|
Stack -->|verified only| Ind[BTP_DATA_INDICATION 0x81]
|
||||||
Unwrap -->|always, signed or not, fragmented above 494 octets| Rx[V2X_RX 0x90, MicrOBU]
|
Unwrap -->|signed or not, fragmented above 494 octets, not when RAW_CAPTURE is on| Rx[V2X_RX 0x90, MicrOBU]
|
||||||
Cap -->|fragmented if large| Raw[RAW_FRAME 0x85, spec]
|
Cap -->|fragmented if large| Raw[RAW_FRAME 0x85, spec]
|
||||||
Ind --> Link[Station link: USB or BLE]
|
Ind --> Link[Station link: USB or BLE]
|
||||||
Rx --> Link
|
Rx --> Link
|
||||||
@@ -140,7 +140,7 @@ make firmware # 40 unit tests: link codec, STATUS, reassembly, V2X_RX, poli
|
|||||||
make # everything: chain, replay of recorded frames, fuzz, battery, firmware
|
make # everything: chain, replay of recorded frames, fuzz, battery, firmware
|
||||||
```
|
```
|
||||||
|
|
||||||
These run on the PC and cannot test the radio, BLE, NVS or USB. What still needs a board, a phone or a
|
These run on the PC and cannot test the radio, BLE, NVS or USB. The board-side tests (link conformance, transmit soak, reset and fuzz, run overnight on the spare board) are in [test/bench](test/bench/README.md), described in [docs/overnight-bench-test.pdf](docs/overnight-bench-test.pdf). What still needs a board, a phone or a
|
||||||
second ESP32-C5 is listed in [../TODO.md](../TODO.md). More: [test/host/README.md](test/host/README.md).
|
second ESP32-C5 is listed in [../TODO.md](../TODO.md). More: [test/host/README.md](test/host/README.md).
|
||||||
|
|
||||||
## More
|
## More
|
||||||
|
|||||||
Reference in New Issue
Block a user