01.02.2014 Views

Bluetooth Commands - wless.ru

Bluetooth Commands - wless.ru

Bluetooth Commands - wless.ru

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 4 – Examples<br />

Multi-Point Example using MTS2BTSMI or MTS2BTA<br />

One Master and Four Slave Devices<br />

Note: Attaching the fourth slave device can overload the connections and cause all connections to be<br />

terminated. Increasing the distance between <strong>Bluetooth</strong> devices will effect performance and could further limit<br />

the number of connections.<br />

Setup hardware for this example consisting of up to five MTS2BTSMI or MTS2BTA <strong>Bluetooth</strong> units connected<br />

through serial ports to workstations. One unit is configured as master and four units are configured as slaves.<br />

The master needs to be firmware version 3.6.2.1.0.0 or newer to support multipoint connections. The slaves<br />

are not firmware dependent and can be older models. All <strong>Bluetooth</strong> units are configured with baud rate of<br />

9600bps, 8 data bits, no parity, 1 stop bit and hardware flow control. Baud rate can be set up to 115.2kbps<br />

but all <strong>Bluetooth</strong> devices need to be set to same baud rate.<br />

Each workstation uses a terminal emulator like HyperTerminal or ZOC to communicate to <strong>Bluetooth</strong> device<br />

using AT commands.<br />

Configure the slave <strong>Bluetooth</strong> devices to function as slaves in data mode.<br />

- Verify local device is Slave in Data Mode.<br />

Sent: ATSI,7 <br />

Reply: OK<br />

Reply: 0,1,0,0 <br />

- If not Slave, set to Slave in Data Mode and reset unit.<br />

Sent: ATSW25,0,1,0,0 <br />

Reply: OK<br />

Sent: ATURST <br />

Reply: OK<br />

- Retrieve <strong>Bluetooth</strong> address from each <strong>Bluetooth</strong> slave device in this test setup.<br />

Sent: ATSI,1<br />

Reply: OK<br />

Reply: 12-digit address OK<br />

Issue these AT commands at the master <strong>Bluetooth</strong> device to generate four wireless connections between the<br />

single Master and the four slave devices.<br />

- Verify local device is Master in Data Mode.<br />

Sent: ATSI,7 <br />

Reply: OK<br />

Reply: 1,1,0,0 <br />

- If not Master, set to Master in Data Mode and reset unit.<br />

Sent: ATSW25,1,1,0,0 <br />

Reply: OK<br />

Sent: ATURST <br />

Reply: OK<br />

- Enable multipoint mode and set number of connections to four.<br />

Sent: ATSSW,3,4 <br />

Reply: OK<br />

- Perform an Inquiry to detect BT_Addresses (unless it is already known).<br />

Sent: ATDI,4,00000000 {Class of Device} // Looks for four <strong>Bluetooth</strong> devices<br />

Reply: OK // Search completed when DONE appears<br />

Reply: BT_Slave1_Address,00000000,SOCKETWIRELESS<br />

Reply: BT_Slave2_Address,00000000,SOCKETWIRELESS<br />

Reply: BT_Slave3_Address,00000000,SOCKETWIRELESS<br />

Reply: BT_Slave4_Address,00000000,SOCKETWIRELESS<br />

Reply: DONE<br />

Multi-Tech Systems, Inc. SocketWireless <strong>Bluetooth</strong> AT <strong>Commands</strong> (S000360G) 64

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!