请问ble_mesh_fast_prov_client在于server开始建立通讯时就提示Too short message for OpCode 0x00c702e5是怎么回事?

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

请问ble_mesh_fast_prov_client在于server开始建立通讯时就提示Too short message for OpCode 0x00c702e5是怎么回事?

Postby NoBestJustBetter » Mon Aug 05, 2019 2:09 am

请问ble_mesh_fast_prov_client在于ble_mesh_fast_prov_server开始建立通讯时就提示Too short message for OpCode 0x00c702e5
ble_mesh_fast_prov_client提示错误的那部分Log如下:

Code: Select all

W (141170) FAST_PROV_CLIENT: example_fast_prov_client_recv_tim    : Receive fast prov server status timeout
I (141180) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_MODEL_SEND_COM    T, err_code 0
E (141260) BLE_MESH: bt_mesh_model_recv, Too short message for    ode 0x00c702e5
I (151180) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_CLIENT_MODEL_S    TIMEOUT_EVT, opcode 0xc602e5, dst 0x0005
详细的Log如下:
ble_mesh_fast_prov_client

Code: Select all

I (28) boot: ESP-IDF v4.0-dev-1191-g138c941-dirty 2nd stage bootloader
I (28) boot: compile time 09:41:03
I (30) boot: Enabling RNG early entropy source...
I (35) boot: SPI Speed      : 40MHz
I (39) boot: SPI Mode       : DIO
I (43) boot: SPI Flash Size : 4MB
I (47) boot: Partition Table:
I (51) boot: ## Label            Usage          Type ST Offset   Length
I (58) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (65) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (73) boot:  2 factory          factory app      00 00 00010000 00100000
I (80) boot: End of partition table
I (85) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x2cc0c (183308) map
I (158) esp_image: segment 1: paddr=0x0003cc34 vaddr=0x3ffbdb60 size=0x033dc ( 13276) load
I (163) esp_image: segment 2: paddr=0x00040018 vaddr=0x400d0018 size=0x8eb64 (584548) map
0x400d0018: _flash_cache_start at ??:?

I (369) esp_image: segment 3: paddr=0x000ceb84 vaddr=0x3ffc0f3c size=0x00464 (  1124) load
I (370) esp_image: segment 4: paddr=0x000ceff0 vaddr=0x40080000 size=0x00400 (  1024) load
0x40080000: _WindowOverflow4 at /home/ztc/esp/HuRong/esp_idf_4/esp-idf/components/freertos/xtensa_vectors.S:1778

I (376) esp_image: segment 5: paddr=0x000cf3f8 vaddr=0x40080400 size=0x11b1c ( 72476) load
I (426) boot: Loaded app from partition at offset 0x10000
I (426) boot: Disabling RNG early entropy source...
I (426) cpu_start: Pro cpu up.
I (430) cpu_start: Application information:
I (435) cpu_start: Project name:     ble_mesh_fast_prov_client
I (441) cpu_start: App version:      v4.0-dev-1191-g138c941-dirty
I (448) cpu_start: Compile time:     Aug  5 2019 09:41:06
I (454) cpu_start: ELF file SHA256:  5e6eda81a1567764...
I (460) cpu_start: ESP-IDF:          v4.0-dev-1191-g138c941-dirty
I (467) cpu_start: Starting app cpu, entry point is 0x4008107c
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 (477) heap_init: Initializing. RAM available for dynamic allocation:
I (484) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (490) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
I (496) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
I (502) heap_init: At 3FFBDB5C len 00000004 (0 KiB): DRAM
I (508) heap_init: At 3FFCD2E8 len 00012D18 (75 KiB): DRAM
I (514) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (521) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (527) heap_init: At 40091F1C len 0000E0E4 (56 KiB): IRAM
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 (670) phy: phy_version: 4100, 2a5dd04, Jan 23 2019, 21:00:07, 0, 0
I (960) 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 (1080) FAST_PROV_CLIENT2_DEMO: BLE Mesh Provisioner initialized
I (38300) FAST_PROV_CLIENT2_DEMO: address:  840d8e35c18e, address type: 0, adv type: 3
I (38300) FAST_PROV_CLIENT2_DEMO: dev uuid: dddd840d8e35c18e0000000000000000
I (38310) FAST_PROV_CLIENT2_DEMO: oob info: 0, bearer: PB-ADV
I (38310) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_OPEN_EVT, bearer PB-ADV
I (38320) FAST_PROV_CLIENT2_DEMO: PB-ADV link open
I (38330) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_ADD_UNPROV_DEV_COMP_EVT, err_code: 0
I (40180) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_COMPLETE_EVT
I (40190) FAST_PROV_CLIENT2_DEMO: Node index: 0x0, unicast address: 0x05, element num: 1, netkey index: 0x00
I (40190) FAST_PROV_CLIENT2_DEMO: Node uuid:  dddd840d8e35c18e0000000000000000
I (40200) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_SET_NODE_NAME_COMP_EVT, err_code: 0
I (40600) FAST_PROV_CLIENT2_DEMO: example_config_client_callback, error_code = 0x00, event = 0x01, addr: 0x0005
I (40600) FAST_PROV_OP: min:       0x0006, max:        0x7fff
I (40600) FAST_PROV_OP: flags:     0x00,   iv_index:   0x00000000
I (40610) FAST_PROV_OP: net_idx:   0x0000, group_addr: 0xc000
I (40620) FAST_PROV_OP: action:    0x81
I (40620) FAST_PROV_OP: match_val: dd dd
I (40630) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_MODEL_SEND_COMP_EVT, err_code 0
client_2 端的opcode是0xc102e5
I (41110) FAST_PROV_CLIENT2_DEMO: example_custom_model_callback: Fast Prov Client Model receives status, opcode 0xc102e5
I (41120) fast prov client receives: 7f 00 00 00 00 00 00 00 00
I (41120) fast prov info status: 7f 00 00 00 00 00 00 00 00
I (42090) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_PROVISIONER_PROV_LINK_CLOSE_EVT, bearer PB-ADV reason 0x00
I (42090) FAST_PROV_CLIENT2_DEMO: PB-ADV link close, reason 0x00
I (101130) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_MODEL_SEND_COMP_EVT, err_code 0
E (101240) BLE_MESH: bt_mesh_model_recv, Too short message for OpCode 0x00c702e5
I (111130) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_CLIENT_MODEL_SEND_TIMEOUT_EVT, opcode 0xc602e5, dst 0x0005
W (111130) FAST_PROV_CLIENT: example_fast_prov_client_recv_timeout: Receive fast prov server status timeout
I (111140) FAST_PROV_CLIENT2_DEMO: ESP_BLE_MESH_MODEL_SEND_COMP_EVT, err_code 0
E (111230) BLE_MESH: bt_mesh_model_recv, Too short message for OpCode 0x00c702e5
ble_mesh_fast_prov_server中文部分注释是自己添加的

Code: Select all

I (28) boot: ESP-IDF v4.0-dev-1191-g138c941-dirty 2nd stage bootloader
I (28) boot: compile time 09:17:54
I (29) boot: Enabling RNG early entropy source...
I (35) boot: SPI Speed      : 40MHz
I (39) boot: SPI Mode       : DIO
I (43) boot: SPI Flash Size : 4MB
I (47) boot: Partition Table:
I (50) boot: ## Label            Usage          Type ST Offset   Length
I (58) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (65) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (73) boot:  2 factory          factory app      00 00 00010000 00100000
I (80) boot: End of partition table
I (84) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x3006c (196716) map
I (162) esp_image: segment 1: paddr=0x00040094 vaddr=0x3ffbdb60 size=0x03d24 ( 15652) load
I (168) esp_image: segment 2: paddr=0x00043dc0 vaddr=0x40080000 size=0x00400 (  1024) load
0x40080000: _WindowOverflow4 at /home/ztc/esp/HuRong/esp_idf_4/esp-idf/components/freertos/xtensa_vectors.S:1778

I (169) esp_image: segment 3: paddr=0x000441c8 vaddr=0x40080400 size=0x0be48 ( 48712) load
I (198) esp_image: segment 4: paddr=0x00050018 vaddr=0x400d0018 size=0x96194 (614804) map
0x400d0018: _flash_cache_start at ??:?

I (413) esp_image: segment 5: paddr=0x000e61b4 vaddr=0x4008c248 size=0x05cd4 ( 23764) load
0x4008c248: bt_bb_init_cmplx at /home/qgu/git_tree/chip7.1_rtc/board_code/app_test/pp/rtc/bt_bb.c:288

I (434) boot: Loaded app from partition at offset 0x10000
I (435) boot: Disabling RNG early entropy source...
I (435) cpu_start: Pro cpu up.
I (439) cpu_start: Application information:
I (443) cpu_start: Project name:     ble_mesh_fast_prov_server
I (450) cpu_start: App version:      v4.0-dev-1191-g138c941-dirty
I (457) cpu_start: Compile time:     Aug  5 2019 09:17:57
I (463) cpu_start: ELF file SHA256:  77d0f0dd11545e92...
I (469) cpu_start: ESP-IDF:          v4.0-dev-1191-g138c941-dirty
I (476) cpu_start: Starting app cpu, entry point is 0x4008107c
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 (486) heap_init: Initializing. RAM available for dynamic allocation:
I (493) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (499) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
I (505) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
I (511) heap_init: At 3FFBDB5C len 00000004 (0 KiB): DRAM
I (517) heap_init: At 3FFCFAA8 len 00010558 (65 KiB): DRAM
I (523) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (530) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (536) heap_init: At 40091F1C len 0000E0E4 (56 KiB): IRAM
I (542) cpu_start: Pro cpu start user code
I (561) spi_flash: detected chip: generic
I (561) spi_flash: flash io: dio
I (561) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (569) FAST_PROV_SERVER_DEMO: Initializing...
I (579) BTDM_INIT: BT controller compile version [4d3bde7]
I (589) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (679) phy: phy_version: 4100, 2a5dd04, Jan 23 2019, 21:00:07, 0, 0
I (2429) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_PROV_REGISTER_COMP_EVT, err_code: 0
I (2429) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_NODE_PROV_ENABLE_COMP_EVT, err_code: 0
I (2439) FAST_PROV_SERVER_DEMO: BLE Mesh Fast Prov Node initialized
I (2509) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_NODE_PROV_LINK_OPEN_EVT, bearer: PB-ADV
I (4219) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_NODE_PROV_COMPLETE_EVT
I (4219) FAST_PROV_SERVER_DEMO: net_idx: 0x0000, unicast_addr: 0x0005
I (4219) FAST_PROV_SERVER_DEMO: flags: 0x00, iv_index: 0x00000000
W (4229) BLE_MESH: Resending ack
I (4469) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_NODE_PROV_LINK_CLOSE_EVT, bearer: PB-ADV
I (4639) FAST_PROV_SERVER_DEMO: example_ble_mesh_config_server_cb, event = 0x00, opcode = 0x0000, addr: 0x0001
I (4639) FAST_PROV_SERVER_DEMO: Config Server get Config AppKey Add
进入example_ble_mesh_custom_model_cb函数
I (4979) FAST_PROV_SERVER_DEMO: example_ble_mesh_custom_model_cb: Fast prov server receives msg, opcode 0xc002e5
I (4979) fast prov server recv: 7f 03 64 00 06 00 ff 7f 00 00 00 00 00 00 00 00
I (4989) fast prov server recv: c0 dd dd 81
I (4999) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_SET_FAST_PROV_INFO_COMP_EVT
I (4999) FAST_PROV_SERVER_DEMO: status_unicast: 0x00, status_net_idx: 0x00, status_match 0x00
I (5009) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_SET_FAST_PROV_ACTION_COMP_EVT, status_action 0x00
进入example_ble_mesh_custom_model_cb函数
I (5029) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_MODEL_SEND_COMP_EVT, err_code 0
I (5029) FAST_PROV_SERVER: example_handle_fast_prov_status_send_comp_evt: opcode 0xc102e5
W (5039) FAST_PROV_SERVER: example_handle_fast_prov_status_send_comp_evt: Disable BLE Mesh Relay & GATT Proxy
I (5049) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_NODE_PROXY_GATT_DISABLE_COMP_EVT
进入example_ble_mesh_custom_model_cb函数
I (65299) FAST_PROV_SERVER_DEMO: example_ble_mesh_custom_model_cb: Fast prov server receives msg, opcode 0xc602e5
进入example_ble_mesh_custom_model_cb函数
I (65309) FAST_PROV_SERVER_DEMO: ESP_BLE_MESH_MODEL_SEND_COMP_EVT, err_code 0
I (65309) FAST_PROV_SERVER: example_handle_fast_prov_status_send_comp_evt: opcode 0xc702e5

Who is online

Users browsing this forum: MSN [Bot] and 36 guests