To: | |
---|---|
Subject: | Re: [ts-7000] Re: Watchdog write failure while reading/writing to ttts5 |
From: | Eric Robishaw <> |
Date: | Fri, 11 Sep 2009 15:31:28 -0500 |
I have a thread that every 3 seconds calls a library function that attempts to feed it for up to 1000 tries, pauses 500ms, and makes the lib call again (3x total). If it fails at that point (3000 total attempts), I then shutdown my app ASAP. I also go ahead and restart the OS, just in case the watchdog fails to do so. I had mistakenly taken out the usleep(1) between each of the 1000 tries... I have put the usleep(1) back in and have now gone for about 18 hours without any mishaps. I think that should solve it. Its either that, or the fact that I'm now running from mtd instead of the sd card, which could have been the bigger issue. I still wish there were a bigger than 8s timeout available! I can see how a 250ms timeout would be useful in an embedded process, but with a full linux app, there's no practical use for it, unless you're running from read only filesystem. If there are only 4 bits available for the setting, I'd rather see {off, 2s, 8s, 16s}, or even {off, 2s, 16s, 32s} or maybe {off, 2s, 8s, 64s} than the current offering {off, 250ms, 2s, 8s}. Eric On Fri, Sep 11, 2009 at 2:47 PM, PeterElliot <> wrote:
|
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | [ts-7000] Re: Watchdog write failure while reading/writing to ttts5, PeterElliot |
---|---|
Next by Date: | [ts-7000] Re: Watchdog write failure while reading/writing to ttts5, charliem_1216 |
Previous by Thread: | [ts-7000] Re: Watchdog write failure while reading/writing to ttts5, PeterElliot |
Next by Thread: | [ts-7000] Re: Watchdog write failure while reading/writing to ttts5, charliem_1216 |
Indexes: | [Date] [Thread] [Top] [All Lists] |
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