AT commands
Digi TransPort User Guide
124
\
PORT command: Set the active port for text commands
Text commands which affect the settings associated with the serial ports normally operate on the
port at which they are entered, such as entering the
AT&K
command from a terminal connected
to ASY 1 will affect only the flow control settings for port 1.
The
AT\PORT
command is used to select a different “active” port from that at which the
commands are entered. For example, if your terminal is connected to port
0
and you need to
reconfigure the settings for port
2
, you would first enter the command:
at\port=2
PORT 2
OK
Port
2
is now the active port and any AT commands or changes to S registers settings which affect
the serial ports will now be applied to port
2
only. This includes:
Commands:
Z
,
&D
,
&F
,
&K
,
&V
,
&Y
,
&W
S registers:
S31
,
S45
The
AT\PORT?
command will display the port to which you are connected and the active port for
command/ S register settings. For example:
at\port?
PORT 2
ASY0
OK
Here,
ASY2
is the active port and
ASY0
is the port at which the command was entered. If the
default port and the port to which you are connected are the same, only one entry will be listed.
To reset the default port to the one to which you are connected use the
AT\PORT
command
without a parameter.