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
73 stars 25 forks source link

New device, set up error 121 #96

Open alpapak opened 2 years ago

alpapak commented 2 years ago

Hello, I have one upsplus and after following the setup manual and running the install script i got error 121

Any idea?

8BE4F8F2-682F-4469-8527-950EB0E7A550

check0r0 commented 2 years ago

Buster or Bullseye?

Put this down in the console: sudo i2cdetect -y 1 and show the result.

alpapak commented 2 years ago

Hi,

i have Buster. It seems that i had to add in boot/config.txt dtoverlay=i2c-rtc,ds1307. Now, it is boot up and then halt.

ekaftan commented 2 years ago

Did you fix the problem?

I have the same problem right now.

pi@raspberrypi:~ $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- 18 -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: 40 -- -- -- -- 45 -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
pi@raspberrypi:~ $ i2cget -y 1 0x17 25 Error: Read failed

Its a 3B+ running Buster.

mmaga commented 2 years ago

Did you fix the problem?

I have the same problem right now.

pi@raspberrypi:~ $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- 18 -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: 40 -- -- -- -- 45 -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- pi@raspberrypi:~ $ i2cget -y 1 0x17 25 Error: Read failed

Its a 3B+ running Buster.

I have a RPi 4B model, bullseye x64.

I've tried to write 0x00 in the address 50 in the same way OTA_firmware_upgrade.py does at the end of the script without success (bus.write_byte_data(0X18, 50, 0)):

i2cset -y 1 0x18 50 0 b

The only way I could get out of the firmware upgrade mode (0x18) to the operational mode (0x17) was to proceed a complete firmware upgrade running:

python3 OTA_firmware_upgrade.py sudo halt

I removed batteries and external power source, reinstalled batteries, and the UPSPlus was working in the 0x17 operation mode, back again.

alpapak commented 2 years ago

i gave it up and order another hat from another company. I stoped using it from my last post.

mmaga commented 2 years ago

@alpapak, which one, if you don't mind to inform for a next purchase? because it is very disappointing about having no clue on miss-functions of the upsplus.

alpapak commented 2 years ago

@mmaga please check me repo. you will find your answer. i am using it in my project for 6months and i am very happy.