|
Try this script included in AT Command Tester Tool.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Script-at_cbc.at
//Test AT+CBC AT command
//AT+CBC command is used to get status of battery charging
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//List of supported responses
//Charge Status - 0-> Battery is not charging, 1->Battery is charging 2->Battery charging is finished
//Battery connection level 1-100%
//Voltage - Battery voltage(mV)
AT+CBC=?
//WAIT for 1 sec
WAIT=1
//Query the current setting
AT+CBC
Output of above script in AT Command Tester Tool.
AT+CBC=?
+CBC: (0-3),(0-100)
OK
AT+CBC
+CBC: 2,0
OK
Device is not connected to battery.Battery is exhausted.