Page 8 of 9 FirstFirst 123456789 LastLast
Results 71 to 80 of 84

Thread: SerialSwitch Version 5

  1. #71
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    Hi Chris,

    The Exectbl you posted is the correct one, the (BLANK) one is an empty example file.

    What is happening is:
    -ONCTS_ON is executing the hibernate
    -ONCTS_OFF is executing (I assume the switch is being reset)
    -ONCTS_ON is re-executed (the switch was again triggered/redetected) this queues another "HIBERNATE" command for RR to execute (which ends up executing after you resume the first time (causing the second hibernate).

    A simple solution is to use a variable to prevent this... try putting the following into exectbl.ini (replace the ONCTS_ON line you already have):

    Code:
    "ONCTS_ON","BYVAR;HIBERNATED;DOHIBERNATE<<"
    "DOHIBERNATE","SETVAR;HIBERNATED;1||HIBERNATE"
    "ONRESUME","SETVAR;HIBERNATED;0"
    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."

  2. #72
    Variable Bitrate
    Join Date
    Apr 2004
    Posts
    409
    thanks Guino, My system is set up to keep CTS high until the power is cycled. On the bench I'm using a screwdriver to short 7 and 9 so I'm probably bouncing the switch. I'll try the code you posted and let you all know what happens.

    Chris

  3. #73
    Variable Bitrate
    Join Date
    Apr 2004
    Posts
    409
    Works perfect! Thanks Jebus for making the program and thanks Guino for helping this old man to get it to do what I want. The computer is a Nexcom fanless-

    NEXCOM NISE 3100

    I have an older version I found on ebay for a great price. Mine works on 8-30 volts and has been rock solid. As I mentioned before it doesn't have an ATX power switch header, I tried using windows built in UPS service to trigger hibernate and found that the UPS service triggers what's called critical hibernate which doesn't shut down everything properly. I was driving Mitch a little crazy with that one.... (sorry Mitch) Now I'll have to put this thing back in the car and hopefully when I get my Sirius and GPS hooked up it will still hibernate properly. At least hibernate is being triggered properly now.

    The other surprise I found with this computer is only certian sound cards would work in the single PCI slot. That drove me a little nuts as only cheap soundcards would work and with the amount of time I spend in my car good sound is a must. I finally figured out that the PCI slot does not provide -12 volts. I didn't think anything used -12 volts anymore. I found a connector on the motherboard that allowed inputting -12 volts so I ran a wire from my bench power supply and my Soundblaster X-Fi finally worked. I had some Texas Instruments DC to DC converter modules so I used a PT6643P, 8 to 18 volt in, -12 volt out module to take care of that.

    Thanks again men!

  4. #74
    Constant Bitrate l1nk's Avatar
    Join Date
    Jun 2007
    Location
    Sardinia Island
    Posts
    166

    command line?

    Is there a way to send commands to serialswitch by command line?
    I'd like to use serialswitch via AI scripts just to set DTR ON/OFF and RTS ON/OFF so that I can turn on/off my amps in correct order to avoid THUMPS!

  5. #75
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    Quote Originally Posted by l1nk View Post
    Is there a way to send commands to serialswitch by command line?
    I'd like to use serialswitch via AI scripts just to set DTR ON/OFF and RTS ON/OFF so that I can turn on/off my amps in correct order to avoid THUMPS!
    As long as you have this stuff on EXECtbl.ini (as described on install process):

    "DTRON","SENDMSG;SerialSwitch;DTR_ON"
    "DTROFF","SENDMSG;SerialSwitch;DTR_OFF"

    "RTSON","SENDMSG;SerialSwitch;RTS_ON"
    "RTSOFF","SENDMSG;SerialSwitch;RTS_OFF"
    You should be able to use RR's exec.exe tool to execute the commands:

    Code:
    exec.exe DTRON
    exec.exe DTROFF
    exec.exe RTSON
    exec.exe RTSOFF
    (this of course required RR to be running)
    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."

  6. #76
    Constant Bitrate l1nk's Avatar
    Join Date
    Jun 2007
    Location
    Sardinia Island
    Posts
    166
    Quote Originally Posted by guino View Post
    As long as you have this stuff on EXECtbl.ini (as described on install process):



    You should be able to use RR's exec.exe tool to execute the commands:

    Code:
    exec.exe DTRON
    exec.exe DTROFF
    exec.exe RTSON
    exec.exe RTSOFF
    (this of course required RR to be running)
    Thank you Guino for your fast response.
    I'd like to activate/deactivate flags outside of RR as already do with ampctrl (driven by hibernatetrigger sw).

  7. #77
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    Then you'll have to write your own command line application to send messages directly to the serialswitch plugin (as I don't believe serial switch itself has command line support for that) -- but maybe you should PM the author to see what he can do for you.
    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."

  8. #78
    Constant Bitrate l1nk's Avatar
    Join Date
    Jun 2007
    Location
    Sardinia Island
    Posts
    166
    You're right. Maybe it can be useful to simply write new code to set on/off the status of DTR/RTS pins.
    Serialswitch is a really good tool but I don't use it fully as I only need to turn on/off my amps, just after the OS is started (or resumed if it was suspended) and with the correct delays to avoid thumps. My idea is to have 4 separated commands (exe files) immediatly available to use them with hibernatetrigger.
    I'll try to have a look on msdn. Any advice is higly appreciated.

  9. #79
    Constant Bitrate l1nk's Avatar
    Join Date
    Jun 2007
    Location
    Sardinia Island
    Posts
    166
    Wrote few lines of code and made a windows service.
    Not tested in car yet, only in my testbed. Attached to this post for those interested.

    When started, this simple service put the DTR value to high, waits 4 seconds then put the RTS value to high. That's exactly what I need, having 2 different amps in a series; I can now turn on the first amp then (after any transient) turn on the second amp with no thumps on my ears!
    When the service is stopped it does the same in reverse and with a pause of 2 seconds only.

    To install the service you'll need to use the installutil.exe of .net framework.
    You can start/stop service using windows services console or by command line (or write some simple AI script just to have the ready exe files to run).
    Enjoy
    Attached Files Attached Files

  10. #80
    Variable Bitrate
    Join Date
    Apr 2004
    Posts
    409
    update to my hibernation project- On occasion, when i hibernate while listening to Sirius, then resume, winamp will be playing along with Sirius. I just exit out of the Sirius screen go to the music screen then exit and go back to the Sirius screen. Winamp stops as soon as I reopen the Sirius screen. As a temporary fix I just paused Winamp. Isn't Winamp supposed to be closed when Sirius is playing? Why would it be starting itself like that?

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
  •