Torque

Forums

Forums

Guest  

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




Torque » Torque OBD ECU Scanner » Torque Discussion / Ideas » Cut multiline

Pages: [1]
Author Topic: Cut multiline
iacobmp
Member
Posts: 10
Post Cut multiline
on: December 17, 2021 (GMT)

Hi,
In my infiniti Q50 I am trying to get information out of the gearbox.
This is the Pid test:
Device: OBDlink LX
ISO 15764-4CAN (11bit 500k baud)
PID 2101

Equation:
A + B + C + D + E + F

Start command:
ATAT1
ATSH7E1
ATFCSD300000
ATFCSM1
10C0

Stop command
1081
ATFCSM0
ATSH7DF

0D0
0:610100000000
1:000000039E0000
2:01B6039D000000
3:00660E398C3170
4:01B3002B000904
5:960001048F0487
6:00010147000A00
7:00031D00040320
8:03200001000000
9:00000000000000
A:00003278000000
B:00359835980000
C:00000000FF0000
D:02000003010500
E:01010000000000
F:000000104A2406
0:0048FE75074600
1:00000000000000
2:00000000000000
3:00000000000000
4:00000000000000
5:00000000000000
6:00000000000000
7:00000000000000
8:00000000000000
9:00000000000000
A:00000000000000
B:00000000000000
C:00000000000000
D:00000000000000

Variables used in equation:
A=117 (hex=75, binary=01110101)
B=7 (hex=07, binary=00000111)
C=70 (hex=46, binary=01000110)
D=0 (hex=00, binary=00000000)
E=0 (hex=00, binary=00000000)
F=0 (hex=00, binary=00000000)

The result is not what is expected. Variables A B C D E and F should show the bytes of the first and second row but they show the 17 and 18 rows.

How can I see what I want?
Is it possible to shorten the answer?

Thanks

Infiniti TORQUE PRO
OBDLinx LX

cintakc
Member
Posts: 1598
Post Re: Cut multiline
on: December 17, 2021 (GMT)

try this
https://torque-bhp.com/forums/?wpforumaction=viewtopic&t=8374.0
N0, N1,… or R0, R1,…

iacobmp
Member
Posts: 10
Post Re: Cut multiline
on: December 17, 2021 (GMT)

I had already tried it with the same result.

Equation:
A + B + C + D + E + R0 + R1 + R2 + R3 + R4 + R5 + R6 +R7

0: 61 01 00 00 00 02
1: 00 00 2E 00 F3 00 00
2: 00 73 00 FA 00 00 00
3: 00 67 OE 39 8C 31 70
4: 02 7B 03 09 01 EO 00
5: 01 04 5D 04 84 04 63
6: 00 01 01 C8 02 27 01
7: 4A 00 05 03 21 03 20
8: 03 20 00 01 14 B3 00
9: 00 01 4A 00 00 01 4A
A: 01 4A 26 84 OC 1A 04
B: 35 00 00 00 00 00 00
C: 00 00 00 00 FF 02 OF
D: 02 08 00 03 04 05 03
E: 01 01 00 00 00 00 00
F: 00 00 00 10 31 1 B 04
0: 00 48 FE 75 07 46 00
1: 00 00 00 00 00 00 00
2: 00 00 00 00 00 00 00
3: 00 00 00 00 00 00 00
4: 00 00 00 00 00 00 00
5: 00 00 00 00 00 00 00
6: 00 00 00 00 00 00 00
7: 00 00 00 00 00 00 00
8: 00 00 00 00 00 00 00
9: 00 00 00 00 00 00 00
A: 00 00 00 00 00 00 00
B: 00 00 00 00 00 00 00
C: 00 00 00 00 00 00 00
D: 00 00 00 00 00 00 FF

Variables used in equation:
A=117 (hex=75, binary=01110101)
B=7 (hex=07, binary=00000111)
C=70 (hex=46, binary=01000110)
D=0 (hex=00, binary=00000000)
E=0 (hex=00, binary=00000000)
Equation steps:
=A+B+C+D+E+0+72+254+117+7+70+0+0

=A+B+C+D+E+R0+R1+R2+R3+R4+R5+R6+R7

A=R3
B=R4
C=R5
D=R6
E=R7

But row 17. Not one row. Why?

Infiniti TORQUE PRO
OBDLinx LX

Capp777
Member
Posts: 2978
Post Re: Cut multiline
on: December 18, 2021 (GMT)

Have you tried with headers on/off and
can formating on/off.

It looks like the parser is using the second
occurance of 0: as a new message.

ATH0/ATH1

ATCAF0/ATCAF1

Is this one long message or two separate
messages from different modules?

iacobmp
Member
Posts: 10
Post Re: Cut multiline
on: December 18, 2021 (GMT)

Yes, the second message is:

Header:
empty

start command:
ATAT1
ATS1
ATSH7E1
ATFCSH7E1
ATFCSD300000
ATFCSM1
10C0

stop command:
1081
ATFCSM0
ATSH7DF

I have tried many ways. With heading, without it, with spaces formatting, without it.
The result is the same. It’s as if Torque didn’t read the first 16-row section.

I’ll try the other option later.
I think I have not tried:
ATCAF0/ATCAF1
I will put the result!

Is this one long message or two separate
messages from different modules?

Is one long message

Infiniti TORQUE PRO
OBDLinx LX

piemmm
Administrator
Posts: 6623
Post Re: Cut multiline
on: December 18, 2021 (GMT)

Hi!

It’s something on the list to look at (probably next week) – the parser (because of really crap ELM327 implementations) keys the line by hex code because some adapters can corrupt the sending of the data and that was the best way at the time to recover it when multiple ECUs replied. Obviously when it loops around back to 0 this doesn’t work too well

This can probably be changed now, so I will look at improving this. It’s also probably worth mentioning that the PID editor will also get some nice improvements as well soon :)

iacobmp
Member
Posts: 10
Post Re: Cut multiline
on: December 18, 2021 (GMT)

OK thank you.
I will try to remove the automatic format in case it is solved.
Maybe I should have asked earlier in the forum. I’ve been breaking my head with this for months without finding the end.
At least I have learned a lot about my car and OBD.
Thanks in advance.

Infiniti TORQUE PRO
OBDLinx LX

piemmm
Administrator
Posts: 6623
Post Re: Cut multiline
on: December 18, 2021 (GMT)

Hi!

Ok, I’ve should have fixed this now,I just need to finish testing it and it’ll be in the next beta release in about a day if all goes well (I have some other bits to update as well before I can do the release)

iacobmp
Member
Posts: 10
Post Re: Cut multiline
on: December 19, 2021 (GMT)

in reply to Cap777, I have tried ATCAF0:

Equation:
R0+R1+R2+R3+R4+R5+R6+R7+R8+R9+R1
0+R11+1R12+R13+R14+R15+R16+R17+R
18+R19+R20

Header
empty

Start command:
ATCAF0
ATAT1
ATS1
ATSH7E1
ATFCSH7E1
ATFCSD300000
ATFCSM0
10C0

Stop command:
1081
ATCSM0
ATSH7DF

RESPONSE
Command:
2101
Response:
30 01 00 FF FF FF FF FF

Equation steps:

=48+1+0+255+255+255+255+255+R8+R9+10
+11+12+13+14+15+16+17+18+19+00

conclusion:
Disabling automatic formatting reduces the result to a single line.

When piemmm uploads the update I will test if it is already able to read the first 16 lines with the automatic format activated.

Infiniti TORQUE PRO
OBDLinx LX

piemmm
Administrator
Posts: 6623
Post Re: Cut multiline
on: December 19, 2021 (GMT)

Hi!

The beta is now out!

yes, there are 2 multiline handling sections one with CAF(basically headers off) and another for headers on

The headers on one is better, but not perfect in the version you have – if you get the beta 1.10.172 I have fixed both sections so whichever you use will be able to access all the bytes properly

iacobmp
Member
Posts: 10
Post Re: Cut multiline
on: December 19, 2021 (GMT)

Hi!
I just installed and have tested.
It works perfect.
Now to work the data.
Thank you!!

Infiniti TORQUE PRO
OBDLinx LX

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

  Follow me on twitter