CSR8670 关于HFP协议的问题
我想问一下大神们,运行sink实例,CSR在和手机蓝牙连接时,有来电进入,CSR设备怎么知道来电的电话号或者人名 caller number啊我在程序中打断点,然后用其他的电话给我的连接CSR的手机打电话,按理说应该进入断点的,不知道为什么没有进入啊
打断点的程序:
case HFP_CALLER_ID_IND:
{
HFP_CALLER_ID_IND_T *ind = (HFP_CALLER_ID_IND_T *) message;
/* ensure this is not a HSP profile */
MAIN_DEBUG(("HFP_CALLER_ID_IND number %s", ind->caller_info + ind->offset_number));
MAIN_DEBUG((" name %s\n", ind->caller_info + ind->offset_name));
/* Show name or number on display */
if (ind->size_name)
displayShowSimpleText((char *) ind->caller_info + ind->offset_name, 1);
else
displayShowSimpleText((char *) ind->caller_info + ind->offset_number, 1);
/* Attempt to play caller name */
if(!AudioPromptPlayCallerName (ind->size_name, ind->caller_info + ind->offset_name))
{
/* Caller name not present or not supported, try to play number */
AudioPromptPlayCallerNumber(ind->size_number, ind->caller_info + ind->offset_number) ;
}
}
打开caller 位域 和display或者语音插件
stardream 发表于 2016-11-3 12:37
打开caller 位域 和display或者语音插件
caller位域怎么打开啊 是在configuration里的吗 那个我已经打开了啊
配置工具HFP ->CSR SUPPORTED Features-> caller name打勾?
以及代码里宏定义ENABLE_DISPLAY?
xiayelianqu 发表于 2016-11-3 13:58
配置工具HFP ->CSR SUPPORTED Features-> caller name打勾?
以及代码里宏定义ENABLE_DISPLAY?
都改了 还是不行 您是用过这个功能吗 我这边是不好用 ,还有
theSink.conf3->gEventATCommands.at_cmd,at命令怎么配置啊 我看HFP如果要caller number 需要用at命令来控制 您知道吗
页:
[1]