完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
我在使用STM32WBA55G-DK1开发我的BLE Audio应用。我参考了ST提供的BLE_Audio_TMAP_Periopheral示例工程。
目前平板电脑连接我的应用正常,平板可以使能BLE Audio。但是当平板开始播放音乐的时候,BLE Audio协议栈上送的CAP_UNICAST_SERVER_ASE_STATE_EVT事件异常,其状态一开始是ASE_STATE_CODEC_CONFIGURED,然后是ASE_STATE_RELEASING。 作为对比,我使用BLE_Audio_TMAP_Periopheral进行测试,其CAP_UNICAST_SERVER_ASE_STATE_EVT状态是变化规律如下 ASE_STATE_CODEC_CONFIGURED->ASE_STATE_QOS_CONFIGURED->ASE_STATE_ENABLING->ASE_STATE_STREAMING。 是什么导致我的应用ASE状态没能从ASE_STATE_CODEC_CONFIGURED变迁到ASE_STATE_QOS_CONFIGURED? 下面是我的log 1204.392 CAP Event: 0x0d 1204.392 Preferred Server QoS Settings is requested for ASE ID 1 (Type ASE_SINK) 1204.392 Target Latency : TARGET_LATENCY_BALANCED_RELIABILITY 1204.392 Target Phy TARGET_LE_2M_PHY to achieve the Target Latency 1204.393 Codec ID 1204.393 Coding format : AUDIO_CODING_FORMAT_LC3 1204.393 Company id : 0x0000 1204.393 VS codec id : 0x0000 1204.393 Frequency : SAMPLE_FREQ_48000_HZ 1204.393 Frame Duration : FRAME_DURATION_10_MS 1204.393 Octets Per Codec Frame : 155 1204.393 Codec Frame Blocks Per SDU : 1 1204.393 Min Controller Delay in Source role 8336 us 1204.393 Max Controller Delay in Source role 110000 us 1204.393 Min Controller Delay in Sink role 4136 us 1204.393 Max Controller Delay in Sink role 50000 us 1204.393 Calculated SDU Interval : 10000 us 1204.393 num_snk_ases:2 num_src_ases:1 1204.393 ==>> CODEC_ReadLocalSupportedControllerDelay result 0x00 1204.394 ==>> CODEC_ReadLocalSupportedControllerDelay result 0x00 1204.394 Computed Min Controller Delay with 2 Snk ASEs and 1 Src ASEs : 14608 us 1204.394 WARNING : Controller Delay Min ( 14608 us) could be higher than the frame duration (10 ms) 1204.394 Submitted Min Presentation Delay 10010 us 1204.394 Submitted Max Presentation Delay 50010 us 1204.394 ==>> CODEC_ReadLocalSupportedControllerDelay result 0x00 1204.394 ==>> CODEC_ReadLocalSupportedControllerDelay result 0x00 1204.394 ==>> CODEC_ReadLocalSupportedControllerDelay result 0x00 1204.394 CAP Event: 0x0d 1204.395 Preferred Server QoS Settings is requested for ASE ID 2 (Type ASE_SINK) 1204.395 Target Latency : TARGET_LATENCY_BALANCED_RELIABILITY 1204.395 Target Phy TARGET_LE_2M_PHY to achieve the Target Latency 1204.395 Codec ID 1204.395 Coding format : AUDIO_CODING_FORMAT_LC3 1204.395 Company id : 0x0000 1204.396 VS codec id : 0x0000 1204.396 Frequency : SAMPLE_FREQ_48000_HZ 1204.396 Frame Duration : FRAME_DURATION_10_MS 1204.396 Octets Per Codec Frame : 155 1204.396 Codec Frame Blocks Per SDU : 1 1204.396 Min Controller Delay in Source role 8336 us 1204.396 Max Controller Delay in Source role 110000 us 1204.396 Min Controller Delay in Sink role 4136 us 1204.396 Max Controller Delay in Sink role 50000 us 1204.396 Calculated SDU Interval : 10000 us 1204.396 num_snk_ases:2 num_src_ases:1 1204.396 ==>> CODEC_ReadLocalSupportedControllerDelay result 0x00 1204.396 ==>> CODEC_ReadLocalSupportedControllerDelay result 0x00 1204.396 Computed Min Controller Delay with 2 Snk ASEs and 1 Src ASEs : 14608 us 1204.397 WARNING : Controller Delay Min ( 14608 us) could be higher than the frame duration (10 ms) 1204.397 Submitted Min Presentation Delay 10010 us 1204.397 Submitted Max Presentation Delay 50010 us 1204.397 CAP Event: 0x13 1204.397 Preferred Server Configuration for QoS Configuration: 1204.397 Framing:BAP_FRAMING_UNFRAMED 1204.397 Preferred Phy E_2M_PHY_PREFERRED1204.397 PrefRetransmissionNumber:2 1204.397 MaxTransportLatency:5 ms 1204.397 PresentationDelayMin:10010 us 1204.397 PresentationDelayMax:50010 us 1204.398 PrefPresentationDelayMin:10010 us 1204.398 PrefPresentationDelayMax:50010 us 1204.398 Codec specific configuration for the ASE: 1204.398 CodingFormat:AUDIO_CODING_FORMAT_LC3 CompanyID:0x00 VsCodecID:0x00 1204.398 Audio Stream Endpoint State ASE_ID:1 Type:ASE_SINK State:ASE_STATE_CODEC_CONFIGURED 1204.399 CAP Event: 0x13 1204.399 Preferred Server Configuration for QoS Configuration: 1204.399 Framing:BAP_FRAMING_UNFRAMED 1204.399 Preferred Phy E_2M_PHY_PREFERRED1204.399 PrefRetransmissionNumber:2 1204.399 MaxTransportLatency:5 ms 1204.399 PresentationDelayMin:10010 us 1204.399 PresentationDelayMax:50010 us 1204.399 PrefPresentationDelayMin:10010 us 1204.399 PrefPresentationDelayMax:50010 us 1204.399 Codec specific configuration for the ASE: 1204.399 CodingFormat:AUDIO_CODING_FORMAT_LC3 CompanyID:0x00 VsCodecID:0x00 1204.400 Audio Stream Endpoint State ASE_ID:2 Type:ASE_SINK State:ASE_STATE_CODEC_CONFIGURED 1204.630 CAP Event: 0x13 1204.631 Audio Stream Endpoint State ASE_ID:1 Type:ASE_SINK State:ASE_STATE_RELEASING 1204.631 CAP Event: 0x13 1204.631 Audio Stream Endpoint State ASE_ID:1 Type:ASE_SINK State:ASE_STATE_IDLE 1204.631 CAP Event: 0x13 1204.631 Audio Stream Endpoint State ASE_ID:2 Type:ASE_SINK State:ASE_STATE_RELEASING 1204.631 CAP Event: 0x13 1204.631 Audio Stream Endpoint State ASE_ID:2 Type:ASE_SINK State:ASE_STATE_IDLE |
|
相关推荐
1个回答
|
|
|
在BLE Audio应用中, 根本原因分析
解决方案步骤
关键代码参考若示例工程中在 而用户工程可能遗漏了这一步骤,导致协议栈因等待超时而释放ASE。 通过以上步骤,可定位并修复状态机异常问题,确保状态按预期从 CODEC_CONFIGURED → QOS_CONFIGURED → ENABLING 转换。 |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1453 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1502 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3649 浏览 1 评论
3842 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2461 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
661浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
941浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 06:51 , Processed in 0.935681 second(s), Total 76, Slave 58 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
433