Diag scans: 22 D1xx refuted, 21 xx session-locked; add diag raw toggle + scanner
- diag probe: `diag raw on|off` console command (mutes CANRAW during scans) - tools/diag_scan.py: identifier-space sweeper via `diag bmw` - findings: whole 22 D1xx block NRCs (clipping identifiers wrong for this DDE); 21 xx sparse - 21 20 = O_269962, measurement blocks gated behind diagnostic session / security access -> Launch capture is the path to live data - wiki: route-b source page + obd-diagnostic-polling updated, raw scan logs Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -603,6 +603,7 @@ static void help() {
|
||||
print("diag ecu mode 09 PID 0A - ECU name");
|
||||
print("diag ident [addr] BMW KWP `1A 80` ECU identification (default addr 12 = DDE, reply 0x612)");
|
||||
print("diag bmw <addr> <hex...> raw BMW request on 0x6F1, read-only services only (1A/18/21/22)");
|
||||
print("diag raw on|off CANRAW frame logging (off = clean console during scans)");
|
||||
print("diag status counters, responders, tester guard");
|
||||
print("Sends on 0x7DF / 0x6F1 only, one request at a time; refused while a scan tool is polling.");
|
||||
}
|
||||
@@ -673,6 +674,13 @@ bool handleCommand(const char* line) {
|
||||
if (!strcmp(argv[1], "ecu")) { sendRequest(0x09, 0x0A); return true; }
|
||||
if (!strcmp(argv[1], "dtc")) { sendRequest(0x03, -1); return true; }
|
||||
|
||||
if (!strcmp(argv[1], "raw") && argc == 3) {
|
||||
bool on = !strcmp(argv[2], "on");
|
||||
CANDriver::setRawLogging(on);
|
||||
print("[diag] CANRAW logging %s", on ? "on" : "off");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!strcmp(argv[1], "ident")) {
|
||||
uint8_t target = BMW_ADDR_DDE;
|
||||
if (argc >= 3) target = (uint8_t)strtol(argv[2], NULL, 16);
|
||||
|
||||
Reference in New Issue
Block a user