Torque

Forums

Forums

Guest  

Show or hide header
Welcome Guest, posting in this forum require registration.




Torque » Torque OBD ECU Scanner » Torque Discussion / Ideas » Extended PID help

Pages: [1] 2
Author Topic: Extended PID help
ANBO
Member
Posts: 19
Post Extended PID help
on: May 7, 2021 (GMT)

Hoping someone can help.

I have been reading up and down the forum and ELM327 instructions how to break down extended PIDs. Although entering queries in concession and reset a query if something goes wrong seems straightforward in a terminal tool, it is not so clear in a developed tool like Torque Pro. Which makes me anxious to something wrong.

Any suggestions on how to setup Torque Pro to break down into 4 equations?

PID: 22a0a6
Header: 754

Data bytes: A. B. C D E. F. G. H. I. J
Sample data: 00 5b 2f 5e ff 6c ca fe 03 19

Expected formula of read straight up:
Formula 1: INT32(Signed(A):B:C:D)/131072
Formula 2: INT32(Signed(E):F:G:H)/131072
Formula 3: I
Formula 4: J

Thank you.

moreause
Member
Posts: 643
Post Re: Extended PID help
on: May 7, 2021 (GMT)

i would say create 4 separate PID

the will ask the same request …but the output of the pid will be what you want

try the test fonction it help to figure out if you have some issue

ANBO
Member
Posts: 19
Post Re: Extended PID help
on: May 8, 2021 (GMT)

Quote from moreause on May 7, 2021
i would say create 4 separate PID

the will ask the same request …but the output of the pid will be what you want

try the test fonction it help to figure out if you have some issue

Thanks for the quick response.

In fact I already have these 4 setup:
Formula 1: INT32(Signed(A):B:C:D)/131072
Formula 2: INT32(Signed(E):F:G:H)/131072
Formula 3: I
Formula 4: J

Just not getting (expected) results. Will try the test function.

Was wondering if I need to add Diagnostic Start and Stop commands?

ANBO
Member
Posts: 19
Post Re: Extended PID help
on: May 8, 2021 (GMT)

Thanks for the tip on the Test button, showing the complete response:

7F 22 78
00D
0: 62 A0 A6 00 5E A4
1: BE 00 10 DB 5C 03 1F

So I am interested in filtering out
PID1: 00 5E A4 BE
PID2: 00 10 DB 5C
PID3: 03
PID4: 1F

Can this be done with the Diagnostic start and stop commands?

cintakc
Member
Posts: 1663
Post Re: Extended PID help
on: May 8, 2021 (GMT)

Explain more specifically, what are your parameters and whether they have positive and negative values?
I think the Torque program does not support processing responses with a response in front 7F2278
only this answer turned out to be received
https://disk.yandex.ru/i/EXpsVJGff1RGzg

ANBO
Member
Posts: 19
Post Re: Extended PID help
on: May 8, 2021 (GMT)

That would be a shame.

PID1 and PID2 are signed.

PID3 and PID4 are regular.

cintakc
Member
Posts: 1663
Post Re: Extended PID help
on: May 8, 2021 (GMT)

https://disk.yandex.ru/d/LkoaqYa1pH57zg

ANBO
Member
Posts: 19
Post Re: Extended PID help
on: May 8, 2021 (GMT)

Wauw thanks!

The proposal provides the expected results on PID2(R4-7), 3(R8) and 4(R9).

PID1 is still stubborn, assuming I have adjusted your proposal properly for this PID:

INT32(Signed(R0):R1:R2:R3)/131072
Start: atd1\nath1
Start: atd0\nath0

Did I do this correctly? Any further suggestions?

cintakc
Member
Posts: 1663
Post Re: Extended PID help
on: May 9, 2021 (GMT)

i think PID1 won’t work

ANBO
Member
Posts: 19
Post Re: Extended PID help
on: May 9, 2021 (GMT)

Thanks again for your help.

Strangely enough it is picking up only bytes from line 2. Depending on which reference coding you use (R0 vs. A) offset by 1 byte.

R0 – R3
75 C8 03 7F 22 78
75 C8 10 0D 62 A0 A6 00 5E 49
75 C8 21 AE 00 10 DF 51 03 1F

A-D
75 C8 03 7F 22 78
75 C8 10 0D 62 A0 A6 00 5E 49
75 C8 21 AE 00 10 DF 51 03 1F

cintakc
Member
Posts: 1663
Post Re: Extended PID help
on: May 9, 2021 (GMT)

Torque does not provide for the processing of the 7F2278 response, therefore, the count of bytes in the response is violated.
as far as I know, in the branded adapters ELM327 with a branded chip, the exchange of this message 7F2278 has already been implemented

ANBO
Member
Posts: 19
Post Re: Extended PID help
on: May 9, 2021 (GMT)

Thanks all the same.

Vasilich
Member
Posts: 223
Post Re: Extended PID help
on: May 11, 2021 (GMT)

INT32 function doesn’t accept negative values. That is why your PID formula doesn’t work properly

cintakc
Member
Posts: 1663
Post Re: Extended PID help
on: May 11, 2021 (GMT)

Vasilich, the fact is that the order of analysis of the answer is generally violated, since in front there is 7F2278

ANBO
Member
Posts: 19
Post Re: Extended PID help
on: May 11, 2021 (GMT)

Thank you.

That was something to validate as well, but for now I have tried byte for byte and not getting the bytes from the first frame (0:).

Could flow control work to target this first frame?

Start:
AT FC SH 754 \n
AT SD 81 00 0D 62 A0 A6 \n
AT SM1 \n
….

cintakc
Member
Posts: 1663
Post Re: Extended PID help
on: May 11, 2021 (GMT)

ATSP6\nATSH754\nATFCSH754\nATFCSD300000\nATFCSM1\nATCRA75C

ANBO
Member
Posts: 19
Post Re: Extended PID help
on: May 11, 2021 (GMT)

Thanks. Cutting corners in the steps is not an option I see.

Can you advise on the stop command? A simple ATD0?

ANBO
Member
Posts: 19
Post Re: Extended PID help
on: May 14, 2021 (GMT)

…or atD\n to reset to default to continue reading standard PIDs and/or don’t interior the car’s functions?

Thanks for your help.

cintakc
Member
Posts: 1663
Post Re: Extended PID help
on: May 14, 2021 (GMT)

Start Diagnostic: ATSP6\nATSH754\nATFCSH754\nATFCSD300000\nATFCSM1\nATCRA75C
Stop Diagnostic: ATSP6\nATSH7E0\nATFCSH7E0\nATFCSD300000\nATFCSM1\nATCRA7E8

ANBO
Member
Posts: 19
Post Re: Extended PID help
on: May 15, 2021 (GMT)

Thanks a lot.

Unfortunately none of it allows me to get to the last 3 bytes on the first frame.

Drives me crazy to see it on screen in the response, but not able to grab it ?

Pages: [1] 2
WP-Forum by: Fredrik Fahlstad, Version: 2.4
Page loaded in: 0.055 seconds.

  Follow me on twitter