Looking for an efficient way to Transmit Data to Nextion Display

Discussion in 'Plugins' started by zengrf18, Aug 24, 2019.

  1. zengrf18

    zengrf18 Registered

    Joined:
    Jul 31, 2019
    Messages:
    2
    Likes Received:
    0
    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?
     
    Last edited: Aug 24, 2019
  2. juanchioooo

    juanchioooo Registered

    Joined:
    May 16, 2016
    Messages:
    947
    Likes Received:
    980
    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
     
  3. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    634
    Likes Received:
    676
    Last edited: Aug 24, 2019
    The Iron Wolf and Corti like this.

Share This Page