User guide

Part 1 – AT Commands for All Universal IP Devices Chapter 5 – TCP Commands
Universal IP AT Commands Reference Guide (Document S000457H) 38
Chapter 5 – TCP Commands for All
Universal IP Devices
Set Commands
The id parameter is used for setting up profiles; Profile 1 and Profile 2. To view parameters including profile
settings, use AT#<cmd>=id or AT#VTCP=id or AT#VALL.
#DLEMODE – Set DLE Mode
Definition: When using socket TCP, the attached host has the choice whether or not to code the ETX
character.
Syntax: Set Value: AT#DLEMODE=id,<DEL Mode value>
View Value: AT#DLEMODE=id or AT#VTCP=id, AT#VALL
id: Enter a Profile Setting: 1 or 2 {1,2}
Values: Set the value that the Profile will use:
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: 1
#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.
Syntax: Set Value: AT#TCPPORT=id,<TCP Port number for remote peer value>
View Value: AT#TCPPORT=id or AT#VTCP=id, AT#VALL
id: Enter a Profile Setting: 1 or 2 {1,2}
Values: Set the value that the Profile will use:
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