Smart Machine Smart Decision
SIM800 Series_Bluetooth_Application_V1.02
17
2014-06-30
Response
OK
or
ERROR
If command value is 2,return:
+BTSPPGET: <connectId>,<cnfLen1>
OK
If command value is 3,return:
+BTSPPGET: <connectId>,<cnfLen1>[,<data string>]
OK
Write Command
1).If
AT+BTSPPCFG=
”MC”,2 response
1(Enable
multi-connect)
AT+BTSPPGET
=<command>[,<
connectId>][,
<reqLength>][,<s
howWithHex>]
2).If
AT+BTSPPCFG=
”MC”,2 response
0(Disable
multi-connect)
AT+BTSPPGET
=<command>[,
<reqLength>][,<s
howWithHex>]
Parameters
<command>
0 Auto mode. Data will be output in decimal system.
1 Manual mode. There will be an indication when first
package arrives.
2 Inquiry data length in manual mode.If multi-connect
enabled,this command need parameter <
connectId
>.
3 Getting data in manual mode. If multi-connect
enabled,this command need parameter <
connectId
>.You can input
params of <
reqLength
> and <
showWithHex
> when you need.
<reqLength>
1-1024 , the length of data requested, only valid in manual
mode
<
showWithHex
> 1, displayed in hex, only valid in manual mode
<connectId>
connection`s ID
<cnfLen1>
0-1024, character length
<data string>
string printed
Note
URC
When the module receives data by SPP,there will be URC report:
1. Auto mode
+BTSPPDATA: <connectId>,<cnfLen2>,<data string>
2. Manual mode
+BTSPPMAN: <connectId>
Parameter
<cnfLen2>
1-1024, length of printed character
2.14.
AT+BTSPPSEND Send data based on SPP service
AT+BTSPPSEND Send data based on SPP service
Write Command
1).If
Response
>