NefMoto

Noob Zone => Noob Questions => Topic started by: toolstoy on March 03, 2023, 10:34:02 PM



Title: Issue with logging dwkrz
Post by: toolstoy on March 03, 2023, 10:34:02 PM
I'm having an issue logging dwkrz.

For some reason, my ME9 ECU is recording dwkrzxx in a weird way.
The RAM shows as following:
0 count retard=0
1 count retard=255
2 count retard=254
3 count retard=253
So on...

Anyone experienced this?

I have the logger setup with a factor of 0.75 as I know each count=-0.75 timing retard. I added an offset of -192 so it is reading correctly during timing pull occurrence but is showing as -192 when there is zero pull.

This is the current line on the logger
parameter, space, address, bitmask, unit, signed, I, factor, offset, Name
dwkrz01, 1, 0x806246, 0X0000, Deg, 1, 0, 0.75, -192, Knock Retard Cylinder 2

Is there a specific formula for it to show the correct value, but make 0 as zero value? At first I thought I'm reading the wrong RAM parameters but I checked on IDA and they seemed to be the correct one. I also tried different combination with I as 1 with no definite result.


Title: Re: Issue with logging dwkrz
Post by: fknbrkn on March 03, 2023, 10:43:07 PM
Its signed value
There is a flag for that near offset


Title: Re: Issue with logging dwkrz
Post by: nyet on March 03, 2023, 11:16:16 PM
255 is -1


Title: Re: Issue with logging dwkrz
Post by: toolstoy on March 04, 2023, 05:04:19 AM
Thanks everyone. I reckon it may be a logger issue then as it's not responding properly with the signed factor.


Title: Re: Issue with logging dwkrz
Post by: prj on March 04, 2023, 12:53:25 PM
If you get bored of it, you can always use mine and focus on other things instead.

But from that line, offset needs to be 0.