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

Send UDP from C# to motion platform

Discussion in 'Miscellaneous' started by lord_of_the_ping, Aug 12, 2020.

  1. lord_of_the_ping

    lord_of_the_ping New Member

    Joined:
    Aug 5, 2020
    Messages:
    7
    Balance:
    - 0Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    Motion platform
    Hi,

    I want to send UDP packets with information from an IMU to the motion platform. I have a C# code which is sending the information to IP 127.0.0.1 and port 4123 and I can confirm the data being sent to that port through Wireshark, however an error message (ICMP) in Wireshark says that the port is unreachable. How do I make sure that the UDP packets reach the motion platform, 6DOF?

    I've seen a few plugins, but all of these are patched to a game. In my case, I don't have a game, only my own C# code.

    Thank you in advance!
  2. knaufinator

    knaufinator Active Member

    Joined:
    Nov 16, 2017
    Messages:
    199
    Occupation:
    Simulation Engineer
    Location:
    akron,ohio
    Balance:
    1,771Coins
    Ratings:
    +228 / 1 / -0
    My Motion Simulator:
    AC motor, 6DOF
    I would create a udp listening test app in c#. listen to the packets. and make sure you can decode it correctly.
    https://docs.microsoft.com/en-us/dotnet/framework/network-programming/using-udp-services

    That would at least confirm that you are sending the packets right.And that it is possible to consume them.

    I had started down the IMU to sim path a few months ago, I was going to pull the IMU data off a drone and stream it though the Rx telemetry stream. then with FPV goggles fly a drone and feel the flight.

    Good luck!
  3. lord_of_the_ping

    lord_of_the_ping New Member

    Joined:
    Aug 5, 2020
    Messages:
    7
    Balance:
    - 0Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    Motion platform
    Thank you for the response. I managed to set up the communication, I wrote my own plugin for Simtools and patched it with my C# program which sends the UDP packets.
    • Like Like x 1