E90Post
 


Extreme Power House
 
BMW 3-Series (E90 E92) Forum > E90 / E92 / E93 3-series Powertrain and Drivetrain Discussions > N54 Turbo Engine / Drivetrain / Exhaust Modifications - 335i > My Open Source N54 DME Flashing Project



Reply
 
Thread Tools Search this Thread
      04-15-2013, 02:56 AM   #1
Rombinhood@OpenFlash
Private
 
Drives: 335i
Join Date: Apr 2013
Location: Cupertino, CA

Posts: 71
iTrader: (0)

Official Open Source MSD80/81 DME Flashing Project

Hello all. I'm new here so please go easy on me For some time, I've been working on an open source DME flashing system for the MSD80/81. I've even managed to tune my car to some degree (more on that later) using software that I've developed with a small group of colleagues who also just happen to be BMW owners. First, I'd like to say that I'm not tuner by any means. And neither are my colleagues. We are just hardware/software nerds with a penchant for hotrodding. This means that none of us want to get involved in any tuning wars or participate in any dramatic debates. We are here only to learn and to spread what little knowledge we have.

By tuning "To some degree" I mean that while I can read, edit and write to the DME, I do not completely understand the interdependencies of some of the tables. I'll be honest, I have [cough] hacked [cough] a few flash tunes and found what has been changed. For instance I know that what appears to be the fuel maps are located at 703A4 and 706B4 addresses on my particular software version (IJE0S) And what appears to be boost/load target maps are at 6318E and 6318E. And so on...

But what I'd really like to learn is what some of these other tables are and how they work. It would be fantastic if we could start an open source tuning community where we can share info. Is there anyone out there that would like to help me define these tables. I'm pretty good at finding tables in raw hex files. But the more eyes we have working on this, the better! If you are interesting in this little project, PM me and we can discuss offline.

Thank you for reading!

Last edited by Rombinhood@OpenFlash; 04-22-2013 at 06:02 PM.
Rombinhood@OpenFlash is offline  
0
Reply With Quote
      04-15-2013, 02:59 AM   #2
shiv@vishnu
Tuner
 
shiv@vishnu's Avatar
 
Drives: X1, 335i
Join Date: Sep 2006
Location: SF Bay, CA

Posts: 17,611
iTrader: (0)

Ah a kindred spirit. Love it. You have PM

Shiv
shiv@vishnu is offline   United_States
0
Reply With Quote
      04-15-2013, 03:06 AM   #3
Rombinhood@OpenFlash
Private
 
Drives: 335i
Join Date: Apr 2013
Location: Cupertino, CA

Posts: 71
iTrader: (0)

Shiv! I was hoping that you would reply. I don't know if you remember me but I met you years ago when I brought my Evo to your shop to dyno tune back in 2005ish. I was the guy who showed up with my own ECU flashing software running off of my Palm Pilot
Rombinhood@OpenFlash is offline  
0
Reply With Quote
      04-15-2013, 03:24 AM   #4
shiv@vishnu
Tuner
 
shiv@vishnu's Avatar
 
Drives: X1, 335i
Join Date: Sep 2006
Location: SF Bay, CA

Posts: 17,611
iTrader: (0)

Quote:
Originally Posted by RombinHood2 View Post
Shiv! I was hoping that you would reply. I don't know if you remember me but I met you years ago when I brought my Evo to your shop to dyno tune back in 2005ish. I was the guy who showed up with my own ECU flashing software running off of my Palm Pilot
Yes I remember that! I was blown away by what you did back then. Especially considering the $8k Techtom flashing system we just bought sucked compared to what you did with your Palm Pilot. That was the first time I ever flash tuned an ecu without a laptop. Looking forward to meeting up again. I'll be happy to help out with your project. I've spent the last year open sourcin' it up with the msd80/81. Wonderful to see you join this community.

To everyone else--- we are in the presence of greatness

Cheers,
shiv
shiv@vishnu is offline   United_States
0
Reply With Quote
      04-15-2013, 03:49 AM   #5
cstavaru
Brigadier General
 
cstavaru's Avatar
 
Drives: 2009 335i M Sport Sedan 6MT
Join Date: Aug 2008
Location: Bucharest, Romania

Posts: 3,235
iTrader: (0)

Welcome to the forums ! What you say is great news, especially given your background which shows you are very serious

I'm also a software developer at my core and I have been working at some Android and WinRT virtual gauge stuff in the hope that one day we could tune our cars with our mobile phones rather than a dedicated device, eliminating the need to carry a laptop to see logs, etc. So many opportunities.

Keep up the great work and maybe one day we will be benefiting from each other's work

By the way, I am interested in logging N54 engine parameters via OBD2/CANbus using an Android smartphone (Android now has USB host functionality). Did you do something in this area ? I think it should be even easier than reading and writing the DME.
cstavaru is offline  
0
Reply With Quote
      04-15-2013, 03:55 AM   #6
Ænema
Captain
 
Drives: BMW
Join Date: Aug 2012
Location: Arizona Bay

Posts: 961
iTrader: (0)

This is some interesting and (potentially)groundbreaking stuff. I wish you the best of luck!!!
__________________
"I'm not surprised you get along well with all the other neighbours. If you put fifty children with Down's syndrome in a room there is going to be a lot of hugging." David Thorne
Ænema is offline  
0
Reply With Quote
      04-15-2013, 05:40 AM   #7
jazze90
Captain
 
jazze90's Avatar
 
Drives: '07 335i, '09 M3
Join Date: Mar 2012
Location: Thornhill

Posts: 604
iTrader: (0)

Oh wow cool! You should get in touch with ProTuning Freaks. They are the kings of N54 custom flash tuning currently using Cobb's software.
jazze90 is offline   No_Country
0
Reply With Quote
      04-15-2013, 06:18 AM   #8
cstavaru
Brigadier General
 
cstavaru's Avatar
 
Drives: 2009 335i M Sport Sedan 6MT
Join Date: Aug 2008
Location: Bucharest, Romania

Posts: 3,235
iTrader: (0)

Quote:
Originally Posted by jazze90 View Post
You should get in touch with ProTuning Freaks. They are the kings of N54 custom flash tuning currently using Cobb's software.
...and they don't have any reason to give away precious information to open source projects which could at some point ruin their business
cstavaru is offline  
0
Reply With Quote
      04-15-2013, 06:29 AM   #9
jazze90
Captain
 
jazze90's Avatar
 
Drives: '07 335i, '09 M3
Join Date: Mar 2012
Location: Thornhill

Posts: 604
iTrader: (0)

The way I look at it its just another tool in the shed to get the job done. ATR is free too. Anyone can get or buy anything but not everyone has the skill to master it.
jazze90 is offline   No_Country
0
Reply With Quote
      04-15-2013, 06:49 AM   #10
themyst
Major General
 
themyst's Avatar
 
Drives: E90 335i LCI
Join Date: Feb 2009
Location: NYC

Posts: 6,599
iTrader: (8)

Send a message via AIM to themyst
Quote:
Originally Posted by jazze90 View Post
The way I look at it its just another tool in the shed to get the job done. ATR is free too. Anyone can get or buy anything but not everyone has the skill to master it.
ATR requires a Cobb AP which in turn requires an up-front investment.

This is akin to OpenECU on other platforms. I never thought I'd see this day come. Can't wait!
__________________
E90 LCI N54 6AT
themyst is offline   South Korea
0
Reply With Quote
      04-15-2013, 07:07 AM   #11
cn555ic
BimmerPost Supporting Vendor

 
cn555ic's Avatar
 
Drives: 917-939-4980
Join Date: Jun 2007
Location: New York

Posts: 18,257
iTrader: (5)

Send a message via Yahoo to cn555ic
Subscribed to this thread
cn555ic is offline   United_States
0
Reply With Quote
      04-15-2013, 07:17 AM   #12
2Times
I'd hit it
 
2Times's Avatar
 
Drives: black on black e92 335xi
Join Date: Dec 2009
Location: Boostin, MA

Posts: 589
iTrader: (3)

Garage List
2008 335xi  [5.00]
This will be a good read... in for later
2Times is offline   United_States
0
Reply With Quote
      04-15-2013, 08:30 AM   #13
jpsimon
Team Zissou
 
jpsimon's Avatar
 
Drives: 2015 STi
Join Date: Dec 2006
Location: CT

Posts: 9,000
iTrader: (4)

awesome! can't wait to read more
__________________
2015 STi / 335xi (solid)
www.datazap.me - fast, free, interactive data log viewing


Last edited by jpsimon; 04-15-2013 at 08:46 AM.
jpsimon is offline   United_States
0
Reply With Quote
      04-15-2013, 08:35 AM   #14
CannonFodder
Private
 
Drives: 07 335i
Join Date: May 2012
Location: Maryland

Posts: 58
iTrader: (0)

This is huge. Moving the tuning aspect of our engines to be completely open source would be groundbreaking. I would love to get more information about this.
CannonFodder is offline  
0
Reply With Quote
      04-15-2013, 10:04 AM   #15
foghat
Captain
 
Drives: 2008 135i
Join Date: Jun 2009
Location: Calgary

Posts: 913
iTrader: (1)

in.
__________________
PTF tuned by Dzenno (94 oct) | Burger DCI | VRSF FMIC 7" | VRSF DP | Berk Street catback | Dynojet: 406/463 (std. correction) | Dyno Dynamics: 354/432 (ATMC1 correction)
foghat is offline   Canada
0
Reply With Quote
      04-15-2013, 10:06 AM   #16
cupertinosteve
Second Lieutenant
 
Drives: BMW 335i
Join Date: Nov 2011
Location: Cupertino, Duh?

Posts: 213
iTrader: (0)

Subscribed!

Welcome to our little world ... Love your name ROM -- bin -- Hood (from the rich to the poor). Mmmmmm!!!

I'm more of a hardware guy and have some contract mfg contacts in APAC.

Love to help out if you need it!!!
__________________
Vishnu/FFTEC Single Turbo (58mm) 6AT ... 60-130 in 6.881 seconds
Vishnu Procede Rev.3, Vishnu PWM Meth Kit, AE Exhaust, Helix IC, Forge DVs, Wavetrac LSD
#### IT'S FOR SALE ###
cupertinosteve is offline   United_States
0
Reply With Quote
      04-15-2013, 10:40 AM   #17
Rombinhood@OpenFlash
Private
 
Drives: 335i
Join Date: Apr 2013
Location: Cupertino, CA

Posts: 71
iTrader: (0)

Quote:
Originally Posted by cstavaru View Post
Welcome to the forums ! What you say is great news, especially given your background which shows you are very serious

I'm also a software developer at my core and I have been working at some Android and WinRT virtual gauge stuff in the hope that one day we could tune our cars with our mobile phones rather than a dedicated device, eliminating the need to carry a laptop to see logs, etc. So many opportunities.

Keep up the great work and maybe one day we will be benefiting from each other's work

By the way, I am interested in logging N54 engine parameters via OBD2/CANbus using an Android smartphone (Android now has USB host functionality). Did you do something in this area ? I think it should be even easier than reading and writing the DME.
Thanks for the kind reply! I'm not exceptionally familiar with the Android platform to tell the truth. But let's just say I work for their competition here in Cupertino But whipping up a datalogging/display device that feeds CAN info off of the OBD2 port is relatively simple compared to writing/reading the DME ROM since it doesn't require any encryption keys or checksum calculations. It can be done at the basic diagnostic level. My colleague has already written a program that does so via iPhone. Porting over my little DME read/writing program does seem to be the next natural step.
Rombinhood@OpenFlash is offline  
0
Reply With Quote
      04-15-2013, 10:44 AM   #18
Rombinhood@OpenFlash
Private
 
Drives: 335i
Join Date: Apr 2013
Location: Cupertino, CA

Posts: 71
iTrader: (0)

Quote:
Originally Posted by cupertinosteve View Post
Subscribed!

Welcome to our little world ... Love your name ROM -- bin -- Hood (from the rich to the poor). Mmmmmm!!!

I'm more of a hardware guy and have some contract mfg contacts in APAC.

Love to help out if you need it!!!
Thanks for the offer! Heheh, I thought that name was appropriate given the nature of what I'm doing with regards to this project. I've always felt that owners should have the ability to modify their ROM file as they see fit, in an open source environment. The information is certainly there. It's just a matter of finding to those people who are willing to share it. And judging from the responses, I think we are off to a good start.

Thanks again to everyone who PMed me
Rombinhood@OpenFlash is offline  
0
Reply With Quote
      04-15-2013, 10:58 AM   #19
Joshboody
Lieutenant Colonel
 
Drives: pickemuptruck
Join Date: Jul 2009
Location: Phoenix, AZ

Posts: 1,708
iTrader: (7)

Very interested... wish I was a computer guy and understood this stuff, but I know nothing.

Is open sourcing primarily just altering table values? Eventually, could we have access to the calculations/relationships between them? Maybe change (or eliminate) table relationships. Just curious.

What's the timeframe involved with cracking the DME... do you have to translate from German, and/or are you actually tracing to the electrical input/output?
Joshboody is offline  
0
Reply With Quote
      04-15-2013, 11:02 AM   #20
Rombinhood@OpenFlash
Private
 
Drives: 335i
Join Date: Apr 2013
Location: Cupertino, CA

Posts: 71
iTrader: (0)

Quote:
Originally Posted by jazze90 View Post
Oh wow cool! You should get in touch with ProTuning Freaks. They are the kings of N54 custom flash tuning currently using Cobb's software.
I'm a little hesitant to ask just anyone to help me. Especially those who are already invested in a closed platform (Cobb Tuning). I don't want to ask them to give away information that they rely on for revenue stream. Nor do I think Cobb Tuning would appreciate it if they helped me with my open source project since it is in direct odds with their best interest. While I think I'm being realistic, I hope I'm being pessimistic as I would be pleasantly surprised if they contacted me and were willing to help. It would be very useful to spend a few hours with the Cobb pro tuning suite for no other reason than learning the names of the tables that I have access to via the open source software. It does make sense to use the same nomenclature/labels/units as existing mapping software just to make it easy on those who would want to eventually transition from a closed tuning platform over to open source.
Rombinhood@OpenFlash is offline  
0
Reply With Quote
      04-15-2013, 11:06 AM   #21
marv85
Colonel
 
marv85's Avatar
 
Drives: '07 335i MT
Join Date: Jun 2010
Location: Portland

Posts: 2,559
iTrader: (5)

Quote:
Originally Posted by Joshboody View Post
Very interested... wish I was a computer guy and understood this stuff, but I know nothing.

Is open sourcing primarily just altering table values? Eventually, could we have access to the calculations/relationships between them? Maybe change (or eliminate) table relationships. Just curious.

What's the timeframe involved with cracking the DME... do you have to translate from German, and/or are you actually tracing to the electrical input/output?
Open sourcing refers to transparency when it comes to the software being used to write/read from the DME.

For instance, if Terry and Shiv decide to open source their piggys, when we get the source code and we can change teh firmware to our liking. same with COBB. (think Linux vs windows)
__________________
'10 E92 335i , COBB
marv85 is offline   United_States
0
Reply With Quote
      04-15-2013, 11:29 AM   #22
Rombinhood@OpenFlash
Private
 
Drives: 335i
Join Date: Apr 2013
Location: Cupertino, CA

Posts: 71
iTrader: (0)

Quote:
Originally Posted by Joshboody View Post
Very interested... wish I was a computer guy and understood this stuff, but I know nothing.

Is open sourcing primarily just altering table values? Eventually, could we have access to the calculations/relationships between them? Maybe change (or eliminate) table relationships. Just curious.

What's the timeframe involved with cracking the DME... do you have to translate from German, and/or are you actually tracing to the electrical input/output?
Hi Josh,
Reading the DME didn't involve much more than gaining read access to the flashable memory/ROM. In the case of most modern DMEs this involves dealing with some moderate level encryption. So working out the encryption keys was necessary. We actually did this through putting some of our in-house resources to work. Within a 50 yard radius of my desk, we probably have access to more raw processing power than most cities in the US. So that helps.

Once we have this ROM (2.1 meg file), we open it up in some sort of map editor. We then set up a definition file, for this particular ROM file that provides a usable framework. By this I mean that it locates the map addresses and converts the raw hex data into useable map/table data. This is the part that I'm not too familiar (yet) with as it involves a fundamental knowledge of MSD80/81 specific tuning. But once these definition files are created (with the help of Shiv and whomever else is willing to help), the rest is just tuning as you would using a closed tuning system. But the advantage of open source is that it is constantly and infinitely updatable/definable as the user would have access to every bit of the flashable DME code. Not just the info that the tuner wants to give you access to. This usually open up a new world for enthusiasts like us and leads to some pretty amazing functionality breakthroughs that wouldn't have been possible or likely otherwise.

Give a man a fish and he can eat for a day. Show him how to fish and he can eat for the rest of his life. Or something like that

[Screenshot of a ROM file show below. Left column is hexadecimal format. Right column in ASCII]
Attached Images
 
Rombinhood@OpenFlash is offline  
0
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:21 PM.




e90post
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
1Addicts.com, BIMMERPOST.com, E90Post.com, F30Post.com, M3Post.com, ZPost.com, 5Post.com, 6Post.com, 7Post.com, XBimmers.com logo and trademark are properties of BIMMERPOST