esp-idf ble_mesh_fast_provision Not Join Mesh network !!

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

esp-idf ble_mesh_fast_provision Not Join Mesh network !!

Postby mm_1993 » Tue Aug 31, 2021 9:34 am

Hi every one
I have a problem with this idf example (ble_mesh_fast_provision)

I run this code without any change build successfully and program devkit is ok but mesh network doesn't work
it just connect to one node, not more :(

and I do all steps in sample ble_mesh_fast_provision youtube video

****


I run again and again this example :
(ble_mesh_fast_provision)
https://github.com/espressif/esp-idf/tr ... erver/main

when I scan for unprovision node I find theme, after that I select a node and select fast provisioning
when app start scan to find this just found one node and I dont know why ?

I use fast_prov_server program for all of my nodes
every thing is look ok but nodes doesn't join to the mesh network, a warning happen Disable BLE Mesh Relay & GATT Proxy
and stay forever in a scanning loop


Come On Guys I need Your Help


this is my terminal result:
  1.  
  2.  
  3. Windows PowerShell
  4. Copyright (C) Microsoft Corporation. All rights reserved.
  5.  
  6. 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 COM2 monitor
  7. Executing action: monitor
  8. Running idf_monitor in directory e:\test-esp32\esp32_bluetooth\fast_prov_server
  9. Executing "C:\ESP32\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:/ESP32/esp-idf/tools/idf_monitor.py -p COM2 -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' 'COM2'"...
  10. ?[0;33m--- WARNING: GDB cannot open serial ports accessed as COMx?[0m
  11. ?[0;33m--- Using \\.\COM2 instead...?[0m
  12. --- idf_monitor on \\.\COM2 115200 ---
  13. --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
  14. ets Jun  8 2016 00:22:57
  15.  
  16. rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
  17. configsip: 0, SPIWP:0xee
  18. clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
  19. mode:DIO, clock div:2
  20. load:0x3fff0030,len:6912
  21. load:0x40078000,len:14292
  22. ho 0 tail 12 room 4
  23. load:0x40080400,len:3688
  24. 0x40080400: _init at ??:?
  25.  
  26. entry 0x40080678
  27. I (28) boot: ESP-IDF v4.3 2nd stage bootloader
  28. I (28) boot: compile time 17:38:22
  29. I (28) boot: chip revision: 1
  30. I (31) boot_comm: chip revision: 1, min. bootloader chip revision: 0
  31. I (38) boot.esp32: SPI Speed      : 40MHz
  32. I (42) boot.esp32: SPI Mode       : DIO
  33. I (47) boot.esp32: SPI Flash Size : 4MB
  34. I (52) boot: Enabling RNG early entropy source...
  35. I (57) boot: Partition Table:
  36. I (60) boot: ## Label            Usage          Type ST Offset   Length
  37. I (68) boot:  0 nvs              WiFi data        01 02 00009000 00004000
  38. I (75) boot:  1 otadata          OTA data         01 00 0000d000 00002000
  39. I (83) boot:  2 phy_init         RF data          01 01 0000f000 00001000
  40. I (90) boot:  3 factory          factory app      00 00 00010000 00200000
  41. I (98) boot: End of partition table
  42. I (102) boot: Defaulting to factory image
  43. I (107) boot_comm: chip revision: 1, min. application chip revision: 0
  44. I (114) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=2a8a4h (174244) map
  45. I (188) esp_image: segment 1: paddr=0003a8cc vaddr=3ffbdb60 size=04eb4h ( 20148) load
  46. I (196) esp_image: segment 2: paddr=0003f788 vaddr=40080000 size=00890h (  2192) load
  47. I (198) esp_image: segment 3: paddr=00040020 vaddr=400d0020 size=a4c3ch (674876) map
  48. I (457) esp_image: segment 4: paddr=000e4c64 vaddr=40080890 size=163d4h ( 91092) load
  49. I (496) esp_image: segment 5: paddr=000fb040 vaddr=50000000 size=00010h (    16) load
  50. I (509) boot: Loaded app from partition at offset 0x10000
  51. I (509) boot: Disabling RNG early entropy source...
  52. I (521) cpu_start: Pro cpu up.
  53. I (521) cpu_start: Starting app cpu, entry point is 0x400812bc
  54. 0x400812bc: call_start_cpu1 at C:/ESP32/esp-idf/components/esp_system/port/cpu_start.c:141
  55.  
  56. I (0) cpu_start: App cpu up.
  57. I (537) cpu_start: Pro cpu start user code
  58. I (537) cpu_start: cpu freq: 160000000
  59. I (537) cpu_start: Application information:
  60. I (542) cpu_start: Project name:     fast_prov_server
  61. I (547) cpu_start: App version:      1
  62. I (552) cpu_start: Compile time:     Aug 29 2021 12:40:20
  63. I (558) cpu_start: ELF file SHA256:  35414a86278e2ab4...
  64. I (564) cpu_start: ESP-IDF:          v4.3
  65. I (569) heap_init: Initializing. RAM available for dynamic allocation:
  66. I (576) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
  67. I (582) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
  68. I (588) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
  69. I (594) heap_init: At 3FFCCC90 len 00013370 (76 KiB): DRAM
  70. I (600) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
  71. I (606) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
  72. I (613) heap_init: At 40096C64 len 0000939C (36 KiB): IRAM
  73. I (620) spi_flash: detected chip: generic
  74. I (624) spi_flash: flash io: dio
  75. I (629) cpu_start: Starting scheduler on PRO CPU.
  76. I (0) cpu_start: Starting scheduler on APP CPU.
  77. I (639) EXAMPLE: Initializing...
  78. I (639) gpio: GPIO[17]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
  79. I (649) gpio: GPIO[18]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
  80. I (659) gpio: GPIO[19]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
  81. I (689) BTDM_INIT: BT controller compile version [1342a48]
  82. I (689) system_api: Base MAC address is not set
  83. I (689) system_api: read default base MAC address from EFUSE
  84. I (699) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07
  85. I (2809) EXAMPLE: ESP_BLE_MESH_PROV_REGISTER_COMP_EVT, err_code: 0
  86. I (2809) EXAMPLE: BLE Mesh Fast Prov Node initialized
  87. I (2819) EXAMPLE: ESP_BLE_MESH_NODE_PROV_ENABLE_COMP_EVT, err_code: 0
  88. I (19739) EXAMPLE: ESP_BLE_MESH_NODE_PROV_LINK_OPEN_EVT, bearer: PB-GATT
  89. I (20209) EXAMPLE: ESP_BLE_MESH_NODE_PROV_LINK_CLOSE_EVT, bearer: PB-GATT
  90. I (20209) EXAMPLE: ESP_BLE_MESH_NODE_PROV_COMPLETE_EVT
  91. I (20209) EXAMPLE: net_idx: 0x0001, unicast_addr: 0x0002
  92. I (20219) EXAMPLE: flags: 0x00, iv_index: 0x00000000
  93. I (20839) EXAMPLE: example_ble_mesh_config_server_cb, event = 0x00, opcode = 0x0000, addr: 0x0001
  94. I (20839) EXAMPLE: Config Server get Config AppKey Add
  95. I (21069) EXAMPLE: example_ble_mesh_custom_model_cb: Fast prov server receives msg, opcode 0xc002e5
  96. I (21069) fast prov server recv: c3 03 64 00 00 04 00 c0 01 00 dd dd 81
  97. I (21079) EXAMPLE: ESP_BLE_MESH_SET_FAST_PROV_INFO_COMP_EVT
  98. I (21089) EXAMPLE: status_unicast: 0x00, status_net_idx: 0x00, status_match 0x00
  99. I (21089) EXAMPLE: ESP_BLE_MESH_SET_FAST_PROV_ACTION_COMP_EVT, status_action 0x00
  100. I (21109) EXAMPLE: ESP_BLE_MESH_MODEL_SEND_COMP_EVT, err_code 0
  101. I (21109) FAST_PROV_SERVER: example_handle_fast_prov_status_send_comp_evt: opcode 0xc102e5
  102. W (21119) FAST_PROV_SERVER: example_handle_fast_prov_status_send_comp_evt: Disable BLE Mesh Relay & GATT Proxy
  103. W (21129) BT_APPL: gattc_conn_cb: if=4 st=0 id=4 rsn=0x16
  104. I (21149) EXAMPLE: ESP_BLE_MESH_NODE_PROXY_GATT_DISABLE_COMP_EVT
  105.  
  106.  
Last edited by mm_1993 on Sat Sep 04, 2021 7:57 am, edited 2 times in total.

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

Re: esp-idf ble_mesh_fast_provision Not Join Mesh network !!

Postby mm_1993 » Sun Sep 19, 2021 4:56 am

ok it because I just testing with two nodes and I don't know why ble mesh android application was not work truely with my phone !!
I Add new node after that I use another smartphone ... and Done.
My phone is nokia6.1 plus and it supported ble 5 ....

Who is online

Users browsing this forum: No registered users and 127 guests