ESP32 audio source can't start media and transmit audio
Posted: Tue May 26, 2020 8:16 am
Hi,
I have a problem with connecting with a2dp sink, which is a bluetooth speaker. I modified some code and the media don't want to start. The log shows, that the connection is established but then nothing happens. At the end my connection timeout mechanism gets called and the disconnect request is sent to ESP so it stops attempts to connect.
Here is my log of the situation:
In the meantime I get the message
What does it mean? How can I fix it so it starts the media like it did before?
Thanks for your help!
Piotr
I have a problem with connecting with a2dp sink, which is a bluetooth speaker. I modified some code and the media don't want to start. The log shows, that the connection is established but then nothing happens. At the end my connection timeout mechanism gets called and the disconnect request is sent to ESP so it stops attempts to connect.
Here is my log of the situation:
Code: Select all
[0;32mI (863059) PROTO: Connecting to 58:00:00:00:00:a7[0m
[0;31mE (863059) BT_APPL: reset flags[0m
[0;32mI (863059) PROTO: Got request of code 8...[0m
[0;32mI (863059) BT_AV: bt_app_av_sm_hdlr state 4, evt 0x0[0m
[0;31mE (863059) BT_AV: bt_app_av_state_connecting unhandled 1[0m
[0;32mI (863059) PROTO: Got request of code 255...[0m
[0;32mI (863059) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (864459) PROTO: Got request of code 8...[0m
[0;32mI (864459) PROTO: Got request of code 255...[0m
[0;32mI (864459) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (865659) PROTO: Got request of code 8...[0m
[0;31mE (865659) BT_APPL: bta_av_rc_create ACP handle exist for shdl:0[0m
[0;32mI (865659) PROTO: Got request of code 255...[0m
[0;32mI (865659) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (865659) PROTO: Got request of code 8...[0m
[0;32mI (865659) PROTO: Got request of code 255...[0m
[0;32mI (865659) PROTO: Response of code 8 value 3 sent ...[0m
[0;33mW (865759) BT_APPL: new conn_srvc id:18, app_id:0[0m
[0;32mI (865759) BT_AV: bt_app_av_sm_hdlr state 4, evt 0x0[0m
[0;32mI (865759) BT_AV: a2dp connected[0m
[0;32mI (866759) RCCT: AVRC conn_state evt: state 1, [58:00:00:00:00:a7][0m
[0;32mI (866759) RCCT: AVRC remote features 24b, TG features 2[0m
[0;32mI (866759) RCCT: remote rn_cap: count 1, bitmask 0x2000[0m
[0;32mI (866959) PROTO: Got request of code 8...[0m
[0;32mI (866959) PROTO: Got request of code 255...[0m
[0;32mI (866959) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (868159) PROTO: Got request of code 8...[0m
[0;32mI (868159) PROTO: Got request of code 255...[0m
[0;32mI (868159) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (869459) PROTO: Got request of code 8...[0m
[0;32mI (869459) PROTO: Got request of code 255...[0m
[0;32mI (869459) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (870659) PROTO: Got request of code 8...[0m
[0;32mI (870659) PROTO: Got request of code 255...[0m
[0;32mI (870659) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (870759) PROTO: Got request of code 8...[0m
[0;32mI (870759) PROTO: Got request of code 255...[0m
[0;32mI (870759) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (871059) BT_AUTOCON: Autoconnect failed, s_media_state=0[0m
[0;32mI (871059) BT_AV: bt_app_av_sm_hdlr state 5, evt 0xff00[0m
[0;32mI (871059) BT_AV: a2dp media ready checking ...[0m
[0;33mW (871059) BT_APPL: un-acked a2dp cmd: 3[0m
[0;32mI (871059) BT_AV: bt_app_av_sm_hdlr state 5, evt 0x3[0m
[0;32mI (871959) PROTO: Got request of code 8...[0m
[0;32mI (871959) PROTO: Got request of code 255...[0m
[0;32mI (871959) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (873159) PROTO: Got request of code 8...[0m
[0;32mI (873159) PROTO: Got request of code 255...[0m
[0;32mI (873159) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (874459) PROTO: Got request of code 8...[0m
[0;32mI (874459) PROTO: Got request of code 255...[0m
[0;32mI (874459) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (875659) PROTO: Got request of code 8...[0m
[0;32mI (875659) PROTO: Got request of code 255...[0m
[0;32mI (875659) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (875759) PROTO: Got request of code 8...[0m
[0;32mI (875759) PROTO: Got request of code 255...[0m
[0;32mI (875759) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (876859) PROTO: Got request of code 8...[0m
[0;32mI (876859) PROTO: Got request of code 255...[0m
[0;32mI (876859) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (878159) PROTO: Got request of code 8...[0m
[0;32mI (878159) PROTO: Got request of code 255...[0m
[0;32mI (878159) PROTO: Response of code 8 value 3 sent ...[0m
Przyszlo 86 ramek
[0;32mI (879359) PROTO: Got request of code 8...[0m
[0;32mI (879459) PROTO: Got request of code 255...[0m
[0;32mI (879459) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (880659) PROTO: Got request of code 8...[0m
[0;32mI (880659) PROTO: Got request of code 255...[0m
[0;32mI (880659) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (880859) PROTO: Got request of code 8...[0m
[0;32mI (880959) PROTO: Got request of code 255...[0m
[0;32mI (880959) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (881059) BT_AV: bt_app_av_sm_hdlr state 5, evt 0xff00[0m
[0;32mI (881059) BT_AV: a2dp media ready checking ...[0m
[0;33mW (881059) BT_APPL: un-acked a2dp cmd: 3[0m
[0;32mI (881059) BT_AV: bt_app_av_sm_hdlr state 5, evt 0x3[0m
[0;32mI (881959) PROTO: Got request of code 8...[0m
[0;32mI (881959) PROTO: Got request of code 255...[0m
[0;32mI (881959) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (883159) PROTO: Got request of code 8...[0m
[0;32mI (883159) PROTO: Got request of code 255...[0m
[0;32mI (883159) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (884359) PROTO: Got request of code 8...[0m
[0;32mI (884459) PROTO: Got request of code 255...[0m
[0;32mI (884459) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (885659) PROTO: Got request of code 8...[0m
[0;32mI (885659) PROTO: Got request of code 255...[0m
[0;32mI (885659) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (885959) PROTO: Got request of code 8...[0m
[0;32mI (886059) BT_AUTOCON: Autoconnect failed, s_media_state=0[0m
[0;32mI (886059) PROTO: Got request of code 255...[0m
[0;32mI (886059) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (886859) PROTO: Got request of code 8...[0m
[0;32mI (886859) PROTO: Got request of code 255...[0m
[0;32mI (886859) PROTO: Response of code 8 value 3 sent ...[0m
[0;32mI (888159) PROTO: Got request of code 13...[0m
[0;32mI (888159) PROTO: Disconnect requested[0m
[0;32mI (888159) BT_AV: bt_app_av_sm_hdlr state 6, evt 0x0[0m
[0;33mW (888159) BT_APPL: un-acked a2dp cmd: 3[0m
[0;32mI (888159) BT_AV: bt_app_av_sm_hdlr state 6, evt 0x3[0m
[0;33mW (889459) BT_AVCT: avct_lcb_last_ccb[0m
[0;33mW (889459) BT_AVCT: 0: aloc:1, lcb:0x3ffd7118/0x3ffd7118, ccb:0x3ffd7180/
0x3ffd7180[0m
[0;33mW (889459) BT_AVCT: 1: aloc:0, lcb:0x0/0x3ffd7118, ccb:0x3ffd7198/0x3ffd7
180[0m
[0;33mW (889459) BT_AVCT: 2: aloc:0, lcb:0x0/0x3ffd7118, ccb:0x3ffd71b0/0x3ffd7
180[0m
[0;32mI (889459) RCCT: AVRC conn_state evt: state 0, [00:00:00:00:00:00][0m
[0;32mI (889459) BT_AV: bt_app_av_sm_hdlr state 6, evt 0x0[0m
[0;32mI (889459) BT_AV: a2dp disconnected[0m
Code: Select all
BT_AV: a2dp media ready checking ...[0m
BT_APPL: un-acked a2dp cmd: 3[0m
Thanks for your help!
Piotr