Adding PID's
Posted: Wed Mar 30, 2016 7:34 am
Hi there,
The obd adapter is working great, no issues and update speed is decent!
Im wanting to add a few extra PID's, basically only fueling. Requested lambda and actual lambda. So if you can guide me on the right track it would be awsome.
I started with defining the PID in the header file: (Fuel–Air commanded equivalence ratio)
#define PID_AIR_FUEL_EQUIV_RATIO 0x44
Then in the source file, i added:
case PID_AIR_FUEL_EQUIV_RATIO:
result = getLargeValue(data) * 2 / 65536;
break;
And obviously in my arduino code i added what was necessary.
Its giving me a value of zero though so im guessing its not supported or what ive done is incorrect.
Please let me know if im on the right path,
Thanks!
Nick
The obd adapter is working great, no issues and update speed is decent!
Im wanting to add a few extra PID's, basically only fueling. Requested lambda and actual lambda. So if you can guide me on the right track it would be awsome.
I started with defining the PID in the header file: (Fuel–Air commanded equivalence ratio)
#define PID_AIR_FUEL_EQUIV_RATIO 0x44
Then in the source file, i added:
case PID_AIR_FUEL_EQUIV_RATIO:
result = getLargeValue(data) * 2 / 65536;
break;
And obviously in my arduino code i added what was necessary.
Its giving me a value of zero though so im guessing its not supported or what ive done is incorrect.
Please let me know if im on the right path,
Thanks!
Nick