Welcome to the MP3Car.com forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
|
03-02-2006, 08:05 PM
|
#1
|
|
Newbie
Join Date: Jan 2006
Location: Akron, Ohio
Vehicle: 1999 BMW M3
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!
|
|
|
03-02-2006, 08:33 PM
|
#2
|
|
RoadRunner Mastermind
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Vehicle: 04/Mazda/RX-8
Posts: 8,025
|
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.
__________________
Road 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."
|
|
|
03-02-2006, 09:32 PM
|
#3
|
|
Maximum Bitrate
Join Date: Oct 2004
Posts: 689
|
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
|
|
|
03-02-2006, 10:00 PM
|
#4
|
|
RoadRunner Mastermind
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Vehicle: 04/Mazda/RX-8
Posts: 8,025
|
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..
__________________
Road 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."
|
|
|
03-03-2006, 12:24 AM
|
#5
|
|
Newbie
Join Date: Jan 2006
Location: Akron, Ohio
Vehicle: 1999 BMW M3
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!
|
|
|
03-03-2006, 12:46 AM
|
#6
|
|
RoadRunner Mastermind
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Vehicle: 04/Mazda/RX-8
Posts: 8,025
|
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).
__________________
Road 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."
|
|
|
03-03-2006, 06:41 AM
|
#7
|
|
Low Bitrate
Join Date: Jul 2004
Location: Gardner, KS
Vehicle: 2001 Mitshibishi Montero
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.
|
|
|
03-03-2006, 05:07 PM
|
#8
|
|
Newbie
Join Date: Jan 2006
Location: Akron, Ohio
Vehicle: 1999 BMW M3
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.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:39 AM.
|
|