rajivc666
Full Member
Karma: +23/-2
Offline
Posts: 127
|
|
« Reply #15 on: February 22, 2012, 07:06:58 AM »
|
|
|
The file I posted is a working file so the code is ok. Memory space 387000 is what holds the previous state of the cruze control button. First it is checked whether there is any change in state of cruise control if there is then it is saved in 387000 and then is it checked switch on or off , if off then exit , if on check clutch -- if pressed then change map if not exit.
here the lrdxn and lrdxnzk maps have been converted into 3d maps with y axis numbers being 0a,14,3c,64,c8 ,so depending on the value of 3870fa maps are switched. The lrdxn and lrdxnzk in default location is ignored.
|
|
|
Logged
|
|
|
|
jacog
Newbie
Karma: +1/-1
Offline
Posts: 4
|
|
« Reply #16 on: February 22, 2012, 10:55:43 AM »
|
|
|
Thanks for reply. So if we assume that lrdxn function is called first from original code and then after return from lrdxn(), function lrdxnzk() is called so will be enough to call only exit1() because checking for map switch event will be served in lrdxn(). Anyway, great job and I will try to test your code soon.
|
|
|
Logged
|
|
|
|
rajivc666
Full Member
Karma: +23/-2
Offline
Posts: 127
|
|
« Reply #17 on: February 23, 2012, 03:16:45 AM »
|
|
|
If you have HJ box its flash and play
|
|
|
Logged
|
|
|
|
rajivc666
Full Member
Karma: +23/-2
Offline
Posts: 127
|
|
« Reply #18 on: February 23, 2012, 09:15:11 AM »
|
|
|
hi, completed and tested the code for switching kfzw,kfzw2, krkte ,ldrxn & ldrxnzk. working fine. Still no visual indication. Timing and krkte can be switched together , total of three thou any number can be added, switched using the set/dec cruise control stock. ldrxn& ldrxnzk can be switched with cruise on/off button. I am attaching the code and hj bin file which is ready to go, but is not tested extensively so try it at your own risk . Please leave your suggestions. Thanks
|
|
|
Logged
|
|
|
|
rajivc666
Full Member
Karma: +23/-2
Offline
Posts: 127
|
|
« Reply #19 on: February 23, 2012, 09:30:42 AM »
|
|
|
Forgot to add you have to press the clutch for switching.
|
|
|
Logged
|
|
|
|
sn00k
|
|
« Reply #20 on: February 23, 2012, 10:35:12 AM »
|
|
|
Definitely following this, this would be a very nice addition to add to my own HN-tune, for the capability of using e85 as an alternate fuel, since its available everywhere around here. (HN and HJ boxes are compatible between cars, alltho the maps are located differently inside the flash, HJ representing the 150hk box and HN the 180hk)
i would basically need only TWO setups to switch between, and the maps i would want to be switched is KRKTE, LDRXN, KFZW and KFZW2, is this possible to do with ONE flip on the cruisecontrol? also, if the light could be made to blink 1 time for "normal" operation and 2 times for "alternate fuel" this would be awesome, can this be done? =)
|
|
|
Logged
|
|
|
|
rajivc666
Full Member
Karma: +23/-2
Offline
Posts: 127
|
|
« Reply #21 on: February 23, 2012, 11:06:48 AM »
|
|
|
yes i have plans to add visual indication as soon as i know how to . Yes its switching at the press of button I mentioned above + clutch. For timing and krkte remember to keep cruise control switch in on position without pressing the clutch and then press the clutch and the set/dec button. It can be done even when your driving the vehicle. For switching between boxes a certain amount of work has to be done for starts you have to call this code from 9 different places. I plan to explain it later. I am not a programmer so the code is written all over the place and also repeated several times which can be done more elegantly which will make it easier to understand for beginers who wants to put it to a diffrent box , may be somebody can help.
|
|
|
Logged
|
|
|
|
rajivc666
Full Member
Karma: +23/-2
Offline
Posts: 127
|
|
« Reply #22 on: February 24, 2012, 09:51:56 AM »
|
|
|
(HN and HJ boxes are compatible between cars, alltho the maps are located differently inside the flash, HJ representing the 150hk box and HN the 180hk) [/quote] I tried flashing HN tune in my box, its not working buddy. Anybody know of a 180bhp tune which will work in HJ box.
|
|
|
Logged
|
|
|
|
sn00k
|
|
« Reply #23 on: February 24, 2012, 05:35:02 PM »
|
|
|
hmm, that is weird.. alltho running a HN box on a HJ car is no problem as ive done this myself.
perhaps the HJ box is not compatible with the HN flash. (i have yet to find a box that wont accept this HN file.. running it on 5 different cars atm.. 2 golfs, audi a3, passat, audi a6)
this is the original file from my HN box that ive used for base in my tunes. i have seen a few different ones on here earlier.
wont start at all?
it is 2002> and needs checksums to be calculated as per the me7-2002 standard when making changes to it.
|
|
|
Logged
|
|
|
|
rajivc666
Full Member
Karma: +23/-2
Offline
Posts: 127
|
|
« Reply #24 on: February 29, 2012, 01:26:19 PM »
|
|
|
Managed to put visual indication by flashing MIL. For different LDRXN and LDRXNZK maps will flash from 1 to 5 times depending on the map. For different KRKTE , KFZW, KFZW2 MAPS will flash 1 to 3 times. When the car is started the light flashes faster and double the number of time as I think ECU clears the MIL before the code clears it. Will try and post a HN box soon. Also attaching definitions of the new map locations.
|
|
« Last Edit: February 29, 2012, 02:23:51 PM by rajivc666 »
|
Logged
|
|
|
|
rajivc666
Full Member
Karma: +23/-2
Offline
Posts: 127
|
|
« Reply #25 on: February 29, 2012, 01:41:05 PM »
|
|
|
I have changed LALIUS by 10% to run lean and all 3 krkte to match it. Other maps changed are kfzwop,kfzwop2. Max lambda limit rich to actual 11 AFR after correction for LALIUS, changed LAMFA etc. Logged the tune was running fine.
Edit: Looks like the maps did get exported. Here.
|
|
« Last Edit: February 29, 2012, 02:02:50 PM by rajivc666 »
|
Logged
|
|
|
|
sn00k
|
|
« Reply #26 on: March 01, 2012, 05:26:29 AM »
|
|
|
Looking good! is it possible to make this function swap kfzw, kfzw2, ldrxn and krkte with just ONE flip on the CC? ..and have three different setups, where the mil-light flashes: 1 time for set 1 2 times for set 2 3 for set 3 these would be the maps to change when using alternative fuels.. so if ive fueld the car with 93oct from previously 91, i would just get in the car and flip the switch ONE time to activate the 93oct mode.. located as the 2:nd set, NOT having to go thru different ldrxn maps to match the kfzw, kfzw2, krkte etc, as this would result in major engine damage if the wrong one were to be chosen. ..having 3 different "sets" would be safer, easier and more manageble imo..
|
|
|
Logged
|
|
|
|
rajivc666
Full Member
Karma: +23/-2
Offline
Posts: 127
|
|
« Reply #27 on: March 02, 2012, 02:49:49 AM »
|
|
|
I will try that snook, meanwhile can you try this. I have no way to test it so be ready to go bootmode.
|
|
« Last Edit: March 02, 2012, 03:42:38 AM by rajivc666 »
|
Logged
|
|
|
|
rajivc666
Full Member
Karma: +23/-2
Offline
Posts: 127
|
|
« Reply #28 on: March 02, 2012, 03:43:36 AM »
|
|
|
Sorry there was a mistake in the code will post the correct one shortly.
Edit:
|
|
« Last Edit: March 02, 2012, 03:50:24 AM by rajivc666 »
|
Logged
|
|
|
|
rajivc666
Full Member
Karma: +23/-2
Offline
Posts: 127
|
|
« Reply #29 on: March 02, 2012, 10:06:44 AM »
|
|
|
Guys please leave a feedback if you are testing it as I cant test it myself. Your suggestions for improvement are welcome, Thanks.
|
|
|
Logged
|
|
|
|
|