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

Getting real time data for custom motion simulator

Discussion in 'DIY Motion Simulator Projects' started by Fontys, Sep 18, 2013.

  1. Fontys

    Fontys New Member

    Joined:
    Sep 18, 2013
    Messages:
    11
    Location:
    Helmond, The Netherlands
    Balance:
    15Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    Motion platform
    Thanks for that help.
    New problem. I've been working on the plugin and testing it using one computer which isn't the computer used for the actual simulator and now that I'm trying the plugin on the simulator computer it doesn't load into rFactor 2? I start rF2 as I did on the other computer with the plugin in the plugin folder but when I start a race I don't get the plugin icon in the corner... Help!
    The only difference I can think of is that the data folder is on a different drive to the core, but that shouldn't affect it, surely?
    Last edited: Sep 23, 2013
  2. value1

    value1 Nerd SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Jan 9, 2011
    Messages:
    2,184
    Location:
    Zug, Switzerland
    Balance:
    14,797Coins
    Ratings:
    +3,322 / 11 / -1
    My Motion Simulator:
    2DOF, DC motor, JRK, Joyrider
    Try this UDPClient to see if you receive any data via udp. NB: as mentioned before, rFactor2 only starts sending data about 5 sec after the race has started!
    UDPClient.zip
  3. Fontys

    Fontys New Member

    Joined:
    Sep 18, 2013
    Messages:
    11
    Location:
    Helmond, The Netherlands
    Balance:
    15Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    Motion platform
    I already have Wireshark installed for checking packets but used UDPClient anyway. I got nothing. It just doesn't seem to load the plugin at all :S
  4. value1

    value1 Nerd SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Jan 9, 2011
    Messages:
    2,184
    Location:
    Zug, Switzerland
    Balance:
    14,797Coins
    Ratings:
    +3,322 / 11 / -1
    My Motion Simulator:
    2DOF, DC motor, JRK, Joyrider
    Double-check if the dll, that you have copied to your control PC really works on your programming PC.
    Check, if there are other, unnecessary plugins/dll's in C:\Games\rFactor2\Plugins (or wherever you have installed rFactor2) and remove them. They might interfere with your dll.
  5. Fontys

    Fontys New Member

    Joined:
    Sep 18, 2013
    Messages:
    11
    Location:
    Helmond, The Netherlands
    Balance:
    15Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    Motion platform
    I just checked and it works on my programming PC. I have a motec plugin in the original install location, but I removed that and also did a fresh install of rF2 to move it to the SSD (uninstall off HDD, reinstall on SSD) so there should be no additional DLLs. I thought it might have been one of the other programs we use while running the simulator interfering (MATLAB/Simulink and Sol7) but I restarted the computer and didn't start them and still nothing. Any other suggestions are welcome! This is annoying.
  6. Historiker

    Historiker Dramamine Adict Gold Contributor

    Joined:
    Dec 16, 2010
    Messages:
    2,161
    Occupation:
    Retired
    Location:
    Michigan USA
    Balance:
    9,201Coins
    Ratings:
    +2,164 / 19 / -1
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform, 6DOF
    Fontys, even though I cannot afford to build a hydraulic platform I would very much like to have more details on how your built yours. What parts did you use off the shelf, and what did you fabricate? How is it plumbed? What is the electrical scheme? Wonderful project, thanks again for sharing.
  7. Fontys

    Fontys New Member

    Joined:
    Sep 18, 2013
    Messages:
    11
    Location:
    Helmond, The Netherlands
    Balance:
    15Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    Motion platform
    IT WORKS! I have no idea what changed to make the UDP plugin work, but it does now. So yay. I'll send more updates etc. if people are interested.

    Hi Historiker. Our platform is a research project that was started before I started here, but nonetheless I know what they did.
    Hydraulics platform is from Bosch Rexroth: www.boschrexroth.nl/country_units/europe/netherlands/subwebsites/applications_motion_new/micromotion/index.jsp
    Force feedback previously used the power steering motor from the Mitsubishi Colt, but I am currently upgrading so it uses a better motor and controller to increase the fidelity of the Force Feedback.
    The information that this dll gets out of rF2 is sent over UDP and received by a PC/104 which runs a Simulink model. This model unpacks the UDP packet and uses the information to do several things:
    - send the correct information to the computer that controls the hydraulics so that it can move it properly
    - uses Pacejka's magic formula to calculate force feedback forces and sends them to the FFB controller
    - outputs relevant info over CAN so that the original dials in the car work as expected
    https://www.dropbox.com/s/j4w612awg26rpdz/Outline.png

    That's essentially it. There's a input and output hydraulics line for the motion platform which goes to a hydraulics cabinet, but it's fairly basic as it's pre-made mostly.