Hi, guys. I'm planning to make my own sim racing dashboard and control box in rFactor 2. So I would use an Arduino UNO(acting as an interchange station on information) , connecting into PC. For the dashboard module, Arduino gets telemetry data from rFactor 2 and send commands to Nextion display. Now I've added serial communication based on the official example plugin. But sometimes the numbers shown were not correct. I think it's due to the limited data length in each period of transmission(I directly converted numerical values to strings. I limited max data length in serial communication to 60, since I discovered that higher value hugely affected ingame fps). Is there another way of converting numerical data for serial communication that consumes less storage space?
I have used the simhub, arduino, display nextion, or lcd screens, but the pc uses a lot of resources when you play, so when I change from monitor to oculus rift, I already threw away all that
A bit of Googling came up with this. Always better to use an off-the-shelf protocol rather than inventing your own! https://github.com/BlueAndi/vscp-arduino Also, if you don’t want to impact the game you should perhaps use https://forum.studio-397.com/index.php?threads/rf2-shared-memory-tools-for-developers.54282/ rather than a plug-in. Your program will run its own thread completely outside rFactor.
I ran into a wall trying to get data from OBD to nextion fast enough as well, (via arduino OBD), eventually I gave up because the project size was getting to use bigger and bigger arduino boards to provide enough non software serial ports, I found the 4D systems screens to be a LOT more usefull, as they break out their own serial ports and run pretty fast internally, the screen language is like an unholy abomination of C and python, but once you get the jist of it, its a great alternative. you can see a bit of its code type here and link to the screen, (i stopped this project update after i moved most of the code to the display instead of the arduino. links to the screen in the post somewhere, no idea where you can buy depending what part of the world you are in, but i think just contact them directly? http://ceebeeoddsandsods.blogspot.com/2018/05/gps-motorcycle-logger.html