EasyManua.ls Logo

Sys Tec Electronic GW-003 - UDP;TCP Server Interface

Default Icon
108 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CAN – Ethernet Gateway
26 © SYS TEC electronic GmbH 2007 L-1032e_9
4.2.2 UDP/TCP Server Interface
The UDP server interface (
udpserv) awaits UDP connection queries
from another Gateway and then creates a new UDP connection, which
is used for the CAN message exchange. Likewise, the TCP server
(
tcpserv) awaits TCP connection queries and then creates a TCP
interface for communication if required.
The UDP/TCP interfaces created in this manner are removed by the
UDP/TCP server when the connection is ended or aborted. In order to
be able to react to TCP- as well as UDP-based queries, a TCP and a
UDP server interface both have to exist on the Gateway.
A UDP server interface is created with the command
mkif udpserv
using the next available interface number. The directory name is
chosen automatically and is
/if/udpserv0 for the first interface.
A TCP server interface is created with the command
mkif tcpserv
within /if/tcpserv0.
Possible options:
<option> ::= {port:<num>} | {trig:<cnt>[:<time>]}
<num>
contains the port number where the interface awaits
queries (default: 8234)
<trig> ::= trig:<cnt>[:<time>]
These parameters can be used to control the transmission of CAN
messages in TCP/UPD packets. A trigger threshold is set which
enables the transmission of a specific minimum number of CAN
messages in a UDP/TCP packet. To ensure that the packets are
transmitted after a maximum amount of time, even if the
minimum number of CAN messages has not been reached, an
additional timer event can initiate the transmission of the
UDP/TCP packet. These parameters are applicable for

Table of Contents