11 seconds to run my loop how do I get a faster refresh rate?
-
- Posts: 3
- Joined: Mon Aug 26, 2019 8:07 am
11 seconds to run my loop how do I get a faster refresh rate?
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?
Re: 11 seconds to run my loop how do I get a faster refresh rate?
Some ECUs responds faster to PID queries while some reponds more slowly. Have you tried the simple OBD reading sketch?
-
- 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?
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.