Smart Machine Smart Decision
SIM800 Series_Bluetooth_Application_V1.02
11
2014-06-30
Response
+BTPAIR:
0,
(
list of supported
<device ID>
s
)
+BTPAIR:
1,
(
list of supported
<confirm>
s
)
+BTPAIR:
2,
(
length of supported
<passkey>
s
)
OK
Test Command
AT+BTPAIR=?
Parameters
See Write Command
Response
OK
If digital key exchanged
+BTPAIRING: <name>,<address>,<passcode>
If passkey exchanged:
+BTPAIRING: <name>,<address>
If passive mode with succees:
+BTPAIR: <id>,<name>,<address>
If passive mode with failure:
+BTPAIR: 0
Parameters
<device ID>
BT device ID
<confirm>
1 accept
0 reject
<passkey>
passkey, length is
(
4-16
)
<id>
0 paired failed
>=1 paired deivce ID
<
name
> BT device name
<
address
> BT device address
<passcode>
Digital password
Write Command
1) active
AT+BTPAIR=0,
<device ID>
2) passive with
digital key request
AT+BTPAIR=1,
<confirm>
3) passive with
passkey request
AT+BTPAIR=2,
<passkey>
URC
If there is incoming request:
+BTPAIRING: <name>,<address>,<passcode>
or
+BTPAIRING: <name>,<address>
Parameters
<
name
> device name
<
address
> device address
<passcode>
digital password
Note
1. Max length of <name> is 18 bytes, 18 bytes in UTF-8 code
2. Pairing timeout is around 15s each side