Helpdesk

Hello,


I have troubles with this mode.


I enabled the Power Off mode to manage myself a shut down timer. The advantage of this mode is to ignore a power back and shutdown properly the raspberry.


Timer is set to 30s.


when external power is unplugged, I catch the xxxShutdownRaspberryPixxx message on the serial -[gt] OK, I have 30s to shutdown the Raspberry. At this time, the Strompi should ignore the power back.


I "shutdown -h now" the raspberry.


And I plug and unplug several times the external power, and finally I keep it plugged to test if the Strompi will shut down after the 30s.


And it's not the case... sometimes the Strompi stay alive. Too many times in fact. And the system is blocked, I have to unplug the batterie.


It's not possible to use this mode without 100% of success. Is there a reason for that?


[nbsp]


[nbsp]


[nbsp]


[nbsp]

sreillon

26.01.23 18:18

Hello Sreillon,


could you please share the configuration and power supply connections on your StormPi?


This way we can test and analyze the problem better.


Best regards


Tim (Joy-IT)

Tim

30.01.23 11:41

Hello,[nbsp]


Thanks for your reply.


Here my status:


---------------------------------
StromPi-Status:
---------------------------------
Time: 18:17:01
Date: Monday 30.01.23


StromPi-Output: Wide


StromPi-Mode: Wide -[gt] mUSB -[gt] Battery


Raspberry Pi Shutdown: Disabled
[nbsp]Shutdown-Timer: 30 seconds


Powerfail Warning: Disabled


Serial-Less Mode: Disabled


Power Save Mode: Disabled


PowerOn-Button: Disabled


[nbsp]PowerOn-Button-Timer: 30 seconds


Battery-Level Shutdown: Disabled


Powerfail-Counter: 2


PowerOff Mode: Enabled
---------------------------------
Alarm-Configuration:
---------------------------------
WakeUp-Alarm: Enabled
[nbsp]Alarm-Mode: Minute WakeUp-Alarm
[nbsp]Alarm-Time: 00:00
[nbsp]Alarm-Date: 01.01
[nbsp]WakeUp-Alarm: Monday
[nbsp]Weekend Wakeup: Enabled
[nbsp]Minute Wakeup Timer: 01 minutes


PowerOff-Alarm: Disabled
[nbsp]PowerOff-Alarm-Time: 00:00


Interval-Alarm: Disabled
[nbsp]Interval-On-Time: 00 minutes
[nbsp]Interval-Off-Time: 00 minutes


---------------------------------
Voltage-Levels:
---------------------------------
Wide-Range-Inputvoltage: not connected
LifePo4-Batteryvoltage: 3.253V [50%] [charging]
microUSB-Inputvoltage:[nbsp] 4.915V
Output-Voltage: 5.015V


As you can see, i did the test with the microUSB power, plugged on the strompi off course.


The strompi won't power off sometimes.

sreillon

30.01.23 19:23

Sorry..


The StromPi-Output was mUSB, not Wide.


---------------------------------
StromPi-Status:
---------------------------------
Time: 18:17:01
Date: Monday 30.01.23


[nbsp]


StromPi-Output: mUSB


[nbsp]


StromPi-Mode: Wide -[gt] mUSB -[gt] Battery


...


[nbsp]


I didn't perform a test with the Wide. I guess it will be the same.[nbsp]


[nbsp]

sreillon

30.01.23 19:50

Hello Sreillon,


you need to enable the Raspberry Pi shutdown in the StromPi Config so that the StromPi shuts down automatically.


We also recommend enabling the power-fail warning and the serial shutdown script to shutdown the Raspberry Pi safely.


The shutdown timer in the StromPi config should always be longer than the shutdown timer in the serial shutdown script so that the Raspberry Pi has enough time to shutdown safely.


Best regards[nbsp]


Tim (Joy-IT)

Tim

31.01.23 10:18

ok,


I will do that and I will let you know


so my status must be:


---------------------------------
StromPi-Status:
---------------------------------
Time: 18:17:01
Date: Monday 30.01.23


StromPi-Output: mUSB


StromPi-Mode: Wide -[gt] mUSB -[gt] Battery


Raspberry Pi Shutdown: Enabled
[nbsp]Shutdown-Timer: 30 seconds


Powerfail Warning: Enabled


Serial-Less Mode: Disabled


Power Save Mode: Disabled


PowerOn-Button: Disabled


[nbsp]PowerOn-Button-Timer: 30 seconds


Battery-Level Shutdown: Disabled


Powerfail-Counter: 2


PowerOff Mode: Enabled
---------------------------------
Alarm-Configuration:
---------------------------------
WakeUp-Alarm: Enabled
[nbsp]Alarm-Mode: Minute WakeUp-Alarm
[nbsp]Alarm-Time: 00:00
[nbsp]Alarm-Date: 01.01
[nbsp]WakeUp-Alarm: Monday
[nbsp]Weekend Wakeup: Enabled
[nbsp]Minute Wakeup Timer: 01 minutes


PowerOff-Alarm: Disabled
[nbsp]PowerOff-Alarm-Time: 00:00


Interval-Alarm: Disabled
[nbsp]Interval-On-Time: 00 minutes
[nbsp]Interval-Off-Time: 00 minutes


---------------------------------
Voltage-Levels:
---------------------------------
Wide-Range-Inputvoltage: not connected
LifePo4-Batteryvoltage: 3.253V [50%] [charging]
microUSB-Inputvoltage:[nbsp] 4.915V
Output-Voltage: 5.015V

sreillon

31.01.23 16:44

Hello, test done.


It works, in fact it's the only way to have a true shutdown even with a power back. But, once off, if the power back, there are not automatic power on. I tried to put a jumper on the card on power button. But it start also on battery without main power. Not very usefull in the context of autonomus system so.


In the context to have autonomous system, a power off with timer in case of main power failure, without a power back feature during the timer and with automatic power on after the shutdown (like the simple ShutdownTimer), would be great.


We need a command "poweroff", that shutdown the strompi after a timer. And once the strompi off, an automatic power on like the simple shutdown timer does.


To try this command, even with no main power failure, the strompi should power off after a timer, and restart after few second. Like a "reboot".


I tryed the command "poweroff". Once the command sent, I receive "xxxShutdownRaspberryPixxx" -[gt] good ! now I can shutdown the rasp. But, many times, the strompi stay on if there is a power back during the timer -[gt] fail :(


Is it really not possible to ignore the power back during the timer of the poweroff command, and have a true shutdown?


Anyway, currently, I use only the simple ShutdownTimer. And i try to limited the write process of the rasp to avoid problem during the hard power off. It's the only way.


I know there are the possibility to change the code of the firmware, do you have a complete flash process documentation to do that safely?


Thanks


[nbsp]

sreillon

02.02.23 10:40

Hello Sreillon,


Unfortunately, this behavior is not possible with the current firmware version.
In our download directory, you can find instructions for the setup of the STM32Cube-IDE as well as instructions for the flashing process.


When programming you have to pay attention to memory efficiency because the memory of the microcontroller is already almost completely used.


Best regards


Tim (Joy-IT)

Tim

03.02.23 15:00

ok thank you

sreillon

09.02.23 11:07