prj
|
|
« Reply #90 on: October 30, 2022, 06:14:23 PM »
|
|
|
You're not gonna do a stupid pressure based ECU on ME7 lol. Nor is there any need for it.
And M2.3.2 modifying my VE table there is no problem. If you modify the constants you just recalculate the whole table... I mean it's not that hard to correct (A+B)*C to amount to the same thing if you want to change one.
|
|
|
Logged
|
|
|
|
|
kacperoooni
Full Member
Karma: +9/-2
Offline
Posts: 126
|
|
« Reply #92 on: December 06, 2022, 06:30:57 PM »
|
|
|
You need to do more FR reading. dpsfg_w is the one that is important. psfg_w gets calculated from that via integrator KISRM. So: 1. Acquire the uhfm - well the ECU does that for you in 1ms raster and places it into a variable. Good. 2. Add a filter map and insert lookup to it in some slow-ish raster, like 10-100ms. I used simple multiplication and nmot_w x rl_w map. I hijacked fvisrm for this, because it's not used anymore. A good scaling is to have e.g. 65535 as pass through value, then you can just right shift result 16, or just take the high bits after 16x16 mult. 3. Modify place where dpsfg_w gets calculated (this is done in synchro-raster) and instead of doing the MAF calculation: a) Take the raw uhfm_w, convert to pressure via some added constants (I called them DSMGRAD and DSMOFS). b) Subtract psfg_w from this (you get new dpsfg, pre-filter). c) Apply filter by multiplying the result by filter value (hijacked fvisrm in my case), this limits the rate of change and gets rid of the extensive jitter. Remember that because it's in synchroraster your filter value needs to decrease with RPM to have same result. d) Assign result to dpfsg_w. 4) Modify DHFM diagnosis to check for valid pressure sensor readings instead, and make it trip error code, so if your MAP sensor craps out you can still switch to alpha/n. 5) Tie up loose ends. There are some places that use mshfm_w and you need to change those to use msdk_w.
It's a lot of work tbh. This list should help you implement. But doing it for any bin - it's like a full time job. Even if somebody posts the bin, I think you will spend longer time reversing what is done instead of just writing yourself. For simpler code writing I recommend using Keil uVision, assembling it to .H86 and then using hex2bin on .H86 file. Then you can use macros and labels, especially for bounds checking.
And once that's all done, now you need to really UNDERSTAND how the ME7 speed-density model works. This means that it actually really matters what you have in KFURL, KFPRG and KFPBRK. Because if you have garbage in there then your load will be completely wrong, even in so far that the car will not even stay running. With a MAF it's irrelevant what you have there because it only uses it to calculate ps_w, and then uses inverse to get back to rl. Thus it makes no difference on load. This took me few hours on dyno to dial in, and I knew exactly what I was doing. If you don't know what you're doing good luck.
And finally you will have to tweak ESUK, because MAP sensor is much slower than MAF at reading air and you will need more aggressive enrichment.
Even when people bought the SD solution from me, some never got it to work, because they did not have enough knowledge to tune the VE model.
Could I post code? Probably. Would it be of any use to anyone except to someone using the exact binary the code is posted for? No Would it be of any use to the average "tuner", who has no clue how the VE system works? No - they never calibrated it and they won't even get the car to start on SD if it's significantly modified from stock.
I posted full custom boost pid for NA ME7 with all the code, I doubt anyone ever used it.
Thats why I left SD project, even if I got it to work pretty well, the amount of work to make it work was not worth using it instead of MAF sensor.
|
|
|
Logged
|
|
|
|
fknbrkn
Hero Member
Karma: +185/-23
Offline
Posts: 1454
mk4 1.8T AUM
|
|
« Reply #93 on: September 19, 2023, 02:35:03 AM »
|
|
|
You need to do more FR reading. dpsfg_w is the one that is important. psfg_w gets calculated from that via integrator KISRM. So: 1. Acquire the uhfm - well the ECU does that for you in 1ms raster and places it into a variable. Good. 2. Add a filter map and insert lookup to it in some slow-ish raster, like 10-100ms. I used simple multiplication and nmot_w x rl_w map. I hijacked fvisrm for this, because it's not used anymore. A good scaling is to have e.g. 65535 as pass through value, then you can just right shift result 16, or just take the high bits after 16x16 mult. 3. Modify place where dpsfg_w gets calculated (this is done in synchro-raster) and instead of doing the MAF calculation: a) Take the raw uhfm_w, convert to pressure via some added constants (I called them DSMGRAD and DSMOFS). b) Subtract psfg_w from this (you get new dpsfg, pre-filter). c) Apply filter by multiplying the result by filter value (hijacked fvisrm in my case), this limits the rate of change and gets rid of the extensive jitter. Remember that because it's in synchroraster your filter value needs to decrease with RPM to have same result. d) Assign result to dpfsg_w. 4) Modify DHFM diagnosis to check for valid pressure sensor readings instead, and make it trip error code, so if your MAP sensor craps out you can still switch to alpha/n. 5) Tie up loose ends. There are some places that use mshfm_w and you need to change those to use msdk_w.
It's a lot of work tbh. This list should help you implement. But doing it for any bin - it's like a full time job. Even if somebody posts the bin, I think you will spend longer time reversing what is done instead of just writing yourself. For simpler code writing I recommend using Keil uVision, assembling it to .H86 and then using hex2bin on .H86 file. Then you can use macros and labels, especially for bounds checking.
And once that's all done, now you need to really UNDERSTAND how the ME7 speed-density model works. This means that it actually really matters what you have in KFURL, KFPRG and KFPBRK. Because if you have garbage in there then your load will be completely wrong, even in so far that the car will not even stay running. With a MAF it's irrelevant what you have there because it only uses it to calculate ps_w, and then uses inverse to get back to rl. Thus it makes no difference on load. This took me few hours on dyno to dial in, and I knew exactly what I was doing. If you don't know what you're doing good luck.
And finally you will have to tweak ESUK, because MAP sensor is much slower than MAF at reading air and you will need more aggressive enrichment.
Even when people bought the SD solution from me, some never got it to work, because they did not have enough knowledge to tune the VE model.
Could I post code? Probably. Would it be of any use to anyone except to someone using the exact binary the code is posted for? No Would it be of any use to the average "tuner", who has no clue how the VE system works? No - they never calibrated it and they won't even get the car to start on SD if it's significantly modified from stock.
I posted full custom boost pid for NA ME7 with all the code, I doubt anyone ever used it.
Sooo me7 commercially dead (or just not worth it), it would be nice to check SD code
|
|
|
Logged
|
|
|
|
prj
|
|
« Reply #94 on: September 19, 2023, 02:54:30 AM »
|
|
|
Sooo me7 commercially dead (or just not worth it), it would be nice to check SD code I'm making a file dump of all my cal shit, since I don't do cal anymore and couldn't care less if it gets copied around. It's not going to be free, but all that stuff will be on there.
|
|
|
Logged
|
|
|
|
_nameless
|
|
« Reply #95 on: September 19, 2023, 06:14:26 AM »
|
|
|
Sooo me7 commercially dead (or just not worth it), it would be nice to check SD code I sent you working code
|
|
|
Logged
|
Giving your mom a tuneup
|
|
|
fknbrkn
Hero Member
Karma: +185/-23
Offline
Posts: 1454
mk4 1.8T AUM
|
|
« Reply #96 on: September 19, 2023, 09:29:32 AM »
|
|
|
I sent you working code
I need moar
|
|
|
Logged
|
|
|
|
adam-
|
|
« Reply #97 on: October 30, 2023, 10:57:23 AM »
|
|
|
I'm making a file dump of all my cal shit, since I don't do cal anymore and couldn't care less if it gets copied around. It's not going to be free, but all that stuff will be on there.
Group buy?
|
|
|
Logged
|
|
|
|
sda2
Full Member
Karma: +23/-1
Offline
Posts: 76
|
|
« Reply #98 on: November 02, 2023, 01:14:21 PM »
|
|
|
I posted full custom boost pid for NA ME7 with all the code, I doubt anyone ever used it.
We use it ported to MS43, thank you for that!
|
|
|
Logged
|
|
|
|
prj
|
|
« Reply #99 on: November 02, 2023, 02:09:44 PM »
|
|
|
We use it ported to MS43, thank you for that!
Unexpected but good to hear that.
|
|
|
Logged
|
|
|
|
tao13
|
|
« Reply #100 on: December 01, 2023, 10:35:05 AM »
|
|
|
DELETED post, i moved in other topic.
|
|
« Last Edit: December 02, 2023, 12:13:46 AM by tao13 »
|
Logged
|
|
|
|
crackerx
Jr. Member
Karma: +1/-10
Offline
Posts: 43
|
|
« Reply #101 on: December 02, 2023, 04:59:39 AM »
|
|
|
ROFL... DELETED post, i moved in other topic.
|
|
|
Logged
|
|
|
|
tao13
|
|
« Reply #102 on: August 21, 2024, 12:48:41 PM »
|
|
|
tn2fgr_w "Doppelte Nennerzeitkonstante FGR-Regler" mrrgli_w "Initialisierungswert Relatives Moment fur FGR-Regler"
must be modified for SD?
|
|
|
Logged
|
|
|
|
|