View Single Post
Old 02-16-2022, 09:56 PM   #3 (permalink)
MotorvateDIY
Base Member
 
Join Date: Nov 2016
Location: Toronto
Posts: 216
Drives: G37 Sport
Rep Power: 6789
MotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond repute
Default

Quote:
Originally Posted by SeeThruHead View Post
That is hugely exciting!
Can you share more about what kind of RTOS you're going to use and what benefits you're going to get from it?
Sure... Since I am using an ESP32, it comes with its own version of Free RTOS.
The ESP32 has 2 cores. Core 0 will be doing all the Bluetooth work. Core 1 will be managing the CAN bus, OBD requests, display update and general logic.

In the beginning, I was only planning on displaying 4 items, so the structure was designed around that. BUT now that I can change pages, I need to manage the ESP32 cycles more efficiently.

With the RTOS, I will split the tasks on core 1 to run "at the same time" (not really, but any dead time is given to a task that can do something)
The plan for tomorrow is to have the CAN bus data as its own task, the OBD requests as its own task and see how well that works as I add additional data items.

I am no expert on this... but I have a plan and will try it and see what happens

PS Thanks for your excitement!
If you are up for it, I love to meet up in the spring and chat more about this AND if I could record your car's CAN bus, that would be VERY helpful

Last edited by MotorvateDIY; 02-16-2022 at 09:58 PM.
MotorvateDIY is offline   Reply With Quote