Wardrive sessions (WS6 / #405)¶
Record a wardrive session while mobile: GPS track points, sniffer packet tags tied to your position, and export to GPX / GeoJSON / CSV / ZIP.
Map tool¶
On the Map panel, open Wardrive (orange car control, below Site plan). Start a session with an optional label; stop when finished. Toggle Show GPS track to draw the polyline on the map.
While a session is active, Mesh Client appends:
- Track points from your resolved GPS / position (about every 5 seconds).
- Packet tags from the Sniffer log for the active identity (RF vs MQTT counts in the session summary).
Sessions are scoped by identity_id (schema v57 wardrive_* tables).
Packet tags follow the identity's raw packet buffer by its newest entry, not its length, so logging continues after the buffer reaches its 2,500-entry cap. Packets that arrive inside the 250 ms throttle are queued and sent with the next flush. Only packets heard after Start (or after the focused identity changes) are logged.
A session still open when the app quits or crashes is ended on the next launch, at its last recorded point or packet (endOpenWardriveSessions, run once on the main process's first wardrive database use). Logging after a relaunch needs a new Start; a renderer reload in the same process keeps the session.
Track points outside the WGS84 range are refused; a packet with an out-of-range position is stored without one.
Clear All Local Data (App panel, Danger Zone) deletes every wardrive session, track point and packet (wardrive:clearAll) before the session reset. If the wardrive handlers failed to load, the rest of the reset still runs and mcL1552 is logged.
Export¶
Ended sessions expose Export in the list (ZIP bundles GPX, GeoJSON, and CSV). IPC: wardrive:export with format gpx | geojson | csv | zip.
IPC¶
Channel literals live in hobbyistGapsContracts.ts (WARDRIVE_IPC).
wardrive-handlers.ts ships as its own bundle beside index.js, so it takes assertIpcSender from main through its deps. Importing validate-ipc-sender directly would give the bundle its own suspended-sender set, which the session:clearData fence would not reach.