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

no-image

GS-BT2416C2_0709

Manufacturer Part Number
GS-BT2416C2_0709
Description
Bluetooth class 2 module with embedded SPP SW
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
Application examples
30/32
Configuring the CLIENT: this AT command list configures the module as a CLIENT.
The following AT commands are issued on the CLIENT module to set-up a connection to the
server module: in this example only one connection attempt is required, the TimeRetry
parameter is ignored. First, an inquiry is performed to discover nearby Bluetooth devices.
Once all devices have been found a connection is made to the found device (SERVER).
AT
OK
AT+BTCMODE=0
OK
AT+BTPMODE=1
OK
AT+BTDMODE=0
OK
AT+BTSECMODE=1
OK
AT+BTENCMODE=0
OK
AT+BTNAME=”SPP Client”
OK
AT+BTCLASS=52020C
OK
AT+BTINQ=10
+BTINQRES: 00800010AA02, ”SPP Server”
OK
AT+BTRPORTS=00800010AA02
+BTRPORT: “SPP Port”, 1
OK
AT+BTCONNECT=00800010AA02, 1, “1234”, 1, 0
OK
GS-BT2416C2.AT1

Related parts for GS-BT2416C2_0709