Extra byte in Message6?

160 And 8192 Baud Aldl
User avatar
festy
Posts: 1039
Joined: Sat Apr 30, 2011 6:27 pm
cars: Alfa Romeos
Location: Narellan, NSW

Extra byte in Message6?

Post by festy »

I'm testing some ALDL logger code against a vanilla 12P BLCD bin, with nothing connected to the ECU except the power wires.
Logging message 0 seems fine, I get the expected 60 bytes back at about 11Hz, and the checksum is good.
But message 6 is returning 12 bytes - not the 11 that I'm expecting.

Code: Select all

setting timeout for Mode1Message6 to 200ms
[0 0 12] checksum passed for f45e0100000000018a4900d9
0: Engine RPM 0 0 0
2: Spark Advance 0 0 * .351565 0
4: MAP 1 (1 * 0.369) + 10.354 10.723
5: Target AFR 138 138 * .1 13.8
6: Wideband 73 73 / 10 7.3
7: Knock Counts 0 0 0
****** 0.029996 (33.3377783704494 Hz)
The 5e indicates that it's a 12 byte packet (5e - 52), but the message6 adx only expects 11 bytes.
Have I somehow got a bin with a non-standard message6, or is does the adx in the 12P zip not match the BLCD bin?
I'll read the bin off the memcal next time I'm near the ECU, but it's driving me crazy trying to remotely solve this today :wtf:
User avatar
Holden202T
Posts: 10394
Joined: Sat Feb 28, 2009 9:05 pm
Location: Tenambit, NSW
Contact:

Re: Extra byte in Message6?

Post by Holden202T »

use the flashtool against the bin to see whats defined for Message6 in it.

theres an option in the menu for aldl message editor
User avatar
festy
Posts: 1039
Joined: Sat Apr 30, 2011 6:27 pm
cars: Alfa Romeos
Location: Narellan, NSW

Re: Extra byte in Message6?

Post by festy »

yep will do that - but I'm not near the ECU, and don't have a PC connected to it at the moment to run flashtool from.
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: Extra byte in Message6?

Post by VL400 »

I think it will be the ADX that is wrong, it will be 12 bytes total in a standard cal - 8 bytes of data, 3 header bytes and the checksum.
User avatar
festy
Posts: 1039
Joined: Sat Apr 30, 2011 6:27 pm
cars: Alfa Romeos
Location: Narellan, NSW

Re: Extra byte in Message6?

Post by festy »

I've checked the ADX in the OSE 12P zip and it has 11 bytes for message 6. Message 0 has 60 in the adx, and there's 60 bytes including the checksum in those packets...
Is the second byte of a message 6 packet usually 5e or 5d?
I'll check the bin I'm using before looking any further.
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: Extra byte in Message6?

Post by VL400 »

To keep the ADX inline with M0 it should be 12 and 9 not 11 and 8. But could also have 12 and 8 too, offset is always 3 though.

Your bin will be correct, it is 8 data bytes.
User avatar
festy
Posts: 1039
Joined: Sat Apr 30, 2011 6:27 pm
cars: Alfa Romeos
Location: Narellan, NSW

Re: Extra byte in Message6?

Post by festy »

So you're saying the adx is wrong, and the bodylength should be 12 and not 11?
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: Extra byte in Message6?

Post by VL400 »

Correct
User avatar
festy
Posts: 1039
Joined: Sat Apr 30, 2011 6:27 pm
cars: Alfa Romeos
Location: Narellan, NSW

Re: Extra byte in Message6?

Post by festy »

ok - so I assume that tp5 must use the ALDL stream's byte 2 to determine the incoming message length, rather than using the value pulled from the adx?
I might have to re-work mine to do the same if that's the case.
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: Extra byte in Message6?

Post by VL400 »

Not sure why TP did not complain as it does not use byte 2 AFAIK.

In my logger I use byte 2 for frame length, it works better seeing as that is what is on the bus.
Post Reply