diff --git a/TODO.md b/TODO.md index 0bf1479..e5e7d9a 100644 --- a/TODO.md +++ b/TODO.md @@ -5,18 +5,35 @@ Engineering to-do list. The reviewer-facing open items live in ## Waiting on hardware -### obu-firmware on Niklas Dathe's microbu-firmware (added 2026-11-10) +### obu-firmware on Niklas Dathe's microbu-firmware (added 2026-11-10, bench run 2026-11-11) -Flashed on the XIAO at COM6 (the board that held an Arduino sketch; backup in -`firmware-backups/COM6-arduino-first4MB-2026-11-10.bin`). Seen on the bench: boots, advertises BLE -as `micrOBU-894A`, answers STATUS (131 octets), STATION_CONFIGURE starts the radio. Not yet seen, -because nothing was transmitting nearby and no phone ran the updated app: +Flashed on the production XIAO (COM10) and the phone (Pixel 9 Pro, BLE) on 2026-11-11. Done, by hand +on the bench with the COM3 board as a listener: -- [ ] A beacon on air (simulated car on COM8/COM5 or the bench RSU): `py -3.11 tools/station_status_watch.py COM6 30 --configure --rx` prints V2X_RX lines (port 2001, signed=0) and `radio rx` counts up. -- [ ] Unsigned CAM from the phone (Sign outgoing messages off) is heard by a second ESP32-C5 receiver (`obu-firmware/test/pcap_gn_tally.py` on its capture). -- [ ] Signed CAM with the demo chain: tickets=1 and `signed` counts up in STATUS, `obu-firmware/test/verify_signed_pcap.py` accepts the capture. -- [ ] BLE: pairing with passkey 123456, bond survives a reconnect (80 KB NVS), TX while connected (TX BLE guard). -- [ ] Battery: reads 4153-4156 mV on the charging cell (COM10, 2026-11-11, after the settle-time fix); still to compare with a multimeter on the cell, and the shutdown rule is untested on hardware. +- [x] Beacon on air: V2X_RX of the simulated car (port 2001, unsigned, -39 to -52 dBm) reaches the app, + which shows station 195936478 with speed, heading and distance. +- [x] Signed CAM from the phone (CAM pinger, signing on): "tickets 1, signed 113, refused 0, on air 113" + on the Connection card; the COM3 listener hears them as signed port 2001 CAMs, 17 in 20 s of a 1 Hz + pinger (the signature itself was not verified; `test/verify_signed_pcap.py` on a capture would). +- [x] Unsigned CAM from the phone (signing off): the listener hears 82 unsigned in 20 s, simulated car + (about 60) plus the phone (about 20), none signed. +- [x] BLE: the phone connected and ran the whole test; the demo credentials were provisioned (tickets 1). +- [x] Battery: the app shows 4.16 V, about 95 % on the charging cell (the reading was 0 mV until the + divider settle-time fix, c78b663). + +Still open: + +- [ ] Bond persistence: unplug, power-cycle the board and see the phone reconnect without pairing. +- [ ] Verify a captured signature with `test/verify_signed_pcap.py` (needs the sniffer firmware). +- [ ] 17 of 20 signed CAMs heard against 20 sent: measure the loss over a few minutes, with and without + the BLE link busy (TX BLE guard). +- [ ] Battery: no multimeter reference (the board is glued in); compare the plateau at full charge with + the charger's 4.20 V, and run the shutdown rule on a flat cell. +- [ ] The Connection settings text still says "the board only advertises while nothing uses its USB-C port" + (the firmware no longer pauses advertising) and the card header says "ESP32-C5 (USB Serial)" while + connected over Bluetooth. +- [ ] Pseudonym rotation: the link has no MAC field any more, so the station ID rotates while the + GN address stays the ticket's (see README). ### MAPEM decoder and traffic lights per lane (added 2026-10-28)