Forward MAPEM and VAM from the ESP32-C5, and add a bench listener
gn_unwrap.c now passes BTP ports 2003 (MAPEM) and 2018 (VAM), signed or not, besides CAM, DENM and SPATEM. A message over 494 bytes still does not fit one 512-octet link message (also the largest GATT value) and is dropped and counted, not fragmented. The bench RSU's MAPEM is 295 bytes. CONFIG_MICROBU_BENCH_LISTEN (off in sdkconfig) is for a board whose only PC connection is the UART0 console: it configures itself receive-only at boot and logs every V2X_RX message; tools/bench_listen_watch.py tallies the log. On air on 2026-10-28 it forwarded 104 MAPEM, 185 SPATEM and 472 CAM in 90 s, with nothing oversize. The RSU sent all of them unsigned. Host tests: signed GeoBroadcast SPATEM/MAPEM frames of 58 to 1243 bytes with every truncation length; the replay cuts frames at c5_radio.cpp's 2346 bytes (not the old C firmware's 800) and checks MAPEMs with asn1tools.
This commit is contained in:
@@ -36,6 +36,16 @@ config MICROBU_TX_LED_BLINK_MS
|
||||
config MICROBU_LED_INVERTED_RX
|
||||
bool "Inverted LED mode for receiver/bridge (normally ON, blink OFF on packet)"
|
||||
default n
|
||||
config MICROBU_BENCH_LISTEN
|
||||
bool "Bench listener: receive from boot and log every V2X_RX on the console"
|
||||
default n
|
||||
help
|
||||
For a test board whose PC connection is only the UART0 console (no phone, no USB
|
||||
Serial/JTAG link): the station configures itself at boot with the radio receive only and
|
||||
security off, and logs one line per ITS message the raw path (gn_unwrap.c) unwraps: BTP
|
||||
port, messageID, length, RSSI, signed, GeoBroadcast, and whether it fits a link message.
|
||||
A phone that configures the station later replaces this configuration. Never enable it in
|
||||
the production image.
|
||||
config MICROBU_BATTERY_ADC_GPIO
|
||||
int "Battery voltage ADC GPIO (-1: no battery monitoring)"
|
||||
range -1 6
|
||||
|
||||
Reference in New Issue
Block a user