+BTSPPDATA: 2,17,SIMCOMSPPFORAPP
AT
OK
AT+BTSPPCFG?
+BTSPPCFG: S,1,0
+BTSPPCFG: S,2,1
OK
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
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
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
SIM800 Series_Bluetooth_Application_V1.02
Smart Machine Smart Decision
Receive the message of switching mode to APP
mode from the second client's link.
Allow to send data to second client's link.
Description
Based on example 4.7,as a client.
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
disabled,we don't need to input connection's
ID.Input data(1234567890) and press Ctrl+Z
keys, the data will be sent.
Description
Based on example 4.8,as a server.
37
function
is
2014-06-30
Need help?
Do you have a question about the SIM800 Series and is the answer not in the manual?
Questions and answers