Page: |
Home > Show Us Yours! > A couple of new PCBs - but especially the RPi... | |||||||
1267 Posts Member #: 831 Post Whore Montreal, Canada |
23rd Nov, 2012 at 06:33:16pm
Rod,
|
||||||
1267 Posts Member #: 831 Post Whore Montreal, Canada |
23rd Nov, 2012 at 07:07:00pm
Actually, there is one thing that I'm not sure about which would have an impact on the sequence of events. What happens during shutdown in this case? Is it simply the process of closing all applications and all open files to go in a safe state and wait for power to go off (or actively switch it off if that's the chosen solution)?
|
||||||
5988 Posts Member #: 2024 Formally Retired Rural Suffolk |
23rd Nov, 2012 at 07:09:29pm
On 23rd Nov, 2012 jbelanger said:
Rod, How do you deal with the power coming back up when you've started the shut down process? Regardless of what I've mentioned, I don't see how you address it in either. Current thoughts/design is a latching gate to prevent powerup when a shutdown is running. On 23rd Nov, 2012 jbelanger said:
One way I can see would be to have some sort of external watchdog that resets the RPi (and the initial 60 second timer) unless the RPi keeps it from doing so. If you have a time out for the watch dog longer than the initial 60 seconds you need for boot up, that would cover that possibility. The only problem is that you can now have a 60+ second of inactivity but it would not require any user input. It's the 60s inactivity I'm determined to avoid. Writing this in code is probably quite easy Using simple logic chips or 555 timers or C/R networks etc is making my head hurt but I'm sure it's possible..... I'm off to put my CD on... :) Schrödinger's cat - so which one am I ??? |
||||||
5988 Posts Member #: 2024 Formally Retired Rural Suffolk |
23rd Nov, 2012 at 07:16:19pm
and......
Schrödinger's cat - so which one am I ??? |
||||||
5988 Posts Member #: 2024 Formally Retired Rural Suffolk |
23rd Nov, 2012 at 07:23:24pm
On 23rd Nov, 2012 jbelanger said:
Actually, there is one thing that I'm not sure about which would have an impact on the sequence of events. What happens during shutdown in this case? Is it simply the process of closing all applications and all open files to go in a safe state and wait for power to go off (or actively switch it off if that's the chosen solution)? If it is that then it simplifies things a bit because the key on state can be checked before switching the power off and you can then reset the 60 second timer and either start TS or reboot entirely. So you would have a power supply (connected directly to the battery) that is either activated by key on, a 60-second timer or the RPi. Once running the RPi activates the power supply and watches for the key state. Upon key off, it goes in the shutdown state and if the key is still off, it shuts down power. If key is back on, it resets the 60-second timer and restarts. (Actually, it can loop in the key on check process so if somehow the power is put back on just after checking the state it will just pick it up in the next iteration) That means you need 3 I/Os from the RPi: an input for key on, an output for the power supply and an output for the timer reset. And you need a resettable timer circuit. Jean, Didn't see that reply before my previous post. We have plenty of I/Os from the RPi (so long as it hasn't lost power or crashed) it's just how best to use them. Pub now..... Schrödinger's cat - so which one am I ??? |
||||||
608 Posts Member #: 1106 Post Whore Hungerford, Berks |
23rd Nov, 2012 at 08:44:39pm
I thought I had the logic sorted in my head until I read these last few posts, now I’m not so sure…
’77 Clubman build thread
|
||||||
9502 Posts Member #: 1023 Post Whore Doncaster, South Yorkshire |
23rd Nov, 2012 at 10:03:06pm
On 23rd Nov, 2012 Graham T said:
The 512Mb Rpi loads the same image in the same amount of time, so I do not think that RAM has been the bottle neck with speed. could the bottle neck be the SD card? reading them is usually quite quick but i notice one of mine is getting alot slower, it was getting hammered untill recently though Yes i moved to the darkside
|
||||||
608 Posts Member #: 1106 Post Whore Hungerford, Berks |
25th Nov, 2012 at 08:14:07am
On 23rd Nov, 2012 Brett said:
could the bottle neck be the SD card? reading them is usually quite quick but i notice one of mine is getting alot slower, it was getting hammered untill recently though It could be, or at least contributing. I did test the SD card I/O speeds at one point, but cannot remember the results. I've tried class 6, class 10 and even cheap no name SD cards but none have appeared to make much difference, if any. What i did find though was that an 8Gb card seemed to slow down boot up. The swap file took a lot longer to activate in comparison to smaller cards. Though with the latest Kernal for 512Mb support there maybe support for the faster I/O cards that there was not before. More testing to do... ’77 Clubman build thread
|
||||||
Forum Mod 1927 Posts Member #: 1761 Stalker Bristol |
25th Nov, 2012 at 01:40:15pm
Try a USB stick instead of the SD card, you can configure it to boot off them instead.
|
||||||
Home > Show Us Yours! > A couple of new PCBs - but especially the RPi... | |||||||
|
Page: |