You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(See the README.md file in the upper-level 'examples' directory for more information about examples.)
6
+
* This example demonstrates the capability of the CS procedure to be executed on the ESP host + external controller.
7
+
* It is important to note that the current example does not provide support for distance calculation, and it is currently under development.
5
8
6
-
(See the README.md file in the upper level 'examples' directory for more information about examples.)
9
+
## Example output
7
10
8
-
This example creates GATT client and performs passive scan, it then connects to peripheral device if the device advertises connectability and the device advertises support for the Alert Notification service (0x1811) as primary service UUID.
11
+
I (372) hal_uart: set baud_rate:115200.
9
12
10
-
After connection it enables bonding and link encryprion if the `Enable Link Encryption` flag is set in the example config.
13
+
I (382) NimBLE_RAS_INITIATOR: BLE Host Task Started
14
+
I (382) main_task: Returned from app_main()
11
15
12
-
It performs six GATT operations against the specified peer:
16
+
I (432) NimBLE: GAP procedure initiated: extended discovery;
13
17
14
-
* Reads the ANS Supported New Alert Category characteristic.
18
+
I (157332) NimBLE: GAP procedure initiated: extended connect;
19
+
I (157552) NimBLE: Connection established
20
+
I (157562) NimBLE: Connection secured
21
+
I (162222) NimBLE: encryption change event; status=0
15
22
16
-
* After the read operation is completed, writes the ANS Alert Notification Control Point characteristic.
23
+
I (162372) NimBLE: CS capabilities exchanged
24
+
I (162372) NimBLE: Set default CS settings
25
+
I (162392) NimBLE: create CS config
26
+
I (162392) NimBLE: Setup phase completed
17
27
18
-
* After the write operation is completed, subscribes to notifications for the ANS Unread Alert Status characteristic.
19
-
20
-
* After the subscribe operation is completed, it subscribes to notifications for a user defined characteristic.
21
-
22
-
* After this subscribe operation is completed, it writes to the user defined characteristic.
23
-
24
-
* After the write operation is completed, it reads from the user defined characteristic.
25
-
26
-
If the peer does not support a required service, characteristic, or descriptor, then the peer lied when it claimed support for the alert notification service! When this happens, or if a GATT procedure fails, this function immediately terminates the connection.
27
-
28
-
It uses ESP32's Bluetooth controller and NimBLE stack based BLE host.
29
-
30
-
This example aims at understanding BLE service discovery, connection, encryption and characteristic operations.
31
-
32
-
To test this demo, use any BLE GATT server app that advertises support for the Alert Notification service (0x1811) and includes it in the GATT database.
33
-
34
-
Note :
28
+
## Note:
29
+
* This example currently requires an external Bluetooth controller supporting BLE Channel sounding functionality,as the ESP chips listed above do not have native controller support for BLE channel sounding feature and is under development phase
35
30
36
31
* To install the dependency packages needed, please refer to the top level [README file](../../../README.md#running-test-python-script-pytest).
37
32
@@ -45,7 +40,7 @@ idf.py set-target <chip_name>
45
40
46
41
### Hardware Required
47
42
48
-
* A development board with ESP32/ESP32-C2/ESP32-C3/ESP32-S3 SoC (e.g., ESP32-DevKitC, ESP-WROVER-KIT, etc.)
43
+
* A development board with ESP32/ESP32-C2/ESP32-C3/ESP32-S3/ESP32-C6 SoC (e.g., ESP32-DevKitC, ESP-WROVER-KIT, etc.)
49
44
* A USB cable for Power supply and programming
50
45
51
46
See [Development Boards](https://www.espressif.com/en/products/devkits) for more information about it.
@@ -70,68 +65,6 @@ Run `idf.py -p PORT flash monitor` to build, flash and monitor the project.
70
65
71
66
See the [Getting Started Guide](https://idf.espressif.com/) for full steps to configure and use ESP-IDF to build projects.
72
67
73
-
## Example Output
74
-
75
-
This is the console output on successful connection:
76
-
77
-
```
78
-
I (202) BTDM_INIT: BT controller compile version [0b60040]
79
-
I (202) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
80
-
W (212) phy_init: failed to load RF calibration data (0xffffffff), falling back to full calibration
81
-
I (422) phy: phy_version: 4007, 9c6b43b, Jan 11 2019, 16:45:07, 0, 2
82
-
I (722) NimBLE_BLE_CENT: BLE Host Task Started
83
-
GAP procedure initiated: stop advertising.
84
-
GAP procedure initiated: discovery; own_addr_type=0 filter_policy=0 passive=1 limited=0 filter_duplicates=1 duration=forever
0 commit comments