Appendix B – Detailed Examples
Multi-Tech Systems, Inc. AT Commands for Wireless Modems with IP Connectivity (S000333D)
53
Configuring the TCP/IP Stack through the Serial Port
This example shows the communication format for configuring the TCP/IP stack parameters via the
serial port.
Description:
The modem contains a number of parameters that are used to control the transmission sessions over
the Internet. All parameters are stored in the internal memory present on the hardware platform.
Because the modem parameters are stored in nonvolatile memory, they retain their values until they are
changed by a new command.
The AT# commands allow to configure the modem and the AT commands allow to configure the
software.
Syntax:
The syntax of all commands to be sent from the attached equipment to the software through the serial
port is:
AT#<Mnemonic>=<Value>(CR)
AT#
is a prefix required for all the commands. This prefix is not case sensitive and consists of three
ASCII fields, whose values may differ depending on the case used.
<Mnemonic>
is an ASCII text string indicating which parameter is to be changed. This string is not
case-sensitive.
Values:
•
An ASCII string representing the new value of the parameter to be changed. In this case, the value
has to be entered between quotes; For example: AT#POP3SERV=”name.domain.com”
•
A numeric value representing the new value of the parameter to be changed. In this case, the value
can be directly entered without quotes after the =. For example: AT#FTPPORT=21
Note:
(CR)
is a carriage return (ASCII 13) character, signaling the end of the command line.
It is possible to set parameter values while either:
•
Offline
; i.e., not in communication with the attached network). The new parameter values are
immediately stored in the internal memory.
•
Online
; i.e., in communication with the attached network, only if an application process (FTP, email,
etc.) is not currently active. The new parameter values are directly stored into the internal memory.
While offline, or online and not during a process, all characters are echoed over the serial port
according to the echo configuration (ATE parameter)
Requesting the Parameter values
Listing the value
of all parameters
The '
AT#VALL
' command sent over the serial port directs the modem to return the values of
ALL parameters sequentially over the serial port.
AT# Command
AT#VALL
Listing parameter
values sorted by
category
Some additional commands allow the user to list a group of parameter values by category. The
flow control mechanism must match the one running on the attached equipment: hardware or
none.
AT# Commands
AT#VPHY – AT#VPPP – AT#VPOP3 – AT#VSMTP – AT#VMAIL1/AT#VMAIL2/AT#VMAIL3 –
AT#VDNS – AT#VFTP – AT#VTCP
Listing the value
of one parameter
AT# Command
The user can read the value of individual parameters.
AT#parameter?
Example: AT#POP3SERV? Will display the POP3SERV value :
#POP3SERV = Value
Value between “” if it is a string
OK
The software is ready
Notes:
The response format will depend on the setting of the ATV parameter setting.
The displaying of the response codes will depend on the setting of the ATQ parameter setting.