fix(nimble): Update example READMEs with correct console log information

This commit is contained in:
Rahul Tank
2026-04-14 16:19:27 +05:30
parent a52c67a67b
commit 5ec65b14c4
24 changed files with 716 additions and 1002 deletions
@@ -50,40 +50,14 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
There is this console output when periodic_adv is started: There is this console output when periodic_adv is started:
``` ```
I (364) main_task: Started on CPU0 I (...) CTE_ADV_EXAMPLE: DIRECTION_FINDING Example Periodic Adv AOA Mode
I (364) main_task: Calling app_main() I (...) CTE_ADV_EXAMPLE: BLE Host Task Started
I (374) BLE_INIT: Using main XTAL as clock source I (...) CTE_ADV_EXAMPLE: Device Address:
I (374) BLE_INIT: ble controller commit:[c223b2b] I (...) CTE_ADV_EXAMPLE: xx:xx:xx:xx:xx:xx
I (384) BLE_INIT: Bluetooth MAC: 74:4d:bd:60:1b:bb I (...) NimBLE: GAP procedure initiated: extended advertise; instance=0
I (394) phy: phy_version: 322,2, 823e7f8, Mar 3 2025, 16:09:11
I (414) phy: libbtbb version: e9c8b26, Mar 3 2025, 16:09:24
I (414) CTE_ADV_EXAMPLE:
███████╗███████╗██████╗ ██████╗ ██╗ ███████╗
██╔════╝██╔════╝██╔══██╗ ██╔══██╗██║ ██╔════╝
█████╗ ███████╗██████╔╝ ██████╔╝██║ █████╗
██╔══╝ ╚════██║██╔═══╝ ██╔══██╗██║ ██╔══╝
███████╗███████║██║ ██████╔╝███████╗███████╗
╚══════╝╚══════╝╚═╝ ╚═════╝ ╚══════╝╚══════╝
██████╗ ██╗██████╗ ███████╗ ██████╗████████╗██╗ ██████╗ ███╗ ██╗ ███████╗██╗███╗ ██╗██████╗ ██╗███╗ ██╗ ██████╗
██╔══██╗██║██╔══██╗██╔════╝██╔════╝╚══██╔══╝██║██╔═══██╗████╗ ██║ ██╔════╝██║████╗ ██║██╔══██╗██║████╗ ██║██╔════╝
██║ ██║██║██████╔╝█████╗ ██║ ██║ ██║██║ ██║██╔██╗ ██║ █████╗ ██║██╔██╗ ██║██║ ██║██║██╔██╗ ██║██║ ███╗
██║ ██║██║██╔══██╗██╔══╝ ██║ ██║ ██║██║ ██║██║╚██╗██║ ██╔══╝ ██║██║╚██╗██║██║ ██║██║██║╚██╗██║██║ ██║
██████╔╝██║██║ ██║███████╗╚██████╗ ██║ ██║╚██████╔╝██║ ╚████║ ██║ ██║██║ ╚████║██████╔╝██║██║ ╚████║╚██████╔╝
╚═════╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═════╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝
I (704) CTE_ADV_EXAMPLE: DIRECTION_FINDING Example Periodic Adv AOA Mode
I (714) CTE_ADV_EXAMPLE: BLE Host Task Started
I (714) NimBLE: Failed to restore IRKs from store; status=8
I (724) CTE_ADV_EXAMPLE: Device Address:
I (724) CTE_ADV_EXAMPLE: 10:21:34:8d:5a:c4
I (734) NimBLE: GAP procedure initiated: extended advertise; instance=1
I (734) CTE_ADV_EXAMPLE: Instance 1 started (periodic)
I (744) main_task: Returned from app_main()
I (...) CTE_ADV_EXAMPLE: Instance 0 started (periodic)
I (...) main_task: Returned from app_main()
``` ```
## Troubleshooting ## Troubleshooting
@@ -57,81 +57,39 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
This is the console output on successful periodic sync: This is the console output on successful periodic sync:
``` ```
I (372) main_task: Started on CPU0 I (...) CTE_SYNC_EXAMPLE: BLE Host Task Started
I (372) main_task: Calling app_main() I (...) NimBLE: GAP procedure initiated: extended discovery;
I (382) BLE_INIT: Using main XTAL as clock source
I (382) BLE_INIT: ble controller commit:[c223b2b]
I (392) BLE_INIT: Bluetooth MAC: 60:55:f9:f7:44:a5
I (402) phy: phy_version: 322,2, 823e7f8, Mar 3 2025, 16:09:11
I (422) phy: libbtbb version: e9c8b26, Mar 3 2025, 16:09:24
I (422) CTE_SYNC_EXAMPLE:
███████╗███████╗██████╗ ██████╗ ██╗ ███████╗ I (...) CTE_SYNC_EXAMPLE: Receive CTE Antenna Pattern Info:
██╔════╝██╔════╝██╔══██╗ ██╔══██╗██║ ██╔════╝ I (...) CTE_SYNC_EXAMPLE: aoa slot:2
█████╗ ███████╗██████╔╝ ██████╔╝██║ █████╗ I (...) CTE_SYNC_EXAMPLE: pattern_len: 4
██╔══╝ ╚════██║██╔═══╝ ██╔══██╗██║ ██╔══╝ I (...) CTE_SYNC_EXAMPLE: Started periodic sync with device
███████╗███████║██║ ██████╔╝███████╗███████╗
╚══════╝╚══════╝╚═╝ ╚═════╝ ╚══════╝╚══════╝
██████╗ ██╗██████╗ ███████╗ ██████╗████████╗██╗ ██████╗ ███╗ ██╗ ███████╗██╗███╗ ██╗██████╗ ██╗███╗ ██╗ ██████╗
██╔══██╗██║██╔══██╗██╔════╝██╔════╝╚══██╔══╝██║██╔═══██╗████╗ ██║ ██╔════╝██║████╗ ██║██╔══██╗██║████╗ ██║██╔════╝
██║ ██║██║██████╔╝█████╗ ██║ ██║ ██║██║ ██║██╔██╗ ██║ █████╗ ██║██╔██╗ ██║██║ ██║██║██╔██╗ ██║██║ ███╗
██║ ██║██║██╔══██╗██╔══╝ ██║ ██║ ██║██║ ██║██║╚██╗██║ ██╔══╝ ██║██║╚██╗██║██║ ██║██║██║╚██╗██║██║ ██║
██████╔╝██║██║ ██║███████╗╚██████╗ ██║ ██║╚██████╔╝██║ ╚████║ ██║ ██║██║ ╚████║██████╔╝██║██║ ╚████║╚██████╔╝
╚═════╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═════╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝
I (712) DF: bind gpio 1 to signal 57
I (712) DF: bind gpio 0 to signal 58
I (722) DF: bind gpio 2 to signal 59
I (722) DF: bind gpio 25 to signal 60
I (722) CTE_SYNC_EXAMPLE: BLE Host Task Started
I (732) NimBLE: Failed to restore IRKs from store; status=8
I (732) NimBLE: GAP procedure initiated: extended discovery;
I (742) CTE_SYNC_EXAMPLE: Receive CTE Antenna Pattern Info:
I (752) CTE_SYNC_EXAMPLE: aoa slot:2
I (752) CTE_SYNC_EXAMPLE: pattern_len: 4
I (752) CTE_SYNC_EXAMPLE: pattern:
I (762) CTE_SYNC_EXAMPLE: 00 04 08 0c
I (762) CTE_SYNC_EXAMPLE: Local CTE Antenna Info:
I (762) CTE_SYNC_EXAMPLE: switch_sampling_rates: 7
I (772) CTE_SYNC_EXAMPLE: num_antennae: 4
I (772) CTE_SYNC_EXAMPLE: max_switch_pattern_len: 16
I (782) CTE_SYNC_EXAMPLE: max_cte_len: 20
I (782) main_task: Returned from app_main()
I (812) CTE_SYNC_EXAMPLE: Started periodic sync with device
I (1722) CTE_SYNC_EXAMPLE: Periodic Sync Established
I (1722) CTE_SYNC_EXAMPLE: Periodic Sync Event:
I (1722) CTE_SYNC_EXAMPLE: Status: 0
I (1722) CTE_SYNC_EXAMPLE: Sync Handle: 0
I (1722) CTE_SYNC_EXAMPLE: SID: 2
I (1732) CTE_SYNC_EXAMPLE: Adv PHY: 1M
I (1732) CTE_SYNC_EXAMPLE: Interval: 640
I (1742) CTE_SYNC_EXAMPLE: Clock Accuracy: 4
I (1742) CTE_SYNC_EXAMPLE: Adv Addr: 10:21:34:8D:5A:C4
I (2522) CTE_SYNC_EXAMPLE: IQ Report | Sync Handle: 0 IQ num: 45 RSSI: -65 cte_type: 0 channel: 28
I (2522) CTE_SYNC_EXAMPLE: I: -48,-76,36,83,-18,-87,-2,85,-45,-37,-69,-104,-46,28,-16,25,34,35,69,100,45,-39,11,-35,-44,-32,-68,-97,-46,32,-7,29,41,32,70,93,40,-35,5,-35,-51,-34,-72,-101,48,
I (2532) CTE_SYNC_EXAMPLE: Q: -67,42,82,-26,-83,9,87,5,52,-28,16,-16,-41,-29,-66,-94,-45,34,-3,29,41,34,71,107,46,-29,13,-26,-45,-29,-70,-90,-47,37,-1,40,51,36,71,100,43,-32,-1,-27,-37,
I (3322) CTE_SYNC_EXAMPLE: IQ Report | Sync Handle: 0 IQ num: 45 RSSI: -62 cte_type: 0 channel: 5
I (3322) CTE_SYNC_EXAMPLE: I: 76,-15,-83,6,81,9,-81,-24,-36,-1,54,40,30,22,39,34,37,-1,-53,-43,-26,-24,-41,-38,-38,-2,48,42,24,23,42,36,38,1,-50,-39,-24,-24,-43,-36,-39,-5,46,39,46,
I (3332) CTE_SYNC_EXAMPLE: Q: -24,-81,11,82,1,-81,-15,79,-32,-25,-37,-39,-37,-2,51,40,26,22,39,32,39,-2,-52,-41,-29,-24,-43,-36,-42,-1,49,36,26,22,42,35,38,-1,-49,-41,-28,-25,-45,-38,17,
I (4122) CTE_SYNC_EXAMPLE: IQ Report | Sync Handle: 0 IQ num: 45 RSSI: -67 cte_type: 0 channel: 11
I (4122) CTE_SYNC_EXAMPLE: I: 75,6,-75,-19,71,38,-64,-44,-6,53,64,79,49,45,87,73,14,-47,-64,-74,-49,-39,-89,-67,-9,52,61,86,47,44,87,72,18,-45,-59,-77,-46,-39,-90,-72,-12,50,57,86,23,
I (4132) CTE_SYNC_EXAMPLE: Q: 1,-73,-11,72,30,-67,-41,59,-47,-41,-87,-77,-15,46,64,76,45,39,87,72,16,-51,-60,-84,-49,-43,-90,-72,-13,51,63,79,47,41,92,70,15,-50,-59,-79,-50,-44,-92,-69,42,
I (4922) CTE_SYNC_EXAMPLE: IQ Report | Sync Handle: 0 IQ num: 45 RSSI: -67 cte_type: 0 channel: 13
I (4922) CTE_SYNC_EXAMPLE: I: -27,62,44,-49,-52,41,63,-28,57,24,62,53,-14,-55,-59,-80,-44,-21,-63,-51,8,68,50,93,59,26,56,53,-2,-52,-54,-87,-53,-13,-64,-45,21,67,56,87,48,22,63,50,-41,
I (4932) CTE_SYNC_EXAMPLE: Q: 65,35,-57,-49,47,62,-35,-63,19,63,58,90,56,23,60,50,0,-57,-56,-85,-44,-14,-58,-47,17,56,61,79,43,17,68,48,-12,-66,-56,-90,-56,-19,-57,-56,7,51,60,87,-12,
I (5722) CTE_SYNC_EXAMPLE: IQ Report | Sync Handle: 0 IQ num: 45 RSSI: -70 cte_type: 0 channel: 20
I (...) CTE_SYNC_EXAMPLE: pattern:
I (...) CTE_SYNC_EXAMPLE: 00 04 08 0c
I (...) CTE_SYNC_EXAMPLE: Local CTE Antenna Info:
I (...) CTE_SYNC_EXAMPLE: switch_sampling_rates: 7
I (...) CTE_SYNC_EXAMPLE: num_antennae: 4
I (...) CTE_SYNC_EXAMPLE: max_switch_pattern_len: 16
I (...) CTE_SYNC_EXAMPLE: max_cte_len: 20
I (...) main_task: Returned from app_main()
I (...) CTE_SYNC_EXAMPLE: Periodic Sync Established
I (...) CTE_SYNC_EXAMPLE: Periodic Sync Event:
I (...) CTE_SYNC_EXAMPLE: Status: 0
I (...) CTE_SYNC_EXAMPLE: Sync Handle: 0
I (...) CTE_SYNC_EXAMPLE: SID: 2
I (...) CTE_SYNC_EXAMPLE: Adv PHY: 1M
I (...) CTE_SYNC_EXAMPLE: Interval: ...
I (...) CTE_SYNC_EXAMPLE: Clock Accuracy: ...
I (...) CTE_SYNC_EXAMPLE: Adv Addr: xx:xx:xx:xx:xx:xx
I (...) CTE_SYNC_EXAMPLE: IQ Report | Sync Handle: 0 IQ num: ... RSSI: ... cte_type: 0 channel: ...
I (...) CTE_SYNC_EXAMPLE: I: <iq_i_samples...>
I (...) CTE_SYNC_EXAMPLE: Q: <iq_q_samples...>
I (...) CTE_SYNC_EXAMPLE: IQ Report | Sync Handle: 0 IQ num: ... RSSI: ... cte_type: 0 channel: ...
I (...) CTE_SYNC_EXAMPLE: I: <iq_i_samples...>
I (...) CTE_SYNC_EXAMPLE: Q: <iq_q_samples...>
``` ```
## Troubleshooting ## Troubleshooting
@@ -59,96 +59,71 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
This is the console output on successful connection: This is the console output on successful connection:
``` ```
I (358) BLE_INIT: BT controller compile version [59725b5] I (822) NimBLE_CTS_CENT: BLE Host Task Started
I (358) BLE_INIT: Bluetooth MAC: 60:55:f9:68:c4:fa I (822) main_task: Returned from app_main()
I (368) phy_init: phy_version 1110,9c20f0a,Jul 27 2023,10:42:54 I (872) NimBLE: GAP procedure initiated: discovery;
I (408) NimBLE_CTS_CENT: BLE Host Task Started I (872) NimBLE: own_addr_type=0 filter_policy=0 passive=1 limited=0 filter_duplicates=1
I (408) NimBLE: GAP procedure initiated: stop advertising. I (872) NimBLE: duration=forever
I (872) NimBLE:
I (408) NimBLE: GAP procedure initiated: discovery; I (26022) NimBLE: GAP procedure initiated: connect;
I (408) NimBLE: own_addr_type=0 filter_policy=0 passive=1 limited=0 filter_duplicates=1 I (26022) NimBLE: peer_addr_type=0 peer_addr=
I (418) NimBLE: duration=forever I (26022) NimBLE: b0:b2:1c:b4:74:0e
I (428) NimBLE: I (26022) NimBLE: scan_itvl=16 scan_window=16 itvl_min=24 itvl_max=40 latency=0 supervision_timeout=256 min_ce_len=0 max_ce_len=0 own_addr_type=0
I (26032) NimBLE:
I (428) main_task: Returned from app_main() I (26282) NimBLE: Connection established
I (628) NimBLE: GAP procedure initiated: connect; I (26282) NimBLE:
I (628) NimBLE: peer_addr_type=1 peer_addr=
I (628) NimBLE: 6b:93:b5:30:71:cf
I (638) NimBLE: scan_itvl=16 scan_window=16 itvl_min=24 itvl_max=40 latency=0 supervision_timeout=256 min_ce_len=0 max_ce_len=0 own_addr_type=0
I (648) NimBLE:
I (908) NimBLE: Connection established I (26292) NimBLE: Connection secured
I (908) NimBLE:
I (918) NimBLE: Connection secured I (27832) NimBLE: encryption change event; status=0
I (27832) NimBLE: GATT procedure initiated: discover all services
I (1208) NimBLE: received indication; conn_handle=1 attr_handle=3 attr_len=4 I (27932) NimBLE: GATT procedure initiated: discover all characteristics;
I (27932) NimBLE: start_handle=1 end_handle=5
I (1208) NimBLE: GAP procedure initiated: I (28032) NimBLE: GATT procedure initiated: discover all characteristics;
I (1208) NimBLE: connection parameter update; conn_handle=1 itvl_min=6 itvl_max=6 latency=0 supervision_timeout=500 min_ce_len=0 max_ce_len=0 I (28032) NimBLE: start_handle=6 end_handle=13
I (1228) NimBLE:
I (3568) NimBLE: encryption change event; status=0 I (28132) NimBLE: GATT procedure initiated: discover all characteristics;
I (3568) NimBLE: GATT procedure initiated: discover all services I (28132) NimBLE: start_handle=14 end_handle=65535
I (3608) NimBLE: GATT procedure initiated: discover all characteristics; I (28332) NimBLE: GATT procedure initiated: discover all descriptors;
I (3608) NimBLE: start_handle=1 end_handle=9 I (28332) NimBLE: chr_val_handle=8 end_handle=9
I (3658) NimBLE: GATT procedure initiated: discover all characteristics; I (28432) NimBLE: GATT procedure initiated: discover all descriptors;
I (3658) NimBLE: start_handle=20 end_handle=26 I (28432) NimBLE: chr_val_handle=16 end_handle=17
I (3688) NimBLE: GATT procedure initiated: discover all characteristics; I (28532) NimBLE: GATT procedure initiated: discover all descriptors;
I (3688) NimBLE: start_handle=134 end_handle=141 I (28532) NimBLE: chr_val_handle=21 end_handle=65535
I (3718) NimBLE: GATT procedure initiated: discover all characteristics; I (28632) NimBLE: Service discovery complete; status=0 conn_handle=0
I (3718) NimBLE: start_handle=142 end_handle=151
I (3758) NimBLE: GATT procedure initiated: discover all characteristics; I (28632) NimBLE: GATT procedure initiated: read;
I (3758) NimBLE: start_handle=152 end_handle=158 I (28632) NimBLE: att_handle=16
I (3788) NimBLE: GATT procedure initiated: discover all characteristics; I (28732) NimBLE: Read Current time complete; status=0 conn_handle=0
I (3788) NimBLE: start_handle=159 end_handle=65535
I (3818) NimBLE: GATT procedure initiated: discover all descriptors; I (28732) NimBLE: attr_handle=16 value=
I (3818) NimBLE: chr_val_handle=136 end_handle=137
I (3838) NimBLE: GATT procedure initiated: discover all descriptors; I (28732) NimBLE: 0xb2
I (3838) NimBLE: chr_val_handle=144 end_handle=148 I (28732) NimBLE: :0x07
I (28732) NimBLE: :0x01
I (28732) NimBLE: :0x01
I (28732) NimBLE: :0x00
I (28742) NimBLE: :0x00
I (28742) NimBLE: :0x03
I (28742) NimBLE: :0x05
I (28742) NimBLE: :0x4b
I (28752) NimBLE: :0x00
I (28752) NimBLE:
I (3898) NimBLE: GATT procedure initiated: discover all descriptors; I (28752) NimBLE_CTS_CENT: Date : 1/1/1970 Friday
I (3898) NimBLE: chr_val_handle=150 end_handle=151 I (28752) NimBLE_CTS_CENT: hours : 0 minutes : 0
I (28762) NimBLE_CTS_CENT: seconds : 3
I (3908) NimBLE: GATT procedure initiated: discover all descriptors;
I (3908) NimBLE: chr_val_handle=161 end_handle=162
I (3928) NimBLE: GATT procedure initiated: discover all descriptors;
I (3928) NimBLE: chr_val_handle=164 end_handle=65535
I (3938) NimBLE: Service discovery complete; status=0 conn_handle=1
I (3938) NimBLE: GATT procedure initiated: read;
I (3938) NimBLE: att_handle=161
I (3958) NimBLE: Read Current time complete; status=0 conn_handle=1
I (3958) NimBLE: attr_handle=161 value=
I (3958) NimBLE: 0xe7
I (3958) NimBLE: :0x07
I (3958) NimBLE: :0x08
I (3968) NimBLE: :0x1e
I (3968) NimBLE: :0x14
I (3968) NimBLE: :0x25
I (3978) NimBLE: :0x02
I (3978) NimBLE: :0x03
I (3978) NimBLE: :0xf6
I (3978) NimBLE: :0x00
I (3988) NimBLE:
I (3988) NimBLE_CTS_CENT: Date : 30/8/2023
I (3998) NimBLE_CTS_CENT: hours : 20 minutes : 37
I (3998) NimBLE_CTS_CENT: seconds : 2
I (4008) NimBLE_CTS_CENT: fractions : 0
I (28762) NimBLE_CTS_CENT: fractions : 75
``` ```
## Troubleshooting ## Troubleshooting
@@ -40,38 +40,18 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
This console output can be observed when client is connected to server : This console output can be observed when client is connected to server :
``` ```
I (357) BLE_INIT: BT controller compile version [59725b5] I (833) NimBLE_CTS_PRPH: BLE Host Task Started
I (357) BLE_INIT: Bluetooth MAC: 60:55:f9:68:c4:fa I (833) main_task: Returned from app_main()
I (367) phy_init: phy_version 1110,9c20f0a,Jul 27 2023,10:42:54 I (883) NimBLE: Device Address:
I (407) NimBLE_cts_PRPH: BLE Host Task Started I (883) NimBLE: b0:b2:1c:b4:74:0e
I (407) NimBLE: GAP procedure initiated: stop advertising. I (883) NimBLE:
I (407) NimBLE: Failed to restore IRKs from store; status=8 I (883) NimBLE: GAP procedure initiated: advertise;
I (883) NimBLE: disc_mode=2
I (407) NimBLE: Device Address: I (883) NimBLE: adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=0 adv_itvl_max=0
I (417) NimBLE: 60:55:f9:68:c4:fa I (893) NimBLE:
I (417) NimBLE:
I (417) NimBLE: GAP procedure initiated: advertise;
I (427) NimBLE: disc_mode=2
I (427) NimBLE: adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=0 adv_itvl_max=0
I (437) NimBLE:
I (447) main_task: Returned from app_main()
I (27317) NimBLE: GAP procedure initiated: advertise;
I (27317) NimBLE: disc_mode=2
I (27327) NimBLE: adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=0 adv_itvl_max=0
I (27337) NimBLE:
I (31987) NimBLE: connection established; status=0
I (53297) NimBLE: subscribe event; cur_notify=1
value handle; val_handle=12
I (68317) NimBLE: subscribe event; cur_notify=0
value handle; val_handle=12
I (1123) NimBLE: connection established; status=0
``` ```
## Troubleshooting ## Troubleshooting
@@ -71,99 +71,63 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
This is the console output on successful connection: This is the console output on successful connection:
``` ```
I (436) NimBLE: BLE Host Task Started I (...) NimBLE: BLE Host Task Started
I (446) main_task: Returned from app_main() I (...) main_task: Returned from app_main()
I (506) NimBLE: Adding peer addr : 60:55:f9:f7:4f:42 I (...) NimBLE: GAP procedure initiated: discovery;
I (546) NimBLE: Connection established I (...) NimBLE: own_addr_type=0 filter_policy=0 passive=1 limited=0 filter_duplicates=1
I (546) NimBLE: I (...) NimBLE: duration=forever
I (546) NimBLE: GATT procedure initiated: exchange mtu I (...) NimBLE:
I (546) NimBLE: GATT procedure initiated: discover all services I (...) NimBLE: Adding peer addr : xx:xx:xx:xx:xx:xx
I (...) NimBLE: GAP procedure initiated: connect;
I (...) NimBLE: peer_addr_type=0 peer_addr=
I (...) NimBLE: xx:xx:xx:xx:xx:xx
I (...) NimBLE: scan_itvl=16 scan_window=16 itvl_min=24 itvl_max=40 latency=0 supervision_timeout=256 min_ce_len=0 max_ce_len=0 own_addr_type=0
I (...) NimBLE:
I (636) NimBLE: mtu update event; conn_handle=1 cid=4 mtu=256 I (...) NimBLE: Connection established
I (...) NimBLE:
I (...) NimBLE: GATT procedure initiated: exchange mtu
I (...) NimBLE: Connection secured
I (...) NimBLE: mtu update event; conn_handle=0 cid=4 mtu=256
I (696) NimBLE: GATT procedure initiated: discover all characteristics; I (...) ENC_ADV_DATA_CENT: PASSKEY_ACTION_EVENT started 2
I (696) NimBLE: start_handle=1 end_handle=7 I (...) ENC_ADV_DATA_CENT: Entering passkey 123456
I (...) ENC_ADV_DATA_CENT: ble_sm_inject_io result: 0
I (...) NimBLE: encryption change event; status=0
I (846) NimBLE: GATT procedure initiated: discover all characteristics; I (...) NimBLE: GATT procedure initiated: discover all services
I (846) NimBLE: start_handle=8 end_handle=11 I (...) NimBLE: GATT procedure initiated: discover all characteristics;
I (...) NimBLE: start_handle=...
I (...) NimBLE: GATT procedure initiated: discover all descriptors;
I (...) NimBLE: chr_val_handle=...
I (...) NimBLE: Service discovery complete; status=0 conn_handle=0
I (966) NimBLE: GATT procedure initiated: discover all characteristics; I (...) NimBLE: GATT procedure initiated: read;
I (966) NimBLE: start_handle=12 end_handle=65535 I (...) NimBLE: att_handle=<key_material_attr>
I (...) NimBLE: Read complete; status=0 conn_handle=0
I (...) NimBLE: attr_handle=<key_material_attr> value=
I (...) NimBLE: <session_key_and_iv_bytes...>
I (...) NimBLE: Writing of session key, iv, and peer addr to NVS success
I (1116) NimBLE: GATT procedure initiated: discover all descriptors; I (...) NimBLE: GAP procedure initiated: terminate connection; conn_handle=0 hci_reason=19
I (1116) NimBLE: chr_val_handle=10 end_handle=11 I (...) NimBLE: disconnect; reason=...
I (...) NimBLE: GAP procedure initiated: discovery;
I (1176) NimBLE: GATT procedure initiated: discover all descriptors; I (...) NimBLE: Peer was already added with addr : xx:xx:xx:xx:xx:xx
I (1176) NimBLE: chr_val_handle=14 end_handle=65535 I (...) NimBLE: Read session key and iv from NVS successfully
I (...) NimBLE: Decryption of adv data done successfully
I (1386) NimBLE: Service discovery complete; status=0 conn_handle=1 I (...) NimBLE: Data after decryption:
I (...) NimBLE: <decrypted_adv_bytes...>
I (1386) NimBLE: GATT procedure initiated: read;
I (1386) NimBLE: att_handle=7
I (1476) NimBLE: Read complete; status=0 conn_handle=1
I (1476) NimBLE: attr_handle=7 value=
I (1476) NimBLE: 0xc0
I (1486) NimBLE: :0xc1
I (1486) NimBLE: :0xc2
I (1486) NimBLE: :0xc3
I (1486) NimBLE: :0xc4
I (1496) NimBLE: :0xc5
I (1496) NimBLE: :0xc6
I (1496) NimBLE: :0xc7
I (1506) NimBLE: :0xc8
I (1506) NimBLE: :0xc9
I (1506) NimBLE: :0xca
I (1516) NimBLE: :0xcb
I (1516) NimBLE: :0xcc
I (1516) NimBLE: :0xcd
I (1526) NimBLE: :0xce
I (1526) NimBLE: :0xcf
I (1526) NimBLE: :0xfb
I (1526) NimBLE: :0x56
I (1536) NimBLE: :0xe1
I (1536) NimBLE: :0xda
I (1536) NimBLE: :0xdc
I (1546) NimBLE: :0x7e
I (1546) NimBLE: :0xad
I (1546) NimBLE: :0xf5
I (1556) NimBLE: Writing of session key, iv, and peer addr to NVS success
I (1556) NimBLE: GAP procedure initiated: terminate connection; conn_handle=1 hci_reason=19
I (1596) NimBLE: disconnect; reason=534
I (1596) NimBLE:
I (1626) NimBLE: Peer was already added with addr : 60:55:f9:f7:4f:42
I (1626) NimBLE: Read session key and iv from NVS successfully
I (1636) NimBLE: Decryption of adv data done successfully
I (1726) NimBLE: Connection established
I (1726) NimBLE:
I (1726) NimBLE: GATT procedure initiated: exchange mtu
I (1736) NimBLE: GATT procedure initiated: discover all services
I (1826) NimBLE: mtu update event; conn_handle=1 cid=4 mtu=256
I (1886) NimBLE: GATT procedure initiated: discover all characteristics;
I (1886) NimBLE: start_handle=1 end_handle=7
I (2006) NimBLE: GATT procedure initiated: discover all characteristics;
I (2006) NimBLE: start_handle=8 end_handle=11
I (2156) NimBLE: GATT procedure initiated: discover all characteristics;
I (2156) NimBLE: start_handle=12 end_handle=65535
I (2276) NimBLE: GATT procedure initiated: discover all descriptors;
I (2276) NimBLE: chr_val_handle=10 end_handle=11
I (2366) NimBLE: GATT procedure initiated: discover all descriptors;
I (2366) NimBLE: chr_val_handle=14 end_handle=65535
I (2546) NimBLE: Service discovery complete; status=0 conn_handle=1
Done
I (...) NimBLE: GAP procedure initiated: connect;
I (...) NimBLE: Connection established
I (...) NimBLE: GATT procedure initiated: exchange mtu
I (...) NimBLE: Connection secured
I (...) NimBLE: encryption change event; status=0
I (...) NimBLE: GATT procedure initiated: discover all services
I (...) NimBLE: ...
I (...) NimBLE: Service discovery complete; status=0 conn_handle=0
``` ```
## Troubleshooting ## Troubleshooting
@@ -48,59 +48,49 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
There is this console output when bleprph is connected and characteristic is read: There is this console output when bleprph is connected and characteristic is read:
``` ```
I (445) NimBLE: BLE Host Task Started I (...) NimBLE: BLE Host Task Started
I (445) NimBLE: Device Address: I (...) main_task: Returned from app_main()
I (445) NimBLE: 60:55:f9:f7:4f:42 I (...) NimBLE: Device Address:
I (445) NimBLE: I (...) NimBLE: xx:xx:xx:xx:xx:xx
I (...) NimBLE:
I (455) NimBLE: Encryption of adv data done successfully I (...) NimBLE: Data before encryption:
I (465) main_task: Returned from app_main() I (...) NimBLE: <plain_adv_bytes...>
I (575) NimBLE: connection established; status=0 I (...) NimBLE: Encryption of adv data done successfully
I (575) NimBLE: handle=1 our_ota_addr_type=0 our_ota_addr= I (...) NimBLE: Data after encryption:
I (575) NimBLE: 60:55:f9:f7:4f:42 I (...) NimBLE: <encrypted_adv_bytes...>
I (585) NimBLE: our_id_addr_type=0 our_id_addr=
I (585) NimBLE: 60:55:f9:f7:4f:42
I (595) NimBLE: peer_ota_addr_type=0 peer_ota_addr=
I (595) NimBLE: 60:55:f9:f7:51:0a
I (605) NimBLE: peer_id_addr_type=0 peer_id_addr=
I (605) NimBLE: 60:55:f9:f7:51:0a
I (615) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0
I (625) NimBLE: I (...) NimBLE: GAP procedure initiated: advertise;
I (...) NimBLE: disc_mode=2
I (...) NimBLE: adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=48 adv_itvl_max=48
I (...) NimBLE:
I (625) NimBLE: advertise complete; reason=0 I (...) NimBLE: connection established; status=0
I (635) NimBLE: Encryption of adv data done successfully I (...) NimBLE: handle=0 ... conn_itvl=40 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0
I (...) NimBLE:
I (1635) NimBLE: disconnect; reason=531 I (...) NimBLE: mtu update event; conn_handle=0 cid=4 mtu=256
I (1635) NimBLE: handle=1 our_ota_addr_type=0 our_ota_addr= I (...) ENC_ADV_DATA_PRPH: PASSKEY_ACTION_EVENT started
I (1635) NimBLE: 60:55:f9:f7:4f:42 I (...) ENC_ADV_DATA_PRPH: Enter passkey 123456 on the peer side
I (1635) NimBLE: our_id_addr_type=0 our_id_addr= I (...) ENC_ADV_DATA_PRPH: ble_sm_inject_io result: 0
I (1635) NimBLE: 60:55:f9:f7:4f:42 I (...) NimBLE: encryption change event; status=0
I (1645) NimBLE: peer_ota_addr_type=0 peer_ota_addr= I (...) NimBLE: handle=0 ... encrypted=1 authenticated=1 bonded=0
I (1645) NimBLE: 60:55:f9:f7:51:0a
I (1655) NimBLE: peer_id_addr_type=0 peer_id_addr=
I (1655) NimBLE: 60:55:f9:f7:51:0a
I (1665) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0
I (1675) NimBLE: I (...) NimBLE: authorization event; conn_handle=0 attr_handle=7 is_read=1
I (...) NimBLE: disconnect; reason=...
I (1675) NimBLE: connection established; status=0 I (...) NimBLE: Data before encryption:
I (1685) NimBLE: handle=1 our_ota_addr_type=0 our_ota_addr= I (...) NimBLE: <plain_adv_bytes...>
I (1685) NimBLE: 60:55:f9:f7:4f:42 I (...) NimBLE: Encryption of adv data done successfully
I (1695) NimBLE: our_id_addr_type=0 our_id_addr= I (...) NimBLE: Data after encryption:
I (1695) NimBLE: 60:55:f9:f7:4f:42 I (...) NimBLE: <encrypted_adv_bytes...>
I (1705) NimBLE: peer_ota_addr_type=0 peer_ota_addr=
I (1705) NimBLE: 60:55:f9:f7:51:0a
I (1715) NimBLE: peer_id_addr_type=0 peer_id_addr=
I (1715) NimBLE: 60:55:f9:f7:51:0a
I (1725) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0
I (1735) NimBLE:
I (1735) NimBLE: advertise complete; reason=0
I (1745) NimBLE: Encryption of adv data done successfully
I (1755) NimBLE: mtu update event; conn_handle=1 cid=4 mtu=256
I (...) NimBLE: GAP procedure initiated: advertise;
I (...) NimBLE: connection established; status=0
I (...) NimBLE: mtu update event; conn_handle=0 cid=4 mtu=256
I (...) ENC_ADV_DATA_PRPH: PASSKEY_ACTION_EVENT started
I (...) ENC_ADV_DATA_PRPH: ble_sm_inject_io result: 0
I (...) NimBLE: encryption change event; status=0
``` ```
## Troubleshooting ## Troubleshooting
@@ -67,84 +67,91 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
This is the console output on successful connection: This is the console output on successful connection:
``` ```
I (356) BLE_INIT: BT controller compile version [921f253] I (852) NimBLE_HTP_CENT: BLE Host Task Started
I (356) phy_init: phy_version 950,f732b06,Feb 15 2023,18:57:12 I (862) main_task: Returned from app_main()
I (396) BLE_INIT: Bluetooth MAC: 84:f7:03:05:a5:f6 I (902) NimBLE: GAP procedure initiated: discovery;
I (902) NimBLE: own_addr_type=0 filter_policy=0 passive=1 limited=0 filter_duplicates=1
I (902) NimBLE: duration=forever
I (912) NimBLE:
I (396) NimBLE_HTP_CENT: BLE Host Task Started I (972) NimBLE: GAP procedure initiated: connect;
I (406) NimBLE: GAP procedure initiated: stop advertising. I (972) NimBLE: peer_addr_type=0 peer_addr=
I (972) NimBLE: b0:b2:1c:b4:6b:4e
I (972) NimBLE: scan_itvl=16 scan_window=16 itvl_min=24 itvl_max=40 latency=0 supervision_timeout=256 min_ce_len=0 max_ce_len=0 own_addr_type=0
I (982) NimBLE:
I (406) NimBLE: GAP procedure initiated: discovery; I (1162) NimBLE: Connection established
I (406) NimBLE: own_addr_type=0 filter_policy=0 passive=1 limited=0 filter_duplicates=1 I (1162) NimBLE:
I (416) NimBLE: duration=forever
I (426) NimBLE:
I (426) main_task: Returned from app_main() I (1172) NimBLE: Connection secured
I (616) NimBLE: GAP procedure initiated: connect; I (2762) NimBLE: encryption change event; status=0
I (616) NimBLE: peer_addr_type=0 peer_addr= I (2762) NimBLE: GATT procedure initiated: discover all services
I (616) NimBLE: 70:04:1d:13:66:fe
I (616) NimBLE: scan_itvl=16 scan_window=16 itvl_min=24 itvl_max=40 latency=0 supervision_timeout=256 min_ce_len=0 max_ce_len=0 own_addr_type=0
I (636) NimBLE:
I (676) NimBLE: Connection established I (2962) NimBLE: GATT procedure initiated: discover all characteristics;
I (676) NimBLE: I (2962) NimBLE: start_handle=1 end_handle=5
I (676) NimBLE: GATT procedure initiated: discover all services I (3062) NimBLE: GATT procedure initiated: discover all characteristics;
I (3062) NimBLE: start_handle=6 end_handle=13
I (856) NimBLE: GATT procedure initiated: discover all characteristics; I (3162) NimBLE: GATT procedure initiated: discover all characteristics;
I (856) NimBLE: start_handle=1 end_handle=5 I (3162) NimBLE: start_handle=14 end_handle=26
I (1056) NimBLE: GATT procedure initiated: discover all characteristics; I (3362) NimBLE: GATT procedure initiated: discover all characteristics;
I (1056) NimBLE: start_handle=6 end_handle=9 I (3362) NimBLE: start_handle=27 end_handle=65535
I (1256) NimBLE: GATT procedure initiated: discover all characteristics; I (3562) NimBLE: GATT procedure initiated: discover all descriptors;
I (1256) NimBLE: start_handle=10 end_handle=22 I (3562) NimBLE: chr_val_handle=8 end_handle=9
I (1556) NimBLE: GATT procedure initiated: discover all characteristics; I (3662) NimBLE: GATT procedure initiated: discover all descriptors;
I (1556) NimBLE: start_handle=23 end_handle=65535 I (3662) NimBLE: chr_val_handle=16 end_handle=17
I (1756) NimBLE: GATT procedure initiated: discover all descriptors; I (3762) NimBLE: GATT procedure initiated: discover all descriptors;
I (1756) NimBLE: chr_val_handle=8 end_handle=9 I (3762) NimBLE: chr_val_handle=21 end_handle=22
I (1856) NimBLE: GATT procedure initiated: discover all descriptors; I (3862) NimBLE: GATT procedure initiated: discover all descriptors;
I (1856) NimBLE: chr_val_handle=12 end_handle=13 I (3862) NimBLE: chr_val_handle=24 end_handle=26
I (1956) NimBLE: GATT procedure initiated: discover all descriptors; I (3962) NimBLE: GATT procedure initiated: discover all descriptors;
I (1956) NimBLE: chr_val_handle=17 end_handle=18 I (3962) NimBLE: chr_val_handle=33 end_handle=65535
I (2056) NimBLE: GATT procedure initiated: discover all descriptors; I (4062) NimBLE: Service discovery complete; status=0 conn_handle=0
I (2056) NimBLE: chr_val_handle=20 end_handle=22
I (2156) NimBLE: GATT procedure initiated: discover all descriptors; I (4062) NimBLE: GATT procedure initiated: read;
I (2156) NimBLE: chr_val_handle=29 end_handle=65535 I (4062) NimBLE: att_handle=19
I (2256) NimBLE: Service discovery complete; status=0 conn_handle=1 I (4162) NimBLE: Read temperature type char completed; status=0 conn_handle=0
I (4162) NimBLE: attr_handle=19 value=
I (4162) NimBLE: 0x02
I (4162) NimBLE: :0x00
I (4162) NimBLE:
I (2256) NimBLE: GATT procedure initiated: read; I (4172) NimBLE: GATT procedure initiated: write;
I (2256) NimBLE: att_handle=15 I (4172) NimBLE: att_handle=24 len=2
I (283056) NimBLE: Read temperature type char completed; status=0 conn_handle=1 I (4262) NimBLE: Write to measurement interval char completed; status=0 conn_handle=0 attr_handle=24
I (283056) NimBLE: attr_handle=167 value=
I (283056) NimBLE: 0x02
I (283066) NimBLE:
I (283066) NimBLE: GATT procedure initiated: write; I (4262) NimBLE: GATT procedure initiated: write;
I (283066) NimBLE: att_handle=172 len=2 I (4262) NimBLE: att_handle=17 len=2
I (283156) NimBLE: Write to measurement interval char completed; status=0 conn_handle=1 attr_handle=172 I (4362) NimBLE: Subscribe to temperature measurement char completed; status=261 conn_handle=0 attr_handle=17
I (283156) NimBLE: GATT procedure initiated: write; I (4362) NimBLE: GATT procedure initiated: write;
I (283166) NimBLE: att_handle=163 len=2 I (4362) NimBLE: att_handle=22 len=2
I (283256) NimBLE: Subscribe to temperature measurement char completed; status=0 conn_handle=1 attr_handle=163 I (4462) NimBLE: Subscribe to intermediate temperature char completed; status=261 conn_handle=0 attr_handle=22
I (283256) NimBLE: GATT procedure initiated: write; I (5462) NimBLE: received notification; conn_handle=0 attr_handle=21 attr_len=5
I (283266) NimBLE: att_handle=170 len=2
I (283356) NimBLE: Subscribe to intermediate temperature char completed; status=0 conn_handle=1 attr_handle=170 I (6462) NimBLE: received notification; conn_handle=0 attr_handle=21 attr_len=5
I (7462) NimBLE: received notification; conn_handle=0 attr_handle=21 attr_len=5
I (8462) NimBLE: received notification; conn_handle=0 attr_handle=21 attr_len=5
I (9462) NimBLE: received notification; conn_handle=0 attr_handle=21 attr_len=5
I (10462) NimBLE: received notification; conn_handle=0 attr_handle=21 attr_len=5
``` ```
## Troubleshooting ## Troubleshooting
@@ -43,38 +43,57 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
This console output can be observed when blehr is connected to client and client enables notifications: This console output can be observed when blehr is connected to client and client enables notifications:
``` ```
I (356) BLE_INIT: BT controller compile version [921f253] I (751) NimBLE_HTP_PRPH: BLE Host Task Started
I (356) phy_init: phy_version 950,f732b06,Feb 15 2023,18:57:12 I (751) main_task: Returned from app_main()
I (396) BLE_INIT: Bluetooth MAC: 70:04:1d:13:66:fe I (791) NimBLE: Device Address:
I (791) NimBLE: b0:b2:1c:b4:6b:4e
I (791) NimBLE:
I (396) NimBLE_BLE_Health_Therm: BLE Host Task Started I (801) NimBLE: GAP procedure initiated: advertise;
I (396) NimBLE: GAP procedure initiated: stop advertising. I (801) NimBLE: disc_mode=2
I (801) NimBLE: adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=0 adv_itvl_max=0
I (811) NimBLE:
I (406) NimBLE: Failed to restore IRKs from store; status=8 I (4441) NimBLE: connection established; status=0
I (406) NimBLE: Device Address: I (7641) NimBLE: subscribe event; cur_notify=0
I (416) NimBLE: 70:04:1d:13:66:fe value handle; val_handle=16
I (416) NimBLE:
I (416) NimBLE: GAP procedure initiated: advertise; I (7641) BLE_GAP_SUBSCRIBE_EVENT: conn_handle from subscribe=0
I (426) NimBLE: disc_mode=2 I (7741) NimBLE: subscribe event; cur_notify=1
I (426) NimBLE: adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=0 adv_itvl_max=0 value handle; val_handle=21
I (436) NimBLE:
I (446) main_task: Returned from app_main() I (7741) BLE_GAP_SUBSCRIBE_EVENT: conn_handle from subscribe=0
I (6116) NimBLE: connection established; status=0 I (8741) NimBLE: GATT procedure initiated: notify;
I (8741) NimBLE: att_handle=21
I (7946) NimBLE: subscribe event; cur_notify=0 I (8741) NimBLE: GATT procedure initiated: notify;
value handle; val_handle=12 I (8741) NimBLE: att_handle=21
I (7956) BLE_GAP_SUBSCRIBE_EVENT: conn_handle from subscribe=1 I (8741) NimBLE: Notification sent successfully
I (9741) NimBLE: GATT procedure initiated: notify;
I (9741) NimBLE: att_handle=21
I (8046) NimBLE: subscribe event; cur_notify=1 I (9741) NimBLE: GATT procedure initiated: notify;
value handle; val_handle=17 I (9741) NimBLE: att_handle=21
I (8056) BLE_GAP_SUBSCRIBE_EVENT: conn_handle from subscribe=1 I (9741) NimBLE: Notification sent successfully
I (9056) NimBLE: GATT procedure initiated: notify; I (10741) NimBLE: GATT procedure initiated: notify;
I (9056) NimBLE: att_handle=17 I (10741) NimBLE: att_handle=21
I (10741) NimBLE: GATT procedure initiated: notify;
I (10741) NimBLE: att_handle=21
I (10741) NimBLE: Notification sent successfully
I (11741) NimBLE: GATT procedure initiated: notify;
I (11741) NimBLE: att_handle=21
I (11741) NimBLE: GATT procedure initiated: notify;
I (11741) NimBLE: att_handle=21
I (11741) NimBLE: Notification sent successfully
I (12741) NimBLE: GATT procedure initiated: notify;
I (12741) NimBLE: att_handle=21
``` ```
@@ -64,71 +64,44 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
This is the console output on successful connection and 512 bytes of data sent over L2CAP connection oriented channel: This is the console output on successful connection and 512 bytes of data sent over L2CAP connection oriented channel:
``` ```
I (324) BTDM_INIT: BT controller compile version [d913766] I (743) NimBLE_BLE_CENT_L2CAP_COC: BLE Host Task Started
I (334) phy_init: phy_version 909,aa05aec,Apr 16 2022,13:42:08 I (743) main_task: Returned from app_main()
I (424) system_api: Base MAC address is not set I (793) NimBLE: GAP procedure initiated: discovery;
I (424) system_api: read default base MAC address from EFUSE I (793) NimBLE: own_addr_type=0 filter_policy=0 passive=1 limited=0 filter_duplicates=1
I (424) BTDM_INIT: Bluetooth MAC: 84:f7:03:08:4d:8e I (793) NimBLE: duration=forever
I (793) NimBLE:
I (424) NimBLE_BLE_CENT_L2CAP_COC: BLE Host Task Started I (4943) NimBLE: GAP procedure initiated: connect;
I (434) NimBLE: GAP procedure initiated: stop advertising. I (4943) NimBLE: peer_addr_type=0 peer_addr=
I (4943) NimBLE: b0:b2:1c:b4:74:0e
I (4943) NimBLE: scan_itvl=16 scan_window=16 itvl_min=24 itvl_max=40 latency=0 supervision_timeout=256 min_ce_len=0 max_ce_len=0 own_addr_type=0
I (4953) NimBLE:
I (444) NimBLE: GAP procedure initiated: discovery; I (5203) NimBLE: Connection established
I (444) NimBLE: own_addr_type=0 filter_policy=0 passive=1 limited=0 filter_duplicates=1 I (5203) NimBLE:
I (454) NimBLE: duration=forever
I (454) NimBLE:
I (544) NimBLE: GAP procedure initiated: connect; I (5203) NimBLE: GATT procedure initiated: discover all services
I (544) NimBLE: peer_addr_type=0 peer_addr=
I (544) NimBLE: 84:f7:03:05:a5:f6
I (544) NimBLE: scan_itvl=16 scan_window=16 itvl_min=24 itvl_max=40 latency=0 supervision_timeout=256 min_ce_len=0 max_ce_len=0 own_addr_type=0
I (554) NimBLE:
I (604) NimBLE: Connection established LE COC connected, conn: 0, chan: 0x3ffce3f0, psm: 0x1002, scid: 0x0040, dcid: 0x0040, our_mps: 504, our_mtu: 512, peer_mps: 504, peer_mtu: 512
I (604) NimBLE: I (5743) NimBLE: Data:
0 1 2 3 4 5 6 7 8 9 10 ... 255 0 1 2 3 4 5 6 7 8 9 10 ... 255
I (5893) NimBLE: Data sent successfully
I (604) NimBLE: GATT procedure initiated: discover all services I (6393) NimBLE: Data:
0 1 2 3 4 5 6 7 8 9 10 ... 255 0 1 2 3 4 5 6 7 8 9 10 ... 255
I (6543) NimBLE: Data sent successfully
I (774) NimBLE: GATT procedure initiated: discover all characteristics; I (7043) NimBLE: Data:
I (774) NimBLE: start_handle=1 end_handle=5 0 1 2 3 4 5 6 7 8 9 10 ... 255 0 1 2 3 4 5 6 7 8 9 10 ... 255
I (7193) NimBLE: Data sent successfully
I (974) NimBLE: GATT procedure initiated: discover all characteristics; I (7693) NimBLE: Data:
I (974) NimBLE: start_handle=6 end_handle=9 0 1 2 3 4 5 6 7 8 9 10 ... 255 0 1 2 3 4 5 6 7 8 9 10 ... 255
I (7843) NimBLE: Data sent successfully
I (1174) NimBLE: GATT procedure initiated: discover all characteristics; I (8343) NimBLE: Data:
I (1174) NimBLE: start_handle=10 end_handle=22 0 1 2 3 4 5 6 7 8 9 10 ... 255 0 1 2 3 4 5 6 7 8 9 10 ... 255
I (8493) NimBLE: Data sent successfully
I (1474) NimBLE: GATT procedure initiated: discover all characteristics;
I (1474) NimBLE: start_handle=23 end_handle=65535
I (1774) NimBLE: GATT procedure initiated: discover all descriptors;
I (1774) NimBLE: chr_val_handle=8 end_handle=9
I (1874) NimBLE: GATT procedure initiated: discover all descriptors;
I (1874) NimBLE: chr_val_handle=14 end_handle=15
I (1974) NimBLE: GATT procedure initiated: discover all descriptors;
I (1974) NimBLE: chr_val_handle=19 end_handle=20
I (2074) NimBLE: GATT procedure initiated: discover all descriptors;
I (2074) NimBLE: chr_val_handle=27 end_handle=65535
LE COC connected, conn: 1, chan: 0x3fc93160, psm: 0x1002, scid: 0x0040, dcid: 0x0040, our_mps: 528, our_mtu: 512, peer_mps: 528, peer_mtu: 512
I (2284) NimBLE: Sending data :
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
I (2444) NimBLE: Data sent successfully
I (7068) NimBLE: Data:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255I (7208) NimBLE: Data sent successfully
I (7068) NimBLE: Data:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255I (7208) NimBLE: Data sent successfully
I (7068) NimBLE: Data:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255I (7208) NimBLE: Data sent successfully
I (7068) NimBLE: Data:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255I (7208) NimBLE: Data sent successfully
``` ```
## Troubleshooting ## Troubleshooting
@@ -64,50 +64,50 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
This is the console output on successful connection and 512 bytes of data sent over L2CAP connection oriented channel: This is the console output on successful connection and 512 bytes of data sent over L2CAP connection oriented channel:
``` ```
I (330) BTDM_INIT: BT controller compile version [d913766] I (859) NimBLE_BLE_PRPH_L2CAP_COC: BLE Host Task Started
I (340) phy_init: phy_version 909,aa05aec,Apr 16 2022,13:42:08 I (869) uart: queue free spaces: 8
I (440) system_api: Base MAC address is not set I (869) main_task: Returned from app_main()
I (440) system_api: read default base MAC address from EFUSE I (909) NimBLE: Device Address:
I (440) BTDM_INIT: Bluetooth MAC: 84:f7:03:05:a5:f6 I (909) NimBLE: b0:b2:1c:b4:74:0e
I (909) NimBLE:
I (440) NimBLE_BLE_PRPH_L2CAP_COC: BLE Host Task Started I (909) NimBLE: GAP procedure initiated: advertise;
I (450) NimBLE: GAP procedure initiated: stop advertising. I (909) NimBLE: disc_mode=2
I (909) NimBLE: adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=0 adv_itvl_max=0
I (919) NimBLE:
I (460) NimBLE: Device Address: I (1149) NimBLE: connection established; status=0
I (460) NimBLE: 84:f7:03:05:a5:f6 I (1149) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr=
I (460) NimBLE: I (1149) NimBLE: b0:b2:1c:b4:74:0e
I (1149) NimBLE: our_id_addr_type=0 our_id_addr=
I (1159) NimBLE: b0:b2:1c:b4:74:0e
I (1159) NimBLE: peer_ota_addr_type=0 peer_ota_addr=
I (1159) NimBLE: b0:b2:1c:b4:6b:4e
I (1169) NimBLE: peer_id_addr_type=0 peer_id_addr=
I (1169) NimBLE: b0:b2:1c:b4:6b:4e
I (1169) NimBLE: conn_itvl=40 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0
I (470) NimBLE: GAP procedure initiated: advertise; I (1179) NimBLE:
I (470) NimBLE: disc_mode=2
I (470) NimBLE: adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=0 adv_itvl_max=0
I (480) NimBLE:
I (490) uart: queue free spaces: 8 I (1189) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr=
I (550) NimBLE: connection established; status=0 I (1189) NimBLE: b0:b2:1c:b4:74:0e
I (550) NimBLE: handle=1 our_ota_addr_type=0 our_ota_addr= I (1189) NimBLE: our_id_addr_type=0 our_id_addr=
I (550) NimBLE: 84:f7:03:05:a5:f6 I (1199) NimBLE: b0:b2:1c:b4:74:0e
I (560) NimBLE: our_id_addr_type=0 our_id_addr= I (1199) NimBLE: peer_ota_addr_type=0 peer_ota_addr=
I (560) NimBLE: 84:f7:03:05:a5:f6 I (1209) NimBLE: b0:b2:1c:b4:6b:4e
I (570) NimBLE: peer_ota_addr_type=0 peer_ota_addr= I (1209) NimBLE: peer_id_addr_type=0 peer_id_addr=
I (570) NimBLE: 84:f7:03:08:4d:8e I (1209) NimBLE: b0:b2:1c:b4:6b:4e
I (580) NimBLE: peer_id_addr_type=0 peer_id_addr= I (1219) NimBLE: conn_itvl=40 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0
I (580) NimBLE: 84:f7:03:08:4d:8e
I (590) NimBLE: conn_itvl=40 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0
I (600) NimBLE: LE CoC accepting, chan: 0x3ffcffd0, peer_mtu 512
LE COC connected, conn: 0, chan: 0x3ffcffd0, psm: 0x1002, scid: 0x0040, dcid: 0x0040, our_mps: 504, our_mtu: 512, peer_mps: 504, peer_mtu: 512
LE COC connected, conn: 1, chan: 0x3fc94264, psm: 0x1002, scid: 0x0040, dcid: 0x0040, our_mps: 528, our_mtu: 512, peer_mps: 528, peer_mtu: 512 LE CoC accepting, chan: 0x3ffcffd0, peer_mtu 512
LE CoC accepting, chan: 0x3ffcffd0, peer_mtu 512
Data received = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 LE CoC accepting, chan: 0x3ffcffd0, peer_mtu 512
LE CoC accepting, chan: 0x3ffcffd0, peer_mtu 512
Data received = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 LE CoC accepting, chan: 0x3ffcffd0, peer_mtu 512
Data received = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
Data received = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
Data received = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
Done
``` ```
## Troubleshooting ## Troubleshooting
@@ -37,40 +37,27 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
This is the console output on successful connection: This is the console output on successful connection:
``` ```
controller lib commit: [5cacafa] I (...) ESP_MULTI_CONN_CENT: BLE Host Task Started
I (564) ESP_MULTI_CONN_EXT: BLE Host Task Started I (...) main_task: Returned from app_main()
I (564) main_task: Returned from app_main()
I (604) ESP_MULTI_CONN_EXT: Create connection. -> peer addr e0:e1:f5:6f:ec:9d I (...) ESP_MULTI_CONN_CENT: Create connection. -> peer addr xx:xx:xx:xx:xx:xx
I (1234) ESP_MULTI_CONN_EXT: Connection established. Handle:1, Total:1 I (...) ESP_MULTI_CONN_CENT: Connection established. Handle:0, Total:1
I (2754) ESP_MULTI_CONN_EXT: Create connection. -> peer addr ee:16:69:80:72:d5 I (...) ESP_MULTI_CONN_CENT: Create connection. -> peer addr xx:xx:xx:xx:xx:xx
I (3394) ESP_MULTI_CONN_EXT: Connection established. Handle:2, Total:2 I (...) ESP_MULTI_CONN_CENT: Connection established. Handle:1, Total:2
I (4454) ESP_MULTI_CONN_EXT: Create connection. -> peer addr ef:1a:6e:d6:64:44 I (...) ESP_MULTI_CONN_CENT: Create connection. -> peer addr xx:xx:xx:xx:xx:xx
I (5094) ESP_MULTI_CONN_EXT: Connection established. Handle:3, Total:3 I (...) ESP_MULTI_CONN_CENT: Connection established. Handle:2, Total:3
I (6144) ESP_MULTI_CONN_EXT: Create connection. -> peer addr cb:f4:5d:b2:c8:1d ...
I (6244) ESP_MULTI_CONN_EXT: Connection established. Handle:4, Total:4 I (...) ESP_MULTI_CONN_CENT: Connection established. Handle:63, Total:64
I (6444) ESP_MULTI_CONN_EXT: Create connection. -> peer addr e8:08:e5:ad:61:f6 I (...) ESP_MULTI_CONN_CENT: Create connection. -> peer addr xx:xx:xx:xx:xx:xx
I (7394) ESP_MULTI_CONN_EXT: Connection established. Handle:5, Total:5 I (...) ESP_MULTI_CONN_CENT: Connection established. Handle:64, Total:65
I (8504) ESP_MULTI_CONN_EXT: Create connection. -> peer addr c1:53:a8:6f:2a:b4 I (...) ESP_MULTI_CONN_CENT: Create connection. -> peer addr xx:xx:xx:xx:xx:xx
I (9124) ESP_MULTI_CONN_EXT: Connection established. Handle:6, Total:6 I (...) ESP_MULTI_CONN_CENT: Connection established. Handle:65, Total:66
I (9274) ESP_MULTI_CONN_EXT: Create connection. -> peer addr dd:fb:5b:13:6a:20 I (...) ESP_MULTI_CONN_CENT: Create connection. -> peer addr xx:xx:xx:xx:xx:xx
I (9904) ESP_MULTI_CONN_EXT: Connection established. Handle:7, Total:7 I (...) ESP_MULTI_CONN_CENT: Connection established. Handle:66, Total:67
I (10934) ESP_MULTI_CONN_EXT: Create connection. -> peer addr d5:71:9c:fe:4f:6e I (...) ESP_MULTI_CONN_CENT: Create connection. -> peer addr xx:xx:xx:xx:xx:xx
I (11574) ESP_MULTI_CONN_EXT: Connection established. Handle:8, Total:8 I (...) ESP_MULTI_CONN_CENT: Connection established. Handle:67, Total:68
I (12264) ESP_MULTI_CONN_EXT: Create connection. -> peer addr d9:56:91:21:d4:25 I (...) ESP_MULTI_CONN_CENT: Create connection. -> peer addr xx:xx:xx:xx:xx:xx
I (12884) ESP_MULTI_CONN_EXT: Connection established. Handle:9, Total:9 I (...) ESP_MULTI_CONN_CENT: Connection established. Handle:68, Total:69
I (13084) ESP_MULTI_CONN_EXT: Create connection. -> peer addr f7:f9:b1:73:38:13
I (13704) ESP_MULTI_CONN_EXT: Connection established. Handle:10, Total:10
I (14724) ESP_MULTI_CONN_EXT: Create connection. -> peer addr e7:e5:94:d0:32:78
I (15354) ESP_MULTI_CONN_EXT: Connection established. Handle:11, Total:11
I (16404) ESP_MULTI_CONN_EXT: Create connection. -> peer addr fb:c6:f9:46:11:dc
I (17344) ESP_MULTI_CONN_EXT: Connection established. Handle:12, Total:12
I (18434) ESP_MULTI_CONN_EXT: Create connection. -> peer addr c0:e3:ef:80:e6:fd
I (19374) ESP_MULTI_CONN_EXT: Connection established. Handle:13, Total:13
I (20484) ESP_MULTI_CONN_EXT: Create connection. -> peer addr d8:9d:6d:b8:c9:40
I (21104) ESP_MULTI_CONN_EXT: Connection established. Handle:14, Total:14
I (30814) ESP_MULTI_CONN_EXT: Connected to central. Handle:15
I (39624) BLE_CENT_SVC: Characteristic write; conn_handle=15
I (39624) BLE_CENT_SVC: 12
``` ```
## Troubleshooting ## Troubleshooting
@@ -37,78 +37,35 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
This is the console output on successful connection: This is the console output on successful connection:
``` ```
controller lib commit: [5cacafa] I (...) ESP_MULTI_CONN_PRPH: BLE Host Task Started
I (444) ESP_MULTI_CONN_EXT: BLE Host Task Started I (...) ESP_MULTI_CONN_PRPH: Started adv, Device Address xx:xx:xx:xx:xx:xx
I (1854) ESP_MULTI_CONN_EXT: Started adv, Device Address e0:e1:f5:6f:ec:9d I (...) ESP_MULTI_CONN_PRPH: advertisement completed. Reason=0.
I (6254) ESP_MULTI_CONN_EXT: Connection established. Handle:1. Total:1 I (...) ESP_MULTI_CONN_PRPH: Connection established. Handle:0. Total:1
I (6254) ESP_MULTI_CONN_EXT: advertisement completed. Reason=0.
I (6504) ESP_MULTI_CONN_EXT: Started adv, Device Address ee:16:69:80:72:d5 I (...) ESP_MULTI_CONN_PRPH: Started adv, Device Address xx:xx:xx:xx:xx:xx
I (8414) ESP_MULTI_CONN_EXT: Connection established. Handle:2. Total:2 I (...) ESP_MULTI_CONN_PRPH: advertisement completed. Reason=0.
I (8414) ESP_MULTI_CONN_EXT: advertisement completed. Reason=0. I (...) ESP_MULTI_CONN_PRPH: Connection established. Handle:1. Total:2
I (8654) ESP_MULTI_CONN_EXT: Started adv, Device Address ef:1a:6e:d6:64:44
I (10124) ESP_MULTI_CONN_EXT: Connection established. Handle:3. Total:3 I (...) ESP_MULTI_CONN_PRPH: Started adv, Device Address xx:xx:xx:xx:xx:xx
I (10124) ESP_MULTI_CONN_EXT: advertisement completed. Reason=0. I (...) ESP_MULTI_CONN_PRPH: advertisement completed. Reason=0.
I (10434) ESP_MULTI_CONN_EXT: Started adv, Device Address cb:f4:5d:b2:c8:1d I (...) ESP_MULTI_CONN_PRPH: Connection established. Handle:2. Total:3
I (11264) ESP_MULTI_CONN_EXT: Connection established. Handle:4. Total:4 ...
I (11264) ESP_MULTI_CONN_EXT: advertisement completed. Reason=0. I (...) ESP_MULTI_CONN_PRPH: Connection established. Handle:63. Total:64
I (11464) ESP_MULTI_CONN_EXT: Started adv, Device Address e8:08:e5:ad:61:f6 I (...) ESP_MULTI_CONN_PRPH: Started adv, Device Address xx:xx:xx:xx:xx:xx
I (12414) ESP_MULTI_CONN_EXT: Connection established. Handle:5. Total:5 I (...) ESP_MULTI_CONN_PRPH: advertisement completed. Reason=0.
I (12414) ESP_MULTI_CONN_EXT: advertisement completed. Reason=0. I (...) ESP_MULTI_CONN_PRPH: Connection established. Handle:64. Total:65
I (12794) ESP_MULTI_CONN_EXT: Started adv, Device Address c1:53:a8:6f:2a:b4 I (...) ESP_MULTI_CONN_PRPH: Started adv, Device Address xx:xx:xx:xx:xx:xx
I (14154) ESP_MULTI_CONN_EXT: Connection established. Handle:6. Total:6 I (...) ESP_MULTI_CONN_PRPH: advertisement completed. Reason=0.
I (14154) ESP_MULTI_CONN_EXT: advertisement completed. Reason=0. I (...) ESP_MULTI_CONN_PRPH: Connection established. Handle:65. Total:66
I (14294) ESP_MULTI_CONN_EXT: Started adv, Device Address dd:fb:5b:13:6a:20 I (...) ESP_MULTI_CONN_PRPH: Started adv, Device Address xx:xx:xx:xx:xx:xx
I (14934) ESP_MULTI_CONN_EXT: Connection established. Handle:7. Total:7 I (...) ESP_MULTI_CONN_PRPH: advertisement completed. Reason=0.
I (14934) ESP_MULTI_CONN_EXT: advertisement completed. Reason=0. I (...) ESP_MULTI_CONN_PRPH: Connection established. Handle:66. Total:67
I (15324) ESP_MULTI_CONN_EXT: Started adv, Device Address d5:71:9c:fe:4f:6e I (...) ESP_MULTI_CONN_PRPH: Started adv, Device Address xx:xx:xx:xx:xx:xx
I (16594) ESP_MULTI_CONN_EXT: Connection established. Handle:8. Total:8 I (...) ESP_MULTI_CONN_PRPH: advertisement completed. Reason=0.
I (16594) ESP_MULTI_CONN_EXT: advertisement completed. Reason=0. I (...) ESP_MULTI_CONN_PRPH: Connection established. Handle:67. Total:68
I (16974) ESP_MULTI_CONN_EXT: Started adv, Device Address d9:56:91:21:d4:25 I (...) ESP_MULTI_CONN_PRPH: Started adv, Device Address xx:xx:xx:xx:xx:xx
I (17904) ESP_MULTI_CONN_EXT: Connection established. Handle:9. Total:9 I (...) ESP_MULTI_CONN_PRPH: advertisement completed. Reason=0.
I (17914) ESP_MULTI_CONN_EXT: advertisement completed. Reason=0. I (...) ESP_MULTI_CONN_PRPH: Connection established. Handle:68. Total:69
I (18104) ESP_MULTI_CONN_EXT: Started adv, Device Address f7:f9:b1:73:38:13
I (18734) ESP_MULTI_CONN_EXT: Connection established. Handle:10. Total:10
I (18734) ESP_MULTI_CONN_EXT: advertisement completed. Reason=0.
I (19004) ESP_MULTI_CONN_EXT: Started adv, Device Address e7:e5:94:d0:32:78
I (20374) ESP_MULTI_CONN_EXT: Connection established. Handle:11. Total:11
I (20374) ESP_MULTI_CONN_EXT: advertisement completed. Reason=0.
I (20684) ESP_MULTI_CONN_EXT: Started adv, Device Address fb:c6:f9:46:11:dc
I (22374) ESP_MULTI_CONN_EXT: Connection established. Handle:12. Total:12
I (22374) ESP_MULTI_CONN_EXT: advertisement completed. Reason=0.
I (22594) ESP_MULTI_CONN_EXT: Started adv, Device Address c0:e3:ef:80:e6:fd
I (24394) ESP_MULTI_CONN_EXT: Connection established. Handle:13. Total:13
I (24404) ESP_MULTI_CONN_EXT: advertisement completed. Reason=0.
I (24674) ESP_MULTI_CONN_EXT: Started adv, Device Address d8:9d:6d:b8:c9:40
I (26134) ESP_MULTI_CONN_EXT: Connection established. Handle:14. Total:14
I (26134) ESP_MULTI_CONN_EXT: advertisement completed. Reason=0.
I (44654) BLE_PRPH_SVC: Characteristic write; conn_handle=1
I (44654) BLE_PRPH_SVC: 12
I (44674) BLE_PRPH_SVC: Characteristic write; conn_handle=2
I (44674) BLE_PRPH_SVC: 12
I (44684) BLE_PRPH_SVC: Characteristic write; conn_handle=3
I (44684) BLE_PRPH_SVC: 12
I (44694) BLE_PRPH_SVC: Characteristic write; conn_handle=4
I (44694) BLE_PRPH_SVC: 12
I (44724) BLE_PRPH_SVC: Characteristic write; conn_handle=6
I (44724) BLE_PRPH_SVC: 12
I (44734) BLE_PRPH_SVC: Characteristic write; conn_handle=7
I (44734) BLE_PRPH_SVC: 12
I (44754) BLE_PRPH_SVC: Characteristic write; conn_handle=8
I (44754) BLE_PRPH_SVC: 12
I (44764) BLE_PRPH_SVC: Characteristic write; conn_handle=9
I (44764) BLE_PRPH_SVC: 12
I (44784) BLE_PRPH_SVC: Characteristic write; conn_handle=10
I (44784) BLE_PRPH_SVC: 12
I (44804) BLE_PRPH_SVC: Characteristic write; conn_handle=12
I (44804) BLE_PRPH_SVC: 12
I (44814) BLE_PRPH_SVC: Characteristic write; conn_handle=13
I (44814) BLE_PRPH_SVC: 12
I (44834) BLE_PRPH_SVC: Characteristic write; conn_handle=14
I (44834) BLE_PRPH_SVC: 12
I (44914) BLE_PRPH_SVC: Characteristic write; conn_handle=5
I (44914) BLE_PRPH_SVC: 12
I (45194) BLE_PRPH_SVC: Characteristic write; conn_handle=11
I (45194) BLE_PRPH_SVC: 12
``` ```
## Troubleshooting ## Troubleshooting
@@ -51,22 +51,32 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
## Example Output ## Example Output
``` ```
I (504) NimBLE_BLE_PAwR: Device Address 40:4c:ca:46:1f:e2 I (...) NimBLE_BLE_PAwR: BLE Host Task Started
I (504) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (...) NimBLE_BLE_PAwR: Device Address xx:xx:xx:xx:xx:xx
I (...) NimBLE: GAP procedure initiated: extended advertise; instance=0
I (514) NimBLE_BLE_PAwR: instance 0 started (periodic) I (...) NimBLE_BLE_PAwR: instance 0 started (periodic)
I (...) main_task: Returned from app_main()
I (514) NimBLE_BLE_PAwR: [Request] data: 0, subevt start:0, subevt count:5 I (...) NimBLE_BLE_PAwR: [Request] data: 0, subevt start:0, subevt count:5
I (534) main_task: Returned from app_main() I (...) NimBLE_BLE_PAwR: [Request] data: 5, subevt start:5, subevt count:2
I (664) NimBLE_BLE_PAwR: [Request] data: 5, subevt start:5, subevt count:2 I (...) NimBLE_BLE_PAwR: [Request] data: 7, subevt start:7, subevt count:2
I (814) NimBLE_BLE_PAwR: [Request] data: 7, subevt start:7, subevt count:2 I (...) NimBLE_BLE_PAwR: [Request] data: 9, subevt start:9, subevt count:2
I (964) NimBLE_BLE_PAwR: [Request] data: 9, subevt start:9, subevt count:2 I (...) NimBLE_BLE_PAwR: [Request] data: b, subevt start:1, subevt count:2
I (1114) NimBLE_BLE_PAwR: [Request] data: b, subevt start:1, subevt count:2 I (...) NimBLE_BLE_PAwR: ...
I (1163054) NimBLE_BLE_PAwR: [Response] subevent:0, response_slot:114, data_length:1 I (...) NimBLE_BLE_PAwR: [Response] subevent:0, response_slot:2, data_length:16
I (1163054) NimBLE_BLE_PAwR: data: 0x8c, 0x0 I (...) NimBLE_BLE_PAwR: data: 0x0, 0x0
I (1163164) NimBLE_BLE_PAwR: [Request] data: 91, subevt start:5, subevt count:2 I (...) NimBLE_BLE_PAwR: [Response] subevent:1, response_slot:2, data_length:16
I (...) NimBLE_BLE_PAwR: data: 0x1, 0x1
I (...) NimBLE_BLE_PAwR: [Response] subevent:2, response_slot:2, data_length:16
I (...) NimBLE_BLE_PAwR: data: 0x2, 0x2
I (...) NimBLE_BLE_PAwR: [Response] subevent:3, response_slot:2, data_length:16
I (...) NimBLE_BLE_PAwR: data: 0x3, 0x3
I (...) NimBLE_BLE_PAwR: [Response] subevent:4, response_slot:2, data_length:16
I (...) NimBLE_BLE_PAwR: data: 0x4, 0x4
I (...) NimBLE_BLE_PAwR: [Request] data: ..., subevt start:..., subevt count:2
``` ```
## Troubleshooting ## Troubleshooting
@@ -54,19 +54,27 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
## Example Output ## Example Output
``` ```
I (608) NimBLE: GAP procedure initiated: extended discovery; I (...) NimBLE_BLE_PAwR: BLE Host Task Started
I (...) NimBLE: GAP procedure initiated: extended discovery;
I (...) main_task: Returned from app_main()
I (618) main_task: Returned from app_main() I (...) NimBLE_BLE_PAwR: [Disc advertiser] addr xx:xx:xx:xx:xx:xx, props: 0x0, rssi:...
I (678) NimBLE_BLE_PAwR: [Disc advertiser] addr 40:4c:ca:46:1f:e2, props: 0x0, rssi:-43 I (...) NimBLE_BLE_PAwR: Create sync
I (688) NimBLE_BLE_PAwR: Create sync
I (1308) NimBLE_BLE_PAwR: [Periodic Sync Established] sync handle:0, num_subevents:0xa
I (1308) NimBLE_BLE_PAwR: subevent_interval:0x3c, slot_delay:0x6,slot_spacing:0x2
I (1308) NimBLE_BLE_PAwR: [Subevent Sync OK] sync handle:0, sync_subevents:4
I (1318) NimBLE_BLE_PAwR: [Periodic Adv Report] handle:0, event_counter(1521), subevent(0)
I (2058) NimBLE_BLE_PAwR: [Periodic Adv Report] handle:0, event_counter(1522), subevent(0)
I (2058) NimBLE_BLE_PAwR: [RSP Data Set] sync handle: 0, subev(0), rsp_slot(2), rc(0x0)
I (2208) NimBLE_BLE_PAwR: [Periodic Adv Report] handle:0, event_counter(1522), subevent(2)
I (...) NimBLE_BLE_PAwR: [Periodic Sync Established] sync handle:0, num_subevents:0xa
I (...) NimBLE_BLE_PAwR: subevent_interval:0x2c, slot_delay:0x14,slot_spacing:0x20
I (...) NimBLE_BLE_PAwR: [Subevent Sync OK] sync handle:0, sync_subevents:5
I (...) NimBLE_BLE_PAwR: [Periodic Adv Report] handle:0, event_counter(...), subevent(0)
I (...) NimBLE_BLE_PAwR: [RSP Data Set] sync handle: 0, subev(0), rsp_slot(2), rc(0x0)
I (...) NimBLE_BLE_PAwR: [Periodic Adv Report] handle:0, event_counter(...), subevent(1)
I (...) NimBLE_BLE_PAwR: [RSP Data Set] sync handle: 0, subev(1), rsp_slot(2), rc(0x0)
I (...) NimBLE_BLE_PAwR: [Periodic Adv Report] handle:0, event_counter(...), subevent(2)
I (...) NimBLE_BLE_PAwR: [RSP Data Set] sync handle: 0, subev(2), rsp_slot(2), rc(0x0)
I (...) NimBLE_BLE_PAwR: [Periodic Adv Report] handle:0, event_counter(...), subevent(3)
I (...) NimBLE_BLE_PAwR: [RSP Data Set] sync handle: 0, subev(3), rsp_slot(2), rc(0x0)
I (...) NimBLE_BLE_PAwR: [Periodic Adv Report] handle:0, event_counter(...), subevent(4)
I (...) NimBLE_BLE_PAwR: [RSP Data Set] sync handle: 0, subev(4), rsp_slot(2), rc(0x0)
``` ```
## Troubleshooting ## Troubleshooting
@@ -45,24 +45,20 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
## Example Output ## Example Output
``` ```
I (562) NimBLE_BLE_PAwR: instance 0 started (periodic) I (...) NimBLE_BLE_PAwR_CONN: BLE Host Task Started
I (...) NimBLE_BLE_PAwR_CONN: Device Address xx:xx:xx:xx:xx:xx
I (...) NimBLE: GAP procedure initiated: extended advertise; instance=0
I (572) NimBLE_BLE_PAwR: [Request] data: 0, subevt start:0, subevt count:5 I (...) NimBLE_BLE_PAwR_CONN: instance 0 started (periodic)
I (1842) NimBLE_BLE_PAwR: [Request] data: 17, subevt start:3, subevt count:2 I (...) NimBLE_BLE_PAwR_CONN: [Request] data: 0, subevt start:0, subevt count:5
I (1872) NimBLE_BLE_PAwR: [Response] subevent:0, response_slot:2, data_length:10 I (...) main_task: Returned from app_main()
I (1872) NimBLE_BLE_PAwR: data: 0x00, 0x02, 0x5e, 0x02, 0xf6, 0xf9, 0x55, 0x60, 0x00, 0x00
I (1882) NimBLE: GAP procedure initiated: extended connect;
I (1892) NimBLE_BLE_PAwR: Connection create sent, adv handle = 0, subevent = 5 I (...) NimBLE_BLE_PAwR_CONN: [Request] data: 5, subevt start:5, subevt count:2
W (2192) NimBLE_BLE_PAwR: [Connection established], conn_handle = 0x00, Adv handle = 0x0, status = 0x0 I (...) NimBLE_BLE_PAwR_CONN: [Request] data: 7, subevt start:7, subevt count:2
I (...) NimBLE_BLE_PAwR_CONN: [Request] data: 9, subevt start:9, subevt count:2
I (2192) NimBLE_BLE_PAwR: handle=0 our_ota_addr_type=0 our_ota_addr=40:4c:ca:46:1f:e2 I (...) NimBLE_BLE_PAwR_CONN: [Request] data: b, subevt start:1, subevt count:2
I (2202) NimBLE_BLE_PAwR: our_id_addr_type=0 our_id_addr=40:4c:ca:46:1f:e2 I (...) NimBLE_BLE_PAwR_CONN: [Request] data: d, subevt start:3, subevt count:2
I (2212) NimBLE_BLE_PAwR: peer_ota_addr_type=0 peer_ota_addr=60:55:f9:f6:02:5e I (...) NimBLE_BLE_PAwR_CONN: ...
I (2212) NimBLE_BLE_PAwR: peer_id_addr_type=0 peer_id_addr=60:55:f9:f6:02:5e
I (2222) NimBLE_BLE_PAwR: conn_itvl=40 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0
I (2232) NimBLE_BLE_PAwR: [Request] data: 1d, subevt start:9, subevt count:2
``` ```
@@ -45,23 +45,24 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
## Example Output ## Example Output
``` ```
I (535) NimBLE: GAP procedure initiated: extended discovery; I (...) NimBLE_BLE_PAwR_CONN: BLE Host Task Started
I (...) NimBLE: GAP procedure initiated: extended discovery;
I (...) main_task: Returned from app_main()
I (545) main_task: Returned from app_main() I (...) NimBLE_BLE_PAwR_CONN: [Disc advertiser] addr xx:xx:xx:xx:xx:xx, props: 0x0, rssi:...
I (6595) NimBLE_BLE_PAwR: [Disc advertiser] addr 40:4c:ca:46:1f:e2, props: 0x0, rssi:-45 I (...) NimBLE_BLE_PAwR_CONN: Create sync
I (6595) NimBLE_BLE_PAwR: Create sync I (...) NimBLE_BLE_PAwR_CONN: [Periodic Sync Established] sync handle:0, num_subevents:0xa
I (6975) NimBLE_BLE_PAwR: [Periodic Sync Established] sync handle:0, num_subevents:0xa I (...) NimBLE_BLE_PAwR_CONN: subevent_interval:0x34, slot_delay:0x5,slot_spacing:0xa
I (6975) NimBLE_BLE_PAwR: subevent_interval:0x34, slot_delay:0x5,slot_spacing:0xa I (...) NimBLE_BLE_PAwR_CONN: [Subevent Sync OK] sync handle:0, sync_subevents:10
I (6985) NimBLE_BLE_PAwR: [Subevent Sync OK] sync handle:0, sync_subevents:10
I (7885) NimBLE_BLE_PAwR: [Periodic Adv Report] handle:0, event_counter(2), subevent(4)
W (7885) NimBLE_BLE_PAwR: [RSP Data Set] sync handle: 0, subev(4), rsp_slot(2), rc(0x0)
W (7955) NimBLE_BLE_PAwR: [Connection established], conn_handle = 0x00, sync handle = 0x0, status = 0x0
I (7955) NimBLE_BLE_PAwR: handle=0 our_ota_addr_type=0 our_ota_addr=60:55:f9:f6:02:5e I (...) NimBLE_BLE_PAwR_CONN: [Periodic Adv Report] handle:0, event_counter(...), subevent(0)
I (7965) NimBLE_BLE_PAwR: our_id_addr_type=0 our_id_addr=60:55:f9:f6:02:5e I (...) NimBLE_BLE_PAwR_CONN: [Periodic Adv Report] handle:0, event_counter(...), subevent(0)
I (7965) NimBLE_BLE_PAwR: peer_ota_addr_type=0 peer_ota_addr=40:4c:ca:46:1f:e2 W (...) NimBLE_BLE_PAwR_CONN: [RSP Data Set] sync handle: 0, subev(0), rsp_slot(2), rc(0x0)
I (7975) NimBLE_BLE_PAwR: peer_id_addr_type=0 peer_id_addr=40:4c:ca:46:1f:e2 I (...) NimBLE_BLE_PAwR_CONN: [Periodic Adv Report] handle:0, event_counter(...), subevent(1)
I (7985) NimBLE_BLE_PAwR: conn_itvl=40 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0 W (...) NimBLE_BLE_PAwR_CONN: [RSP Data Set] sync handle: 0, subev(1), rsp_slot(2), rc(0x0)
I (...) NimBLE_BLE_PAwR_CONN: [Periodic Adv Report] handle:0, event_counter(...), subevent(2)
W (...) NimBLE_BLE_PAwR_CONN: [RSP Data Set] sync handle: 0, subev(2), rsp_slot(2), rc(0x0)
I (...) NimBLE_BLE_PAwR_CONN: ...
``` ```
@@ -41,18 +41,15 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
There is this console output when periodic_adv is started: There is this console output when periodic_adv is started:
``` ```
I (313) BTDM_INIT: BT controller compile version [2ee0168] I (...) NimBLE_BLE_PERIODIC_ADV: BLE Host Task Started
I (313) phy_init: phy_version 912,d001756,Jun 2 2022,16:28:07 I (...) NimBLE: Device Address:
I (353) system_api: Base MAC address is not set I (...) NimBLE: xx:xx:xx:xx:xx:xx
I (353) system_api: read default base MAC address from EFUSE I (...) NimBLE:
I (353) BTDM_INIT: Bluetooth MAC: 84:f7:03:08:14:8e
I (363) NimBLE_BLE_PERIODIC_ADV: BLE Host Task Started I (...) NimBLE: GAP procedure initiated: extended advertise; instance=0
I (373) NimBLE: Device Address: I (...) NimBLE: instance 0 started (periodic)
I (373) NimBLE: d0:42:3a:95:84:05
I (373) NimBLE:
I (383) NimBLE: instance 0 started (periodic) I (...) main_task: Returned from app_main()
``` ```
## Note ## Note
@@ -48,22 +48,35 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
This is the console output on successful periodic sync: This is the console output on successful periodic sync:
``` ```
I (311) BTDM_INIT: BT controller compile version [3a49744] I (...) NimBLE_BLE_PERIODIC_SYNC: BLE Host Task Started
I (311) phy_init: phy_version 912,d001756,Jun 2 2022,16:28:07 I (...) NimBLE: GAP procedure initiated: extended discovery;
I (351) system_api: Base MAC address is not set
I (351) system_api: read default base MAC address from EFUSE
I (351) BTDM_INIT: Bluetooth MAC: 84:f7:03:08:14:8e
I (361) NimBLE_BLE_PERIODIC_SYNC: BLE Host Task Started I (...) main_task: Returned from app_main()
I (941) NimBLE: Periodic sync event : I (...) NimBLE: Periodic sync event :
I (941) NimBLE: Periodic adv report event: I (...) NimBLE: status : 0
periodic_sync_handle : 0
sid : 2
I (4241) NimBLE: Periodic adv report event: I (...) NimBLE: adv addr :
I (...) NimBLE: xx xx xx xx xx xx
I (...) NimBLE: adv_phy : 2m
I (7541) NimBLE: Periodic adv report event: I (...) NimBLE: per_adv_ival : 192
I (...) NimBLE: adv_clk_accuracy : 4
I (10841) NimBLE: Periodic adv report event: I (...) NimBLE: Periodic adv report event:
I (...) NimBLE: sync_handle : 0
I (...) NimBLE: tx_power : 127
I (...) NimBLE: rssi : -..
I (...) NimBLE: data_status : 0
I (...) NimBLE: data_length : 16
I (...) NimBLE: data :
I (...) NimBLE: 45 53 50 5f 50 45 52 49 4f 44 49 43 5f 41 44 56
I (...) NimBLE:
I (...) NimBLE: Periodic adv report event:
I (...) NimBLE: ...
``` ```
@@ -61,139 +61,46 @@ This is the console output on successful connection:
``` ```
I (456) NimBLE_BLE_PHY_CENT: BLE Host Task Started I (...) NimBLE_BLE_PHY_CENT: BLE Host Task Started
I (456) NimBLE: Default LE PHY set successfully; tx_phy = 7, rx_phy = 7 I (...) NimBLE: Default LE PHY set successfully; tx_phy = 7, rx_phy = 7
I (456) NimBLE: GAP procedure initiated: extended discovery; I (...) NimBLE: GAP procedure initiated: extended discovery;
I (...) main_task: Returned from app_main()
I (466) main_task: Returned from app_main() I (...) NimBLE: Attempting to connect to : xx xx xx xx xx xx with type 0
I (6316) NimBLE: Attempting to connect to : 60 55 f9 f7 3e 23 with type 0 I (...) NimBLE: GAP procedure initiated: extended connect;
I (...) NimBLE: Connection established on 1M Phy
I (...) NimBLE:
I (6316) NimBLE: GAP procedure initiated: extended connect; I (...) NimBLE: GATT procedure initiated: discover all services
I (...) NimBLE: GATT procedure initiated: discover all characteristics;
I (...) NimBLE: start_handle=1 end_handle=5
I (...) NimBLE: GATT procedure initiated: discover all characteristics;
I (...) NimBLE: start_handle=6 end_handle=13
I (...) NimBLE: GATT procedure initiated: discover all characteristics;
I (...) NimBLE: start_handle=14 end_handle=65535
I (...) NimBLE: GATT procedure initiated: discover all descriptors;
I (...) NimBLE: chr_val_handle=8 end_handle=9
I (...) NimBLE: GATT procedure initiated: discover all descriptors;
I (...) NimBLE: chr_val_handle=16 end_handle=65535
I (...) NimBLE: Service discovery complete; status=0 conn_handle=0
I (...) NimBLE: GATT procedure initiated: read;
I (...) NimBLE: att_handle=16
I (...) NimBLE: Read complete; status=261 conn_handle=0
I (...) NimBLE: GATT procedure initiated: write long;
I (...) NimBLE: att_handle=16 len=1000
I (...) NimBLE: Write complete; status=261 conn_handle=0
I (...) NimBLE: GAP procedure initiated: terminate connection; conn_handle=0 hci_reason=19
I (...) NimBLE: disconnect; reason=534
I (6386) NimBLE: Connection established 1M PhY I (...) NimBLE: Attempting to initiate connection on 2M PHY
I (6386) NimBLE: I (...) NimBLE: GAP procedure initiated: extended connect;
I (...) NimBLE: Connection established on 2M Phy
I (...) NimBLE: ... (same discovery, read, write long, and disconnect flow)
I (6386) NimBLE: GATT procedure initiated: discover all services I (...) NimBLE: Attempting to initiate connection on Coded PHY
I (...) NimBLE: GAP procedure initiated: extended connect;
I (6446) NimBLE: GATT procedure initiated: discover all characteristics; I (...) NimBLE: Connection established on Coded Phy
I (6446) NimBLE: start_handle=1 end_handle=5 I (...) NimBLE: ... (same discovery, read, write long, and disconnect flow)
I (6636) NimBLE: GATT procedure initiated: discover all characteristics;
I (6636) NimBLE: start_handle=6 end_handle=9
I (6836) NimBLE: GATT procedure initiated: discover all characteristics;
I (6836) NimBLE: start_handle=10 end_handle=65535
I (7036) NimBLE: GATT procedure initiated: discover all descriptors;
I (7036) NimBLE: chr_val_handle=8 end_handle=9
I (7136) NimBLE: GATT procedure initiated: discover all descriptors;
I (7136) NimBLE: chr_val_handle=12 end_handle=65535
I (7236) NimBLE: Service discovery complete; status=0 conn_handle=1
I (7236) NimBLE: GATT procedure initiated: read;
I (7236) NimBLE: att_handle=12
I (7336) NimBLE: Read complete; status=261 conn_handle=1
I (7336) NimBLE:
I (7336) NimBLE: GATT procedure initiated: write long;
I (7346) NimBLE: att_handle=12 len=1000
I (7436) NimBLE: Write complete; status=261 conn_handle=1
I (7436) NimBLE: GAP procedure initiated: terminate connection; conn_handle=1 hci_reason=19
I (7446) NimBLE:
I (7486) NimBLE: disconnect; reason=534
I (7486) NimBLE:
I (7486) NimBLE: Attempting to initiate connection on 2M PHY
I (7496) NimBLE: GAP procedure initiated: extended connect;
I (7596) NimBLE: Connection established on 2M Phy
I (7596) NimBLE:
I (7596) NimBLE: GATT procedure initiated: discover all services
I (7696) NimBLE: GATT procedure initiated: discover all characteristics;
I (7706) NimBLE: start_handle=1 end_handle=5
I (7896) NimBLE: GATT procedure initiated: discover all characteristics;
I (7896) NimBLE: start_handle=6 end_handle=9
I (8096) NimBLE: GATT procedure initiated: discover all characteristics;
I (8096) NimBLE: start_handle=10 end_handle=65535
I (8296) NimBLE: GATT procedure initiated: discover all descriptors;
I (8296) NimBLE: chr_val_handle=8 end_handle=9
I (8396) NimBLE: GATT procedure initiated: discover all descriptors;
I (8396) NimBLE: chr_val_handle=12 end_handle=65535
I (8496) NimBLE: Service discovery complete; status=0 conn_handle=1
I (8496) NimBLE: GATT procedure initiated: read;
I (8506) NimBLE: att_handle=12
I (8596) NimBLE: Read complete; status=261 conn_handle=1
I (8596) NimBLE:
I (8606) NimBLE: GATT procedure initiated: write long;
I (8606) NimBLE: att_handle=12 len=1000
I (8696) NimBLE: Write complete; status=261 conn_handle=1
I (8696) NimBLE: GAP procedure initiated: terminate connection; conn_handle=1 hci_reason=19
I (8706) NimBLE:
I (8746) NimBLE: disconnect; reason=534
I (8746) NimBLE:
I (8756) NimBLE: Attempting to initiate connection on Coded PHY
I (8756) NimBLE: GAP procedure initiated: extended connect;
I (8876) NimBLE: Connection established on Coded Phy
I (8876) NimBLE:
I (8876) NimBLE: GATT procedure initiated: discover all services
I (8976) NimBLE: GATT procedure initiated: discover all characteristics;
I (8976) NimBLE: start_handle=1 end_handle=5
I (9176) NimBLE: GATT procedure initiated: discover all characteristics;
I (9176) NimBLE: start_handle=6 end_handle=9
I (9426) NimBLE: GATT procedure initiated: discover all characteristics;
I (9426) NimBLE: start_handle=10 end_handle=65535
I (9626) NimBLE: GATT procedure initiated: discover all descriptors;
I (9626) NimBLE: chr_val_handle=8 end_handle=9
I (9776) NimBLE: GATT procedure initiated: discover all descriptors;
I (9776) NimBLE: chr_val_handle=12 end_handle=65535
I (9876) NimBLE: Service discovery complete; status=0 conn_handle=1
I (9876) NimBLE: GATT procedure initiated: read;
I (9876) NimBLE: att_handle=12
I (9976) NimBLE: Read complete; status=261 conn_handle=1
I (9976) NimBLE:
I (9976) NimBLE: GATT procedure initiated: write long;
I (9976) NimBLE: att_handle=12 len=1000
I (10076) NimBLE: Write complete; status=261 conn_handle=1
I (10076) NimBLE: GAP procedure initiated: terminate connection; conn_handle=1 hci_reason=19
I (10076) NimBLE:
I (10126) NimBLE: disconnect; reason=534
I (10126) NimBLE:
``` ```
@@ -52,100 +52,32 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
This is the console output on successful connection: This is the console output on successful connection:
``` ```
I (459) NimBLE_BLE_PHY_PRPH: BLE Host Task Started I (...) NimBLE_BLE_PHY_PRPH: BLE Host Task Started
I (459) NimBLE: Device Address: I (...) NimBLE: Device Address:
I (459) NimBLE: 60:55:f9:f7:3e:23 I (...) NimBLE: xx:xx:xx:xx:xx:xx
I (469) NimBLE: I (...) NimBLE:
I (...) NimBLE: Default LE PHY set successfully
I (...) NimBLE: GAP procedure initiated: extended advertise; instance=0
I (...) uart: queue free spaces: 8
I (...) main_task: Returned from app_main()
I (469) NimBLE: Default LE PHY set successfully I (...) NimBLE: advertise complete; reason=0
I (479) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (...) NimBLE: connection established; status=0
I (...) NimBLE: handle=0 ... conn_itvl=40 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0
I (...) NimBLE:
I (479) uart: queue free spaces: 8 I (...) NimBLE: disconnect; reason=531
I (489) main_task: Returned from app_main() I (...) NimBLE: handle=0 ... conn_itvl=40 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0
I (599) NimBLE: connection established; status=0 I (...) NimBLE:
I (599) NimBLE: handle=1 our_ota_addr_type=0 our_ota_addr=
I (599) NimBLE: 60:55:f9:f7:3e:23
I (599) NimBLE: our_id_addr_type=0 our_id_addr=
I (609) NimBLE: 60:55:f9:f7:3e:23
I (609) NimBLE: peer_ota_addr_type=0 peer_ota_addr=
I (619) NimBLE: 60:55:f9:f7:3e:25
I (619) NimBLE: peer_id_addr_type=0 peer_id_addr=
I (619) NimBLE: 60:55:f9:f7:3e:25
I (629) NimBLE: conn_itvl=40 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0
I (639) NimBLE: I (...) NimBLE: GAP procedure initiated: extended advertise; instance=0
I (...) NimBLE: advertise complete; reason=0
I (639) NimBLE: advertise complete; reason=0 I (...) NimBLE: connection established; status=0
I (1749) NimBLE: disconnect; reason=531 I (...) NimBLE: ...
I (1749) NimBLE: handle=1 our_ota_addr_type=0 our_ota_addr= I (...) NimBLE: disconnect; reason=531
I (1749) NimBLE: 60:55:f9:f7:3e:23 I (...) NimBLE: ...
I (1749) NimBLE: our_id_addr_type=0 our_id_addr= I (...) NimBLE: GAP procedure initiated: extended advertise; instance=0
I (1759) NimBLE: 60:55:f9:f7:3e:23 I (...) NimBLE: ...
I (1759) NimBLE: peer_ota_addr_type=0 peer_ota_addr=
I (1759) NimBLE: 60:55:f9:f7:3e:25
I (1769) NimBLE: peer_id_addr_type=0 peer_id_addr=
I (1769) NimBLE: 60:55:f9:f7:3e:25
I (1779) NimBLE: conn_itvl=40 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0
I (1789) NimBLE:
I (1789) NimBLE: GAP procedure initiated: extended advertise; instance=0
I (1809) NimBLE: connection established; status=0
I (1809) NimBLE: handle=1 our_ota_addr_type=0 our_ota_addr=
I (1809) NimBLE: 60:55:f9:f7:3e:23
I (1819) NimBLE: our_id_addr_type=0 our_id_addr=
I (1819) NimBLE: 60:55:f9:f7:3e:23
I (1819) NimBLE: peer_ota_addr_type=0 peer_ota_addr=
I (1829) NimBLE: 60:55:f9:f7:3e:25
I (1829) NimBLE: peer_id_addr_type=0 peer_id_addr=
I (1839) NimBLE: 60:55:f9:f7:3e:25
I (1839) NimBLE: conn_itvl=40 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0
I (1849) NimBLE:
I (1859) NimBLE: advertise complete; reason=0
I (3009) NimBLE: disconnect; reason=531
I (3009) NimBLE: handle=1 our_ota_addr_type=0 our_ota_addr=
I (3009) NimBLE: 60:55:f9:f7:3e:23
I (3009) NimBLE: our_id_addr_type=0 our_id_addr=
I (3019) NimBLE: 60:55:f9:f7:3e:23
I (3019) NimBLE: peer_ota_addr_type=0 peer_ota_addr=
I (3029) NimBLE: 60:55:f9:f7:3e:25
I (3029) NimBLE: peer_id_addr_type=0 peer_id_addr=
I (3039) NimBLE: 60:55:f9:f7:3e:25
I (3039) NimBLE: conn_itvl=40 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0
I (3049) NimBLE:
I (3059) NimBLE: GAP procedure initiated: extended advertise; instance=0
I (3079) NimBLE: connection established; status=0
I (3079) NimBLE: handle=1 our_ota_addr_type=0 our_ota_addr=
I (3079) NimBLE: 60:55:f9:f7:3e:23
I (3079) NimBLE: our_id_addr_type=0 our_id_addr=
I (3089) NimBLE: 60:55:f9:f7:3e:23
I (3089) NimBLE: peer_ota_addr_type=0 peer_ota_addr=
I (3099) NimBLE: 60:55:f9:f7:3e:25
I (3099) NimBLE: peer_id_addr_type=0 peer_id_addr=
I (3109) NimBLE: 60:55:f9:f7:3e:25
I (3109) NimBLE: conn_itvl=40 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0
I (3119) NimBLE:
I (3129) NimBLE: advertise complete; reason=0
I (4379) NimBLE: disconnect; reason=531
I (4379) NimBLE: handle=1 our_ota_addr_type=0 our_ota_addr=
I (4379) NimBLE: 60:55:f9:f7:3e:23
I (4379) NimBLE: our_id_addr_type=0 our_id_addr=
I (4389) NimBLE: 60:55:f9:f7:3e:23
I (4389) NimBLE: peer_ota_addr_type=0 peer_ota_addr=
I (4399) NimBLE: 60:55:f9:f7:3e:25
I (4399) NimBLE: peer_id_addr_type=0 peer_id_addr=
I (4409) NimBLE: 60:55:f9:f7:3e:25
I (4409) NimBLE: conn_itvl=40 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0
I (7872) NimBLE:
``` ```
@@ -103,24 +103,49 @@ See the Getting Started Guide for full steps to configure and use ESP-IDF to bui
This is the console output on successful connection: This is the console output on successful connection:
``` ```
I (487) NimBLE_SPP_BLE_CENT: BLE Host Task Started I (...) NimBLE_SPP_BLE_CENT: BLE client UART task started
GAP procedure initiated: stop advertising. I (...) NimBLE_SPP_BLE_CENT: BLE Host Task Started
GAP procedure initiated: discovery; own_addr_type=0 filter_policy=0 passive=1 limited=0 filter_duplicates=1 duration=forever I (...) NimBLE: GAP procedure initiated: stop advertising.
GAP procedure initiated: connect; peer_addr_type=0 peer_addr=7c:df:a1:40:3e:fa scan_itvl=16 scan_window=16 itvl_min=24 itvl_max=40 latency=0 supervision_timeout=256 min_ce_len=0 max_ce_len=0 own_addr_type=0
Connection established
GATT procedure initiated: discover all services
GATT procedure initiated: discover all characteristics; start_handle=1 end_handle=5
GATT procedure initiated: discover all characteristics; start_handle=6 end_handle=9
GATT procedure initiated: discover all characteristics; start_handle=10 end_handle=14
GATT procedure initiated: discover all characteristics; start_handle=15 end_handle=65535
GATT procedure initiated: discover all descriptors; chr_val_handle=8 end_handle=9
GATT procedure initiated: discover all descriptors; chr_val_handle=17 end_handle=18
GATT procedure initiated: discover all descriptors; chr_val_handle=20 end_handle=65535
Service discovery complete; status=0 conn_handle=1
I (9277) NimBLE_SPP_BLE_CENT: Data sent from client uart task =
1b5b41
GATT procedure initiated: write; att_handle=17 len=3
I (9277) NimBLE_SPP_BLE_CENT: Write in uart task success!
received notification; conn_handle=1 attr_handle=20 attr_len=1
I (...) NimBLE: GAP procedure initiated: discovery;
I (...) NimBLE: own_addr_type=0 filter_policy=0 passive=1 limited=0 filter_duplicates=1
I (...) NimBLE: duration=forever
I (...) NimBLE:
I (...) main_task: Returned from app_main()
I (...) NimBLE: GAP procedure initiated: connect;
I (...) NimBLE: peer_addr_type=0 peer_addr=
I (...) NimBLE: xx:xx:xx:xx:xx:xx
I (...) NimBLE: scan_itvl=16 scan_window=16 itvl_min=24 itvl_max=40 latency=0 supervision_timeout=256 min_ce_len=0 max_ce_len=0 own_addr_type=0
I (...) NimBLE:
I (...) NimBLE: Connection established
I (...) NimBLE:
I (...) NimBLE: GATT procedure initiated: discover all services
I (...) NimBLE: GATT procedure initiated: discover all characteristics;
I (...) NimBLE: start_handle=...
I (...) NimBLE: GATT procedure initiated: discover all descriptors;
I (...) NimBLE: chr_val_handle=...
I (...) NimBLE: Service discovery complete; status=0 conn_handle=0
I (...) NimBLE: attribute_handle <notify_or_status_handle>
I (...) NimBLE: GATT procedure initiated: write;
I (...) NimBLE: att_handle=17 len=2
I (...) NimBLE: GAP procedure initiated: discovery;
I (...) NimBLE: own_addr_type=0 filter_policy=0 passive=1 limited=0 filter_duplicates=1
I (...) NimBLE: duration=forever
I (...) NimBLE:
I (...) NimBLE: received notification; conn_handle=0 attr_handle=16 attr_len=1
I (...) NimBLE: received notification; conn_handle=0 attr_handle=16 attr_len=1
I (...) NimBLE: received notification; conn_handle=0 attr_handle=16 attr_len=1
I (...) NimBLE: GATT procedure initiated: write;
I (...) NimBLE: att_handle=16 len=1
I (...) NimBLE_SPP_BLE_CENT: Write in uart task success!
I (...) NimBLE: GATT procedure initiated: write;
I (...) NimBLE: att_handle=16 len=1
I (...) NimBLE_SPP_BLE_CENT: Write in uart task success!
``` ```
@@ -98,14 +98,39 @@ See the Getting Started Guide for full steps to configure and use ESP-IDF to bui
This is the console output on successful connection: This is the console output on successful connection:
``` ```
I (464) NimBLE_SPP_BLE_PRPH: BLE Host Task Started I (...) NimBLE: BLE server UART_task started
GAP procedure initiated: stop advertising. I (...) NimBLE: BLE Host Task Started
Device Address: 7c:df:a1:40:3e:fa I (...) NimBLE: GAP procedure initiated: stop advertising.
GAP procedure initiated: advertise; disc_mode=2 adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=0 adv_itvl_max=0 I (...) NimBLE: Device Address:
connection established; status=0 handle=1 our_ota_addr_type=0 our_ota_addr=7c:df:a1:40:3e:fa our_id_addr_type=0 our_id_addr=7c:df:a1:40:3e:fa peer_ota_addr_type=0 peer_ota_addr=7c:df:a1:c2:19:92 peer_id_addr_type=0 peer_id_addr=7c:df:a1:c2:19:92 conn_itvl=40 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0 I (...) NimBLE: xx:xx:xx:xx:xx:xx
I (...) NimBLE:
I (6924) NimBLE_SPP_BLE_PRPH: Data received in write event,conn_handle = 1,attr_handle = 11 I (...) NimBLE: GAP procedure initiated: advertise;
1b5b41I I (...) NimBLE: disc_mode=2
(10824) NimBLE_SPP_BLE_PRPH: Notification sent successfully I (...) NimBLE: adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=0 adv_itvl_max=0
I (...) NimBLE:
I (...) main_task: Returned from app_main()
I (...) NimBLE: connection established; status=0
I (...) NimBLE: handle=0 ... conn_itvl=40 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0
I (...) NimBLE:
I (...) NimBLE: GAP procedure initiated: advertise;
I (...) NimBLE: disc_mode=2
I (...) NimBLE: adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=0 adv_itvl_max=0
I (...) NimBLE:
I (...) NimBLE: subscribe event; conn_handle=0 attr_handle=16 reason=1 prevn=0 curn=1 previ=0 curi=0
I (...) NimBLE: GATT procedure initiated: notify;
I (...) NimBLE: att_handle=16
I (...) NimBLE: Notification sent successfully
I (...) NimBLE: GATT procedure initiated: notify;
I (...) NimBLE: att_handle=16
I (...) NimBLE: Notification sent successfully
I (...) NimBLE: Data received in write event,conn_handle = 0,attr_handle = 10
I (...) NimBLE: Data received in write event,conn_handle = 0,attr_handle = 10
I (...) NimBLE: Data received in write event,conn_handle = 0,attr_handle = 10
``` ```
+53 -31
View File
@@ -83,39 +83,61 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
This is the console output on successful connection: This is the console output on successful connection:
``` ```
I (202) BTDM_INIT: BT controller compile version [0b60040] I (...) NimBLE_BLE_CENT: BLE Host Task Started
I (202) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (...) NimBLE: GAP procedure initiated: discovery;
W (212) phy_init: failed to load RF calibration data (0xffffffff), falling back to full calibration I (...) NimBLE: own_addr_type=0 filter_policy=0 passive=1 limited=0 filter_duplicates=1
I (422) phy: phy_version: 4007, 9c6b43b, Jan 11 2019, 16:45:07, 0, 2 I (...) NimBLE: duration=forever
I (722) NimBLE_BLE_CENT: BLE Host Task Started I (...) NimBLE:
GAP procedure initiated: stop advertising.
GAP procedure initiated: discovery; own_addr_type=0 filter_policy=0 passive=1 limited=0 filter_duplicates=1 duration=forever I (...) NimBLE: GAP procedure initiated: connect;
GAP procedure initiated: connect; peer_addr_type=1 peer_addr=xx:xx:xx:xx:xx:xx scan_itvl=16 scan_window=16 itvl_min=24 itvl_max=40 latency=0 supervision_timeout=256 min_ce_len=16 max_ce_len=768 own_addr_type=0 I (...) NimBLE: peer_addr_type=0 peer_addr=
Connection established I (...) NimBLE: xx:xx:xx:xx:xx:xx
Connection secured I (...) NimBLE: scan_itvl=16 scan_window=16 itvl_min=24 itvl_max=40 latency=0 supervision_timeout=256 min_ce_len=0 max_ce_len=0 own_addr_type=0
encryption change event; status=0 I (...) NimBLE:
GATT procedure initiated: discover all services
GATT procedure initiated: discover all characteristics; start_handle=1 end_handle=3 I (...) NimBLE: Connection established
GATT procedure initiated: discover all characteristics; start_handle=20 end_handle=26 I (...) NimBLE:
GATT procedure initiated: discover all characteristics; start_handle=40 end_handle=65535 I (...) NimBLE: GATT procedure initiated: discover all services
GATT procedure initiated: discover all descriptors; chr_val_handle=42 end_handle=43 I (...) NimBLE: GATT procedure initiated: discover all characteristics;
GATT procedure initiated: discover all descriptors; chr_val_handle=49 end_handle=65535 I (...) NimBLE: start_handle=...
Service discovery complete; status=0 conn_handle=0 I (...) NimBLE: GATT procedure initiated: discover all descriptors;
GATT procedure initiated: read; att_handle=45 I (...) NimBLE: chr_val_handle=...
GATT procedure initiated: write; att_handle=47 len=2 I (...) NimBLE: Service discovery complete; status=0 conn_handle=0
GATT procedure initiated: write; att_handle=43 len=2
Read complete; status=0 conn_handle=0 attr_handle=45 value=0x02 I (...) NimBLE: GATT procedure initiated: read;
Write complete; status=0 conn_handle=0 attr_handle=47 I (...) NimBLE: att_handle=<ans_supported_new_alert_cat_handle>
Subscribe complete; status=0 conn_handle=0 attr_handle=43 I (...) NimBLE: Read complete; status=0 conn_handle=0
GATT procedure initiated: write; att_handle=26 len=2 I (...) NimBLE: attr_handle=<ans_supported_new_alert_cat_handle> value=
GATT procedure initiated: write; att_handle=25 len=1 I (...) NimBLE: 0x00
GATT procedure initiated: read; att_handle=25 I (...) NimBLE:
Subscribe to the custom subscribable characteristic complete; status=0 conn_handle=1 attr_handle=26 value=
Write to the custom subscribable characteristic complete; status=0 conn_handle=1 attr_handle=25 I (...) NimBLE: GATT procedure initiated: write;
received notification; conn_handle=1 attr_handle=25 attr_len=4 I (...) NimBLE: att_handle=<ans_alert_ctrl_pt_handle> len=2
Read complete for the subscribable characteristic; status=0 conn_handle=1 attr_handle=25 value=0x19 I (...) NimBLE: Write complete; status=270 conn_handle=0 attr_handle=<ans_alert_ctrl_pt_handle>
I (...) NimBLE: GATT procedure initiated: write;
I (...) NimBLE: att_handle=<ans_unread_alert_cccd_handle> len=2
I (...) NimBLE: Subscribe complete; status=0 conn_handle=0 attr_handle=<ans_unread_alert_cccd_handle>
I (...) NimBLE: GATT procedure initiated: write;
I (...) NimBLE: att_handle=<custom_cccd_handle> len=2
I (...) NimBLE: Subscribe to the custom subscribable characteristic complete; status=0 conn_handle=0
I (...) NimBLE: GATT procedure initiated: write;
I (...) NimBLE: att_handle=<custom_value_handle> len=1
I (...) NimBLE: Write to the custom subscribable characteristic complete; status=0 conn_handle=0 attr_handle=<custom_value_handle>
I (...) NimBLE: GATT procedure initiated: read;
I (...) NimBLE: att_handle=<custom_value_handle>
I (...) NimBLE: received notification; conn_handle=0 attr_handle=<custom_value_handle> attr_len=1
I (...) NimBLE: Read complete for the subscribable characteristic; status=0 conn_handle=0
I (...) NimBLE: attr_handle=<custom_value_handle> value=
I (...) NimBLE: 0x19
I (...) NimBLE:
``` ```
`Write complete` status for the ANS Alert Notification Control Point may vary by peer implementation.
For example, `status=270` can occur while the example still proceeds with subsequent subscribe/read flows.
This is the console output on failure (or peripheral does not support New Alert Service category): This is the console output on failure (or peripheral does not support New Alert Service category):
``` ```
+24 -30
View File
@@ -60,43 +60,37 @@ See the [Getting Started Guide](https://idf.espressif.com/) for full steps to co
## Example Output ## Example Output
There is this console output when bleprph is connected and characteristic is read: There is this console output when `bleprph` starts advertising, connects, and a peer subscribes / writes / reads a characteristic:
``` ```
I (118) BTDM_INIT: BT controller compile version [fe7ced0] I (...) NimBLE_BLE_PRPH: BLE Host Task Started
I (118) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (...) NimBLE: Device Address:
W (128) phy_init: failed to load RF calibration data (0xffffffff), falling back to full calibration I (...) NimBLE: xx:xx:xx:xx:xx:xx
I (268) phy: phy_version: 4100, 6fa5e27, Jan 25 2019, 17:02:06, 0, 2 I (...) NimBLE:
I (508) NimBLE_BLE_PRPH: BLE Host Task Started
I (508) uart: queue free spaces: 8
GAP procedure initiated: stop advertising.
Device Address: xx:xx:xx:xx:xx:xx
GAP procedure initiated: advertise; disc_mode=2 adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=0 adv_itvl_max=0
connection established; status=0 handle=0 our_ota_addr_type=0 our_ota_addr=xx:xx:xx:xx:xx:xx our_id_addr_type=0 our_id_addr=xx:xx:xx:xx:xx:xx peer_ota_addr_type=1 peer_ota_addr=xx:xx:xx:xx:xx:xx peer_id_addr_type=1 peer_id_addr=xx:xx:xx:xx:xx:xx conn_itvl=39 conn_latency=0 supervision_timeout=500 encrypted=0 authenticated=0 bonded=0
connection updated; status=0 handle=0 our_ota_addr_type=0 our_ota_addr=xx:xx:xx:xx:xx:xx our_id_addr_type=0 our_id_addr=xx:xx:xx:xx:xx:xx peer_ota_addr_type=1 peer_ota_addr=xx:xx:xx:xx:xx:xx peer_id_addr_type=1 peer_id_addr=xx:xx:xx:xx:xx:xx conn_itvl=6 conn_latency=0 supervision_timeout=500 encrypted=0 authenticated=0 bonded=0 I (...) NimBLE: GAP procedure initiated: advertise;
I (...) NimBLE: disc_mode=2
I (...) NimBLE: adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=0 adv_itvl_max=0
I (...) NimBLE:
I (50888) NimBLE_BLE_PRPH: PASSKEY_ACTION_EVENT started I (...) NimBLE: connection established; status=0
I (...) NimBLE: handle=0 ... conn_itvl=40 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0
I (...) NimBLE:
I (50888) NimBLE_BLE_PRPH: Passkey on device's display: xxxxxx I (...) NimBLE: subscribe event; conn_handle=0 attr_handle=<notify_attr> reason=1 prevn=0 curn=1 previ=0 curi=0
I (50888) NimBLE_BLE_PRPH: Accept or reject the passkey through console in this format -> key Y or key N I (...) NimBLE: subscribe event; conn_handle=0 attr_handle=<rw_attr> reason=1 prevn=0 curn=1 previ=0 curi=0
key Y I (...) NimBLE: Characteristic write; conn_handle=0 attr_handle=<rw_attr>
I (50898) NimBLE_BLE_PRPH: ble_sm_inject_io result: 0 I (...) NimBLE: Notification/Indication scheduled for all subscribed peers.
I (...) NimBLE: GATT procedure initiated: notify;
encryption change event; status=0 handle=0 our_ota_addr_type=0 our_ota_addr=xx:xx:xx:xx:xx:xx our_id_addr_type=0 our_id_addr=xx:xx:xx:xx:xx:xx peer_ota_addr_type=1 peer_ota_addr=xx:xx:xx:xx:xx:xx peer_id_addr_type=1 I (...) NimBLE: att_handle=<rw_attr>
peer_id_addr=xx:xx:xx:xx:xx:xx conn_itvl=6 conn_latency=0 supervision_timeout=500 encrypted=1 authenticated=1 bonded=1 I (...) NimBLE: Characteristic read by NimBLE stack; attr_handle=<rw_attr>
I (...) NimBLE: notify_tx event; conn_handle=0 attr_handle=<rw_attr> status=0 is_indication=0
connection updated; status=0 handle=0 our_ota_addr_type=0 our_ota_addr=xx:xx:xx:xx:xx:xx our_id_addr_type=0 our_id_addr=xx:xx:xx:xx:xx:xx I (...) NimBLE: Characteristic read; conn_handle=0 attr_handle=<rw_attr>
peer_ota_addr_type=1 peer_ota_addr=xx:xx:xx:xx:xx:xx peer_id_addr_type=1 peer_id_addr=xx:xx:xx:xx:xx:xx conn_itvl=39 conn_latency=0 supervision_timeout=500 encrypted=1 authenticated=1 bonded=1
subscribe event; conn_handle=1 attr_handle=19 reason=1 prevn=0 curn=1 previ=0 curi=0
Subscribe to attribute (19) successful
subscribe event; conn_handle=1 attr_handle=25 reason=1 prevn=0 curn=1 previ=0 curi=0
Subscribe to attribute (25) successful
GATT procedure initiated: notify; att_handle=25
Notification sent successfully
``` ```
If pairing / passkey options are enabled in menuconfig, additional security-related logs
(`PASSKEY_ACTION_EVENT`, encryption updates, and bonding/authentication fields) are also expected.
## Note ## Note
* NVS support is not yet integrated to bonding. So, for now, bonding is not persistent across reboot. * NVS support is not yet integrated to bonding. So, for now, bonding is not persistent across reboot.