ts-7000
[Top] [All Lists]

[ts-7000] TS-BAT3 Proper Shutdown

To:
Subject: [ts-7000] TS-BAT3 Proper Shutdown
From: "machv0" <>
Date: Fri, 04 May 2007 18:14:22 -0000
Hi All,

Just got a TS-BAT3 and I'm trying figure out the correct
shutdown/restart process on power failure. For my application if I
lose power there really is no proceeding so I'm looking at the BAT3 as
a means of doing a clean shutdown on my TS7XXX maybe with some user
notification. 

The problem I'm running into is a bit of a chicken & egg scenario that
I may just be confused about. I'm starting up the bat3 daemon with the
shutdown parameter and when power is lost, shutdown is initiated as
intended. However, now that the BAT3 has kicked into battery backup
mode I am unable to reboot the TS7XXX without disconnecting power via
JP3 on the BAT3. Maybe people are implementing a hardware solution for
this via JP3 on the BAT3? Hadn't thought about that until just now. 

Otherwise, Technologic supplies the ups-monitor program that toggles
JP3 via software. Ok fine. Here is where I'm running into the chicken
and egg problem. I can't call ups-monitor until after the bat3
charging daemon has terminated. If I call ups-monitor from the halt
script prior to halt it is too soon. It seems that "shutdown -h now"
sends processes the TERM signal whereas "halt" sends the KILL signal.
The bat3 daemon does not terminate with the TERM signal therefore the
AVR repsonds with busy when ups-monitor is invoked. If I call it after
halt it is too late as the system will be halted. To get around this I
can grab the process id for the bat3 daemon and kill it purposefully
prior to halt, followed by a umount of the compact flash or SD and any
other processing I might need to do, followed by a call to
ups-monitor, which results in power down and therefore "halt" never
being called. 

This is pretty good in that I have the root file system mounted read
only so even though halt is never invoked maybe it's good enough. I
guess I'm just wondering if others have run into this, and if so how
you are handling it. Also I may just be confused so feel free to tell
me so.

Mike Van Orden





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU