User's Manual Part 1

GSBT2416C2DB.xxx
rev. 1.0 18-Jun-07 10/13
- Configure the Server board by means the following commands:
( GPIO3 Server must be Low to select Command Mode– S2 switch in Command mode )
Command Answer
AT OK Check module ready
AT+BTCMODE=1 OK
AT+BTPMODE=1 OK
AT+BTDMODE=1 OK Discoverable
AT+BTSECMODE=1 OK
AT+BTENCMODE=0 OK
AT+BTPINCODE=”1234” OK Pin code
AT+BTNAME=”SPP Server” OK Set server name
AT+BTCLASS=52020C OK
AT+BTREGPORT=”SPP port” OK Name of service offered
After the Server board configuration , Server board GPIO3 must be put HIGH to select DATA MODE enabling the
Server board to receive and transmit DATA.
- Inquiry & available Services
Before to establish a connection, the Client has to know which Bluetooth devices are present and which services are
offered, and therefore the Client:
- will perform first the inquiry by the command:
AT+BTINQ=xx where xx is the inquiry time (i.e. 10 sec -> AT+BTINQ=10 )
The answer will be a list of present Bluetooth connectable devices, one of the device should be our SPP Server:
+BTINQRES:0080E1000002,”SPP Server”
OK
- and after will ask for which kind of service is available with the command:
AT+BTRPORTS=0080E1000002
The answer will be :
+BTRPORT:”SPP Port”,1 serial port profile , port 1 (can be 1,2…)
OK
- Once known the device present, the service offered, the Client finalize the connection with the command :
AT+BTCONNECT=0080E1000002,1,”1234”,1,0
OK
At this point the connection is established and GPIO1 (indicating the connection status) on both Client and Server
boards becomes high.
On the GS-BT2416C1AT1 board a led is connected to GPIO1 and therefore the connection is shown also by a led on.
GPIO3 on Client board must be now put at HIGH level allowing the Client to send and receive DATA from Server.
- Disconnection
To disconnect, the Client has to put its GPIO3 LOW ( Command mode) ( the changing from high to low on GPIO3 is
signaled on the Client PC screen with +READY) and send the command :
AT+BTDISCONNECT
OK
The result will be the disconnection of the link Client / Server and GPIO1 on both Client and Server boards will return
to low ( the leds will go off ).