Warning: installing or modifying this software can brick your head unit. Recovery may require professional service or replacement, at your expense. Provided AS IS; use at your own risk, subject to applicable law. Read the risk and liability disclaimer.
The fault codes of the car's main control units, read and cleared on the iDrive screen or in the NBT Manager phone app. The screen follows NBT Manager's look (BMW, MINI or Supra). Runs on the NBT App SDK, installed through NBT Manager, which sends every request to the car and refuses anything else.
Supported head units: BMW NBT Evo (iDrive 6).
Not affiliated with or endorsed by BMW AG. BMW, iDrive and NBT are trademarks of BMW AG.
Tap a row to open a unit or choose an action; drag up or down to move through a long list. Clearing codes takes a second tap on the confirmation screen. Swipe right to go back, and out of the application from the list. This package requires bridge 1.10.
| Unit | Address | Role |
|---|---|---|
| DME | 0x12 | engine |
| DME2 | 0x13 | second engine computer (V8, V12) |
| EGS | 0x18 | gearbox |
| VTG | 0x19 | transfer case (xDrive) |
| DSC | 0x29 | stability control |
| ACSM | 0x01 | airbags |
| EPS | 0x30 | steering |
| BDC | 0x40 | body (FEM or BDC) |
- Codes: six hex digits, as BMW's tools print them, with their state (active, stored, pending) and the catalogue's title for them. Choose one for what the unit keeps of it: how often it occurred, its first and last mileage, BMW's urgency (next service, next stop, at once) and its OBD code, whose description and likely causes then describe it; then what its status says (failing now, confirmed, warning light, tested since the last clear).
- Type: from how BMW numbers its codes: network faults (0xC90000-0xEFFFFF) and the unit itself (0x02xxxx) in every unit, and the engine computer's ranges (fuel system, ignition and misfires, valve timing, exhaust, engine oil...). The other units keep their codes in one mixed range: their role is the type. A code the catalogue does not name shows its type, and the page names the search for the exact meaning.
- OBD codes (engine, second engine, gearbox): P0301 and the like, stored, pending or permanent, each with its title and likeliest causes (OBDex, CC0, 9,533 generic codes). Needs NBT Manager with bridge 1.13; a permanent code stays after a clear until the unit sees the repair work.
- No answer: a unit this car does not have, or the ignition is off: the engine, gearbox and chassis units sleep then, while the body controller still answers. The screen says so when the engine computer is silent.
- Which way: the car's gateway, or the head unit's own link when the gateway is out of reach (nothing in the OBD port); the list's first line names it.
- Clearing: every code of one unit, after a second confirmation; NBT Manager allows it only while the car stands still.
- Permissions shown before install: engine data, phone screen; can clear fault codes (when parked).
| Action | iDrive controller | Desktop |
|---|---|---|
| Move | Turn, or tilt up/down | Up, Down |
| Choose | Push | Return |
| Back, and out from the list | BACK | Backspace |
| Quit from anywhere | BACK, long hold | Escape |
Phone: NBT Manager app › Car › Diagnostics › Phone page: Read all units; tap a unit for its codes and Clear (asked twice); tap a code for its page and a Google search for it.
Coding agents: AGENTS.md.
Needs the NBT App SDK next to this repository (../sdk, or NBT_SDK_DIR),
LVGL (git submodule update --init), gcc, Python 3, and the X11, EGL and GLESv2 development files; Xvfb for the
tests.
make -j"$(nproc)" host test test-asan check-static-init # host binary and tests
./build/nbt-diagnostics-host # on the desktop (X11); Escape closes itThe tests start the desktop build as NBT Manager does: a health check without
a window, then a launch under Xvfb. The package test needs NBT Manager's
checkout (../manager, or NBT_MGR_DIR) with nbt-verify built
(make -C ../manager host); it is skipped without.
Head unit, with the NBT toolchain (make -C ../sdk toolchain once):
make -j"$(nproc)" native native-check # build/nbt-diagnostics-native
make vm-test # its health check in the SDK's VM
make APP_KEY=/path/to/apps-signing-key.pem package # build/diagnostics-<version>.nbtrelease/package.args describes the package: the id, the capabilities and
the settings. release/sdk.ref is the SDK commit CI and releases build
against (SDK 0.7.0). make notice writes legal/NOTICE.txt; make test fails when it
lags.
Without NBTFoundry's apps key, sign with a key of your own and add it to your car once (an NBT Manager with developer keys):
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:3072 -out ~/.nbt/diagnostics-key.pem # keep it private
openssl pkey -in ~/.nbt/diagnostics-key.pem -pubout -out release/developer-public.pem
make APP_KEY=~/.nbt/diagnostics-key.pem package- On the car: copy
release/developer-public.pemto the phone; in the NBT Manager app, Car › Manage › Developer keys › Pick a key file, then confirm the same fingerprint on the car. Packages signed with that key then install from the phone. - Releases from CI: the private key, base64, as
APPS_SIGNING_KEYin thereleaseenvironment, andpublic-key: release/developer-public.pemunderwith:in.github/workflows/release.yml.
| Path | Contents |
|---|---|
src/main.cpp |
The bridge, the window, LVGL, the loop, the controls |
src/screen.* |
The pages and their input: knob, BACK, touch |
src/view.*, src/theme.* |
The screen in LVGL objects, in NBT Manager's look |
src/display_gl.*, src/lv_conf.h |
LVGL's buffer in the SDK's window; LVGL's configuration |
src/scanner.*, src/units.* |
The requests, on their own thread; the units, codes and texts |
src/phone_page.* |
The page in the phone app |
src/obd.*, src/generated/obd_text.cpp |
OBD codes: parsing, and their texts (written by tools/make_obd_text.py from an OBDex checkout; then make notice) |
Native only: a program NBT Manager starts itself, not through nbt-runner.
Diagnostics need it (bridge 1.9, diag and companion; NBT Manager's
docs/app-bridge.md).
.github/workflows/ci.yml runs the host tests, the same under ASan/UBSan and
the head-unit builds on every push and pull request. A vX.Y.Z tag runs
.github/workflows/release.yml: NBT Manager's application release workflow
builds the payload, signs it with the apps key after a maintainer approves
the run (the release environment, secret APPS_SIGNING_KEY) and publishes
diagnostics-X.Y.Z.nbt, sequence X*1000000 + Y*1000 + Z.
Copyright (c) 2026 Fabien Poussin. Original code, tests, build scripts and documentation are licensed under MPL-2.0; see LICENSE.
Original NBTFoundry logos and artwork are MPL-2.0; copyright permission for artwork does not grant trademark rights or imply endorsement by BMW AG.
See legal/README.md for third-party license notices.
The package includes seven compressed SQLite catalogues: English, German,
French, Italian, Spanish, Simplified Chinese and Japanese. On launch it reads
NBT_LANGUAGE from NBT Manager (0.21.0 or later); zh selects zh-cn.
Missing languages or individual translations fall back to English. A fault
absent from both catalogues keeps its existing category and web search.
The screen and phone interface, fault states, occurrence counts, mileage history,
and clearing confirmations follow the same language. Generic OBD descriptions
and likely causes currently retain their English source text.
The databases remain compressed in NBT_ASSETS_DIR. Statically linked SQLite
and Zstandard open the selected catalogue and English in memory, without
writing an uncompressed database to disk. make package-assets stages only
these seven languages; source databases retain the translation IDs.
make fault-assets regenerates them; tools/make_title_fonts.py generates the
Latin and CJK fallback glyphs from their complete character sets (Pillow,
fontTools and Noto Sans CJK Regular 2.004).
The interface catalogues are data/ui/<language>.json, with English text as
stable keys. python3 tools/ui_text.py validates printf arguments and generates
the C++ table; make test checks all seven languages and font coverage.
Regenerate title fonts after editing translations. make vm-languages checks
that every language draws identical pixels on the desktop and QNX ARM.
