Other Parts Discussed in Thread: CC2564C
你(们)好
我遇到这样的情况、即 A2DP 音乐卡住了一些未知原因。
您能找到一些解决此类问题的方法吗?
从 HCI 日志中删除帧16134后、音频将被卡住、无法恢复。
谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Jonathan、
另一个要尝试的操作是将 ACL 流设置为保证,并具有高于扫描的优先级。 下面是一个代码片段、它在我们的堆栈中工作以实现这一目的-
/*定义更改蓝牙 ACL 优先级的参数 */* 音频质量更好。 HCI Flow Spec 命令和 DDIP 命令 */ #define HIGH_AUDIO_CONNECT_PRIORITY (1) #define normal_audio_connection_priority (0) #define flow_spec_FLAGS (0) #define FLOAD_SPEC_FLOAD_DIRECTION (0x01) #define FLOAD_SPEC_SERVICE_TYPE_保证(0x02) #define FLOAD_SPEC_SERVICE_TYPE_BESTEFFORT (0x02) #define FLOAD_SPEC_TOKEN_RATE (25000) #define FLOAD_SPEC_TOKEN_COUSE_SIZE (333) #define FLOW_SPEC PEAK 带宽 (25000) #define FLOAD_SPEC_ACCESS_DERATLOW (13000) #define BEST _MUST_HIGH_PRIORITY (50) #define best _c얬 솦_normal_priority (20) #define Ganted_high_priority (90) #define Ganted_normal_priority (70) 静态空 Change_connection_priority (int high_normal、Word_t ConnHandle) { /* HCI 流量规格参数:1 Flags=0x00,1表示 */ //传入=0x01,1保证=0x02,4令牌速率=25000,4令牌 // //*批量大小=333,4峰值带宽=25000,4访问延迟=13000。 // /* 0x00、0x01、0x02、25000、333、 25000、13000 // Byte_t Flags = flow_spec_FLAGS; Byte_t Flow_Direction = flow_spec_flow_Direction; Byte_t Service_Type = flow_spec_service_type_guaranted_; //其余为 A2DP 的默认值。 // Byte_t Token_Rate = flow_spec token_rate; dWORD_t Token_Bucket_size = flow_spec token_bucke_size; dWORD_t Peak = flow_spec 峰值带宽; dWORD_t Access_Latency = flow_spec 访问_延迟;dWORD_StStatusResult ; /*对于 A2DP 流式传输-将 ACL 设置为保证90%至*/ /* ACL over scans priority Send Flow spec 命令 * /*将 ACL 连接设置为保证 * HCI_Flow_Specification (BluetoothStackID、ConnHandle、Flags、Flow_Direction、Service_Type、 TOKEN_RATE、TOKEN_Bucke_size、Peak 带宽、Access_Latency、StatusResult); /*发送供应商 DDIP 命令以更改 ACL 优先级而非扫描*/ /*至90%。 * Vs_Send_DDIP (BluetoothStackID、BEST _MUST_HIGH_PRIORITY、BLEASE_HIGH_PRIORITY); }
你(们)好
感谢您的回复!
从 VS 命令指南网站 https://processors.wiki.ti.com/index.php/CC256x_VS_HCI_Commands中、我找不到这样的 VS 命令(i.e、DDIP 与 commnd)。
这可能是未发布 VS 命令吗?
您能给我详细介绍 VS 命令指南文档吗、然后我可以在我们的项目中使用此命令。
谢谢!