BMW M3 Forum
BMW M3 Forum BMW M3 Gallery BMW M3 Reviews BMW M3 Social Groups BMW M3 Chat M3Forum Sponsors >>
Loading


Mobile M3forum
Go Back   BMW M3 Forum.com (E30 M3 | E36 M3 | E46 M3 | E92 M3 | F80/X) > BMW M3 Discussions > E46 M3 (2001-2006) > Coding and Tuning
Tire Rack Buy Winter Tires Now!
Not a member? Register Now!
Register Gallery All Albums Garage Search Today's Posts Mark Forums Read Calendar FAQ

Coding and Tuning Discuss all avenues of coding and tuning here!


Reply
 
Thread Tools Display Modes
Old Fri, Jan-16-2015, 05:01:31 AM   #1
paffy
Registered User
 
Join Date: Jun 2010
Posts: 1,214
Reputation: 0 paffy is on a distinguished road
Location: Queens

Czech_Republic




Default map switching

I'm finishing a custom MSS54HP software to allow multiple tune switching on the fly. Looks like there's enough space for 6 or 7 tunes.

Tune switching is done through cruise control buttons with indication of current tune through RPM readout. Resume button is configured to always go to a pre-selected tune for as long as the button is pressed, reverting to the previous tune on release.

Cruise control functionality is retained.

__________________
http://www.msstuning.com/ - serving your MSS5x flashing needs
2014 BMWCCA NY autox E class champion
My GTS4 build journal - http://www.m3forum.net/m3forum/showthread.php?t=551613
Jump to top paffy is offline   Reply With Quote
Sponsored Links
Register now and remove these ads
Old Fri, Jan-16-2015, 05:10:25 AM   #2
terraphantm
Moderator
 
Join Date: Dec 2010
Posts: 11,298
In the garage:
Reputation: 11 terraphantm is on a distinguished road
Location: Philadelphia

United States




Default Re: map switching

Awesome. I wish I had your software skills lol. Maybe instead of the RPM readout, the oil temp/shift light LEDs would make more sense.
__________________
Jump to top terraphantm is offline   Reply With Quote
Old Fri, Jan-16-2015, 06:07:36 AM   #3
Kansas Corey
Registered User
 
Join Date: Aug 2009
Posts: 334
In the garage:
Reputation: 0 Kansas Corey is on a distinguished road
Location: Bay Area

United States




Default Re: map switching

Other idea would be the upgraded wiper switch stalk to the one that an the extra button on the end. Of course that's only if the cruise control button causes any issues.

Awesome stuff though!! Do you actually have 6 or 7 different tunes?
Jump to top Kansas Corey is offline   Reply With Quote
Old Fri, Jan-16-2015, 06:28:47 AM   #4
Tchleung
Registered User
 
Join Date: Sep 2009
Posts: 3,044
Reputation: 0 Tchleung is on a distinguished road

Canada




Default Re: map switching

Wtf??? So I assume you added in your own entire code to do this


This is incredible.

This would be a great way to add a "valet" tune. 3000rpm redline lol
__________________
Follow me on Instagram @tommtomm84

03 Carbon Black X5 4.4 - Parts Hauler/Daily

02 Carbon Black M3 6MT - Fun Car
462whp/311wtq @ 9.5psi(SuperFlow)
4.10 / Headers / ESS VT2-550+


Last edited by Tchleung; Fri, Jan-16-2015 at 06:32:10 AM.
Jump to top Tchleung is offline   Reply With Quote
Old Fri, Jan-16-2015, 06:53:12 AM   #5
paffy
Registered User
 
Join Date: Jun 2010
Posts: 1,214
Reputation: 0 paffy is on a distinguished road
Location: Queens

Czech_Republic




Default Re: map switching

Quote:
Originally Posted by Tchleung View Post
Wtf??? So I assume you added in your own entire code to do this


This is incredible.

This would be a great way to add a "valet" tune. 3000rpm redline lol
Yup - 258 bytes of hand written assembly



Debugging was a ***** !

I'm thinking more of a low boost/high boost setup, fuel conservation/full power mode for race cars, E85 etc.
__________________
http://www.msstuning.com/ - serving your MSS5x flashing needs
2014 BMWCCA NY autox E class champion
My GTS4 build journal - http://www.m3forum.net/m3forum/showthread.php?t=551613
Jump to top paffy is offline   Reply With Quote
Old Fri, Jan-16-2015, 06:41:09 AM   #6
0-60Motorsports
Established 1998....
 
0-60Motorsports's Avatar
 
Join Date: Mar 2004
Posts: 14,723
In the garage:
Reputation: 0 0-60Motorsports is on a distinguished road
Location: Al Manama, Bahrain

Bahrain




Default Re: map switching

Amazing work paffy
__________________
EURO 04 M3 Mods: GC DA's / Eibach Sways / PF RTABs / RE RCAs / INTRAVEE II / ///MFEST Badges / M5 SMG Knob / VCSL: Bumper + Race Lip, CF Trunk, CF Diffusor / DIETZ TV in Motion / SuperSprint: Stepped Headers, Cat Deletes, Res X-pipe, Sport Muffler / Z8 Starter Button / Lamin-X / STM Paddles / OEM CSL: Steering, Interior, Intake, CF Roof / Terra MSS54HP CSL Clone + TTFS Tune / BBS CH's, LIGHTWERKZ / ST40's / DINAN RSB / RE Race Brace / BW Oil Cooler / 3.91 gears / Radium OCC
Jump to top 0-60Motorsports is offline   Reply With Quote
Old Fri, Jan-16-2015, 06:54:19 AM   #7
Tchleung
Registered User
 
Join Date: Sep 2009
Posts: 3,044
Reputation: 0 Tchleung is on a distinguished road

Canada




Default Re: map switching

Man. I wish I could understand...any of that
__________________
Follow me on Instagram @tommtomm84

03 Carbon Black X5 4.4 - Parts Hauler/Daily

02 Carbon Black M3 6MT - Fun Car
462whp/311wtq @ 9.5psi(SuperFlow)
4.10 / Headers / ESS VT2-550+

Jump to top Tchleung is offline   Reply With Quote
Old Fri, Jan-16-2015, 08:18:09 AM   #8
terraphantm
Moderator
 
Join Date: Dec 2010
Posts: 11,298
In the garage:
Reputation: 11 terraphantm is on a distinguished road
Location: Philadelphia

United States




Default Re: map switching

So are you loading the "important" maps into RAM and switching those on the fly? Or are you able to load multiple versions of the entire 64k?

Are their any failsafes implemented? Allowing the maps to only be switched while v = 0 or something like that?
__________________
Jump to top terraphantm is offline   Reply With Quote
Old Fri, Jan-16-2015, 11:48:15 AM   #9
p0lar
Naturally Agitated
 
p0lar's Avatar
 
Join Date: Sep 2005
Posts: 3,554
In the garage:
Reputation: 0 p0lar will become famous soon enough

United States




Default Re: map switching

Quote:
Originally Posted by terraphantm View Post
So are you loading the "important" maps into RAM and switching those on the fly? Or are you able to load multiple versions of the entire 64k?

Are their any failsafes implemented? Allowing the maps to only be switched while v = 0 or something like that?
I don't see why we couldn't fit ~7 full 64kb loads given the available space at the end of each program section. If you split each 64kb master/slave chunk, there's room for a full 7 32kb segments per half. Naturally, this would require paffy's flashing software to accomplish, but at such a reasonable price, I can't imagine NOT using it given the developments he's pioneered!

edit: Free space at 0x48000, 0x50000, 0x58000, 0x6000, 0x68000, 0x7000, 0x78000 for the 32kb Master segments and space at 0xC8000, 0xD0000, 0xD8000, 0xE0000, 0xE8000, 0xF0000, 0xF8000 for the 32kb Slave segments, at least on the 211325000301 program. I haven't looked at the 211325000401, but I'm also presuming most people will want to switch to the CSL software while they're at it. I'll have a look at the regular MSS54HP software in a bit.

Conveniently, with the tach, that's 1k RPM -> 7k RPM. I've mucked about with the tach lights before, but I wasn't good enough to take them from "mostly functional" for some alternate knock-detection ideas to "reliable". At best, they were quirky and/or unpredictable - but then again, I'm no assembly guru either.

I can't blame paffy for not wanting to mess with them if the tach indicator works as desired.

Last edited by p0lar; Fri, Jan-16-2015 at 12:50:20 PM.
Jump to top p0lar is offline   Reply With Quote
Old Fri, Jan-16-2015, 02:03:50 PM   #10
paffy
Registered User
 
Join Date: Jun 2010
Posts: 1,214
Reputation: 0 paffy is on a distinguished road
Location: Queens

Czech_Republic




Default Re: map switching

Quote:
Originally Posted by p0lar View Post
I don't see why we couldn't fit ~7 full 64kb loads given the available space at the end of each program section. If you split each 64kb master/slave chunk, there's room for a full 7 32kb segments per half. Naturally, this would require paffy's flashing software to accomplish, but at such a reasonable price, I can't imagine NOT using it given the developments he's pioneered!

edit: Free space at 0x48000, 0x50000, 0x58000, 0x6000, 0x68000, 0x7000, 0x78000 for the 32kb Master segments and space at 0xC8000, 0xD0000, 0xD8000, 0xE0000, 0xE8000, 0xF0000, 0xF8000 for the 32kb Slave segments, at least on the 211325000301 program. I haven't looked at the 211325000401, but I'm also presuming most people will want to switch to the CSL software while they're at it. I'll have a look at the regular MSS54HP software in a bit.

Conveniently, with the tach, that's 1k RPM -> 7k RPM. I've mucked about with the tach lights before, but I wasn't good enough to take them from "mostly functional" for some alternate knock-detection ideas to "reliable". At best, they were quirky and/or unpredictable - but then again, I'm no assembly guru either.

I can't blame paffy for not wanting to mess with them if the tach indicator works as desired.
I'm loading separate 32kb tunes into the free EEPROM space posted above. The KL_ and KF_ lookup routines are modified to look into the active tune section.

So currently scalars/constants don't get switched, just maps. I'm working on automated process of dealing with switching limited number of constants as well.
__________________
http://www.msstuning.com/ - serving your MSS5x flashing needs
2014 BMWCCA NY autox E class champion
My GTS4 build journal - http://www.m3forum.net/m3forum/showthread.php?t=551613
Jump to top paffy is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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. The time now is 02:49:01 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
M3Forum.com and M3forum.net is in no way sponsored, endorsed or affiliated by or with BMW NA / BMW AG or any of it's subsidiaries or vendors.
BMW and M3 (E90 M3 | E92 M3 | E93 M3 | E46 M3 | E36 M3 | E30 M3) are registered trademarks of BMW AG.
M3Forum Terms of Service
Copyright 1999-2017 M3Forum.com
Discussing map switching in the Coding and Tuning Forum - Discuss all avenues of coding and tuning here! at BMW M3 Forum.com (E30 M3 | E36 M3 | E46 M3 | E92 M3 | F80/X)