Low-power system design with AIROC™ Wi-Fi & Bluetooth® combo
chip and PSoC™ 6 MCU
Power measurement using CY8CKIT-062S2-43012
7.5
mtb-example-btstack-freertos-cts-server
This section describes power measurement in CY8CKIT-062S2-43012 with the
cts-server
code example. This example allows you to measure the current while the device is scanning in high-
duty and in low-duty.
By default, the example implements the CTS service as a GATT server.
Set up the CY8CKIT-062S2-43012 kit as explained in the
1.
N6705B power analyzer from Keysight as a reference setup to measure power.
Turn ON the channels to power PSoC™ 6 MCU and AIROC™ CYW43012 Wi-Fi & Bluetooth® combo chip from
2.
the power analyzer. You can connect the onboard KitProg to view logs in terminal software through the
COM port.
3. On bootup, the AIROC™ CYW43012 Wi-Fi & Bluetooth® combo chip will not have any RF activity. Press
USER_BTN1 (SW2) to start high-duty scanning.
7.5.1
Power measurement
This example enables you to measure power in three different AIROC™ Bluetooth® LE states; standby, scanning,
and connected states. Follow these steps to enter each state and measure power for different kits.
To enter different states
Standby state: After programming the device, AIROC™ Bluetooth® LE is initialized and stays in the standby
•
state. On the terminal, check for the message 'Bluetooth® stack initialization successful' and now you can
measure power for the standby state.
Scanning state: Press the user button(SW2) on your kit to start scanning. Note that the kit with CTS client
•
CE must be advertising when it starts scanning. When it discovers the peer device, it sends a connection
request. A high-duty scan will be performed initially for 30 seconds. Then the device switches to low-duty
scanning without a timeout. High-duty scanning of 30 seconds is chosen for faster discovery. This
configuration can be changed if required using the tool 'bt-configurator' that comes with Modustoolbox™
installation.
Connected state: After the scanner finds the advertiser, the connection is established. The terminal
•
displays the message 'Connected : BDA xx:xx:xx:xx:xx:xx'.
Application note
mtb-example-btstack-freertos-
Hardware
setup. Note that this section uses the
53
002-27910 Rev. *C
2023-05-29