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 05-17-2021, 04:32 PM
  #1  
Junior Member
Thread Starter
 
rnd_ash's Avatar
 
Join Date: Sep 2019
Location: Reading, UK
Posts: 72
Received 42 Likes on 27 Posts
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; 12-14-2021 at 01:59 AM. Reason: Reworked post with new youtube links
The following 4 users liked this post by rnd_ash:
austingtir (07-28-2021), BF_JC230 (05-17-2021), Rogelio Serrano (05-18-2021), tjts1 (07-10-2021)
Old 05-17-2021, 07:29 PM
  #2  
MBWorld Fanatic!
 
BF_JC230's Avatar
 
Join Date: Feb 2006
Location: WNY
Posts: 1,489
Received 107 Likes on 100 Posts
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!
Old 05-25-2021, 04:17 PM
  #3  
Junior Member
Thread Starter
 
rnd_ash's Avatar
 
Join Date: Sep 2019
Location: Reading, UK
Posts: 72
Received 42 Likes on 27 Posts
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.
The following users liked this post:
BF_JC230 (05-26-2021)
Old 06-11-2021, 01:48 PM
  #4  
Member

 
HPDECLK55's Avatar
 
Join Date: Nov 2016
Location: SoCal
Posts: 114
Received 25 Likes on 20 Posts
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.
Old 07-10-2021, 03:42 AM
  #5  
Newbie
 
Pyromaniak's Avatar
 
Join Date: Jul 2020
Posts: 5
Likes: 0
Received 0 Likes on 0 Posts
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
Old 09-20-2021, 06:08 AM
  #6  
Junior Member
Thread Starter
 
rnd_ash's Avatar
 
Join Date: Sep 2019
Location: Reading, UK
Posts: 72
Received 42 Likes on 27 Posts
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!

The following users liked this post:
BF_JC230 (09-20-2021)
Old 10-05-2021, 10:07 AM
  #7  
Junior Member
Thread Starter
 
rnd_ash's Avatar
 
Join Date: Sep 2019
Location: Reading, UK
Posts: 72
Received 42 Likes on 27 Posts
2003 E55 AMG
New video series! Showing off the PCB and initial design of the board!
Old 10-25-2021, 04:45 AM
  #8  
Junior Member
Thread Starter
 
rnd_ash's Avatar
 
Join Date: Sep 2019
Location: Reading, UK
Posts: 72
Received 42 Likes on 27 Posts
2003 E55 AMG
IT SHIFTS GEARS! And I am super impressed how quickly the 722. can change gears!

The following users liked this post:
tjts1 (10-25-2021)
Old 10-25-2021, 12:48 PM
  #9  
MBWorld Fanatic!
 
tjts1's Avatar
 
Join Date: May 2017
Posts: 2,208
Received 410 Likes on 341 Posts
C320
Are you planning to release this as a plug and play product?
Old 10-28-2021, 12:31 AM
  #10  
MBWorld Fanatic!
 
C230 Sport Coup's Avatar
 
Join Date: Jun 2002
Location: So. Oregon Coast
Posts: 6,837
Received 116 Likes on 106 Posts
C230 Sport Coup + 2006 W164 ML350 + 99 Ford Escort (What the heck, it gets 38 mpg!)
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.
Old 12-14-2021, 01:57 AM
  #11  
Junior Member
Thread Starter
 
rnd_ash's Avatar
 
Join Date: Sep 2019
Location: Reading, UK
Posts: 72
Received 42 Likes on 27 Posts
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!
Old 12-14-2021, 01:58 AM
  #12  
Junior Member
Thread Starter
 
rnd_ash's Avatar
 
Join Date: Sep 2019
Location: Reading, UK
Posts: 72
Received 42 Likes on 27 Posts
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
Old 02-05-2022, 08:04 PM
  #13  
Newbie
 
nit3man's Avatar
 
Join Date: Feb 2022
Posts: 1
Likes: 0
Received 0 Likes on 0 Posts
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.
Old 06-16-2023, 05:59 AM
  #14  
Newbie
 
rich.g.williams's Avatar
 
Join Date: Dec 2009
Location: Cardiff, South Wales
Posts: 1
Likes: 0
Received 0 Likes on 0 Posts
C200 Kompressor Coupe
https://forums.mercedesclub.org.uk/i...2/post-2060257


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


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

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



All times are GMT -4. The time now is 10:58 PM.