Smart Machine Smart Decision
SIM800 Series_Bluetooth_Application_V1.02
38
2014-06-30
AT+BTSPPCFG?
+BTSPPCFG: S,1,0
OK
There is a link.Server-type; connection’s ID
is 1;It’s not allowed to send data to the client.
AT+BTSPPSEND=10
ERROR
Fail to send.
AT+BTSPPSEND
ERROR
Fail to send.
4.12.
As a SPP’s server worked in APP mode
Another SPP’s link mode as a server is the APP mode. In this mode,we can execute
AT+BTSPPSEND and AT+BTSPPGET commands.
Command
Description
Based on example 4.7,as a server.
+BTSPPDATA: 1,17,SIMCOMSPPFORAPP
AT
OK
AT
OK
AT+BTSPPCFG?
+BTSPPCFG: S,1,1
OK
AT+BTSPPSEND
>
12345
SEND OK
AT+BTDISCONN=1
OK
+BTDISCONN:
"SIM800H",34:c7:31:aa:37:5b,"SPP"
AT+BTSPPGET=1
OK
+BTCONNECTING: "34:c7:31:aa:37:5b","SPP"
AT+BTACPT=1
OK
+BTCONNECT:
1,"SIM800H",34:c7:31:aa:37:5b,"SPP"
+BTSPPMAN: 1
AT
Receive the specified data package from the
first client’s link which means switching the
mode to APP mode.(This data package must
be the first package recieved)
Allow to send data to the client.
Send successefully.
Disconnect this link of client.
Switch to manual mode.
Recieve the connecting request from the
client.
Build link successefully.
Receive the data from the client whose