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:
@@ -0,0 +1,64 @@
|
||||
---
|
||||
type: source
|
||||
tags: [obd, j1979, pid, diesel, m57, dde7, polling, torque-app]
|
||||
updated: 2026-09-21
|
||||
---
|
||||
|
||||
# DWR — "Extended BMW 335d PIDs for Torque" (e90post/6post thread + CSV)
|
||||
|
||||
Raw: `raw/BMW 335d.csv` (DWR's attachment, 2017 revision) and `Clippings/Extended BMW 335d PIDs for Torque.md` (page 1 of the thread, posts 1–22, clipped 2026-09-21). Thread: <https://6post.com/forums/showthread.php?p=17790638> (e90post t=1118429, 238 posts, 2015–). Author DWR, 2009 335d (E90, **M57N2 on DDE7.3 / EDC17CP09**, US market), a serious logger (Testo user).
|
||||
|
||||
## Summary
|
||||
|
||||
A custom-PID file for the Torque Pro Android app that fixes the app's wrong scalings for a diesel and adds the parameters DWR wanted to log: boost, exhaust manifold pressure, air mass, fuel flow, three exhaust temperatures, DPF pressure, NOx, intake/charge/ambient temperatures. **All of them are generic SAE J1979 mode `01` PIDs** — DWR says so himself in post 21 ("These are generic OBDII PIDs… The mode is always 1, the next 2 characters are the PID, A,B,C,D are the bytes") and points people who want *non-standard* values to Testo instead. Header `Auto` = Torque's default functional request (`0x7DF`, reply on `0x7E8`). Nothing here is BMW-proprietary; nothing here is a passively broadcast frame.
|
||||
|
||||
Two versions exist and differ:
|
||||
|
||||
| | Post #2 (2015-04-22) | `raw/BMW 335d.csv` (post #1 attachment, edited 2017-11-20) |
|
||||
|---|---|---|
|
||||
| Boost scaling (PID 70 bytes D–E) | ×0.296 (empirical, "one of two correction factors") | ×**0.3125** — the J1979 value (0.03125 kPa/bit = 0.3125 hPa/bit) |
|
||||
| Lambda / AFR (PID 24) | AFR ×0.00044225 | Lambda ×0.0000305 (written as `000031`, a typo for `0.0000305`) |
|
||||
| Fuel flow (PID 5E) | ×5.64 lb/hr — wrong | ×**0.0938** lb/hr — correct (0.05 L/h/bit × 0.85 kg/L × 2.2046) |
|
||||
| Extra rows | — | Baro (33), DPF pressure (7A), drive pressure (derived), EGR temp (6B), NOx pre/post SCR (83), H2O/meth target (derived from 5E) |
|
||||
|
||||
Use the CSV; the 2017 revision is the corrected one. One residual typo: EGT post-DOC has `+33` where the other rows have `+32`.
|
||||
|
||||
## The PID table (source: `raw/BMW 335d.csv`, decoded)
|
||||
|
||||
Mode `01` throughout; letters are reply data bytes after the PID echo, J1979 order. Scalings below are DWR's, converted to SI where his were imperial.
|
||||
|
||||
| PID | J1979 name | Bytes used | Value | Notes |
|
||||
|---|---|---|---|---|
|
||||
| `05` | Coolant temp | A | A − 40 °C | not in his file (Torque has it built in) — listed for completeness |
|
||||
| `0B` | Intake manifold absolute pressure | A | A kPa | **1 byte, caps at 255 kPa abs** — a boosting M57N exceeds that; the reason DWR used PID 70 instead |
|
||||
| `0C` | Engine rpm | A,B | (A·256+B)/4 | built in |
|
||||
| `0F` | Intake air temp (at MAF) | A | A − 40 °C | in file |
|
||||
| `10` | MAF | A,B | (A·256+B)/100 g/s | in file (×0.132276 → lb/min) |
|
||||
| `24` | O2 sensor 1 lambda | A,B | (A·256+B)/32768 λ | in file; lambda for a diesel, not AFR |
|
||||
| `33` | Barometric pressure | A | A kPa | in file |
|
||||
| `46` | Ambient air temp | A | A − 40 °C | in file |
|
||||
| `5E` | Engine fuel rate | A,B | (A·256+B)×0.05 L/h | in file (→ lb/hr ×0.0938) |
|
||||
| `6B` | EGR temperature | C | C − 40 °C | in file ("exhaust recirculation temperature") |
|
||||
| `70` | Boost pressure control | D,E | (D·256+E)×0.03125 kPa **actual** (B,C = commanded) | in file: (hPa − 1000)/1000×14.5 → psi gauge. Matches an analog gauge within a few psi (post 5/6; sensor location differs) |
|
||||
| `73` | Exhaust pressure bank 1 | B,C | (B·256+C)×0.01 kPa | in file |
|
||||
| `77` | Charge air cooler temp | B | B − 40 °C | in file |
|
||||
| `78` | EGT bank 1 | B,C / D,E / F,G | (n)/10 − 40 °C, sensors 1–3 | in file: pre-DOC, post-DOC (pre-DPF), pre-SCR |
|
||||
| `7A` | DPF differential pressure | B,C | (B·256+C)×0.01 kPa | in file |
|
||||
| `83` | NOx sensor | B,C / D,E | ×0.032044 − 100 ppm | in file; scaling looks empirical `(unverified)` |
|
||||
|
||||
## What this means for our project
|
||||
|
||||
- **These PIDs are ECU-agnostic by design** — if the DDE in the Patrol answers generic OBD-II over CAN at all, the basic ones (`05`, `0B`, `0C`, `0F`, `10`, `33`, `46`) need no BMW knowledge. That makes the mode-01 route the **cheapest first experiment** for polled values, ahead of any BMW `0x6F1`/`0x612` reverse-engineering. → [[obd-diagnostic-polling]]
|
||||
- **But the source car is not ours.** A 2009 US 335d (DDE7.3, EDC17, full US OBD-II, DPF/SCR) supports the whole list. Our donor is an E60/E61 M57N on a DDE6/EDC16 `(unverified)`: (a) the diesel-specific PIDs `70`/`73`/`78`/`7A`/`83` were added to J1979 in 2007+ revisions and an EDC16 almost certainly lacks them; (b) an early E60 served EOBD over **K-line**, not CAN — whether our DDE answers `0x7DF` on the PT-CAN is an open test; (c) with no DPF/SCR on the M57N several rows are meaningless anyway.
|
||||
- **The one query that answers all of it**: `01 00` (then `01 20`, `01 40`, `01 60`) returns the supported-PID bitmaps. One round trip on `0x7DF` tells us whether mode 01 works on this bus and exactly which PIDs the DDE offers. Procedure added to [[obd-diagnostic-polling]].
|
||||
- Boost via PID `0B` clips at 255 kPa absolute; if `70` is unsupported, real boost needs the BMW route.
|
||||
- DWR's Testo-parameter list (his post 175 in the "Testo" thread, German→English) is the pointer for non-standard DDE values — not clipped yet; sourcing wishlist.
|
||||
|
||||
## Relevance to open questions
|
||||
|
||||
- **#7** (non-broadcast values): adds the generic route as a concrete, low-risk first test with expected byte layouts. Does not answer whether our DDE supports it.
|
||||
- **#2** (DDE variant): indirectly — which PIDs the DDE reports supporting is itself a fingerprint of the ECU generation.
|
||||
|
||||
## Related
|
||||
|
||||
[[obd-diagnostic-polling]] · [[google-ai-dde7m57-pids]] · [[listen-and-send-pid-arduino]] · [[can-id-candidates]] · [[open-questions]]
|
||||
@@ -0,0 +1,39 @@
|
||||
---
|
||||
type: source
|
||||
tags: [dde, diagnostics, kwp2000, uds, obd, polling, unverified]
|
||||
updated: 2026-09-21
|
||||
---
|
||||
|
||||
# Google AI Mode conversation: "dde7m57 pids" (web clipping)
|
||||
|
||||
Raw: `Clippings/dde7m57 pids - Google Search.md` (Obsidian Web Clipper, 2026-09-21). A three-turn Google AI Mode conversation the user had while asking (1) what PIDs exist for a DDE7 M57, (2) why boost / MAF / rail pressure / injection quantity never show up on the sniffer although rpm and coolant do, and (3) what the `0x612` (and, the user believes, `0x6F2`) frames are that appear when the Launch scanner is plugged in.
|
||||
|
||||
> [!warning]
|
||||
> **Everything in this clipping is `(unverified)`.** It is a generative summary with no primary citations, and its central addressing claim contradicts a source we already hold (see claim 5). It is filed because it frames the polling question well and because the user's own observation inside it (0x612 appears with the Launch connected) is real evidence.
|
||||
|
||||
## Summary
|
||||
|
||||
BMW does not broadcast internal engine parameters that no other module needs; a tester obtains them by sending diagnostic requests to the DDE and reading its replies. The clipping proposes two routes (generic OBD-II mode 01, or BMW-proprietary ReadDataByIdentifier) and a set of identifiers, and explains the `dde73m57` INPA script family.
|
||||
|
||||
## Key claims, with our assessment
|
||||
|
||||
1. **`dde73m57` = M57 on a Bosch DDE7.3 (EDC17CP09)**, the North-American E90 335d / E70 X5 35d pairing; Ediabas group `D73N57C0.prg`, versus `D60M57D0` / `D62M57B0` for the older DDE6 on European cars. `(unverified)` — plausible and consistent with general knowledge. **Note the implication for us:** our donor is an E60/E61 with a 6HP26X (see [[open-questions]] #2). A 2003–07 E60 M57N carries a DDE6-generation (EDC16) ECU, not DDE7.3; the search term the user used may not match the engine in the car. The Launch's ECU-identification page settles it.
|
||||
2. **Boost, MAF, rail pressure, injection quantity are not broadcast — only polled.** Agrees with what this wiki verified by absence ([[can-id-candidates]]: `AIP_ENG` is barometric; nothing else resembles boost on the live bus).
|
||||
3. **Generic OBD-II over CAN**: request on `0x7E0`, reply on `0x7E8`; mode 01 PIDs `0x0B` (MAP/boost), `0x10` (MAF), `0x22`/`0x23` (rail pressure). `(unverified)` — standard J1979, but whether *this* DDE answers EOBD on CAN rather than on K-line depends on the model year (early E60s did EOBD over K-line). Cheap to test with one request.
|
||||
4. **BMW-proprietary route**: service `0x22` ReadDataByIdentifier with two-byte identifiers `D1 0C` (boost actual), `D1 1E` (rail pressure actual), `D1 14` (MAF), `D1 06` (injection quantity), matching Ediabas names `STAT_LADEDRUCK_IST_WERT`, `STAT_RAILDRUCK_IST_WERT`, `STAT_LUFTMASSE_WERT`, `STAT_EINSPRITZMENGE_AKTUELL_WERT`. `(unverified)` — **no citation at all; treat the numeric identifiers as invented until a capture shows them.** The Ediabas result names are real and useful as search terms.
|
||||
5. **`0x612` is the tester request ID and `0x6F2` the DDE response ID.** ⚠ **Contradicts [[can-id-candidates]]** (dieslg8, working code on a real M57: tester sends on **`0x6F1`**, DDE replies on **`0x612`**) and the BMW E-series addressing convention (tester `0x6F1`, first byte = target ECU address, DDE = `0x12`; the ECU replies on `0x600 + address` = `0x612`, first byte `0xF1`). The user seeing `0x612` is exactly what the DDE *answering* looks like. "`0x6F2`" is most likely a misremembered `0x6F1`. Full reasoning → [[obd-diagnostic-polling]].
|
||||
6. The "Requested control unit D60M57D0 / D62M57B0 not found, found D73N57C0" INPA error and the `dde73kwp.ipo` / `dde7uds.ipo` fix. Not relevant to our firmware, but it does tell us the DDE7.3 speaks **KWP2000 on CAN** (`kwp` script), with UDS as a separate variant — so "UDS service 0x22" in claim 4 may be the wrong protocol layer for a DDE6.
|
||||
|
||||
## What the clipping is actually good for
|
||||
|
||||
- The Ediabas result names for the values the user wants (boost, rail, MAF, injection) — search terms for real `.prg`-derived tables.
|
||||
- Its sniffing tip is the same plan already on our wishlist: **log while the Launch shows its live-data page**, filter to the request/response pair, and the bytes fall out. Procedure now written up in [[obd-diagnostic-polling]].
|
||||
|
||||
## Relevance to open questions
|
||||
|
||||
- **#2 (DDE variant / model year)**: the Launch's ECU identification (or any INPA "control unit found" string) names the variant outright — `D60M57D0`/`D62M57B0` (DDE6) vs `D73N57C0` (DDE7.3). One screen on the scanner closes a question that has been open since July.
|
||||
- **#7 (fault codes / non-broadcast values)**: the user's observation of `0x612` during a Launch session confirms diagnostic traffic reaches the tapped bus, so a capture there will contain both halves of the exchange. → [[obd-diagnostic-polling]]
|
||||
|
||||
## Related
|
||||
|
||||
[[obd-diagnostic-polling]] · [[can-id-candidates]] · [[bmw-m57n-engine]] · [[open-questions]] · [[listen-and-send-pid-arduino]]
|
||||
Reference in New Issue
Block a user