The MP3car.com Store The MP3car.com Store    

Sponsored links

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

Reply
 
LinkBack Thread Tools Display Modes
Old 07-30-2005, 02:20 PM   #1
Newbie
 
Join Date: May 2005
Posts: 41
Interest in a Software Shutdown Controller?

I am just trying to gauge an interest level for a hardware/software solution which does the following....


Senses when car is shut off (ACC line loses 12v)
Brings a screen to the foreground with an option to continue on battery power, which if is not chosen within a specified time, results in a hibernation/suspension/shutdown.

This would not really be a replacement for a hardware shutdown controler, but rather a compliment to it.


My current status on this project is as follows:

Using a serial port and a relay to sense the loss of 12v. It is rather easy to detect in software when pins 7 and 8 of a serial port are shorted together. I am currently testing this with a USB -> Serial adapter and a paper-clip, but the hardware is working in regards to this. The circuit for this would be REALLY simple, just one relay and a few wires. USB to serial adapters are cheap.

I've written a simple VB6 app which "reads" that status change on the serial port. A screen with a large button and a count-down timer is then displayed. If the button is pressed (disabling the count-down), the program is minimized and the computer continues operating on battery power until the user or hardware shutdown controller shuts it down. If the button is not pressed, and the count-down reaches zero, then the program takes a shutdown action, which for me is currently using RR's SDK to tell it to hibernate. This action could be anything though (I've done a straight hibernation without RR, using API Calls but I prefer to let RR know the hibernation is happening).

Here is a screenshot of my first version



I know it isn't much, but I saw a GPS unit which does this (Garmin c330) and thought it was pretty slick. If other people are interested in using something like this, I would be interested in making this better(I used a few ugly hacks in my code) and releasing it, probably making it configurable and skinable (currently all configurable options are hardcoded)


Scott

Last edited by foltster; 07-30-2005 at 02:21 PM. Reason: i cant spell
foltster is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 07-30-2005, 03:15 PM   #2
FLAC
 
Curiosity's Avatar
 
Join Date: Mar 2004
Location: Florence Yall, BFKY
Posts: 1,722
That's kinda what I used to have. The only problem doing it that way, is that once in a great while my PC doesn't completely shut down so it's stuck on, using power and the SDC had no way to time out and cut the power.
__________________
XPort 1.26 -GPS port splitter, logger, and USB device resume fix
Curiosity is offline   Reply With Quote
Old 07-30-2005, 03:37 PM   #3
Newbie
 
Join Date: May 2005
Posts: 41
Quote: Originally Posted by Curiosity
That's kinda what I used to have. The only problem doing it that way, is that once in a great while my PC doesn't completely shut down so it's stuck on, using power and the SDC had no way to time out and cut the power.

I've thought about that, and that's why it isnt a total replacement for a hardware SDC. I'm using the uSCD now, which has a variable timer to cut power after the car is off, but it just leaves the pc on for up to 1/2 an hour before cutting power, and I want to have the option to just shut it off immediately, without touching so many buttons (when the car is off, i want to get out, not navigated menus)...

Scott
foltster is offline   Reply With Quote
Old 07-30-2005, 03:48 PM   #4
FLAC
 
Curiosity's Avatar
 
Join Date: Mar 2004
Location: Florence Yall, BFKY
Posts: 1,722
Ah, OK. Either immediate or up to 30 minute delay and it will always cut the power. That seems like a good idea, as long as it aborts the shutdown timer if you get back in and turn ACC on.
__________________
XPort 1.26 -GPS port splitter, logger, and USB device resume fix
Curiosity is offline   Reply With Quote
Old 07-30-2005, 04:21 PM   #5
Newbie
 
Join Date: May 2005
Posts: 41
Quote: Originally Posted by Curiosity
Ah, OK. Either immediate or up to 30 minute delay and it will always cut the power. That seems like a good idea, as long as it aborts the shutdown timer if you get back in and turn ACC on.

I actually had not considered continuing a count-down on the computer, since I have a hardware shutdown device as well, which ensures the PC shuts off , yet aborts when I turn on ACC, has timer, etc. However, implementing another timer in software would not be difficult. It would work in much the same way, waiting maybe 30 minutes after clicking "continue on battery power", and if ACC is still off, then display the "continue on battery power" dialog again...


No software controller can deal with the PC in a locked state (if hibernate/shutdown fails, or if the PC just locks up), that is why I said this would really need to be used as a supplement to a hardware SDC (which can deal with a locked PC and prevent battery rundown).
foltster is offline   Reply With Quote
Old 07-30-2005, 05:45 PM   #6
FLAC
 
Curiosity's Avatar
 
Join Date: Mar 2004
Location: Florence Yall, BFKY
Posts: 1,722
If you had the software timer, then you could shutdown properly before the SDC times out and kills the power. So it would probably be 28 minutes max. The next feature request would be to run sync software, so it could transfer a few files in that time.
__________________
XPort 1.26 -GPS port splitter, logger, and USB device resume fix
Curiosity is offline   Reply With Quote
Old 07-30-2005, 06:42 PM   #7
Newbie
 
Join Date: May 2005
Posts: 41
Quote: Originally Posted by Curiosity
If you had the software timer, then you could shutdown properly before the SDC times out and kills the power. So it would probably be 28 minutes max. The next feature request would be to run sync software, so it could transfer a few files in that time.

Well the time will be configurable, so each user could set their own length of time. I think I would use 30 minutes, with a 60 second "continue on battery power?" screen.

As far as "other" features, I think I could setup a way to launch another program if you click "continue". I'm sure I'll think of more features as I go along. For now I'm going to work getting the config file working and getting a task bar icon setup. I'm pretty new to using VB6, so it will be a while before I get everything right

Scott
foltster is offline   Reply With Quote
Old 07-31-2005, 11:19 PM   #8
Newbie
 
Join Date: May 2005
Posts: 41
I've done some more work on this and I am at the point where it does everything I want it to do. If this is something you would like to see released, please post here and I'll try tol put up detailed instructions, a simple wiring diagram, and a beta version of the app.

New things which I've added include a configuration file, a systray icon, control all options are now within a configuration screen....

Scott

Last edited by foltster; 07-31-2005 at 11:23 PM.
foltster is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks


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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
High power PSU with shutdown controller lookinco Power Supplies 12 08-25-2004 12:00 AM
Shutdown Controller Questions yuprules Newbie 2 08-18-2004 01:04 PM
Mastero Shutdown Controller BigAl Power Supplies 3 08-03-2004 10:11 AM
Shutdown controller - New Version weekendowel Power Supplies 2 06-10-2004 12:28 AM
software for mp3ondemand shutdown controller! mykolJay Software & Software Development 1 07-08-2002 03:17 PM


All times are GMT -5. The time now is 12:13 AM.


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