UMAX140900RST. Ethernet to CAN Converter. Version 1
Page: 7-41
In addition to the server role, the device can also act as a client, if the
Auto Connect to Remote
configuration parameter is set to
Yes
. In this case, the device will try to establish a connection
with a customer specified remote server.
The total number of remote connections is limited to 10. If the CAN network traffic is high, this
number should be further reduced, or the connections will become unstable due to limited
internal resources of the microcontroller, which are dynamically allocated between open
connections.
The
Communication Device
can use either UDP or TCP internet protocol (IP), depending on
the value of the
Device Port Type
configuration parameter.
2.3.1.1 UDP Protocol
The UDP protocol is set by default. Since it is a connectionless protocol, one data socket
serves all device communication needs, see Figure 3.
New
connection?
Identify new connection
by analyzing incoming
traffic
No
Yes
Input/Output Communication
Up to 10
connections
Connection Maintenance
Server
Client
Server connection will
expire, if inactive
Client connection will
never expire
DeviceIpAddr:DevicePort
Device Communication Flow
Data Socket
Initialize remote connection if
AutoconnectToRemote==True
Figure 3. Communication Device. UDP Protocol
All connections with the device are virtual. On the server side, the device analyzes the
incoming traffic to check for the new connections. Once a new IPAddress:Port combination is
detected, the connection is established and the device starts sending CAN data with Heartbeat
messages to the new node.
There are no restrictions on the IP address and port for the incoming connections.