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

packet rate too slow

Discussion in 'SimTools Plugins' started by astone, Aug 17, 2017.

  1. astone

    astone New Member

    Joined:
    Aug 17, 2017
    Messages:
    9
    Location:
    taipei, taiwan
    Balance:
    244Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    6DOF
    I found a strange phenomenon need your help.

    When I set "packet rate=20ms" in interface dialog, I think I can get 50 output data per second.
    But the fact is when I set packet rate from 1ms to 15ms, the game engine always outputs about 64 data per second. When I set packet rate between 16ms to 30ms, the game engine just outputs 32 data per second.

    no matter what type (memory hook, UDP...) of plugin I used, I always get the above result. Could somebody help me to know what affects the packet rate?

    Thanks.
  2. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,411
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    50,714Coins
    Ratings:
    +5,166 / 19 / -0
    The 'Packet Rate' is the amount of time in ms to pause between sending packets.
    Depending on the interface your using, it may be faster or slower.

    But that's seems really slow, what are you using?
    I would think even a Arduino is allot faster than that?
    A cheep SCN serial adapter does about 250 a sec.
    yobuddy
  3. astone

    astone New Member

    Joined:
    Aug 17, 2017
    Messages:
    9
    Location:
    taipei, taiwan
    Balance:
    244Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    6DOF
    I try COM port and UDP in interface settings. for example,
    I setup 2 virtual COM ports in my desktop.
    The game engine interface sets up to one virtual COM port, and other COM port connected to a terminal window to receive the data from game engine.
    No matter COM port or UDP I used, I always get the same result -- 33data a second, when packet rate=20ms

    My simtools version is v1.3.
    OS: win10, 32bits.

    What information I can offer for this question?
  4. SeatTime

    SeatTime Well-Known Member

    Joined:
    Dec 27, 2013
    Messages:
    2,573
    Occupation:
    Retired
    Location:
    Brisbane Australia
    Balance:
    28,322Coins
    Ratings:
    +2,854 / 39 / -0
    My Motion Simulator:
    AC motor, Motion platform
    V1.3 is not supported anymore. Recommend that you start by moving to V2.
    • Agree Agree x 1
  5. astone

    astone New Member

    Joined:
    Aug 17, 2017
    Messages:
    9
    Location:
    taipei, taiwan
    Balance:
    244Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    6DOF
    I had remove v1.3 and install v2.1 yesterday, and the output rate is still low. (I found the packet rate change to output rate in v2.1)
    To simplify the question. I provide the step to reproduce the phenomenon.
    1. Lunches game engine, setup interface settings as bellows.
    1.1. interface type = network
    1.2. ip=127.0.0.1, port=6666
    1.3. output - bit rate=7, type=decimal
    1.4. interface output=<Axis1>;, output rate=20ms
    2. Lunches a receiving program to receive the data.
    3. Switch to output testing in game engine, and press turn on button.
    The game engine start to send data to receiving program.
    Then I count the data in a second, and found just 30 data in a second.

    I used this in different desktop, and results are all the same. How can I make the output data=50 when output rate sets to 20ms?

    Thanks very much.
  6. astone

    astone New Member

    Joined:
    Aug 17, 2017
    Messages:
    9
    Location:
    taipei, taiwan
    Balance:
    244Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    6DOF
    I upload 2 picture for my setting and result.

    Attached Files:

    • ge.png
      ge.png
      File size:
      188.7 KB
      Views:
      979
    • ge2.png
      ge2.png
      File size:
      36.8 KB
      Views:
      939
  7. SeatTime

    SeatTime Well-Known Member

    Joined:
    Dec 27, 2013
    Messages:
    2,573
    Occupation:
    Retired
    Location:
    Brisbane Australia
    Balance:
    28,322Coins
    Ratings:
    +2,854 / 39 / -0
    My Motion Simulator:
    AC motor, Motion platform
    Are you doing all this due to it not working, or is it purely academic ?
  8. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,603
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    151,275Coins
    Ratings:
    +11,033 / 56 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    I really don't get the purpose of what you are trying to do.

    Just so you know in SimTools 2 the Interface Settings should be like this <Axis1a>

    Why do you have start up and shutdown output set, as this is obviously not hooked up to a simulator?

    Things like your system language settings can affect UDP: https://www.xsimulator.net/community/faq/udp-games-produce-no-output-data.181/

    If it is axis analysis that your are interested in then try this handy app, which was created for that purpose: https://www.xsimulator.net/community/faq/axis-analysis-app.282/

    If that is not what you are trying to do then it would help if you explain your aim in a bit more detail.

    I am not clear on your measurement tool/process but would expect something like Iperf would work well if just looking at UDP: http://www.firewall.cx/downloads/ad...rf-network-bandwidth-delay-jitter-tester.html
    Last edited: Aug 24, 2017
  9. astone

    astone New Member

    Joined:
    Aug 17, 2017
    Messages:
    9
    Location:
    taipei, taiwan
    Balance:
    244Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    6DOF
    It's not working for my project, not academic. The output data is not similar to what the content input to simtools, so I try to check the output data and found low output rate.
  10. astone

    astone New Member

    Joined:
    Aug 17, 2017
    Messages:
    9
    Location:
    taipei, taiwan
    Balance:
    244Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    6DOF
    Here I upload my testing result, I can't understand why NB5, NB6, VBox data output are 32data, 64data... It looks something wrong..

    Attached Files:

    • 1.png
      1.png
      File size:
      84.9 KB
      Views:
      918
  11. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,411
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    50,714Coins
    Ratings:
    +5,166 / 19 / -0
    See if this makes a difference on your system buddy.
    system local.jpg
  12. astone

    astone New Member

    Joined:
    Aug 17, 2017
    Messages:
    9
    Location:
    taipei, taiwan
    Balance:
    244Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    6DOF
    Whatever win 10 is Chinese version or English version, all of them already set to "English(United States)".
  13. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,411
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    50,714Coins
    Ratings:
    +5,166 / 19 / -0
    Last time I checked output rate with SimTools v1.3 was with a scn actuator and a cheep ftdi adapter.
    And I got over 255 packets a sec with 10ms output rate for reference.
    I don't really understand how your doing your tests, sorry man.
    yobuddy
  14. astone

    astone New Member

    Joined:
    Aug 17, 2017
    Messages:
    9
    Location:
    taipei, taiwan
    Balance:
    244Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    6DOF
    Sorry, I confused.
    I really don't understand why it happened that over 255 packets a sec with 10ms output rate.

    In my understanding, packet rate is the amount of time to pause between sending packets as you said. So when the packet rate sets to 10ms, it means game engine will pause 10ms after sending "ONE" packet. Following this mindset, only less than 100 times to pause a sec. And that means less than 100 packets sent a sec. Why you can get over 255 packets a sec?

    Follows your reply - over 255 packets a sec GE sent with 10ms packet rate, that means GE sends 2.55 packets a time? so flow shows as bellows.

    send 2.55 packets -> pause 10ms -> send 2.55 packets -> pause 10ms.........

    is it right?
  15. SeatTime

    SeatTime Well-Known Member

    Joined:
    Dec 27, 2013
    Messages:
    2,573
    Occupation:
    Retired
    Location:
    Brisbane Australia
    Balance:
    28,322Coins
    Ratings:
    +2,854 / 39 / -0
    My Motion Simulator:
    AC motor, Motion platform
    :popcorn....:).
  16. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,411
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    50,714Coins
    Ratings:
    +5,166 / 19 / -0
    @astone,
    its been forever since I did the tests with v1.3 buddy.
    So it may have been with a 1ms pause, my bad.
    yobuddy
  17. astone

    astone New Member

    Joined:
    Aug 17, 2017
    Messages:
    9
    Location:
    taipei, taiwan
    Balance:
    244Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    6DOF