Files
MicrOBU/obu-firmware/test/results/2026-11-23_1522_phone_vs_node.txt
T
Ashin Walpola 462e1898ff Run the overnight bench test on the spare board, and document it
Track the bench scripts (run_overnight.py and its stages, the link and ITS
client libraries, the phone-vs-node comparison) with the first reports.

Changes for the spare XIAO (no cell):
- run_overnight.py picks the single Espressif board by default and refuses to
  test a build that is not this checkout's HEAD.
- The unsigned soak stops as "transmit path wedged" after 40 resource_limit
  refusals in a row and tries whether a repeated STATION_CONFIGURE clears it.
- "Refused requests put nothing on the radio" counts only own transmissions;
  frames heard from other stations are copied by RAW_CAPTURE too.
- start_overnight.ps1: optional build and flash, host C tests in the
  background, Windows kept awake. setup_workstation.ps1 checks and installs
  git, Python 3.11, pyserial, asn1tools, MSYS2 gcc and make, ESP-IDF 6.0.2.
- obu-firmware/docs/overnight-bench-test.tex (and PDF) describe the test, the
  workstation set-up and the findings of the 2026-11-25 runs.
2026-11-25 14:43:34 +01:00

98 lines
7.6 KiB
Plaintext

====================================================================================================
PHONE LOG databases\MicrOBU V2X log - v2x_log_20261123_152248_esp32.db
hardware esp32_c5, phone Google Pixel 9 Pro, app 0.1.0, link ble
20256 messages over 3350 s (first 15:22:48, last 16:18:38)
by type: CAM 16334, DENM 90, MAPEM 1261, SPATEM 2571
====================================================================================================
NODE PCAP databases\its5_20261123_150746.pcap
27367 records, 27366 unwrapped to a CAM/DENM/MAPEM/SPATEM/VAM payload, 1 not (beacons, other BTP ports, unsigned-but-not-GN, truncated)
by type: CAM 17485, DENM 76, MAPEM 3277, SPATEM 6528
signed 322, unsigned 27044, GeoBroadcast 9881, truncated 0
====================================================================================================
CLOCK ALIGNMENT: node clock + 1795443494.178 s = phone clock; spread 25 ms over 12887 shared CAMs; first quarter 1795443494.153 s, last quarter 1795443494.204 s (drift 51 ms)
the node heard 21513 messages inside the phone's recording window (5853 outside it are ignored)
====================================================================================================
WHAT THE NODE HEARD vs WHAT THE PHONE LOGGED (one-to-one, +/-0.50 s, identical bytes)
type bytes signed node phone missed share
CAM 43 unsigned 8240 7873 367 95.5%
CAM 26 unsigned 5218 5014 204 96.1%
SPATEM 888 unsigned 3002 0 3002 0.0%
SPATEM 58 unsigned 2091 2018 73 96.5%
MAPEM 1198 unsigned 1536 0 1536 0.0%
MAPEM 377 unsigned 1034 977 57 94.5%
CAM 43 signed 316 0 316 0.0%
DENM 329 unsigned 48 43 5 89.6%
DENM 311 unsigned 17 16 1 94.1%
DENM 303 unsigned 11 9 2 81.8%
ALL 21513 15950 5563 74.1%
per type: CAM 12887/13774 93.6%; DENM 68/76 89.5%; MAPEM 977/2570 38.0%; SPATEM 2018/5093 39.6%
====================================================================================================
PER SENDING STATION (ItsPduHeader.stationId)
station type node phone share first..last heard by the node
195936478 CAM 8240 7873 95.5% +1 s .. +3350 s
1095348116 CAM 5218 5014 96.1% +1 s .. +3350 s
1095348116 SPATEM 5093 2018 39.6% +1 s .. +3350 s
1095348116 MAPEM 2570 977 38.0% +2 s .. +3350 s
4011198281 CAM 316 0 0.0% +1 s .. +426 s
2829209000 DENM 48 43 89.6% +1103 s .. +1160 s
7798929 DENM 28 25 89.3% +153 s .. +975 s
====================================================================================================
WHEN THE MISSES HAPPEN
miss runs in node order (all types): 3944 runs, longest 4; run length 1: 2390, 2: 1491, 3-4: 63, 5-9: 0, 10+: 0
CAM 887 misses in 662 runs; longest run 5; single-message misses 501 (56 % of the misses)
DENM 8 misses in 6 runs; longest run 2; single-message misses 4 (50 % of the misses)
MAPEM 1593 misses in 55 runs; longest run 1537; single-message misses 52 (3 % of the misses)
SPATEM 3075 misses in 62 runs; longest run 3002; single-message misses 52 (2 % of the misses)
minute by minute (node messages / share the phone logged):
0 s: 218 89.0% 30 s: 223 88.8% 60 s: 201 88.1% 90 s: 216 89.4%
120 s: 201 89.1% 150 s: 239 74.1% 180 s: 202 80.7% 210 s: 229 53.7%
240 s: 206 53.9% 270 s: 231 51.9% 300 s: 216 76.9% 330 s: 215 81.9%
360 s: 221 82.4% 390 s: 205 87.3% 420 s: 204 92.6% 450 s: 179 96.6%
480 s: 200 97.5% 510 s: 180 97.2% 540 s: 195 97.4% 570 s: 182 98.9%
600 s: 193 98.4% 630 s: 188 98.4% 660 s: 186 97.8% 690 s: 193 99.0%
720 s: 184 98.9% 750 s: 204 96.1% 780 s: 179 97.8% 810 s: 197 94.9%
840 s: 186 98.4% 870 s: 193 97.4% 900 s: 180 98.3% 930 s: 201 99.0%
960 s: 201 98.0% 990 s: 181 99.4% 1020 s: 195 99.0% 1050 s: 187 98.9%
1080 s: 202 98.0% 1110 s: 209 98.1% 1140 s: 221 96.8% 1170 s: 187 96.8%
1200 s: 209 96.7% 1230 s: 195 94.9% 1260 s: 192 80.7% 1290 s: 200 75.5%
1320 s: 150 68.7% 1350 s: 202 45.5% 1380 s: 192 48.4% 1410 s: 204 59.8%
1440 s: 168 60.7% 1470 s: 206 59.2% 1500 s: 188 61.2% 1530 s: 192 62.0%
1560 s: 190 63.2% 1590 s: 192 63.5% 1620 s: 200 63.0% 1650 s: 183 66.1%
1680 s: 200 65.5% 1710 s: 177 62.7% 1740 s: 191 61.8% 1770 s: 178 64.6%
1800 s: 198 63.1% 1830 s: 188 63.3% 1860 s: 189 66.7% 1890 s: 199 62.3%
1920 s: 171 64.9% 1950 s: 201 61.2% 1980 s: 177 63.3% 2010 s: 198 64.6%
2040 s: 182 63.7% 2070 s: 200 64.5% 2100 s: 180 63.9% 2130 s: 199 67.3%
2160 s: 192 64.1% 2190 s: 183 62.8% 2220 s: 193 65.3% 2250 s: 182 62.1%
2280 s: 192 63.5% 2310 s: 178 62.4% 2340 s: 198 63.6% 2370 s: 179 63.7%
2400 s: 194 61.9% 2430 s: 193 63.7% 2460 s: 181 64.6% 2490 s: 200 63.5%
2520 s: 185 64.3% 2550 s: 202 63.4% 2580 s: 185 66.5% 2610 s: 202 63.4%
2640 s: 178 62.4% 2670 s: 194 63.4% 2700 s: 184 65.2% 2730 s: 196 63.3%
2760 s: 182 64.8% 2790 s: 77 100.0% 2820 s: 164 70.1% 2850 s: 179 62.6%
2880 s: 198 62.6% 2910 s: 180 62.2% 2940 s: 198 64.1% 2970 s: 180 65.6%
3000 s: 207 63.8% 3030 s: 185 63.2% 3060 s: 203 64.0% 3090 s: 195 64.6%
3120 s: 182 62.6% 3150 s: 196 62.2% 3180 s: 176 61.9% 3210 s: 199 63.8%
3240 s: 189 64.0% 3270 s: 199 62.3% 3300 s: 174 63.2% 3330 s: 138 63.0%
====================================================================================================
WHERE THE MISSES ARE LOST (from the phone's once-a-second link_status rows; the board's counters as the phone read them)
over the run (ble link): board radio_received +15577, radio_dropped (its 16-frame queue overflowed) +0,
link CRC errors 0, malformed 0, app received 20256 link frames, board TX submitted 398 / failed 0
link state per second: connected 3189
board restarts seen (uptime went backwards): 0
the 5563 missed messages, by what the counters did in that second:
5563 no counter moved (not heard by this board's radio, or lost on the BLE/USB hop)
If the last row dominates, the loss is invisible to the phone-side counters: either the phone's board never heard the
frame (different antenna than the node, a collision, the radio held out for a BLE connection event), or a V2X_RX
notification/fragment was dropped on the way (the firmware counts that only in a LOG line the phone cannot see over BLE).
note: 'radio_received' is not compared with the log; it counts frames the board's stack took, not every V2X_RX it forwarded.
====================================================================================================
LARGE MESSAGES (above 494 bytes: sent as link fragments since 2026-11-23) vs small MAPEM/SPATEM
MAPEM+SPATEM > 494 B node 4538 phone 0 0.0%
MAPEM+SPATEM <= 494 B node 3125 phone 2995 95.8%
====================================================================================================
ONLY THE PHONE HEARD (in the log, not in the pcap within +/-0.50 s)
CAM 3447 of 16334 phone messages not in the node's capture (21.1%)
DENM 22 of 90 phone messages not in the node's capture (24.4%)
MAPEM 283 of 1261 phone messages not in the node's capture (22.4%)
SPATEM 553 of 2571 phone messages not in the node's capture (21.5%)
(a node-side miss is a different antenna, a collision, or a node that was busy; read it against the node's own loss)