1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

My Seat Gauge Project

Discussion in 'DIY peripherals' started by PapaNoah, Aug 31, 2012.

  1. PapaNoah

    PapaNoah New Member

    Joined:
    Jun 14, 2012
    Messages:
    1
    Balance:
    1Coins
    Ratings:
    +0 / 0 / -0
    Hello everyone,
    I'm new here and would like to introduce myself in a few words:
    My name is Jürg, I'm 20 years old and from Switzerland (sorry for my English, I try my best). I recently finished my education as a software developer. My favourite programming languages are C and C#. I love to combine Hardware with High Level Tier Software in my spare time.

    It all started when I bought my G27 racing wheel from Logitech. Soon I had the idea to build my own simulator (starting with single peripherals). I was really lucky one day as I found an old Speedometer of a Seat Ibiza (97) that was quite cheap. I connected it to my Arduino Uno and now I'm able to control nearly every element (RPM, speed, fuel, warning lights, MDA display) of it. The plan is to send game data over serial port to my arduino, but the acquiring of data out of a game (especially DiRT 3) seems to be the hardest part of the project. I searched for informations for a couple of hours now, without any success. The only thing that worked was receiving motion data from DiRT 3 with a UDP client I wrote with C#, but I'm interessted in the gauge data. I would be so happy if someone could tell my how I get the data with C# or any other tips (Addresses/Offsets in Memory for example).

    Thx in advance for your answers!

    PapaNoah
  2. s4cral

    s4cral New Member

    Joined:
    Jun 7, 2011
    Messages:
    1
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Hi

    Its possible to use the dbox driver which is bundled with codemasters/dirt3 on the PC
    to access some of the telemetry via a network socket. I dont know the structure of the
    protocol but you could use a protocol analyser to figure it out.

    Here's the process for activating the socket on the PC.

    Open hardware_settings_config.xml which is located in your savegame folder of the game.
    C:\Users\yourusername\Documents\My Games\DiRT3\hardwaresettings

    Open this file and look for a line that begins with:
    <motion enabled
    Replace this line with:
    <motion enabled=true ip=127.0.0.1 port=30500 delay=1 extradata=1 />

    Cheers
  3. junhyuk Ahn

    junhyuk Ahn ARACA!!

    Joined:
    May 15, 2014
    Messages:
    13
    Location:
    Seoul, Korea
    Balance:
    753Coins
    Ratings:
    +16 / 1 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino, Motion platform

    if (extradata == 1)
    {
    //parse more packet data
    }


    i want to know packet structure and information.
    i can't find it.. T_T