Notices
ECU Flash

2byte to 1byte load mod

Thread Tools
 
Search this Thread
 
Old May 25, 2008, 06:24 PM
  #1  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
2byte to 1byte load mod

Hey All,

Just thought I would post up a quick image of the next mod to be included. It's not very "cool" but should save some headaches:



So what I have done is reduced the 2byte variable and stuffed it inside a 1byte variable - why? 2 reasons:

1) Save 1byte of logging - speeding up logging is always good!
2) Stop the hi/low byte order mismatch error as seen above at the 1590.7 mark.

How:
Simply divide the real 2byte load by a factor (yes it will be customisable) and put it into 1byte which is logged like normal.

My factor is 1.2, which means we can log a load of upto 306 (255*1.2). A bigger factor equals higher load logging capability but also means less resolution.

The factor in the ROM needs to equal the factor in the EvoScan formula!

Cheers
D.
Old May 25, 2008, 06:27 PM
  #2  
Evolved Member
iTrader: (17)
 
dudical26's Avatar
 
Join Date: Nov 2005
Location: NNJ
Posts: 2,544
Likes: 0
Received 0 Likes on 0 Posts
Thats a very "cool" idea, lol. How much accuracy is lost with this method, assuming you want the ability to log up to 340 load?

I'll just be happy to get rid of the annoying errors of 2 byte load.

Can you do this with all 2 byte data?
Old May 25, 2008, 06:50 PM
  #3  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
Basically to find out your "factor", you get your max load and divide it by 255.

ie 340 / 255 = 1.333333, now round it upto the closest .1, so 1.4

so 255*1.4 = 357, so you can log upto 357.

A factor of 1.4 would go in steps of 1.4, ie 0, 1.4, 2.8, 4.2..... so you loose a "little" accuracy, but I think its ok

Yes we could do this with any of the 2bytes, essentially this is how RPM works already, ie 255*31.25 = 7968, so 31.25 is the factor for MUT21.
Old May 25, 2008, 07:16 PM
  #4  
Evolved Member
iTrader: (2)
 
logic's Avatar
 
Join Date: Apr 2003
Location: Berkeley, CA
Posts: 1,022
Likes: 0
Received 6 Likes on 5 Posts
Interesting idea, it definitely beats the heck out of the two-byte problems we currently have. Wonder if you could define a "floor"; say, a load of 100, with a factor of 1 (ie. the eval would simply be "x+100")? Does anyone really care about lower load values?
Old May 25, 2008, 07:24 PM
  #5  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
lol, original that was my plan, but MrFred convinced me otherwise.
Old May 25, 2008, 07:45 PM
  #6  
Evolved Member
iTrader: (2)
 
l2r99gst's Avatar
 
Join Date: Mar 2004
Location: CA
Posts: 3,499
Likes: 0
Received 4 Likes on 4 Posts
Nice work, Dave. I remember this being mentioned a few times in the past. I think this is a great mod, especially for load, where you are losing very little resolution.
Old May 25, 2008, 08:44 PM
  #7  
EvoM Guru
iTrader: (50)
 
mrfred's Avatar
 
Join Date: Mar 2006
Location: Tri-Cities, WA // Portland, OR
Posts: 9,675
Received 128 Likes on 96 Posts
Originally Posted by logic
Interesting idea, it definitely beats the heck out of the two-byte problems we currently have. Wonder if you could define a "floor"; say, a load of 100, with a factor of 1 (ie. the eval would simply be "x+100")? Does anyone really care about lower load values?
Lower loads are useful for tuning part throttle and cruise. I guess if tephra wants, he can include an adjustable offset as well.
Old May 25, 2008, 08:46 PM
  #8  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
Nah - I am trying to reduce the core code now, as I am at a stage where the start of my code is too far from the end of my code - if you know what I mean

I think it's good enough, I think most people will be happy with a 1.1 or 1.2 factor!
Old May 25, 2008, 09:36 PM
  #9  
Evolved Member
iTrader: (17)
 
dudical26's Avatar
 
Join Date: Nov 2005
Location: NNJ
Posts: 2,544
Likes: 0
Received 0 Likes on 0 Posts
I think the gains are worth the slight loss in resolution. If you are off by a few points in load I don't think that really matters. So long as it is within 5% or so I would say that is still ok
Old May 26, 2008, 02:34 AM
  #10  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
ditto, the higher the factor the lower the accuracy...

like I said most people will find 1.1x or 1.2x is HEAPS..
Old May 26, 2008, 03:28 AM
  #11  
Evolved Member
iTrader: (17)
 
dudical26's Avatar
 
Join Date: Nov 2005
Location: NNJ
Posts: 2,544
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by tephra
ditto, the higher the factor the lower the accuracy...

like I said most people will find 1.1x or 1.2x is HEAPS..
Sweet As
Old May 26, 2008, 03:22 PM
  #12  
Evolved Member
iTrader: (7)
 
Asmodeus6's Avatar
 
Join Date: Nov 2006
Location: Pittsburgh
Posts: 772
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by mrfred
Lower loads are useful for tuning part throttle and cruise. I guess if tephra wants, he can include an adjustable offset as well.
I agree with Fred ^

Old Dec 19, 2008, 03:45 PM
  #13  
Newbie
 
Jobi's Avatar
 
Join Date: Feb 2008
Location: France
Posts: 17
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by tephra
The factor in the ROM needs to equal the factor in the EvoScan formula!
So basically the new formula in EvoScan would be:
- for "load 11bit4": 1.2x
- for "load MUT 2byte mod": 1.2*0.3125*x

Am I right? Cause if I am, it would explain why I see load values which seem kinda low compared to the boost I'm running...

Thx a lot for help on this point
Old Dec 19, 2008, 03:59 PM
  #14  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
no - forget 2byte load or load 11bit4.

Code:
<DataListItem DataLog="Y" Color="" Display="Load 1Byte" LogReference="Load" RequestID="41" Eval="1.2*x" Unit="load" MetricEval="" MetricUnit="" ResponseBytes="1" GaugeMin="0" GaugeMax="300" ChartMin="0" ChartMax="300" ScalingFactor="0.1" Notes="" Priority="1" Visible="False" />
Old Dec 20, 2008, 09:51 PM
  #15  
Evolved Member
iTrader: (3)
 
nonschlont's Avatar
 
Join Date: Mar 2007
Location: Ca
Posts: 1,760
Likes: 0
Received 1 Like on 1 Post
Originally Posted by tephra
no - forget 2byte load or load 11bit4.

Code:
<DataListItem DataLog="Y" Color="" Display="Load 1Byte" LogReference="Load" RequestID="41" Eval="1.2*x" Unit="load" MetricEval="" MetricUnit="" ResponseBytes="1" GaugeMin="0" GaugeMax="300" ChartMin="0" ChartMax="300" ScalingFactor="0.1" Notes="" Priority="1" Visible="False" />
ok excuse the newbish question, but I tried to add this definition to my evoscan v2.5 and since the actuall .xml file has been done out w/, I added a new data item, added: Display="Load 1Byte" / LogReference="Load" / RequestID="41" / Eval=1.2*x / Unit="load" / ResponseBytes="1" / GaugeMin="0" / GaugeMax="300" / ChartMin="0" / ChartMax="300" / ScalingFactor="0.1" Notes="" Priority="1"

and logged next to 2byte load, and nothing... Am I missing something???


Quick Reply: 2byte to 1byte load mod



All times are GMT -7. The time now is 03:25 PM.