01.02.2014 Views

Bluetooth Commands - wless.ru

Bluetooth Commands - wless.ru

Bluetooth Commands - wless.ru

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 4 – Examples<br />

Repeater Example using MTS2BTSMI or MTS2BTA<br />

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

through serial ports to workstations. One unit is configured as master, one unit is configured as slave and<br />

one unit is configured as repeater. The repeater needs to be firmware version 3.6.2.1.0.0 or newer to support<br />

repeater mode. The slave and master are not firmware dependent and can be older Multi-Tech models or<br />

generic <strong>Bluetooth</strong> devices. All <strong>Bluetooth</strong> units are configured with baud rate of 9600bps, 8 data bits, no parity,<br />

1 stop bit and hardware flow control. Baud rate can be set up to 115.2kbps but all <strong>Bluetooth</strong> devices need to<br />

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> device to function as slave 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 the <strong>Bluetooth</strong> slave device in this test setup.<br />

Sent: ATSI,1<br />

Reply: OK<br />

Reply: 12-digit slave address OK<br />

Configure the repeater <strong>Bluetooth</strong> device to function as repeater in data mode.<br />

- Enter address of slave device that repeater will automatically connect to once master connects to slave<br />

along with profile code.<br />

Sent: ATSMA,Slave_Address, 1101<br />

Reply: OK<br />

- Set repeater <strong>Bluetooth</strong> unit to function as repeater in Data Mode and reset unit.<br />

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

Reply: OK<br />

Sent: ATURST <br />

Reply: OK<br />

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

Sent: ATSI,1<br />

Reply: OK<br />

Reply: 12-digit repeater address OK<br />

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

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

Saved successfully!

Ooh no, something went wrong!