• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

src/11-Mar-2024-317245

CMakeLists.txtD11-Mar-2024194 85

README.rstD11-Mar-20241.3 KiB3828

prj.confD11-Mar-2024242 109

sample.yamlD11-Mar-2024322 1514

README.rst

1.. _bluetooth-hci-pwr-ctrl-sample:
2
3Bluetooth: HCI Power Control
4############################
5
6Overview
7********
8
9This sample application demonstrates the dynamic Tx power control over the LL
10of the BLE controller via Zephyr HCI VS commands. The application implements a
11peripheral advertising with varying Tx power. The initial advertiser TX power
12for the first 5s of the application is the Kconfig set default TX power. Then,
13the TX power variation of the advertiser is a repeatedly descending staircase
14pattern ranging from -4 dBm to -30 dBm where the Tx power levels decrease every
155s.
16
17Upon successful connection, the connection RSSI strength is being monitored and
18the Tx power of the peripheral device is modulated per connection accordingly
19such that energy is being saved depending on how powerful the RSSI of the
20connection is. The peripheral implements a simple GATT profile exposing the
21HR service notifying connected centrals about a dummy HR each 2s.
22
23Requirements
24************
25
26* BlueZ running on the host, or
27* A board with BLE support
28* A central device & monitor (e.g. nRF Connect) to check the RSSI values
29  obtained from the peripheral.
30
31Building and Running
32********************
33
34This sample can be found under :zephyr_file:`samples/bluetooth/hci_pwr_ctrl`
35in the Zephyr tree.
36
37See :ref:`bluetooth samples section <bluetooth-samples>` for details.
38