Torque

Forums

Forums

Guest  

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




Torque » Torque OBD ECU Scanner » Torque Discussion / Ideas » Subaru PID - Custom PID

Pages: [1] 2
Author Topic: Subaru PID - Custom PID
davecarver68
Member
Posts: 14
Post Subaru PID - Custom PID
on: October 25, 2019 (GMT)

Has anyone added a custom PID for a Subaru PID? So far, I’ve tried many variations of converting ScanGauge data to a Torque Custom OBD. Either the data from ScanGauge is wrong or this is not possible.

Specifically I am after CVT temp and Engine Oil temp. There are many other cool CVT data points that I would like to read.

I know it is possible as the ActiveOBD for Subaru app can ready them.

I added a normal PID and a virtual PID and get back 0.

Thank you.

2014 Forester

Capp777
Member
Posts: 2994
Post Re: Subaru PID - Custom PID
on: October 25, 2019 (GMT)

Do you have an example request
and its hex response?

I am not sure if Torque allows a pid field
of five bytes. If it does you might be
able to use Rx addressing to get the
correct response bytes for the equation.

Header: 7E1

Mode/Pid: ?

Equation: R5*(9/5)-58 °F

Equation: R5-50 °C

cintakc
Member
Posts: 1663
Post Re: Subaru PID - Custom PID
on: October 26, 2019 (GMT)

Capp777
Torque allows a pid field of five bytes.
example:

"Name","ShortName","ModeAndPID","Equation","Min Value","Max Value","Units","Header"
"Forester Engine oil temperature","Oil temp","A800000113","R1-40","-40","130","grad C","7E0"
Capp777
Member
Posts: 2994
Post Re: Subaru PID - Custom PID
on: October 26, 2019 (GMT)

Thanks Cintakc!

I thought Ian had increased the pid
field but unable to test on my OBDI
Jeep. Hopefully the OP will respond
with examples of the hex responses.

I am thinking the Rx addressing will
need to be adjusted depending on
ATH1 or ATH0 response.

cintakc
Member
Posts: 1663
Post Re: Subaru PID - Custom PID
on: October 26, 2019 (GMT)

formula R1-40 works with ath0

davecarver68
Member
Posts: 14
Post Re: Subaru PID - Custom PID
on: October 28, 2019 (GMT)

I’m attempting to get the CVT temp from PID 1017.

Command: 1017
Response: 7E9037F1012

I have not yet got the hang of setting the command correct. Thank you to all for the help. I’m sure I’ve missed more.

2014 Forester

Capp777
Member
Posts: 2994
Post Re: Subaru PID - Custom PID
on: October 28, 2019 (GMT)

Have you tried…

Header: 7E1
Mode/Pid: 221017
Equation: A*(9/5)-58

Test and post raw hex response
from vehicle in the pid editor.

davecarver68
Member
Posts: 14
Post Re: Subaru PID - Custom PID
on: October 29, 2019 (GMT)

Results for equation: -59.8
Command: 221017
Response: 7E9037F2231
Variables used in equation: A=-1 (hex=1, binary=11111111111111111111111111111111) [note: 32 1’s]
Equation steps: =A*9/5-58

or

Results for equation: -25.6
Command: 1017
Response: 7E9037F1012
Variables used in equation: A=18 (hex=12, binary=00010010)
Equation steps: =A*9/5-58

I’m using a OBDLink LX and both A=-1 and A=18 where recorded at different vehicle temps with no differences.

2014 Forester

Capp777
Member
Posts: 2994
Post Re: Subaru PID - Custom PID
on: October 29, 2019 (GMT)

The 7F messages are unsuccessful.

Have you tried the pid info Cintakc
provided? It uses SSM over CAN I
believe.

https://torque-bhp.com/forums/?wpforumaction=viewtopic&t=6091.0

davecarver68
Member
Posts: 14
Post Re: Subaru PID - Custom PID
on: October 29, 2019 (GMT)

I have tried that and many other variations.

Dumb question alert – Are all ELM327 chip implemations the same?

2014 Forester

Capp777
Member
Posts: 2994
Post Re: Subaru PID - Custom PID
on: October 29, 2019 (GMT)

There are different versions like 1.5 and 2.1.
Your OBDLink LX is a quality unit and is
responding with messages from your ECU.

davecarver68
Member
Posts: 14
Post Re: Subaru PID - Custom PID
on: October 29, 2019 (GMT)

Great. I will keep digging. Next I will setup a terminal app to see the raw data. Should be fun!

I will be tying a OBDLink SX cable soon. Bluetooth is great but not as worry free as I need.

Thank you so much. I’m open for more tests.

2014 Forester

davecarver68
Member
Posts: 14
Post Re: Subaru PID - Custom PID
on: October 29, 2019 (GMT)

Another dumb question: I do not have a vehicle Profile, what setting are important? I have read that ISO9141 is needed and some mention of initiating an SSM protocol.

2014 Forester

Capp777
Member
Posts: 2994
Post Re: Subaru PID - Custom PID
on: October 30, 2019 (GMT)

Sorry I don’t know the answers to those
questions. I do know there are special
adapters for Subaru and there is a beta
SSMII protocol selectable in the adapter
settings/vehicle profile.

You might want to ask a Subaru specific
forum. Maybe someone has already
figured this out for your vehicle.

cintakc
Member
Posts: 1663
Post Re: Subaru PID - Custom PID
on: November 1, 2019 (GMT)

davecarver68, try this PID and answer in the PID Test mode
PID: A800000113
Long name: Forester Engine oil temperature
Short name: Oil temp
Min: -40
Max: 130
Scale: x1
Unit: grad C
Equation: R1-40
OBD Header: 7E0

davecarver68
Member
Posts: 14
Post Re: Subaru PID - Custom PID
on: November 1, 2019 (GMT)

I did try that one. I get a [No response] and NO DATA.

Thank you. I think I may have a bad OBDLink Lx module as I cannot get it to connect consistently to Android and not at all to Windows10. I have tried the recommended reset but it does not act as documented.

Checking on OBDLink Mx or another now.

2014 Forester

davecarver68
Member
Posts: 14
Post Re: Subaru PID - Custom PID
on: November 7, 2019 (GMT)

I have done some investigation into the OBD data and I have found my 2014 Forester communicates via CAN 11bit/500baud. Using a terminal app to connector, I can read extended PIDs using the a specific ECU (there are 2 in mine).

With headers on (ATH1), I sent: (maybe 7E8 is the same as 7E1)
>017E803221017
And got back:
7E9 10 09 41 21 00 0E 01 02
7E9 21 04 00 00 00 00 00 00

The multi line response maybe why my custom PID is failing. Still more to learn. torque is great and I would love to see this work.

2014 Forester

Capp777
Member
Posts: 2994
Post Re: Subaru PID - Custom PID
on: November 8, 2019 (GMT)

Is the leading 01 required in your header?

Also I believe your 7E8 request yielding
7E9 response seems odd. Not the +8 I
would expect.

Maybe ATCRA 7E9 would filter the answer
to your header. (Using Rx addressing may
be required to extract the correct byte(s).

cintakc
Member
Posts: 1663
Post Re: Subaru PID - Custom PID
on: November 8, 2019 (GMT)

davecarver68, try this PID and answer in the PID Test mode
PID: 0121
Long name: Test PID 0121 with header 7E1
Short name: Test PID
Min: 0
Max: 100
Scale: x1
Unit: –
Equation: B
OBD Header: 7E1

davecarver68
Member
Posts: 14
Post Re: Subaru PID - Custom PID
on: November 8, 2019 (GMT)

Hello cintakc,

For 0121 (distance with mil on) I get back:
Response: 7E90441210000
Formula: B
B=0

And from terminal:
snd 0121
rcv 0121
rcv 41 21 00 00
rcv 41 21 00 00

I do not have the headers on (ATH1) but I think that 7E8 and 7E9 responded and the test mode reads the last one.

I then did 0146 (ambient air temperature):
snd 0146
rcv 0146
rcv 41 46 33 (so no 7E9 response?)
Response: 7E803414633
Formula: A
A=51 (33hex=51dec)

Is the 04 and 03 following the header (7E9 or 7E8) the number of bits and then bits 3 and on are mapped to A, B, etc (bit 3=A, bit 4=b)?

Then … the CVT temp in PID 1017:
Terminal first:
snd 221017
rcv 221017
rcv 7F 22 31
Response: 7E9037F2231
Formula: A
A=-1 (hex=-1, binary=111 … 111) 32 1’s

Should this have been A=49 (31hex=49dec)?

2014 Forester

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

  Follow me on twitter