The MP3car.com Store  

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.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > Road Runner

Reply
 
Thread Tools Display Modes
Old 03-02-2006, 08:05 PM   #1
Newbie
 
Join Date: Jan 2006
Location: Akron, Ohio
Vehicle: 1999 BMW M3
Posts: 10
My Photos: (0)
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
 
ajweinsh is offline   Reply With Quote
Sponsored Links
Old 03-02-2006, 08:33 PM   #2
RoadRunner Mastermind
guino's CarPC Specs
 
guino's Avatar
 
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Vehicle: 04/Mazda/RX-8
Posts: 8,025
My Photos: (5)
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."
guino is offline   Reply With Quote
Old 03-02-2006, 09:32 PM   #3
Maximum Bitrate
 
Join Date: Oct 2004
Posts: 689
My Photos: (0)
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
mitchjs is offline   Reply With Quote
Old 03-02-2006, 10:00 PM   #4
RoadRunner Mastermind
guino's CarPC Specs
 
guino's Avatar
 
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Vehicle: 04/Mazda/RX-8
Posts: 8,025
My Photos: (5)
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."
guino is offline   Reply With Quote
Old 03-03-2006, 12:24 AM   #5
Newbie
 
Join Date: Jan 2006
Location: Akron, Ohio
Vehicle: 1999 BMW M3
Posts: 10
My Photos: (0)
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!
ajweinsh is offline   Reply With Quote
Old 03-03-2006, 12:46 AM   #6
RoadRunner Mastermind
guino's CarPC Specs
 
guino's Avatar
 
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Vehicle: 04/Mazda/RX-8
Posts: 8,025
My Photos: (5)
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."
guino is offline   Reply With Quote
Old 03-03-2006, 06:41 AM   #7
Low Bitrate
 
Join Date: Jul 2004
Location: Gardner, KS
Vehicle: 2001 Mitshibishi Montero
Posts: 92
My Photos: (0)
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.
jcaesar625 is offline   Reply With Quote
Old 03-03-2006, 05:07 PM   #8
Newbie
 
Join Date: Jan 2006
Location: Akron, Ohio
Vehicle: 1999 BMW M3
Posts: 10
My Photos: (0)
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.
ajweinsh is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT -5. The time now is 10:39 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics