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

How to get X-sim data?

Discussion in 'New users start here - FAQ' started by sSnake, Jun 6, 2009.

  1. sSnake

    sSnake New Member

    Joined:
    Jun 5, 2009
    Messages:
    3
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Hi all, I'm new here, I googled this amazing software just now and I'm so excited to find this software :D

    I'm now building up an outgauge by a sigle-chip-microcomputer (89S52), I've almost finished my project and it works all fine with LFS.
    And I believe you may know, before I know the x-sim, to getting LFS data, I just need to acquire a network packge from 127.0.0.1, I've write a small program via VB6 and the program do a little translation of the data and send it to a sieral port, to which my hardware is connected, and another program I wrote in the sigle-chip-microcomputer reads the data and then do some work to control the leds, numerical code tube etc. ( I want to extend the hardware later by adding the LCD module, or even motors, .....all based on the control by the microcomputer) you can watch the device here:
    http://www.youtube.com/watch?v=tKrYAnuilgc&feature=related

    But since I'm not professional on programming, I'm not able to get other games' data, and that's why I've found the X-sim and asking help now.
    Reading through the manual file, it seems that, although x-sim is able to read data from various of game, but the output of x-sim is only to real actuators, is it possible to trasmit the data read from x-sim to my own program? If so, how to do it?

    I'm very appreciated if you can help me, and again, nice to meet you all!

    Greetings from Shanghai, China
  2. RaceRay

    RaceRay Administrator Staff Member SimAxe Beta Tester

    Joined:
    Nov 8, 2006
    Messages:
    4,657
    Occupation:
    Self-employed | Web and application development
    Location:
    Hamburg, Germany
    Balance:
    23,875Coins
    Ratings:
    +2,033 / 13 / -0
    My Motion Simulator:
    2DOF, DC motor, SimAxe, SimforceGT
    Hi,

    a warm welcome from me :)

    Please read the manual of the X-Sim software. You are able to send values like speed, temperature, gear and many more via x-sims internal USO interface to a rs232 device of your choice. That can be a real one or a virtuell device.

    You can try to install any virtual rs232 driver and should be able are able to send the data to. Alternatively you can use the x-sim api to make your own programs. For detailed programming questition please ask sirnoname.

    X-SIM docs -USO:
    http://www.x-simulator.de/wiki/Read_more_about_the_Universal_Serial_Output_(USO)


    regards
  3. sSnake

    sSnake New Member

    Joined:
    Jun 5, 2009
    Messages:
    3
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Thanks for the reply Raceray :)

    I think the mapping RS232 approach is a bit complex, besides, I should decode the formatting of the RS232 data sent by X-sim before I can use the data of my own.

    I'm more perfer to use the API of X-SIM, but the URL you sent seems unworkble
    BTW, I've found some articles about the MMF, is it the way to get X-SIM data?
  4. RaceRay

    RaceRay Administrator Staff Member SimAxe Beta Tester

    Joined:
    Nov 8, 2006
    Messages:
    4,657
    Occupation:
    Self-employed | Web and application development
    Location:
    Hamburg, Germany
    Balance:
    23,875Coins
    Ratings:
    +2,033 / 13 / -0
    My Motion Simulator:
    2DOF, DC motor, SimAxe, SimforceGT
    Another try with the URL :)
    i repaired the link.

    regards