That's a lot going on at once, and honestly several of these symptoms could be related. Let me break it down:
1. Key Fob Range Issue (Smart Key / Keyless Go)
If both keys only work when held right against the door handle sensor, the most common causes are:
- Dead key batteries — this is the #1 cause. The W204 uses CR2025 batteries in the fob. Replace them in both keys first before doing anything else.
- EIS (Electronic Ignition Switch) or antenna amplifier issue — if new batteries don't fix it, the Keyless Go antenna modules (in door handles / interior) or the EIS module itself could be faulty.
Delphi cannot program or re-learn Mercedes keys. For key-related work on W204 you need Xentry/DAS with online SCN access, or a dedicated key tool (VVDI MB, CGDI MB, Autel IM608, etc.). However, if it's just dead batteries, no programming is needed — just swap them.
2. Pioneer Stereo Lost Power
The aftermarket stereo is likely powered through the SAM (Signal Acquisition Module) front. Check:
- Fuse F32 or F40 in the front SAM (depends on how it was wired)
- The ground and constant 12V on the harness adapter behind the head unit
- Whether the SAM is throwing any faults — read the SAM module in Delphi and check for relay/fuse circuit DTCs
3. TPMS Not Communicating
Could be a dead TPMS sensor, but given all your other electrical gremlins, check for a
low battery voltage situation. A weak main battery causes all kinds of intermittent communication faults across modules.
4. P0340 — Camshaft Position Sensor Bank 1
You replaced the CPS — good. On the M271 EVO (C250 turbo):
- There is no relearn procedure for the camshaft position sensor on this engine. The ECU (ME9.7 or MED17.7.2) picks up the new sensor signal automatically after a few crank cycles.
- If P0340 persists after replacing the sensor, check the wiring and connector — pin corrosion, damaged harness near the valve cover, or oil contamination in the connector are very common on W204 M271.
- Also check the camshaft adjuster (intake VANOS) solenoid and the timing chain. The M271 is notorious for chain stretch, and a stretched chain will cause both P0340 and P0299 together.
5. P0299 — Turbo Underboost
On the M271 CGI/turbo this is commonly caused by:
- Boost leak — сrаскed charge pipe, loose clamp, split intercooler hose
- Wastegate actuator sticking or vacuum line сrаскed
- Timing chain stretch — retarded cam timing = poor scavenging = low boost
- Faulty diverter valve (recirculation valve)
The Big Picture
Multiple intermittent faults + TPMS dropout + stereo power loss + key range issues all at once strongly suggests a
battery or ground problem. Before chasing individual faults:
- Test your main battery with a proper load tester — the W204 auxiliary battery (if equipped) too
- Check the main ground points — engine-to-chassis ground, battery-to-chassis ground, and the ground bolt on the left side of the engine bay
- Read all modules in Delphi (full ISS scan) and post the complete fault list — that will tell us a lot more
A weak battery on these cars causes exactly the kind of random multi-system chaos you're describing. Fix the power foundati
That confirms it — your battery is weak and likely the root cause of most of your issues.
Battery Voltage Reference for a Healthy W204
- Engine off, no load, fully charged: 12.4V – 12.7V
- Engine running, idle: 13.8V – 14.4V
- 12.0V with no load and cold: that battery is at roughly 25% state of charge — it's essentially dead
A "resting" voltage of 12.0V means the battery cannot deliver anywhere near the current these cars need. The W204 has a massive number of modules that stay partially awake (EIS, SAM front, SAM rear, TPMS receiver, Keyless Go antennas, etc.), and when voltage sags under their draw, you get exactly what you're experiencing:
- Key fob range drops because the Keyless Go antenna amplifiers aren't getting proper voltage to power up fully — so only close-range NFC-style passive communication works
- TPMS receiver loses communication with the wheel sensors
- Intermittent DTCs appear and disappear across random modules
- SAM relay outputs become unreliable — explains your Pioneer losing power
- ECU sensor readings become erratic — can contribute to P0340 and P0299 codes
What To Do
1. Replace the battery
The W204 C250 uses a Group 49 (H8) AGM battery — typically 80Ah–95Ah. Make sure you get an AGM, not a standard flooded battery. These cars need AGM because of the high parasitic draw from all the electronics.
2. Battery registration
This is important on W204. The IBS (Intelligent Battery Sensor) on the negative terminal needs to know a new battery was installed so the charging strategy resets. You can do this in Delphi:
- Go to Mercedes-Benz → C-Class → W204 → select your engine
- Navigate to the engine management or electrical system section
- Look for battery replacement / battery registration function
- Follow the prompts to register the new battery capacity and type
If Delphi doesn't offer that function for your specific variant, any shop with Xentry or even a basic Autel/Launch tool can do it in 30 seconds.
3. After battery replacement:
- Clear ALL fault codes across every module (full ISS scan → clear all)
- Replace both key fob batteries with fresh CR2025 while you're at it
- Drive the car for 20–30 minutes to let all modules re-adapt
- Re-scan and see what codes come back
I'd bet that the TPMS, key fob range, stereo power, and at least some of the intermittent codes will be completely gone after a proper battery replacement. Whatever remains after that — particularly P0340 and P0299 — those are the real faults worth chasing. But don't waste time diagnosing anything else until the battery is sorted.
thank you so much i was thinking that was the case with my issues. im not a mechanic but i do car audio for a living so i understand how voltage works and i just nneded to confirm my suspiscions before i forked out a lot of money for something i didnt need. i took car to oreileys to test battery and was told it was fine but im not convinced the dude knew what he was doing at all!