- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I tested the A2DP sink function using "snip.bt.a2dp_sink" in WICED-Studio-6.4. Program to CYBT-343026-02 , connect the I2S output according to the A2DP Sink Example on CYW20706 - Cypress Developer Community.
I use the phone to connect CYBT-343026-02 by bluetooth ,and then play music. It seemed that The CYBT-343026-02 can't receive audio stream. I also get the log, could you help to check it?
[14:06:04.351]收←◆a2dp_sink_management_callback 0x09
a2dp_sink_management_callback 0x08
Pairing Capabilities Request, bda 64 03 7f 06 05 32
[14:06:04.661]收←◆a2dp_sink_management_callback 0x04
[14:06:06.102]收←◆a2dp_sink_management_callback 0x0b
Pairing complete 0
a2dp_sink_management_callback 0x12
[14:06:06.147]收←◆NVRAM ID:1 written :138 bytes result:0
[14:06:06.330]收←◆a2dp_sink_management_callback 0x0c
Encryption Status Event: bd ( 64 03 7f 06 05 32 ) res 0
wiced_bt_a2dp_sink_conn_cback: event:16
wiced_bt_a2dp_sink_conn_cback: CONN_IND is ACP:1
wiced_bt_a2dp_sink_conn_cback
bd_addr:64-03-7f-06-05-32
wiced_bt_a2dp_sink_sig_change event: 16 bd_addr:64-03-7f-06-05-32
Incoming L2CAP acquired, set state as sig open
wiced_bt_a2dp_sink_get_ccb_by_bd_addr: cannot find ccb
wiced_bt_a2dp_sink_alloc_ccb: ccb_handle:0
wiced_bt_a2dp_sink_ssm_execute: current-state=INIT event=AVDT_CONNECT next-state=SIG_OPEN
wiced_bt_a2dp_sink_sig_opened ccb avdt_handle = 0
wiced_bt_a2dp_sink_ctrl_cback: avdt_handle: 1 event=0x4
wiced_bt_a2dp_sink_proc_stream_evt event:4, p_data:u
bd_addr:64-03-7f-06-05-32
wiced_bt_a2dp_sink_get_ccb_by_bd_addr idx:0
wiced_bt_a2dp_sink_ssm_execute: current-state=SIG_OPEN event=STR_CONFIG_IND next-state=INCOMING
wiced_bt_a2dp_sink_config_ind handle = 1
wiced_bt_a2dp_sink_save_addr: recfg_sup:1, suspend_sup:1
reset flags
wiced_bt_a2dp_sink_config_ind: SEID: 4 handle = 0x1
wiced_bt_a2dp_sink_cfg_setcfg_ind_handler
wiced_bt_a2dp_sink_cfg_setcfg_ind_handler status:0
wiced_bt_a2dp_sink_cfg_setconfig_rsp
wiced_bt_a2dp_sink_get_ccb_by_bd_addr idx:0
wiced_bt_a2dp_sink_ssm_execute: current-state=INCOMING event=STR_CONFIG_RSP_OK next-state=INCOMING
wiced_bt_a2dp_sink_setconfig_rsp: cur_psc_mask:0x102
wiced_bt_a2dp_sink_setconfig_rsp: avdt_version:0x0000
[a2dp_sink_control_cback] Event: (5) WICED_BT_A2DP_SINK_CODEC_CONFIG_EVT state: (0) AV_STATE_IDLE
a2dp sink codec configuration done
wiced_bt_a2dp_sink_ctrl_cback: avdt_handle: 1 event=0x15
wiced_bt_a2dp_sink_proc_stream_evt event:21, p_data:u
bd_addr:64-03-7f-06-05-32
wiced_bt_a2dp_sink_ctrl_cback: avdt_handle: 1 event=0x3
wiced_bt_a2dp_sink_proc_stream_evt event:3, p_data:u
bd_addr:64-03-7f-06-05-32
wiced_bt_a2dp_sink_get_ccb_by_bd_addr idx:0
wiced_bt_a2dp_sink_ssm_execute: current-state=INCOMING event=STR_OPEN_OK next-state=OPEN
wiced_bt_a2dp_sink_str_opened: l2c_cid:68 mtu:993
wiced_bt_a2dp_sink_conn_cback: event:16
wiced_bt_a2dp_sink_conn_cback: CONN_IND is ACP:0
wiced_bt_a2dp_sink_conn_cback
bd_addr:64-03-7f-06-05-32
wiced_bt_a2dp_sink_sig_change event: 16 bd_addr:64-03-7f-06-05-32
[a2dp_sink_control_cback] Event: (0) WICED_BT_A2DP_SINK_CONNECT_EVT state: (1) AV_STATE_CONFIGURED
[a2dp_sink_control_cback] connected to addr: <64 03 7f 06 05 32 > Handle:1
a2dp sink connected
[14:06:13.569]收←◆a2dp_sink_management_callback 0x02
Power mgmt status event: bd ( 64 03 7f 06 05 32 ) status:2 hci_status:0
[14:06:40.871]收←◆wiced_bt_a2dp_sink_ctrl_cback: avdt_handle: 1 event=0x6
wiced_bt_a2dp_sink_proc_stream_evt event:6, p_data:u
bd_addr:64-03-7f-06-05-32
wiced_bt_a2dp_sink_get_ccb_by_bd_addr idx:0
wiced_bt_a2dp_sink_ssm_execute: current-state=OPEN event=STR_START_IND next-state=OPEN
wiced_bt_a2dp_sink_start_ind
[a2dp_sink_control_cback] Event: (2) WICED_BT_A2DP_SINK_START
[14:06:40.926]收←◆_IND_EVT state: (2) AV_STATE_CONNECTED
a2dp sink start indication from Peer @handle: 1, 5
wiced_bt_a2dp_sink_get_ccb_by_bd_handle idx:0
wiced_bt_a2dp_sink_ssm_execute: current-state=OPEN event=unknown next-state=OPEN
wiced_bt_a2dp_sink_send_start_resp
wiced_bt_a2dp_sink_stream_chg: started:1
wiced_bt_a2dp_sink_streaming_configure_route
wiced_bt_a2dp_sink_streaming_configure_route result:0
wiced_bt_avdt_start_resp result=0
a2dp sink streaming started
a2dp_sink_management_callback 0x02
Power mgmt status event: bd ( 64 03 7f 06 05 32 ) status:0 hci_status:0
Solved! Go to Solution.
- Tags:
- a2dp_sink
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I don't see any evident issue with the logs. When, i tested the A2DP sink app from the latest Modustoolbox with CYW920706WCDEVAL board, I can see the streaming data when I connected a logic analyzer on the I2S DO pin. Have you tested it?
The raw data is routed to I2S interface.
Thanks,
-Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I don't see any evident issue with the logs. When, i tested the A2DP sink app from the latest Modustoolbox with CYW920706WCDEVAL board, I can see the streaming data when I connected a logic analyzer on the I2S DO pin. Have you tested it?
The raw data is routed to I2S interface.
Thanks,
-Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your reply. I have test the A2DP Sink Example by oscilloscope. It really has the streaming data on screen. I check the CYBT-343026-02 setting , it is the SW5 issue. It now works well .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I also have another question , the hardware environment is the same as the upper A2DP Sink Example. But when I test snip.bt.hci_handsfree example , I connect the CYBT-343026-02 with the phone and make a call . There is no voice from the microphone, could you help to check the issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you please let us know the test steps which you have followed?