Helpdesk

Hi guys,


I'm trying to set the interval ON time by running a serial command. We are running over RPI4 bookworm (not Strompi3 image). Firmware is 1.81


We tried unsuccessfully:


serial_port.write(str.encode('interval-ontime 5'))


serial_port.write(str.encode('set-config 20 5'))


But the following is working:


serial_port.write(str.encode('status-rpi'))


serial_port.write(str.encode("poweroff"))

lennydelesi

20.07.25 12:35

And another thing... It is not shutting down after 15min.


Also, after shutting down through shutdown.py, it does not wake up after 5min.


---------------------------------
StromPi-Status:
---------------------------------
Time: 20:28:45
Date: Tuesday 01.05.18
 
StromPi-Output: Battery
 
StromPi-Mode: Wide -> mUSB -> Battery
 
Raspberry Pi Shutdown: Disabled
 Shutdown-Timer: 10 seconds
 
Powerfail Warning: Disabled
 
Serial-Less Mode: Disabled
 
Power Save Mode: Disabled
 
PowerOn-Button: Enabled
 
 PowerOn-Button-Timer: 30 seconds
 
Battery-Level Shutdown: Disabled
 
Powerfail-Counter: 60
 
PowerOff Mode: Disabled
---------------------------------
Alarm-Configuration:
---------------------------------
WakeUp-Alarm: Disabled
 Alarm-Mode: Time-Alarm
 Alarm-Time: 00:00
 Alarm-Date: 01.11
 WakeUp-Alarm: Monday
 Weekend Wakeup: Enabled
 Minute Wakeup Timer: 30 minutes 
 
PowerOff-Alarm: Disabled
 PowerOff-Alarm-Time: 00:00
 
Interval-Alarm: Enabled
 Interval-On-Time: 15 minutes
 Interval-Off-Time: 05 minutes
 
---------------------------------
Voltage-Levels:
---------------------------------
Wide-Range-Inputvoltage: 11.952V
LifePo4-Batteryvoltage: 3.171V [50%]
microUSB-Inputvoltage:  not connected
Output-Voltage: 5.098V

lennydelesi

20.07.25 13:55

Edit: 


Interval-On-Time is correct and working properly


Interval-Off-Time on the other hand is not. Whenever it goes down after interval-on, it literally reboots.


But if I shutdown.py through serial, it goes up correctly after 5min

lennydelesi

20.07.25 23:08

Somehow I think it's working properly... A bit hard to know what the uptime was but I think it's working alright now.


Nonetheless I need to change the interval time through serial (initial question)

lennydelesi

21.07.25 09:10

Ok, so one more thing... I think there is some issue between:


Wide->mUSB->Battery and Interval off timer because when we use mUSB the interval off is not working and reboots again not waiting (as previously pointed).


It did worked properly however when it was plugged in through Wide only....

lennydelesi

21.07.25 13:27

Hello Lennydelesi,


the commands you used are from the older CLI firmware version of the StromPi 3. These commands have been removed in newer firmware versions to free up memory for additional features.


To set the Interval Alarm with serial commands on the current firmware, you have to use the following commands:


Correct Serial Commands for Interval Alarm:




  1. Enable or Disable the Interval Alarm
    set-config 19 <0|1>
    0 = Interval Alarm disabled
    1 = Interval Alarm enabled




  2. Set Interval On-Time (minutes)
    set-config 20
    = Duration in minutes the StromPi stays ON during interval cycle (valid range: 0 to 65535)




  3. Set Interval Off-Time (minutes)
    set-config 21
    = Duration in minutes the StromPi stays OFF during interval cycle (valid range: 0 to 65535)




  4. Apply Configuration (save settings)
    set-config 0 0




Example Configuration:


If you want to enable the Interval Alarm with 30 minutes ON and 10 minutes OFF, you would send:


quit
set-config 19 1
set-config 20 30
set-config 21 10
set-config 0 0


Important Notes:




  • Always send "quit" before configuration to exit any previous menu or state.




  • Always finish with "set-config 0 0" to apply and save the settings.




  • Every command should be followed by a carriage return.




I will check if there is an firmware issue ragarding the interval alarm and the Wide->mUSB->Battery mode.


Best regards


Tim (Joy-IT)

Tim

21.07.25 13:51


Wide->mUSB->Battery and Interval off timer because when we use mUSB the interval off is not working and reboots again not waiting (as previously pointed).



I can't reproduce this problem, in my tests interval on and off work regardless off the input used.


Maybe there is an issue with your power supply. rCan you try another mUSB power supply?


Best regards


Tim (Joy-IT)

Tim

22.07.25 09:20