Page 1 of 1

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

Posted: Mon Nov 15, 2021 7:11 am
by UJSWangx
将基于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

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

Posted: Fri Nov 19, 2021 12:45 pm
by ESP_@In逍遥子
请提供一份 sdkconfig 文件,检查下配置。

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

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

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

Posted: Tue Feb 07, 2023 8:16 am
by qiuyonggang
请问这个问题最后解决了么?我在运行演示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

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

Posted: Tue Feb 07, 2023 8:18 am
by qiuyonggang
请问这个问题最后解决了么?我在运行演示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

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

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