Differences Between RS232/rs422/RS485

Source: Internet
Author: User
Application of Computer Control in Digital Broadcasting Control Center
 
[Author: Hubei TV station Liu Yi Sun Jiye]
 
Nowadays, the hard disk broadcasting system of TV stations is widely used, and automatic computer control has become the mainstream of broadcasting control. It is necessary to summarize the control interfaces and status monitoring interfaces of video devices. The following describes the usage of the hard disk broadcasting system of Hubei TV station. The Computer Control Master must have a serial port, parallel port, USB, ieee1394, Ethernet interface, etc. In the digital TV broadcasting control center, the master uses the serial port and Ethernet interface for control.

1. Serial Port Control

Usually we for Video Server, video recorder, switch station direct broadcast, switching control mainly use serial port, mainly used to RS-232, RS-422 and RS-485 three interface control. The following describes the interface standards and usage of the serial port and the external plug-ins and cables.

RS-232, RS-422 and RS-485 standards only to interface electrical characteristics of the provision, and does not involve connectors, cables or protocols, on the basis of which users can establish their own high-level communication protocol. For example, the video server has multiple rs422 serial communication interfaces. Each interface can be recorded and played by an external computer through the rs422 communication line. In addition to various control hardware interfaces, the video server also provides protocol interfaces. For example, the rs422 interface not only supports the profile protocol of rs422, but also supports protocols controlled by rs422, such as Louth, odetics, and BVW.

RS-232, RS-422 and RS-485 are serial data interface standards, are developed and released by the Electronic Industry Association (EIA), RS-232 released in 1962. RS-422 developed from RS-232, in order to improve the shortcomings of short RS-232 communication distance, low rate, RS-422 defines a balanced communication interface, the transmission rate is increased to 10 Mbps, the transmission distance is extended to 4000 feet (when the speed is lower than Kbps), and a maximum of 10 receivers can be connected on a balanced bus. RS-422 is a kind of one-way, balanced transmission specification for single-machine sending and multi-machine receiving. It is named as TIA/EIA-422-A standard. In order to expand the scope of application, EIA established the RS-485 standard on the basis of RS-422 in 1983, adding multi-point, two-way communication capability, that is, to allow multiple transmitters to connect to the same bus, at the same time, the driving capability and conflict protection characteristics of the transmitter are added, and the common mode range of the bus is extended, which is named Tia/EIA-485-A standard.

1. S-232 Serial Interface Standard

At present, RS-232 is one of the most widely used serial interfaces in PC and communication industry. A RS-232 is defined as a single-end standard that increases the communication distance in low-rate serial communication. The RS-232 adopts the unbalanced transmission mode, that is, the so-called single-ended communication. The data signal that is received and initiated is relative to the signal location. Typical RS-232 signals swing between positive and negative levels, while sending data, the sender drive outputs positive and negative flat at + 5 ~ + 15 V. The negative value ranges from-5 ~ -15 V level. When there is no data transfer, the online is TTL, from the beginning to the end of the data transfer, the online level from the TTL level to the RS-232 level and then return the TTL level. The typical operating level of the receiver is + 3 ~ + 12 V and-3 ~ -12 V. Because the difference between the sending level and the receiving level is only about 2 V to 3 V, the co-mode suppression capability is poor. In addition, the distribution capacitor on the twisted pair wire has a maximum transfer distance of about 15 meters, the maximum speed is 20 kbps. RS-232 is for point-to-point (that is, only one pair of receive, send device) Communication and the load of its drive is 3 k Ω ~ 7kb. So RS-232 is suitable for communication between local devices.

2. RS-422 and RS-485 Serial Interface Standard

(1) Balanced Transmission

RS-422, RS-485 and RS-232 is not the same, the data signal using differential transmission mode, also known as balanced transmission, it uses a pair of twisted pair, the first line is defined as a, the other line is defined as B. Normally, the power plane between drive a and drive B is equal to + 2 ~ + 6 V is a logical state with a negative level ranging from-2 V ~ 6 V is another logical state. Another signal C, there is a "enable" side in the RS-485, and in the RS-422 this is available can be used. The enable end is used to control the disconnection and connection between the transmission drive and the transmission line. When the Enable side works, the sending drive is in a high-impedance state, called the "third State", that is, it is a third State different from the logic "1" and "0.

(2) RS-422 electrical Regulations

Since the receiver adopts a high input impedance and a transmission drive with a stronger drive capability than RS232, multiple receiving nodes can be connected over the same transmission line, and up to 10 nodes can be connected. That is, a master device, the rest is the slave device (Salve), the slave device cannot communicate, so the RS-422 supports two-way communication to multiple. RS-422 4-line interface because of the use of a separate transmission and receiving channel, so do not control the direction of data, any necessary signal exchange between the device can be in the form of software (Xon/xoff handshake) or hardware (a pair of independent twisted-pair wires. The maximum transmission distance of the RS-422 is 4000 feet (about 1219 meters), and the maximum transmission rate is 10 Mbps. The length of the balanced twisted pair is inversely proportional to the transmission rate. The maximum transmission distance can be reached only when the transmission rate is below kbps. The maximum transmission rate can be obtained only within a short distance. Generally, the maximum transmission rate of a 100-meter twisted pair is only 1 Mbps. RS-422 needs a final resistance, the resistance value is equal to the characteristic impedance of the transmission cable. When the moment distance is transmitted, the final resistance is not required, that is, the final resistance is generally less than 300 meters. The final resistance is connected to the far end of the transmission cable.

(3) RS-485 electrical Regulations

Because the RS-485 is developed from the basis of the RS-422, so many RS-485 electrical regulations and RS-422 is similar. For example, the balanced transmission mode is adopted, and the final resistance must be connected to the transmission line. RS-485 can adopt two-line and four-line mode, two-line can realize real multi-point bidirectional communication. RS-485 bus, widely used RS-485 serial bus standard when the communication distance is dozens of meters to thousands of meters. The RS-485 adopts balanced transmission and differential reception, so it has the ability to suppress common mode interference. In addition, the bus transceiver is highly sensitive and can detect voltage as low as 200mV. Therefore, the transmission signal can be recovered from kilometers away. RS-485 uses half duplex mode, at any time only a little in the sending State, therefore, the sending circuit must be controlled by the enabling signal. RS-485 for Multi-Point interconnection is very convenient, can save a lot of signal lines. The application RS-485 can be networked to form a distributed system that allows up to 32 drivers and 32 receivers in parallel. The difference between RS-485 and RS-422 is also that the common mode output voltage is different, the RS-485 is-7 V to + 12 V, and the RS-422 is between-7 V to + 7 V; the RS-485 meets all RS-422 specifications, so RS-485 drives can be used in RS-422 networks. Like a RS-485, The RS-422 has a maximum transmission distance of about 1219 meters and a maximum transmission rate of 10 Mbps. The length of the balanced twisted pair is inversely proportional to the transmission rate. The maximum cable length can be used only when the speed is below kbps. The maximum transmission rate can be obtained only at a very short distance. Generally, the maximum transmission rate of 100-meter long twisted pair wires is only 1 Mbps.

(4) RS-422 and RS-485 network installation notes

The RS-422 supports 10 nodes and the RS-485 supports 32 nodes, So multiple nodes constitute a network. Generally, the network topology adopts a bus-type structure that matches the terminal, and does not support ring or star networks. Pay attention to the following points when building a network:

* A twisted pair cable is used as the bus to connect each node. The length of the egress from the bus to each node should be as short as possible, so that the reflected signal in the egress has the lowest impact on the bus signal.

* Attention should be paid to the continuity of the impedance of the bus characteristics, and signal reflection will occur at the impedance discontinuous points. The following situations are prone to this kind of continuity: different segments of the bus use different cables, or there are too many receivers installed together on a certain bus, in addition, long branch lines are routed to the bus.

In short, a single, continuous signal channel should be provided as the bus.

Type and conversion of two serial ports

The serial port is an interface standard that specifies the electrical standard of the interface. Simply put, it is only a standard of the physical layer. There is no interface plug-in cable and the protocol used, so as long as the interface plug-in cable we use complies with the serial port standards, it can be used flexibly in practice, various protocols are used in serial port interface standards for communication and Device Control.

We have learned about the serial port protocol. In our daily work, we are most exposed to the external interfaces of some actual devices. How can we know from the shape that this interface is? How to define each pin of cables? Above we know the serial RS-232, RS-422 and RS-485 standards only to interface electrical characteristics to make provisions, and does not involve connectors, cables or protocols, on the basis of which users can establish their own high-level communication protocol. The most frequently used plug-in our actual work involves three DB9 db25 RJ45 plug-ins. The above three plug-ins can be used as serial port plug-ins, or switch between plug-ins through cables. The following describes the pin definitions of the three plug-ins separately. The conversion between the three plug-ins is only based on the cable jumper defined by the plug-in.

* DB9 (9-pin socket), 2. The nine-pin serial port function is shown in table 1.


* Db25 (25-pin socket), 3. The 25-pin serial port function is shown in table 2.

* Another type of plug-in port is RJ45. For example, The SNI high mss1600 and mss700 Video Server encoding and decoding board control ports used by Hubei TV station are all serial ports. The plug-in ports are RJ45 and the serial port of the broadcasting controller is DB9, therefore, we need to use a conversion cable. Pin Definition 4 of the conversion cable.

RS485 half-duplex method: RX + and Tx + are connected to Data +; RX-and TX-are connected to data -. RS485 full duplex/rs422 connection method: Full And Gnd transient; signal line: RX +, Tx +, RX-, TX-, Gnd can be connected as needed.

Expansion of three serial ports

Serial Port expansion, we know that a computer generally has two serial ports. For a broadcasting control computer, there are far more than two devices to be controlled. We need to control the video server at the same time, video Recorder, switch-over platform, text recorder, and other devices. So we need to expand the serial port, we can use the serial port expansion card to expand the serial port, such as the serial port expansion card moxa CI-134 we use in the broadcasting control system.

Moxa CI-134 is a RS-422/485 quad serial port card designed for Industrial communication applications. It supports 4 independent RS-422/485 serial ports and can control up to 128 devices in One-to-multiple-point communication applications. To make the RS-485 2-wire half duplex operation easier, each CI-134 card has an automatic flow control (ADDC) with no software operation required. Therefore, in Windows applications, RS-485 half-duplex protocols can be controlled without additional encoding. To meet industrial requirements for high-reliability products, this series of products provide optional photoelectric isolation (2 kV) and Surge Protection (25 kV ESD) functions.

This product features: Optional photoelectric isolation (2kv) and Surge Protection (25kv ESD) features; automatic control of data flow ADDC (Automatic Data Direction Control) features; RS-485 Data Control L: ADDC can be controlled by using RTS, built-in terminal resistance, chip hardware traffic control to ensure no data loss, advanced ASIC design, low rework rate, and support for many common operating systems.

Application of Four serial ports in the broadcast Control System

We know that the effective transmission distance of the serial port RS232 is 15 meters, the maximum transmission distance of the RS-422 is 4000 feet (about 1219 meters), the maximum transmission rate is 10 Mbps. The video recorders used in broadcasting control, such as dvcpro and IMX, have RS232 and rs422 interfaces for selection. If pin9 is used, rs422 interfaces are used, and rs422 interfaces are used for Video Server encoding and decoding ports, only if the socket port is RJ45 and not DB9, the cable needs to be switched. Therefore, we can flexibly use the above features in the control. The rs422 switch is selected for switching between the master and slave nodes and for distance consideration, the RS232 control interface is used to control the rs422 switching switch, which is directly controlled by the COM port of the broadcasting controller, other control video recorders, switching servers, and video server encoding/decoding cards use the rs422 interface extended by the moxa card to switch to the rs422 switch. Figure 5.

In the whole system, only the rs422 switch opening control is the COM (RS232) Port Control of the broadcasting control machine. Others are the rs422 interfaces extended by the moxa card, as the urgent switch requires RS232, an rs422 to RS232 converter is added in front of the emergency switch. Through the control line broadcasting controller, you can issue broadcasting control commands in a timely manner, or read the status of video recorders, switches, and video servers at any time. The above is only the system control diagram of the broadcasting control data center. The system control of the upload and general control data centers is basically the same.

The rs422 bus, RS485, and rs422 have the same principle. They are sent and accepted in a differential manner and do not require a digital ground. Differential operation is the root cause of long transmission distance at the same rate. This is the fundamental difference between the two and RS232, because RS232 is a single-ended input and output, during duplex operation, at least three lines (asynchronous transmission) are required: The digital ground wire, the transmission line, and the receiving line. You can also add other control lines to complete synchronization and other functions. Rs422 can work in full duplex mode without affecting each other through two pairs of twisted pair wires, while RS485 can only work in half duplex mode, but it only needs one pair of twisted pair wires. The preceding three interfaces have their own shortcomings and can be flexibly selected as needed in actual work.

Computer control is increasingly widely used in broadcasting and broadcasting control systems. With the continuous development of computer technology, intelligence will also increase, and the system will become larger, this requires us to have a better understanding of the basic theory of computers, so that we can have a better understanding of the system, maintain the system, ensure the safe and stable operation of the system, and better ensure secure broadcast.

From modern TV technology

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.