July 3, 2023 The working principle and use of RS485 signal conversion to Ethernet

RS485 communication serial bus is widely used in the communication distance from tens of meters to several kilometers. RS485 uses balanced transmission and differential reception, so it has the ability to reject common mode interference. Coupled with the high sensitivity of the bus transceiver, which can detect voltages as low as 200 mV, the transmitted signal can be recovered from kilometers away.

RS485 adopts half-duplex working mode, and only one point can be in the transmitting state at any time, so the transmitting circuit must be controlled by the enable signal. RS485 signal to Ethernet signal, that is, RS485 Ethernet converter equipment, has its role in industrial, security, remote meter reading and other scenarios, using its signal conversion function to achieve signal conversion and improve the network.

How it works

RS485 to Ethernet provides the function of converting serial port to network, which can convert RS485 serial port to TCP/IP network interface and realize bidirectional and transparent data transmission between RS485 serial port and TCP/IP network interface. The serial device can immediately have the function of TCP/IP network interface, connect the network for data communication, and expand the communication distance of the serial device.

RS485 is a differential signal negative logic, + 2V ~ + 6V represents "1", and -2V ~ -6V represents "0". RS485 communication interface is divided into two types, one is two-wire system, and the other is four-wire system. The two-wire system is a half-duplex communication mode, and the four-wire system is a full-duplex communication mode. RS485 communication interface, strong anti-interference ability, good anti-noise interference.In industrial control, RS485 bus is widely used because of its simple interface, convenient networking, long transmission distance and other characteristics.

The RS485 interface is a half-duplex data communication mode. The half-duplex network composed of the interface is generally a two-wire system in use, and the shielded twisted pair is often used for transmission. Such a wiring mode is a bus-type topology, and 32 nodes can be connected to the same bus at most. RS485 in the communication network uses a master with multiple slaves.In most cases, a simple pair of twisted pairs is used to connect the two ends of the "A" "B" "of each interface when connecting RS485 communication. The RS485 interface connector adopts the 9-core socket head of DB-9, the RS485 interface of the intelligent terminal adopts DB-9, and the keyboard interface RS485 connected with the keyboard adopts DB-9.

Advantages

The wiring is simple: only 2 wires are needed, and the shielded wire interface of the network cable is adopted;

Long communication distance: differential mode communication is adopted, and the communication distance is long;

Multi-machine networking: RS485 supports mounting multiple terminals on line, and realizes multi-machine communication by means of query-response;

Solution

RS485 to Ethernet hardware converter is divided into two types: RS485 Ethernet converter and serial networking module.

The RS485 toEthernet converter realizes the conversion of the RS485 interface into the TCP/IP interface, and with the use of the virtual serial port driver on the computer side, the TCP/IP connection is virtually converted into a serial port again.

The virtual serial port driver creates virtual serial port numbers such as COM5 and COM6 in the driver layer of the computer, and binds the remote RS485 Ethernet converter with the virtual serial port to realize communication.

After using the hardware and software system of the solution, the Rs485 device is equivalent to the expansion of the network, and the original hardware and software programs do not need to be modified.

RS485 to Ethernet Converter

Basic functions:RS485 serial port to Ethernet, bidirectional transparent transmission, support Modbus forwarding;

Guide rail installation:exquisite volume, standard 35mm guide rail installation, easy layout and installation, convenient for later maintenance;

Operating mode:

● TCP Server: As a Server, the device can be set with two TCP clients to perform transparent data transmission with the device at the same time, so as to solve the problem of simultaneous communication between multiple clients and the device. It can also be used as a standby network channel for switching communication;

● TCP Client: As a Client, the device can be set to face four server addresses at the same time, actively initiate connections to the server, and as a Client, support the setting of custom heartbeat packets and handshake packets;

● UDP Server: as the Server end, the device supports multiple UDP clients to transmit data with the device;

● UDP Client: as the Client end, the device actively communicates with the UDP Server and transparently transmits data with the RS232 serial port;

● UDP multicast: as the Client end, the device can realize the mutual communication between the devices in the multicast;

● Http server: as the HTTP server, the device supports HTTP communication in the local area network through HTTP (get);

304
Ethernet Serial Server1*RS485Modbus Gateway

What are the features of the RS485 repeater

RS485 is convenient for multipoint interconnects, eliminating many signal lines. Using RS-485, a distributed system can be networked, allowing up to 32 drivers and 32 receivers to be connected in parallel. In view of the shortcomings of RS232-C, the new standard RS485 has the following characteristics:

(1) Electrical characteristics of RS485: logic "1" is represented by the voltage difference between two lines + 2 V ~ + 6 V, and logic "0" is represented by the voltage difference between two lines -6 V ~ -2 V. The interface signal level is lower than RS232-C, so it is not easy to damage the interface circuit chip, and the level is compatible with the TTL level, so it is convenient to connect with the TTL circuit.

(2) Maximum data transmission rate: 10Mbps

(3) RS485 interface adopts the combination of balanced driver and differential receiver, which has strong anti-common-mode interference ability, that is, good anti-noise performance.

(4) The standard maximum transmission distance of RS485 interface is 4000 feet, but in fact it can reach 3000 meters.

(5) The RS232-C interface allows only one transceiver to be connected on the bus, that is, single-station capability; The RS-485 interface only allows up to 128 transceivers to be connected on the bus, that is, it has multi-station capability, so users can easily establish a network of devices using a single RS485 interface.

RS485 repeater, as RS485/422 data relay communication product, features and functions:

High efficiency: The 485 repeater adopts a professional I/O circuit and uses the automatic control technology of data flow direction to automatically distinguish and control the direction of data transmission. It can easily switch between the RS485 bus and the RS422 bus without changing the software and hardware. Zero delay design is adopted, and the transmission speed is fast. Automatic detection of serial port signal rate, no need to set the serial port baud rate.

Anti-interference: RS485 bus requires RS485 equipment to be as close as possible to the bus backbone. Using RS485 bus repeater, the bus topology can be changed into "T" topology, which is convenient for field construction. If the RS485 transmission line reaches a certain distance and is in a complex external environment, it is vulnerable to external interference such as electromagnetic induction of the external environment.

Stability: The lightning protection tube in the RS485 repeater can effectively suppress lightning and ESD, and provide lightning surge protection power of 600 W per line. Absorb external interference such as electromagnetic induction of the external environment, thereby protecting the stability of the RS485 bus.

Expansibility: Due to the extension of RS485 bus transmission distance or the increase of devices in 485 bus, 485 signals will be continuously attenuated, which may lead to 485 bus instability or even unavailability. 485 bus repeater can enhance and amplify the existing RS485 signals. Increase the number of RS485 devices in an RS422/RS-485 bus network.

Isolation: In the field construction, due to the long distance of the 485 bus, the potential difference is formed, resulting in common mode interference, resulting in reduced stability. Photoelectric isolator can provide isolation voltage, effectively isolate and prevent common-ground interference. The DC/DC module can completely isolate the power supply at both ends.

Different from RS232

RS232 interface standard. RS-232 interface conforms to the serial data communication interface standard formulated by the Electronic Industry Alliance (EIA) of the United States. It is widely used in the connection of computer serial interface peripherals. For example, some old PCs are equipped with RS232 interface. RS232 is one of the mainstream serial communication interfaces. RS is the abbreviation of English "Recommended Standard", 232 is the identification number, and C represents the number of revisions.

The RS232-C bus standard has 25 signal lines, including a main channel and an auxiliary channel. In most cases, the main channel is mainly used. For general duplex communication, only a few signal lines are needed, such as a transmit line, a receive line, and a ground line.Another reason for the short transmission distance is that RS232 is a single-ended signal transmission, which has problems such as common-ground noise and inability to suppress common-mode interference, so it is generally used for communication within 20 m.

Due to the early appearance of RS232 interface standard, it is inevitable that there are shortcomings. The RS232-C standard specifies data transmission rates of 50, 75, 100, 150, 300, 600, 1200, 2400, 4800, 9600, 19200 baud per second.In a device network composed of RS232 or RS485 devices, if the number of devices exceeds two, RS485 must be used as a communication medium, and the devices in the RS485 network can communicate with each other only through the transfer of a Master device, which is usually a PC, and only one Master device is allowed to exist in the device network. The rest are all Slave devices.Fieldbus technology is based on ISO/OSI model and has a complete software support system, which can solve the problems of bus control, conflict detection, link maintenance and so on.

302
Ethernet Serial Server1*RS232Modbus Gateway


Field of application

RS485 is often used in long-distance transmission with high data transmission rate, and the commonly used equipment includes point-of-sale terminals (POS), measuring instruments and large special automation machines. The commonly used RS232 is now generally used in short-distance transmission with low data transmission rate, and can work effectively in noisy environments, such as factories, public sites and so on.Its common equipment includes low-speed modems, industrial control equipment, programmable logic controllers (PLC), computer numerical control (CNC) machine tools, robots, embedded control computers, medical instruments and equipment, and embedded controller development systems.

However, in normal applications, we often need to convert between two different interface types. At this time, we can use the popular USB interface, which can help us convert to RS232 interface and RS485 interface.

RS232 is suitable for short-distance and low-rate transmission, while RS485 is suitable for long-distance communication transmission. RS485 is a new interface standard to overcome the shortcomings of RS232 interface. Because of its good anti-noise interference ability and multi-station ability, it has become the preferred standard.

What Can I do if RS485 bus is frequent fault

In the conventional RS485 bus communication, the RS485 repeater, RS485 converter and other equipment will encounter many problems in the application process, such as: unable to communicate, abnormal data upload and download, communication interference, abnormal flickering of communication indicator light, communication instructions on and off, which affect the normal use. The usual detection method is as follows:

1.Common ground method: use one wire or shielded wire to connect the grounding points of all RS485 equipment to avoid potential difference affecting communication between all equipment.

2.Termination resistance method: Connect a termination resistance of 120 ohms in parallel on RS485 + and RS485- of the last RS485 device to improve the communication quality.

3.Middle section disconnection method: check whether the equipment is overloaded, the communication distance is too long, and the damage of a certain equipment has an impact on the entire communication line by disconnecting from the middle;

4.Separate wire pulling method: simply and temporarily pull a wire to the equipment to rule out whether the communication failure is caused by wiring.

5.Converter replacement method: Replace several converters to rule out whether the converter quality problem affects the communication quality.

6.Notebook debugging method: First ensure that the notebook computer is a device with normal communication, and then replace it with another computer for communication. If it is possible, it indicates that the serial port of the computer may be damaged or injured.

REQUEST A QUOTE
Copyright © Jinan USR IOT Technology Limited All Rights Reserved. 鲁ICP备16015649号-5/ Sitemap / Privacy Policy
Reliable products and services around you !
Subscribe
Copyright © Jinan USR IOT Technology Limited All Rights Reserved. 鲁ICP备16015649号-5Privacy Policy