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

Comport not showing in USO

Discussion in 'DIY Motion Simulator Projects' started by stowaway, Feb 6, 2012.

  1. stowaway

    stowaway New Member

    Joined:
    Mar 16, 2009
    Messages:
    213
    Location:
    Gold Coast - Australia
    Balance:
    1Coins
    Ratings:
    +0 / 0 / -0
    I have my Arduino plugged in a the Comport 2 is showing in device manager.

    I can use the arduino Serial Viewing to talk to my device but it is not showing in the USO..

    I have closed all other programs down to make sure its not locked.

    Also when I get it working, is there a way to send it test values from the Profiler?
  2. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,307
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    49,490Coins
    Ratings:
    +5,109 / 18 / -0
    Maybe Try installing the latest drivers from FTDI?

    yobuddy
  3. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,440Coins
    Ratings:
    +1,684 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    ok i set mine to com port 15 and at 9600,8,noparity,onestopbit.
    ok must set uso's to 8 bit resolution
    decimal output.
    and value = (value/1*1)+0 because it read values between 1-255.
    ah a code is need for the ard to read what xsim sending it but if ya familar with serial communication with the ard its quite easy to write one up. Still stuck i can find time tomorrow to write ya one to capture values from xsim and send them back ya need a port capture program running to see what its sending back because once xsim is connected to it the ports lock only xsim can send to it, hint check my dashboards out there code there ya can butcher and create a test code, or just send me a request and i will try to find some time works busy right now, doing plenty of overtime and quite fried by the time i get home.
  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
    Hi stowaway
    Did you try to add the comport manually in the USO tab? Type \\.\COM2 into the First find one free comport and add it to the list:-field and press Add comport to list-button. Make sure to remove any unnecessary comports in the datapack section via Remove comport button! Probably this solves your problem. Profiler2-output-USO-mod.gif
    There is a TestPlugin in the Force Sender (under Choose official developer plugin). Force Sender TestPlugin.gif When you select this plugin an additional tablet opens, where you can simulate game input: TestTablet.gif
  5. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,440Coins
    Ratings:
    +1,684 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    Still need code for ard to written and uploaded or it will sit there and do nothing???
    But all info right on com port but uso set wrong.

    8bit resolution,
    decimal output
    9600, 8, Noparity,onestopbit

    datapackets for ard i have found like my dashboards you need to send a charater then the value. ie R~a01~.
    So in your code on the arduino it finds the character then follows on to read the values and assigns to the varaible R represents, and so on.

    plus what version of xsim is that havent seen that title Works.
    What are we missing. mmm
  6. stowaway

    stowaway New Member

    Joined:
    Mar 16, 2009
    Messages:
    213
    Location:
    Gold Coast - Australia
    Balance:
    1Coins
    Ratings:
    +0 / 0 / -0
    Seems to be sending 49 and 50.

    ive only recorded the first 512 bytes as thats all the space I have to record.
    ive linked the USO to a 1:1 g-force to the fist axis and started the test sender.
    I use ~a01~ to send the first axis, but it only seems to be 49,50,49,50 ....

    does that sound right?
  7. 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
    Can you post a printscreen of your USO screen? Which slider are you moving? And what's the math setup you're using? Are the values 49,50 even when you start (Start button in profiler) the profiler *after* having moved the slider?
  8. stowaway

    stowaway New Member

    Joined:
    Mar 16, 2009
    Messages:
    213
    Location:
    Gold Coast - Australia
    Balance:
    1Coins
    Ratings:
    +0 / 0 / -0
    I'll hook up a LCD and write the values to there and get back to you :)
  9. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,440Coins
    Ratings:
    +1,684 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    Just a quick note the arduino can only recieve one character at a time so ya need to format your code correctly to read what you are sending ie a code snippet from my dashboard.

    ************************* code snippet ************************************
    void loop(){
    //****************************** READ DATA FROM SERIAL ******************************
    while (Serial.available() > 0)
    {

    kind_of_data = Serial.read();
    if (kind_of_data == 'R' ) Read_Rpm();


    }
    }


    //****************************** READ DATA FROM SERIAL END ******************************


    void Read_Rpm(){

    int Rpm = 0;
    delay(2);
    int Rpm100 = Serial.read();
    delay(2);
    int Rpm10 = Serial.read();
    delay(2);
    int Rpm1= Serial.read();

    Rpm100 = ((Rpm100)-48)*100;
    Rpm10 = ((Rpm10)-48)*10;
    Rpm1 = ((Rpm1)-48)*1;
    if (Rpm10 < 0 && Rpm1 < 0){Rpm100 = Rpm100/100;Rpm10 = 0;Rpm1 = 0;}
    if (Rpm1 < 0){Rpm100 = Rpm100/10;Rpm10 = Rpm10/10;Rpm1 = 0;}

    Rpm = Rpm100+Rpm10+Rpm1;
    *********************************************************************************************

    Axis info i am sending via xsim is R~a01~ (~a01~ is a value of 1-255) as you can see above the arduino pickup the R charactor then invokes the ReadRpm procedure to read the single values coming from xsim then reformats these values back to a full figure , so once R is found it reads the next values ie 1 ,0 ,0 until it finds a charactor and reformats it back too 100 then returns to the loop.

    Hope that helps ya.
    The Arduino is a little tricky to setup but once ya done it once it becomes quite clear on how to handle the data.