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

Question Sim tools network interface for SC-MBOX

Discussion in 'SimTools compatible interfaces' started by Blastertoad, Nov 21, 2023.

  1. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,251
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    48,844Coins
    Ratings:
    +5,068 / 17 / -0
    But 18 bits is more than 16 bits thou?

    Well I thought I would give a proper MBox interface a shot for v3, anyone want to test it out?
    Simply drag-drop it into SimTools v3
    upload_2023-11-22_15-6-18.png

    Max Axis Value is the max number that will be send to the MBox.
    (We might not need this as the end of the day, but I'll add it in just for some testing)
    (File Removed)
    • Useful Useful x 1
    Last edited: Dec 7, 2023
  2. Blastertoad

    Blastertoad Member

    Joined:
    Nov 21, 2023
    Messages:
    59
    Balance:
    367Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor
    @velik0ff we figured
    It seams like each char in the axis line is treated like a decimal point.
    00 00 00 03 = no movemnt
    00 00 03 00 = very very small movemnt
    00 03 00 00 = 75% - 80% of total piston travel

    So the example from docs of "00 00 60 00" is around 1.5 inch of travel but "00 60 00 00" is out of bounds and maxes out travel while throwing error.

    I will happily test the new interface. To note though the 2 other users I saw talking about the SC-MBOX would both need 6 axis inputs. There are 6axis examples in the attached manuals around page 30 -40
  3. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,251
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    48,844Coins
    Ratings:
    +5,068 / 17 / -0
    if this is hex 00 01 86 a0 then this is integer 0, 1, 134, 160 - and we are using 0 <Axis> where axis is 3 chars.
    Then since each char can have a total of 256 different values, we get this.
    (1 x 65,536) + (134 * 256) + (160) = 100000
    Hope that helps.
    Sure we can add 6axis support once we know it's working.
    Chat soon!
  4. Blastertoad

    Blastertoad Member

    Joined:
    Nov 21, 2023
    Messages:
    59
    Balance:
    367Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor
    Sorry for delay, I put a sheet together to parse hex value.

    Default settings outputs : 55 aa 00 00 14 01 00 00 ff ff ff ff 30 30 31 36 30 00 00 00 00 00 00 c3 50 00 00 c3 50 00 00 c3 50 00 00 00 00 00 00
    upload_2023-11-22_16-36-44.png

    There is data in Line that I dont know what it does if anything. Axis 1 barly driven at all, axis 2 -3 are way over driven and error out. Looks like whatever is filling Line or Time is pushing data over by 4 chars

    Here is what output looks like if I use "Max Axis Value" of 100 instead of 100000
    upload_2023-11-22_16-43-29.png
    55 aa 00 00 14 01 00 00 ff ff ff ff 30 30 32 31 35 00 00 00 00 00 00 00 32 00 00 00 32 00 00 00 32 00 00 00 00 00 00
  5. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,251
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    48,844Coins
    Ratings:
    +5,068 / 17 / -0
    Ok, I think I found the problem.
    Install with a drag-drop (just like before) and then restart SimTools.
    After SimTools is restarted, it should work as intended (I think lol)
    (File Removed)
    Last edited: Dec 7, 2023
  6. Blastertoad

    Blastertoad Member

    Joined:
    Nov 21, 2023
    Messages:
    59
    Balance:
    367Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor
    Sorry I had an error in my sheet. Here is output from v2. Axis is still shifted so axis 1 is empty

    55 aa 00 00 14 01 00 00 ff ff ff ff 30 30 30 32 34 31 00 00 00 00 00 00 c3 50 00 00 c3 50 00 00 c3 50 00 00 00 00 00 00

    upload_2023-11-22_17-54-44.png

    In comparison here is what I am getting with our workaround from yesterday

    55 aa 00 00 14 01 00 00 ff ff ff ff 00 00 00 9f 00 00 00 0a 00 01 ff ff 00 01 ff ff 00 01 ff ff 12 34 56 78 ab cd

    upload_2023-11-22_17-56-38.png
  7. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,251
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    48,844Coins
    Ratings:
    +5,068 / 17 / -0
    Ok, I just static out the line counter.

    I was just working off the python script, a mix of both if you will.
    Anyway, this one should send the right amount of bits.
    (File Removed)
    • Useful Useful x 1
    Last edited: Dec 7, 2023
  8. Blastertoad

    Blastertoad Member

    Joined:
    Nov 21, 2023
    Messages:
    59
    Balance:
    367Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor
    This is a test with v3 and setting axis 1 to 100

    Output starts off length 39 bytes, axis values pushed 1 byte :
    55 aa 00 00 14 01 00 00 ff ff ff ff 30 30 34 39 36 00 00 00 00 00 01 86 a0 00 00 c3 50 00 00 c3 50 00 00 00 00 00 00
    upload_2023-11-22_21-49-26.png

    Then moments later becomes 40 bytes in length and axis value pushed 2 bytes:
    55 aa 00 00 14 01 00 00 ff ff ff ff 30 30 34 31 30 30 00 00 00 00 00 01 86 a0 00 00 c3 50 00 00 c3 50 00 00 00 00 00 00
    upload_2023-11-22_21-52-0.png
    I suspect this change is time value as you mentioned setting line to static.

    Since we are using relative timing mode ( function code 14 01 ) time value can be set as "00 00 00 XX" where XX is a 8 bit value representing output rate in ms. Note my previouss testing supplying static "00 00 00 0a" for 10 ms rate.2.

    Also for curiosity sake what is the purpose of "Line" values that you are populating differently from examples? did you determine their function?

    Attached Files:

  9. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,251
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    48,844Coins
    Ratings:
    +5,068 / 17 / -0
    It seems to still be running the original plugin as the line bits can't change in the newest version.
    Please make sure SimTools v3 is not running.

    The put this in the search box and click enter
    "%LocalAppData%\SimTools3\InterfacePlugins"

    Then delete the "MBOX_InterfacePlugin.dll" file
    upload_2023-11-22_23-31-19.png

    Then restart simtools v3, and reinstall the last plugin above (test version 3).
    (I bet you get different results doing it this way)
  10. Blastertoad

    Blastertoad Member

    Joined:
    Nov 21, 2023
    Messages:
    59
    Balance:
    367Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor
    Ok manualy removed MBOX plugin while SimTools was closed. Dragged v3, nothing, no prompt. Dragged v2, no prompt, dragged v1, install plugin prompt popped up.
  11. Blastertoad

    Blastertoad Member

    Joined:
    Nov 21, 2023
    Messages:
    59
    Balance:
    367Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor
    Seems to be a naming issue if zip does not match name of .dll
    I redownloaded "MBOX_InterfacePlugin_v3.zip", dragged over and nothing. Renamed to "MBOX_InterfacePlugin.zip" and get the plugin prompt
  12. Blastertoad

    Blastertoad Member

    Joined:
    Nov 21, 2023
    Messages:
    59
    Balance:
    367Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor
    V3
    Output
    55 aa 00 00 14 01 00 00 ff ff ff ff 00 00 00 01 00 00 00 00 00 01 86 a0 00 00 c3 50 00 00 c3 50 00 00 00 00 00 00
    upload_2023-11-22_23-55-36.png

    Line and time are static. Axis are staying within thier windows, Length is good at 38 bytes. Since the axis values are low I am going to power up my motors and test this.

    Attached Files:

  13. Blastertoad

    Blastertoad Member

    Joined:
    Nov 21, 2023
    Messages:
    59
    Balance:
    367Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor
    @yobuddy V3 works!

    Had hardware issue on my end. Either from sending to many out of format commands or order of operations powering interface before motors, whatever it was my interface was not driving motors. Fixed by power cycling interface and servo controller. So after installing renamed v3 all is go, just need to play with the max axis value.

    That being said we desperatly need a startup and shutdown command to ease rig to initial position.
  14. velik0ff

    velik0ff New Member

    Joined:
    Aug 26, 2023
    Messages:
    8
    Balance:
    44Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    3DOF
    There is a command that should reset the platform initially, which can cause a soft recalibration, here is the code, I have not had the time to implement it in the Python script, that was the only thing left:

    ff,ff,ff,ff,ff,ff,5c,ea,1d,36,3a,59,08,00,45,00,00,2e,38,39,00,00,80,11,32,d7,c0,a8,0f,07,ff,ff,ff,ff,20,da,1c,f0,00,1a,8a,92,55,aa,00,00,12,01,00,02,ff,ff,ff,ff,00,00,00,01,00,00
  15. Blastertoad

    Blastertoad Member

    Joined:
    Nov 21, 2023
    Messages:
    59
    Balance:
    367Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor
    I am asuming that from a sniffer, so just "55,aa,00,00,12,01,00,02,ff,ff,ff,ff,00,00,00,01,00,00" has to be sent? Or does that entire block need to be sent?

    Can you enlighten me what function code 12 01 is?
  16. Blastertoad

    Blastertoad Member

    Joined:
    Nov 21, 2023
    Messages:
    59
    Balance:
    367Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor
    Oh @velik0ff, I have a question for you. I was able to set my initial distance "FN 008" a couple days ago. However now when I try to change the value it will not accept any input. Do you have any insight on why a value would become locked and how to unlock it?
  17. velik0ff

    velik0ff New Member

    Joined:
    Aug 26, 2023
    Messages:
    8
    Balance:
    44Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    3DOF
    @Blastertoad FN008 must by 3721 as that is the password for allowing to change config values on the controller.

    For resetting, these bits need to be the whole command: ff,ff,ff,ff,ff,ff,5c,ea,1d,36,3a,59,08,00,45,00,00,2e,38,39,00,00,80,11,32,d7,c0,a8,0f,07,ff,ff,ff,ff,20,da,1c,f0,00,1a,8a,92,55,aa,00,00,12,01,00,02,ff,ff,ff,ff,00,00,00,01,00,00
  18. velik0ff

    velik0ff New Member

    Joined:
    Aug 26, 2023
    Messages:
    8
    Balance:
    44Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    3DOF
    Function codes starting with 12 are for writing to the MDBox register, it is used as a log, but I have not tested it. Function codes with 11 are for reading the register.
  19. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,251
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    48,844Coins
    Ratings:
    +5,068 / 17 / -0
    This is because the system has a timeout, and collapses to it lowest point (if I remember correctly)?
    I believe it centers on power on?

    So it needs lifted to center when the game starts?
    So do we need a shutdown command too if it times out?
  20. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,251
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    48,844Coins
    Ratings:
    +5,068 / 17 / -0
    Just a thought, but it’s probably worth using a cross-over cable between the PC and the MBox (with static network settings). We can use a second network card in the gaming PC (if the user still want's to use internet from the first nic). This would provide for a much faster connection, as there would be no network traffic to compete with, and also no switch or hub to pass thru.