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

Example of a Slave Command Sequence<br />

From Power Up<br />

1. Perform an inquiry and search for Slave <strong>Bluetooth</strong> device with a PC or other embedded unit.<br />

2. Send a connection request from PC or embedded device to the Slave.<br />

3. Wait for a connection<br />

Reply: CONNECT,{SLAVE ADDRESS} // SPP Connected<br />

4. Send Data.<br />

Note:<br />

This command sequence assumes the SocketWireless is in factory default in which it automatically comes up<br />

and is connectable as a Slave from a Master request.<br />

Get Out of Data Mode and Check Status<br />

1. Delay at least 50 milliseconds.<br />

2. Check Status, perform a Disconnect …etc.<br />

Sent : AT<br />

Reply: OK<br />

Examples of Server Applications<br />

Headset Point-to-Point<br />

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

Reply: OK<br />

Sent:ATSSNC,0,Headset0,1108<br />

Reply: OK<br />

Sent: ATSC,00200404<br />

Reply: OK<br />

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

Reply: OK<br />

// Sets connect mode to slave<br />

// Sets service and name<br />

// Sets COD to a known headset COD<br />

// Sets no response mode<br />

Headset Multipoint<br />

Sent: ATSSW,3,4 // Sets connection number to 4<br />

Reply: OK<br />

Sent: ATSSNC,0,Headset0,1108 // Sets service and name<br />

Reply: OK<br />

Sent: ATSC,00200404<br />

// Sets COD to a known headset COD<br />

Reply: OK<br />

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

// Sets no response mode<br />

Reply: OK<br />

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

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

Saved successfully!

Ooh no, something went wrong!