12
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth
®
Multimedia Module
BTM - AT COMMAND SET
This section describes the AT Command Set for a BTM module. This section is structured in functional
groups of AT commands related to module configuration, Bluetooth profiles, hardware units and
miscellaneous purposes.
Assumptions
1. All commands are terminated by the carriage return character 0x0D, which is represented by the string
<cr> in descriptions below this cannot be changed.
2. All responses from the BTM device have carriage return and linefeed characters preceding and
appending the response. These dual character sequences have the values 0x0D and 0x0A respectively
and shall be represented by the string <cr,lf>.
3. All Bluetooth addresses are represented by a fixed 12 digit hexadecimal string, case insensitive.
4. All Bluetooth Device Class codes are represented by a fixed six digit hexadecimal string, case insensitive.
5. All profile specific commands are identified by the prefix shown in Table 3.1
Profile
Term
AT-Command Prefix
Serial Port Profile
SPP
AT+SP…
Advanced Audio Distribution Profile
A2DP
AT+AP…
Audio/Video Remote Control Profile
AVRCP AT+AV…
Headset Profile
HSP
AT+HS…
Hands-Free Profile
HFP
AT+HF…
Dial-Up Network Profile
DUN
AT+DU…
Table 3.1: AT Command prefix for profiles
Command Syntax
The following syntax is employed throughout this document to describe optional or mandatory parameters for
AT commands.
<bd_addr>
A 12 character Bluetooth address consisting of ASCII characters ‘0’ to ‘9’, ‘A’ to ‘F’ and ‘a’ to ‘f’.
<devclass>
A six character Bluetooth device class consisting of ASCII characters ‘0’ to ‘9’, ‘A’ to ‘F’ and ‘a’ to ‘f’.
n
A positive integer value.
m
An integer value which could be positive or negative, which can be entered as a decimal value or
in hexadecimal if preceded by the ‘$’ character, e.g., the value 1234 can also be entered as $4D2.
<string>
A string delimited by double quotes, e.g., “Hello World”. The “ character MUST be supplied as delimiters.
<uuid>
A four character UUID number consisting of ASCII characters ‘0’ to ‘9’, ‘A’ to ‘F’ and ‘a’ to ‘f’.
General AT Commands
1. AT
Used to check the module is available.
Response: <cr,lf>OK<cr,lf>
2. ATEn
{Enable/Disable Echo}
This command enables or disables the echo of characters to the screen. A valid parameter value will be
written to S Register 506.
E0 … Disable echo.
E1 … Enable echo.
All other values of n will generate an error.
Response: <cr,lf>OK<cr,lf>
Or
Response: <cr,lf>ERROR nn<cr,lf>
AT COMMAND SET
REFERENCE