Update the diagrams, READMEs and spec for the two receive paths
Add data-flow diagrams of both paths (V2X_RX and RAW_FRAME with the app's Receive path switch) to the app README, the firmware README and docs/06, and bring the draw.io architecture labels up to station-link revision 2. The spec (revision 2) gains "V2X_RX and RAW_FRAME: both stay" and "Fragmentation on the host side". Document the corpus generator in test/host.
This commit is contained in:
@@ -39,6 +39,7 @@ link:
|
||||
max_message: 512 octets, fragmented above that by the spec
|
||||
microbu_extensions:
|
||||
V2X_RX: opcode 0x90, every ITS message heard on air, verified or not
|
||||
receive_paths: V2X_RX and the spec's RAW_FRAME both stay; the app chooses (Settings > Receive path), RAW_CAPTURE mode 3 turns raw on
|
||||
unsigned_tx: security profile 1, or 0 with station security 0
|
||||
radio: polled from STATION_CONFIGURE on
|
||||
battery_guard: deep sleep below 3.30 V, no phone on USB, runs again from 3.60 V
|
||||
@@ -89,6 +90,26 @@ 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
|
||||
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, up to 494 octets) 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).
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
Air[ITS-G5 frame on air] --> Radio[C5 radio, promiscuous RX]
|
||||
Radio --> Stack[Vanetza stack: decap and verify]
|
||||
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]
|
||||
Stack -->|verified only| Ind[BTP_DATA_INDICATION 0x81]
|
||||
Unwrap -->|always, signed or not, up to 494 octets| Rx[V2X_RX 0x90, MicrOBU]
|
||||
Cap -->|fragmented if large| Raw[RAW_FRAME 0x85, spec]
|
||||
Ind --> Link[Station link: USB or BLE]
|
||||
Rx --> Link
|
||||
Raw --> Link
|
||||
Link --> App[Android app]
|
||||
App -->|Receive path: V2X_RX| UseA[uses V2X_RX, ignores RAW_FRAME]
|
||||
App -->|Receive path: Raw frames| UseB[reassembles, unwraps with GnUnwrap, ignores V2X_RX]
|
||||
```
|
||||
|
||||
|
||||
## BLE pairing
|
||||
|
||||
```yaml
|
||||
|
||||
Reference in New Issue
Block a user