
Vhandy Technology
GCAN-212 user manual
protocol must be used to ensure that the data is correct; but because of the UDP
method It is a relatively simple communication method, it will not increase too
much additional communication volume, and can provide a higher
communication speed than the TCP method to ensure the real-time
performance of data packets. In fact, when the network environment is
relatively simple and the network communication load is not too large, the
UDP working method is not easy to make mistakes. The status of the devices
working in this mode are equal, and there is no server and client. The
communication process is shown in Figure 3.3.
Figure 3.3 Schematic diagram of UDP mode communication
3.3 Connect with CAN bus
GCAN-212 is connected to CAN bus by connecting CAN_H to CAN_H and
CAN_L to CAN_L to establish communication.
The CAN bus network adopts a linear topology, and the two farthest terminals
of the bus need to be installed with 120Ω terminal resistors; if the number of
nodes is greater than 2, the intermediate nodes do not need to install 120Ω
terminal resistors. For branch connections, the length should not exceed 3
meters. The connection of the CAN bus is shown in Figure 3.4.
Note: CAN bus cable can use ordinary twisted pair and shielded twisted pair.
The theoretical maximum communication distance mainly depends on the bus
baud rate. The relationship between the maximum bus length and the baud rate
is shown in Table 3.1. If the communication distance exceeds 1km, the cross-
sectional area of the line should be greater than Φ1.0mm2. The specific
specifications should be determined according to the distance. The general rule