Announcement

Collapse
No announcement yet.

Windows Service that raises DTR on powerup

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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!

    Comment


    • #3
      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

      Comment


      • #4
        i may seem stupid, but what exactly does it do?
        Mozilla Search Plugin

        Comment


        • #5
          Thanks, Da_Teach!

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

          Comment


          • #6
            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.

            Comment


            • #7
              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!

              Comment


              • #8
                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/

                Comment


                • #9
                  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

                  Comment


                  • #10
                    But what about turning the monitor on? I'm not talking about feeding it 12V, but "pressing" the power button.. That would be cool!

                    Comment


                    • #11
                      [QUOTE=GingerPrince]You could also use it to power a relay to turn your neons on/off [/QUOTE

                      that would hafta be a pretty small relay as the serial port DTR and RTS lines only supply ~10mA, which is barely enough to power a chip or 2, let alone an electromagnet in the relay. a better way would be to just use a transistor that can switch the amount of current ur neons use. the transistor only sucks nano to microamps through its base, so it's suited better for driving loads as opposed to sucking current from an output on the serial port chip. you would be using an npn transistor since the DTR pin is negative until the OS tells the serial chip to bring it to about +8 or +9v. a relatively simple circuit to build, providing you can get your hands on a transistor that won't blow up when u have ur neons connected directly to it.
                      National Geode 233 MMX, Homemade 5V/12V DC-DC Converter, 6.5" TFT LCD w/ Touchscreen, Motorola Oncore GT+ GPS w/ Routis, Netgear 802.11 w/ External Antenna, IBM Travelstar 10gig HD, Homemade Serial Infrared receiver, Homemade Small Serial Trackball

                      Comment


                      • #12
                        You should find schematics on the web, if not - get back to me and i'll post one..
                        How do you connect your amp to the serial port?
                        My amp needs 12v to the remote input. Can I get this from the port?
                        http://www.m2visio.de

                        |-----------------------------
                        |CAR ENTERTAINMENT SYSTEM
                        |-----------------------------
                        |Epia m10000 w. 256mb
                        |20gb 2.5,slimDVD
                        |Morex Cubid 3688+ITPS
                        |Lilliput VGA+Touchscreen
                        |-----------------------------

                        Comment


                        • #13
                          Originally posted by awh4992
                          that would hafta be a pretty small relay as the serial port DTR and RTS lines only supply ~10mA, which is barely enough to power a chip or 2, let alone an electromagnet in the relay.
                          You can buffer the DTS line (or place two inverters back to back). The output of your buffer should then have enough current to power the relay.

                          Comment


                          • #14
                            Easy thing to do would prolly be use a general purpose transistor MPS2222 (prolly need something larger that can handel around an amp or two) for example to connect the 12v to a 12V Relay to turn on the neons... I would say you would need to so the same for the amplifier remote switch... I will have to look into this myself as I will need it.. If anyone can elaborate on my idea or share there design or idea please do

                            Here is a link to the
                            .NET Framework 1.1 Redistributable Package that Microsoft offers...

                            Comment


                            • #15
                              After a bit of testing, I found out that directly wiring the DTR to the AMP works, but sometimes fails... So I'll have to put 'something' between the AMP and the serial port... So give easy idea's

                              Comment

                              Working...
                              X