Mode 22 PID
Posted: Sun May 07, 2017 6:28 am
I recently purchased the UART OBDII adapter from your website. I'm using it with my Arduino Uno with great success. I recently came across a metric that I would like to use in my code (Transmission temperature for my vehicle). As far as I understand, it's a mode 22 PID. The information I found is as follows:
PID: 221940
equation: A - 40
OBD header: 7E2
Scale factor: 1x
I tried adding to the OBD2UART.h:
#define PID_TRANS_TEMP 0x221940
And then this to the temperature cases in the .cpp because they used the same equation:
case PID_TRANS_TEMP:
I'm getting a number but it isn't correct (even considering different possible temperature units) (I can verify the correct transmission temperature from the vehicle's data information center).
Are you able to point me in the right direction? Any help would be greatly appreciated. Thanks for your time.
PID: 221940
equation: A - 40
OBD header: 7E2
Scale factor: 1x
I tried adding to the OBD2UART.h:
#define PID_TRANS_TEMP 0x221940
And then this to the temperature cases in the .cpp because they used the same equation:
case PID_TRANS_TEMP:
I'm getting a number but it isn't correct (even considering different possible temperature units) (I can verify the correct transmission temperature from the vehicle's data information center).
Are you able to point me in the right direction? Any help would be greatly appreciated. Thanks for your time.