Changes

Jump to navigation Jump to search

X708-Software

654 bytes added, 16:13, 27 April 2022
* This script can also perform safe shutdown at specified voltage threshold (default voltage threshold is 3.00vdc), you can also modify this voltage threshold, '''but the voltage threshold range must be 2.5~4.1vdc'''.
86. Testing AC power off/loss or power adapter failure detection (need to shor the 'PLD' pinfunction)
cd ~
cd x708v2/raspberry-pi-os
</pre>
97. Test Auto shutdown when AC power loss or power adapter failure <span style="color:#23AC38">pi@raspberrypi</span>:<span style="color:#50BEDB">~ $</span> cd x708v2/raspberry-pi-os/ <span style="color:#23AC38">pi@raspberrypi</span>:<span style="color:#50BEDB">~/x708v2/raspberry-pi-os $ </span>sudo python3 plsd.py Testing Started---AC Power Loss OR Power Adapter Failure--- Shutdown in 5 seconds Connection closing...Socket close.  8. How to programming to get ASD (automatically shut down) function on V1.2 version?
python3 /home/pi/x708/x708asd.py &
 
pi@raspberrypi:~ $ cd x708v2/raspberry-pi-os/
pi@raspberrypi:~/x708v2/raspberry-pi-os $ sudo python3 plsd.py
Testing Started---AC Power Loss OR Power Adapter Failure---
Shutdown in 5 seconds
Connection closing...Socket close.

Navigation menu