User's Manual
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 conguration, Bluetooth proles, 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 xed 12 digit hexadecimal string, case insensitive.
4. All Bluetooth Device Class codes are represented by a xed six digit hexadecimal string, case insensitive.
5. All prole specic commands are identied by the prex shown in Table 3.1
Prole Term AT-Command Prex
Serial Port Prole SPP AT+SP…
Advanced Audio Distribution Prole A2DP AT+AP…
Audio/Video Remote Control Prole AVRCP AT+AV…
Headset Prole HSP AT+HS…
Hands-Free Prole HFP AT+HF…
Dial-Up Network Prole DUN AT+DU…
Table 3.1: AT Command prex for proles
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