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.
SerialSwitch is a serial port control application developed with the Road Runner VB6 SDK.
It supports Hibernation and Resume from Hibernation.
It controls the selected serial port DTR(Data Terminal Ready) and RTS(Ready to Send) lines.
This is used for delayed Amplifier start or anything else that you want to control.
You can run a small relay or transistor circuit with SerialSwitch.
It detects the serial port CD(Carrier Detect), CTS(Clear to Send), and DSR(Data Set Ready) lines.
This is used for button input to control Road Runner.
The best way to power the buttons is to use the RTS(Ready to Send)line for power to buttons.
This way you will be safe in not sinking too much current to the port.
This way you do not need any other parts other than some momentary buttons.
This way you could disable the button input when not needed.
Warning!!! If you power you buttons externally:
You should not sink more than 20 milliamps on any one line
Therefore you must use a resistor on the input lines if you power your buttons externally.
Warning!!! If you do not know how to do this, RESEARCH how to, or get help from someone who does.
I am not responsible for your BLOWN serial port!
The DTR and RTS pins are output control pins.
The CTS, DCD, and DSR pins are input control pins.
OUTPUTS:
DTR is pin #4
RTS is pin #7
Ground is pin #5
INPUTS:
CD is pin #1
CTS is pin #8
DSR is pin #6
This is looking at the COMPUTER SERIAL port
After installation go to your /Road Runner/SerialSwitch Folder and Run the SerialSwitch executable once.
It will give you a MessageBox telling you that the Com Port is Not Set! and tell you to check the SerialSwitch.ini file.
SerialSwitch will check ports 1 thru 16 and write the Com Port avaiability to SerialSwitch.ini
SerialSwitch.ini will tell you what Com Ports are Available to Control on your Box.
Change [Settings]------To-----[Settings] Or whatever Com Port you will use.
--------Port=Not Set----------Port=1
You must use the Com Port that you have your relays, circuit, ect... set up on.
You can then use SerialSwitch by itself, with the checkboxes to test your circuits. After testing close SerialSwitch.
-----------------------------------------------------------------------------------------
Road Runner Setup:
You must make these ExecTBL.ini changes to at least Start and Stop SerialSwitches with Road Runner.
-------------------------------NEW!---------------------------------------------------------
Both serial line outputs are now controlled by the SerialSwitch.ini for startup.
Both serial line outputs switch to OFF with SerialSwitch Shutdown.
Added a timer to update the status in Road Runner. Interval(in milliseconds) and Timer Enabled controlled by SerialSwitch.ini.
-----------------------------------------------------------------
These are the Custom Labels for your Skin
-----------------------------------------------------------------
!DTRStatus
!RTSStatus
!CDStatus
!CTSStatus
!DSRStatus
-------------------------------NEW!---------------------------------------------------------
------------------------------------------------------------------
These are the Custom Indicators for your Skin
-----------------------------------------------------------------
!DTRInd
!RTSInd
!CDInd
!CTSInd
!DSRInd
-------------------------------END NEW!---------------------------------------------------------
-----------------------------------------------------------------These are the Commands to control the serial lines
------------------------------------------------------------------
DTRON
DTROFF
RTSON
RTSOFF
--------------------------------------------------------------
These are examples from my DigitalFX 3 menu skin
Added Hidden Labels to First Four Menu Button Images
You can do this with Buttons also.
-----------------------------------------------------------------
-------------------------------NEW!-----------------------------------------------------
-----------------------------------------------------------------
Added a graphic to Menu_On.png and an indicator label to the skin for my Amplifier status.
-----------------------------------------------------------------
I,178,3,52,29,"!DTRInd"
------------------------------------------------------------------
------------------------------------------------------------------
SerialSwitch was tested and works on Win2k. Use at your own Risk!
Please provide Feedback
Last edited by Jebus : 05-06-2008 at 12:42 AM.
Reason: Updated to Version 3
I've been meaning to make a plugin like that for ages...
If may I suggest, add label codes to display the CTS, DSR and DCD signals in a label, so it can be used in variables, and similarly, create events like ONCTSCOM1, OFFCTSCOM1.. or something to that effect... so you can execute commands in RR based on states changed on the inputs of the serial port.
"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."
Well, I'll take that as a compliment, being it's coming from you. I wish to thank you for your abilities and producing such a fine program. I found RR to be a breeze to set up to my liking. Your foresight in the design of RR is refreshing, and guarantees it's place at the top of the list for CarPC Front Ends.
I will take your suggestions and implement them into my little plugin.
....JJG
Hi Jebus, If I wanted to run this on startup rather than when Roadrunner starts, is there a way (maybe a command line switch) where I can get the DTR and RTS to default to on automatically when I run the app?
i.e. if I still want to run my amps while playing a game and I'm not in Roadrunner.
Thanks Jebus, its an awesome little tool, works perfectly with my hardware:
I dont actually run a RR on start up I have the icon on my desktop so I can choose other apps if need be. So far I've been using XxAndyxX's volume amp control app but it only allows you to use com port 1 so being able to use other com ports with your app is awesome!
I take it there's no way to default the DTR and RTS to on before RR runs then?
I can run SerialSwitch on Windows startup no problem, it just always starts with everything off. It would be good to be able to put something in the SerialSwitch.ini or run with a switch (/d or /r or someting) to be able to have them start on as default.
No idea what I did wrong but the first time I installed it and it didn't make a directory in my road runner directory. Then I looked and realized that by default my roadrunner installed to RoadRunner (no space) and your app installed to Road Runner. So I tried to uninstall it. There wasn't an uninstall but when I hit exit/cancel the install it said "removing install files". Then I re-installed it using the custom directory path and pointed it to RoadRunner and it created a folder in the RoadRunner folder but it only had a .log file. So I copied/pasted all the files from the old directory to the new one. Whew.
Ok, so running the app works. I added the lines to the execTBL.ini file as per the readme.txt but when I load up roadrunner nothing happens. Nothing meaning it doesn't seem to load the program, doesn't turn on the serial. Only if I run the app manually. I am using DigitalFX3.0 skin if that matters.
What I'd like to do, since I might want to use sound outside of RR is just do what others asked and drop the app into startup. Or make a shortcut and put the shortcut into startup folder.
I was using amp control but as previously stated it only uses com1. My serial is on com2.
Very cool program you have here. I very much like it.
Jesus this is good, Jebus! - Looks like a cool little app.
I'm currently still bulding my carPC, but the PSU I'm using has a line for the amp remote, so I have no need for that function.
What I finally intend to do, is to have my car keyfob boot up my PC, set the car ignition to ON and then have a USB fingerprint reader start my engine and launch RR/windows in true 007 style.
What I would need to use this app for, would be to trigger a relay via COM2 (onboard) for the third point of ignition (turning your key to start the engine) and ideally to monitor the ECU tachometer signal to determine wether the car is started or not, to avoid constantly turning over the engine once already running.
Does the input signal measure the voltage ? or how does this work ?
Does version 2 include the labels update that Guino suggested ?
Do you think that any of this will be possible based on software restrictions ?
Does the input signal measure the voltage ? or how does this work ?
The input signal goes high or positive voltage to generate the event in MSCOMM control. Keep in mind you can't apply just any old voltage to the pins. You should use the serial ports own voltage to drive the pin high. Like one of the two output pins.
Quote:
Does version 2 include the labels update that Guino suggested ?
Version 2 adds the input pins and custom labels.
Version 3 adds custom indicators and a configurable timer control to update SerialSwitch status into RR.
Quote:
Do you think that any of this will be possible based on software restrictions ?
No, I would get a remote start kit and work it into my setup from that angle.
...JJG
The input signal goes high or positive voltage to generate the event in MSCOMM control. Keep in mind you can't apply just any old voltage to the pins. You should use the serial ports own voltage to drive the pin high. Like one of the two output pins.
Version 2 adds the input pins and custom labels.
Version 3 adds custom indicators and a configurable timer control to update SerialSwitch status into RR.
No, I would get a remote start kit and work it into my setup from that angle.
...JJG
I think I will likely get a fusion brain and try and work it through that, it's just space is a constraint in my setup and I also want to know it's possible before I take the plunge, so a little more researching required.
Thanks very much for your quick response, and keep up the good work!
Phil
On install when I select for it to install to c:\program files\RoadRunner it still installs to \Road Runner (with the space). My RoadRunner has no space.
Also no matter what I try I can not get roadrunner to load it up. Here is my ExecTBL.ini
I just can't get it to load up. I need it to load with RR instead of startup folder because I want it to be hidden.
I have tried to uninstall and re-install a few times but I think it still has something in the registry that makes it see it in a different folder or .. I don't know.
Can someone help?
Update: There is no space in the .exe as it is displayed in the post. I don't know why it puts that there.
Update2: I did some testing and still can not get it to load up. I changed the line to
"ExtraPrograms","RELAYS"
"RELAYS","RUN;C:\Program Files\RoadRunner\SerialSwitch\SerialSwitch.exe||SH OWWINDOW;SerialSwitch;TRUE"
to see if it would load it and maybe there was an error but since the window was hidden I didn't know.
Reloaded RR and still nothing. So I went into the serialswitch folder and manually ran it. It loaded no problem.