Mode 3 Issue

Report bugs found in TunerPro. Please be sure to include as much info as possible, including system specs, OS, repro steps and TunerPro version number.

Moderators: Mangus, robertisaar, dex

Post Reply
toliphint
Posts: 62
Joined: Sun Aug 08, 2010 6:35 pm
Location: Montgomery, AL

Mode 3 Issue

Post by toliphint »

TPro RT 5.08.8144.00, AUJP $8D

Sorry for long post, but necessary to explain. Have been working on this for some time now and believe there is a bug in the Mode 3 logic if, in a Mode 3 ADX, a request is made for more than one, 2-byte variable in the 0x3000-0x6fff range. Here's why.

Have a simple Mode 3 ADX that requests only 2 items: Spark-TDC (0x3128/29) and Spark-REF(0x30BD/BE). Weirdly, only the first item in the xmit string is reported back correctly. The second is not converted according to the conversion formula but is reported raw. Swap the items in the xmit string, reorder their offsets and same thing. This would be easier to understand if I could send ADX files and logs to an email address.

Example:
Send Request for Spark-TDC(0x3128/29) and Spark-REF(0x30BD/BE)
0xF4 0x5E 0x03 0x31 0x28 0x31 0x29 0x30 0xBD 0x30 0xBE 0x1D

Reply:
timeout: 400
payload offset: 3
payload size: 4
body size: 7 (Also used 8, no difference)

Results:
looking at one sample

Code: Select all

            Spark- TDC (1st item)     Spark-REF (2nd item)
Returned    22.15                     5670.01
Conversion  divide by 0.351563        divide by 0.351563
Result Dec  63.00                     16128.00
Result Hex  3F                        3F00

And thus the MSB of the 2nd item Spark-REF (3F) is same as the LSB of 1st item Spark-TDC (3F). Every sample this way.
If swap the order of TDC and REF in the ADX file, get same results = TDC, the 2nd item, reported incorrectly.

Additionally, if insert a 1-byte value between the 2 Sparks (eg RPM) the 2nd spark is reported incorrectly as above.

I'm fixated on this because I need to have both Sparks in the same Mode 3 ADX., but as long as both are in there, regardless of what else is in the xmit string, the 2nd transmitted spark reports errantly as above.

again, it appears the problem lies in having more than one 16 bit item in the transmit string.

=====================================================
EDIT -- And the conversion is the same for both Sparks in the ADX: X * 0.351563
=====================================================

Help please & thanks in advance!
84Elky
toliphint
Posts: 62
Joined: Sun Aug 08, 2010 6:35 pm
Location: Montgomery, AL

Post by toliphint »

Bump, please
84Elky
User avatar
Mangus
TunerPro Author
Posts: 1925
Joined: Wed Mar 19, 2003 1:49 pm

Post by Mangus »

Tom, email me the ADX. How are you inspecting the reply? Are you looking at the raw data coming back from the ECM on the ALDL line (through a port monitoring program), or just relying on the data shown in the data list? If the latter, you'd need to provide information on how the ADX Values are configured for the spark values.

-Mark
***************************************
TunerPro Author
1989 Trans Am
User avatar
Mangus
TunerPro Author
Posts: 1925
Joined: Wed Mar 19, 2003 1:49 pm

Post by Mangus »

Thanks for sending the files. That problem is with the ADX Values in your ADX. The first value is at offset 0. The second should start at offset 2 (16-bit values), but you have it/them set to offset 1.

Set the second value to offset 2 and give that a try.
***************************************
TunerPro Author
1989 Trans Am
Post Reply