11 seconds to run my loop how do I get a faster refresh rate?

Inquiry and support for Freematics products
Post Reply
fastslash25
Posts: 3
Joined: Mon Aug 26, 2019 8:07 am

11 seconds to run my loop how do I get a faster refresh rate?

Post by fastslash25 »

I have a 2012 audi a6 and I am using the obd2 uart v1 adapter, esp32, tft ili9341. I first ran my program with random numbers generated and its refresh rate was many times a second. Now that I have added the pids: rpm, map, and intake map in place of the random numbers my refresh rate is one loop every 11 seconds. I read online that people using the sparkfun adapter sent an AT0 or AT ST 01 command which changes the adaptive timing. What code do I need to add to tell my car to send pids faster?
stanley
Site Admin
Posts: 1039
Joined: Sat Mar 01, 2014 3:15 am

Re: 11 seconds to run my loop how do I get a faster refresh rate?

Post by stanley »

Some ECUs responds faster to PID queries while some reponds more slowly. Have you tried the simple OBD reading sketch?
fastslash25
Posts: 3
Joined: Mon Aug 26, 2019 8:07 am

Re: 11 seconds to run my loop how do I get a faster refresh rate?

Post by fastslash25 »

Sorry figured out my issue was that some of the data was encrypted due to my cars tune. After I selected only PIDS that returned values on my car it was working great.
Post Reply