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

Trouble sending serial as Hex

Discussion in 'SimTools DIY Version' started by darkcrayon, Jul 11, 2015.

  1. darkcrayon

    darkcrayon Member

    Joined:
    Jun 27, 2015
    Messages:
    79
    Location:
    New York, NY
    Balance:
    305Coins
    Ratings:
    +34 / 1 / -0
    My Motion Simulator:
    3DOF, SCN5, 6DOF
    I'm trying to send serial commands to my G-seat with SimTools' Interface Settings. But I can't seem to figure out the right way to get Hex to actually send. I'm using a serial port monitor app to see Game Engine's output when I start up the output test, and it seems to send my hex commands as text instead of as Hex. I've selected the Hex radio button and tried entering the hex with and without spaces. What could I be missing here?

    I did try converting my hex string to text and putting that in the Startup and Shutdown spaces - and it worked! But it's a bit tough to try to work with a bunch of random ASCII characters as opposed to Hex numbers :) Also, if there is indeed a way to input Hex as is on the text lines, do the <Axis1> etc commands work the same way?

    Thanks
  2. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,282
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    49,198Coins
    Ratings:
    +5,093 / 18 / -0
    The <Axis1> commands all get replaced in the output string before sending.
    If you select hex, they will be replaced with the hex representation of the output (<Axis1>) value.
    I hope this helps?

    yobuddy
  3. darkcrayon

    darkcrayon Member

    Joined:
    Jun 27, 2015
    Messages:
    79
    Location:
    New York, NY
    Balance:
    305Coins
    Ratings:
    +34 / 1 / -0
    My Motion Simulator:
    3DOF, SCN5, 6DOF
    Ahh so I misunderstood the interface. The selection of hex/binary/decimal is only for the (<Axis>) values. I thought it was for the entire string. So it sounds like i will have to convert the string (excluding the Axis part) to ascii if that's what gets send from each text box. As i mentioned doing that did work , at least to send the startup and shutdown commands to the servos- it is just a little more unwieldy to convert a big hex string to text first before pasting it into Game Engine.

    thanks