How to Combine Multiple RS485 Interfaces and Connect Them to One Interface

2023-06-16 usr News
serial port to ethernet converter,RS485 chips,RS485 interfaces

How to combine multiple RS485 interfaces and connect them to one interface

RS485 interface is a serial communication protocol. Allow multi-address communication.


Multiple RS485 ports are used for communication. First, set the main communication port, then set different communication addresses for other ports, and set the communication timing. A 485-bus communication network can be built.


How to realize multiple RS485 communication

RS485 how to achieve multiple RS485 communication:

RS485 adopts differential signal negative logic, where + 2V ~ + 6V represents "0" and -6V ~ -2 V represents "1". RS485 has two kinds of connections: a two-wire system and a four-wire system. The four-wire system is a full-duplex communication mode, and the two-wire system is a half-duplex communication mode.


RS485 and RS232 are both communication interfaces based on the serial port to ethernet converter, and the operation of data sending and receiving is the same, so they use the same underlying driver of WinCE. But they have very great differences in that communication mode in practical application, RS232 interface is a full duplex data communication mode, and the RS485 interface is a half-duplex data communication mode, the sen and receiving of the data can't go on at the same time, in ord to guarantee the sending and receiving of the data does not conflict, Correspondingly, the process of sending and receiving must be strictly separated in software.


The half-duplex network composed of an RS485 interface is generally a two-wire system (in the past, there was a four-wire system connection method, which could only realize point-to-point communication, but now it is rarely used), and shielded twisted pair transmission is mostly used. In the RS485 communication network, the master-slave communication mode is generally used, that is, a master with multiple slaves.In many cases, an RS-485 communication link is simply connected by using a twisted pair to connect the "A" and "B" ends of each interface. The RS485 interface connector adopts the DB-9 9-core socket, the interface with the intelligent terminal RS485 adopts DB-9 (hole), and the keyboard interface RS485 connected with the keyboard adopts DB-9 (pin).


Why should RS485 realize multi-host control?

RS485 adopts the single-duplex working mode. In order to prevent competition on the bus, there is only one master, and the mode of one master inquiry and one slave response is adopted. But sometimes, we really need multiple hosts to monitor RS485 devices, for example, three computers can monitor the same RS485 devices, and it is better to share the RS485 bus. Although this problem is often encountered in practice, it has not been well solved. The difficulty is that the two hosts are completely independent, so they have no coordination mechanism. If the two hosts ask for the slave device at the same time, it will inevitably cause data conflict on the RS485 bus.


RS485 cabling specification

The RS485 signal line cannot be wired together with the power line. In the actual construction, because the wiring is through the pipeline, the construction party sometimes directly ties the 485 signal line and the power line together for convenience. Because the strong current has a strong electromagnetic signal to interfere with the weak current, the 485 signal is unstable, resulting in unstable communication.


The 485 signal line may use a shielded wire or a non-shielded wire as wiring. The 485 signal is transmitted in differential mode, that is, the voltage difference between 485 + and 485- is used as the signal transmission.


Correct Wiring Mode of RS485 Communication

The ideal line is twisted-pair: it is better to use one pair of twisted-pair for the two half-duplex lines, so that the two lines are twisted, and the interference level added to the two lines is offset to achieve the anti-interference effect. One pair is used for receiving two lines and the other pair is used for transmitting two lines in full duplex. RS485 has no power transmission requirements, so the requirements for wire diameter are not high.


In practical engineering, the outdoor water-blocking twisted pair is usually purchased to ensure the protection performance of the line. But some engineers will use RVV cable, which is also possible, but the anti-interference is worse. In this way, some engineers use RVVP cable (with shield), which is not good, because the increase of capacitance between lines will affect the transmission quality, and the baud rate of transmission needs to be reduced.


The setting of the baud rate has a certain corresponding relationship with the length of the cable (including the total length of the branch). The longer the line is, the lower the baud rate should be set to be more stable.


No matter what kind of cable is chosen, bus architecture should be adopted as far as possible, star connection should be reduced, branch lines should be as short as possible, and daisy-chain connection should be adopted as far as possible, that is, the bus is connected to the first node and then jumped to the next node.


It is better to remove the branch line of the unconnected equipment from the bus, otherwise, it is easy to cause interference. At the end of the bus, if the received signal is not good, a 120-ohm wire resistor can be added across the signal line. Do not add intermediate equipment, otherwise, it will increase the line loss and reduce the number and distance of equipment.


The RS485 chips of different devices are usually different, and there are different types of chips with different loads, which are usually not directly visible to engineers. So that is to say, the maximum number of devices connected to different devices on the bus is uncertain. For the same number of devices connected, see the requirements of the device description.


  • +1 Like
  • Add to Favorites

Recommend

This document is provided by Sekorm Platform for VIP exclusive service. The copyright is owned by Sekorm. Without authorization, any medias, websites or individual are not allowed to reprint. When authorizing the reprint, the link of www.sekorm.com must be indicated.

Contact Us

Email: