关于蓝牙连接的问题

ethan_xie
Posts: 4
Joined: Thu Nov 22, 2018 1:27 pm

关于蓝牙连接的问题

Postby ethan_xie » Thu Jun 13, 2019 9:30 am

参照pipeline_bt_sink做了如下初始化:

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);	
同时启动audio相关的pipeline播放音频。

手机端可以发现蓝牙设备,但是连接上后马上会断开:

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
同时,会有task起不来,可能是堆栈被用完了么?
Error create power_voltage task

之前有出现过,audio pipeline 启动失败,原因是element task创建失败。同时,会出现内存卡访问错误。

各位大佬,有遇到过相似的问题吗?烦请解惑,不胜感激!

ethan_xie
Posts: 4
Joined: Thu Nov 22, 2018 1:27 pm

Re: 关于蓝牙连接的问题

Postby ethan_xie » Thu Jun 13, 2019 11:01 am

好像是内存不足了

ethan_xie
Posts: 4
Joined: Thu Nov 22, 2018 1:27 pm

Re: 关于蓝牙连接的问题

Postby ethan_xie » Thu Jun 13, 2019 11:20 am

已解决。

Who is online

Users browsing this forum: No registered users and 56 guests