Laird BTM410 User Manual - page 10
10
www.lairdtech.com
Laird Technologies
BTM410/411
Bluetooth
®
AT Data Module
AT COMMAND SET
Assumptions
The CSR (Cambridge Silicon Radio) Bluecore chipset in Laird Technologies devices is memory resource limited.
Therefore it is NOT proposed that there be full implementation of the AT protocol as seen in modems. The
claim made for this device is that it will have a protocol similar to an AT modem. In fact, the protocol is similar
enough so that existing source code written for modems, can be used with very little modification with a Laird
Technologies device.
Therefore the following assumptions are made:
1. All commands are terminated by the carriage return character 0x0D, which is represented by the
string
2. All responses from the 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
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 6 digit hexadecimal string, case insensitive.
Commands
This section describes all available AT commands. Many commands require mandatory parameters and some
take optional parameters. These parameters are either integer values, strings, Bluetooth addresses or device
classes. The following convention is used when describing the various AT commands.
A 12 character Bluetooth address consisting of ASCII characters ‘0’ to ‘9’, ‘A’ to ‘F’ and ‘a’ to ‘f’.
A 6 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
A string delimited by double quotes. E.g. “Hello World”. The “ character MUST be supplied as delimiters.
A 4 character UUID number consisting of ASCII characters ‘0’ to ‘9’, ‘A’ to ‘F’ and ‘a’ to ‘f’.
1. ^^^ {Enter Local Command Mode}
When in data and connected mode, the host can force the device into a command and connected
mode so that AT Commands can be issued to the device. The character in this escape sequence is
specified in the S2 register, so can be changed. In addition, the escape sequence guard time is
specified by S Register 12. By default the guard time is set to 100 milliseconds. Please refer to
Section 5: Dropping Connections for more related information.
In modems this escape sequence is usually “+++”. “^^^” is specified to avoid confusion when the
module is providing access to a modem.
Response:
2. !!! {Enter Remote Command Mode}
When in data and connected mode, the host can force the remote device into a command and
connected mode so that AT Commands can be issued to the device remotely. The escape sequence
guard time is specified by S Register 12 and is the same as per the ^^^ escape sequence. By default
the guard time is set to 100 milliseconds. The remote device issues ATO as normal to return to data
mode. (Refer to step 12)
For this command to be effective S Register 536 must be set to 1.
Response:
CONFIgURINg
THE BTM410/411