Current version of the OpenAuto Pro is 13
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Missing oil temperature
#1
I setup PID querry and gauge as it's documented:

[ObdPid_10]
Query=015C
Formula=a-40

[ObdGauge_10]
MinValue=-40
MaxValue=150
Limit=120
Formula=getPidValue(10)
Label=Oil *C
Precision=0

Which aim was to query for engine oil temperature, which according to ELM documentation should be avaliable under service 01 PID 5C

But gauge is not working, with such errors in the log:
[2020-11-22 19:54:17.091649] [0x982d0140] [error]   [OpenAuto] [ObdGetPidValueFunction] empty values, query: 015C
[2020-11-22 19:54:17.092162] [0x982d0140] [error]   [OpenAuto] [ObdManager] gauge evaluation failed, formula: getPidValue(10), what: Unable to parse values for PID with query: 015C

I have tested ELM dongle with Android application and I'm sure car is returning the value for engine oil temperature, so the PID is supported

Any help will be appreaciated,
Thanks
Car modification enthusiast, riding on Audi A3 8P 2012
https://www.a3-club.net/forum/showthread...ortback-8P

IT guy with truck driving license  Cool
Reply
#2
Could you please post the exact query and response from your Android application? Oil temperature may not be available in default ECU and querying it may require additional AT command to switch ECU ID (PreCommands and PostCommands entries in PID configuration). More details about switching ECU can be found in https://www.elmelectronics.com/wp-conten...M327DS.pdf document at page 24 (AT SH command).
Reply
#3
Aha, it looks like it requires such action

With simple querry 015C typed in command line returns: NO DATA
And 0140 querry says that PIDs from 50 to 5F ale not supported.

In the app parameter name has [ECM] prefix and provides value.

I need to investigate it futher
Car modification enthusiast, riding on Audi A3 8P 2012
https://www.a3-club.net/forum/showthread...ortback-8P

IT guy with truck driving license  Cool
Reply
#4
Ok, I found that command AT SH 00 07 E0 will switch communictaion to 7E8 can ID ECU and PID 015C returned value 7E8037F0112

Little step in the understanding Big Grin

And with below config
[ObdPid_10]
Query=015C
PreCommands=AT SH 00 07 E0
PostCommands=
Formula=a

Unfortunately value is not being returned correctly :|

There are no errors in the log, gauge display constant value 18, which is not true

Edit: ah, so module is responding with 7F code, which means that it doesn't understood the request...
Car modification enthusiast, riding on Audi A3 8P 2012
https://www.a3-club.net/forum/showthread...ortback-8P

IT guy with truck driving license  Cool
Reply
#5
I have found on some forum, that in VW CAN you can find

Calculate Speed.
ID 0x351. Speed is contained in Byte 2. Calculation is (Speed = (buf[2] * 256) + (buf[3]-1)) / 190; )

Oil Temp.
ID 0x35B Byte 4

Water Temp
ID 0x35B Byte 3. Calculation is (waterTemp = (buf[3]-64); )

Voltage
ID 0x571 Byte 0. Calculation is (Voltage = (((float)buf[0] / 2.00) + 50.00) / 10.00; )

So I'm about to test them
Car modification enthusiast, riding on Audi A3 8P 2012
https://www.a3-club.net/forum/showthread...ortback-8P

IT guy with truck driving license  Cool
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)