UDP Connections i-modul Ethernet 3.x
5 UDP Connections
TCP connections have a connection management, whereas for UDP connections
the data packets are simply dispatched to the network. The UDP protocol does not
confirm if the data was actually received by the recipient. For UDP it may also oc-
cur that sent data packets arrive at the recipient in a different order (due to rout-
ing). All these tasks must be handled by the user protocol resting on the UDP pro-
tocol.
Note
As a rule, the use of TCP is preferable to UDP connections. Only use
UDP when you are aware of its disadvantages.
However, if an UDP connection is inevitable, note the following.
An empty UDP packet is sent during the UDP connection setup (ATD) to in-
dicate the connection request to the remote terminal.
While the connection to the module is set up (ATU), each UDP packet will
trigger the output of the message RING, either until the connection is auto-
matically accepted (ATS0=<n>) or until it is manually accepted (ATA). A de-
tailed description of the behavior with an UDP connection depending on the
setting of ATS0 can be found in the description of the AT commands.
Note
For the connection of two i-modules, both modules must be set
to ATU.
To terminate the UDP connections between two i-modules, the escape sequence
(+++) must be entered on both sides to switch the modules from transparent to
command mode.
As the escape characters are also transmitted to the recipient, it is possible for UDP
connections that the +++ sequence of module #2 will trigger RING at module #1
which is already in command mode. If ATS0=1 is set at module #1, this will auto-
matically result in the connection acceptance being repeated.
The value for ATS0 should therefore be larger than 3. The optimum manual connec-
tion acceptance is performed with ATS0=200 and ATA.
If larger amounts of data are sent via UDP and the receiving module does not man-
age to output the data at the serial interface in time, this may result in malfunctions
despite a good UDP connection. The network-side recipient buffer will overflow
without the recipient being able to indicate an interval signal to the sender.
16