QCC300x笔记(7) -- Three Way Call和音乐播放Element Attributes

哈喽大家好,这是该系列博文的第七篇~ 篇~



<<【系列博文索引】快速通道 >>

写在前面:验证QCC3007连接手机时,需要验证TWC和ID3事件;

一、HFP TWC功能

实现HFP中的三路通话,需要设备发送指令:AT+CHLD给手机,进行信息交互;

        

        我们采用的方式是通过串口发送指令,然后QCC3007转化后发给手机:

AT+B COMM op,index
AT+B COMM 0,0         Releases all held calls
AT+B COMM 1,1/2         Releases all active calls (if any exist) and accepts the other (held or waiting) call
AT+B COMM 2,0         Places all active calls (if any exist) on hold and accepts the other (held or waiting) call
AT+B COMM 3,0         Adds a held call to the conversation
AT+B COMM 4,0
二、Element Attributes

        音乐常用的Attribute:

曲名:title
歌手:artist
专辑:album
帧数:number
总帧:total number
曲风:genre
时长:time

作曲:composer

AVRCP获取element attributes逻辑:

IntAvrcpConnectCfm() 连接确认,如果是streaming
MessageSend(APP_AVRCP_GET_ELEMENT);
或者SetAvrcpPlayStatus() 如果是playing
MessageSend(APP_AVRCP_GET_ELEMENT);
APP_AVRCP_GET_ELEMENT ——main.c
BtAvrcpRetrieveNowPlayingNoBrowsingRequest(TRUE) TRUE是全部,FALSE是basic
AvrcpGetElementAttributesRequest();
avrcpMetadataStatusCommand() ——发送命令给TG
avrcpSendCommonFragmentedMetadataCfm() ——发送响应给CT
MessageSend(AVRCP_GET_ELEMENT_ATTRIBUTES_CFM)
AVRCP_GET_ELEMENT_ATTRIBUTES_CFM         ——avrcp_msg_handler
IntAvrcpGetElementAttributesCfm()
BtAvrcpDisplayMediaAttributes()

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

文化人Sugar

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值