Update the notes, flashing guide and READMEs for the 2026-11-11 bench run
Document the MAC rotation (16-octet STATION_CONFIGURE), the ATT MTU of 517, the battery reading fix, pairing and bonds with several boards, tools/station_tx_test.py, what was dropped from the earlier MicrOBU version and what Niklas Dathe's latest firmware added, and the measured results (BLE adds no transmit loss over USB). Test counts: 40 firmware, 131 app.
This commit is contained in:
@@ -60,6 +60,18 @@ STATION_CONFIGURE; the app provisions the demo credentials on the first Connect.
|
||||
paired before must forget `micrOBU-XXXX` in Android's Bluetooth settings and pair again (passkey
|
||||
123456, `CONFIG_MICROBU_BLE_PASSKEY`).
|
||||
|
||||
### Pairing, bonds and several boards
|
||||
|
||||
- The name is `micrOBU-` plus the last two octets of the board's BLE address (`micrOBU-66AA` is the production
|
||||
XIAO on COM10, `10:BD:A3:CF:66:AA`). The board keeps **one** bond in NVS and refuses to replace it.
|
||||
- **With no bond the app connects to the first micrOBU it hears.** On a bench with several (2026-11-11: 4AFA, 3FAA,
|
||||
A25E and 66AA all at -49 to -55 dBm) that is not necessarily yours, and it can bond with the wrong board. Pair the
|
||||
right one first in Android's Bluetooth settings (Pair new device, passkey 123456); the app then prefers a
|
||||
bonded micrOBU. Forget a wrong bond there too.
|
||||
- If the phone has lost its bond but the board still holds one, the phone connects and drops again after about 3 s.
|
||||
Erase the board's NVS (`python -m esptool --chip esp32c5 -p COMx erase-region 0x9000 0x15000`) and pair again.
|
||||
- The bond survives a reflash that keeps the NVS and a reset of the board (checked 2026-11-11).
|
||||
|
||||
## Look at the board from the PC
|
||||
|
||||
```powershell
|
||||
@@ -68,7 +80,16 @@ py -3.11 tools/station_status_watch.py COM6 30 --configure --rx
|
||||
|
||||
prints the log, the STATUS snapshot once a second (uptime, signing and radio counters, heap,
|
||||
battery) and the first V2X_RX messages heard on air. DTR/RTS stay low in the script because toggling
|
||||
them resets the board.
|
||||
them resets the board. **Opening the port resets the board** (USB Serial/JTAG), so a phone on BLE is dropped.
|
||||
|
||||
```powershell
|
||||
py -3.11 tools/station_tx_test.py COMx --seconds 60 --mac 02:aa:bb:cc:dd:01 # signed CAMs from a named MAC
|
||||
py -3.11 tools/station_tx_test.py COMx --seconds 60 --unsigned # unsigned, a random MAC
|
||||
```
|
||||
|
||||
plays the phone over USB (configure, position, a CAM request per second) and reads the station's own raw capture, so it
|
||||
prints the 802.11 source address and whether each frame is signed, plus how many frames the radio submitted and
|
||||
completed. Pair it with a second board listening on the air to count what arrives.
|
||||
|
||||
## Production OBU checklist (board with the cell connected)
|
||||
|
||||
@@ -111,7 +132,10 @@ in `test/host`) adds the protection, every 5 s: the smoothed voltage below 3.30
|
||||
60 s after boot and with **no frame from a phone on USB in the last 5 s**, puts the board into deep
|
||||
sleep; it wakes every 300 s, measures, and runs again from 3.60 V. A phone on USB powers the board,
|
||||
so no shutdown happens then. Thresholds: `menuconfig -> micrOBU firmware`. The app shows
|
||||
low/critical from the same voltage and its own thresholds.
|
||||
low/critical from the same voltage and its own thresholds. The first XIAO build read 0 mV because the divider had
|
||||
no time to settle at `CONFIG_FREERTOS_HZ=100` (fixed 2026-11-11, see NOTES.md); it now reads 4.14-4.16 V on a charging
|
||||
cell. There is no calibration trim and no multimeter reference on the glued-in cell: the plateau at full charge
|
||||
should sit near the charger's 4.20 V.
|
||||
|
||||
## If the build fails
|
||||
|
||||
|
||||
Reference in New Issue
Block a user