Part 1 – AT Commands for All Universal IP Devices
#OTCP – Open a TCP Connection
Definition:
Syntax:
id:
Values:
#OUTPORT – UDP/TCP Local Port Number
Definition:
Syntax:
Values:
Default:
Universal IP AT Commands Reference Guide (Document S000457G)
Downloaded from
Elcodis.com
electronic components distributor
This command sent by the attached host directs the TCP/IP stack to open a TCP connection to
the specified TCP server. Once an IP link is established, the attached host can open a TCP
connection at any time (except when the TCP/IP stack software is already in a process using
TCP resources).
This TCP connection may be closed by the remote TCP server or by the attached host via
sending an ETX character on the serial port (depending on the DLEMODE parameter).
DLEMODE Value Notes:
Depending on the DLEMODE value, the attached host may close this TCP connection by sending
an ETX character.
If the DLEMODE parameter is set to 1, the TCP/IP stack will only interpret an <ETX> character
•
as a close request if it's not preceded by a <DLE> character. As a consequence, the attached
host must send <ETX> characters preceded by <DLE> characters, and it must also code
<DLE> characters in <DLE><DLE>. Similarly, each <ETX> character present in the payload
data of the TCP frame will be coded by the TCP/IP stack on the serial port as <DLE><ETX>.
Each <DLE> character will be coded as <DLE><DLE>. The attached host must then decode
the TCP socket flow to remove these escape characters.
If DLEMODE is set to 0, the host cannot close the TCP connection (unless an error occurs).
•
If the remote TCP server closes the connection, the TCP/IP stack sends an ETX character on the
serial port.
AT#OTCP=id
Enter a Profile Setting: 1 or 2 {1,2}
DELMODE
TCPPORT
TCPSERV
TCPTXDELAY
Controls the local port that the UDP/TCP connection is bound to.
Set Value:
AT#OUTPORT=<Port Number value>
View Values:
AT#OUTPORT? or AT#VALL
Set the port number local connection will use:
From 1 to 5 numeric digits (0 to 9).
Note:
Numbers above 65,535 are illegal since port identification fields are 16-bits long in the
IDP header.
37500
Chapter 5 – TCP Commands
34
Need help?
Do you have a question about the SocketModem iCell MTSMC-G2-IP and is the answer not in the manual?