
Chapter 4 – Examples
Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360H) 64
Multi-Point Example Using MTS2BTSMI or MTS2BTA
Four Master and One Slave Devices
Note: Attaching the fourth master device can overload the connections and cause all connections to be
terminated. Increasing the distance between Bluetooth devices will effect performance and could further limit
the number of connections.
Setup hardware for this example consisting of up to five MTS2BTSMI or MTS2BTA Bluetooth units connected
through serial ports to workstations. One unit is configured as slave and four units are configured as masters.
The slave needs to be firmware version 3.6.2.1.0.0 or newer to support multipoint connections. The masters
are not firmware dependent and can be older models. All Bluetooth units are configured with baud rate of
9600bps, 8 data bits, no parity, 1 stop bit and hardware flow control. Baud rate can be set up to 115.2kbps
but all Bluetooth devices need to be set to same baud rate.
Each workstation uses a terminal emulator like HyperTerminal or ZOC to communicate to Bluetooth device
using AT commands.
Configure the slave Bluetooth device to function as slave in data mode.
- Verify local device is Slave in Data Mode.
Sent: ATSI,7 <cr>
Reply: OK<cr_lf>
Reply: <cr_lf>0,1,0,0 <cr_lf>
- If not Slave, set to Slave in Data Mode and reset unit.
Sent: ATSW25,0,1,0,0 <cr>
Reply: OK<cr_lf>
- Enable multipoint mode and set number of connections to four. Then reset unit.
Sent: ATSSW,3,4 <cr>
Reply: OK<cr_lf>
Sent: ATURST <cr>
Reply: OK<cr_lf>
- Retrieve Bluetooth address from Bluetooth slave device in this test setup.
Sent: ATSI,1<cr>
Reply: OK<cr_lf>
Reply: <cr_lf>12-digit address <cr_lf>OK<cr_lf>
Issue these AT commands at the master Bluetooth devices to generate four wireless connections between
the four Masters and the slave device.
- Verify local device is Master in Data Mode.
Sent: ATSI,7 <cr>
Reply: OK<cr_lf>
Reply: <cr_lf>1,1,0,0 <cr_lf>
- If not Master, set to Master in Data Mode and reset unit.
Sent: ATSW25,1,1,0,0 <cr>
Reply: OK<cr_lf>
Sent: ATURST <cr>
Reply: OK<cr_lf>
- Perform an Inquiry to detect BT_Address of slave (unless it is already known).
Sent: ATDI,1,00000000 {Class of Device} <cr> // Looks for one Bluetooth device
Reply: OK<cr_lf> // Search completed when DONE appears
Reply: <cr_lf>BT_Slave1_Address,00000000,SOCKETWIRELESS<cr_lf>
Reply: <cr_lf>DONE<cr_lf>
- Perform a Master Connection over SPP to the Bluetooth slave device.
Sent: ATDM, BT_Slave1_Address,1101<cr> // SPP connection
Reply: OK<cr_lf>
Reply: <cr_lf>CONNECT,BT_Slave1_Address <cr_lf> // Returns Slave BT address radio is in
data mode
Comentarios a estos manuales