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:
Ashin Walpola
2026-11-11 16:25:34 +01:00
parent 1697091d3a
commit 457ad47521
6 changed files with 74 additions and 3 deletions
+27 -1
View File
@@ -17,7 +17,8 @@ the parts below that describe the earlier vanetza-idf port say so. Hardware chec
- **Two links, one protocol.** USB-C (native USB Serial/JTAG) or Bluetooth LE, chosen in Settings.
Both carry Niklas Dathe's station-link protocol (revision 2 of the spec adds the MicrOBU extensions: `V2X_RX`, unsigned sending, battery guard).
- **Reception is unchanged for the app.** Every ITS message heard on air reaches the phone, signed
or not, verifiable or not, exactly as with the previous firmware.
or not, verifiable or not, exactly as with the previous firmware. Since 2026-11-11 the app can instead take the spec's
`RAW_FRAME` debug capture and unwrap it itself (Settings > Receive path); both paths stay in the firmware.
- **Demo PKI, not the EU trust list.** Signed messages carry a throwaway chain. Receivers that
verify against the EU trust list drop them; unsigned sending remains available.
@@ -96,6 +97,31 @@ spec retires but the station still decodes, and revision 2 documents): a ride ro
pinger keeps one fixed MAC, and a new MAC reconfigures the station. Without one a signed station takes its address from the
ticket and an unsigned one draws a random MAC per configuration. With one, signed and unsigned frames both leave from it.
Data flow of a received frame, with both paths:
```mermaid
flowchart TB
subgraph Board[ESP32-C5 board]
Air[ITS-G5 frame] --> Radio[Radio, promiscuous RX]
Radio --> Stack[Vanetza: decap, verify]
Radio --> Unwrap[gn_unwrap.c]
Radio -->|RAW_CAPTURE on| Tap[Raw capture tap]
Stack -->|verified| Ind[BTP_DATA_INDICATION]
Unwrap --> Rx[V2X_RX 0x90]
Tap --> RawF[RAW_FRAME 0x85, fragmented]
end
Ind & Rx & RawF --> Link[USB or BLE link]
subgraph Phone[Android app]
Link --> Re[LinkReassembly]
Re --> Sel{Receive path}
Sel -->|V2X_RX| Dec[V2xRxFrame]
Sel -->|Raw frames| Pr[RawFrame, then GnUnwrap]
Pr --> Dec
Dec --> Cod[CAM, DENM, SPATEM, MAPEM, VAM codecs]
Cod --> UI[Use cases, V2X screens, logger]
end
```
The app also **reassembles fragmented link messages** (flags 1-3 of the spec) and has two receive paths: `V2X_RX`
(default) and `RAW_FRAME`, which it unwraps itself with `GnUnwrap.kt`; see the README for the comparison.
File diff suppressed because one or more lines are too long