
Vhandy Technology
GCAN-212 user manual
devices. It always waits for the connection of the client (TCP Client), and can
carry out two-way data communication after establishing a TCP connection
with the client. The process of establishing communication is shown in Figure
3.1.
Figure 3.1 Schematic diagram of TCP Server mode
3.2.2 TCP Client mode
In TCP Client mode, GCAN-212 will actively connect with the preset TCP
server. If the connection is unsuccessful, the client will continue to try to
establish a connection with the TCP server according to the set connection
conditions. After establishing a TCP connection with the TCP server, two-way
data communication can be carried out. The process of establishing
communication is shown in Figure 3.2.
Figure 3.2 Schematic diagram of TCP Client mode
3.2.3 UDP mode
UDP mode uses UDP protocol for data communication. UDP is a non-
connection-based communication method. It cannot guarantee that the data
packets sent to the target host are received correctly. Therefore, in the
occasions with high reliability requirements, the upper-layer communication