geeekpi / upsplus

UPS Plus is a new generation of UPS power management module. It is an improved version of the original UPS prototype. It has been fixed the bug that UPS could not charge and automatically power off during work time. It can not only perform good battery power management, but also provide stable voltage output and RTC functions. At the same time,it support for FCP, AFC, SFCP fast charge protocol, support BC1.2 charging protocol, support battery terminal current/voltage monitoring and support two-way monitoring of charge and discharge. It can provide programmable PVD function. Power Voltage Detector (PVD) can be used to detect if batteries voltage is below or above configured voltage. Once this function has been enabled, it will monitoring your batteries voltage, and you can control whether or not shut down Raspberry Pi via simple bash script or python script. This function will protect your batteries from damage caused by excessive discharge. It can provide Adjustable data sampling Rate. This function allows you to adjust the data sampling rate so that you can get more detailed battery information and also it will consume some power. The data sampling information can communicate with the upper computer device through the I2C protocol. UPS Plus supports the OTA firmware upgrade function. Once there is a new firmware update, it is very convenient for you to upgrade firmware for UPS Plus. The firmware upgrade can be completed only by connecting to the Internet,and execute a python script. Support battery temperature monitoring and power-down memory function. UPS Plus can be set to automatically start the Raspberry Pi after the external power comes on. The programmable shutdown and forced restart function will provide you with a remote power-off restart management method. That means you don’t need to go Unplug the power cable or press the power button to cut off the power again. You can set the program to disconnect the power supply after a few seconds after the Raspberry Pi is shut down properly. And you can also reconnect the power supply after a forced power failure to achieve a remote power-off and restart operation. Once it was setting up, you don't need to press power button to boot up your device which is very suitable for smart home application scenarios.
https://wiki.52pi.com/index.php?title=UPS_Plus_SKU:_EP-0136
MIT License
72 stars 25 forks source link

Make Firmware Public #132

Open Rogash1 opened 1 year ago

Rogash1 commented 1 year ago

I own a UPSPlus for a while now and face several issues with it. I really want to like the product, but the firmware behaves very strangely and a lot of functionality is not appropriately documented. Can you give us the source code of the main microcontroller so the community is able to fix the issues?

Rikests commented 6 months ago

This could be the saving grace for this device. I believe people could fix up some basic issues or add use cases them selves. If only the source of firmware of the UPS plus controller was available.

yoyojacky commented 5 months ago

We're not reluctant to release the firmware source code. It's because this involves power management, and we're concerned that users might modify the firmware privately, leading to device damage or even fire hazards. That's why it's not open to the public. However, feel free to raise any issues you encounter, and we'll see if we can assist you in resolving them.

Rikests commented 2 months ago

The problem is that the product is unusable for some, because of this power issue https://github.com/geeekpi/upsplus/issues/121. If you would implement a function where the battery would be charged to a reasonable voltage before powering on the raspberry via BACK-TO-AC function I would not have any reason to touch the firmware of UPS plus. I really like the product, just this software issue makes it unusable and 8 UPSplus boards are just gathering dust in my shelf.

yoyojacky commented 2 months ago

The problem is that the product is unusable for some, because of this power issue #121. If you would implement a function where the battery would be charged to a reasonable voltage before powering on the raspberry via BACK-TO-AC function I would not have any reason to touch the firmware of UPS plus. I really like the product, just this software issue makes it unusable and 8 UPSplus boards are just gathering dust in my shelf.

Could you please send E-mail to : jacky.li@52pi.com and we will help you resolve this problem.

dacarson commented 1 month ago

I have the same problem. If the batteries get too low, it won't turn back on. I have left the unit sitting for days, and it doesn't power up again as described in #121 . I end up having to do the exact steps that this user reported: https://github.com/geeekpi/upsplus/issues/121#issuecomment-1371936066 , ie unscrew and unmount the UPSPlus board from the RPi, charge up the batteries, then mount it back on again.

If there was a firmware setting that did something like, power up RPi when Battery Remaining reached X %, rather than trying to power up immediately, that would solve the problem.

Should I also email the address above too?

yoyojacky commented 1 month ago

I have the same problem. If the batteries get too low, it won't turn back on. I have left the unit sitting for days, and it doesn't power up again as described in #121 . I end up having to do the exact steps that this user reported: #121 (comment) , ie unscrew and unmount the UPSPlus board from the RPi, charge up the batteries, then mount it back on again.

If there was a firmware setting that did something like, power up RPi when Battery Remaining reached X %, rather than trying to power up immediately, that would solve the problem.

Should I also email the address above too?

yes, please.

dacarson commented 1 month ago

I would still like to request making the Firmware public. This would allow the community to implement:

a function where the battery would be charged to a reasonable voltage before powering on the raspberry via BACK-TO-AC function ... -- https://github.com/geeekpi/upsplus/issues/132#issuecomment-2191712930

Because the BACK-TO-AC the way it stands today doesn't seem to work for a lot of people, including me.