BTM410/411
Bluetooth
®
AT Data Module
33
www.lairdtech.com
Laird Technologies
AT COMMAND SET
REFERENCE
Bluetooth Profiles
This section covers S-Registers and AT-Commands that are related to supported Bluetooth Profiles on
BTM.
1.
Profile Activation
In order to activate available profiles and advertise them to potential client devices, S-Register 102
is used. Per default, only SPP is activated (value=1). Other supported profiles 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 Profile)
The serial port profile (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 profiles (SSO) so please refer to pg. 24 too.
In order to use SPP, the profile 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 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-16. Figure 1 through
to Figure 4 are presenting appropriate screenshots with Ezurio Terminal.
Table 3-16: SPP Example Command Sequence
Phase
Dev
AT Command
Comment
Preparation A
AT&F*
Restore factory default settings
ATS102=1
Enable Serial Port Profile (SPP)
AT&W
Store settings
ATZ
Reset
AT&F*
Restore factory default settings
Preparation B
AT&F*
Restore factory default settings
ATS102=1
Enable Serial Port Profile (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>
Initiate
connection
A
AT+SPD
<BdAddr_DevB>
Initiate SPP connection from device A to device B.
Asynchronous messages:
“PAIR 0…” (pairing successful, A and B)
“RING…” (B only)
“CONNECT…” (connected, A and B)
Connected
A,B
<data>
Any character entered on one end is displayed at the
other end.
Содержание BTM410
Страница 1: ...1 Version 3 0 ...