Files
MicrOBU/obu-firmware/components/microbu_v2x/Kconfig
T
Ashin Walpola 50bbf6552d Rebuild obu-firmware on Niklas Dathe's microbu-firmware
Replace the vanetza-idf port with his current station firmware (microbu-firmware
e4e4bd8: main/, components/microbu_v2x, components/vanetza, external/vanetza) and
re-apply the MicrOBU additions, each marked "MicrOBU:" in the sources:

- V2X_RX (opcode 0x90): every received ITS message, signed or not, through
  gn_unwrap.c, because the stack drops unsigned and foreign-root traffic. 0x85 is
  the spec's RAW_FRAME and 0x86 is reserved. The body is built in v2x_rx.hpp.
- Unsigned transmission (geonet.c) for security profile 1 or station security 0,
  from a random MAC per configuration.
- Radio polled from STATION_CONFIGURE on; manual country policy, TX power
  read-back, static RX buffer, short frames ignored.
- Battery guard (battery_policy.hpp): deep sleep below 3.30 V with no phone on USB.
- No USB writes without a host; last_frame_ms() for the guard.
- 80 KB NVS with the app at 0x20000, 8 MB flash, XIAO ESP32-C5 board, 20 dBm.

Remove the old C firmware, the bench listener and the old vanetza-idf copy. Add
docs/station-link.tex as revision 2 of the interface reference (V2X_RX, unsigned
sending, battery rule, revision history). Add 39 host unit tests (make firmware in
test/host) next to the existing chain, replay, fuzz and battery tests, and point
tools/station_status_watch.py at the new CONFIRM-based status.
2026-11-11 00:13:57 +01:00

99 lines
4.5 KiB
Plaintext

menu "micrOBU V2X stack (Vanetza)"
choice MICROBU_V2X_PROFILE
prompt "Stack entry point"
default MICROBU_V2X_PROFILE_NETWORK
config MICROBU_V2X_PROFILE_ACCESS
bool "Access: AL_DATA / IN-SAP"
config MICROBU_V2X_PROFILE_NETWORK
bool "Network: BTP-DATA / NF-SAP"
config MICROBU_V2X_PROFILE_FACILITIES
bool "Facilities endpoints (CAM, DENM, VAM)"
endchoice
config MICROBU_V2X_NETWORK
bool
default y if !MICROBU_V2X_PROFILE_ACCESS
config MICROBU_V2X_CAM
bool "Release 2 CAM codec and endpoint"
default y if MICROBU_V2X_PROFILE_FACILITIES
depends on MICROBU_V2X_NETWORK
config MICROBU_V2X_DENM
bool "Release 2 DENM codec and endpoint"
default y if MICROBU_V2X_PROFILE_FACILITIES
depends on MICROBU_V2X_NETWORK
config MICROBU_V2X_VAM
bool "Release 2 VAM codec and endpoint"
default y if MICROBU_V2X_PROFILE_FACILITIES
depends on MICROBU_V2X_NETWORK
config MICROBU_V2X_SECURITY
bool "TS 103 097 signing security entity and identifier-change service"
default y
depends on MICROBU_V2X_NETWORK
help
SN-SAP security entity: signs outgoing GeoNetworking packets with
authorization tickets the application provisions (TS 103 097
V2.2.1, IEEE Std 1609.2) on the mbedTLS PSA backend and runs the
TS 102 723-8 clause 6.3 identifier-change two-phase commit that
the GN core, access adapter and facilities subscribe to. Without
it a stack with itsGnSecurity enabled fails closed.
choice MICROBU_V2X_CRYPTO
prompt "Security module"
depends on MICROBU_V2X_SECURITY
default MICROBU_V2X_CRYPTO_ESP32
help
Where the station's private keys live and are used
(security_module.hpp). Hashing, verification and point
decompression run on the ESP32 PSA backend unless the V2X HSM
takes them as well.
config MICROBU_V2X_CRYPTO_ESP32
bool "Software on the ESP32 (keys in NVS, PSA crypto)"
config MICROBU_V2X_CRYPTO_SE051
bool "SE051 over I2C (requires an adapter component)"
config MICROBU_V2X_CRYPTO_V2X_HSM
bool "V2X HSM for keys and public operations (requires an adapter component)"
endchoice
config MICROBU_V2X_SECURITY_VERIFY
bool "SN-DECAP verification of received secured packets"
default y
depends on MICROBU_V2X_SECURITY
help
Verify received EtsiTs103097Data-Signed packets (IEEE 1609.2
clause 5.2 with the TS 103 097 clause 7.1 profile checks, the
certificate chain to the provisioned trust anchors, generation
time plausibility and replay detection). Without it SN-DECAP
reports Configuration_Problem and a strict GeoNetworking receiver
drops every secured packet.
config MICROBU_V2X_NVS_CREDENTIALS
bool "Credential store on NVS"
default y
depends on MICROBU_V2X_SECURITY
help
NvsCredentialStore keeps the station's provisioned credentials
(root and CA certificates, authorization tickets with their
private keys, credentials.hpp bundle) as one blob in the
nvs_flash component's storage. The application initialises NVS
and decides on NVS encryption; without this option the
application supplies its own CredentialStore.
config MICROBU_V2X_PKI
bool "TS 102 941 enrolment and authorization request-response core"
default n
depends on MICROBU_V2X_SECURITY
help
Builds and parses EtsiTs102941Data enrolment/authorization
requests and responses (TS 102 941 V2.2.1 clause 6.2.3). The
transport to the EA/AA and credential storage are supplied by the
application.
choice MICROBU_V2X_RADIO
prompt "Access adapter"
default MICROBU_V2X_RADIO_EXTERNAL
config MICROBU_V2X_RADIO_EXTERNAL
bool "Application-provided access adapter"
config MICROBU_V2X_RADIO_C5
bool "Experimental integrated ESP32-C5 ITS-G5 radio"
depends on IDF_TARGET_ESP32C5
help
Uses OpenTrafficMap's private driver transmit path. Only the
pinned ESP-IDF version is accepted. Hardware/RF and DCC
qualification remain separate acceptance requirements.
endchoice
endmenu