QCC300x — Three Way Call和音乐播放Element Attributes

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

XX  作       者:ZHS(文化人)

XX  联系方式:文章末尾Chat快问

XX  版权声明:原创文章,欢迎评论和转载~转载时能告诉我一声就最好了

XX  要说的话:作者水平有限,难免有不足之处,恳请指正!

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

写在前面:验证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()

猜你喜欢

转载自blog.csdn.net/zhanghuaishu0/article/details/80323301
way
今日推荐