PowerBroker2 / ELMduino

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

Adapter version #206

Closed themelisx closed 6 months ago

themelisx commented 6 months ago

It will be great if you add a function that will return a (float) number of the adapter version after the device is connected. This will allow to automatic enable some PID requests that depends on the adapter version

jimwhitelaw commented 6 months ago
  1. You can get the adapter version with the AT Z and AT I commands. However, many (most?) of the clone adapters return an incorrect version. I have a couple that return V1.5 which never existed!
  2. There aren’t any restrictions on which PIDs are available based on adapter versions. ELMduino/ELM327 will happily send any PID command you like and it’s up to the ECU(s) to determine if the PID is supported.
  3. The best way to check if a PID is supported is by using one of the SUPPORTED_PID commands. But parsing out the response is a pain, so the easy way is just to send the PID command. If it is not supported, you will receive “NO DATA” response.
themelisx commented 6 months ago

@jimwhitelaw thank you, got it

PowerBroker2 commented 6 months ago

I agree with Jim on this one - closing for now