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

Reply
 
Thread Tools Display Modes
Old 12-31-2003, 08:11 PM   #1
Newbie
 
Join Date: Oct 2003
Posts: 38
My Photos: (0)
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)
Da_Teach is offline   Reply With Quote
Sponsored Links
Old 12-31-2003, 08:17 PM   #2
9 Fingered Administrator
Lesbian
 
frodobaggins's Avatar
 
Join Date: Jan 2003
Location: Ruston, LA
Vehicle: 1998 Ranger/1991 Sunbird
Posts: 9,852
My Photos: (0)
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.
__________________
FrodoPlayer.com
TeaBaggins.com
[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!
frodobaggins is offline   Reply With Quote
Old 12-31-2003, 08:32 PM   #3
Newbie
 
Join Date: Oct 2003
Posts: 38
My Photos: (0)
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
Da_Teach is offline   Reply With Quote
Old 01-02-2004, 04:17 PM   #4
Variable Bitrate
 
nottastocker's Avatar
 
Join Date: Jun 2003
Location: Shenandoah, VA
Vehicle: 1996 Chevy Corsica -- I miss my RWD
Posts: 331
My Photos: (0)
i may seem stupid, but what exactly does it do?
__________________
Mozilla Search Plugin
nottastocker is offline   Reply With Quote
Old 01-08-2004, 03:17 AM   #5
Constant Bitrate
 
Join Date: Jan 2004
Vehicle: 1992 Mazda 323 Sedan
Posts: 117
My Photos: (0)
Thanks, Da_Teach!

Excelent piece of work! Works like a charm..
Thanks again!
burnout.no is offline   Reply With Quote
Old 01-08-2004, 08:59 AM   #6
FLAC
Custommx3's CarPC Specs
 
Custommx3's Avatar
 
Join Date: Jun 2003
Location: Memphis - TN
Vehicle: 2007 Mazdaspeed6
Posts: 1,125
My Photos: (7)
And what exactly is it for?
what is DTR?
__________________
2007 Mazdaspeed 6
Custommx3 is offline   Reply With Quote
Old 01-08-2004, 09:54 AM   #7
Constant Bitrate
 
Join Date: Jan 2004
Vehicle: 1992 Mazda 323 Sedan
Posts: 117
My Photos: (0)
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!
burnout.no is offline   Reply With Quote
Old 01-08-2004, 10:08 AM   #8
Maximum Bitrate
 
GingerPrince's Avatar
 
Join Date: Apr 2003
Location: Leeds, UK
Vehicle: 1996 TVR Griffith 500
Posts: 533
My Photos: (0)
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/
GingerPrince is offline   Reply With Quote
Old 01-08-2004, 10:41 AM   #9
FLAC
 
MikeH's Avatar
 
Join Date: Nov 2003
Location: Marietta, GA
Vehicle: 2007 Acura RDX
Posts: 1,109
My Photos: (0)
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
CarNetix
------------
Helpful info at http://www.carnetix.com
C134, M10000, 40GHDD, XM-PCR, CarNetix P2140, FP
MikeH is offline   Reply With Quote
Old 01-09-2004, 04:08 AM   #10
Constant Bitrate
 
Join Date: Jan 2004
Vehicle: 1992 Mazda 323 Sedan
Posts: 117
My Photos: (0)
But what about turning the monitor on? I'm not talking about feeding it 12V, but "pressing" the power button.. That would be cool!
burnout.no is offline   Reply With Quote
Sponsored Links
Old 01-09-2004, 07:47 AM   #11
Newbie
 
awh4992's Avatar
 
Join Date: Jan 2004
Vehicle: 1989 Ford Bronco II
Posts: 52
My Photos: (0)
[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.
awh4992 is offline   Reply With Quote
Old 01-09-2004, 05:11 PM   #12
Newbie
 
numberone's Avatar
 
Join Date: Aug 2003
Location: Stuttgart, Germany
Vehicle: Mitsubishi Lancer
Posts: 32
My Photos: (0)
Quote:
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
|-----------------------------
numberone is offline   Reply With Quote
Old 01-09-2004, 07:47 PM   #13
Low Bitrate
 
crosseye's Avatar
 
Join Date: Dec 2003
Location: Syracuse, NY
Vehicle: 1998 Dodge Stratus
Posts: 80
My Photos: (0)
Quote: 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.
crosseye is offline   Reply With Quote
Old 01-09-2004, 08:12 PM   #14
Constant Bitrate
 
Join Date: Jan 2004
Location: Kentucky
Vehicle: 1987 Nissan Pulsar NX SE
Posts: 136
My Photos: (0)
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...

Last edited by Twizted : 01-09-2004 at 08:41 PM. Reason: Added link for .NET Framework 1.1
Twizted is offline   Reply With Quote
Old 01-11-2004, 07:06 AM   #15
Newbie
 
Join Date: Oct 2003
Posts: 38
My Photos: (0)
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
Da_Teach 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 03:56 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