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 />

- Perform a Master Connection over SPP to the first <strong>Bluetooth</strong> slave device.<br />

Sent: ATDM, BT_Slave1_Address,1101 // SPP connection<br />

Reply: OK<br />

Reply: CONNECT,00,BT_Slave1_Address // Returns Slave BT address radio is in<br />

data mode<br />

- Place radio back into Data Mode.<br />

Sent: +++ // Places Radio in Command Mode<br />

Reply: OK<br />

- Perform a Master Connection over SPP to the second <strong>Bluetooth</strong> slave device.<br />

Sent: ATDM, BT_Slave2_Address,1101 // SPP connection<br />

Reply: OK<br />

Reply: CONNECT,01,BT_Slave2_Address // Returns Slave BT address radio is in<br />

data mode<br />

- Place radio back into Data Mode.<br />

Sent: +++ // Places Radio in Command Mode<br />

Reply: OK<br />

- Perform a Master Connection over SPP to the third <strong>Bluetooth</strong> slave device.<br />

Sent: ATDM, BT_Slave3_Address,1101 // SPP connection<br />

Reply: OK<br />

Reply: CONNECT,02,BT_Slave3_Address // Returns Slave BT address radio is in<br />

data mode<br />

- Place radio back into Data Mode.<br />

Sent : +++ // Places Radio in Command Mode<br />

Reply: OK<br />

- Perform a Master Connection over SPP to the fourth <strong>Bluetooth</strong> slave device.<br />

Sent: ATDM, BT_Slave4_Address,1101 // SPP connection<br />

Reply: OK<br />

Reply: CONNECT,03,BT_Slave4_Address // Returns Slave BT address radio is in<br />

data mode<br />

Send and receive data between master and slave devices. Sending data from the master will be sent to all four<br />

slaves. Sending data from a slave will be sent only to the master.<br />

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

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

Saved successfully!

Ooh no, something went wrong!