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)其它