版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
藍(lán)牙應(yīng)用狀態(tài)介 應(yīng)用編程接口 DisconnectHFPfromHandset AnswerCall RejectCall EndCall Redial Mute/UnmuteMIC DialOneCall SendDTMF QueryHFPStatus Reset y/PauseMusic StopMusic ForwardMusic BackwardMusic QueryAutoAnswerandPowerOnAutoConnectionConfiguration EnablePowerOnAutoConnection DisablePowerOnAutoConnection ConnecttoAV ChangeLocalDeviceNameCasually ChangeLocalDevicePinCode EnableAutoAnswer StartFastForward StartRewind StopFastForward/Rewind QueryA2DPStatus mand) ReadNextOnePhonebookItem ReadPreviousOnePhonebookItem mand) mand) GetRecentDialedCallHistory(recordbymodule) GetRecentReceivedCallHistory(recordbymodule) GetRecentMissedCallHistory(recordbymodule) DialLastReceivedPhoneNumber ClearCallHistory(recordbymodule) setclockdebugmode EnterTestMode SettoFixedFrequency StartInquiry 用戶(hù)可以通過(guò)串口和BLK-MD-SPK-A 進(jìn)行通信,實(shí)現(xiàn)藍(lán)牙耳機(jī)/免提和立體聲耳機(jī)功能。主控(MCU)通過(guò)串口發(fā)送簡(jiǎn)單的AT命令即可實(shí)現(xiàn)。串口使用Tx,Rx兩根信號(hào)線(xiàn), 460800和921600bps。串口缺省波特率為9600bps。HFP Ready beOutgoingingOngoingA2DP Ready be AVRCP Ready be separatedby Example:HFPStatus =3 meansHFPmaybein Connectedor .CMDisbasiccommandspisSub-ParameterINDisbasicspisSub-Parameter,,willbeSub-ParameterthatmaybeResponse ConnecthshfDisconnecthshfvoicecallCancel toggleDeletepair,enter. senddtmfQuerystatusQuery connecttoavdisconnectfromavchange changeQueryavrcp startStartstopQuerya2dp pb pb Read pbRead pb pb pb pb pb GetlocallastdialedGetlocallastreceivedGetlocallastMissedDiallastreceivedIC,IP<len>,ClearLocalcallsetclockdebugdecreaseentertestsetinquiryincrease1設(shè)置配對(duì),可以被對(duì)方發(fā)現(xiàn),命令 /*discoverablefor2返回 /*HSHFenterpairingstateindication*/如果2mins /*HSHFexitspairingmodeandenterslisteningstate此時(shí)設(shè)備不能夠被發(fā)現(xiàn),如果需要被查找,重復(fù)第2退出配對(duì),不可以被對(duì)方發(fā)現(xiàn),命令 /*exitpairingmode,non-discoverable返回 /*HSHFexitspairingmodeandenterslisteningstate2連接過(guò)程被連接首先要設(shè)置成可被查找(pairing)模式,詳 步 遠(yuǎn)端設(shè)備開(kāi)始連接HSHF,首先出現(xiàn)要求本地輸入PIN碼的請(qǐng)求,發(fā)送PIN碼給對(duì)方, /*HSHFStateIsConnectedindication3主動(dòng)去連接最后一次連接的設(shè)備 /*ConnecttoremoteDevice收到遠(yuǎn)端設(shè)備回復(fù),要求本地輸入碼:Pin碼要求請(qǐng)參考最后,收到HSHF的狀態(tài)通知 /*HSHFStateIsConnectedindication /*HSHFexitspairingmodeandenterslisteningstate4斷開(kāi)連接 需要發(fā)送命令 /*ACLDisconnectfromRemote會(huì)收到狀態(tài)通知 /*HSHFStateIsListening對(duì)方斷開(kāi)連接,會(huì)收到狀態(tài)通知 /*HSHFStateIsListening /*GettheBTdevicename /*GettheBTdevicepincode /*SettheBTdevicename /*SettheBTdevicepincode返回:Note:XX為BT的名字,YY為Pin碼。XX長(zhǎng)度不超過(guò)31,YY長(zhǎng)度不超過(guò) /*收到來(lái)電號(hào)碼02150270176 /*Call-setupstatusisidle /*ongoingcallindication接通后可以主動(dòng)掛 :AT#CG /*hand-upindication /*hand-upindication*/返回 /*Call-setupstatusisoutgoing撥 10086,命令:返回 /*Call-setupstatusisoutgoing /*Outgoingcallnumberlengthindication*/ /*Outgoingcallnumberindication*/發(fā)送1,命令:返回 /*sendDTMFsuccessfullyindication*/Note:發(fā)送的參數(shù)支持(0-9,#,*,A-D)當(dāng)聲音在HSHF側(cè)的時(shí)候, /*ThevoiceisonBluetoothindication /*Thevoiceisonphone /*Thevoicedialstart /*Thevoicedialisnotsupported /*ThevoicedialisstoppedSyncPhoneBookbySIMSyncPhoneBookbyPhoneSyncPhoneBookbyDialedcallSyncPhoneBookbyReceivedcallSyncPhoneBookbymissedcallSyncPhoneBookbylastcall /*Thephonedoesnotsupportthephonebookfeature /*ThephonesupportsthephonebookfeatureReadNextPBitemReadpreviousPBitem /*ThenextorpreviousPBnumberlengthindication /*ThenextorpreviousPBnumber注:此處以號(hào)碼“10086”為例,XX為“5”,YY為“10086” /*TheHSHFapplicationsstateisX注:X為返回消息的參數(shù),1–“Ready”,2–“Connecting”,3–“Connected”,4–“outgoingcall”,5–“ ingcall”,6–“ongoingcall”。 /*XandYareauto andautoconnectafterpoweronsuprtp”Y為開(kāi)機(jī)自動(dòng)連接返回消息的參數(shù),1supportautoconnectafterpoweron”,0 /*setsuccessfully /*setsuccessfullyATEnterPairingModeEnterPairingModeThiscommandputsthemoduleinthepairingmode.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.Enterpairingmodeindicationorfailureindicationwillbesenttothehost.ThiscommandwillcauseadisconnectionifmodulehasalreadyconnectedwithsomeModulewillexitpairingmodeifconnectionnothappenin2minutes.Syntax:AT#CACancelPairingModeExitPairingModeIfthemoduleisinpairingmode,thiscommandcausesthemoduletoexitthepairingmodeandentertheidlemode.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.ConnectHFPtoHandsetHFPStatus=Note:YoucangetcurrentHFPstatusby#CY.Thiscommandcausesthemoduletoconnecttoapairedhandset.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.ConnectIndicationwillbesenttothehostaftertheconnectionisestablished.OtherwiseDisconnectIndicationwillbesenttothehost.DisconnectHFPfromHandsetHFPStatus≥Thiscommandcausesthemoduletodisconnectfromtheconnectedhandset.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.DisconnectIndicationwillbesenttothehostaftertheconnectionisdropped.Syntax:AT#CD.AnswerCallHFPStatus=PickupThiscommandcausesthemoduletoansweran ingcall.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.RejectCallHFPStatus=Thiscommandcausesthemoduletorejectan ingcall.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.EndCallHFPStatus=5|Thiscommandcausesthemoduletoendanactivecall.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.RedialHFPStatus=3|Thiscommandcausesthemoduletoredialthelastnumbercalledinthephone.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.VoiceDialHFPStatus=VoiceDialStartIndicationThiscommandcausesthemoduletoactivevoicedialfunctionaryinthephone.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.Note:Voicedialingnotworksinsomehandsetwhile.Syntax:AT#CICancelVoiceDialHFPStatus=Thiscommandcausesthemoduletocancelongoingvoicedialinthephone.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.Mute/UnmuteMICHFPStatus=ThiscommandcausesthemoduletomuteorunmutetheMIC.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.TransferCallto/fromHandsetHFPStatus=6(withoutThiscommandcausesthemoduletotransfertheactivecallfromthemoduletothehandset(MDwillreceived)orfromthehandsettothemodule(MCwillreceived).TheinformationresponseandcauseswillindicatethecommandsuccessorDialOneCallHFPStatus=OutgoingCallIndicationLengthofPhoneCurrentCallThiscommandcausesthemoduletodialonecall.TheinformationresponseandcauseswillindicatethecommandsuccessorNote:IP,IRindicationsonlysupportedbyHFP1.5version.Syntax:AT#CWSendDTMFHFPStatus=ThiscommandcausesthemoduletosendoneDTMF.TheinformationresponseandcauseswillindicatetheQueryHFPStatusThiscommandqueriesthemodule’sHFPcurrentstatus.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.ResetPowerONInitCompleteReportThiscommandcausesthemoduletoreset.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.Syntax:AT#CZy/PauseMusicA2DPState=AVyIndicationIfthemoduleisconnectedwithaAVSource,thiscommandcausestheAVsourcetoy/pausemusic.Ifmoduleisn’tconnectedAVsource,thiscommandwillcausemoduletrytoconnectedcurrentconnected’sAVsource.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.StopMusicA2DPState=IfthemoduleisconnectedwithaAVSource,thiscommandcausestheAVSourcetoStopMusic.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.ForwardMusicA2DPState= ynextsong.Theresponseandcauseswillindicatethecommandsuccessorfailure.Syntax:AT#MDBackwardMusicA2DPState=IfthemoduleisconnectedwithaAVSource,thiscommandcausestheAVSourcetoylastsong.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.QueryAutoAnswerandPowerOnAutoConnectionConfigurationConnectionConfigurationThiscommandqueriesthemodule’sautoanswerconfigurationandpoweronautoconnectconfiguration.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure<a>:autoanswerconfiguration,where0:disable,1:<b>:poweronautoconfiguration,where0:disable,1:EnablePowerOnAutoConnectionThiscommandenablesthemoduletoconnecttothelastusedAGafterPowerOn.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.DisablePowerOnAutoConnectionThiscommanddisablesthemoduletoconnecttotheLastusedAGafterPowerOn.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.ConnecttoAVSourceA2DPState=AVyIndicationinformationresponseandcauseswillindicatethecommandsuccessorfailure.Note:MusicwillbeyedautomaticafterA2DPconnectedinsomehandset.Syntax:AT#MIDisconnectfromAVSourceA2DPStatus≥Thismodulecausesthemoduletodisconnectfromtheconnectedphone’sAVsource.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.ChangeLocalDeviceNameCasually[newThiscommandcausesthemoduletochangethedevicename.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.※Ifnewnameisempty,themodulewillreportcurrentlocaldevicename.AT#MMMyCarKit\r\n:thenewnameis“MyCarKit”AT#MM\r\n:indicationwillbeMM<currentname>ChangeLocalDevicePinCode[newReportcurrentlocaldevicePinThiscommandcausesthemoduletochangethedevicepincode.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.※Ifnewpinisempty,themodulewillreportcurrentlocalpincode.Thiscommandqueriesthemodule’sAVRCPcurrentstatus.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.CodeStatusReady(tobeEnableAutoAnswerThiscommandenablesthemoduleautoansweran ingcall.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.DisableAutoAnswerThiscommanddisablesthemoduleautoansweran ingcall.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.StartFastForwardA2DPStatus=IfthemoduleisconnectedwithaAVSource,thiscommandcausestheAVSourcetostartfastforward.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.StartRewindA2DPStatus=IfthemoduleisconnectedwithaAVSource,thiscommandcausestheAVSourcetostartrewind.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.StopFastForward/RewindA2DPStatus=5(afterstartedFastIfthemoduleisconnectedwithaAVSource,thiscommandcausestheAVSourcetostopfastforwardorrewind.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.QueryA2DPStatusThiscommandqueriesthemodule’sA2DPcurrentstatus.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.QueryModuleSoftwareVersionThiscommandqueriesthemodule’ssoftwareversion.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.SynchronizePhonebookStoredbySIM(viaATCommand)HFPStatus=CommandNotSupportedThiscommandcausesthemoduletosynchronizethephonebookwhichisstoredbySIM.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.SynchronizePhonebookStoredbyPhone(viaATCommand)HFPStatus=CommandNotSupportedThiscommandcausesthemoduletosynchronizethephonebookwhichisstoredbyphone.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.ReadNextOnePhonebookItemHFPStatus=LengthofPhoneNumberThiscommandcausesthemoduletoreadnextonephonebookitemfromphoneorlocal.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.ReadPreviousOnePhonebookItemHFPStatus=LengthofPhoneNumberThiscommandcausesthemoduletoreadpreviousonephonebookitemfromphoneorlocal.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.SynchronizeDialedCallsList(viaATCommand)HFPStatus=CommandNotSupportedThiscommandcausesthemoduletosynchronizethedialedcallslist.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.SynchronizeReceivedCallsList(viaATCommand)HFPStatus=CommandNotSupportedThiscommandcausesthemoduletosynchronizethereceivedcallslist.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.SynchronizeMissedCallsList(viaATCommand)HFPStatus=CommandNotSupportedThiscommandcausesthemoduletosynchronizethemissedcallslist.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.SynchronizeLastCallList(viaATCommand)HFPStatus=CommandNotSupportedThiscommandcausesthemoduletosynchronizethelastcalllist.Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.GetRecentDialedCallHistory(recordbymodule)LengthofPhoneNumberIndicationOnePhonebookIndicationThiscommandcausesthemoduletoreadoneofrecentlydialedcallnumber(recordbymodule).Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.GetRecentReceivedCallHistory(recordbymodule)LengthofPhoneNumberIndicationOnePhonebookIndicationThiscommandcausesthemoduletoreadoneofrecentlyreceivedcallnumber(recordbymodule).Theinformationresponseandcauseswillindicatethecommandsuccessorfailure.GetRecentMissedCa
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 房地產(chǎn)行業(yè)財(cái)務(wù)總結(jié)
- 資本運(yùn)作的可行性分析計(jì)劃
- 《創(chuàng)新與設(shè)計(jì)》課件
- 2021年貴州省黔南自治州公開(kāi)招聘警務(wù)輔助人員輔警筆試自考題2卷含答案
- 2024年甘肅省武威市公開(kāi)招聘警務(wù)輔助人員輔警筆試自考題2卷含答案
- 2022年湖南省郴州市公開(kāi)招聘警務(wù)輔助人員輔警筆試自考題1卷含答案
- 2023年江蘇省連云港市公開(kāi)招聘警務(wù)輔助人員輔警筆試自考題1卷含答案
- 2024年黑龍江省大慶市公開(kāi)招聘警務(wù)輔助人員輔警筆試自考題1卷含答案
- 寒假活動(dòng)計(jì)劃
- 會(huì)總部領(lǐng)導(dǎo)發(fā)言稿
- 江蘇省南通市2024屆高三上學(xué)期第一次調(diào)研測(cè)試(一模)生物 含答案
- 2024年四川省內(nèi)江市中考?xì)v史試卷
- 2024員工心理健康培訓(xùn)
- 國(guó)網(wǎng)安全責(zé)任清單培訓(xùn)
- 南京大學(xué)碩士論文模板
- 少兒春晚合同模板
- 醫(yī)用機(jī)械外骨骼產(chǎn)品供應(yīng)鏈分析
- 2024年氫工藝作業(yè)考試題庫(kù)及答案(700題)
- 海洋工程裝備的修理與維護(hù)
- 廣西柳州鐵一中、南寧三中 2025屆高一數(shù)學(xué)第一學(xué)期期末統(tǒng)考試題含解析
- 2024年高等教育教育類(lèi)自考-03372團(tuán)體心理咨詢(xún)考試近5年真題集錦(頻考類(lèi)試題)帶答案
評(píng)論
0/150
提交評(píng)論