SIM800 series Bluetooth Application Guide Notes...3 SIM800 series BT profile support Supported BT...
Transcript of SIM800 series Bluetooth Application Guide Notes...3 SIM800 series BT profile support Supported BT...
SIM800 series
Bluetooth Application Guide
2
SIM800 series Bluetooth Specifications
Bluetooth Version: 3.0 + EDR
Channel Spacing: 1MHz
Number of RF channels: 79
Power Class: 1.5
Operation Mode (Rx/Tx): Time Division multiplex either transmit or receive frequency hopping after one
Rx/Tx cycle
Frequency Range (Rx/Tx): 2402 – 2480MHz
Output power: 7.5dBm (typical)
Communication distance: <30m
Current Consumption
BT status Current consumption
BT scan 41mA
BT pair 25mA
BT connect 27mA
BT idle (after connect, no BT communication) 22mA
BT communication 36mA
3
SIM800 series BT profile support
Supported BT profiles (B02_BT FW)
1. Serial Port Profile (SPP)
2. Hands-Free Profile (HFP)
3. Advanced Audio Distribution Profile (A2DP)
4. Object Push Profile (OPP)
5. Audio Video Remote Control Profile (AVRCP)
6. Phonebook Access Profile (PBAP)
Under Developing
1. BT_FTC_Profile
2. BT_FTS_Profile
3. BT_SIM_Profile
4. BT_DIALER_Profile
5. BT_PBAPC_Profile
6. BT_MAPC_Profile
7. BT_Audio_VIA_SCO
8. BT_FM_RADIO_VIA_SCO
Compliant with BT3.0+EDR
BT_
ANT
SIM800H
4
1. Pair an BT device
AT+BTPOWER=1
OK
AT+BTHOST?
+BTHOST: Antony SIM800H,31:03:bc:17:62:60
OK
AT+BTSTATUS?
+BTSTATUS: 5
OK
AT+BTSCAN=1,20
OK
+BTSCAN: 0,1,"MK-ZHANGKUN",00:1a:7d:da:71:0e
+BTSCAN: 0,2,"MK-DONGBINGQUAN",00:1a:7d:da:71:10
+BTSCAN: 0,3,"MK-SHENJIANGUO",c0:18:85:db:32:0d
+BTSCAN: 1
AT+BTPAIR=0,1 //Active pair one BT device
OK
+BTPAIRING: "MK-ZHANGKUN",00:1a:7d:da:71:0e,674048
AT+BTPAIR=1,1
OK
+BTPAIR: 1,"MK-ZHANGKUN",00:1a:7d:da:71:0e
AT+BTSTATUS?
+BTSTATUS: 5
P: 1,"MK-ZHANGKUN",00:1a:7d:da:71:0e
OK
+BTPAIRING: "Coolpad 7295",00:16:6d:e1:ae:ae,478391
AT+BTPAIR=1,1 //Passive pair one BT device
OK
+BTPAIR: 2,"Coolpad 7295",00:16:6d:e1:ae:ae
+BTCONNECT: 2,"Coolpad 7295",00:16:6d:e1:ae:ae,"A2DP"
+BTCONNECT: 1,"Coolpad
7295",00:16:6d:e1:ae:ae,"HFP(AG)"
+BTCONNECT: 3,"Coolpad
7295",00:16:6d:e1:ae:ae,"AVRCP"
5
AT+BTSTATUS?
+BTSTATUS: 5
P: 1,"MK-ZHANGKUN",00:1a:7d:da:71:0e
P: 2,"Coolpad 7295",00:16:6d:e1:ae:ae
C: 1,"Coolpad 7295",00:16:6d:e1:ae:ae,"HFP(AG)"
C: 2,"Coolpad 7295",00:16:6d:e1:ae:ae,"A2DP"
C: 3,"Coolpad 7295",00:16:6d:e1:ae:ae,"AVRCP"
OK
AT+BTGETPROF=1 //Get BT device 1’s profiles
+BTGETPROF: 1,"A2DP(Source)"
+BTGETPROF: 2,"HFP(AG)"
+BTGETPROF: 8,"AVRCP(Target)"
+BTGETPROF: 3,"A2DP"
+BTGETPROF: 4,"SPP"
+BTGETPROF: 6,"HFP"
+BTGETPROF: 5,"HSP"
OK
AT+BTGETPROF=2 //Get BT device 2’s profiles
+BTGETPROF: 10,"PBAP"
+BTGETPROF: 1,"A2DP(Source)"
+BTGETPROF: 2,"HFP(AG)"
+BTGETPROF: 8,"AVRCP(Target)"
OK
2. Get the supported BT profiles of paired device
6
3. Connect service base on available BT profiles
AT+BTSTATUS?
+BTSTATUS: 5
P: 1,"MK-ZHANGKUN",00:1a:7d:da:71:0e
P: 2,"Coolpad 7295",00:16:6d:e1:ae:ae
C: 1,"Coolpad 7295",00:16:6d:e1:ae:ae,"HFP(AG)"
C: 2,"Coolpad 7295",00:16:6d:e1:ae:ae,"A2DP"
C: 3,"Coolpad 7295",00:16:6d:e1:ae:ae,"AVRCP"
OK
AT+BTGETPROF=1
+BTGETPROF: 1,"A2DP(Source)"
+BTGETPROF: 2,"HFP(AG)"
+BTGETPROF: 8,"AVRCP(Target)"
+BTGETPROF: 3,"A2DP"
+BTGETPROF: 4,"SPP"
+BTGETPROF: 6,"HFP"
+BTGETPROF: 5,"HSP"
OK
AT+BTCONNECT=1,4 //Connect BT device 1’s SPP service
OK
+BTCONNECT: 4,"MK-ZHANGKUN",00:1a:7d:da:71:0e,"SPP“
AT+BTSTATUS?
+BTSTATUS: 5
P: 1,"MK-ZHANGKUN",00:1a:7d:da:71:0e
P: 2,"Coolpad 7295",00:16:6d:e1:ae:ae
C: 1,"Coolpad 7295",00:16:6d:e1:ae:ae,"HFP(AG)"
C: 2,"Coolpad 7295",00:16:6d:e1:ae:ae,"A2DP"
C: 3,"Coolpad 7295",00:16:6d:e1:ae:ae,"AVRCP"
C: 4,"MK-ZHANGKUN",00:1a:7d:da:71:0e,"SPP"
OK
7
4. SIM800(H) acts as BT earphone to originate/answer voice call_HFP(AG)
AT+BTSTATUS?
+BTSTATUS: 5
P: 1,"MK-ZHANGKUN",00:1a:7d:da:71:0e
P: 2,"Coolpad 7295",00:16:6d:e1:ae:ae
C: 1,"Coolpad 7295",00:16:6d:e1:ae:ae,"A2DP"
C: 2,"Coolpad 7295",00:16:6d:e1:ae:ae,"AVRCP"
C: 3,"Coolpad 7295",00:16:6d:e1:ae:ae,"HFP(AG)"
OK
AT+BTATD=18516118168 //Originate a voice call
OK
AT+BTCIND=1
OK
AT+BTATD=18516118168
OK
+BTCIND: 1,1,0,2,0,5,0,4
+BTCIND: 1,1,0,3,0,5,0,4
+BTCIND: 1,1,0,3,0,4,0,4
+BTCIND: 1,1,1,3,0,4,0,4
+BTCIND: 1,1,1,0,0,4,0,4
+BTCIND: 1,1,1,0,0,5,0,4
+BTCLCC: 1,0,0,0,0,"18516118168",129
AT+BTCLCC?
OK
+BTCLCC: 1,0,0,0,0,"18516118168",129
+BTCIND: 1,1,0,0,0,5,0,4
+BTCIND: 1,1,0,1,0,5,0,4
BTRING
BTRING
BTRING
AT+BTATA
BTRING
OK
+BTCIND: 1,1,1,1,0,5,0,4
+BTCIND: 1,1,1,0,0,5,0,4
AT+BTCLCC?
OK
+BTCLCC: 1,1,0,0,0,"18516118168",129
AT+BTATH
OK
+BTCIND: 1,1,0,0,0,5,0,4
8
5. SIM800(H) acts as BT earphone for media playing_A2DP
AT+BTSTATUS?
+BTSTATUS: 5
P: 1,"MK-ZHANGKUN",00:1a:7d:da:71:0e
P: 2,"Coolpad 7295",00:16:6d:e1:ae:ae
C: 1,"Coolpad 7295",00:16:6d:e1:ae:ae,"A2DP"
C: 2,"Coolpad 7295",00:16:6d:e1:ae:ae,"AVRCP"
OK
After this, user can paly music at the device “Coolpad7295” side, and user can hear the music at the module handset side
9
6. SIM800(H) acts as BT earphone for media playing control_AVRCP
AT+BTSTATUS?
+BTSTATUS: 5
P: 1,"MK-ZHANGKUN",00:1a:7d:da:71:0e
P: 2,"Coolpad 7295",00:16:6d:e1:ae:ae
C: 1,"Coolpad 7295",00:16:6d:e1:ae:ae,"A2DP"
C: 2,"Coolpad 7295",00:16:6d:e1:ae:ae,"AVRCP"
OK
After this, user can play music at the device “Coolpad7295” side, and user can hear the music at the module handset side
Note: AVRCP is base on A2DP
AT+BTAVRCOP=0 //Stop playing music
OK
AT+BTAVRCOP=1 //Start playing music
OK
AT+BTAVRCOP=2 //Pause music
OK
AT+BTAVRCOP=3 //Play next music
OK
AT+BTAVRCOP=4 //Play last music
OK
AT+BTAVRCOP=5 //Increase volume
OK
AT+BTAVRCOP=6 //Decrease volume
OK
10
7. SIM800(H) acts as BT Mobile phone connected to a BT earphone_A2DP
AT+BTSTATUS?
+BTSTATUS: 5
P: 1,"LBH505",50:5b:0b:0a:10:32
C: 1,"LBH505",50:5b:0b:0a:10:32,"A2DP“
OK
AT+CREC=1,1,0 //Start to record audio in “.amr” format, file “id” is 1
OK
AT+CREC=2 //Stop recording
OK
+CREC: 2,1,0,8,13382
AT+FSLS=C:\ //List C directory files
User\
REC\
OK
AT+FSLS=C:\REC\ //Found the recorded “.amr” file, “id” is 1
1.AMR
OK
AT+CREC=4,1,0,80 //Play the recorded “id”—1 “.amr” file
OK
+CREC: 0
11
8. AT Channel Mode between two SIM800(H)_SPP AT+BTSTATUS?
+BTSTATUS: 5
P: 1,"SIM800H_ZHANGPING",2d:bf:00:a9:62:60
OK
AT+BTGETPROF=1
+BTGETPROF: 10,"PBAP"
+BTGETPROF: 1,"A2DP(Source)"
+BTGETPROF: 2,"HFP(AG)"
+BTGETPROF: 8,"AVRCP(Target)"
+BTGETPROF: 3,"A2DP"
+BTGETPROF: 4,"SPP"
+BTGETPROF: 6,"HFP"
OK
AT+BTCONNECT=1,4
OK
+BTCONNECT: 1,"SIM800H_ZHANGPIN",2d:bf:00:a9:62:60,"SPP"
+BTSPPDATA: 1,2,
+BTSPPDATA: 1,57,+BTCONNECT:
1,"SIM800H_Yanfeng",30:5a:72:1f:62:60,"SPP"
AT+BTSTATUS?
+BTSTATUS: 5
P: 1,"SIM800H_ZHANGPING",2d:bf:00:a9:62:60
C: 1,"SIM800H_ZHANGPING",2d:bf:00:a9:62:60,"SPP"
OK
AT+BTSPPGET=0
OK
AT+BTSPPSEND
> AT+CREG?
�
SEND OK
+BTSPPDATA: 1,1,A
+BTSPPDATA: 1,3,T+C
+BTSPPDATA: 1,25,REG?
+CREG: 0,0
OK
Note:
If the first data packet sent from BT client is
not “SIMCOMSPPFORAPP”, the SPP
connection is called “AT Channel Mode”.
In this mode, the BT Client can send AT
command to BT Server for control purpose;
but BT client can’t send any invalid AT
command/data to BT Server, otherwise there
will be no any response from BT Server.
Meanwhile, the BT Server can’t send any data
or AT command to BT Client.
12
9. Data Exchang Mode_SPP
AT+BTSTATUS?
+BTSTATUS: 5
P: 1,"SIM800H_ZHANGPING",2d:bf:00:a9:62:60
C: 1,"SIM800H_ZHANGPING",2d:bf:00:a9:62:60,"SPP"
OK
AT+BTSPPSEND
> SIMCOMSPPFORAPP
�
SEND OK
AT+BTSPPSEND=11
> HELLOSERVER
SEND OK
+BTSPPDATA: 1,11,HELLOCLIENT
AT+BTSTATUS?
+BTSTATUS: 5
P: 1,"SIM800H_Yanfeng",30:5a:72:1f:62:60
C: 1,"SIM800H_Yanfeng",30:5a:72:1f:62:60,"SPP"
OK
+BTSPPDATA: 1,17,SIMCOMSPPFORAPP
+BTSPPDATA: 1,10,HELLOSERVER
AT+BTSPPSEND=11
> HELLOCLIENT
SEND OK
13
10. Send/Receive file to/from another BT device
AT+BTSTATUS?
+BTSTATUS: 5
P: 1,"SIM800H_1",0e:c5:35:4d:62:60
OK
AT+FSLS=C:\
User\
@pbap\
@bt\
2.txt
OK
AT+BTOPPPUSH=1,C:\2.txt
OK
+BTOPPPUSH: 1
+BTOPPPUSHING: "SIM800H_2","2.txt"
AT+BTOPPACPT=1
OK
+BTOPPPUSH: 1
AT+FSLS=C:\user\btreceived\
2.txt
Dup(01)2.txt
Dup(02)2.txt
OK
14
11. Sync remote Phonebook_PBAP
AT+BTSTATUS?
+BTSTATUS: 5
P: 1,"SIM800H_Jimmy",3c:fd:5c:48:62:60
P: 2,"Jumping",22:61:d0:df:62:60
C: 1,"SIM800H_Jimmy",3c:fd:5c:48:62:60,"PBAP(C)"
OK
AT+BTPBSYNC=0,1,0
OK
+BTPBSYNC: 0,1
AT+BTPBSYNC=0,6,0
OK
+BTPBSYNC: 0,0,11367
AT+BTPBSYNC=0,1,0
OK
+BTPBSYNC: 0,0,113
AT+FSLS=C:\
User\
@pbap\
@bt\
TEST.TXT
OK
AT+FSLS=C:\USER\
BT\
OK
AT+FSLS=C:\USER\BT\
remotePb6.txt
remotePb1.txt
OK
AT+BTPBSYNC=1,6,0,1,1
OK
+BTPBSYNC: 1,0,2,0
AT+CPBS=“ME"
OK
AT+CPBS?
+CPBS: "ME",2,100
OK
AT+CPBR=1,10
+CPBR: 1,"13621682958",129,"ANTONY"
+CPBR: 2,"13917476267",129,"LIGHT"
OK
15
Thank you!