User's Manual Part 2

10.1: Command Line Format Chapter 10: Syntax
21
Chapter 10
Syntax
10.1 Command Line Format
Each command line sent from the DTE to the DCE is made up of a prefix, body and
terminator. As prefix for the Serial Port Adapter AT commands, only AT (ASCII
065, 084) and at (ASCII 097, 116) can be used. There is no distinction between
upper and lower case characters. The body is a string of characters in the range
ASCII 032-255. Control characters other than <CR> (carriage return; ASCII 013)
and <BS> (back space; ASCII 008) in a command line are ignored. The terminator
is <CR>.
Commands denoted with a * character are extended AT commands, i.e. Serial
Port Adapter specific AT commands.
S-registers are not used and not supported, except for the S2 register.
Multiple commands in the same command line are not supported. Each command
has to be terminated by a <CR> before a new command can be sent. A command
must not be larger than 300 characters.
A command can either be:
Read commands without parameters:
AT<command>?<CR>
Write commands without parameters:
AT<command><CR>
Read and write commands with parameters:
AT<command>=<parameter1>, parameter2>, <parameterN><CR>
Responses are sent back to the host and can be any of the following:
Successful final message:
<CR><LF>OK<CR><LF>
Successful intermediate/final message with parameters follows an OK message
in some commands. In these cases the OK message works as a confirm mes-
sage only.
<CR><LF><result_response>:<parameter1>, parameter2>, <parameterN>
Error message:
<CR><LF>ERROR<CR><LF>
10.2 Data Types
The definition of each command specifies the data types used for values associated
with the command.
There are four data types:
String
Integer
Enumerator
Bluetooth Device Address