Skip to content
Get 5% off your entire order with a minimum purchase of $30 – automatically applied at checkout ! Black Friday Exclusive Deals Await!
UPS3 API and calling safe shutdown | Geekworm

UPS3 API and calling safe shutdown


  • I've read through both wiki pages for UPS3 (1st, 2nd) and I still can't safely shutdown my RP4 after setting GPIO 6 to out and then calling

    gpio -g write 6 1

     

    I've triple checked the power pin on the UPS3 is soldered towards pin 6. The soldering was already done when I recieved the package, so I'm very confused.

    Also the wiki constatly references the user manual for information, but there is only information on the installation and not on the UPS3 API. Example below of UPS3 wiki FAQ section.

    Can I get some clarification on

    1. Why does writing to GPIO 6 not shutdown the RP4 like in the wiki page?
    2. Where can I find python API and some example of it for the UPS3 hat? 


  • Hello,

    1.Please check if the Raspberry Pi occupies this GPIO.

    2.You need to use the AUTO function of the UPS. Please refer to the description of the 【AUTO UPS】switch in the picture


  • @Lisa ZHANG
    1. Physically it's occupied by the UPS hat. Do I need to check it in software somewhere?
    2. The UPS3 automatically boots up, but how do I tell it to automatically shutdown when AC power is removed? There is no API I can reference in the wiki pages.


  • 1.Yes, please check in software if this GPIO is occupied by Raspberry Pi.
    2.Please refer to WIKI  FAQ---Q2: We want automatic shutdown when the external AC power supply is disconnected, is possible?


Please login to reply this topic!