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 2 – AT <strong>Commands</strong><br />

Set Master Default <strong>Bluetooth</strong> Address <strong>Commands</strong><br />

SMA Set Master Default Address<br />

This command will set a specific <strong>Bluetooth</strong> Slave address and service profile into the Master device so on<br />

power up the Master will automatically search and connect to a unique Slave device on the highest<br />

available channel.<br />

Format: ATSMA,,<br />

Parameters:<br />

EXAMPLE:<br />

TYPE:<br />

REPLY:<br />

• BT Address: <strong>Bluetooth</strong> Address, 12 hex characters MAX<br />

• UUID: 4 digit, binary profile code (See Appendix C for more info)<br />

ATSMA,00A0961F904F,1101<br />

OK<br />

OR<br />

ERROR<br />

Read Using: ATSI,9<br />

Notes:<br />

• Execute ATSW25 to set the power up connect mode to auto-master before using the<br />

above command if still in slave mode.<br />

• This command is limited to only one connection. Reset module for change to take<br />

affect.<br />

MACLR Master Address Clear<br />

This command clears the stored slave address.<br />

Format: ATMACLR<br />

EXAMPLE:<br />

TYPE:<br />

ATMACLR<br />

REPLY:<br />

OK<br />

OR<br />

ERROR<br />

SSW,7 Set Auto Connect Master on Data<br />

This command connects automatically to the stored master address when data is present on the UART.<br />

The Radio will disconnect when the No Data timeout has been reached, this occurs when no data is<br />

being sent to the UART. The ATSMA command must be enabled before this will work. See the<br />

ATSW28 command to set the No Data timeout.<br />

Format:<br />

ATSSW7,1<br />

EXAMPLE:<br />

TYPE:<br />

REPLY:<br />

ATSSW,7,1<br />

OK<br />

OR<br />

ERROR<br />

RSW,7 Read Auto Connect Master on Data<br />

This command reads the AUTO CONNECT MASTER ON DATA enable/disable register state.<br />

Format:<br />

ATRSW,7<br />

Return Parameters: <br />

EXAMPLE:<br />

TYPE:<br />

ATRSW,7<br />

REPLY:<br />

OK<br />

00<br />

Set Using:<br />

ATSSW,7<br />

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

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

Saved successfully!

Ooh no, something went wrong!