Add diag console probe (OBD-II mode 01/09 on 0x7DF); wiki: diagnostic polling, two sources
Firmware: - CANDriver::transmit(): the single sanctioned transmit path (single-shot, echoed as CANTX lines, TX_FAILED alert counted); CAN-task warnings now take the serial lock - DiagProbe module: `diag pids` supported-PID bitmap scan, `diag pid <hex>`, `diag vin`, `diag ecu`, `diag status`; ISO-TP reassembly with flow control; one request in flight, refused for 3 s after any foreign tester frame - Console dispatch chained via Tunables::setExtraCommandHandler() - CLAUDE.md and docs/UART_PROTOCOL.md updated Wiki: - New page obd-diagnostic-polling (broadcast vs polled, 0x6F1->0x612 addressing, Route A generic OBD PID table, Route B, test-day procedure, firmware probe) - New sources: google-ai-dde7m57-pids (clipping, unverified, 0x612 direction contradicted), dwr-335d-torque-pids (thread + raw/BMW 335d.csv decoded) - Clippings/ folder added to the schema (Obsidian Web Clipper, treated as raw/) - bmw-m57n-engine, can-bus-integration, open-questions, index, log updated
This commit is contained in:
@@ -54,8 +54,14 @@ bool handleCommand(const char* line);
|
||||
|
||||
/**
|
||||
* Non-blocking: read pending bytes from Serial, dispatch complete lines to
|
||||
* handleCommand(). Call from loop().
|
||||
* handleCommand(), then to the extra handler (if registered). Call from loop().
|
||||
*/
|
||||
void pollSerial();
|
||||
|
||||
/**
|
||||
* Register a second console command handler (e.g. DiagProbe::handleCommand)
|
||||
* that gets lines `cfg` does not recognise. Returns true if it consumed the line.
|
||||
*/
|
||||
void setExtraCommandHandler(bool (*handler)(const char* line));
|
||||
|
||||
} // namespace Tunables
|
||||
|
||||
Reference in New Issue
Block a user