BLE/BT Power Consumption Test
Introduction:
BLE/BT power consumption test routine (LCPU main frequency at 24MHz). BLE can test broadcast and connection mode power consumption, BT can test Scan and Sniff mode power consumption. The wake-up PIN varies on different development boards, with the following corresponding relationships: - EC-LB58X: Uses PA64 - EH-LB561/EH-LB563: Uses PB34, corresponding to HR_INT on HDK - EH-ss6500/EH-LB523/EH-LB520: Uses PA24, corresponding to GPS_PEN on HDK
When the wake-up PIN is at low level, both HCPU and LCPU cannot enter low power mode. At this time, commands can be sent through HCPU Console to modify parameters. When the wake-up PIN is connected to high level, HCPU can enter low power mode, while LCPU periodically enters and exits low power mode. At this time, Console cannot be used. HCPU uses UART1 as Console port, LCPU uses UART4 as Console port.
Mobile Phone Recommendations:
For iPhone, third-party software LightBlue is recommended; for Android, use nRF Connect for BLE testing.
Project Description
Supported development boards include
ec-lb583
ec-lb587
eh-lb561
eh-lb563
eh-lb523
Compilation method: Enter the hcpu directory and execute the command
scons --board=<board_name> -j8
, where board_name is the board name. For example, to compile eh-lb561 board, the complete command isscons --board=eh-lb561 -j8
The compiled image files are stored in the build_<board_name> directory of HCPU. For project usage, refer to <> For development boards using NAND, such as ec-lb583, ec-lb587 and eh-lb563, when using the development board for the first time, you also need to execute download_fs.bat in the HCPU project development board directory to flash the file system image to Flash, otherwise it will prompt file system mount failure after startup. The file system image only needs to be flashed once. If the file system is re-flashed, the Bluetooth address will also be lost and needs to be reconfigured.