Page 1 of 25 1234567891011 ... LastLast
Results 1 to 10 of 249

Thread: Windows Service that raises DTR on powerup

  1. #1
    Newbie
    Join Date
    Oct 2003
    Posts
    38

    Cool Windows Service that raises DTR on powerup

    I've written a small Windows Service that raises DTR on the com port of choice when the service is started... It will lower DTR when the computer goes into standby (probaby hibernate too, havent tested that) and it'll lower DTR when the service is stopped (which is also when your computer is shutdown, but before power is cut)...

    Its written in Visual Basic.NET 2003, so it needs the .NET framework (v1.1) which can be downloaded via Windows Update...

    You can download the service here:
    http://www.wordtgek.nl/AmpCtrl_1.0.zip

    To install the service you have to use InstallUtil which is present in the framework directory of .NET....

    When your in the directory where you placed AmpCtrl, type the following:
    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Insta llUtil.exe AmpCtrl.exe

    (to uninstall : C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Insta llUtil.exe -uninstall AmpCtrl.exe )

    Modify the ampctrl.exe.config file and change the port number...

    After that, the service should run next bootup...

    The util is given as-is, dont blame me if something goes wrong... But it works like a charm for me (directly wired the DTR to my Amp)

  2. #2
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Quote Originally Posted by Da_Teach
    I've written a small Windows Service that raises DTR on the com port of choice when the service is started... It will lower DTR when the computer goes into standby (probaby hibernate too, havent tested that) and it'll lower DTR when the service is stopped (which is also when your computer is shutdown, but before power is cut)...

    Its written in Visual Basic.NET 2003, so it needs the .NET framework (v1.1) which can be downloaded via Windows Update...

    You can download the service here:
    http://www.wordtgek.nl/AmpCtrl_1.0.zip

    To install the service you have to use InstallUtil which is present in the framework directory of .NET....

    When your in the directory where you placed AmpCtrl, type the following:
    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Insta llUtil.exe AmpCtrl.exe

    (to uninstall : C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Insta llUtil.exe -uninstall AmpCtrl.exe )

    Modify the ampctrl.exe.config file and change the port number...

    After that, the service should run next bootup...

    The util is given as-is, dont blame me if something goes wrong... But it works like a charm for me (directly wired the DTR to my Amp)

    Interesting use.
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  3. #3
    Newbie
    Join Date
    Oct 2003
    Posts
    38
    I saw people mention the 'DTR method' a few times when searching on how to eliminate the speaker thump... (when starting the car / carpc)

    Seeing I'm a total 'hardware nono', this was still in my ability of things to do... Start timer would have worked too, but I have no clue on how to make those

  4. #4
    Variable Bitrate nottastocker's Avatar
    Join Date
    Jun 2003
    Location
    Shenandoah, VA
    Posts
    332
    i may seem stupid, but what exactly does it do?

  5. #5
    Constant Bitrate
    Join Date
    Jan 2004
    Posts
    117
    Thanks, Da_Teach!

    Excelent piece of work! Works like a charm..
    Thanks again!

  6. #6
    FLAC
    Join Date
    Jun 2003
    Location
    Memphis - TN
    Posts
    1,272
    And what exactly is it for?
    what is DTR?
    2011 Nissan Frontier SL
    AMD X3 2.2 | M4-ATX | 16Gb SSD | 2GB DDR3-1333 | MSI GF615M-P33 MB
    OBDPROS USB | BU-303 GPS l LILLIPUT TS | Car2PC adapter | XM Direct | USB Dual band N with custom mag-mount antenna.

  7. #7
    Constant Bitrate
    Join Date
    Jan 2004
    Posts
    117
    Quote Originally Posted by Custommx3
    And what exactly is it for?
    what is DTR?
    Atleast in my case, i use it for powering on the amplifier AFTER windows is ready.. It also turns my amplifier off before windows shuts down completely.. This way, i can avoid the start-up beep from my speakers.. Oh yeah, I also avoid the "bump"-sound from my speakers at shutdown..

    It can ofcourse be used for something else than an amplifier.. DTR is the name of serial port pin no. 4 (Data Terminal Ready) .. You should find schematics on the web, if not - get back to me and i'll post one..

    Good Luck!

  8. #8
    Maximum Bitrate GingerPrince's Avatar
    Join Date
    Apr 2003
    Location
    Leeds, UK
    Posts
    533
    You could also use it to power a relay to turn your neons on/off

    GingerPrince

    Car changed for TVR Griffith 500, so computer de-installed. Using a Dension 100ix w/60Gb HD unit in the interim.

    Carputer Install - http://www.stuffandting.com/carputer/
    CarBox Software -- http://www.stuffandting.com/carbox/

  9. #9
    FLAC
    Join Date
    Nov 2003
    Location
    Marietta, GA
    Posts
    1,134
    Another interesting use would be to signal an intelligent power supply that it is now OK to shut down power. My ITPS will shut down power in the middle of bootup if I turn on the engine, then back off within the boot period (approx 60 sec). This happens when I move my car from outside to the garage....very short trip.
    MikeH

  10. #10
    Constant Bitrate
    Join Date
    Jan 2004
    Posts
    117
    But what about turning the monitor on? I'm not talking about feeding it 12V, but "pressing" the power button.. That would be cool!

Page 1 of 25 1234567891011 ... LastLast

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
  •