Results 1 to 4 of 4

Thread: need help from someone who can write a program

  1. #1
    Variable Bitrate
    Join Date
    Apr 2004
    Posts
    409

    need help from someone who can write a program

    I set my whole system up to use the built in windows UPS software to hibernate my system. I have a relay connected between pins 4 and 8 on one of my com ports, when this connection opens it hibernates the system. The problem is it triggers a critical hibernate instead of a regular hibernate and because of this some programs don't resume properly. Can anyone write a program that will initiate hibernation when the connection between pins 4 and 8 are opened?There are many people who are using the UPS to trigger hibernate, this would help all of them. It took me a long time to find out about this critical hibernate and it wasn't a pleasant surprise.

    Thanks

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    Hi Chris, you should be able to use the serialswitch plugin to execute the HIBERNATE command from RR using the ONCTS_OFF event of the plugin. You may need to slightly modify the wiring to the port, but the principle is the same and that is the exact purpose of the plugin.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  3. #3
    Variable Bitrate
    Join Date
    Apr 2004
    Posts
    409
    Hi Guino,
    The wiring is not a problem. I could set it up to use pin 7 RTS as a supply and connect it to pin 8 CTS when I want it to hibernate. I'll need a little help with the rest, I have no clue as to what I would need to make the ExecTBL.ini look like.

    thanks

  4. #4
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    Should be fairly simple.. install the plugin as described then adjust the wiring.

    If you'll wire it so the relay CLOSES the CTS (8) to RTS (7) when you want to hibernate, then you should only need:

    "ONCTS_ON","HIBERNATE"

    If you wire it the opposite [so the relay OPENS the CTS (8) to RTS (7)] then you'll just need to use the opposite event:

    "ONCTS_OFF","HIBERNATE"

    I've never used the serial switch (though I definitely would if needed), but as long as the wiring is done as it asks, it should be simple to work.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

Similar Threads

  1. Forced hibernation OR run program w/ Power button
    By DrLove in forum Power Supplies
    Replies: 3
    Last Post: 04-01-2009, 08:32 AM
  2. RadioSHARK Control Program
    By alpax in forum Road Runner
    Replies: 14
    Last Post: 02-13-2009, 12:28 AM
  3. Need A Program to Monitor Broadband Connection
    By Wiredwrx in forum Off Topic
    Replies: 9
    Last Post: 11-07-2005, 04:20 PM
  4. Dos program in WinXP
    By meddler in forum Off Topic
    Replies: 3
    Last Post: 09-21-2005, 01:57 AM
  5. Can someone write me a PIC program 4 a awesome s/down controller please?
    By gizmos in forum General Hardware Discussion
    Replies: 3
    Last Post: 07-17-2000, 12:43 PM

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
  •