Isn't that the basic idea behind all the current pi ups's on the market ?
Re the comments about a clean shutdown - I don't think you can detect a clean shutdown and besides, what would you do if the pi didn't completely shut down. When that happens on my laptop I kill the power because no matter what, it ain't going down clean.
As long as your battery pack can sustain operation for the longest possible shutdown sequence (might include writing data/backup) plus a bit of a margin then you are set to go.
Some sort of a secondary power shutoff should be incorporated in case the pi hangs during shutdown - you wouldn't want to kill the battery just because the pi hung.
I guess we cross posted .... I don't see any reason why you shouldn't charge/discharge at the same time (I am pretty sure I have seen commercial products that do both although I can't recall the particular products). If you have a timer of some kind for secondary power shutdown then you will not kill the power bank.
Re the comments about a clean shutdown - I don't think you can detect a clean shutdown and besides, what would you do if the pi didn't completely shut down. When that happens on my laptop I kill the power because no matter what, it ain't going down clean.
As long as your battery pack can sustain operation for the longest possible shutdown sequence (might include writing data/backup) plus a bit of a margin then you are set to go.
Some sort of a secondary power shutoff should be incorporated in case the pi hangs during shutdown - you wouldn't want to kill the battery just because the pi hung.
(2017-11-13, 11:03 PM)shark24 Wrote: As mentioned before. Most of the power banks can't be charged and discharged at the same time. Besides the probable capacity problems the pi would still suck the juice out of the power bank after the shutdown.
I guess we cross posted .... I don't see any reason why you shouldn't charge/discharge at the same time (I am pretty sure I have seen commercial products that do both although I can't recall the particular products). If you have a timer of some kind for secondary power shutdown then you will not kill the power bank.