PowerBroker2 / ELMduino

Arduino OBD-II Bluetooth Scanner Interface Library for Car Hacking Projects
MIT License
662 stars 125 forks source link

Issue in getting the value of oilTemp() #215

Open Talha-Babar opened 10 months ago

Talha-Babar commented 10 months ago

I am using this library for multiple PIDs at a time with Bluetooth and it is working fine, but when i try to read the oil temp using float oilTemp() the sensor is not giving any data.

Would you help me in this issue?

Thanks in advance : )

jimwhitelaw commented 10 months ago

Are you receiving a “NO DATA” response? If so, that simply means that the ECU does not support that sensor/PID.

Turksat46 commented 1 month ago

I have the same issues, tried it on 3 different vehicles (a hyundai, bmw and mercedes) and it always says "NO DATA".

jimwhitelaw commented 1 month ago

@Turksat46 Do you know for certain that those vehicle all have oil temp sensors? In my (limited) experience, it is not common and I've had to add them myself with aftermarket sensors and gauges. Even if they do have, it's still possible that the manufacturers do not expose the data via the OBDII standard PIDs, but may do so with proprietary modes/PIDs. That would need to be researched for each specific vehicle.