GS-BT2416C2_0709 STMICROELECTRONICS [STMicroelectronics], GS-BT2416C2_0709 Datasheet - Page 24

no-image

GS-BT2416C2_0709

Manufacturer Part Number
GS-BT2416C2_0709
Description
Bluetooth class 2 module with embedded SPP SW
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
AT command
A.23
Note:
A.24
Note:
24/32
AT+BTCONNECT
Initiate an SPP connection to a remote Bluetooth device. When the connection has been
successfully established the command returns an OK message and GPIO1 is set to high.
It is possible to specify a number of attempts and a time interval between any retry. It also
possible to stop a sequence of connections retry changing the state of GPIO3 (as with the
startup Macro).
When connected with another device the module become “Non-Connectable” and “Non-
Discoverable”.
AT+BTDISCONNECT
Disconnect the current existing SPP Bluetooth link. When the link has been closed, the
command returns an OK message and GPIO1 is set to low.
See AT+BTCONNECT
Syntax:
Parameters:
BdAddress: Bluetooth address of the remote device. This value is specified as a 6-
byte hexadecimal value: i.e.
PortN: Port number of the remote SPP port. A value of “0” force the device to
query the remote device for a SPP service port and to get the first valid port; this
behavior is useful for programmed automatic recursive connect.
PinCode: 4 to 16-byte string representing the connection pin code
NRetry: number of possible attempts if the connection fail. A “0” set the device for
infinite attempts. Value range is 0 - 255.
TimeRetry: time interval between attempts in seconds. Value range is 0 - 65535
Return value: <OK, ERROR>
Syntax: AT+BTDISCONNECT
Return value: <OK, ERROR>
AT+BTCONNECT=00230A01F0A5
AT+BTCONNECT=BdAddress,PortN,
“PinCode”,NRetry, TimeRetry
GS-BT2416C2.AT1

Related parts for GS-BT2416C2_0709