ESP BLE MESH Fast Provisioning

koteswara
Posts: 16
Joined: Tue Feb 25, 2020 12:06 pm

ESP BLE MESH Fast Provisioning

Postby koteswara » Sat Feb 29, 2020 6:14 am

I am using three ESP32 Modules to form a BLE Mesh Network and I have uploaded the following example code to all three ESP32 boards.

https://github.com/espressif/esp-idf/tr ... rov_server

Ultimate aim of this example is that mobile device will provision a node i.e one ESP32 and that node has to provision the other two nodes to the mesh network. I am able to provision only one node and that node is not provisioning other two devices . I followed the below steps :
1.Uploaded the all example code which is in URL to all ESP32's
2.In EspBLEMesh app I started provisioning and then filtered the available ESP32's by UUID "dddd"
3.I was able to find the all the three devices and selected one of them.
4.Before provisioning that node I selected fast provisioning and entered the Expect fast provisioning count as 3
5.My EspBleMesh application is connected and in fast provisioning application i am finding only one node which is connected and i am able to control that.

I Confirmed that connected node is not provisioning other devices by seeing the Blue LED. If the node has got provisioned then the blue light will turn off automatically. But the Blue light of other nodes are not offed as they are not provisioned .
How I have to solve this error ? Do I need to add any AppKey and NetKey to the EspBLEMesh application ?
Attachments
FastProvison.jpg
As one is provisioned only one blue led is in off state and it is not provisioning other devices .
FastProvison.jpg (3.33 MiB) Viewed 40130 times

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

Re: ESP BLE MESH Fast Provisioning

Postby Wangcheng » Wed Mar 04, 2020 7:28 am

I am using three ESP32 Modules to form a BLE Mesh Network and I have uploaded the following example code to all three ESP32 boards.

https://github.com/espressif/esp-idf/tr ... rov_server

Ultimate aim of this example is that mobile device will provision a node i.e one ESP32 and that node has to provision the other two nodes to the mesh network. I am able to provision only one node and that node is not provisioning other two devices . I followed the below steps :
1.Uploaded the all example code which is in URL to all ESP32's
2.In EspBLEMesh app I started provisioning and then filtered the available ESP32's by UUID "dddd"
3.I was able to find the all the three devices and selected one of them.
4.Before provisioning that node I selected fast provisioning and entered the Expect fast provisioning count as 3
5.My EspBleMesh application is connected and in fast provisioning application i am finding only one node which is connected and i am able to control that.

I Confirmed that connected node is not provisioning other devices by seeing the Blue LED. If the node has got provisioned then the blue light will turn off automatically. But the Blue light of other nodes are not offed as they are not provisioned .
How I have to solve this error ? Do I need to add any AppKey and NetKey to the EspBLEMesh application ?
We will use the above code for testing. You'd better be able to add the log so that we can quickly locate the problem.

koteswara
Posts: 16
Joined: Tue Feb 25, 2020 12:06 pm

Re: ESP BLE MESH Fast Provisioning

Postby koteswara » Wed Mar 04, 2020 11:38 am

These screenshots are from the device which has got provisioned by the mobile device by EspBleMesh Application.I am sharing the screenshot of other devices which are ready to provision .
Attachments
three.JPG
Device ready to provision and not get provisioned by the device which has got provisioned by the mobile device
three.JPG (80.33 KiB) Viewed 40016 times
Screenshot 1941-12-14 at 17.02.39.png
Screenshot 1941-12-14 at 17.02.39.png (1.04 MiB) Viewed 40016 times
Screenshot 1941-12-14 at 17.02.17.png
Screenshot 1941-12-14 at 17.02.17.png (1.11 MiB) Viewed 40016 times

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

Re: ESP BLE MESH Fast Provisioning

Postby Wangcheng » Wed Mar 04, 2020 12:49 pm

These screenshots are from the device which has got provisioned by the mobile device by EspBleMesh Application.I am sharing the screenshot of other devices which are ready to provision .
https://github.com/EspressifApp/EspBLEM ... d/releases

I use the master branch of github to try the basic function is normal, you should check the version of the app. The key operation steps are shown in the attached figure:
Attachments
Screenshot_20200304_203953_com.espressif.espbleme.jpg
Screenshot_20200304_203953_com.espressif.espbleme.jpg (172.67 KiB) Viewed 39998 times
Screenshot_20200304_203942_com.espressif.espbleme.jpg
Screenshot_20200304_203942_com.espressif.espbleme.jpg (238.26 KiB) Viewed 39998 times

koteswara
Posts: 16
Joined: Tue Feb 25, 2020 12:06 pm

Re: ESP BLE MESH Fast Provisioning

Postby koteswara » Thu Mar 05, 2020 8:25 am

Thank You .

Resolved by using the Updated EspBLEMesh Application

koteswara
Posts: 16
Joined: Tue Feb 25, 2020 12:06 pm

Re: ESP BLE MESH Fast Provisioning

Postby koteswara » Tue Mar 10, 2020 11:24 am

After provisioning one node my mobile is disconnecting to the node and that provisioned is provisioning all other nodes. When provisioning of nodes in the network is completed, the first provisioned node is not connecting to the mobile . Thus I was not able to control the nodes.
Attachments
lu.jpg
lu.jpg (59.86 KiB) Viewed 39793 times

liu
Espressif staff
Espressif staff
Posts: 35
Joined: Wed Nov 28, 2018 4:12 am

Re: ESP BLE MESH Fast Provisioning

Postby liu » Tue Jun 23, 2020 3:03 am

After provisioning one node my mobile is disconnecting to the node and that provisioned is provisioning all other nodes. When provisioning of nodes in the network is completed, the first provisioned node is not connecting to the mobile . Thus I was not able to control the nodes.
Hi @koteswara

After all the nodes are provisioned, you need to choose the first provisioned node on the app and connect will it manually.

Thanks.

Beibixian
Posts: 3
Joined: Tue Jul 07, 2020 7:30 am

Re: ESP BLE MESH Fast Provisioning

Postby Beibixian » Tue Jul 07, 2020 8:24 am

After provisioning one node my mobile is disconnecting to the node and that provisioned is provisioning all other nodes. When provisioning of nodes in the network is completed, the first provisioned node is not connecting to the mobile . Thus I was not able to control the nodes.
hello, I meet the same problem. However, upgrading the app didn't solve the problem. The app sucks here and the two other boards are not able to be provisioned.
My IDF is v4.0.1 and Development Kit: [ESP32-DevKitC]
Kit version (for DevKitC): [v1]
Module or chip used: [ESP32-WROOM-32]
can you give me some advice?
Attachments
Screenshot_2020-07-07-16-20-06-742_com.espressif..jpg
Screenshot_2020-07-07-16-20-06-742_com.espressif..jpg (122.83 KiB) Viewed 33915 times

mm_1993
Posts: 65
Joined: Sat Aug 28, 2021 5:16 am

Re: ESP BLE MESH Fast Provisioning

Postby mm_1993 » Sun Aug 29, 2021 5:36 am

Hi
I run this example :
https://github.com/espressif/esp-idf/tr ... rov_server

and I have this Problem exactly and even after update app version still not solved !
the different is, so I use two dev board not 3 board but I think it's not matter

ESP-IDF : 4.3
ESP32-wroom-32 devkit

thanks

mm_1993
Posts: 65
Joined: Sat Aug 28, 2021 5:16 am

Re: ESP BLE MESH Fast Provisioning

Postby mm_1993 » Sun Aug 29, 2021 5:45 am

if you want to se my test log its:

Code: Untitled.txt Select all



Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS E:\Test-ESP32\ESP32_Bluetooth\fast_prov_server> C:\ESP32\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:\ESP32\esp-idf\tools\idf.py -p COM11 monitor
Executing action: monitor
Running idf_monitor in directory e:\test-esp32\esp32_bluetooth\fast_prov_server
Executing "C:\ESP32\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:/ESP32/esp-idf/tools/idf_monitor.py -p COM11 -b 115200 --toolchain-prefix xtensa-esp32-elf- e:\test-esp32\esp32_bluetooth\fast_prov_server\build\fast_prov_server.elf -m 'C:\ESP32\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe' 'C:\ESP32\esp-idf\tools\idf.py' '-p' 'COM11'"...
?[0;33m--- WARNING: GDB cannot open serial ports accessed as COMx?[0m
?[0;33m--- Using \\.\COM11 instead...?[0m
--- idf_monitor on \\.\COM11 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6912
load:0x40078000,len:14292
ho 0 tail 12 room 4
load:0x40080400,len:3688
0x40080400: _init at ??:?

entry 0x40080678
I (28) boot: ESP-IDF v4.3 2nd stage bootloader
I (28) boot: compile time 17:38:22
I (28) boot: chip revision: 1
I (31) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (38) boot.esp32: SPI Speed : 40MHz
I (43) boot.esp32: SPI Mode : DIO
I (47) boot.esp32: SPI Flash Size : 4MB
I (52) boot: Enabling RNG early entropy source...
I (57) boot: Partition Table:
I (61) boot: ## Label Usage Type ST Offset Length
I (68) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (76) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (83) boot: 2 phy_init RF data 01 01 0000f000 00001000
I (90) boot: 3 factory factory app 00 00 00010000 00200000
I (98) boot: End of partition table
I (102) boot: Defaulting to factory image
I (107) boot_comm: chip revision: 1, min. application chip revision: 0
I (114) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=2a8a4h (174244) map
I (188) esp_image: segment 1: paddr=0003a8cc vaddr=3ffbdb60 size=04eb4h ( 20148) load
I (197) esp_image: segment 2: paddr=0003f788 vaddr=40080000 size=00890h ( 2192) load
I (198) esp_image: segment 3: paddr=00040020 vaddr=400d0020 size=a4c3ch (674876) map
I (457) esp_image: segment 4: paddr=000e4c64 vaddr=40080890 size=163d4h ( 91092) load
I (496) esp_image: segment 5: paddr=000fb040 vaddr=50000000 size=00010h ( 16) load
I (509) boot: Loaded app from partition at offset 0x10000
I (509) boot: Disabling RNG early entropy source...
I (521) cpu_start: Pro cpu up.
I (521) cpu_start: Starting app cpu, entry point is 0x400812bc
0x400812bc: call_start_cpu1 at C:/ESP32/esp-idf/components/esp_system/port/cpu_start.c:141

I (0) cpu_start: App cpu up.
I (537) cpu_start: Pro cpu start user code
I (537) cpu_start: cpu freq: 160000000
I (537) cpu_start: Application information:
I (542) cpu_start: Project name: fast_prov_server
I (548) cpu_start: App version: 1
I (552) cpu_start: Compile time: Aug 28 2021 17:38:01
I (558) cpu_start: ELF file SHA256: 438f775dd716c2ce...
I (564) cpu_start: ESP-IDF: v4.3
I (569) heap_init: Initializing. RAM available for dynamic allocation:
I (576) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (582) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
I (588) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
I (594) heap_init: At 3FFCCC90 len 00013370 (76 KiB): DRAM
I (600) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (607) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (613) heap_init: At 40096C64 len 0000939C (36 KiB): IRAM
I (620) spi_flash: detected chip: generic
I (624) spi_flash: flash io: dio
I (629) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (639) EXAMPLE: Initializing...
I (639) gpio: GPIO[17]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (649) gpio: GPIO[18]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (659) gpio: GPIO[19]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (689) BTDM_INIT: BT controller compile version [1342a48]
I (689) system_api: Base MAC address is not set
I (689) system_api: read default base MAC address from EFUSE
I (699) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07
I (3399) EXAMPLE: ESP_BLE_MESH_PROV_REGISTER_COMP_EVT, err_code: 0
I (3399) EXAMPLE: BLE Mesh Fast Prov Node initialized
I (3409) EXAMPLE: ESP_BLE_MESH_NODE_PROV_ENABLE_COMP_EVT, err_code: 0
I (86209) EXAMPLE: ESP_BLE_MESH_NODE_PROV_LINK_OPEN_EVT, bearer: PB-GATT
I (86689) EXAMPLE: ESP_BLE_MESH_NODE_PROV_LINK_CLOSE_EVT, bearer: PB-GATT
I (86689) EXAMPLE: ESP_BLE_MESH_NODE_PROV_COMPLETE_EVT
I (86689) EXAMPLE: net_idx: 0x0001, unicast_addr: 0x0002
I (86699) EXAMPLE: flags: 0x00, iv_index: 0x00000000
W (88819) BT_APPL: gattc_conn_cb: if=4 st=0 id=4 rsn=0x13
I (98339) EXAMPLE: example_ble_mesh_config_server_cb, event = 0x00, opcode = 0x0000, addr: 0x0001
I (98339) EXAMPLE: Config Server get Config AppKey Add


Who is online

Users browsing this forum: No registered users and 1 guest