RIOTEC CO. LTD R8001 Manual Do Utilizador
Version 1.4, 2012/10/4
Appendix A: AT Command
The modem-like AT Command set of BT-1041 is based on Command/Response handshake. The
following sections describe syntax and commands used in command interface for the user to configure
and control BT-1041.
A.1. AT Command Format
The AT command format is:
AT<cmd><cr> or AT<cmd>=<value><cr>
*** <cmd> represents specified command; <cr> represents \r
A.2. AT Command Response Format
The AT command response format is:
<cr><lf><Response Code><cr><lf>
*** <cr> represents \r; <lf> represents \n
There are two categories of Response Code:
■ Category 1 Response Code:
Example
Meaning
Condition & Notes
\r \n 1 \r \n
OK
\r \n 2 \r \n
ERROR
ie, AT+INQ = 000000,
15
,10 \r
(1 <= maxResponses <=
10
)
\r \n 3 \r \n UNKNOWN
ie, AT+
ABC
\r
(command ABC is not available)
\r \n 4 \r \n
FAILED
ie, command/response successfully finished;
result to be no match
■ Category 2 Response Code:
Format
Example
Example
AT+<cmd><cr>
AT + GLN \r
Host send Get local name command
AT+<cmd>=<value><cr> AT + PIN = 12345678 \r
Host send Set pin code command
Page.
15