BLE-Mesh的ESP32C3项目运行时报错

UJSWangx
Posts: 2
Joined: Sun Apr 25, 2021 8:02 am

BLE-Mesh的ESP32C3项目运行时报错

Postby UJSWangx » Mon Nov 15, 2021 7:11 am

将基于ESP32的BLE-Mesh工程移植到ESP32C3上,ESP32C3运行时报以下错误:

Code: Select all

[0;31mE (22190) BT_HCI: CC evt: op=0x2008, status=0xc[0m
[0;31mE (22190) BLE_MESH: set_adv_data, Invalid status 12[0m
[0;31mE (22190) BLE_MESH: Failed to set adv data[0m
[0;31mE (22190) BLE_MESH: Start advertising failed: err -1[0m
[0;33mW (22200) BLE_MESH: Failed to send adv packet[0m
原工程基于Eclipse ESP-IDF Tool插件提供的ESP BLE Mesh Node demo修改。
原工程在ESP32上运行良好。
使用ESP-IDF V4.3.1版本编译,开发环境使用Eclipse;
操作系统为win10 21H1
Attachments
ESPC3_mesh_Node.zip
编译后的elf与bin文件。
(5.33 MiB) Downloaded 420 times

ESP_@In逍遥子
Posts: 132
Joined: Thu Nov 15, 2018 2:06 am

Re: BLE-Mesh的ESP32C3项目运行时报错

Postby ESP_@In逍遥子 » Fri Nov 19, 2021 12:45 pm

请提供一份 sdkconfig 文件,检查下配置。

这个问题出现的概率是多少。能提供一个复现方法或者复现工程源码?

另外,可以测试下 example 中的 ble mesh 示例是否可以正常运行。

qiuyonggang
Posts: 11
Joined: Tue Feb 07, 2023 6:26 am

Re: BLE-Mesh的ESP32C3项目运行时报错

Postby qiuyonggang » Tue Feb 07, 2023 8:16 am

请问这个问题最后解决了么?我在运行演示relay的例子时也遇到了同样的问题(https://github.com/ankit-thealchemist/O ... with_relay),同样的几块ESP32C3开发板运行\ble_mesh_node\onoff_server例子是正常的。运行relay时部分打样信息如下,完整的日志和sdkconfig文件请参考附件:
D (6369) BLE_MESH: type 2 len 23: 00dddddc547560df6a0000000000000000000000000000
D (6379) BLE_MESH: count 3 interval 20ms duration 90ms
E (6389) BLE_MESH: set_adv_data, Invalid status 12
E (6389) BLE_MESH: Failed to set adv data
E (6399) BLE_MESH: Start advertising failed: err -1
W (6399) BLE_MESH: Failed to send adv packet
E (6399) BT_HCI: CC evt: op=0x2008, status=0xc
D (6409) BLE_MESH: Mesh Proxy Advertising start
Attachments
relay.rar
(15.74 KiB) Downloaded 461 times

qiuyonggang
Posts: 11
Joined: Tue Feb 07, 2023 6:26 am

Re: BLE-Mesh的ESP32C3项目运行时报错

Postby qiuyonggang » Tue Feb 07, 2023 8:18 am

请问这个问题最后解决了么?我在运行演示relay的例子时也遇到了同样的问题(https://github.com/ankit-thealchemist/O ... with_relay),同样的几块ESP32C3开发板运行\ble_mesh_node\onoff_server例子是正常的。运行relay时部分打样信息如下,完整的日志和sdkconfig文件请参考附件:
D (6369) BLE_MESH: type 2 len 23: 00dddddc547560df6a0000000000000000000000000000
D (6379) BLE_MESH: count 3 interval 20ms duration 90ms
E (6389) BLE_MESH: set_adv_data, Invalid status 12
E (6389) BLE_MESH: Failed to set adv data
E (6399) BLE_MESH: Start advertising failed: err -1
W (6399) BLE_MESH: Failed to send adv packet
E (6399) BT_HCI: CC evt: op=0x2008, status=0xc
D (6409) BLE_MESH: Mesh Proxy Advertising start
Attachments
relay.rar
(15.74 KiB) Downloaded 459 times

qiuyonggang
Posts: 11
Joined: Tue Feb 07, 2023 6:26 am

Re: BLE-Mesh的ESP32C3项目运行时报错

Postby qiuyonggang » Thu Feb 16, 2023 3:34 am

经过sdkconfig的多次设置参数比较,终于发现做出下面的配置的时候,上述错误消失了,底层的原因是啥不清楚,供大家参考:
CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y

Who is online

Users browsing this forum: No registered users and 154 guests