USR-CANET200-User-Manual
Technical Support:
Jinan USR IOT Technology Limited
www.usriot.com
10
2.4.2.TCP Server mode
CANET200 works in TCP Server mode will listen network connections and build network connections, commonly
be used for communication with TCP clients on a LAN. According to the TCP protocol, TCP Server has
connection/disconnection status differences to ensure reliable data transmission.
CANET200 works in TCP Server mode will listen local port which user set and build connection after receiving
connection request. Data will be sent to all TCP Client devices which connect to CANET200 in TCP Server mode
simultaneously. TCP Server mode also supports Keep-Alive function.
Socket of CAN interface supports at most 4 Client connections in TCP Server mode and socket of serial port
supports at most 1 Client connection in TCP Server mode.
Figure 8 TCP Server mode
2.4.3.UDP Client mode
UDP transport protocol provides simple and unreliable communication services. No connection connected
/disconnected. User only needs to configure Remote IP/Port then can realize data transmission.
In UDP Client mode, CANET200 will only communicate with Remote IP/Port. If data don
’
t from Remote IP/Port, it
won
’
t be received by CANET200.
In UDP Client mode, if user configure Remote IP to 255.255.255.255, CANET200 can achieve UDP broadcast to all
network segment and receive broadcast data. User can also configure Remote IP to xxx.xxx.xxx.255 to realize UDP
broadcast in same network segment.
In UDP mode, data packet size is suggested to less than 650 bytes(50 CAN frame) and UDP packet be transmitted
in every second is suggested to less than 4000 CAN frame.