Changes

Jump to navigation Jump to search

UPS3 power off guide

818 bytes added, 11:27, 13 May 2021
no edit summary
{{GD Template Impl}}
==Preface==UPS 3 reserve power off hardware GPIO port to implement software full shutdown, this article introduces how to use the GPIO port of UPS3 to realize software shutdown function.==Check wringPi wirinpi version==If you use raspberry pi 4 model bIn Raspberry Pi 4b, please update wringPi library from V2wiringPi 2.49 or wirinpi 2.50 will generate an error if the ‘gpio readall’ command is used to read the pin information, so it should be upgraded to V2wirinpi 2.52. If you use Raspberry Pi 3b, you don't need to upgrade.
Please ignore it if you are use raspberry pi 3 model b;
[[File:UPS3-power-off-guide-1.png|none]]
'''The following uninstall action is optional, you need execute uninstall action if you meet some questions when you upgrade wirinpi.''' Before upgrading, you should uninstall the original wiringpi first, uninstall method depend on your installation directory, execute the following command in the installation directory ./build uninstall sudo apt-get remove wiringpi sudo apt-get purge wiringpi hash -r ==How to update wringPi wirinpi V2.5 to wringPi wirinpi 2.52?==
cd ~
mkdir tmp
sudo dpkg -i wiringpi-latest.deb
Please download [[File:Wiringpi-latest.zip]] if you don't visit https://project-downloads.drogon.net/wiringpi-latest.deb Then run command the following command to check the wringPi wirinpi library version
gpio –v
[[File:UPS3-power-off-guide-2.png|none]]
OK, the wringPi wirinpi library version is updated to V2.52 now
==Check the power off PIN of UPS 3 board==
[[File:UPS3-power-off-guide-3.png|none]]

Navigation menu