[Release] MS45 Flasher (name subject to change) - E46Fanatics E46 BMW Social Directory E46 FAQ 3-Series Discussion Forums BMW Photo Gallery BMW 3-Series Technical Information E46 Fanatics - The Ultimate BMW Resource BMW Vendors General E46 Forum The Tire Rack's Tire Wheel Forum Forced Induction Forum The Off-Topic The E46 BMW Showroom For Sale, For Trade or Wanting to Buy

Go Back   E46Fanatics > Tuning & Tech > Driveline, Engine & DME Tuning

Driveline, Engine & DME Tuning
Talk about driveline improvements, NA tuning and DME tuning your E46 BMW here. This includes diffs, intakes, exhausts, chips, software and OBD tuning.

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 02-04-2019, 07:24 PM   #1
TerraPhantm
Registered User
 
Join Date: Feb 2008
Location: Philadelphia
Posts: 7,477
My Ride: M3
[Release] MS45 Flasher (name subject to change)

Releasing my MS45 flashing app.

Uses Ediabaslib for communications. If you have a functional INPA install, you shouldn't have to mess with anything else. If you don't have ediabas installed, you'll need to grab a copy of ms450ds0.prg and make a couple edits to the config file.

Allows you to read and write full and partial binaries on the MS45.0 and MS45.1 DMEs. A tune read/write should take about a minute (never really timed it, but it's quick). Full read and write are about 15 minutes give or take. Oddly enough I found full writes are faster on the car rather than on the bench.

Automatically corrects all checksums and generates a valid RSA signature. This means the DME will attempt to execute whatever you send to it - so be careful making program writes. If you send it bad code, the DME will not be recoverable without a BDM tool. A full backup is strongly recommended before you do anything.

I've tested the application a fair bit, and it's fairly reliable. Very rarely the DME will kinda get stuck and refuse to grant security access - power cycling fixes that. That said, with more people using the app, I'm sure you guys will find bugs that I never would have imagined. The nice thing is this app is open source, so you can fix and improve it yourselves even if I'm too busy.

Usual disclaimers apply. The app can render your DME unbootable, flashing bad data might cause your car to behave unpredictably, etc. I'm not responsible for anything that happens either directly or indirectly as a result of this application.

Without further ado:
Github repo
Compiled binary

Also I'd like to note that I never would have learned so much about the MS45 without hassmaschine's help. The both of us (but mostly him) have been working on a tuning suite over at bimmerlabs. It's still in its infancy, but do check it out now and then. We think it'll turn into a pretty nice platform for tuning these BMW DMEs.
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Last edited by TerraPhantm; 02-04-2019 at 07:26 PM.
TerraPhantm is offline   Reply With Quote
Old 02-04-2019, 07:50 PM   #2
DOT.
Registered User
 
Join Date: Mar 2009
Location: Chatsworth, CA
Posts: 214
My Ride: '04 ZHP Sedan
Quote:
Originally Posted by TerraPhantm View Post
We think it'll turn into a pretty nice platform for tuning these BMW DMEs.


WOW! Thanks Terra & hassmaschine! Can't wait for tunes to open up for MS45.x's!
__________________


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


Last edited by DOT.; 02-04-2019 at 07:55 PM.
DOT. is offline   Reply With Quote
Old 02-04-2019, 08:11 PM   #3
armenh7
Registered User
 
Join Date: Dec 2016
Location: California
Posts: 8,552
My Ride: 2002 325i
Thanks everybody! If anyone needs a functional inpa install just grab it from my signature. Although I don't have a MS45.1 in my car, I do have a MS45.1 DME and a BDM flasher
__________________
Not so complicated install of BMW Tools (Windows XP, 7, and 10)

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


PA Soft
Driver:
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Program:
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
armenh7 is offline   Reply With Quote
Sponsored Links
Advertisement
 
Old 02-05-2019, 11:19 AM   #4
DOT.
Registered User
 
Join Date: Mar 2009
Location: Chatsworth, CA
Posts: 214
My Ride: '04 ZHP Sedan
I had a dedicated win xp laptop and noticed it needed .Net Framework 4.5.2.... I guess time to move it over to win 7.
__________________


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

DOT. is offline   Reply With Quote
Old 02-05-2019, 01:11 PM   #5
hassmaschine
Registered User
 
Join Date: Sep 2011
Location: Ferndale, WA
Posts: 281
My Ride: '91 325ix
Future versions of this app will likely require internet connectivity (at least for some parts of it), so you probably don't want to stick with Windows XP anyway.
hassmaschine is offline   Reply With Quote
Old 02-05-2019, 02:39 PM   #6
TerraPhantm
Registered User
 
Join Date: Feb 2008
Location: Philadelphia
Posts: 7,477
My Ride: M3
Quote:
Originally Posted by DOT. View Post
I had a dedicated win xp laptop and noticed it needed .Net Framework 4.5.2.... I guess time to move it over to win 7.
I could see if it’s possible to reduce the requirement without breaking things. I’ve just been using Windows 10 and VS2017.

Edit: It's a no go. Probably would be possible to remove the newer dependencies, but it won't compile as is.

Last edited by TerraPhantm; 02-05-2019 at 06:37 PM.
TerraPhantm is offline   Reply With Quote
Old 02-06-2019, 09:05 AM   #7
ZiMMie
Registered User
 
Join Date: Apr 2005
Location: Toronto
Posts: 200
My Ride: E36M3csl;E46 325i
Great Job boys...

Could the same principal be used on the MSVxx ecus? Since they have the same architecture as the 45.

Sent from my Redmi Note 5 using Tapatalk
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
#E36S54 #CSLWannabe
ZiMMie is offline   Reply With Quote
Old 02-06-2019, 09:08 AM   #8
hassmaschine
Registered User
 
Join Date: Sep 2011
Location: Ferndale, WA
Posts: 281
My Ride: '91 325ix
We already have it, it's in beta form. The goal is to be able to flash nearly any OBD2 E-series BMWs.
hassmaschine is offline   Reply With Quote
Old 02-06-2019, 01:41 PM   #9
TerraPhantm
Registered User
 
Join Date: Feb 2008
Location: Philadelphia
Posts: 7,477
My Ride: M3
Quote:
Originally Posted by ZiMMie View Post
Great Job boys...

Could the same principal be used on the MSVxx ecus? Since they have the same architecture as the 45.

Sent from my Redmi Note 5 using Tapatalk
Yes. Main difference is you need to find a flaw in their rsa mechanism since those DMEs use 1024-bit keys, which can not be factored with today’s computers.
TerraPhantm is offline   Reply With Quote
Old 02-06-2019, 02:37 PM   #10
ZiMMie
Registered User
 
Join Date: Apr 2005
Location: Toronto
Posts: 200
My Ride: E36M3csl;E46 325i
Quote:
Originally Posted by TerraPhantm View Post
Yes. Main difference is you need to find a flaw in their rsa mechanism since those DMEs use 1024-bit keys, which can not be factored with today’s computers.
Hence the need for internet connection for future updates? Is the RSA calculation for the MS45 done locally?
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
#E36S54 #CSLWannabe

Last edited by ZiMMie; 02-06-2019 at 02:39 PM.
ZiMMie is offline   Reply With Quote
Old 02-06-2019, 03:58 PM   #11
hassmaschine
Registered User
 
Join Date: Sep 2011
Location: Ferndale, WA
Posts: 281
My Ride: '91 325ix
Among other reasons, yes - and currently the RSA is signed on the fly for MS45, but in the future it would probably be done when you create the modified file.

It would be simple to sign newer DMEs too but it's not possible without the keys. Fortunately we have bypasses already for most of them.
hassmaschine is offline   Reply With Quote
Old 02-09-2019, 10:16 PM   #12
Blu302
Registered User
 
Join Date: Jan 2015
Location: Melbourne, Australia
Posts: 494
My Ride: '98 E46 323i
Year: 98
Model: E46
Transmission: Manual
Tested good on X3 MS45.0 today. Partial and full read.

Fixed the partial erroneous reads of 1-20kb by changing the latency on my BimmerGeeks cable to 1.
My baud rate is set to 9600. Will it be any faster if I bump it up?

I have edited maps with bimmereditor and so far so good.
__________________
_______________________________________________


Power is knowledge, So share the knowledge!!

Last edited by Blu302; 02-09-2019 at 11:40 PM. Reason: update
Blu302 is offline   Reply With Quote
Old 02-10-2019, 12:41 AM   #13
TerraPhantm
Registered User
 
Join Date: Feb 2008
Location: Philadelphia
Posts: 7,477
My Ride: M3
Ah yeah, I meant to note that a latency of 1ms is probably necessary.

The app should be setting it to 115200 on the fly regardless of what it's set to in device manager. What kind of times were you seeing for reads/writes?
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
TerraPhantm is offline   Reply With Quote
Old 02-10-2019, 12:59 AM   #14
Blu302
Registered User
 
Join Date: Jan 2015
Location: Melbourne, Australia
Posts: 494
My Ride: '98 E46 323i
Year: 98
Model: E46
Transmission: Manual
I am seeing times faster than WinKFP (under 15mins).

If I only want to update the 1024kb full bin, do I need to flash both the program and tune?

I updated both after loading the stock MPC bin and my modified 1024kb bin and everything worked(car started fine), just hoping that I only need to do one to get the time down.
__________________
_______________________________________________


Power is knowledge, So share the knowledge!!

Last edited by Blu302; 02-10-2019 at 01:13 AM.
Blu302 is offline   Reply With Quote
Old 02-10-2019, 01:07 AM   #15
TerraPhantm
Registered User
 
Join Date: Feb 2008
Location: Philadelphia
Posts: 7,477
My Ride: M3
Quote:
Originally Posted by Blu302 View Post
I am seeing times faster than WinKFP.

If I only want to update the 1024kb full bin, do I need to flash both the program and tune?

I updated both after loading the stock MPC bin and my modified 1024kb bin and everything worked(car started fine), just hoping that I only need to do one to get the time down.
If you want to flash the program, you have to do both the MPC and flash at the same time. The DME erases both whenever you erase any part of the program.

The tune can be flashed by itself. And you can flash a program without reflashing a tune as long as you don't move to a new program version.
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
TerraPhantm is offline   Reply With Quote
Old 02-10-2019, 01:17 AM   #16
Blu302
Registered User
 
Join Date: Jan 2015
Location: Melbourne, Australia
Posts: 494
My Ride: '98 E46 323i
Year: 98
Model: E46
Transmission: Manual
Just curious,

What is in the MPC file?

I am stuck working with the full 1024kb file because BimmerEditor only accepts them.
Will I have to flash program and tune to update or will it pull only the tune from the 1024kb file if I only flash the tune?
__________________
_______________________________________________


Power is knowledge, So share the knowledge!!
Blu302 is offline   Reply With Quote
Old 02-10-2019, 08:28 AM   #17
TerraPhantm
Registered User
 
Join Date: Feb 2008
Location: Philadelphia
Posts: 7,477
My Ride: M3
MPC file is the flash that's internal to the CPU. It's pure program code. The 1024-byte file contains boot code, tune code, and more program code. The flash program button will flash the program area, the flash tune button will flash the tune area. Boot area cannot be flashed over OBDII.

You'll need to load both files for the application to allow you to do anything, but you can just hit the flash tune button, and it'll only flash the tune area.
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Last edited by TerraPhantm; 02-10-2019 at 01:12 PM.
TerraPhantm is offline   Reply With Quote
Old 02-14-2019, 12:54 PM   #18
busterhax
Registered User
 
Join Date: Sep 2008
Location: Northern Virginia
Posts: 23
My Ride: Supercharged e36
Funny, just came across this as I was building a free 115200 baud full/partial read tool. Good work.
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
busterhax is offline   Reply With Quote
Old 02-16-2019, 04:15 AM   #19
Blu302
Registered User
 
Join Date: Jan 2015
Location: Melbourne, Australia
Posts: 494
My Ride: '98 E46 323i
Year: 98
Model: E46
Transmission: Manual
I have been using it for the last week and it is fast.

Do you guys have a donation page?
__________________
_______________________________________________


Power is knowledge, So share the knowledge!!
Blu302 is offline   Reply With Quote
Old 02-22-2019, 09:10 PM   #20
RobBoost330i
Registered User
 
Join Date: Mar 2016
Location: Northern California
Posts: 58
My Ride: Bmw
Model: 330i T
Transmission: 6 speed M/T
Finally an ms45 flasher!
Its too bad I can use this now since Ive converted from ms45 to ms43 to tune my e46
RobBoost330i is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Censor is OFF


Similar Threads
Thread Thread Starter Forum Replies Last Post
E46 Manual Transmission Fluid Change DIY the521one General E46 Forum 4 02-04-2019 02:23 AM
"Lock & Load!"...BMW vs Porche..GENTLEMEN!Choose your car! eksath General E46 Forum 70 08-30-2004 03:04 PM


All times are GMT -5. The time now is 05:56 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
(c) 1999 - VerticalScope Inc. All rights reserved.