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

Welcome to the E46Fanatics forums. E46Fanatics is the premiere website for BMW 3 series owners around the world with interactive forums, a geographical enthusiast directory, photo galleries, and technical information for BMW enthusiasts.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

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 Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
Old 03-14-2012, 05:42 PM   #81
sunnyjay
Registered User
 
Join Date: Nov 2011
Location: USA
Posts: 189
My Ride: 01 330i
Quote:
Originally Posted by TerraPhantm View Post
You've succeeded in using winkfp to flash a custom tune? What'd you do, convert the binary to intel hex and tell winkfp to ignore checksums? Or do you know how to calculate the checksums?
Im sure HakenTT used winols to calculate the checksums.
sunnyjay is offline   Reply With Quote
Old 03-14-2012, 06:04 PM   #82
deadwood83
Registered User
 
Join Date: Aug 2007
Location: SLC, UT
Posts: 605
My Ride: has an iron lung
Send a message via MSN to deadwood83
I truly question whether or not he actually did it. Guy makes one post in here about having tuning experience but doesn't give any specifics. Then he claims success again without any specifics other than the brief mention of a software program. This is the same person who made an entire thread based on a short paragraph or two about how his E46 isn't fun to drive... on a fanatics website. Things just don't add up correctly.

If he's going to leave the community and actually made it work then why doesn't he make a cliffnotes about how he overcame the common obstacles?
__________________
AA Stg2+ 325xiA? Are you stupid? Maybe a little.
I can program cars fo' freeee near Salt Lake City. PM for details.
deadwood83 is offline   Reply With Quote
Old 03-14-2012, 11:19 PM   #83
TerraPhantm
Registered User
 
Join Date: Feb 2008
Location: Mountain Top
Posts: 5,903
My Ride: 2005 M3 Coupe
Quote:
Originally Posted by sunnyjay View Post
Im sure HakenTT used winols to calculate the checksums.
Well I'm talking about different checksums. I'm sure winOLS can calculate the ones the DME cares about. I'm referring to the ones winkfp looks at. At the end of all the winkfp data files, there's a checksum that it presumably uses to verify that the tune is from BMW. It's not in the actual binary. Since most tuning shops wouldn't be using winkfp to flash, I don't see why winOLS would have that ability
__________________
TerraPhantm is offline   Reply With Quote
Old 04-16-2012, 02:18 AM   #84
hybridNz
Registered User
 
Join Date: Dec 2004
Location: Ak, NZ
Posts: 468
My Ride: e39 540iASE,e30/s50
Quote:
Originally Posted by TerraPhantm View Post

Code:
:100000006335363636353038343330303636303185
:1000100031313134333030303636303130303030C9
:1000200031313134333030303636303130303030B9
:1000300031313134333030303636303130303030A9
:1000400063613433303036362E444154FFFFFFFFB6
:10005000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB0
:10006000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA0
:10007000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF90
:10008000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF80
:10009000FFFF000000000000000000000000000062
:1000A000000080808080808080FFE001FF7F3E0034
:1000B00011002E0073002E0019003200F401F4012B
:1000C0001B090000800164220C00FD2C28000800A0
:1000D00000FF000048010000CD0CCD0C00180018F6
:1000E0002001CD0006014200CD0C3D0A0020FFFF9B
:1000F000270133F34801370A8901CB010C0267E677
:100100000100010058199A19900139007B009A19D1
:100110009A09000000000080FE7F000014000A0021
:1001200020033804581B0300C40F4E00C8003C00D5
:10013000140014001400140011001100110011002B
:1001400029222822282228227105710571057105AE
:1001500044034403440340036903690369036503DB
:1001600091209020311531158920882025152515DD
:1001700010161016101610162084200420042004D7
:10018000308430043004300421042104210421048B
In each line the colon and the 8 characters after that identify the offset. I'm not sure what the last 2 digits in each line represents, but it's not code. Seems to be some kind of checksum for each line.


Each of those lines and the end byte is an XOR checksum calculation.
__________________
hybridNz is offline   Reply With Quote
Old 04-18-2012, 03:41 PM   #85
Hageee
Registered User
 
Join Date: Feb 2010
Location: Germany
Posts: 180
My Ride: E46 330xiA
Send a message via ICQ to Hageee
Flashed a custom tune with winkfp? really? don't think so ?!

HakenTT - please tell us something... :o
Hageee is offline   Reply With Quote
Old 04-18-2012, 04:27 PM   #86
hassmaschine
Registered User
 
Join Date: Sep 2011
Location: Ferndale, WA
Posts: 198
My Ride: '91 325ix
Don't expect anything out of him. HakenTT is notoriously disliked on pretty much every other BMW forum.

he could prove me wrong, of course - I'd be happy if he did. But don't hold your breath..
hassmaschine is offline   Reply With Quote
Old 08-18-2012, 05:34 AM   #87
daniel_f.
Registered User
 
Join Date: Jul 2011
Location: Germany
Posts: 494
My Ride: 330iCA
come on guys, don´t let this fell asleep

i have a spare dme, programmer, time, money and dumps to test

all i need is some smart guy who´s able to unlimit my 330 from 225 to its original topspeed of 245
daniel_f. is offline   Reply With Quote
Old 08-18-2012, 08:52 AM   #88
smooth1
Registered User
 
Join Date: Nov 2005
Location: Phoenix
Posts: 265
My Ride: BMW FTW
And you didn't ask me? Come on Daniel!
smooth1 is offline   Reply With Quote
Old 09-08-2012, 04:07 PM   #89
FritzP
Registered User
 
Join Date: Sep 2012
Location: Norway
Posts: 6
My Ride: BMW E91
Flash tuned file with winkfp

Hello. I am new to this forum and this will be my first post.
Regarding the topic, flashing modified sp-daten file to the dme with winkfp.
I doubt this is possible with success. I have looked alot to this possibility in the last months. I have even been in contact with EVC in Germany regarding this since I already have a fully licensed WinOLS. It is correct that WinOLS recognise these files, but the problem are the checksum calculation. I have several checksums plug-ins in my WinOLS, and when I open a file which I have the correct chk.sum plug-in to, it recognise the file, but says that the chk.sum are incorrect and want to correct it even though it obviously are correct. The winkfp program can be configurated to not test the checksum, and I assume it will actually make the programming, but as I say, I doubt it will be success in make the engine start. I know that WinOLS have plug-ins for correcting checksum in update-files from manufacturer to Jaguar/Ford/Volvo, and such plug-in could be nice to have also for BMW. See link from EVC. http://www.evc.de/en/product/ols/import.asp

Last edited by FritzP; 09-08-2012 at 04:09 PM.
FritzP is offline   Reply With Quote
Old 09-09-2012, 08:49 PM   #90
new//M3fan
Registered User
 
Join Date: Aug 2010
Location: Reston, VA
Posts: 2,660
My Ride: 77' 924 87' E30
Quote:
Originally Posted by FritzP View Post
Hello. I am new to this forum and this will be my first post.
Regarding the topic, flashing modified sp-daten file to the dme with winkfp.
I doubt this is possible with success. I have looked alot to this possibility in the last months. I have even been in contact with EVC in Germany regarding this since I already have a fully licensed WinOLS. It is correct that WinOLS recognise these files, but the problem are the checksum calculation. I have several checksums plug-ins in my WinOLS, and when I open a file which I have the correct chk.sum plug-in to, it recognise the file, but says that the chk.sum are incorrect and want to correct it even though it obviously are correct. The winkfp program can be configurated to not test the checksum, and I assume it will actually make the programming, but as I say, I doubt it will be success in make the engine start. I know that WinOLS have plug-ins for correcting checksum in update-files from manufacturer to Jaguar/Ford/Volvo, and such plug-in could be nice to have also for BMW. See link from EVC. http://www.evc.de/en/product/ols/import.asp
That's good to know!

Which checksum are you saying there will be issues with? The WINKFP files last two values are a checksum WINKFP uses within itself. Did you remove this and take those into consideration? Basically run the checksum file against the finished .bin lets say for a 5k rpm rev limit to test. Then convert to Hex16 and apply a XOR calculation at the end?

Quote:
Originally Posted by hybridNz View Post
Each of those lines and the end byte is an XOR checksum calculation.
Going back to your WINOLS exporter/importer link. If I am reading it right it is an import that can take .0da parse them in correctly and export them correctly for plug and play flashing through WINKFP (BMW lingo example)?

It would be neat to make it work. For now a GALLETO tool WINOLS, and checksum file is all that's needed. Along with knowing the address locations. I think at this point it would be best to start identifying the correct address space for things like euro 2 emmissions etc etc so it can be ported across the e46 range.
__________________
<-- Mango *F-BOMBS IN SIGS*
Bilstein HD's | E30 M3 FCAB's | H&R OE Sports | F+R strut bars | Self tuned 027 93 octane chip | KoseiK1's on R888's | + crazy OCD maintenance

Last edited by new//M3fan; 09-09-2012 at 08:57 PM.
new//M3fan is offline   Reply With Quote
Old 09-10-2012, 01:12 AM   #91
TerraPhantm
Registered User
 
Join Date: Feb 2008
Location: Mountain Top
Posts: 5,903
My Ride: 2005 M3 Coupe
Quote:
Originally Posted by hybridNz View Post
Each of those lines and the end byte is an XOR checksum calculation.
Yeah I realized that much later on. The whole thing is actually just in the "Intel Hex" format... though there are a couple non-standard headers found towards the end of the file IIRC. Still, after realizing that, it was trivial to just convert these into straight binaries.


Quote:
Originally Posted by FritzP View Post
Hello. I am new to this forum and this will be my first post.
Regarding the topic, flashing modified sp-daten file to the dme with winkfp.
I doubt this is possible with success. I have looked alot to this possibility in the last months. I have even been in contact with EVC in Germany regarding this since I already have a fully licensed WinOLS. It is correct that WinOLS recognise these files, but the problem are the checksum calculation. I have several checksums plug-ins in my WinOLS, and when I open a file which I have the correct chk.sum plug-in to, it recognise the file, but says that the chk.sum are incorrect and want to correct it even though it obviously are correct. The winkfp program can be configurated to not test the checksum, and I assume it will actually make the programming, but as I say, I doubt it will be success in make the engine start. I know that WinOLS have plug-ins for correcting checksum in update-files from manufacturer to Jaguar/Ford/Volvo, and such plug-in could be nice to have also for BMW. See link from EVC. http://www.evc.de/en/product/ols/import.asp
Have you tried flashing a tune with WinKFP, dumping the binary from the DME, and then comparing? If WinKFP "changes" the checksum during the flashing process, we should see it then. Otherwise I would hazard that WinOLS isn't parsing the ihex format properly (perhaps the non standard bit at the end confuses it). Converting to binary beforehand and then loading it may be sufficient. I cannot really test any further since I don't have a licensed copy of WinOLS
__________________

Last edited by TerraPhantm; 09-10-2012 at 01:19 AM.
TerraPhantm is offline   Reply With Quote
Old 09-10-2012, 01:15 AM   #92
FritzP
Registered User
 
Join Date: Sep 2012
Location: Norway
Posts: 6
My Ride: BMW E91
The link I posted to evc is for a plug-in for WinOLS to be able to open update-files for Ford/Jaguar and Volvo and can not be used for the 0da files for BMW.
But, however the 0da files for updating/programming with winkfp opens fine in WinOLS and you will find the same structure as if you make a readout with a common tuningtool like Galletto. I have not been working alot with petrol ecu's for BMW, but I have some experience with tuning BMW diesels. I have used the 0da files in winOLS alot for comparing different engine powerlevels, and I have also maked good tuningfiles for ex. Bosch EDC16. But to state it right, for the actual tuning I make a readout and flashing with my BDM100. I always work with the original file for the ecu to avoid problems with EWS for example.
The XOR checksum calc. mentioned here, I am not familiar with that. I have to gain some more info about this. I have checksum plug-in in my WinOLS, and the chk.sum are corrected aotomaticly every time I make an altering of a map.

Last edited by FritzP; 09-10-2012 at 01:19 AM.
FritzP is offline   Reply With Quote
Old 09-10-2012, 01:45 AM   #93
FritzP
Registered User
 
Join Date: Sep 2012
Location: Norway
Posts: 6
My Ride: BMW E91
Quote:
Originally Posted by TerraPhantm View Post
Yeah I realized that much later on. The whole thing is actually just in the "Intel Hex" format... though there are a couple non-standard headers found towards the end of the file IIRC. Still, after realizing that, it was trivial to just convert these into straight binaries.




Have you tried flashing a tune with WinKFP, dumping the binary from the DME, and then comparing? If WinKFP "changes" the checksum during the flashing process, we should see it then. Otherwise I would hazard that WinOLS isn't parsing the ihex format properly (perhaps the non standard bit at the end confuses it). Converting to binary beforehand and then loading it may be sufficient. I cannot really test any further since I don't have a licensed copy of WinOLS
I have not tried to alter 0da files for then flashing it with winkfp, but it could be interesting to try.
I have tried to export a 0da file without altering, but if I then make a comparing with a hex-viewer the file are not identical as the original file. It looks like winols are doing something when it imports the file.
If I then import the already exported file from winols, it looks the same in winols like the original imported file, based on that I think winols are changing something when it imports.
You mentioned converting 0da file from hex to bin, that could maybe be a solution before import to winols. What tool/program are you using for such convertion, it also have to be converted back to hex after export from winols.
It could be interesting to try this, I have used winkfp for flashing update files in the past, so I am familiar with the process.
FritzP is offline   Reply With Quote
Old 09-10-2012, 01:57 AM   #94
TerraPhantm
Registered User
 
Join Date: Feb 2008
Location: Mountain Top
Posts: 5,903
My Ride: 2005 M3 Coupe
Quote:
Originally Posted by FritzP View Post
I have not tried to alter 0da files for then flashing it with winkfp, but it could be interesting to try.
I have tried to export a 0da file without altering, but if I then make a comparing with a hex-viewer the file are not identical as the original file. It looks like winols are doing something when it imports the file.
If I then import the already exported file from winols, it looks the same in winols like the original imported file, based on that I think winols are changing something when it imports.
You mentioned converting 0da file from hex to bin, that could maybe be a solution before import to winols. What tool/program are you using for such convertion, it also have to be converted back to hex after export from winols.
It could be interesting to try this, I have used winkfp for flashing update files in the past, so I am familiar with the process.
I used something called hex2bin - seems to work fine on most MS43 files. Just have to pad it to the right size (missing data seems to just be filler). Haven't tried it with any of the DDEs.

With the MS45, it seems to spit out mostly junk. And the MSS54 seems to confuse it a little bit since the MSS54 has two processors

Not terribly difficult to write an application that can decode the intel hex to binary. These are the rules: http://en.wikipedia.org/wiki/Intel_HEX - But BMW doesn't seem to follow the rules perfectly. I've come across a number of instances of a record type "10" which isn't defined.
__________________

Last edited by TerraPhantm; 09-10-2012 at 02:06 AM.
TerraPhantm is offline   Reply With Quote
Old 09-10-2012, 02:00 AM   #95
FritzP
Registered User
 
Join Date: Sep 2012
Location: Norway
Posts: 6
My Ride: BMW E91
I am now looking at a 0da file opened in winols, and you are right, the two bits at the end of each line are missing, and ofcourse, when exporting, these 2 bits will not be there. I am away at work, and I dont bring my tuningcomputer where I have the licensed winols so I just use the demoversion now.
FritzP is offline   Reply With Quote
Old 09-10-2012, 02:05 AM   #96
FritzP
Registered User
 
Join Date: Sep 2012
Location: Norway
Posts: 6
My Ride: BMW E91
Those 2 bits of each line in the 0da file, so this is a checksum for that particular line? What about the chksum in the end of the file, is that a chksum for the entire file? If so, how can these chksums be calculated after an altering in the 0da file.

Last edited by FritzP; 09-10-2012 at 02:07 AM.
FritzP is offline   Reply With Quote
Old 09-10-2012, 02:08 AM   #97
TerraPhantm
Registered User
 
Join Date: Feb 2008
Location: Mountain Top
Posts: 5,903
My Ride: 2005 M3 Coupe
Quote:
Originally Posted by FritzP View Post
Those 2 bits of each line in the 0da file, so this is a checksum for that particular line? What about the chksum in the end of the file, is that a chksum for the entire file?
The 2 bits at the end are checksums for each line, yes

I am not sure about the checksum at the end. I assume it's for the whole file, but i haven't investigated it. Or it's perhaps more likely to be for the file without the comments
__________________

Last edited by TerraPhantm; 09-10-2012 at 02:13 AM.
TerraPhantm is offline   Reply With Quote
Old 09-10-2012, 02:26 AM   #98
FritzP
Registered User
 
Join Date: Sep 2012
Location: Norway
Posts: 6
My Ride: BMW E91
OK, I found a calculator where I tried to make a calculation for each line, but it doesn't seems to get the right chksum for this line..
Calculator: http://www.hhhh.org/wiml/proj/nmeaxor.html
FritzP is offline   Reply With Quote
Old 09-30-2012, 05:10 PM   #99
HakenTT
OEM ///Member
 
Join Date: Aug 2009
Location: gross deutsches reich USA
Posts: 498
My Ride: 323i with S54
Quote:
Originally Posted by new//M3fan View Post
You are correct. Euro 3 keeps cat monitoring on and sap off. I passed emissions with that tune.

Euro2 deletes all emissions and you can set the idle mixture manually through dis.
To me it looks like MS43 partial read 64kb, has the "boot ID string" at the start of the file, like 0000 hex to 000B hex. I suspect that this is used for booting versions of components like, CAN detection, climate control version, exhaust version, fuel system version, idle control version, knock adaptation version, emission version, ews version...

And it looks like one hex byte determines if that option is used or not, for example 30 to 36 hex is components is booted, and 60 to 66 means components is not booted.

I just speculate on this, because I compared many different versions of MS43 software.
HakenTT is offline   Reply With Quote
Old 10-28-2012, 11:40 AM   #100
GrafSpee
Registered User
 
Join Date: Oct 2012
Location: Deutschland
Posts: 19
My Ride: e46 330xi
Hello,

I have a e46 330xi.

I want to write out the version 430055.

What "ZBNumber" I need?

430037 = 7510535
430066 = 7545566
430055 =??

I need this version because of the 430055 can assign the maps.

Thanks in advance

nice greeting

Last edited by GrafSpee; 10-30-2012 at 04:10 AM.
GrafSpee 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





All times are GMT -5. The time now is 02:12 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
(c) 1999 - 2011 performanceIX Inc - privacy policy - terms of use