Part 1 AT Commands for All Universal IP Devices Chapter 6 – UDP AT Commands
Universal IP AT Commands Reference Guide (Document S000457K) 45
#UDPDLEMODESet DLE Mode
Description: The attached host has the choice whether or not to code the ETX charact er.
Note: This command is for all devices except the SocketWireless Wi-Fi (MT 810SWM-IP).
Notes: If UDPDLEMODE is disabled, the user MUST use the RS232 DTR signal to perf orm a socket
disconnect or disconnect the network connection
Details: If UDPDLEMODE is enabled, these rules must be followed: The user m ust shield all transmitted
ETX ([x03]) and DLE (x10) characters by preceding these characters with a DLE (x10).
The UIP stack will shield all UDP received ETX ([x03]) and DLE (x10) c haracters by preceding
these characters with a DLE (x10), the user must un-shield by removing the DLE (x10) shield
character.
An example payload to transmit from user to UIP stack:
(x01 x02 x03 x04 x01 x10) must be sent to the UIP stack as: (x01 x02 x10 x0 3 x04 x01 x10
x10). Notice the x10 before the [x03] and before the x10.
An example received payload by the UIP over UDP:
(x01 x02 x03 x04 x01 x10) is received by the UIP stack, the user will rec eive: (x01 x02 x10
x03 x04 x01 x10 x10). Notice the x10 before the [x03] and before the x10.
In summary: Encoding - 0x03 == 0x10 0x03
Encoding - 0x10 == 0x10 0x10
Decoding - 0x10 0x03 == 0x03
Decoding - 0x10 0x10 == 0x10
The REMOTE user does NOT have to perform any function pertaining to this mechanism.
If the user receives an un-shielded 0x03, the socket is finished.
Syntax: AT#UDPDLEMODE=<parameter1>
AT#UDPDLEMODE? Read or display the current setting.
Values: parameter 1
0 No extra processing is needed on DLE (x10) and ETX ([x03]) characters
1 The ETX character is used as a socket disconnect or indicates a sock et disconnect
Responses: \r\n#UDPDLEMODE: VALUE\r\n
\r\nOK\r\n
\r\nERROR\r\n
Command Example(s):
send: AT#UDPDLEMODE=0\r
reply: \r\nOK\r\n
send: AT#UDPDLEMODE?\r
reply: \r\n#UDPDLEMODE: 0\r\n
reply: \r\nOK\r\n
#LUDPSTART Initiate the UDP Session in Listen Mode
Description: Once an IP link is established, and if no other TCP/IP stack resource is active, this command sent
by the attached host directs the TCP/IP stack to initiate the UDP session in liste n mode on the
specified UDP local port UDPPORT.
Syntax: AT#LUDPSTART
Values: UDPPORT
UDPSESRV
UDPTXDELAY
No default