How to improve the stability of long-distance communication of LED display

As we all know, data transmission is a very important link in the field of industrial control. The stability of data transmission directly affects the reliability of products. Therefore, how to improve the reliability and stability of data transmission has become a problem that engineers have to face. The following is an example of the problems that arise during the implementation of the LED production kanban display project of the company as an example to pay attention to when using RS-485 as a means of long-distance data communication.



The LED kanban display in this project is a kanban installed in the production workshop to display the actual output and target output. Six screens with the same specifications are distributed in 6 workshops. The length of the cable between adjacent workshops is about 150~200m. The length of the distance plus the interference of the motor running in the workshop makes the LED kanban display communication abnormal, which causes frequent garbled phenomenon.

After careful analysis and repeated experiments, we have started from various aspects: the improvement of the hardware circuit, the improvement of the host computer and the communication protocol of the lower computer, and finally solved this problem smoothly. The following is a detailed analysis and explanation of the key points of the final solution.

1. Attenuation of the signal during transmission

It is not difficult to understand that the signal will be attenuated during transmission regardless of the medium. We can think of the RS-485 transmission cable as an equivalent circuit consisting of several resistors, inductors and capacitors.

The resistance of the wire has little effect on the signal and can be ignored. The distributed capacitance C of the cable is mainly produced by two parallel wires of the twisted pair. The loss of the signal is mainly due to the LC low-pass filter composed of the distributed capacitance of the cable and the distributed inductance. The higher the communication baud rate, the greater the signal attenuation.

Therefore, when the amount of data transmitted is not very large and the transmission rate requirement is not very high, we usually use a baud rate of 9600 bps.

2. Signal reflection in the communication line

In addition to signal attenuation, another factor that affects signal transmission is signal reflection. Impedance mismatch and impedance discontinuity are the two main causes of signal reflection on the RS-485 bus.

1 Impedance mismatch, impedance mismatch is mainly the impedance mismatch between 485 chip and communication line. The reason for the reflection is that when the communication line is idle, the entire communication line signal is disordered. Once such a reflected signal triggers the comparator at the input of the 485 chip, an erroneous signal is generated. Our usual solution is to add the bias resistors of the RS-485 bus line A and B to a certain value, respectively, to pull up and pull down, so that there will be no unpredictable clutter.

2 Impedance discontinuity, as the name implies, is similar to the reflection caused when light enters another medium from one medium. The signal suddenly encounters a small or no cable impedance at the end of the transmission line, and the signal will cause reflection at this place. The most common way to eliminate this reflection is to connect a terminating resistor of the same magnitude as the cable's characteristic impedance at the end of the cable to make the impedance of the cable continuous. Since the transmission of the signal on the cable is bidirectional, a termination resistor of the same size is also connected across the other end of the communication cable.

In this way, the influence of signal reflection can be somewhat reduced. However, in practical applications, since the characteristic impedance of the transmission cable is related to the application environment such as the communication baud rate, the characteristic impedance cannot be exactly equal to the termination resistance, so we cannot completely avoid signal reflection.

3. Influence of distributed capacitance on transmission performance of RS-485 bus

RS-485 transmission cables are usually twisted pairs, and capacitance is generated between two parallel conductors of a twisted pair. At the same time, there is also a similarly small capacitance between the cable and the earth. Since the signal transmitted on the RS-485 bus is composed of a myriad of "1" and "0" bits, when a special byte such as 0x01 is encountered, the level "0" causes the distributed capacitance to be charged for a sufficient amount of time. When the level "1" suddenly comes, the charge accumulated by the capacitor cannot be discharged in a short time, thus causing the deformation of the signal bit, thereby affecting the quality of the entire data transmission.

Therefore, on the one hand, we should try to use a cable with a small distributed capacitance or better quality as the communication line. On the other hand, we should try to reduce the baud rate of communication and give the capacitor enough time to discharge.

4. Develop a simple and reliable RS-485 communication protocol

When the communication distance is short and the application environment is small, we sometimes need only one-way communication to achieve all the functions of the project, but most of the application environment is not so ideal. Whether the integrated wiring in the early stage of the project is professional (such as the signal line and the power line must maintain a certain distance), the communication distance is undeterminable, the degree of interference around the communication line, whether the communication line uses twisted-pair shielded lines, etc., all of which are given to the system. Normal communication has a huge impact. Therefore, it is particularly important to develop a comprehensive communication protocol.

The specific method is to packetize and transmit data, and pack the data by adding each frame of data to the frame header and the end of the frame, wherein one byte is reserved as a check byte at the end of the frame. The lower computer compares the check byte calculated by itself with the check byte transmitted by the host computer, thereby issuing an instruction to the host computer, whether to resend the data of the packet or send the next packet of data. After the package is sent, send another packet until it is finished. Through such a verification retransmission mechanism, we can discard the probability of error and make the communication system operate normally.

5 Conclusion

In the whole process of rectification of the project, we have adopted the following methods: Because the distance between the communication line and the power supply line is very close, and the communication line has no shielding layer, we replace all communication cables; both the upper computer and the lower computer Set the communication baud rate to be adjustable, so that you can select the appropriate value according to the specific conditions during the debugging process; optimize the communication protocol; add 120Ω termination resistors at both ends of the communication cable.
'How to improve the stability of long-distance communication of LED display

We mainly produce EO and PO derivatives which can be used in Cement Additives, Concrete AdmixturesImportant raw material for cement grinding aids and strength improvement agent,  improve the Dispersion, reduce the the energy consumption of electric, save time and reduce the wear and tear of the machines. It can not only improve the early strength of cement, but also improve the late strength of cement.Our products for cement additives and concrete admixtures have been approved by so many International Multi-National Corporations such as SIKA, MAPEI, FOSROC, JIDONG, ect

Chemicals For Cement & Concrete

Chemicals For Cement & Concrete,Chemicals For Cement,Construction Chemical,Chemicals For Concrete

NINGBO LUCKY CHEMICAL INDUSTRY CO. LTD , http://www.chinaluckychem.com