RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Sat Feb 21, 2026 5:08 pm

All times are UTC




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: knock sum 32-bit ECU
PostPosted: Mon Apr 28, 2008 1:23 pm 
Offline
RomRaider Donator
User avatar

Joined: Thu Mar 30, 2006 2:38 am
Posts: 5336
I've found what appears to be a knock sum for the 32-bit ECU. This variable (1 byte) is incremented by 1 at the start of each knock event as determined by the knock signal. It is only incremented if the knock signal was clear during the previous execution. As an example, it would look something like this:

(KS = knock signal)
KS CLEAR ; COUNTER = 0
KS SET; COUNTER = 1
KS SET; COUNTER = 1
KS CLEAR; COUNTER = 1
KS CLEAR; COUNTER = 1
KS SET; COUNTER = 2
KS CLEAR; COUNTER = 2
KS SET; COUNTER = 3

So, basically, the counter is incremented at the first knock event in each continuous pattern of knock (or if only a single knock event occurs). When the counter reaches 35 it resets to zero. Anyway, I'll be adding this to the next logger def update -> maybe it will be useful.


Top
 Profile  
 
 Post subject: Re: knock sum 32-bit ECU
PostPosted: Mon Apr 28, 2008 1:49 pm 
Offline
Newbie

Joined: Fri Dec 15, 2006 1:06 am
Posts: 67
Location: Singapore
May I request for the address of this variable in the A2ZJC00G 2.0 LGT ROM? I would be keen to observe this.


Top
 Profile  
 
 Post subject: Re: knock sum 32-bit ECU
PostPosted: Mon Apr 28, 2008 2:14 pm 
Offline
RomRaider Donator
User avatar

Joined: Thu Mar 30, 2006 2:38 am
Posts: 5336
BoxerFan wrote:
May I request for the address of this variable in the A2ZJC00G 2.0 LGT ROM? I would be keen to observe this.

I'll be adding to the next logger defs for all 32-bit ECUs.


Top
 Profile  
 
 Post subject: Re: knock sum 32-bit ECU
PostPosted: Tue Apr 29, 2008 4:09 am 
Offline
Moderator

Joined: Thu Nov 23, 2006 2:23 am
Posts: 2565
Very cool. Does the reset at 35 tie into a change in IAM or something like that?

_________________
2005 Legacy GT w/ ATP 3076, IWG, MBC, BCS, BC 272, LC, FFS, OMG
Please don't send questions via PM. Post a thread and send me a link to it instead. Thanks!


Top
 Profile  
 
 Post subject: Re: knock sum 32-bit ECU
PostPosted: Tue Apr 29, 2008 6:53 am 
Offline
Administrator
User avatar

Joined: Wed Oct 25, 2006 4:32 am
Posts: 3040
The handiest feature about this parameter is that we can use it instead of logging any of the timing and knock parameters. Since we have access to our tables, we could just log total timing and the counter which appears to be 1 byte. If we are very familiar with our ecu and the compensations, we probably don't even need to log total timign.

I checked it against what I thought was knock and it correlates 100% so far so I don't think experienced tuners will see anything different.

It will definitely help noobs though. It's fairly difficult to distinguish knock that causes FLKC to update. In the past, we had to keep track of the FLKC table and check it against when it changed. Now, we no longer have to do that.


Top
 Profile  
 
 Post subject: Re: knock sum 32-bit ECU
PostPosted: Tue Apr 29, 2008 11:21 am 
Offline
RomRaider Donator
User avatar

Joined: Thu Mar 30, 2006 2:38 am
Posts: 5336
NSFW wrote:
Very cool. Does the reset at 35 tie into a change in IAM or something like that?

No, it is just an arbitrary limit. The knock sum is not actually used by the ECU as far as I can tell.


Top
 Profile  
 
 Post subject: Re: knock sum 32-bit ECU
PostPosted: Tue Apr 29, 2008 1:29 pm 
Offline
Experienced

Joined: Sat Mar 10, 2007 5:16 pm
Posts: 212
Location: Ukraine
Interesting... What's the counter update rate? It's like crank degree, 1 rev? Or not related to to engine speed, just code execution cycle?


Top
 Profile  
 
 Post subject: Re: knock sum 32-bit ECU
PostPosted: Tue Apr 29, 2008 1:41 pm 
Offline
RomRaider Donator
User avatar

Joined: Thu Mar 30, 2006 2:38 am
Posts: 5336
It would update as often as the block of routines is executed, which includes FBKC/FLKC/IAM determination.


Top
 Profile  
 
 Post subject: Re: knock sum 32-bit ECU
PostPosted: Tue Sep 30, 2008 4:55 pm 
Offline
RomRaider Developer
User avatar

Joined: Tue Jan 23, 2007 9:11 pm
Posts: 966
Location: Hillsboro, Oregon
Knock sum is great. I actually heard knock yesterday and saw the knock sum go up 2 points and then FBKC and FLKC kicked it down. Very nice to see it. Holy crap my car knocks at idle. Prolly should find those bolts I dropped under the intake manifold and fix my exhaust leak. It is probably setting it off. Or it is tip in related.


Top
 Profile  
 
 Post subject: Re: knock sum 32-bit ECU
PostPosted: Tue Sep 30, 2008 6:58 pm 
Offline
Experienced

Joined: Tue Jul 24, 2007 10:28 pm
Posts: 349
Knock sum is going to be available to all 32bit owners with the next def release, right?


Top
 Profile  
 
 Post subject: Re: knock sum 32-bit ECU
PostPosted: Tue Sep 30, 2008 7:36 pm 
Offline
RomRaider Donator
User avatar

Joined: Thu Mar 30, 2006 2:38 am
Posts: 5336
williaty wrote:
Knock sum is going to be available to all 32bit owners with the next def release, right?

It is already in the latest logger defs for all applicable 32-bit ECUs. Not every ECU has the knock sum.


Top
 Profile  
 
 Post subject: Re: knock sum 32-bit ECU
PostPosted: Tue Sep 30, 2008 7:44 pm 
Offline
Experienced

Joined: Tue Jul 24, 2007 10:28 pm
Posts: 349
I totally missed the fact that you released defs this month.


Top
 Profile  
 
 Post subject: Re: knock sum 32-bit ECU
PostPosted: Wed Oct 01, 2008 12:55 am 
Offline
Experienced
User avatar

Joined: Thu Mar 02, 2006 2:51 am
Posts: 345
merchgod wrote:
It is already in the latest logger defs for all applicable 32-bit ECUs. Not every ECU has the knock sum.


Do you have a list going?

I can't seem to find it on my 05 STi (A2ZJB11J).

_________________
- Justin
download my ROM


Top
 Profile  
 
 Post subject: Re: knock sum 32-bit ECU
PostPosted: Wed Oct 01, 2008 1:49 am 
Offline
Experienced

Joined: Tue Jul 24, 2007 10:28 pm
Posts: 349
So what's it mean when I have either 1) a change to Knock Sum (KS) but no change to IAM, FLKC, or FKBC or 2) when I have a change to IAM, FLKC, or FBKC, but no change to KS?


Top
 Profile  
 
 Post subject: Re: knock sum 32-bit ECU
PostPosted: Wed Oct 01, 2008 1:51 am 
Offline
Administrator
User avatar

Joined: Wed Oct 25, 2006 4:32 am
Posts: 3040
For number 1, I'm guessing that it means that your ecu detected knock but it chose to ignore it due to the tuning parameters.

I have not seen #2 occur.

EDIT: Actually, I've seen FLKC change due to moving from one FLKC cell to another.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl