Torque

Forums

Forums

Guest  

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




Torque » Torque OBD ECU Scanner » Torque Discussion / Ideas » Mode

Pages: [1] 2
Author Topic: Mode
lefarmerjr
Member
Posts: 12
Post Mode
on: February 26, 2014 (GMT)

Has anyone figured out the PID code to collect Mode data, specifically the OBD monitor rate data (In-use Performance Tracking values)? I normally use a SilverScan (DiagRA) tool or sometimes Ease Diagnostics but needed something more portable and this seems to fill the bill. I just need to know what PIDs to ask for and how to ask using Torque.

If someone has already done a custom plug-in that would be great.

lefarmerjr
Member
Posts: 12
Post Re: Mode 9 Data
on: February 27, 2014 (GMT)

more info on my request:

I am using software designed to test the OBD functionality of vehicles according to SAE J1699-3 standards. The software sends a series of commands and logs the responses.

For the Mode In-Use Tracking Performance test the system seems to be sending the following (direct quote from the log):

+000000ms NETWORK: TX MSG: 2207943704usec ISO15765 00 00 07 DF 09 08

I believe the last four characters: 09 08 is the actual command for the Mode to transmit the IPT data stream.

The system next logs a response:

+000032ms NETWORK: RX MSG: 2207983704usec ISO15765 00 00 07 E8 49 08 14 00 C8 03 86 00 8E 00 C8 00 8E 00 C8 00 76 00 C8 00 76 00 C8 00 BF 00 C8 00 00 00 00 00 13 00 27 00 60 00 C8 00 60 00 C8

I believe the 07 E8 is the name of the responding ECU. The 49 08 seems to relate to the number of items to be sent and the remainder is the HEX data for the various data elements of the IPT data.

Here is what I get as the decoded info:

+000265ms INFORMATION: ECU ID: 0x7E8
+000000ms INFORMATION: INF SIZE: 0x8 20
+000015ms INFORMATION: OBDCOND = 200
+000000ms INFORMATION: IGNCNTR = 902
+000016ms INFORMATION: CATCOMP1 = 142
+000000ms INFORMATION: CATCOND1 = 200
+000000ms INFORMATION: CATCOMP2 = 142
+000000ms INFORMATION: CATCOND2 = 200
+000000ms INFORMATION: O2SCOMP1 = 118
+000000ms INFORMATION: O2SCOND1 = 200
+000016ms INFORMATION: O2SCOMP2 = 118
+000000ms INFORMATION: O2SCOND2 = 200
+000000ms INFORMATION: EGRCOMP = 191
+000000ms INFORMATION: EGRCOND = 200
+000000ms INFORMATION: AIRCOMP = 0
+000000ms INFORMATION: AIRCOND = 0
+000000ms INFORMATION: EVAPCOMP = 19
+000000ms INFORMATION: EVAPCOND = 39
+000000ms INFORMATION: SO2SCOMP1 = 96
+000015ms INFORMATION: SO2SCOND1 = 200
+000000ms INFORMATION: SO2SCOMP2 = 96
+000000ms INFORMATION: SO2SCOND2 = 200

I have verified that the various elements correspond to these data points (ie: HEX 00 C8 = 200).

When I created a PID in Torque to send 09 08 to the ECU what I get back is a stream of numbers that are NOT HEX but I have no idea how to interprete them. Is there a way to tell Torque that the data will be in HEX form? I think that maybe it is seeing the data stream and misinterpreting it as numerical data rather than HEX.

Any thoughts?

Capp777
Member
Posts: 2993
Post Re: Mode
on: February 28, 2014 (GMT)

Have you looked at the pushbutton
display (send cmnd) in test mode?

It will send an obdii command and
you can review the response in test
mode. The elm data is returned in
hex.

Edit:

If you create a custom pid for each of
the items in your response layout you
should be able to extract the desired
byte(s) of info with using the appropriate
variable(s). Torque assigns A,B,C…,AA,AB… etc.
to data bytes (not including the header).

Torgue will display the value in decimal
according to your equation.

0x7E8 ECU responding (7E0+8)
0x49 (09+40) mode response
0x08 pid
0x14 # of data items returned in response

0x00 data byte A (0)
0xC8 data byte B (200)
Equation: (A*256)+B = 200

0x03 data byte C (03)
0x86 data byte D (134)
Equation: (C*256)+D = 902

etc.

Here is what I get as the decoded info:

+000265ms INFORMATION: ECU ID: 0x7E8
+000000ms INFORMATION: INF SIZE: 0x14 (20 data items)

+000015ms INFORMATION: OBDCOND = 200 (A*256)+B
+000000ms INFORMATION: IGNCNTR = 902 (C*256)+D
+000016ms INFORMATION: CATCOMP1 = 142 (E*256)+F
+000000ms INFORMATION: CATCOND1 = 200 (G*256)+H
+000000ms INFORMATION: CATCOMP2 = 142 (I*256)+J
+000000ms INFORMATION: CATCOND2 = 200 (K*256)+L
+000000ms INFORMATION: O2SCOMP1 = 118 (M*256)+N
+000000ms INFORMATION: O2SCOND1 = 200 (O*256)+P
+000016ms INFORMATION: O2SCOMP2 = 118 (Q*256)+R
+000000ms INFORMATION: O2SCOND2 = 200 (S*256)+T
+000000ms INFORMATION: EGRCOMP = 191 (U*256)+V
+000000ms INFORMATION: EGRCOND = 200 (W*256)+X
+000000ms INFORMATION: AIRCOMP = 0 (Y*256)+Z
+000000ms INFORMATION: AIRCOND = 0 (AA*256)+AB
+000000ms INFORMATION: EVAPCOMP = 19 (AC*256)+AD
+000000ms INFORMATION: EVAPCOND = 39 (AE*256)+AF
+000000ms INFORMATION: SO2SCOMP1 = 96 (AG*256)+AH
+000015ms INFORMATION: SO2SCOND1 = 200 (AI*256)+AJ
+000000ms INFORMATION: SO2SCOMP2 = 96 (AK*256)+AL
+000000ms INFORMATION: SO2SCOND2 = 200 (AM*256)+AN

lefarmerjr
Member
Posts: 12
Post Re: Mode
on: February 28, 2014 (GMT)

CAPP777,

thanks for the advice. I am able to run the test and get the data out for all the elements but it comes out in a long table with multiple lines using the Test Button. I will try the formula process on the individual bytes next.

How do I then create a report with the elements as seen in the SilverScan report? When I am at the shop I would just use the SilverScan but in the field the cell phone would be great if I could generate and save (email?) a report.

thanks again.

Capp777
Member
Posts: 2993
Post Re: Mode
on: March 1, 2014 (GMT)

If the custom displays work you can
add the pids to your vehicle file logging
which can then be imported into a
Windows program where you will have
to create the report from the raw data.

The data is stored on your phone
as comma separated values file (.csv).
You should be able to share this file to
email. Again, it will only contain the
raw data. You can import into Excel
or Word to create a formatted report
using the data.

The +xxxxxxms value looks like a calculated
timing value from your special reporting software
which will not be available from Torque.

Alternately,

You could create dashboard displays with
your pids and take a snapshot of the screens
which then can be emailed as pictures. (Using
digital display types).

Would be interesting to know what all that
data represents to a lay person :-)

Edit:

OBDCOND
OBDCOND
Header: 7DF
Mode/Pid: 0908
Equation: (A*256)+B
Units: Counts

IGNCNTR
IGNCNTR
Header: 7DF
Mode/Pid: 0908
Equation: (C*256)+D
Units: Counts

etc.

FYI… each pid will poll 0908 independent
of the other pids. Hopefully this will not
cause issues with your reports.

lefarmerjr
Member
Posts: 12
Post Re: Mode
on: March 1, 2014 (GMT)

CAPP777

Thanks for your help so far. Is there a way to post a screen shot for others to see?

I am working thru the data elements with the formulas but so far I seem to be having problems moving from one car to the next. This is all generic stuff (not like Mode 22) so I can’t yet figure out what is happening. I thought I had it yesterday but when I tried it on another car today the raw strings look quite different and the formulas just yield Zero as an answer.

For your info this is the In Use Performance Tracking data that shows how well the OBD system is performing in running its various tests. IGNCNTR is the number of Key ON events since the last hard clear (not just DTC clear), OBDCOND is the number of drive cycles that met the basic requirement for OBD monitors to run. The various other data elements are the monitors (Catalyst, O2 Sensor, Evap, etc.) with the COMP being the number of times the monitor ran to completion (Pass or FAil) and COND the number of times that monitor was enabled and should have run – except for Evap that will normally be equal to the OBDCOND value. These are all in counts and can go well above 1000, I am setting the maximum to 10,000 just in case. Where the PID edit asks for data type should I enter counts or just leave it blank?

Thanks for your help so far. I think I am finally getting somewhere.

Capp777
Member
Posts: 2993
Post Re: Mode
on: March 1, 2014 (GMT)

I believe others are using services like
dropbox, photobucket etc. to store their
images then copying the public or img
link to the Torque forum post.

Can you copy and paste the text from
your different response?

I’m guessing the protocol maybe the
difference?

Look under the adapter status icon
to see protocol being used.

Edit:

Setting the unit type to Counts is
recommended. It will show in the
displays.

lefarmerjr
Member
Posts: 12
Post Re: Mode
on: March 3, 2014 (GMT)

capp777

I hve now tried to download two other vehicles: a 2005 Volvo XC90 and a 2009 Volvo C70 with differing results. On the 2009 the headers are greatly different and are repeated on each line of data while on the 2005 there is only one header then 5 subsequent lines of data.

I can manually parse the data to get the values I need but I’d really like this to be more automated. On the 2009 I keep getting Result = 0 when I test the PID while the 2005 actually gives me values. Unfortunately when I do the PID Scan I get no data returned as if the PID wasn’t there.

Just for info I have hand scribed the data from the 2009 into a spreadsheet with I copy below. You can see the headers on each line that I dont get on the 2005, or for that matter on the 2014 Chevy Express van that I started this exercise trying to download:

18DAF1101023490810006E00
18DAF11021D20062006E0000 18DAF110220000005D006E00
18DAF1102300000000A7006E
18DAF1102400000000001D00
18DAF1102532000000000000

4908 10 006E 00D2 0062 006E 0000 00000 005D 006E 0000 0000 00A7 006E 0000 0000 001D 0032

OBDCNTR 110
IGNCNTR 210
CATCNTR1 98
CATCOND1 110
CATCNTR2 0
CATCOND2 0
O2SCNTR1 93
O2SCOND1 110
O2SCNTR2 0
O2SCOND2 0
EGRCNTR1 167
EGRCOND1 110
AIRCNTR 0
AIRCOND 0
EVAPCNTR 29
EVAPCOND 50

Capp777
Member
Posts: 2993
Post Re: Mode
on: March 3, 2014 (GMT)

The following is a multi-line response used
by the protocol. The first portion are the 29 bit
header bytes followed by a control byte for
assembling the message.

Note the characters after the header portion
10, 21, 22, 23, 24, 25 set the assembly order
of the message. (PCI byte).

0x23 # bytes following in the response. (35) padded with zeros afterwards to complete frame.

0x49 (09+40) mode response
0x08 pid
0x10 # data items returned (16)

Torque should still only use the data bytes
for its variables.

……………………………………..A…B…C
18DAF110 10 23 49 08 10 00 6E 00

……………………D…E…F…G…H…I… J
18DAF110 21 D2 00 62 00 6E 00 00

……………………K…L…M…N…O…P…Q
18DAF110 22 00 00 00 5D 00 6E 00

……………………R…S…T…U…V…W…X
18DAF110 23 00 00 00 00 A7 00 6E

……………………Y…Z…AA.AB.AC.AD.AE
18DAF110 24 00 00 00 00 00 1D 00

…………………..AF
18DAF110 25 32 00 00 00 00 00 00

You may have to specify a header in
the pid editor to get a valid response.

DA10F1 ?

0xDA is message type (physical addressing)
0x10 is ecu
0xF1 is tester

0x18 is a priority byte automatically added by elm
to the front of the message.

A message encapsulated in a message.

OBDCNTR
OBDCNTR
Header: DA10F1
Mode/Pid: 0908
Equation: (A*256)+B
Units: Counts

Does this respond?

lefarmerjr
Member
Posts: 12
Post Re: Mode
on: March 5, 2014 (GMT)

Capp777,

thanks for all your help so far. I tried the header you suggested and still got results = 0.0. I then tried several other combinations and none yielded the desired values. Some even just said no data available. I must be missing something.

I wish I could find a way to just take a screen shot of what I see and post it here. That would be a really valuable feature. It won’t even let me paste something I copy from elsewhere other than pure text.

Is there anything needed in the Diagnostic Start or Stop fields? How about the Header = Auto instead of the one on the testing data screen. By the way, the actual header is as follows: 18DAF110 with the first line then being 1023490810 before the first data byte and the subsequent lines are then just 21, 22, 23 24 and 25 before beginning the data bytes. What should the header be? Blank doesnt work I know.

Capp777
Member
Posts: 2993
Post Re: Mode
on: March 5, 2014 (GMT)

Quote from lefarmerjr on March 5, 2014
Capp777,

thanks for all your help so far. I tried the header you suggested and still got results = 0.0. I then tried several other combinations and none yielded the desired values. Some even just said no data available. I must be missing something.

I wish I could find a way to just take a screen shot of what I see and post it here. That would be a really valuable feature. It won’t even let me paste something I copy from elsewhere other than pure text.

Is there anything needed in the Diagnostic Start or Stop fields? How about the Header = Auto instead of the one on the testing data screen. By the way, the actual header is as follows: 18DAF110 with the first line then being 1023490810 before the first data byte and the subsequent lines are then just 21, 22, 23 24 and 25 before beginning the data bytes. What should the header be? Blank doesnt work I know.

End Quote.

I was finally able to post a pic using dropbox following the
advice of MJ:

Create a public folder in dropbox using laptop.

Move the desired pic into that folder.

Using the laptop copy public link.

In Torque post click the pic icon to insert special fields.

Click between the two fields for insertion point.

Paste the public link between the two fields.

Suggest you size the picture to no larger than 4″ to fit
nicely in Torque post before adding to post.

Header:

By all means try Auto and see if Torque will use
the correct header.

A special elm command may be needed to set the
priority byte. (The elm should use 18 as a default).

If your point is the F110 are reversed… in a response
the role of receiver/transmitter are reversed as the
ecu is “transmitting” back to the “receiving” scan tool.

The diagnostic start/stop command fields are new
to the pid editor. They should not be used.

Capp777
Member
Posts: 2993
Post Re: Mode
on: March 5, 2014 (GMT)

More info…

Quote from m j on March 2, 2014

so you create a public folder here
https://www.dropbox.com/help/16/en
more specifically here https://www.dropbox.com/enable_public_folder

then you move image to the public folder, etc etc, use [ img ] tags done

End Quote.

lefarmerjr
Member
Posts: 12
Post Re: Mode
on: March 6, 2014 (GMT)

Capp777

I tired this again today with creating a PID using the data we have and then ran the Test function. I get data back that is useable but it is still in HEX format and the formula does not return any results.

Here are two pictures I took of the screen showing the PID setup and then the Test result.

I hope this comes out OK.

lefarmerjr
Member
Posts: 12
Post Re: Mode
on: March 6, 2014 (GMT)

I dont see the pictures nor does the link seem to work. I must still have something wrong.

BTW, Dropbox says that accounts since 2012 no longer have a Public Folder.

Capp777
Member
Posts: 2993
Post Re: Mode
on: March 6, 2014 (GMT)

Use the links in my last post while
logged in from your desktop web
browser.

The links above allow you to enable
the public folder for your account
which has been disabled by default
for newer accounts.

After completing the steps successfully
dropbox will create a public folder
in your account.

Posting a pic works but only with a public link.

The copy public link function appears to
only be available for pictures in your
public folder while logged in the desktop
web browser version of the software.

The copy public link function is not available
in the phone app.

My first pic is on page 11 of Trans Temp, IAT
and MAP thread and I just subscribed to dropbox
less than a month ago.

lefarmerjr
Member
Posts: 12
Post Re: Mode
on: March 6, 2014 (GMT)


i hope this works

Capp777
Member
Posts: 2993
Post Re: Mode
on: March 6, 2014 (GMT)

You are getting a valid response but it looks
like Torque is not parsing it correctly.

Ian will need to sort out why.

Can you tell me what protocol is reported under
your adapter status as being used? (Ian will need
that info to troubleshoot I believe).

I am surprised that your header is working as it
doesn’t match the order from what I have read
about 29-bit CAN headers. Back to the books
for me… my understanding must be wrong.

Is this vehicle fully OBDII compliant?

piemmm
Administrator
Posts: 6629
Post Re: Mode
on: March 6, 2014 (GMT)

Hi

This /might/ help, but do you get any further if you change the header to remove the ’18’. eg:

DA10F1 (note the F110 are swapped) instead of 18DAF110

Capp777
Member
Posts: 2993
Post Re: Mode
on: March 7, 2014 (GMT)

The top picture shows actual data
is being returned but the equation is
returning 0.0 (not the values as shown
in the response string).

A = 0x00
B = 0x74

(A*256)+B = 116

Supposedly DA10F1 returns zero as well
according to the previous posts. (9-10
posts up).

lefarmerjr
Member
Posts: 12
Post Re: Mode
on: March 7, 2014 (GMT)

Screen shot showing the adapter status. Vehicle is fully OBDII compliant.

Interesting thing happened today with Auto chosen for header type: a calculated value appeared for a few seconds, the screen blinked and I was back to 0.0. It has happened several times. Could this mean I have an issue with the BT adapter (cheap Chinese clone)?

The actual value reported by my scanner at work should be 118.

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

  Follow me on twitter