Bluetooth技术学习笔记 ——HFP之AT命令

unsolicited result code,主动上报的结果码。以下简称URC。
1. HFP AT命令准则

HFP AT命令应遵守如下准则:

  • 一个命令行,只能有一个AT命令,或者URC。
  • 默认情况下,AG不echo命令字符。
  • AG使用冗余格式发送结果码。
  • <cr>相当于回车,carriage return;<lf>相当于换行,line feed。
  • HF——>AG AT命令格式:<AT command><cr>。
  • AG——>HF OK码格式:<cr><lf>OK<cr><lf>。
  • AG——>HF ERROR码格式:<cr><lf>ERROR<cr><lf>。
  • AG——>HF URC码格式:<cr><lf><result code><cr><lf>。
     
2. HFP AT命令

HFP AT命令和URC复用GSM 07.07和3GPP 27.007的AT命令和URC。

(1) AT+CIND,Standard indicator update AT command。

  • AT+CIND=? :test command,HF用于获取AG所支持指示器,以及索引值范围。在发送指示器其它相关命令前,至少要发送一次该命令。
    在这里插入图片描述
  • 指示器对应值的含义:
    在这里插入图片描述
  • AT+CIND? :read command,HF用于获取AG指示器的状态。
    在这里插入图片描述

(2)AT+COPS

  • AT+COPS?,用于获取网络运营商的名字。
  • +COPS:<mode>,<format>,<operator>,AG用于响应AT+COPS?命令。

(3)AT+CLIP,Standard “Calling Line Identification notification” activation AT command,用于使能或去使能 URC +CLIP。
在这里插入图片描述
(4)+CLIP,Standard “Calling Line Identification notification” URC。

  • 格式:+CLIP: <number>, <type>
    在这里插入图片描述

(5)AT+CMER,Standard event reporting activation/deactivation AT command。HFP只支持两种:

  • AT+CMER=3,0,0,1,activates “indicator events reporting”。
    在这里插入图片描述
  • AT+CMER=3,0,0,0 ,deactivates “indicator events reporting”

(6)+CIEV,Standard “indicator events reporting” URC。

  • 格式: +CIEV: <ind>,<value>。
  • <ind>:指示器索引,与AT+CIND=?的响应结果相对应,第一个indicator,其值为1.
  • <value>:指示器的状态。
    在这里插入图片描述

(7)AT+CHLD, Standard call hold and multiparty handling AT command.

  • 格式:AT+CHLD=<n>
  • 说明:
    在这里插入图片描述

    -

(8)其它
在这里插入图片描述

发布了103 篇原创文章 · 获赞 41 · 访问量 8万+

猜你喜欢

转载自blog.csdn.net/u012800825/article/details/103921404
今日推荐