Smart Machine Smart Decision
SIM800 Series_Bluetooth_Application_V1.02
37
2014-06-30
+BTSPPDATA: 2,17,SIMCOMSPPFORAPP
AT
OK
AT+BTSPPCFG?
+BTSPPCFG: S,1,0
+BTSPPCFG: S,2,1
OK
Receive the message of switching mode to APP
mode from the second client’s link.
Allow to send data to second client’s link.
4.10.
Send data as a SPP’s client
A SPP connection has two modules.One is client,and the other is server. Let us see the
demo with client module.
Command
Description
Based on example 4.7,as a client.
AT+BTSPPCFG?
+BTSPPCFG: C,1
OK
AT+BTSPPSEND
>
AT+CREG?
SEND OK
+BTSPPDATA: 19,1,A
+BTSPPDATA: 19,3,T+C
+BTSPPDATA: 19,25,REG?
+CREG: 0,0
OK
AT+BTSPPSEND=10
>
1234567890
SEND OK
There is a link,client-type,and allowed to
send data to the server.
If the client send AT command to the
server,this command and its response will
output to client.
“AT+CREG?” are input characters.
“+CREG: 0,0” and “OK” are responses.
If the multi-connection function is
disabled,we don’t need to input connection’s
ID.Input data(1234567890) and press Ctrl+Z
keys, the data will be sent.
4.11.
As a SPP’s server worked in AT mode
SPP’s connection as a server has two mode.One is AT mode.In this mode,we can’t use
AT+BTSPPSEND/BTSPPGET commands to send data to the client or get data from
the client. We can only receive data from the client.
Command
Description
Based on example 4.8,as a server.