AT Command

Description

AT+CBC AT command returns the battery status of the device.Possible values are,
0 MT is powered by the battery
1 MT has a battery connected, but is not powered by it
2 MT does not have a battery connected
3 Recognized power fault, calls inhibited


Support

Module Tutorial
Usage
Command Possible response(s)
+CBC +CBC: , +CME ERROR: 
+CBC=? +CBC: (list of supporteds),(list of supporteds)

Examples

AT+CBC
+CBC: 0,0

OK
AT+CBC=?
+CBC: (0-3),(0-100)

OK

KeywordsAT+CBC syntax, examples, parameters, error, input, response.

Test AT+CBC command with AT Command Tester





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.