Results 1 to 8 of 8

Thread: Using serial port for shutdown

  1. #1
    Newbie
    Join Date
    Feb 2008
    Posts
    3

    Using serial port for shutdown

    I am thinking of using the serial port to sense the ACC off and then turn the computer off, something that's used for UPS, as implemented for APC UPS in XP SP2 in power settings. So the scenario would be the power is on, when the key is removed, the signal on the serial port changes (one of the pins, that is), which computer interprets as request for shutdown or hibernation. If the computer gets stuck and does not shut itself off then the additional hardware (relays, capacitors and the like) shuts the power, ie pulls the plug. The advantage of this is that there's a chance for computer to exit graciously before its whacked by pulling the plug. If it is not gracious, then it gets whacked. Maybe then it learns, don't we all learn when whacked?

    My question is this: is there a software that would look at the serial port and has the functionality to shut the computer off, or somebody solved it similarly (ie software). APC UPS software communicates with the UPS using modem protocol, so it is not simple to adapt for my purpose.

  2. #2
    And then I was mod. Tidder's Avatar
    Join Date
    Sep 2003
    Location
    New Mexico, USA
    Posts
    4,207
    Search is your friend. Use it.

    New shutdown controller - software

    Links to the software in that thread are now dead, but should give you a good starting point.
    Tidder

    Try RevFE
    The best resurrected frontend I've ever used, period.

  3. #3
    And then I was mod. Tidder's Avatar
    Join Date
    Sep 2003
    Location
    New Mexico, USA
    Posts
    4,207
    The software listed in that thread can now be purchased here:

    http://carpc.kyferez.com/Products/products.php?id=20
    Tidder

    Try RevFE
    The best resurrected frontend I've ever used, period.

  4. #4
    Constant Bitrate
    Join Date
    Oct 2003
    Location
    Vancouver, BC
    Posts
    130
    If you're using Windows, there's something in the UPS options that'll let you do it. I did this about 4 years ago but decided not to go with it. Can't remember which pin but you have to run a constant 5V into it so I tapped it into a +5 from the PS and the shutdown sequence begins when you disconnect it from the serial port. Simple and effective but didn't suite my needs.

  5. #5
    Raw Wave Laidback's Avatar
    Join Date
    Oct 2003
    Location
    Madrid
    Posts
    1,984
    In XP select 'generic' > 'Custom' UPS. You can then select to have it shutdown on 5v or 0v
    Use pin 8 on the comport.

  6. #6
    Maximum Bitrate Injector's Avatar
    Join Date
    Mar 2005
    Location
    Rockledge, FL
    Posts
    525
    Quote Originally Posted by Laidback View Post
    In XP select 'generic' > 'Custom' UPS. You can then select to have it shutdown on 5v or 0v
    Use pin 8 on the comport.
    does it have to be pulsed like a mobo switch? or can it be constant without doing a hard shutoff?

  7. #7
    Variable Bitrate billmee's Avatar
    Join Date
    May 2005
    Location
    USA
    Posts
    299
    Quote Originally Posted by Injector View Post
    does it have to be pulsed like a mobo switch? or can it be constant without doing a hard shutoff?
    Constant

    I have the ACC connected directly to pin 8 and generic ups switched on per laidback's post.

    When the os is loading the UPS monitor is ignored.

    Once the UPS service is started the port is monitored and looks for a drop in voltage. When the ACC drops significantly ( don't know how much ) it will begin the shut down. You can configure it to post a message, good for setup.

    Note : starting the engine can drop ACC enough to trigger ups shutdown. An improvement would be to drive a relay with ACC and provide regulated 5 or 12 volts from your PSU.

  8. #8
    Low Bitrate lbergamo's Avatar
    Join Date
    May 2009
    Location
    Michigan, USA
    Posts
    65

    Exclamation Question ?

    Ok I hate resurrect dead post but can someone explain to me in a little more detail on how to fool Windows/UPS Service via the vehicle ACC. What I am looking for in specific is where to appl the voltage on the comport and where to apply the gound.

    Thank You

    Leo

Similar Threads

  1. Sprint Touch BT Serial Port Trouble!!! Please Help
    By compman723 in forum Wireless Communications
    Replies: 4
    Last Post: 02-08-2008, 10:09 PM
  2. serial port to game port adapter wiring
    By asif in forum General Hardware Discussion
    Replies: 5
    Last Post: 08-17-2006, 04:47 PM
  3. GPS usb-> serial port
    By zerocover in forum GPS
    Replies: 10
    Last Post: 10-07-2005, 12:08 AM
  4. Command-line serial port logger..??
    By tj!2k4 in forum GPS
    Replies: 11
    Last Post: 09-23-2005, 10:56 AM
  5. serial port switch input
    By th3madc0w in forum Hardware Development
    Replies: 5
    Last Post: 01-04-2005, 04:27 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •