藍牙串口模塊演示版無線通訊rs232數傳5v blk md spk at命令集_第1頁
藍牙串口模塊演示版無線通訊rs232數傳5v blk md spk at命令集_第2頁
藍牙串口模塊演示版無線通訊rs232數傳5v blk md spk at命令集_第3頁
藍牙串口模塊演示版無線通訊rs232數傳5v blk md spk at命令集_第4頁
藍牙串口模塊演示版無線通訊rs232數傳5v blk md spk at命令集_第5頁
已閱讀5頁,還剩17頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

藍牙應用狀態(tài)介 應用編程接口 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 用戶可以通過串口和BLK-MD-SPK-A 進行通信,實現(xiàn)藍牙耳機/免提和立體聲耳機功能。主控(MCU)通過串口發(fā)送簡單的AT命令即可實現(xiàn)。串口使用Tx,Rx兩根信號線, 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設置配對,可以被對方發(fā)現(xiàn),命令 /*discoverablefor2返回 /*HSHFenterpairingstateindication*/如果2mins /*HSHFexitspairingmodeandenterslisteningstate此時設備不能夠被發(fā)現(xiàn),如果需要被查找,重復第2退出配對,不可以被對方發(fā)現(xiàn),命令 /*exitpairingmode,non-discoverable返回 /*HSHFexitspairingmodeandenterslisteningstate2連接過程被連接首先要設置成可被查找(pairing)模式,詳 步 遠端設備開始連接HSHF,首先出現(xiàn)要求本地輸入PIN碼的請求,發(fā)送PIN碼給對方, /*HSHFStateIsConnectedindication3主動去連接最后一次連接的設備 /*ConnecttoremoteDevice收到遠端設備回復,要求本地輸入碼:Pin碼要求請參考最后,收到HSHF的狀態(tài)通知 /*HSHFStateIsConnectedindication /*HSHFexitspairingmodeandenterslisteningstate4斷開連接 需要發(fā)送命令 /*ACLDisconnectfromRemote會收到狀態(tài)通知 /*HSHFStateIsListening對方斷開連接,會收到狀態(tài)通知 /*HSHFStateIsListening /*GettheBTdevicename /*GettheBTdevicepincode /*SettheBTdevicename /*SettheBTdevicepincode返回:Note:XX為BT的名字,YY為Pin碼。XX長度不超過31,YY長度不超過 /*收到來電號碼02150270176 /*Call-setupstatusisidle /*ongoingcallindication接通后可以主動掛 :AT#CG /*hand-upindication /*hand-upindication*/返回 /*Call-setupstatusisoutgoing撥 10086,命令:返回 /*Call-setupstatusisoutgoing /*Outgoingcallnumberlengthindication*/ /*Outgoingcallnumberindication*/發(fā)送1,命令:返回 /*sendDTMFsuccessfullyindication*/Note:發(fā)送的參數支持(0-9,#,*,A-D)當聲音在HSHF側的時候, /*ThevoiceisonBluetoothindication /*Thevoiceisonphone /*Thevoicedialstart /*Thevoicedialisnotsupported /*ThevoicedialisstoppedSyncPhoneBookbySIMSyncPhoneBookbyPhoneSyncPhoneBookbyDialedcallSyncPhoneBookbyReceivedcallSyncPhoneBookbymissedcallSyncPhoneBookbylastcall /*Thephonedoesnotsupportthephonebookfeature /*ThephonesupportsthephonebookfeatureReadNextPBitemReadpreviousPBitem /*ThenextorpreviousPBnumberlengthindication /*ThenextorpreviousPBnumber注:此處以號碼“10086”為例,XX為“5”,YY為“10086” /*TheHSHFapplicationsstateisX注:X為返回消息的參數,1–“Ready”,2–“Connecting”,3–“Connected”,4–“outgoingcall”,5–“ ingcall”,6–“ongoingcall”。 /*XandYareauto andautoconnectafterpoweronsuprtp”Y為開機自動連接返回消息的參數,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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論