Datasheet
Page 108 of 161
nRF8001 Product Specification
Revision 1.2
24.11 GetBatteryLevel (0x0B)
GetBatteryLevel measures the battery supply voltage level.
24.11.1 Functional description
Upon receiving the GetBatteryLevel command, the supply voltage level is sampled and reported as a 2
byte number.
See the operating mode during which this command can be used in Table 31. on page 92
. The command
will return a command response event with status ACI_STATUS_ERROR_DEVICE_STATE_INVALID
when it is used in the incorrect mode.
24.11.2 Message format
Table 47. ACI message structure for GetBatteryLevel
24.11.3 Accepted values
None
24.11.4 Returned events
This command returns a CommandResponsEvent.
Data returned in the
CommandResponseEvent is:
• Command code:
GetBatteryLevel
• Status: Success
• Response data: Supply voltage level (2 bytes, LSB/MSB). Analog voltage is calculated by
multiplying the binary number by 3.52 mV .
24.11.5 Bluetooth low energy procedures used
None
Message field/parameter
Value size
(bytes)
Data value Description
Header
Length 1 1 Packet length
Command 1 0x0B
GetBatteryLevel