什么是 AT Command
控制调制解调器的命令。由美国Hayes公司开发,利用字符序列形式的命令对调制解调器进行控制。因字符串的开头冠以“AT”而得名。目前,调制解调器和ISDN等异步通信用的设备几乎都采用AT命令来控制,使用十分普及,几乎可认为就是业界标准。不过,由于各公司常有自己扩充的特殊命令,因此,除了基本命令之外的内容因厂家和机种不同而异.
The device will be referred to using various terms, to include: MS(Mobile Station), TA (Terminal Adapter), DCE (Data Communication Equipment), orME (Mobile Equipment).The device can be controlled via the use of aDTE (Data Terminal Equipment) platform by issuing the AT commands via a serialinterface
它可以将被指利用到各种条件,包括:MS(移动电台),助教(终端适配器),DCE(数据通信设备),或者我(移动设备)。
它可以控制通过使用一个终端设备(数据终端设备)平台通过发出AT命令通过一个串行接口。
2.5 Command Syntax
The attention or “AT” prefix is required prior to entering any command. All commands require a carriage return or <CR> following the entry of the desired command. All command responses are encapsulated by a carriage return and line feed or <CR><LF>. The ASCII display of these characters is suppressed with only the modem response being presented.
In addition to terminating AT commands, the carriage return <CR> is also used to abort commands that are executing.
Most AT commands complete immediately so there is no opportunity to abort them, for instance ATI. However, Some commands like AT+COPS or AT+CFUN can actually take several seconds to complete. The AT command interface is said to be in execution mode when a command is running and has not returned a result code (OK/ERROR). A second <CR> entered while the AT command interface is in execution mode will abort the command and return the interface to command mode.
Some AT commands require additional input. After terminating these commands with a <CR> the AT command interface enters line edit mode. While in line edit mode all characters are accepted except CNTL-Z. CNTL-Z terminates line edit mode and the AT command interface enters execution mode. Like before, at this point another <CR> will abort the command.
AT message concatenation can be done using the ; <semicolon> between commands.
The following examples demonstrate the potential usage of
The attention or “AT” prefix is required prior to entering any command. All commands require a carriage return or <CR> following the entry of the desired command. All command responses are encapsulated by a carriage return and line feed or <CR><LF>. The ASCII display of these characters is suppressed with only the modem response being presented.
In addition to terminating AT commands, the carriage return <CR> is also used to abort commands that are executing.
Most AT commands complete immediately so there is no opportunity to abort them, for instance ATI. However, Some commands like AT+COPS or AT+CFUN can actually take several seconds to complete. The AT command interface is said to be in execution mode when a command is running and has not returned a result code (OK/ERROR). A second <CR> entered while the AT command interface is in execution mode will abort the command and return the interface to command mode.
Some AT commands require additional input. After terminating these commands with a <CR> the AT command interface enters line edit mode. While in line edit mode all characters are accepted except CNTL-Z. CNTL-Z terminates line edit mode and the AT command interface enters execution mode. Like before, at this point another <CR> will abort the command.
AT message concatenation can be done using the ; <semicolon> between commands.
The following examples demonstrate the potential usage of