Current version of the OpenAuto Pro is 12
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding custom Gauges
#1
I am having a issue getting the data for my custom gauges.  The gauges show up fine.  However there is no data.  And when I go to any of the custom gauges I create the truck click and ticks, some dash lights flash or stay one,  and the original gauges wont work until I turn off the ignition and turn it on again.
I got the PIDS from here:
7.3L PIDs for 2016 - Torque Pro and others. - Ford Truck Enthusiasts Forums (ford-trucks.com)

I put the PID in the Quary. 
For example:  openauto_obd_pids.ini (this is only part of it)

#Boost
[ObdPid_12]
Query=221440
Formula=(((A*256)+B)*0.03625)-[221442]

#Exhaust Back Pressure
[ObdPid_13]
Query=221445
Formula=((A*256)+B)*0.03625

#Exhaust Back Pressure
#(Exhaust Gauge Pressure variation)
[ObdPid_14]
Query=221445
Formula=(((A*256)+B)*0.03625)-[221442]

#Exhaust Back Pressure
[ObdPid_15]
Query=221445
Formula=(((A*256)+B)*0.03625)-[221440]

#Fuel Injector Pulse Width
[ObdPid_16]
Query=221410
Formula=((A*256)+B)*.008

#Injector Control Pressure
[ObdPid_17]
Query=221446
Formula=((A*256)+B)*.57

#Injector Pressure Regulator
[ObdPid_18]
Query=221434
Formula=A*0.39063

#Engine Oil Temperature
[ObdPid_19]
Query=221310
Formula=(((A*256)+B)/100)-40

#Torque Converter Slip
[ObdPid_20]
Query=2211b8
Formula=((A*256)+B)/4

#Transmission Gear
[ObdPid_21]
Query=2211b3
Formula=A/2

#Transmission Fluid Temperature
[ObdPid_22]
Query=221674
Formula=((A*256)+B)/8

#Transmission Fluid Temperature From Pikachu
[ObdPid_23]
Query=2211BD
Formula=(((A*256)+B)*-0.0036)+212.98

Did I do it correctly?  I also tried all the PIDS without the 22 in the front as I thought I read something that somewhere where they said the 22 was not needed.  

Any help would be appriciated.
Reply
#2
I will also not that these are the files I edited and heres what i have on them:
openauto_obd_pids.ini:
[ObdPids]
Count=24

[ObdPid_0]
Query=0104
Formula=a/2.55

[ObdPid_1]
Query=0105
Formula=a-40

[ObdPid_2]
Query=010A
Formula=a*3

[ObdPid_3]
Query=010B
Formula=a

[ObdPid_4]
Query=010C
Formula=(256*a+b)/4

[ObdPid_5]
Query=010D
Formula=a

[ObdPid_6]
Query=010F
Formula=a-40

[ObdPid_7]
Query=0110
Formula=(256*a+b)/100

[ObdPid_8]
Query=0111
Formula=(100/255)*a

#MAP
[ObdPid_9]
Query=1140
Formula=((a*256)+b)*0.03625

#Barometric Pressure
[ObdPid_10]
Query=1142
Formula=((256+b)*.03625

#Manifold Absolute Pressure
[ObdPid_11]
Query=1440
Formula=((256+b)*.03625

#Boost
[ObdPid_12]
Query=1440
Formula=(((A*256)+B)*0.03625)-[221442]

#Exhaust Back Pressure
[ObdPid_13]
Query=1445
Formula=((A*256)+B)*0.03625

#Exhaust Back Pressure
#(Exhaust Gauge Pressure variation)
[ObdPid_14]
Query=1445
Formula=(((A*256)+B)*0.03625)-[221442]

#Exhaust Back Pressure
[ObdPid_15]
Query=1445
Formula=(((A*256)+B)*0.03625)-[221440]

#Fuel Injector Pulse Width
[ObdPid_16]
Query=1410
Formula=((A*256)+B)*.008

#Injector Control Pressure
[ObdPid_17]
Query=1446
Formula=((A*256)+B)*.57

#Injector Pressure Regulator
[ObdPid_18]
Query=1434
Formula=A*0.39063


#Engine Oil Temperature
[ObdPid_19]
Query=1310
Formula=(((A*256)+B)/100)-40

#Torque Converter Slip
[ObdPid_20]
Query=11b8
Formula=((A*256)+B)/4

#Transmission Gear
[ObdPid_21]
Query=11b3
Formula=A/2

#Transmission Fluid Temperature
[ObdPid_22]
Query=1674
Formula=((A*256)+B)/8

#Transmission Fluid Temperature From Pikachu
[ObdPid_23]
Query=11BD
Formula=(((A*256)+B)*-0.0036)+212.98



openauto_obd_gauges:
                                                                                                                                                    
[ObdGauges]
Count=24

[ObdGauge_0]
MinValue=0
MaxValue=100
Limit=0
Formula=getPidValue(0)
Label=Load %
Precision=0

[ObdGauge_1]
MinValue=-40
MaxValue=215
Limit=90
Formula=getPidValue(1)
Label=Temp °C
;Formula=(getPidValue(1)*1.8)+32
;Label=Temp °F
Precision=0

[ObdGauge_2]
MinValue=0
MaxValue=765
Limit=0
Formula=getPidValue(2)
Label=Fuel kPa
Precision=0

[ObdGauge_3]
MinValue=0
MaxValue=255
Limit=0
Formula=getPidValue(3)
Label=Intake kPa
Precision=0

[ObdGauge_4]
MinValue=0
MaxValue=8000
Limit=6200
Formula=getPidValue(4)
Label=RPM
Precision=0

[ObdGauge_5]
MinValue=0
MaxValue=255
Limit=0
Formula=getPidValue(5)
Label=km/h
;Formula=getPidValue(5)*0.6214
;Label=mph
Precision=0

[ObdGauge_6]
MinValue=-40
MaxValue=215
Limit=50
Formula=getPidValue(6)
Label=Intake °C
;Formula=(getPidValue(6)*1.8)+32
;Label=Intake °F
Precision=0

[ObdGauge_7]
MinValue=0
MaxValue=655.35
Limit=0
Formula=getPidValue(7)
Label=grams/sec
Precision=2

[ObdGauge_8]
MinValue=0
MaxValue=100
Limit=0
Formula=getPidValue(8)
Label=Throttle %
Precision=0

[ObdGauge_9]
MinValue=0
MaxValue=80
Limit=10
Formula=getPidValue(9)
Label=MAP
Precision=0

#Barometric Pressure
[ObdGauge_10]
MinValue=10
MaxValue=15
Limit=0
Formula=getPidValue(10)
Label=BARO
Precision=0

#Manifold Absolute Pressure
[ObdGauge_11]
MinValue=0
MaxValue=45
Limit=10
Formula=getPidValue(11)
Label=MAP
Precision=0

#Boost
[ObdGauge_12]
MinValue=0
MaxValue=50
Limit=40
Formula=getPidValue(12)
Label=BOOST
Precision=0

#Exhaust Back Pressure
[ObdGauge_13]
MinValue=0
MaxValue=55
Limit=53
Formula=getPidValue(13)
Label=EBP
Precision=0

#Exhaust Back Pressure
#(Exhaust Gauge Pressure variation)
[ObdGauge_14]
MinValue=0
MaxValue=40
Limit=0
Formula=getPidValue(14)
Label=EGP
Precision=0

#Exhaust Back Pressure
[ObdGauge_15]
MinValue=0
MaxValue=40
Limit=0
Formula=getPidValue(15)
Label=TPD
Precision=0

#Fuel Injector Pulse Width
[ObdGauge_16]
MinValue=0
MaxValue=6
Limit=
Formula=getPidValue(16)
Label=FIPW
Precision=0

#Injector Control Pressure
[ObdGauge_17]
MinValue=0
MaxValue=4000
Limit=2800
Formula=getPidValue(17)
Label=ICP
Precision=0

#Injector Pressure Regulator
[ObdGauge_18]
MinValue=0
MaxValue=100
Limit=65
Formula=getPidValue(18)
Label=IPR
Precision=0

#Engine Oil Temperature
[ObdGauge_19]
MinValue=0
MaxValue=250
Limit=220
Formula=getPidValue(19)
Label=EOT
Precision=0

#Torque Converter Slip
[ObdGauge_20]
MinValue=0
MaxValue=1000
Limit=0
Formula=getPidValue(20)
Label=Slip
Precision=0

#Transmission Gear
[ObdGauge_21]
MinValue=0
MaxValue=4
Limit=0
Formula=getPidValue(21)
Label=Gear
Precision=0

#Transmission Fluid Temperature
[ObdGauge_22]
MinValue=0
MaxValue=250
Limit=230
Formula=getPidValue(22)
Label=TFT
Precision=0

#Transmission Fluid Temperature From Pikachu
[ObdGauge_23]
MinValue=0
MaxValue=250
Limit=230
Formula=getPidValue(23)
Label=TFT-Pika
Precision=0

openauto_obd_dashboard.ini:
[ObdDashboards]
Count=8

[ObdDashboard_0]
Name=Sport
Title=Sport dashboard
Type=0
GaugeIndex_0=4
GaugeIndex_1=1
GaugeIndex_2=6
GaugeIndex_3=0
GaugeIndex_4=8

[ObdDashboard_1]
Name=Detailed
Title=Detailed dashboard
Type=1
GaugeIndex_0=1
GaugeIndex_1=0
GaugeIndex_2=2
GaugeIndex_3=3
GaugeIndex_4=6
GaugeIndex_5=5
GaugeIndex_6=7
GaugeIndex_7=8

[ObdDashboard_2]
Name=Widget
Title=Widget
Type=2
GaugeIndex_0=1
GaugeIndex_1=0
GaugeIndex_2=5
GaugeIndex_3=4

[ObdDashboard_3]
Name=Simplified
Title=Simplified dashboard
Type=3
GaugeIndex_0=1
GaugeIndex_1=0
GaugeIndex_2=2
GaugeIndex_3=3
GaugeIndex_4=6
GaugeIndex_5=5
GaugeIndex_6=7
GaugeIndex_7=8

[ObdDashboard_4]
Name=Sport 2
Title=Sport 2 dashboard
Type=4
GaugeIndex_0=4
GaugeIndex_1=0
GaugeIndex_2=1
GaugeIndex_3=5

[ObdDashboard_5]
Name=Excursion
Title=Excursion dashboard
Type=1
GaugeIndex_0=9
GaugeIndex_1=10
GaugeIndex_2=11
GaugeIndex_3=12
GaugeIndex_4=13
GaugeIndex_5=14
GaugeIndex_6=15
GaugeIndex_7=16

[ObdDashboard_6]
Name=Excursion2
Title=Excursion2 dashboard
Type=1
GaugeIndex_0=17
GaugeIndex_1=18
GaugeIndex_2=19
GaugeIndex_3=20
GaugeIndex_4=21
GaugeIndex_5=22
GaugeIndex_6=23
GaugeIndex_7=12

[ObdDashboard_7]
Name=Excursiontest
Title=Excursiontest dash
Type=1
GaugeIndex_0=15


I will also note that in another post someone mentioned the openauto_obd_pid_info.ini file which I didnt find in the "how to" form section, only the first three i posted here.  Is there documentation on this config file?  Could this be why my gauges arent working?
Reply
#3
As of version 11 openauto_obd_pid_info.ini has been replaced by openauto_obd_pids.ini file. Documentation is available at https://bluewavestudio.io/community/show...p?tid=2044. Looks like PIDs you are trying to query are not part of the standard service https://en.wikipedia.org/wiki/OBD-II_PIDs#Service_02 . It might be required to change the header in order to query mentioned PIDs. You can use PreCommands and PostCommands config fields to execute ELM327 AT commands that change the header. More details about changing the headers are available at https://www.elmelectronics.com/wp-conten...M327DS.pdf (AT SH command).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)