ELMduino icon indicating copy to clipboard operation
ELMduino copied to clipboard

Query to fast ?

Open FrittenFett96 opened this issue 11 months ago • 4 comments

Hi, whenever I run a query, the car's OBD2 bus is somehow disrupted. The battery and service symbols light up on the car's onboard computer. The idle speed also fluctuates. It seems to me as if too many queries are being run in too short a time. I've read that you can only run a few queries per second, otherwise the OBD2 bus will be affected. I tried both the blocking and the non-blocking variant (example code) and also tested a delay in the loop with the same result.

Car: Opel (Vauxhall) Corsa D

Hardware: Esp32-S3 OBD2 WiFi Adapter (works fine with android App)

Since I haven't found a similar case involving the Elmduino library, I think the library's time management is well-regulated. Does anyone have an idea what else could be the cause?

FrittenFett96 avatar Mar 21 '25 15:03 FrittenFett96

The ELMduino library doesn't enforce any limit on queries/sec to the adapter. I seem to recall the OBD2 spec limit is 20 queries/sec. In cases where I need to rate-limit, I typically use a timer of 200msec between queries to be safe. I've never done throughput tests, but I think that Wifi is slower than BT. Since adapters vary so much in quality, testing with another adapter is a good idea.

jimwhitelaw avatar Mar 21 '25 18:03 jimwhitelaw

Can you recommend Bluetooth ble adapters that will definitely work?

Thanks for the help.

FrittenFett96 avatar Mar 21 '25 21:03 FrittenFett96

This is good advice: https://www.carscanner.info/choosing-obdii-adapter/

I’ve had success with the Vgate and Veepeak budget adapters. I believe the OBDlink MX+ is the current gold standard, and priced accordingly.

jimwhitelaw avatar Mar 22 '25 17:03 jimwhitelaw

That report is great, thanks. I actually used a cheap adapter, which is now going back. I ordered the Vgate iCar Pro 2S and will report back on the results.

FrittenFett96 avatar Mar 23 '25 22:03 FrittenFett96