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 > RR Plugins

Reply
 
Thread Tools Display Modes
Old 04-15-2008, 10:15 PM   #1
Newbie
 
Jebus's Avatar
 
Join Date: Dec 2007
Location: Vancouver, Wa.
Vehicle: 68 Bronco
Posts: 45
My Photos: (0)
SerialSwitch Version 3

SerialSwitch from The Garage
Version 3.0

Recommended to uninstall old versions first!

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.

------------------------------END NEW!---------------------------------------------------------


If you make these ExecTBL.ini changes SerialSwitch will be HIDDEN with Road Runner Startup

------------------ExecTBL.ini---------------------------------

"ExtraPrograms","RELAYS
"RELAYS","RUN;$RRPATH$SerialSwitch\SerialSwitch.ex e||SHOWWINDOW;SerialSwitch;FALSE"

-------------SerialSwitch Commands-----------------

"DTRON","SENDMSG;SerialSwitch;DTR_ON"
"DTROFF","SENDMSG;SerialSwitch;DTR_OFF"
"RTSON","SENDMSG;SerialSwitch;RTS_ON"
"RTSOFF","SENDMSG;SerialSwitch;RTS_OFF"

Command to close SerialSwitch on Road Runner Exit

"QUIT","CLOSEWINDOW;SerialSwitch||ENDIT"
"ENDIT","QUIT"

--------------------End ExecTBL.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

----------------------------Menu.skin------------------------
-----------------------------------------------------------------

Replaced Temp Labels at Top of Menu, Added !CDStatus label
-----------------------------------------------------------------

L,516,4,71,25,#DFX1R#,#DFX1G#,#DFX1B#,16,"Arial"," !DTRStatus","left"
L,408,4,101,25,#DFX1R#,#DFX1G#,#DFX1B#,16,"Arial", "=Buttons:","right"
L,212,4,89,25,#DFX1R#,#DFX1G#,#DFX1B#,16,"Arial"," =Amplifier:","right"
L,311,4,87,25,#DFX1R#,#DFX1G#,#DFX1B#,16,"Arial"," !RTSStatus","left"
L,575,5,40,25,#DFX1R#,#DFX1G#,#DFX1B#,16,"Arial"," !CDStatus","CENTER"
-----------------------------------------------------------------

Added Hidden Labels to First Four Menu Button Images
You can do this with Buttons also.
-----------------------------------------------------------------

L,13,411,41,47,,,,,,"EXEC;RTSOFF||="
L,14,322,41,45,,,,,,"EXEC;RTSON||="
L,11,237,44,43,,,,,,"EXEC;DTROFF||="
L,12,148,41,47,,,,,,"EXEC;DTRON||="

-------------------------------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
Attached Images
  
Attached Files
File Type: zip SerialSwitch.zip (1.45 MB, 61 views)

Last edited by Jebus : 05-06-2008 at 12:42 AM. Reason: Updated to Version 3
Jebus is offline   Reply With Quote
Sponsored Links
Old 04-16-2008, 02:53 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)
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.
__________________
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 04-17-2008, 08:50 PM   #3
Newbie
 
Jebus's Avatar
 
Join Date: Dec 2007
Location: Vancouver, Wa.
Vehicle: 68 Bronco
Posts: 45
My Photos: (0)
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
Jebus is offline   Reply With Quote
Old 04-20-2008, 01:12 PM   #4
Newbie
 
Jebus's Avatar
 
Join Date: Dec 2007
Location: Vancouver, Wa.
Vehicle: 68 Bronco
Posts: 45
My Photos: (0)
Bump:
Updated to Version 2
New features!
...JJG
Jebus is offline   Reply With Quote
Old 04-20-2008, 08:49 PM   #5
Newbie
 
Join Date: Feb 2008
Posts: 29
My Photos: (0)
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.

Last edited by Assault : 04-20-2008 at 08:52 PM.
Assault is offline   Reply With Quote
Old 04-20-2008, 10:00 PM   #6
Newbie
 
Jebus's Avatar
 
Join Date: Dec 2007
Location: Vancouver, Wa.
Vehicle: 68 Bronco
Posts: 45
My Photos: (0)
Assault,

Just change the code to close the SerialSwitch when RR closes in EXecTBL.ini.

From

"QUIT","CLOSEWINDOW;SerialSwitch||ENDIT"
"ENDIT","QUIT"

TO

"QUIT","SHOWWINDOW;SerialSwitch;TRUE||ENDIT"
"ENDIT","QUIT"


Make sure the Switch you are using is on when you close RR and the Amp will stay on.
You will have to close SerialSwitch Manually


Note that I had forgotten to add some code in the above EXecTBL.ini lines.

"RELAYS","RUN;$RRPATH$SerialSwitch\SerialSwitch.ex e||SHOWWINDOW;SerialSwitch;FALSE"

Note the addition to hide SerialSwitch on Road Runner Startup

Last edited by Jebus : 04-20-2008 at 10:07 PM.
Jebus is offline   Reply With Quote
Old 04-20-2008, 10:34 PM   #7
Newbie
 
Join Date: Feb 2008
Posts: 29
My Photos: (0)
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.

Last edited by Assault : 04-21-2008 at 05:14 AM.
Assault is offline   Reply With Quote
Old 04-21-2008, 06:00 PM   #8
Newbie
 
Jebus's Avatar
 
Join Date: Dec 2007
Location: Vancouver, Wa.
Vehicle: 68 Bronco
Posts: 45
My Photos: (0)
Well That would be easy, I'll see what I can do. Might be a couple o days. That four letter word called "work" takes up my weekdays.
...JJG
Jebus is offline   Reply With Quote
Old 04-21-2008, 08:21 PM   #9
Newbie
 
Join Date: Feb 2008
Posts: 29
My Photos: (0)
Quote: Originally Posted by Jebus View Post
Well That would be easy, I'll see what I can do. Might be a couple o days. That four letter word called "work" takes up my weekdays.
...JJG

Awesome! much appreciated Jebus!
Assault is offline   Reply With Quote
Old 05-06-2008, 01:18 AM   #10
Newbie
 
Jebus's Avatar
 
Join Date: Dec 2007
Location: Vancouver, Wa.
Vehicle: 68 Bronco
Posts: 45
My Photos: (0)
Bump:
Updated to Version 3
More New features!
...JJG
Jebus is offline   Reply With Quote
Sponsored Links
Old 05-08-2008, 06:39 PM   #11
Constant Bitrate
mpfjr's CarPC Specs
 
mpfjr's Avatar
 
Join Date: Jun 2004
Location: Corona, CA
Vehicle: 1965 Dodge A-100 Van
Posts: 215
My Photos: (0)
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.
mpfjr is offline   Reply With Quote
Old 05-14-2008, 08:22 AM   #12
Newbie
 
Join Date: Sep 2007
Location: Sussex, England
Vehicle: 1990 Toyota Sera
Posts: 10
My Photos: (0)
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 ?

Many thanks, and good work,
Phil
Impartialise is offline   Reply With Quote
Old 05-14-2008, 06:16 PM   #13
Newbie
 
Jebus's Avatar
 
Join Date: Dec 2007
Location: Vancouver, Wa.
Vehicle: 68 Bronco
Posts: 45
My Photos: (0)
Quote:
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
Jebus is offline   Reply With Quote
Old 05-15-2008, 05:07 AM   #14
Newbie
 
Join Date: Sep 2007
Location: Sussex, England
Vehicle: 1990 Toyota Sera
Posts: 10
My Photos: (0)
Quote: Originally Posted by Jebus View Post
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
Impartialise is offline   Reply With Quote
Old 06-10-2008, 06:18 PM   #15
Constant Bitrate
mpfjr's CarPC Specs
 
mpfjr's Avatar
 
Join Date: Jun 2004
Location: Corona, CA
Vehicle: 1965 Dodge A-100 Van
Posts: 215
My Photos: (0)
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

"QUIT","SendMsg;RRCDRip;showplugin||bye"
"BYE","QUIT"

/, Set Bellow the Path to the CDRip plugin (if used)
"CDRIP","PLUGIN;RRCDRip;D:\VBStuff\Road Runner\CDRip\CDRip.exe"

/, You can add commands to execute before suspend
/, and after resume, using the codes bellow:

"ONSUSPEND",""
"ONRESUME",""
"ONFILECLICK",""
"ONDIRCLICK",""
"ONPLCLICK",""
"ONDLCLICK",""
"ONPBCLICK",""


/,ADDED BY CONFIG
"IGPAUSE","!PRESET;IG3;WINAMP||SETVOL;WINAMP;1 00"
"IGRESUME","PRESET;IG3;WINAMP"

"ExtraPrograms","RELAYS"
"RELAYS","RUN;$RRPATH$SerialSwitch\SerialSwitch.ex e||SHOWWINDOW;SerialSwitch;FALSE"


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.

Last edited by mpfjr : 06-10-2008 at 06:30 PM.
mpfjr 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 09:49 PM.


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