How can I communicate continuously with the OBD II ELM327 adapter?

I am currently working on an application where I have established a connection with OBD II ELM 327 and I can read data from OBD II. For example, I used the OBD command " 01 0C " to get the vehicle speed.

I want to get real-time data, for example. speed or rpm from the car. This is the moment when I'm stuck. I do not receive - " How can I constantly receive real-time data from a vehicle?

I know OBD II responds to every AT or OBD command. I think that if I re-send any command to the OBD II adapter, it will send data every time.

Can someone tell me how I can send a single command, for example. "01 0C" continuously? What method should I use to get real data from the vehicle?

Please someone help me figure this out. Any guidance would be a big help.

Thanks.

+4
source share
1 answer

To perform continuous communication with the OBD-II ELM-327, there is no choice but to periodically request data for data. I have done this successfully for the application.

Also check Eric Smeckens answer in the following thread:

Send several OBD commands together and get a response at the same time

to speed up communication.

0
source

Source: https://habr.com/ru/post/1489685/


All Articles