I've read through a few posts now about custom PIDs but I'm not 100% clear on the procedure.
I've got the OBD UART adaptor hooked up and talking to the car fine with standard PIDs.
I have a custom PID I need to retrieve (AT Temp), settings out of Torque are:
OBD2 mode and PID:
2102
Equation:
f-50
OBD Header:
TCM
I note a post where Stanley says I can request Mode 2 PIDs here:
Code: Select all
int value;
obd.dataMode = 2;
if (obd.read(1, value)) {
// do something with 'value'
}
Code: Select all
int value;
obd.dataMode = 2;
if (obd.read(102, value)) {
// do something with 'value' (like the equation)
}
Do I need to change the OBD Header somewhere?
I tried adding #define PID_TRANS_TEMP 0x2102 in OBDUART.h but I'm sure that isn't correct.
Car is a Mitsubishi Pajero 2009 model if that helps/matters.
Thanks!