Sponsored links

Go Back   MP3Car.com > Mp3Car Technical Software > Software & Software Development


Reply
 
Share Thread Tools Display Modes
Old 12-31-2003, 08:11 PM   #1
Newbie
 
Join Date: Oct 2003
Posts: 38
Da_Teach is on a distinguished road
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
Advertisement
 
Advertisement
Advertisement Sponsored links

Old 12-31-2003, 08:17 PM   #2
I'm sorry, and you are....?
 
frodobaggins's Avatar
 
Join Date: Jan 2003
Location: Ruston, LA
Posts: 8,846
frodobaggins will become famous soon enoughfrodobaggins will become famous soon enough
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!
frodobaggins is offline   Reply With Quote
Old 12-31-2003, 08:32 PM   #3
Newbie
 
Join Date: Oct 2003
Posts: 38
Da_Teach is on a distinguished road
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
Posts: 332
nottastocker is on a distinguished road
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
Posts: 117
burnout.no is on a distinguished road
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 Avatar
 
Join Date: Jun 2003
Location: Memphis - TN
Posts: 1,231
Custommx3
And what exactly is it for?
what is DTR?
__________________
2007 Mazdaspeed 6

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 Orinoco Gold
Custommx3 is offline   Reply With Quote
Old 01-08-2004, 09:54 AM   #7
Constant Bitrate
 
Join Date: Jan 2004
Posts: 117
burnout.no is on a distinguished road
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
Posts: 533
GingerPrince
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
Sponsored links
Advertisement
 
Advertisement
Old 01-08-2004, 10:41 AM   #9
FLAC
 
Join Date: Nov 2003
Location: Marietta, GA
Posts: 1,134
MikeH is on a distinguished road
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
MikeH is offline   Reply With Quote
Old 01-09-2004, 04:08 AM   #10
Constant Bitrate
 
Join Date: Jan 2004
Posts: 117
burnout.no is on a distinguished road
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
Old 01-09-2004, 07:47 AM   #11
Newbie
 
awh4992's Avatar
 
Join Date: Jan 2004
Posts: 52
awh4992 is on a distinguished road
[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
Posts: 32
numberone
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
Posts: 80
crosseye is on a distinguished road
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
Posts: 136
Twizted is on a distinguished road
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
Da_Teach is on a distinguished road
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
Advertisement
 
Advertisement
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




All times are GMT -5. The time now is 04:32 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics