All PIDs queried by OpenAuto Pro are stored in /home/pi/.openauto/config/openauto_obd_pids.ini file. Count parameter corresponds to number of configured PIDs.
Below please find example of PID configuration:
[ObdPid_X] - Each configured PID has its own section. X value is the 0-based index.
Query - Determines the PID. This value will be send directly to the ELM327 adapter. It contains Mode ID and ID of the parameter. More details about PIDs and Modes can be found at https://en.wikipedia.org/wiki/OBD-II_PIDs. Please note that PIDs supported by vehicles may vary.
PreCommands - AT commands that will be executed before querying the PID.
PostCommands - AT commands that will be executed after querying the PID.
Formula - Contains interpretation of queried data from the ELM327 adapter. Number of variables in the formula (named a-z, a2-z2, a3-z3...an-zn and so on) is determined by number of bytes received from ELM327 adapter (Each letter in the formula represents single byte of the response). Each PID has constant length (in bytes) of the response. More details can be found at https://en.wikipedia.org/wiki/OBD-II_PIDs. In case of special PIDs (e.g. PIDs that enable special diagnostic modes) just put a in the formula.
Capabilities of the formula:
[ObdPids]
Count=9
Below please find example of PID configuration:
[ObdPid_0]
Query=0105
PreCommands=
PostCommands=
Formula=a-40
[ObdPid_X] - Each configured PID has its own section. X value is the 0-based index.
Query - Determines the PID. This value will be send directly to the ELM327 adapter. It contains Mode ID and ID of the parameter. More details about PIDs and Modes can be found at https://en.wikipedia.org/wiki/OBD-II_PIDs. Please note that PIDs supported by vehicles may vary.
PreCommands - AT commands that will be executed before querying the PID.
PostCommands - AT commands that will be executed after querying the PID.
Formula - Contains interpretation of queried data from the ELM327 adapter. Number of variables in the formula (named a-z, a2-z2, a3-z3...an-zn and so on) is determined by number of bytes received from ELM327 adapter (Each letter in the formula represents single byte of the response). Each PID has constant length (in bytes) of the response. More details can be found at https://en.wikipedia.org/wiki/OBD-II_PIDs. In case of special PIDs (e.g. PIDs that enable special diagnostic modes) just put a in the formula.
Capabilities of the formula:
Quote:Operators: +, -, *, /, %, ^
Functions: abs, avg, ceil, clamp, equal, erf, erfc, exp, expm1, floor, frac, log, log10, log1p, log2, logn, max, min, mul, ncdf, nequal, root, round, roundn, sgn, sqrt, sum, swap, trunc
Trigonometry: acos, acosh, asin, asinh, atan, atanh, atan2, cos, cosh, cot, csc, sec, sin, sinc, sinh, tan, tanh, hypot, rad2deg, deg2grad, deg2rad, grad2deg