UPS3 power off guide

From Geekworm Wiki
Revision as of 00:15, 13 May 2021 by Harry (talk | contribs) (Created page with "{{GD Template Impl}} ==Check wringPi version== If you use raspberry pi 4 model b, please update wringPi library from V2.50 to V2.52, Please ignore it if you are use raspberr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Check wringPi version

If you use raspberry pi 4 model b, please update wringPi library from V2.50 to V2.52,

Please ignore it if you are use raspberry pi 3 model b;

UPS3-power-off-guide-1.png

How to update wringPi V2.5 to wringPi 2.52?

cd ~
mkdir  tmp
cd  tmp
wget  https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg  -i  wiringpi-latest.deb

Then run command the following command to check the wringPi library version

gpio –v
UPS3-power-off-guide-2.png

OK, the wringPi library version is updated to V2.52 now

Check the power off PIN of UPS 3 board

UPS3-power-off-guide-3.png

If pin 0 and pin1 are connected, the GIPO is 6, if pin 0 and pin2 are connected, the GPIO is 13

How to software full shut down?

gpio -v
gpio –g mode 6 out	 #6 is the power off GPIO pin, 6 and 13 is optional, it depend on the previous selection
gpio readall
UPS3-power-off-guide-4.png
gpio –g write 6 1	#this is the shutdown command
Add your comment
Geekworm Wiki welcomes all comments. If you do not want to be anonymous, register or log in. It is free.


Anonymous user #3

22 months ago
Score 0++
After multiple attempts to set it up and power off Raspberry Pi 4 safely with gpio –g mode 6 out and gpio –g write 6 1 does not work (It still changes the value in in gpio readall table, but it does not start the shutdown sequence). I have tried using sudo shutdown now and many other different commands, but it always gets stuck in shutdown (plymouth-poweroff.service, actually its kernel panic that happens, because the power is still supplied to the board after you initiate a sudo shutdown now command). Hopefully geekworm support can help somebody with some actual instructions on what to do if this happens.

Lisa

22 months ago
Score 0++

Hi

Could you please provide some pictuies?--[support@geekworm.com]

Please check which GPIO is shorted.

Anonymous user #2

26 months ago
Score 0++
Please document how this power off function relates to 1) the setting of the Auto UPS switch On or Off, and 2) if it matters if power is supplied on the USB3 connector.

Anonymous user #2

26 months ago
Score 0++

Given GPIO 6 is connected on the POFF strap, if I drive GPIO 6 to logic 1 then power to the RPi is immediately turned off, correct? It seems that this would be an uncontrolled power off to the RPi.

Is there a delay function for power off after a few seconds after GPIO 6 is asserted high, so that I can do a Linux shutdown command before the power switches off?

Lisa

26 months ago
Score 0++

Hello,

Yes, you can measure whether the gpio6 is really a logic 1 according to the configured driver.

Delayed shutdown function: please try to implement through software.

Anonymous user #1

30 months ago
Score 0++
Hi, I am looking for a solution to enable the pi with this UPS hat to perform a remote reboot. Currently, if I reboot I have to manually power off the ups hat and then power it on again with the ups button to get it going. Is there a way to remotely reboot without having any manual assistance to get it going again.? Thank you

Lisa

30 months ago
Score 0++
Hi,UPS3 Supports AUTO POWER ON function (need to select the AUTO UPS switch to ON)