User's Manual

29
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth
®
Multimedia Module
The second method is initiated by resetting the device and then ensuring that the text string
“AT+BT&BISM&<cr>” is sent (where <cr> is the carriage return character). There is special code which
looks out for this magic command and terminates the autoconnect cycle if it sees it and conrms to
the host of that fact by sending an “OK” response.
Response: <cr,lf>OK<cr,lf>
7. AT+BTR {Delete Outgoing Peer Address}
This command is used to delete the peer address previously stored using AT+BTR<bd_addr>.
Response: <cr,lf>OK<cr,lf>
8 AT+BTR? {Read Outgoing Peer Address}
This command is used to display the peer address stored in non-volatile memory, used to put the device
in pure cable replacement mode.
Response: <cr,lf>12346789012
<cr,lf>OK<cr,lf>
If the location is empty the response is as follows.
Response: <cr,lf>00000000000
<cr,lf>OK<cr,lf>
Bluetooth Proles
This section covers S-Registers and AT-Commands that are related to supported Bluetooth Proles on BTM.
1. ProleActivation
In order to activate available proles and advertise them to potential client devices, S-Register 102 is
used. Per default, only SPP is activated (value=1). Other supported proles can be activated by setting
the appropriate Flag in S-Register 102. Once S-Register 102 has been written, the changed value needs
to be saved to non-volatile memory (“AT&W”) and subsequently a reset (“ATZ”) or power cycle is
required. Please note that “AT&W” saves the content of all S Registers to non-volatile memory.
2. SPP(SerialPortProle)
The serial port prole (SPP) is used for serial data transmission with a remote device in both directions.
It behaves like a wireless replacement for a serial cable.
SSP belongs to the group of serial stream oriented proles (SSO) so please refer to page 24 too.
In order to use SPP, the prole must be enabled in S102 (value=1). If it was not enabled earlier, set the
S register accordingly and issue AT&W followed by ATZ.
2.1 SPP Example
This section gives an example on how an SPP connection between two Laird Technologies
BTM devices can be established. It is assumed that two devices A and B are connected to a terminal
program, e.g., Ezurio Terminal on a PC. The example sequence of AT commands is listed in Table 3.9.
Figure 3.2 through to Figure 3.5 are presenting appropriate screenshots with Ezurio Terminal.
Phase Dev. AT Command Comment
Preparation A AT&F* Restore factory default settings
ATS102=1 Enable Serial Port Prole (SPP)
AT&W Store settings
ATZ Reset
Preparation B AT&F* Restore factory default settings
ATS102=1 Enable Serial Port Prole (SPP)
ATS0=1 Automatic response after one “RING”
AT&W Store settings
ATZ Reset
AT+BTP Make device temporary connectable and discoverable
ATI4 Query Bluetooth device address of local device <BdAddr_DevB>
AT COMMAND SET
REFERENCE