Appendix B – Detailed Examples
Multi-Tech Systems, Inc. AT Commands for Wireless Modems with IP Connectivity (S000333D)
49
Appendix B – Detailed Examples
Serial Communication
This example shows the serial port configuration and syntax for communication between the modem
and the attached equipment.
Configuration
Serial port data rate
Apply to the software the same serial baud rate as the one running on the attached
equipment.
AT+IPR parameter
Flow Control
Apply to the software the same flow control mechanism as the one running on the attached
equipment: either hardware (RTS/CTS) or none.
AT+IFC parameter
Serial echo
Enable or disable the echo over the serial port of the characters received by the software.
ATE parameter
Result code
suppression
This parameter selects the activation or suppression of the response codes returned by the
software: response or no response.
ATQ parameter
Response format
This parameter selects the format of the response codes returned by the software: numeric
or alpha-numeric responses.
ATV parameter
Note
Data format is: 8 data bits, no parity, 1 stop bit.
Output
Viewing a parameter
After typing
AT#
Mnemonic
?
The modem sends the following sequence over the serial port:
if the ATQ configuration allows the response message sending, and whatever is the ATV
value (0 or 1)
#Mnemonic: value[CR][LF]
[CR][LF]OK[CR][LF]
the value is between “” if it is a string.
Indication/ Response
message from the
modem
The modem sends indications and return codes over the serial port with the following syntax:
if the ATQ configuration allows the response message sending,
ATV1
ATV0
[CR]numeric
code[CR]
[CR][LF]
For an #CME ERROR, the format of the response is:
Indication message in text
[CR]#CME ERROR: Value [CR][LF]
[CR][LF]
Writing a parameter
After typing
AT
#
Mnemonic=value
, the software sends the following sequence over the serial
port (upon completion). Value shall be between “” if it is a string. The “” are not required if the
value is an integer.
if the ATQ configuration allows the response message sending,
ATV1
ATV0
[CR][LF] [CR]0[CR]
OK[CR][LF]
Note
A 1 second delay shall be introduced before each AT# command issued for writing
parameters value.