OSE 11P V104

For discussion and distribution of custom code and hacks
User avatar
Jayme
Posts: 2585
Joined: Sun Mar 01, 2009 8:59 am
Location: North Coast, NSW

Re: OSE 11P V104

Post by Jayme »

I believe it makes it easier to see actual knock counts.... most of the knock counts are normally missed due to logging speed being far slower than ECU processing speed. so VL400 made the knock counts in 11p like a latching counter... if you see it steady, there are no knock counts... if you see it move, there are knock counts.
Charlescrown
Posts: 1831
Joined: Sat Aug 06, 2011 7:58 am
cars: V8 VR Commodore BT1
LB Lancer 2L turbo & Delco
Starion TBI with Delco
Mitsubishi Lancer EVO4 track car
NA MX5
3 vintage motor bikes
Location: Padstow NSW

Re: OSE 11P V104

Post by Charlescrown »

Ok thanks. That makes sense. It's the sudden change you look for. Strange that it was level at 205 till it knocked then it levelled at 130. Anyway it's obviously something I don't need to worry about.
User avatar
Holden202T
Posts: 10311
Joined: Sat Feb 28, 2009 9:05 pm
Location: Tenambit, NSW
Contact:

Re: OSE 11P V104

Post by Holden202T »

goes to 255 and then resets to zero ?
Charlescrown
Posts: 1831
Joined: Sat Aug 06, 2011 7:58 am
cars: V8 VR Commodore BT1
LB Lancer 2L turbo & Delco
Starion TBI with Delco
Mitsubishi Lancer EVO4 track car
NA MX5
3 vintage motor bikes
Location: Padstow NSW

Re: OSE 11P V104

Post by Charlescrown »

If you look at the log watching the knock counts it displays a count of 205 continually untill it did knock and you can see it jump up to 229 which coinciding with a timing drop then after the knock stopped it dropped down to 130 and remained at that level for the rest of the logging. As Jayme said he thinks it picks a steady number and it's only when it jumps from there that it actually knocks. I suppose it's easy to follow a deviation from a stable line but the fact it went down to 130 instead of returning to 205 is a strange one with me.
User avatar
antus
Site Admin
Posts: 8237
Joined: Sat Feb 28, 2009 8:34 pm
cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Contact:

Re: OSE 11P V104

Post by antus »

yeah it counts 0->255 then 0->255 again (8 bits of data = 1 byte of the ecms very limited ram = numerical range of 0 to 255). The knock events happen so quick you register heaps of them between frames of data. This is why its implemented as a counter. In your case 205 -> 255 is 50 events, then 0->130 is 131 events, so 181 knock events detected. Its just the speed at which everything happens and the speed of the program running on the ecu. If it was implemented as a momentary state 50 knock events could be detected between frames and you would miss it in the logs. Note that this number does not equate to combustion cycles. The knock filter implements PWM (I think...) and faster PWM is louder knock. Exactly how that turns in to knock counts Im not sure. Presumably louder/harder knock = faster pwm output from knock filter = more knock counts.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
Charlescrown
Posts: 1831
Joined: Sat Aug 06, 2011 7:58 am
cars: V8 VR Commodore BT1
LB Lancer 2L turbo & Delco
Starion TBI with Delco
Mitsubishi Lancer EVO4 track car
NA MX5
3 vintage motor bikes
Location: Padstow NSW

Re: OSE 11P V104

Post by Charlescrown »

Thanks antus I figured it was something like that but having no knowledge on how it worked was curious if it was a problem or a bug at my end. Thanks for the piece of mind now I can go on happily tuning and enjoying 11P.
User avatar
The1
Posts: 4694
Joined: Mon Jan 04, 2010 10:23 am

Re: OSE 11P V104

Post by The1 »

not sure if it's like the ecotec routines on VS-VY but the knock events is when the code runs, a routine watches the amplitude of the knock signal and after a certain level if it's held high for 2 loops i think it then runs the knock code, when the code runs it increments the knock register by 1. This doesn't mean you have knock it just means the trigger level has been passed for 2 loops and the knock routine has been executed, the knock code then looks at how much ignore time or addon time you have and adds that in before retarding the spark advance.
User avatar
VL400
Posts: 4991
Joined: Sun Mar 01, 2009 2:54 pm
cars: VL Calais and Toyota Landcruiser. Plus some toys :)
Location: Perth, WA
Contact:

Re: OSE 11P V104

Post by VL400 »

Knock control on the early ECU/PCMs is very different to the later models, its far simpler.

The knock filter board is on the memcal and the ecu just gets a square wave signal indicating knock, the filter board does the signal processing for bandpass filtering and signals intensity by how long the square wave signal is low for. The ECU measures the amount of time the signal is low during 12.5ms windows, it is not gated to a particular engine position like later models and just continually samples (which is why engine noise gets picked up as knock).

So, the ECU uses a 16.384KHz counter and samples over 12.5ms. With 16.384KHz counter each knock count is 61us of time (intensity) from the the knock board, so approx 16 counts is 1ms of knock intensity. On a side note, with a 12.5ms sample period the maximum counts the ECU can measure is 205 (which is what you see when no knock board is fitted to standard $11 or 12P code).

You will have seen the knock attack rate table column is shown as deg/ms, this is degrees of retard per ms of knock. So with your example above of 181 counts, if the table was 0.51 deg/ms then 181 * 61us = 11.04ms of knock = 11.04ms * 0.51deg/ms = 5.63deg of knock retard. In the log it looks like you had multiple knock events very close, which adds to the total knock retard, up to the maximum knock retard scalar.
User avatar
Jayme
Posts: 2585
Joined: Sun Mar 01, 2009 8:59 am
Location: North Coast, NSW

Re: OSE 11P V104

Post by Jayme »

so interesting question came up from a mate of mine... can we have a "spark only" limiter?
I think 11P with spark cut enabled, cuts fuel AND spark. can we have a setting for crazy people that want 4 foot flames and expanded mufflers to leave the fuel going during the spark cut limiter, for burnout comps, etc?
User avatar
The1
Posts: 4694
Joined: Mon Jan 04, 2010 10:23 am

Re: OSE 11P V104

Post by The1 »

i think the problem would be bypass mode if you cut EST.
Post Reply