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.
|
12-31-2003, 08:11 PM
|
#1
|
|
Newbie
Join Date: Oct 2003
Posts: 38
|
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)
|
|
|
12-31-2003, 08:17 PM
|
#2
|
|
9 Fingered Administrator Lesbian
Join Date: Jan 2003
Location: Ruston, LA
Vehicle: 1998 Ranger/1991 Sunbird
Posts: 9,852
|
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!
|
|
|
12-31-2003, 08:32 PM
|
#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 
|
|
|
01-02-2004, 04:17 PM
|
#4
|
|
Variable Bitrate
Join Date: Jun 2003
Location: Shenandoah, VA
Vehicle: 1996 Chevy Corsica -- I miss my RWD
Posts: 331
|
i may seem stupid, but what exactly does it do?
|
|
|
01-08-2004, 03:17 AM
|
#5
|
|
Constant Bitrate
Join Date: Jan 2004
Vehicle: 1992 Mazda 323 Sedan
Posts: 117
|
Thanks, Da_Teach!
Excelent piece of work!  Works like a charm..
Thanks again!
|
|
|
01-08-2004, 08:59 AM
|
#6
|
|
FLAC
Join Date: Jun 2003
Location: Memphis - TN
Vehicle: 2007 Mazdaspeed6
Posts: 1,125
|
And what exactly is it for?
what is DTR?
__________________
2007 Mazdaspeed 6
|
|
|
01-08-2004, 09:54 AM
|
#7
|
|
Constant Bitrate
Join Date: Jan 2004
Vehicle: 1992 Mazda 323 Sedan
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!
|
|
|
01-08-2004, 10:08 AM
|
#8
|
|
Maximum Bitrate
Join Date: Apr 2003
Location: Leeds, UK
Vehicle: 1996 TVR Griffith 500
Posts: 533
|
You could also use it to power a relay to turn your neons on/off 
|
|
|
01-08-2004, 10:41 AM
|
#9
|
|
FLAC
Join Date: Nov 2003
Location: Marietta, GA
Vehicle: 2007 Acura RDX
Posts: 1,109
|
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
|
|
|
01-09-2004, 04:08 AM
|
#10
|
|
Constant Bitrate
Join Date: Jan 2004
Vehicle: 1992 Mazda 323 Sedan
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!
|
|
|
01-09-2004, 07:47 AM
|
#11
|
|
Newbie
Join Date: Jan 2004
Vehicle: 1989 Ford Bronco II
Posts: 52
|
[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.
|
|
|
01-09-2004, 05:11 PM
|
#12
|
|
Newbie
Join Date: Aug 2003
Location: Stuttgart, Germany
Vehicle: Mitsubishi Lancer
Posts: 32
|
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
|-----------------------------
|
|
|
01-09-2004, 07:47 PM
|
#13
|
|
Low Bitrate
Join Date: Dec 2003
Location: Syracuse, NY
Vehicle: 1998 Dodge Stratus
Posts: 80
|
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.
|
|
|
01-09-2004, 08:12 PM
|
#14
|
|
Constant Bitrate
Join Date: Jan 2004
Location: Kentucky
Vehicle: 1987 Nissan Pulsar NX SE
Posts: 136
|
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
|
|
|
01-11-2004, 07:06 AM
|
#15
|
|
Newbie
Join Date: Oct 2003
Posts: 38
|
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 
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:56 PM.
|
|