Torque

Forums

Forums

Guest  

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




Torque » Torque OBD ECU Scanner » Torque Discussion / Ideas » Extract data from multi-line / multi-byte CAN response

Pages: 1 [2]
Author Topic: Extract data from multi-line / multi-byte CAN response
cintakc
Member
Posts: 1661
Post Re: Extract data from multi-line / multi-byte CAN response
on: June 27, 2015 (GMT)

If you activate flow control for one block of the remaining blocks will only see a single line in the response

Capp777
Member
Posts: 2993
Post Re: Extract data from multi-line / multi-byte CAN response
on: June 27, 2015 (GMT)

Have you tried adding it to the header
itself like the init string with separator
between command?

Edit:

Sorry, I confused the send command
functionality with the header field.

anko
Member
Posts: 143
Post Re: Extract data from multi-line / multi-byte CAN response
on: June 27, 2015 (GMT)

The header field only accepts Auto, HEX, TCM, ABS, INS or PAM.

moreause
Member
Posts: 637
Post Re: Extract data from multi-line / multi-byte CAN response
on: June 28, 2015 (GMT)

The 33 in my exemple what torque variable name for barometrique value

it give a variable to each pid …so you can use it in your formula if neccessary

just go into torque scan (i think it’s a plugin)

when into it you see the ecaxt same screen when you add a gage but you have the square bracket and variable name added on each PID

anko
Member
Posts: 143
Post Re: Extract data from multi-line / multi-byte CAN response
on: June 29, 2015 (GMT)

Ok. Thanks!

anko
Member
Posts: 143
Post Re: Extract data from multi-line / multi-byte CAN response
on: June 29, 2015 (GMT)

I have been able to configure my ELM327 for sending flow control messages automatically (not directly in TP, but via a workaround). Now, I do get multi-line responses back in TP. This is nice. But I have one particular request that returns about 40 lines of 8 data bytes. This request gives information on all 80 cells in the HV drive battery. It could look like this:

761 02 21 02
762 11 22 61 02 0F D2 0F D2
761 30 08 0A
762 21 0F D3 0F D5 0F D3 0F
762 22 D3 0F D3 0F D3 FF FE
762 23 FF FE FF FE FF FE 0F
762 24 D3 0F D2 0F D3 0F D3
762 25 0F D2 0F D3 0F D3 0F
762 26 D3 FF FE FF FE FF FE
762 27 FF FE 0F D3 0F D2 0F
762 28 D3 0F D2 0F D3 0F D3
761 30 08 0A
762 29 0F D3 0F D2 FF FE FF
762 2A FE FF FE FF FE 0F D3
762 2B 0F D3 0F D3 0F D3 0F
762 2C D3 0F D3 0F D3 0F D3


762 2E D2 FF FE FF FE FF FE
762 2F FF FE 0F D3 0F D3 0F
762 20 D2 0F D2 0F D2 0F D3
761 30 08 0A
762 21 0F D2 0F D3 FF FE FF
762 22 FE FF FE FF FE 0F D3
762 23 0F D3 0F D3 0F D3 0F
762 24 D3 0F D3 0F D5 0F D3
762 25 FF FE FF FE FF FE FF
762 26 FE FF FE FF FE FF FE
762 27 FF FE FF FE FF FE FF
762 28 FE FF FE FF FE FF FE
761 30 08 0A
762 29 FF FE FF FE 00 00 00

As you can see, not only after receiving the first line of data from the ECU, a flow control message has to be sent, but also after each 8th line of data received thereafter. From what I can see, the ELM327 only sends the first flow control message, and I get back only the first 9 lines of data.

Any ideas?

cintakc
Member
Posts: 1661
Post Re: Extract data from multi-line / multi-byte CAN response
on: June 29, 2015 (GMT)

configure the Flow Control
natsh761
atfcsd30080A
atfcsm1

anko
Member
Posts: 143
Post Re: Extract data from multi-line / multi-byte CAN response
on: June 30, 2015 (GMT)

I have done that. And still it only sends a FC command after the first line. And not after the 9th, 17th and so on. I suspect my ELM327 dongle is not as compatible as it is supposed to be …. :-(

anko
Member
Posts: 143
Post Re: Extract data from multi-line / multi-byte CAN response
on: July 5, 2015 (GMT)

What I learned today is that the 8 in FC message 30080A means: retrieve only the next 8 lines. If you want more than that you would have to send another FC message explicitly. I doubt that this is what there ELM327 is supposed to do.

Good news: sending AT FC SD 30000A (instead of 30080A) will retrieve the full response, after the ELM327 sent out the first FC message!

Bad news: I still haven’t been able to properly configure TP to send in this command for me :-(

anko
Member
Posts: 143
Post Re: Extract data from multi-line / multi-byte CAN response
on: October 9, 2015 (GMT)

It’s been a while. I now have a good connection between Torque Pro and my Mitsubishi Outlander PHEV hybrid vehicle. I am able to talk to many different ECUs that give complex multi-line response. For example, from the battery management unit I may get a single response with several hundreds of bytes specifying voltages and temperatures of individual cells in the drive battery.

But in order to have this work, I still need a little proxy program in between TP and the OBD dongle. After the initial connection has been established and the first AT SH is received from TP, the proxy sends:

AT FC SH
AT SH
AT FC SD 300000
AT FC SM 1

After that, every time AT SH is received from Torque Pro, the proxy forwards:

AT FC SH
AT SH

Any chance of enhancing TP such that it will do this for me for selected headers?

Lukmuel
Member
Posts: 1
Post Re: Extract data from multi-line / multi-byte CAN response
on: September 7, 2016 (GMT)

Even if this post is quiet old i’d like to ask if anyone managed to configure TP that it sends flow control message automatically?

@anko:
I found this Forum post from you
(http://www.myoutlanderphev.com/forum/viewtopic.php?f=10&t=1796) where you shared some Information for defining custom PIDs in TP for the Outlander PHEV. I tried to create those PIDs in TP and all the scanning including data from the first response line works actually fine. Now I’m struggling to get the data for the values from the other response lines (for example “Battery Total Voltage” for which data Bytes 8 and 9 are necessary)and I suspect that flow control is the reason for my problems as you mentioned before…

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

  Follow me on twitter