ble_mesh_fast_prov_server和ble_mesh_fast_prov_client没有能够自动连接,二者的Log如下:
ble_mesh_fast_prov_client的Log(删减掉了一些不相关部分)
I (0) cpu_start: App cpu up.I (533) cpu_start: Pro cpu start user codeI (552) spi_flash: detected chip: genericI (552) spi_flash: flash io: dioI (552) cpu_start: Star
ting scheduler on PRO CPU.I (0) cpu_start: Starting scheduler on APP CPU.I (560) FAST_PROV_CLIENT2_DEMO: Initializing...I (570) BTDM_INIT: BT controller compile version [4d3bde7]I (580) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSEI (680) phy: phy_version: 4100, 2a5dd04, Jan 23 2019, 21:00:07, 0, 0I (970) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_SET_DEV_UUID_MATCH_COMP_EVT, err_code: 0I (1050) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROV_REGISTER_COMP_EVT, err_code: 0I (1060) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_ENABLE_COMP_EVTI (1060) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_ADD_LOCAL_APP_KEY_COMP_EVT, err_code 0I (1070) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_BIND_APP_KEY_TO_MODEL_COMP_EVT, err_code 0I (1080) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_BIND_APP_KEY_TO_MODEL_COMP_EVT, err_code 0I (1090) FAST_PROV_CLIENT2_DEMO: BLE Mesh Provisioner initializedI (18800) FAST_PROV_CLIENT2_DEMO: address: 840d8e35c18e, address type: 0, adv type: 3I (18800) FAST_PROV_CLIENT2_DEMO: dev uuid: dddd840d8e35c18e0000000000000000I (18810) FAST_PROV_CLIENT2_DEMO: oob info: 0, bearer: PB-ADVI (18820) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_OPEN_EVT, bearer PB-ADVI (18820) FAST_PROV_CLIENT2_DEMO: PB-ADV link openI (18830) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_ADD_UNPROV_DEV_COMP_EVT, err_code: 0W (18930) BLE_MESH: link_ack, Link ACK is already receivedW (48890) BLE_MESH: Device in queue not support PB-GATTW (49020) BLE_MESH: Provisioner timeout, giving up transactionprovisioner_prov.c中的I (49020) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_CLOSE_EVT, bearer PB-ADV reason 0x01I (49020) FAST_PROV_CLIENT2_DEMO: PB-ADV link close, reason 0x01W (49400) BLE_MESH: Device in queue not support PB-GATTW (51380) BLE_MESH: Device in queue not support PB-GATTI (51800) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_OPEN_EVT, bearer PB-ADVI (51800) FAST_PROV_CLIENT2_DEMO: PB-ADV link openW (81900) BLE_MESH: Provisioner timeout, giving up transactionprovisioner_prov.c中的 //这个是自己添加的I (81900) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_CLOSE_EVT, bearer PB-ADV reason 0x01I (81900) FAST_PROV_CLIENT2_DEMO: PB-ADV link close, reason 0x01I (105880) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_OPEN_EVT, bearer PB-ADVI (105880) FAST_PROV_CLIENT2_DEMO: PB-ADV link openW (136070) BLE_MESH: Provisioner timeout, giving up transactionprovisioner_prov.c中的 //这个是自己添加的I (136070) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_CLOSE_EVT, bearer PB-ADV reason 0x01I (136070) FAST_PROV_CLIENT2_DEMO: PB-ADV link close, reason 0x01W (136470) BLE_MESH: Device in queue not support PB-GATTI (138880) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_OPEN_EVT, bearer PB-ADVI (138880) FAST_PROV_CLIENT2_DEMO: PB-ADV link openW (168980) BLE_MESH: Provisioner timeout, giving up transactionprovisioner_prov.c中的 //这个是自己添加的I (168980) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_CLOSE_EVT, bearer PB-ADV reason 0x01I (168990) FAST_PROV_CLIENT2_DEMO: PB-ADV link close, reason 0x01
ble_mesh_fast_prov_server的Log(删减掉了一些不相关部分)
Code:
Select all
0x4008107c: call_start_cpu1 at /home/ztc/esp/HuRong/esp_idf_4/esp-idf/components/esp32/cpu_start.c:280I (0) cpu_start: App cpu up.I (543) cpu_start: Pro cpu start user codeI (561) spi_flash: detected chip: genericI (562) spi_flash: flash io: dioI (562) cpu_start: Starting scheduler on PRO CPU.I (0) cpu_start: Starting scheduler on APP CPU.I (570) FAST_PROV_SERVER_DEMO: Initializing...I (580) BTDM_INIT: BT controller compile version [4d3bde7]I (590) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSEI (690) phy: phy_version: 4100, 2a5dd04, Jan 23 2019, 21:00:07, 0, 0I (2190) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_PROV_REGISTER_COMP_EVT, err_code: 0I (2190) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_NODE_PROV_ENABLE_COMP_EVT, err_code: 0I (2200) FAST_PROV_SERVER_DEMO: BLE Mesh Fast Prov Node initializedI (2230) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_NODE_PROV_LINK_OPEN_EVT, bearer: PB-ADVW (5450) BLE_MESH: Node timeout, giving up transactionp_ble_meshmesh_coreprov.c中的 //自己添加的I (5450) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_NODE_PROV_LINK_CLOSE_EVT, bearer: PB-ADVI (61790) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_NODE_PROV_LINK_OPEN_EVT, bearer: PB-ADVW (64950) BLE_MESH: Node timeout, giving up transactionp_ble_meshmesh_coreprov.c中的 //自己添加的
请问但从Log上能发现问题原因所在吗