Smart Machine Smart Decision
SIM800 Series_Bluetooth_Application_V1.02
36
2014-06-30
4.8.
SPP’s link be create as a server
Command
Description
Suppose this device’s ID is
12:34:56:78:90:12,name is IT; The other ID is
34:c7:31:aa:37:5b,name is ME.they make pair
successfully.
+BTCONNECTING:
"34:c7:31:aa:37:5b","SPP"
AT+BTACPT=1
OK
+BTCONNECT:
1,"ME",34:c7:31:aa:37:5b,"SPP"
Receive a request from client which build a
connection.
Accept it.
Build success.
4.9.
Configurate SPP
Command
Description
Get Profile based on example 4.3. Suppose this
device’s ID is 12:34:56:78:90:12, and name is
IT;The other ID is 34:c7:31:aa:37:5b, and name
is ME.This module has had a server-type link of
SPP.
AT+BTSPPCFG?
+BTSPPCFG: S,1,0
OK
AT
OK
AT
OK
AT+BTSPPCFG=”MC”,1
OK
AT+BTSPPCFG=”MC”,2
+BTSPPCFG: 1
OK
+BTCONNECTING:
"0c:c5:95:09:62:60","SPP"
AT+BTACPT=1
OK
+BTCONNECT:
1,"THIRD",0c:c5:95:09:62:60,"SPP"
There is a link.It’s a server;Connection’s ID is
1;It’s not allowed to send data to client.
If there is a request from another device which
tries to build a connection, no URC will be
reported. Because this module disable
multi-connection function.
Enable multi-connection function.
Inquire whether the multi-connection is enabled.
Enable.
There is a request that tries to build a SPP’s
connection.
Build connection successfully.