SMS/GPRS command - battery: Difference between revisions
Appearance
Creating page for SMS/GPRS command "battery". |
Added note about using readavl 113 for battery level percentage. |
||
| Line 1: | Line 1: | ||
[[File:smsgprscommand_battery.png|300px|right|alt=battery]] | [[File:smsgprscommand_battery.png|300px|right|alt=battery]] | ||
{{Template:SMSGPRScommandPage | {{Template:SMSGPRScommandPage | ||
|description=Returns information about battery status. If battery is not present voltage and current will return zero value.}} | |description=Returns information about battery status. If battery is not present voltage and current will return zero value.<br>''Note! For battery level percentage, use [[SMS/GPRS command - readavl]]: <code>readavl 113</code>''.}} | ||
===Syntax=== | ===Syntax=== | ||
battery | battery | ||
Revision as of 15:34, 16 January 2026
SMS/GPRS commands > SMS/GPRS command - battery
Description
Returns information about battery status. If battery is not present voltage and current will return zero value.
Note! For battery level percentage, use SMS/GPRS command - readavl: readavl 113.
Syntax
battery
Arguments
This command has no arguments.
Examples
| REQUEST | OUTCOME | RESPONSE |
|---|---|---|
| battery | Success | BatState: n/a FSMState: active ChargerIC: OFF ExtV: 11796 BatV:3942 BatI: 0 |
| battery | Fail | No response |
Response Explanation
| RESPONSE ELEMENT | DESCRIPTION | EXAMPLE |
|---|---|---|
| BatState: | Battery State: n/a (not implemented yet) |
BatState: n/a |
| ChargingState: | Charging State: - active - standby - n/a - error |
ChargingState: active |
| ChargerIC: | Charger State: - ON - OFF - Failure |
ChargerIC: ON |
| ExtV: | External Voltage (mV) | ExtV: 11796 |
| BatV: | Battery Voltage (mV) | BatV: 3942 |
| BatI: | Battery Charge Current (mA) | BatI: 100 |