Standalone tool to enable the AMG instrument-cluster menu on a Mercedes IC204 cluster (W204, W212, C207, C218/X218) by a direct EEPROM write over UDS, through a Tactrix Openport 2.0 (J2534). Pure Python, 32-bit, Windows laptop, no Vediamo or Xentry needed.
You get an AMG page (engine/gearbox oil temp, gear, RACETIMER, depending on the bits). Dial faces, needle colours and speedometer scaling are untouched.
Warning
This writes raw bytes to your instrument cluster's EEPROM. That EEPROM also holds
odometer and vehicle-binding data. A wrong offset, a wrong value, or an interrupted write can
corrupt the cluster or brick it. The tool only writes the configured AMG/lamp windows and
verifies every write by read-back, but you are responsible for the values in your
profile. Only use it on a cluster you own or are authorised to modify; odometer tampering is
illegal in most jurisdictions. No warranty - see LICENSE. Always readonly first and keep
the backup.
Claims and hex values are tagged [S] primary source, [V] verified on a car, [C] unverified
community report; see Sources.
- Car: an IC204-family instrument cluster. See Known results for the clusters it has worked on; anything else needs its own profile (Other clusters).
- Interface: a Tactrix Openport 2.0 with the Tactrix driver installed
(
C:\Windows\SysWOW64\op20pt32.dll). - Laptop: Windows. The J2534 DLL is 32-bit only; the release bundle ships its own 32-bit Python. Close Vediamo/Xentry if present, the Openport is exclusive.
- Power: a charger holding the battery at ~13.5 V, ignition on, engine off. Writes are refused below 12.5 V.
- The cluster's 10-digit software part number, from the IC204 identification in Xentry/Vediamo/DAS. It selects the seed-key table.
- Install: download
ic204amg-win32.zipfrom the releases and unzip it anywhere, e.g.C:\work\amg. Nothing is installed; delete the folder to undo. - Configure: copy
car.example.tomltocar.tomland fill insw. The CAN ids, baud and DLL path ship with the IC_204 defaults;car.example.tomldocuments every key, and each can also be given on the command line (--sw,--txid,--rxid,--baud,--dll). A wrongswis a rejected key, and the cluster counts failed attempts. - Run, in the unzipped folder, in this order:
ic204amg selftest # seed-key vectors, udsoncan, DLL load, active profile; no cable
ic204amg probe # cable: firmware/DLL version, battery voltage; no bus traffic
ic204amg readonly # unlock + back up the profile's windows; writes nothing
ic204amg write [--expect backups\<earlier>.json]
ic204amg lampfix # only if a lamp misbehaves afterwards, see Lamp fix
ic204amg restore backups\<file>.json [--lamp]
write switches between amg off and amg on each run, so run it once. Every writing command:
- re-reads the windows and saves a fresh backup to
backups\first - refuses below 12.5 V (
--ignore-batteryoverrides) - asks you to type the new byte value, then unlocks again right before the write, because security access lapses while the prompt waits
- unlocks for the write at SecurityAccess
0x0D, since0x09was refused (7F 3D 33)[V]; reads use0x09. If a write is refused, try another--write-level(0x01 0x03 0x09 0x0D)
Exit codes: 0 ok, 1 usage/config, 2 STOP (a safety rule halted it), 3 UDS/transport error. Copy
backups\ and logs\ off the laptop after each session.
Rollback: restore backups\<file>.json writes that backup's AMG window back; --lamp also
restores its lamp window. Windows that already match are skipped, so restoring a backup taken
after amg on with --lamp only resets the lamp byte. The tool only changes bytes it holds a
byte-exact copy of, so every state is reversible over OBD as long as the cluster still talks.
| Car | Cluster SW | AMG menu | Lamp side effect after amg on | Tier |
|---|---|---|---|---|
| 2013 C220 CDI (S204), colour cluster | 2049022903 |
works: 0x01D0 byte 0 FF amg off, FC amg on |
preheat lamp stays on after the ignition-on check | [V] author |
| 2012 CLS 350 CDI (C218/X218) | 2189028400 |
works | preheat and ESP lamps stay on until the engine starts | [V] [#2]1 |
On some clusters amg on brings a lamp side effect (wrong ESP/CNG/preheat lamp). The reported fix
is the last byte of the 0x0260 window (0x0269), written to 60 [C]23.
On the W204 that value shuffles the light indicators, so lampfix writes E2 instead [V].
Results so far:
| Car | Cluster SW | 0x0269 |
Binary | Result |
|---|---|---|---|---|
| W204 | 2049022903 |
42 |
01000010 |
factory value |
| W204 | 2049022903 |
60 |
01100000 |
preheat lamp fixed; fog indicator always on, parking indicator lights with low beam, low beam indicator with high beam, high beam indicator with fog lights |
| W204 | 2049022903 |
E2 |
11100010 |
solution: preheat lamp fixed, indicators correct |
| CLS 350 CDI | 2189028400 |
20 |
00100000 |
factory value |
| CLS 350 CDI | 2189028400 |
60 |
01100000 |
no change from 20 |
On the W204, bit 5 (0x20) fixes the preheat lamp but shuffles the indicators, and bit 7 (0x80)
on top of it puts them right: E2 is the factory 42 with both set. The CLS had bit 5 from the
factory, so no single value is a universal fix. The byte differs per car and there is no way yet
to predict the right value; if a value does not help, restore <backup taken after amg on> --lamp puts the original back.
lampbits (experiment) is for hunting the right value: it shows the byte in binary, you type 8
bits (or one bit number 0-7 to flip that bit) and confirm with Enter (or type a correction).
It writes, resets, waits 10 s for the cluster to restart, reads the byte back and asks what the
lamps do now (the note goes to the log), then asks for the next value. q stops at any prompt
and lists the values tried.
- Seed-key
[S]4: 83 software part numbers in six families (197902, 204442, 204902, 212442, 212902, 218902), the IC204 entries of UnlockECU'sdb.json, shipped asic204amg/ic204_salts.json.ic204amg selftestlists them; adding one is copying its fourSaltvalues from there. - AMG recipe: a profile: the write windows, the flag byte with its amg off and amg on
values, and the lamp fix. The default is the W204 one above; override it with
[amg]/[lamp]incar.toml(documented incar.example.toml). The tool only writes the profile's windows and stops if the flag byte is neither the amg off nor the amg on value, so a new cluster needs no code change. - CAN ids:
0x60A/0x481at 500 kbit for IC_204[S](tools/cbf/ic204_comparams.txt). For any other cluster take them from its CBF (below) or a Vediamo channel trace. Never guess them.
Community-reported values, unverified - a starting point only:
| Cluster | AMG bytes | Tier | Source |
|---|---|---|---|
| Monochrome | 0x01D0 bytes 0-1 = 10 20 |
[C] |
[MHH]5 |
| W204 without Airmatic | 0x01D0 byte 0 = 40 |
[C] |
[MHH]6 |
| Factory-AMG clusters | 0x0212-0x0213 = FF FF |
[C] |
[MotorCarSoft]2 |
Pre-facelift mono (SW 2044421921) |
10 20/40/60 → no change |
[C] |
[MHH]7 |
10 20 is a two-byte flag, which the single-byte profile cannot express. Some cluster software
ignores the AMG flag entirely; that needs a firmware change outside this tool
[C]87.
tools/cbf/CbfComParams.cs dumps a CBF's comparameters using CaesarSuite's Caesar.dll. On a
Windows machine, in one folder: CbfComParams.cs, build.cmd, Caesar.dll and
Newtonsoft.Json.dll (from CaesarSuite_2022-04-28.zip, needs .NET Framework 4.6+), and the
cluster's CBF:
build.cmd
CbfComParams.exe IC_204_Xentry.CBF IC_204 > ic204_comparams.txt
Take CP_REQUEST_CANIDENTIFIER, CP_RESPONSE_CANIDENTIFIER and CP_BAUDRATE of the HS-CAN
(UDS) subtype.
The AMG pages of a non-AMG IC204 are enabled in EEPROM, not in variant coding or flash
[C]9. So this is a UDS WriteMemoryByAddress (0x3D) to a small window, gated
only by IC204 SecurityAccess; SCN is not involved [C]2. The read/write format
(0x10000000 address base, ALFID 0x14) is the community one [C]2, and the seed-key is
computed in-process [S]4. What write sends (readonly stops after the backup):
flowchart TD
S["10 03 extended session"] --> U["27 09 / 27 0A unlock"]
U --> R["23 read the AMG window and the lamp window"]
R --> B["backup to backups/*.json"]
B --> D{"flag byte is amg off or amg on?"}
D -- no --> X["STOP, nothing written"]
D -- yes --> C["you type the new byte value"]
C --> W["27 0D / 27 0E re-unlock, 3D write"]
W --> V["23 read back, must match"]
V --> E["11 01 ECU reset"]
P2/P2* come from the 50 03 reply, TesterPresent is a firmware-side periodic 3E 80, and every
PDU is logged to logs\.
Linux or macOS, uv:
uv sync # .venv: python 3.15 (matches the bundle)
uv run pytest
uv run ruff format . && uv run ruff check . && uv run ty check
python3 tools/build_bundle.py # dist/ic204amg-win32/ and .zip, stdlib only
tools/build_bundle.py downloads the embeddable 32-bit CPython and the udsoncan wheel (sha256
checked) and puts them with ic204amg/ in python/, with ic204amg.cmd and
car.example.toml at the top; the launcher runs from its own folder, so nothing on the laptop
is touched. The bundle GitHub Action runs the tests and builds the same zip on every push;
pushing a v* tag attaches it to a release.
[S] read from a primary source (open-source code and tests)
[V] verified on a car running this tool: the author's, or one reported in this repo's
issues
[C] community report seen only as a forum search-result excerpt - unverified
The MHH and MotorCarSoft pages block automated reading, so their bytes here come from search excerpts only - open the thread and read your own backup before trusting a specific value. Reports disagree even on the direction of the colour-cluster byte, which is why the tool reads first, switches against your own value, and stops on anything unexpected.
MIT licensed (LICENSE). The IC204 seed-key algorithm, salt constants and test vectors are
those of [jglim/UnlockECU]4 (MIT); the reverse engineering is also documented at
Mattwmaster58/ic204. UDS transport uses
udsoncan.
Footnotes
-
CLS 350 CDI report, lamp fix
60with no effect. https://github.com/MrExplode/IC204-AMG/issues/2 ↩ -
MotorCarSoft - UDS read/write command format,
0x10000000mapping,0x0260lamp fix,0x0212-0x0213factory AMG (excerpt). https://www.motorcarsoft.com/viewtopic.php?t=21528 ↩ ↩2 ↩3 ↩4 -
autogmt - colour-cluster AMG byte, CNG/ESP side effect. https://autogmt.com/threads/who-can-help-me-to-activate-the-amg-menu-w204.236/ ↩
-
jglim/UnlockECU - IC204 provider, definitions, access levels, test vectors. https://github.com/jglim/UnlockECU ↩ ↩2 ↩3
-
MHH - monochrome
10 20values (excerpt). https://mhhauto.com/Thread-AMG-menu-for-free-CNG-or-preheat-lamp-fix ↩ -
MHH -
40value (excerpt). https://mhhauto.com/Thread-FREE-AMG-MENU-V2-IC204-204-212 ↩ -
MHH - colour-cluster
FF→FCcase, no-effect pre-facelift mono (excerpt). https://mhhauto.com/Thread-W212-W204-AMG-IC-instrument-cluster-change ↩ ↩2 -
MBTools AMG guide - firmware-flash caveat. https://mbtools.com/guide/amg ↩
-
MHH - IC204 AMG pages set in EEPROM, not coding or flash (excerpt). https://mhhauto.com/Thread-Ic204-replace-coding ↩