|
就是怎么操作,流程,刚学的,特总结如下,对没有调试过BT,无从下手的新手们提供点素材。我也是现学现卖,原来没碰过,突然让调,就一头雾水,幸亏是个模块,只用AT指令就能搞定。
AT command deion
AT+BTIN 查找BT源
AT+BTK=”
ATS102?
ATS102=$0180 will allow A2DP and AVRCP 禁止SPP,使能A2DP 和AVRCP
AT+BTC?
AT+BTN?
“LAIRD BTMMP
AT&F0 设置UART波特率
ATS512=4 连接并查找
ATS0=1 自动应答
ATZ 硬件复位
AT+BTN? 读模块的名字
PIN?
AT+BTT?
ATI4
AT+APD
CONNECT
AT+AVD
CONNECT
AT+AVC44 play
AT+AVC45 stop
AT+AVC46 pause
AT+AVC4B last song
AT+AVC
AT+BTN=”GMY” 设置缺省连接name
ATI4? BT设备地址
Phone ->A2DP -> module #1 -> Speaker(J7)
Flow:
at&F* reset all setting on the module
atz will reboot the module
ats102=$0180 allows A2DP, and AVRCP
at+btk="8888" - is the pair code
aT+BTT will save the pairing setting
ATI4?
At+btt?
AT+APD
AT+AVD
AT+AVC44 play
AT+AVC45 stop
AT+AVC46 pause
AT+AVC4B last song
AT+AVC
Audio in(J4) -> module #2 ----- A2DP -> module #1 -> Speaker(J7)
Flow:
Source, audio in:
AT
AT&F*
ATZ
ATS300=2 source
ATS102=$0180
ATS301=2 as AVRCP target
ATS512=4
AT&W
ATZ
ATI4
Sink speaker:
AT+APD
AT+AVD
Another example:
Flow:
Source, audio in:
ATI3
AT&F*
ATZ
ATS300=2
ATS301=2
AT+BTK=”
ATS512=4
AT&W
ATZ
AT+BTP
ATI4
Sink speaker:
AT+APD
AT+AVD
AT+AVC44 play the song