Chapter 5 – TCP Socket Services
Multi-Tech Systems, Inc. AT Commands for Wireless Modems with IP Connectivity (S000333D)
30
Chapter 5 - TCP Socket Services
Parameter Definitions
#DLEMODE Set DLE Mode
Definition:
When using socket TCP, the attached host has the choice whether or not to code the ETX character.
Values:
0
When DLEMODE is set to 0, no specific process is needed on [ETX] characters.
It means that it is not possible for a host to request an end of connection or to receive a clear
indication of the end of a connection from the TCP/IP stack.
1
When DLEMODE is set to 1, the [ETX] character means a request or an indication of end of
connection.
As a consequence, [ETX] characters that belong to the payload data must be sent by the host on
the serial port preceded by a DLE character. Similarly, ETX characters received by the TCP/IP
stack from the Internet are sent to the host through the serial port preceded by a DLE character.
Default
.
id:
{1,2}
Syntax:
Set Value: AT#DLEMODE=id,<value>
Get Value: AT#DLEMODE=id or AT#VTCP=id, AT#VALL
#TCPPORT Set TCP Port for Remote Peer
Definition:
To exchange data over TCP, the TCP/IP stack software must know the port of the remote peer used for
the TCP session.
Values:
From 1 to 5 digits (each digit between 0 and 9 inclusive). Note that numbers above 65,535 are illegal as
the port identification fields are 16 bits long in the TCP header.
Default 0
.
id:
{1,2}
Syntax:
Set Value: AT#TCPPORT=id,<value>
Get Value: AT#TCPPORT=id or AT#VTCP, AT#VALL
#TCPSERV Set Address of Remote TCP Server
Definition:
To exchange data over TCP, the TCP/IP stack software must know the address of the remote TCP
server (or host) that is to be used.
Values:
32-bit number in dotted-decimal notation (i.e., xxx.xxx.xxx.xxx) or
Alphanumeric ASCII text string up to 120 characters if DNS is integrated.
No default.
id:
{1,2}
Syntax:
Set Value: AT#TCPSERV=id,value>
Get Value: AT#TCPSERV=id or AT#VTCP, AT#VALL