A
Anthony Fremont
Guest
Kit wrote:
After you do a "shutdown -h now", see if the DTR (or any other status) pin
changes state. If so, that could be used as the signal to an external
device to turn it off.
Or you could possibly use one of the i/o pins to start a timer that would
power off the computer after a predetermined delay. The i/o pin would be
toggle from a script that executes during shutdown.
Ok, I think I get it now. ;-) Looks like you have a serial port on there.On May 1, 3:39 am, "Anthony Fremont" <spam-...@nowhere.com> wrote:
Kit wrote:
Hi all,
I am making a battery powered device that uses a Single board
computer running Linux. The problem is that because I am using a CF
Card mounted read/write I cannot just cut the power to the SBC. So
I need to have some system by which the SBC can shutdown properly
before it cuts the power. I am thinking of something like the power
button on a computer.
So does anyone know how I could go about this?
A circuit would be great.
Some idea of the SBC you are using would be helpful, but it must
have some kind of i/o capability. Either a serial port, I2C or some
kind of GPIO ports must be present regardless of the SBC type. You
should be able to read from one of these in software and then
initiate a "shutdown -h now" procedure.
Sure, I am using a Technologic Systems TS-7200.
http://www.embeddedarm.com/epc/ts7200-spec-h.html
Yes, I can do that, but once the SBC is shutdown I need to turn off
the power.
After you do a "shutdown -h now", see if the DTR (or any other status) pin
changes state. If so, that could be used as the signal to an external
device to turn it off.
Or you could possibly use one of the i/o pins to start a timer that would
power off the computer after a predetermined delay. The i/o pin would be
toggle from a script that executes during shutdown.