你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

BLE Audio CAP_UNICAST_SERVER_ASE_STATE_EVT状态变化异常

[复制链接]
技术宅男250 提问时间:2025-4-15 18:02 / 未解决
我在使用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 PhyE_2M_PHY_PREFERRED
1204.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 PhyE_2M_PHY_PREFERRED
1204.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

收藏 评论0 发布时间:2025-4-15 18:02

举报

0个回答
关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32N6 AI生态系统
STM32MCU,MPU高性能GUI
ST ACEPACK电源模块
意法半导体生物传感器
STM32Cube扩展软件包
关注我们
st-img 微信公众号
st-img 手机版