At+Btsppsend Send Data Based On Spp Service - SimTech SIM800 Series Application Notes

Bluetooth
Hide thumbs Also See for SIM800 Series:
Table of Contents

Advertisement

Write Command
Response
1).If
OK
AT+BTSPPCFG=
or
"MC",2 response
ERROR
1(Enable
If command value is 2,return:
multi-connect)
+BTSPPGET: <connectId>,<cnfLen1>
AT+BTSPPGET
=<command>[,<
OK
connectId>][,
If command value is 3,return:
<reqLength>][,<s
+BTSPPGET: <connectId>,<cnfLen1>[,<data string>]
howWithHex>]
2).If
OK
AT+BTSPPCFG=
Parameters
"MC",2 response
0(Disable
multi-connect)
package arrives.
AT+BTSPPGET
=<command>[,
enabled,this command need parameter <connectId>.
<reqLength>][,<s
howWithHex>]
enabled,this command need parameter <connectId>.You can input
params of <reqLength> and <showWithHex> when you need.
mode
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
Response
1).If
>
SIM800 Series_Bluetooth_Application_V1.02
<command> 0 Auto mode. Data will be output in decimal system.
1 Manual mode. There will be an indication when first
2 Inquiry data length in manual mode.If multi-connect
3 Getting data in manual mode. If multi-connect
<reqLength> 1-1024 , the length of data requested, only valid in manual
<showWithHex> 1, displayed in hex, only valid in manual mode
<connectId>
connection`s ID
<cnfLen1>
0-1024, character length
<data string> string printed
Smart Machine Smart Decision
17
2014-06-30

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SIM800 Series and is the answer not in the manual?

Questions and answers

Table of Contents