Sponsored links

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


Reply
 
Share Thread Tools Display Modes
Old 12-04-2001, 06:47 AM   #1
Registered User
 
Join Date: May 2001
Location: Dunstable, England
Posts: 70
percyt2k
Post Program or batch file to control DTR on a serial port

When I turn on my mp3player in the car, the amps have already been powered up by the remote switch wire and as the motherboard initialises the soundcard, the subs nearly jump out of the boot (trunk)!!!

I've seen on here a member (called OMS) has a program to put DTR to high to switch on his amps - but as his system is Linux, he's told me he can't help.

What I need is a program (or batch file) that when put in the startup menu will put DTR to high which will trigger a relay between DTR and ground and then it will turn my amps on. Then, when the system is shut down, the program ends, the relay opens and turns the amps off so that the motherboard doesn't 'thump' them

Can anyone help???
__________________
Best regards,

Darren Thrower
http://www.percyt.com/mp3player.htm
percyt2k is offline   Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links

Old 12-04-2001, 06:53 AM   #2
Village Idiot
 
Join Date: Jul 2001
Posts: 4
SkinnyBoy is on a distinguished road
Post

Or you could just have a time delay on the speakers of about 5seconds, so when the computer is powered, so is the amp, but the speakers aren't connected for 5seconds or so, so you won't get the thump..
SkinnyBoy is offline   Reply With Quote
Old 12-04-2001, 11:48 AM   #3
Registered User
 
Join Date: May 2001
Location: Dunstable, England
Posts: 70
percyt2k
Post

But that won't help with the shutdown - i'll still get the thump when it shuts down.
__________________
Best regards,

Darren Thrower
http://www.percyt.com/mp3player.htm
percyt2k is offline   Reply With Quote
Old 12-04-2001, 02:12 PM   #4
cj
Low Bitrate
 
Join Date: Aug 2001
Posts: 57
cj
Post

Try perl and some kind of script using this module.
cj is offline   Reply With Quote
Old 12-05-2001, 10:56 AM   #5
Registered User
 
Join Date: May 2001
Location: Dunstable, England
Posts: 70
percyt2k
Post

If I was a developer, then I wouldn't have had to post this request in the first place!

Please please - someone must be able to help me - I don't want to damage my ICE!!
__________________
Best regards,

Darren Thrower
http://www.percyt.com/mp3player.htm
percyt2k is offline   Reply With Quote
Old 12-14-2001, 06:47 PM   #6
Newbie
 
Join Date: Dec 2001
Posts: 7
enlight22
Post

ill throw together a program in C if you want, email me, zodono@hotmail.com
enlight22 is offline   Reply With Quote
Old 12-16-2001, 04:31 AM   #7
Low Bitrate
 
radioman193's Avatar
 
Join Date: May 2001
Location: Dansville NEW YORK
Posts: 81
radioman193
Cool

The shutdown POP is your soundcard powering down you will need to power down the Sub amps first and that wont happen.
AMPS LAST ON AND FIRST OFF.

OR just put a switch on your Remote line
then just switch the amps on After the Pc is booted up!

[ 12-16-2001: Message edited by: radioman193 ]
radioman193 is offline   Reply With Quote
Old 12-17-2001, 04:41 PM   #8
Rob
Registered User
 
Rob's Avatar
 
Join Date: Aug 2001
Location: Missing In Action
Posts: 779
Rob
Post

I take it your using windows, if you are there is a simple C command called outportbin the dos libary, which you can use to write to a directly to a port at bit level.

Bellow is a crude example to turn all the data bits on a LPT port to high.

include <dos.h>

void main(void)
{
outportb(0x378,127);
}

To change the DTR all you have to do is change the address. I only used the LPT port as I couldn't rember the address of the DTR.

An on and off program like to one above could be quite easily called from a batch file.

I hope this helps a bit.

Rob
__________________
And you say people actually pay money for M$ Windows?
www.mp3mini.co.uk (Does what it says on the URL) www.openclassic.co.uk (The new car, with zero rust!) www.rob-web.co.uk (My other site)
Total re-design underway: on the whole progress is very slow as the car is taking up too much time :)
Rob is offline   Reply With Quote
Sponsored links
Advertisement
 
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 07:28 AM.


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