为什么ble_mesh_fast_prov_server和ble_mesh_fast_prov_client运行之后没能连接上

NoBestJustBetter
Posts: 9
Joined: Wed Jul 31, 2019 8:08 am

为什么ble_mesh_fast_prov_server和ble_mesh_fast_prov_client运行之后没能连接上

Postby NoBestJustBetter » Wed Jul 31, 2019 8:24 am

ble_mesh_fast_prov_server和ble_mesh_fast_prov_client没有能够自动连接,二者的Log如下:
ble_mesh_fast_prov_client的Log(删减掉了一些不相关部分)

Code: Select all

I (0) cpu_start: App cpu up.
I (533) cpu_start: Pro cpu start user code
I (552) spi_flash: detected chip: generic
I (552) spi_flash: flash io: dio
I (552) cpu_start: Starting 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 EFUSE
I (680) phy: phy_version: 4100, 2a5dd04, Jan 23 2019, 21:00:07, 0, 0
I (970) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_SET_DEV_UUID_MATCH_COMP_EVT, err_code: 0
I (1050) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROV_REGISTER_COMP_EVT, err_code: 0
I (1060) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_ENABLE_COMP_EVT
I (1060) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_ADD_LOCAL_APP_KEY_COMP_EVT, err_code 0
I (1070) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_BIND_APP_KEY_TO_MODEL_COMP_EVT, err_code 0
I (1080) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_BIND_APP_KEY_TO_MODEL_COMP_EVT, err_code 0
I (1090) FAST_PROV_CLIENT2_DEMO: BLE Mesh Provisioner initialized
I (18800) FAST_PROV_CLIENT2_DEMO: address:  840d8e35c18e, address type: 0, adv type: 3
I (18800) FAST_PROV_CLIENT2_DEMO: dev uuid: dddd840d8e35c18e0000000000000000
I (18810) FAST_PROV_CLIENT2_DEMO: oob info: 0, bearer: PB-ADV
I (18820) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_OPEN_EVT, bearer PB-ADV
I (18820) FAST_PROV_CLIENT2_DEMO: PB-ADV link open
I (18830) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_ADD_UNPROV_DEV_COMP_EVT, err_code: 0
W (18930) BLE_MESH: link_ack, Link ACK is already received
W (48890) BLE_MESH: Device in queue not support PB-GATT
W (49020) BLE_MESH: Provisioner timeout, giving up transaction
provisioner_prov.c中的
I (49020) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_CLOSE_EVT, bearer PB-ADV reason 0x01
I (49020) FAST_PROV_CLIENT2_DEMO: PB-ADV link close, reason 0x01
W (49400) BLE_MESH: Device in queue not support PB-GATT
W (51380) BLE_MESH: Device in queue not support PB-GATT
I (51800) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_OPEN_EVT, bearer PB-ADV
I (51800) FAST_PROV_CLIENT2_DEMO: PB-ADV link open
W (81900) BLE_MESH: Provisioner timeout, giving up transaction
provisioner_prov.c中的	//这个是自己添加的
I (81900) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_CLOSE_EVT, bearer PB-ADV reason 0x01
I (81900) FAST_PROV_CLIENT2_DEMO: PB-ADV link close, reason 0x01
I (105880) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_OPEN_EVT, bearer PB-ADV
I (105880) FAST_PROV_CLIENT2_DEMO: PB-ADV link open
W (136070) BLE_MESH: Provisioner timeout, giving up transaction
provisioner_prov.c中的	//这个是自己添加的
I (136070) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_CLOSE_EVT, bearer PB-ADV reason 0x01
I (136070) FAST_PROV_CLIENT2_DEMO: PB-ADV link close, reason 0x01
W (136470) BLE_MESH: Device in queue not support PB-GATT
I (138880) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_OPEN_EVT, bearer PB-ADV
I (138880) FAST_PROV_CLIENT2_DEMO: PB-ADV link open
W (168980) BLE_MESH: Provisioner timeout, giving up transaction
provisioner_prov.c中的	//这个是自己添加的
I (168980) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_CLOSE_EVT, bearer PB-ADV reason 0x01
I (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:280

I (0) cpu_start: App cpu up.
I (543) cpu_start: Pro cpu start user code
I (561) spi_flash: detected chip: generic
I (562) spi_flash: flash io: dio
I (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 EFUSE
I (690) phy: phy_version: 4100, 2a5dd04, Jan 23 2019, 21:00:07, 0, 0
I (2190) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_PROV_REGISTER_COMP_EVT, err_code: 0
I (2190) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_NODE_PROV_ENABLE_COMP_EVT, err_code: 0
I (2200) FAST_PROV_SERVER_DEMO: BLE Mesh Fast Prov Node initialized
I (2230) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_NODE_PROV_LINK_OPEN_EVT, bearer: PB-ADV
W (5450) BLE_MESH: Node timeout, giving up transaction
p_ble_meshmesh_coreprov.c中的  //自己添加的
I (5450) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_NODE_PROV_LINK_CLOSE_EVT, bearer: PB-ADV
I (61790) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_NODE_PROV_LINK_OPEN_EVT, bearer: PB-ADV
W (64950) BLE_MESH: Node timeout, giving up transaction
p_ble_meshmesh_coreprov.c中的  //自己添加的

请问但从Log上能发现问题原因所在吗
Attachments
微信截图_20190731162253.png
微信截图_20190731162253.png (232.9 KiB) Viewed 4977 times

Wangcheng
Posts: 73
Joined: Wed Mar 06, 2019 3:26 am

Re: 为什么ble_mesh_fast_prov_server和ble_mesh_fast_prov_client运行之后没能连接上

Postby Wangcheng » Thu Aug 01, 2019 2:33 am

NoBestJustBetter wrote:
Wed Jul 31, 2019 8:24 am
ble_mesh_fast_prov_server和ble_mesh_fast_prov_client没有能够自动连接,二者的Log如下:
ble_mesh_fast_prov_client的Log(删减掉了一些不相关部分)

Code: Select all

I (0) cpu_start: App cpu up.
I (533) cpu_start: Pro cpu start user code
I (552) spi_flash: detected chip: generic
I (552) spi_flash: flash io: dio
I (552) cpu_start: Starting 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 EFUSE
I (680) phy: phy_version: 4100, 2a5dd04, Jan 23 2019, 21:00:07, 0, 0
I (970) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_SET_DEV_UUID_MATCH_COMP_EVT, err_code: 0
I (1050) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROV_REGISTER_COMP_EVT, err_code: 0
I (1060) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_ENABLE_COMP_EVT
I (1060) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_ADD_LOCAL_APP_KEY_COMP_EVT, err_code 0
I (1070) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_BIND_APP_KEY_TO_MODEL_COMP_EVT, err_code 0
I (1080) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_BIND_APP_KEY_TO_MODEL_COMP_EVT, err_code 0
I (1090) FAST_PROV_CLIENT2_DEMO: BLE Mesh Provisioner initialized
I (18800) FAST_PROV_CLIENT2_DEMO: address:  840d8e35c18e, address type: 0, adv type: 3
I (18800) FAST_PROV_CLIENT2_DEMO: dev uuid: dddd840d8e35c18e0000000000000000
I (18810) FAST_PROV_CLIENT2_DEMO: oob info: 0, bearer: PB-ADV
I (18820) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_OPEN_EVT, bearer PB-ADV
I (18820) FAST_PROV_CLIENT2_DEMO: PB-ADV link open
I (18830) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_ADD_UNPROV_DEV_COMP_EVT, err_code: 0
W (18930) BLE_MESH: link_ack, Link ACK is already received
W (48890) BLE_MESH: Device in queue not support PB-GATT
W (49020) BLE_MESH: Provisioner timeout, giving up transaction
provisioner_prov.c中的
I (49020) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_CLOSE_EVT, bearer PB-ADV reason 0x01
I (49020) FAST_PROV_CLIENT2_DEMO: PB-ADV link close, reason 0x01
W (49400) BLE_MESH: Device in queue not support PB-GATT
W (51380) BLE_MESH: Device in queue not support PB-GATT
I (51800) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_OPEN_EVT, bearer PB-ADV
I (51800) FAST_PROV_CLIENT2_DEMO: PB-ADV link open
W (81900) BLE_MESH: Provisioner timeout, giving up transaction
provisioner_prov.c中的	//这个是自己添加的
I (81900) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_CLOSE_EVT, bearer PB-ADV reason 0x01
I (81900) FAST_PROV_CLIENT2_DEMO: PB-ADV link close, reason 0x01
I (105880) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_OPEN_EVT, bearer PB-ADV
I (105880) FAST_PROV_CLIENT2_DEMO: PB-ADV link open
W (136070) BLE_MESH: Provisioner timeout, giving up transaction
provisioner_prov.c中的	//这个是自己添加的
I (136070) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_CLOSE_EVT, bearer PB-ADV reason 0x01
I (136070) FAST_PROV_CLIENT2_DEMO: PB-ADV link close, reason 0x01
W (136470) BLE_MESH: Device in queue not support PB-GATT
I (138880) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_OPEN_EVT, bearer PB-ADV
I (138880) FAST_PROV_CLIENT2_DEMO: PB-ADV link open
W (168980) BLE_MESH: Provisioner timeout, giving up transaction
provisioner_prov.c中的	//这个是自己添加的
I (168980) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_CLOSE_EVT, bearer PB-ADV reason 0x01
I (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:280

I (0) cpu_start: App cpu up.
I (543) cpu_start: Pro cpu start user code
I (561) spi_flash: detected chip: generic
I (562) spi_flash: flash io: dio
I (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 EFUSE
I (690) phy: phy_version: 4100, 2a5dd04, Jan 23 2019, 21:00:07, 0, 0
I (2190) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_PROV_REGISTER_COMP_EVT, err_code: 0
I (2190) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_NODE_PROV_ENABLE_COMP_EVT, err_code: 0
I (2200) FAST_PROV_SERVER_DEMO: BLE Mesh Fast Prov Node initialized
I (2230) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_NODE_PROV_LINK_OPEN_EVT, bearer: PB-ADV
W (5450) BLE_MESH: Node timeout, giving up transaction
p_ble_meshmesh_coreprov.c中的  //自己添加的
I (5450) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_NODE_PROV_LINK_CLOSE_EVT, bearer: PB-ADV
I (61790) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_NODE_PROV_LINK_OPEN_EVT, bearer: PB-ADV
W (64950) BLE_MESH: Node timeout, giving up transaction
p_ble_meshmesh_coreprov.c中的  //自己添加的

请问但从Log上能发现问题原因所在吗
Hi ,

You also check the selection
Component config--"Bluetooth --" BLuetooth controller--"Scan Duplicate Type (Scan Duplicate By Device Address And Advertising Date)
Componet config--》Bluetooth--》Bluetooth controller--》BLE full scan feature supported.

NoBestJustBetter
Posts: 9
Joined: Wed Jul 31, 2019 8:08 am

Re: 为什么ble_mesh_fast_prov_server和ble_mesh_fast_prov_client运行之后没能连接上

Postby NoBestJustBetter » Sun Aug 04, 2019 7:58 am

按照你说的设置了,不过还是连不上啊

Who is online

Users browsing this forum: No registered users and 181 guests