Code: Select all
wifi_periph_handle = periph_wifi_init(&wifi_cfg);
esp_periph_start(wifi_periph_handle);
bluetooth_service_cfg_t bt_cfg = {
.device_name = "haikan_speaker",
.mode = BLUETOOTH_A2DP_SINK,
};
bluetooth_service_start(&bt_cfg);
esp_periph_handle_t bt_periph = bluetooth_service_create_periph();
esp_periph_start(bt_periph);
手机端可以发现蓝牙设备,但是连接上后马上会断开:
Code: Select all
E (15791) BT_APPL: bta_av_rc_create ACP handle exist for shdl:0
W (16492) BT_APPL: new conn_srvc id:19, app_id:0
I (16493) app_periph: Periph Event received: src_type:100009, source:0x3fff3334 cmd:1, data:0x0, data_len:0
W (24730) BT_AVCT: ccb 0 not allocated
E (24730) BT_APPL: bta_av_rc_create found duplicated handle:0
I (24731) app_periph: Periph Event received: src_type:100009, source:0x3fff3334 cmd:2, data:0x0, data_len:0
Error create power_voltage task
之前有出现过,audio pipeline 启动失败,原因是element task创建失败。同时,会出现内存卡访问错误。
各位大佬,有遇到过相似的问题吗?烦请解惑,不胜感激!