Results 1 to 8 of 8

Thread: RR, Girder, and MJS Toslink Select ?

  1. #1
    Newbie
    Join Date
    Jan 2006
    Location
    Akron, Ohio
    Posts
    10

    RR, Girder, and MJS Toslink Select ?

    Hello,

    I am trying to figure out if this is possible. I have the USB controlled digital Toslink Selector that MitchJS makes (shown attached). It has 4 optical inputs and 1 optical output. The 4 optical inputs consists of my PC, XMDirect, Sirius Connect, and Playstation. The optical out goes to my DSP (Audiobahn ADD51t). In order to switch the "Active Optical Port" on the MJS toslink selector I can send a generic serial command to the MJS virtual serial port (com3 on my PC) within Girder. These commands are 1, 2, 3, or 4 depending on what "Optical Port" I want to be directed to my DSP. I would like to setup RR within Girder to automatically switch to the desired optical output for whatever RR is doing at any given time. Whether it be playing PC music (optical port 1), XM (optical port 2), Sirius (optical port 3), or Playstation (optical port 4). I have tried and tried, but cannot figure out Girder well enough to be able to do this. I know the commands work, because I can create an event within Girder and change the "Active Toslink Port", which is indicated by an LED on the MJS Toslink Selector. I just cannot figure out where to plug these in to the RR GML file. Please let me know if you guys can help or if I confused the hell out of ya.

    Thanks!
    Attached Images Attached Images  

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,762
    You'll have to figure out how to send commands from RR to GIRDER. The RR GML file is currently designed to do just the OPPOSITE (from Girder to RR).

    Girder has a little program called event.exe that lets you execute events in girder from the command line. I just did it here to test, basically you have to use the RUN command in RR to run this event.exe with the event name to execute in girder. You may need to enable the internet event client plugin and you'll need to associate the events with the commands you want to execute.. a tip for you is that the event names are case sensitive so you should be sure to match up the casing of the eventstring and the parameter for event.exe.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  3. #3
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    4,413
    wow that thing is cool!

    guino, could make it native support

    its just 1 char commands to a com port

    1 selects input 1
    2 selects input 2

    soforth

    mitch
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  4. #4
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,762
    hell, if that's all you need then a frikin SWITCH.BAT file can do it..

    @echo off
    echo %1 > COM1

    Then just run it like: 'switch 1' or 'switch 2' etc.. and it will switch it..
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  5. #5
    Newbie
    Join Date
    Jan 2006
    Location
    Akron, Ohio
    Posts
    10
    Thanks! One more question concerning this. (I hope).

    Can I set the code of a button to launch a skin, and the batch file to change the toslink port?

    The normal button in the skin looks like this:
    B,000,450,200,050,"XM",""

    I'm thinking something like this so it does launches the XM skin and the batch file:
    B,000,450,200,050,"XM;RUN;C:\switch.bat 3",""

    Well, that didn't work, and I couln't find anything in the Skin Commands.txt file for this. It only shows how to make a button launch an app using the run command, not an app and a skin.

    Thanks again!

  6. #6
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,762
    this is in skin commands.txt (OBS2)... if you want to execute multiple commands at once, you need to use || to separate the commands. Also, if you run into trouble with the run command, you may try a single | instead of that space.. "XM||RUN;C:\switch.bat|3" (if space doesn't work).
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  7. #7
    Low Bitrate
    Join Date
    Jul 2004
    Location
    Gardner, KS
    Posts
    92
    If this works, then I will pick one of these up for Mitch also, it is the only thing keeping me from switching over to optical, because of all my multiple inputs. Currently I am running analog inputs through a passive mixer to one common output.

  8. #8
    Newbie
    Join Date
    Jan 2006
    Location
    Akron, Ohio
    Posts
    10
    Quote Originally Posted by guino
    this is in skin commands.txt (OBS2)... if you want to execute multiple commands at once, you need to use || to separate the commands. Also, if you run into trouble with the run command, you may try a single | instead of that space.. "XM||RUN;C:\switch.bat|3" (if space doesn't work).
    Sweet!!! That command worked. "XM||RUN;C:\switch.bat|3". I plugged it in with the other buttons and can successfully switch the active toslink port by clicking the buttons.

    Guino and Mitch ROCK! Much appreciated.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •