Changes

Jump to navigation Jump to search

X728

744 bytes removed, 10:09, 26 November 2021
A:Because there are so many kind of batteries, and the quality is also various. So we suggest to use the NCR18650B from Panasonic. Also '''do not use''' 18650 battery with built-in protection circuit for X728.
 
Q2: We want automatic shutdown when the external AC power supply is disconnected, is possible?
 
A: Yes. you can program a script to get this function. Example (The following is a pseudo code):
<pre>
 
while (1) {
// invoke the API to get AC PSU status: connected or disconnected
int disconnected_flag = getACPSUStatus(); // please refer to the user manual to achieve getACPSUStatus function;
int battery_voltage = getBatteryVoltage(); // please refer to the user manual to achieve getBatteryVoltagefunction;
// You can make your own actions based on disconnected_flag and battery_voltage, you can only select one condition also
if (disconnected_flag) {
// execute linux or software shutdown command
}
 
sleep(10);
}
</pre>

Navigation menu