C-Class (W203) 2001-2007, C160, C180, C200, C220, C230, C240, C270, C280, C300, C320, C230K, C350, Coupe

Announcing ultimate-nag52 - An open source drop-in replacement TCM for the 722.6!

Thread Tools
 
Search this Thread
 
Rate Thread
 
Old May 17, 2021 | 04:32 PM
  #1  
rnd_ash's Avatar
Thread Starter
Junior Member
 
Joined: Sep 2019
Posts: 73
Likes: 46
From: Reading, UK
2003 E55 AMG
Announcing ultimate-nag52 - An open source drop-in replacement TCM for the 722.6!

REWORKED This intro post to update the status of the project!

A small introduction
If you don't know who I am, that is likely because I don't often post here. I am the author of various Mercedes based hacks/mods which are more tech based, such as Openvehiclediag and my custom Android infotainment system for my W203

lately, I have been frustrated with my 722.6 gearbox, even after unlocking agility mode. The main issue is that it flares, and the TCM software (Reverse engineered) is super dumb and has various bugs:
  • Transmission flaring is due to the TCM having a hard limit to how much it can adapt (Seems MB didn't factor in 10+ years of wear and tear on these 722.6 gearboxes!)
  • Adaptive shifting is not possible when the TCM is in diagnostic mode, meaning all shifts are harsh.
  • Certain KWP2000 commands (for diagnostics) can cause the TCM to crash.
  • In S/C/A mode, the maximum shift pressure is capped at 70% of what the gearbox can physically handle (MB opted for smoothness over crisp shifts).
  • The transmission polls sensors only every 250ms (In theory every 10ms is possible), this can cause jerkiness as the gearbox can't register hash shifts.
  • The transmission applies over-compensated shift pressures to low load, low rpm situations, rather than just high load, high rpm situations. This can cause a gear change at low rpm to sometimes feel like a train impacted you from behind!
  • The processor can only deal with integer values, no floating point (Decimals). This causes some inaccuracy in its calculations for adaptation.

Therefore, I am proud to announce Ultimate-Nag52. This is a custom open-source TCM designed for the 722.6 gearbox, utilizing a Teensy 4.0 as its CPU. To put the raw power of this chip in perspective. This controller is over 2500x faster than the stock Infineon CPU that the stock TCM uses.
This TCM will come with all modes unlocked by default (W,C,S,A,M), and will utilize a neural network to learn exactly how your gearbox works and adapt the shift pressure dynamically such that every shift will hopefully be perfect.
Due to its open source nature, improvements can be made quickly overtime, and thanks to the fact that the controller is a Teensy 4.0, uploading new firmware will be as simple as plugging the TCM into your computer with a USB cable and uploading the firmware.

The firmware will have tons of modification options for each profile!
  • Don't want the torque converter to lockup at all in Comfort mode? That's possible!
  • Want the gearbox to shift as quick as possible? Sure!
The largest challenge with this project is reverse engineering the CANBUS data structure that the TCM reads and sends to the rest of the car. Doing this correctly will ensure no ESP errors, no check engine light, and also data displayed on your instrument cluster!

Videos:Code repository
https://github.com/rnd-ash/ultimate_nag52

Last edited by rnd_ash; Dec 14, 2021 at 01:59 AM. Reason: Reworked post with new youtube links
Reply
Old May 17, 2021 | 07:29 PM
  #2  
BF_JC230's Avatar
MBWorld Fanatic!
 
Joined: Feb 2006
Posts: 1,489
Likes: 110
From: WNY
2005 w203 C230
I’m working with another forum member (and I’m so thankful for that!) on trying to get my Distronic to work with my 716 manual gearbox...but if you’re ever bored and want a new challenge - I’m all ears to seeing if you can get the ME and ESP to be happy with the DTR in my car....

https://mbworld.org/forums/performan...ult-c1510.html

Great work here again!!! Wow!
Reply
Old May 25, 2021 | 04:17 PM
  #3  
rnd_ash's Avatar
Thread Starter
Junior Member
 
Joined: Sep 2019
Posts: 73
Likes: 46
From: Reading, UK
2003 E55 AMG
Version 1.0 of the PCB has been assembled and is being tested!


The OBD-II adapter (Macchina A0) is being used so i can emulate the KWP2000 diagnostic session EGS52 uses so my TCM can appear as a stock controller, and accept all the OEM diagnostic routines.

Yes, that solenoid is submerged in sunflower oil...ATF is too caustic for a desk in the event of a spillage. It still works!

I've begun to also write a custom API for gearbox interfacing and solenoid control. TLDR; If you want a different PCB with different solenoid drivers, you can just implement the functions in the API (EG: Set solenoid PWM), and then use the rest of the gearbox code.

I hope to post a lot more updates here in the coming weeks! University is finishing on Friday for me, so from next week onwards, I can work 100% on this project.
Reply
Old Jun 11, 2021 | 01:48 PM
  #4  
HPDECLK55's Avatar
Member
Veteran: Navy
 
Joined: Nov 2016
Posts: 114
Likes: 25
From: SoCal
2009 SLK 55, 2010 ML350
This is really cool stuff. Just picked up a 230K for daily driving and I'd love to unlock a few key items to make it better. The 722.6, which I remember from my CLK55 is on the top of the list along with a RaceIQ tune and some general tuneup items.
Reply
Old Jul 10, 2021 | 03:42 AM
  #5  
Pyromaniak's Avatar
Newbie
 
Joined: Jul 2020
Posts: 5
Likes: 0
W163 S210
W and C modes are same starts from second gear, because if ice on road, shifting from 1 to 2 can put car in unwanted drift.

W Winter in deutsch C Cold in english.

Where i can get this board? I want to make my own too.

Thanks
Reply
Old Sep 20, 2021 | 06:08 AM
  #6  
rnd_ash's Avatar
Thread Starter
Junior Member
 
Joined: Sep 2019
Posts: 73
Likes: 46
From: Reading, UK
2003 E55 AMG
Sorry for the lack of posting lately!

I am pleased to announce that testing with the first production-ready PCB has begun!

Working on CAN data right now, the PCB is very different now as its based on ESP32 and uses MOSFETs rather than solenoid driver ICs, as the solenoid driver IC's are currently in very short supply!

Reply
Old Oct 5, 2021 | 10:07 AM
  #7  
rnd_ash's Avatar
Thread Starter
Junior Member
 
Joined: Sep 2019
Posts: 73
Likes: 46
From: Reading, UK
2003 E55 AMG
New video series! Showing off the PCB and initial design of the board!
Reply
Old Oct 25, 2021 | 04:45 AM
  #8  
rnd_ash's Avatar
Thread Starter
Junior Member
 
Joined: Sep 2019
Posts: 73
Likes: 46
From: Reading, UK
2003 E55 AMG
IT SHIFTS GEARS! And I am super impressed how quickly the 722. can change gears!

Reply
MB World Stories

The Best of Mercedes & AMG

story-0

New Electric Mercedes-AMG GT 4-Door Coupe Unveiled: 10 Things You Need to Know

 Verdad Gallardo
story-1

6 Mercedes Models That Did NOT Age Well (But Are Somehow Still Cool)

 Verdad Gallardo
story-2

Manual Mercedes? 6 Times Sindelfingen Let Drivers Have All The Fun

 Verdad Gallardo
story-3

Mercedes SLR McLaren 722 S Is Extremely Rare Example Modified by McLaren

 Verdad Gallardo
story-4

8 Classic Boxy Mercedes Designs That Have Aged Like Fine Wine

 Verdad Gallardo
story-5

Flawlessly Restored Mercedes 190E Evo II Heads to Auction

 Verdad Gallardo
story-6

Electric Mercedes C-Class Unveiled: 11 Things You Need to Know

 Verdad Gallardo
story-7

Mercedes EQS Gets A Major Update: Everything You Need to Know

 Verdad Gallardo
story-8

5 Underrated Mercedes-Benz Models That Don't Get the Love They Deserve

 Verdad Gallardo
story-9

Mercedes 300D Has Pushed Well Past 1 Million Miles and It Ain't Stopping

 Verdad Gallardo
Old Oct 25, 2021 | 12:48 PM
  #9  
tjts1's Avatar
MBWorld Fanatic!
5 Year Member
Liked
Loved
Community Favorite
 
Joined: May 2017
Posts: 2,290
Likes: 434
C320
Are you planning to release this as a plug and play product?
Reply
Old Oct 28, 2021 | 12:31 AM
  #10  
C230 Sport Coup's Avatar
MBWorld Fanatic!
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Jun 2002
Posts: 7,266
Likes: 170
From: So. Oregon Coast
C230 Sport Coup + 2006 W164 ML350 + 99 Ford Escort RIP
I've never had that many problems with the TCU.
But one of the big questions, that always comes up is
using different rear end ratios.
The Mercedes TCM's has different part numbers for the ratios and they are hard coded.
So is yours capable of being programmed for different ratios?
If so, alot of people will find this useful.
Reply
Old Dec 14, 2021 | 01:57 AM
  #11  
rnd_ash's Avatar
Thread Starter
Junior Member
 
Joined: Sep 2019
Posts: 73
Likes: 46
From: Reading, UK
2003 E55 AMG
Originally Posted by C230 Sport Coup
I've never had that many problems with the TCU.
But one of the big questions, that always comes up is
using different rear end ratios.
The Mercedes TCM's has different part numbers for the ratios and they are hard coded.
So is yours capable of being programmed for different ratios?
If so, alot of people will find this useful.
Yes that is correct. Differential ratio AND Tyre size are part of the SCN coding stored on the TCM (Each part number = different SCN coding). These are all needed for rear speed and output shaft speed calculations.

My TCM comes with default options that can be compiled, but will hopefully have a simple utility app that you can use to modify those settings!
Reply
Old Dec 14, 2021 | 01:58 AM
  #12  
rnd_ash's Avatar
Thread Starter
Junior Member
 
Joined: Sep 2019
Posts: 73
Likes: 46
From: Reading, UK
2003 E55 AMG
part 3!

There is now a beta tester application form to fill out if you want to take part, check the video for more details
Reply
Old Feb 5, 2022 | 08:04 PM
  #13  
nit3man's Avatar
Newbie
 
Joined: Feb 2022
Posts: 1
Likes: 0
R230 SL500
Thumbs up Brilliant stuff!

Hey @rnd_ash , very cool stuff!
I was thinking to start something like this on 2022, just built a can sniffer with an RPI.
I'm planning on upgrading the 5G to a 9G on my R230, still not entirely sure it will be possible (not sure if the ECU will take 9 gears?), but this work you made here is a complete jumps start for any such project.
Reply
Old Jun 16, 2023 | 05:59 AM
  #14  
rich.g.williams's Avatar
Newbie
 
Joined: Dec 2009
Posts: 1
Likes: 0
From: Cardiff, South Wales
C200 Kompressor Coupe
https://forums.mercedesclub.org.uk/i...2/post-2060257

Reply

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 


You have already rated this thread Rating: Thread Rating: 0 votes,  average.


All times are GMT -4. The time now is 11:49 AM.

story-0
New Electric Mercedes-AMG GT 4-Door Coupe Unveiled: 10 Things You Need to Know

Slideshow: Mercedes-AMG's new electric GT 4-Door Coupe trades combustion for software, synthetic noise, and more than 1,100 horsepower.

By Verdad Gallardo | 2026-05-20 20:08:15


VIEW MORE
story-1
6 Mercedes Models That Did NOT Age Well (But Are Somehow Still Cool)

Slideshow: Not every Mercedes design becomes timeless, some feel stuck in the era they came from.

By Verdad Gallardo | 2026-05-12 18:09:07


VIEW MORE
story-2
Manual Mercedes? 6 Times Sindelfingen Let Drivers Have All The Fun

Slideshow: Yes, Mercedes built manual cars, and some of them are far more interesting than you'd expect.

By Verdad Gallardo | 2026-05-02 12:36:58


VIEW MORE
story-3
Mercedes SLR McLaren 722 S Is Extremely Rare Example Modified by McLaren

Slideshow: A one-of-one U.S.-spec Mercedes-Benz SLR McLaren Roadster became even rarer after a factory-backed transformation at McLaren's headquarters.

By Verdad Gallardo | 2026-04-29 11:19:28


VIEW MORE
story-4
8 Classic Boxy Mercedes Designs That Have Aged Like Fine Wine

Slideshow: Before curves took over, Mercedes mastered the art of the straight line, and some of those shapes still look right today.

By Verdad Gallardo | 2026-04-25 12:05:49


VIEW MORE
story-5
Flawlessly Restored Mercedes 190E Evo II Heads to Auction

Slideshow: The 190E Evolution II shows how a homologation necessity became a six-figure collector icon.

By Verdad Gallardo | 2026-04-22 17:53:47


VIEW MORE
story-6
Electric Mercedes C-Class Unveiled: 11 Things You Need to Know

Slideshow: Mercedes is turning one of its core nameplates electric, and the details show just how serious this shift is.

By Verdad Gallardo | 2026-04-21 13:58:06


VIEW MORE
story-7
Mercedes EQS Gets A Major Update: Everything You Need to Know

Slideshow: Faster charging, longer range, and a controversial steer-by-wire system define the latest evolution of Mercedes-Benz EQS.

By Verdad Gallardo | 2026-04-15 10:35:34


VIEW MORE
story-8
5 Underrated Mercedes-Benz Models That Don't Get the Love They Deserve

Slideshow: These overlooked Mercedes-Benz models never got the spotlight, but they quietly delivered more than most remember.

By Verdad Gallardo | 2026-04-13 19:35:45


VIEW MORE
story-9
Mercedes 300D Has Pushed Well Past 1 Million Miles and It Ain't Stopping

Slideshow: A well-used 1991 Mercedes-Benz 300D with more than one million miles is now looking for a new owner, and it still appears ready for more.

By Verdad Gallardo | 2026-04-10 10:05:15


VIEW MORE