diff --git a/PiSugar-3-Series.md b/PiSugar-3-Series.md index d415d5c..cdf68cd 100644 --- a/PiSugar-3-Series.md +++ b/PiSugar-3-Series.md @@ -48,7 +48,7 @@ PiSugar 3 is the third generation of PiSugar Raspberry Pi battery power supply s | Output | 5V-3Amax | 5V-2.5Amax | | Battery capacity | 5000mah | 1200mah | | Communication interface | 0x57/0x68 address | 0x57/0x68 address | -| Size of PCB | 65mmX56mm | 65mmX30mm | +| Size of PCB | 65mmX56mm | 65mmX30mm | ## Table of I2C @@ -254,8 +254,9 @@ WebUI supports this function. **Register address:** - 1. set up:he 4th bit of the 0x03 address; - 2. query whether to enter the soft shutdown state: the 3rd bit of the 0x03 address. + set up:he 4th bit of the 0x03 address; + + query whether to enter the soft shutdown state: the 3rd bit of the 0x03 address. **Register operation:** @@ -320,13 +321,54 @@ WebUI supports this function. The software watchdog provides a watchdog other than the Raspberry Pi system, which restarts the Raspberry Pi system when the Raspberry Pi system crashes. When this function is turned on, if the watchdog timer is not reset (kicking the dog) within the software watchdog time interval, PiSugar will temporarily turn off the output to achieve the purpose of restarting the Raspberry Pi system. The operation of kicking the dog needs to be completed by the user. - **default value:** This function is off by default. It is off by default each time it restarts. **WebUI does not support this function.** + **Operation example:** + + https://github.com/PiSugar/pisugar-power-manager-rs/blob/master/scripts/SoftwareWatchdogPiSugar3.sh + +1. Boot watchdog + + **Register address:** + + The function switch is the 4th position of 0x06 address, the reset of boot watchdog is set to the 3rd position of 0x06 address, and the restart times of boot soft watchdog is limited to 0x0a address. + + **Register operation:** + + can be read or written. + + **Data description:** + + 1 is on, 0 is off. + + Writing 1 to the boot watchdog reset setting bit will end this round(feeding the dog). The minimum restart times of the boot watchdog is 1. + + **Function description:** + + Provides a watchdog function that monitors whether the system is turned on properly. When the Raspberry Pi system is turned on, the dog feeding operation should be performed as soon as possible. The dog feeding operation only needs to be done once in a single start. + + If the dog is not fed for more than a minute and a half and the function is not turned off, PiSugar will power off and restart, and start the watchdog again. + + The number of restarts can be limited by 0x0a. + + Dog feeding needs to be done by the user. + + **default value:** + + This function is off by default. It is off by default every time the system is reset. + + **WebUI does not support this function.** + + **Minimum firmware version: 1.0.6** + + **Operation example:** + + https://github.com/PiSugar/pisugar-power-manager-rs/blob/master/scripts/BootWatchdogPiSugar3.sh + 1. Charging protection **Register address:**