A half-duplex relay circuit

By designing a non-isolated half-duplex relay circuit and using components such as RS485 chips and inverters to achieve bidirectional signal relay, the problems of one-way transmission and high circuit complexity of existing repeaters are solved, achieving low cost. , The circuit is simple and reliable.

CN111600697BActive Publication Date: 2024-09-17ZHUHAI SHENGCHANG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010533149.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-12
Publication Date
2024-09-17
Estimated Expiration
2040-06-12

AI Technical Summary

Technical Problem

Most of the existing signal repeaters based on the RS-485 bus are one-way transmission, which limits the installation layout of the repeater and makes the circuit complex and costly.

Method used

Design a non-isolated half-duplex relay circuit, using the first and second RS485 chips, inverters, pull-up resistors, capacitors and diodes to achieve bidirectional signal relay through the circuit structure, simplifying the circuit and reducing costs.

Benefits of technology

It realizes two-way signal relay, simplifies the installation and layout of the repeater, reduces the cost, and the circuit is simple and reliable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111600697B
    Figure CN111600697B
Patent Text Reader

Abstract

The invention discloses a half-duplex relay circuit, comprising a first RS485 chip U1, a second RS485 chip U2, a first inverter U3, a second inverter U4, a pull-up resistor R7, a pull-up resistor R9, a capacitor C1, a capacitor C2, a resistor R9 and a resistor R10. The first RS485 chip U1 obtains a data packet from a bus 1, and outputs a low-level effective pulse signal to the second inverter U4, and then outputs a high level after being reversed, so that the second RS485 chip U2 is in a sending state, and completes signal relay from bus 1 to bus 2. The relay from bus 2 to bus 1 is opposite to the relay from bus 1 to bus 2, and can well solve the disadvantage that the existing signal repeater can only transmit signals in one direction, and the installation and arrangement of the repeater becomes simple; and because a non-isolated type is adopted, the cost is low, and the circuit is simple and reliable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of relay circuits, and in particular to a half-duplex relay circuit. Background Art

[0002] The existing technology is based on the signal repeater of RS-485 bus. Many repeaters can only transmit signals in one direction. The control signal must be in the front stage of the repeater. There are restrictions on the placement and wiring of the controller during debugging and application. There are also double-isolated half-duplex repeaters, but they have disadvantages such as complex circuits and high costs. Summary of the invention

[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a non-isolated half-duplex relay circuit with low cost, simple circuit and reliability.

[0004] An embodiment of the present invention solves the technical problem by adopting the following technical solution: a half-duplex relay circuit, comprising a first RS485 chip U1, a second RS485 chip U2, a first inverter U3, a second inverter U4, a pull-up resistor R7 and a pull-up resistor R9, wherein the A end and the B end of the first RS485 chip U1 are respectively connected to the bus 1, the RO end of the first RS485 chip U1 is respectively connected to the input end of the second inverter U4 and the DI end of the second RS485 chip U2, and the output end of the second inverter U4 is respectively connected to the The DI end of the first RS485 chip U1 is connected to the RO end of the second RS485 chip U2 and the input end of the first inverter U3, and the output end of the first inverter U3 is connected to the OUT end of the first RS485 chip U1. The first RS485 chip U2 is connected to the A terminal and the DE terminal, the A terminal and the B terminal of the second RS485 chip U2 are respectively connected to the bus 2, one end of the pull-up resistor R7 is connected to the input terminal of the first inverter U3, the other end of the pull-up resistor R7 is respectively connected to the external power supply and the power supply terminal of the first inverter U3, one end of the pull-up resistor R9 is connected to the input terminal of the second inverter U4, and the other end of the pull-up resistor R9 is connected to the power supply terminal of the second inverter U4; also includes a resistor R10 and a capacitor C2, one end of the resistor R10 is respectively connected to the RO terminal of the first RS485 chip U1 and the second R The DI end of the S485 chip U2 is connected, the other end of the resistor R10 is respectively connected to the pull-up resistor R9, one end of the capacitor C2 and the input end of the second inverter U4, and the other end of the capacitor C2 is connected to the ground end; it also includes a resistor R8 and a capacitor C1, one end of the resistor R8 is respectively connected to the DI end of the first RS485 chip U1 and the RO end of the second RS485 chip U2, the other end of the resistor R8 is respectively connected to the pull-up resistor R7, one end of the capacitor C1 and the input end of the first inverter U3, and the other end of the capacitor C1 is connected to the ground end.

[0005] The half-duplex relay circuit also includes a diode D1 and a diode D2, the anode of the diode D1 is connected to the capacitor C1, the cathode of the diode D1 is respectively connected to the DI end of the first RS485 chip U1 and the RO end of the second RS485 chip U2, the anode of the diode D2 is connected to the capacitor C2, and the cathode of the diode D2 is respectively connected to the RO end of the first RS485 chip U1 and the DI end of the second RS485 chip U2.

[0006] The half-duplex relay circuit also includes a resistor R2 and a resistor R5, one end of the resistor R2 is respectively connected to the B end of the first RS485 chip U1 and the bus 1, the other end of the resistor R2 is respectively connected to the A end of the first RS485 chip U1 and the bus 1, one end of the resistor R5 is respectively connected to the B end of the second RS485 chip U2 and the bus 2, and the other end of the resistor R5 is respectively connected to the A end of the first RS485 chip U2 and the bus 2.

[0007] The half-duplex relay circuit also includes a resistor R1, a resistor R3, a resistor R4 and a resistor R6, one end of the resistor R1 is grounded, the other end of the resistor R1 is connected to the resistor R2, one end of the resistor R3 is connected to an external power supply, the other end of the resistor R3 is connected to the resistor R2, one end of the resistor R4 is grounded, the other end of the resistor R4 is connected to the resistor R5, one end of the resistor R6 is connected to the external power supply, and the other end of the resistor R6 is connected to the resistor R5.

[0008] The beneficial effects of the present invention are as follows: a half-duplex relay circuit comprises a first RS485 chip U1, a second RS485 chip U2, a first inverter U3, a second inverter U4, a pull-up resistor R7, a pull-up resistor R9, a capacitor C1, a capacitor C2, a resistor R9 and a resistor R10. The first RS485 chip U1 obtains a data packet from a bus 1, and outputs a low-level valid pulse signal to the second inverter U4, and then outputs a high level after being reversed, so that the second RS485 chip U2 is in a sending state, and completes the signal relay from bus 1 to bus 2. The relay from bus 2 to bus 1 is opposite to the relay from bus 1 to bus 2, which can well solve the disadvantage that the existing signal repeater can only transmit signals in one direction, and the installation and arrangement of the repeater becomes simple; and because a non-isolated type is adopted, the cost is low, and the circuit is simple and reliable. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0010] Figure 1 The circuit diagram of a half-duplex relay circuit. DETAILED DESCRIPTION

[0011] This section will describe in detail the specific embodiments of the present invention. The preferred embodiments of the present invention are shown in the accompanying drawings. The purpose of the accompanying drawings is to supplement the description of the text part of the specification with graphics, so that people can intuitively and vividly understand each technical feature and the overall technical solution of the present invention, but it cannot be understood as a limitation on the scope of protection of the present invention.

[0012] In the description of the present invention, the meaning of "above", "below", "exceed", etc. is not inclusive of the number itself, and the meaning of "above", "below", "within", etc. is inclusive of the number itself. If there is a description of "first" or "second", it is only used to distinguish the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0013] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0014] In the present invention, unless otherwise clearly defined, the words "set", "install", "connect" and the like should be understood in a broad sense, for example, they can be directly connected or indirectly connected through an intermediate medium; they can be fixedly connected or detachably connected or integrally formed; they can be mechanically connected; they can be the internal connection of two elements or the interaction relationship between two elements. Those skilled in the art can reasonably determine the specific meanings of the above words in the present invention in combination with the specific content of the technical solution.

[0015] Reference Figure 1 A half-duplex relay circuit comprises: a first RS485 chip U1, a second RS485 chip U2, a first inverter U3, a second inverter U4, a pull-up resistor R7 and a pull-up resistor R9, the A end and the B end of the first RS485 chip U1 are respectively connected to the bus 1, the RO end of the first RS485 chip U1 is respectively connected to the input end of the second inverter U4 and the DI end of the second RS485 chip U2, the output end of the second inverter U4 is respectively connected to the The DI end of the first RS485 chip U1 is connected to the RO end of the second RS485 chip U2 and the input end of the first inverter U3, and the output end of the first inverter U3 is connected to the OUT end of the first RS485 chip U1. The first RS485 chip U2 is connected to the A terminal and the DE terminal, the A terminal and the B terminal of the second RS485 chip U2 are respectively connected to the bus 2, one end of the pull-up resistor R7 is connected to the input terminal of the first inverter U3, the other end of the pull-up resistor R7 is respectively connected to the external power supply and the power supply terminal of the first inverter U3, one end of the pull-up resistor R9 is connected to the input terminal of the second inverter U4, and the other end of the pull-up resistor R9 is connected to the power supply terminal of the second inverter U4; also includes a resistor R10 and a capacitor C2, one end of the resistor R10 is respectively connected to the RO terminal of the first RS485 chip U1 and the second R The DI end of the S485 chip U2 is connected, the other end of the resistor R10 is respectively connected to the pull-up resistor R9, one end of the capacitor C2 and the input end of the second inverter U4, and the other end of the capacitor C2 is connected to the ground end; it includes a resistor R8 and a capacitor C1, one end of the resistor R8 is respectively connected to the DI end of the first RS485 chip U1 and the RO end of the second RS485 chip U2, the other end of the resistor R8 is respectively connected to the pull-up resistor R7, one end of the capacitor C1 and the input end of the first inverter U3, and the other end of the capacitor C1 is connected to the ground end.

[0016] In the present invention, when bus 1 and bus 2 are idle, since the input end of the first inverter U3 and the input end of the second inverter U4 are pulled up to a high level by the pull-up resistor R7 and the pull-up resistor R9 respectively, the output end of the first inverter U3 and the output end of the second inverter U4 invert and output a low level, so that the first RS485 chip U1 and the second RS485 chip U2 are both in the receiving mode; when a data packet is sent on bus 1, the first RS485 chip U1 receives the data packet and outputs it from the RO end, and after passing through the low-pass filter circuit composed of the resistor R10 and the capacitor C2, it is input to the input end of the second inverter U4. Since the data packet output from the RO end of the first RS485 chip U1 is The data packet is a pulse signal with a low level effective, so at this time, the input end of the second inverter U4 is a low level signal within the time length of the entire data packet, so the output end of the second inverter U4 inverts and outputs a high level, prompting the second RS485 chip U2 to be in the sending mode, and at the same time, the data packet output by the RO end of the first RS485 chip U1 is input to the DI end of the second RS485 chip U2, and then the second RS485 chip U2 sends a data packet to the bus 2. When the data packet is sent, the bus 1 and the bus 2 resume the idle state, and the first RS485 chip U1 and the second RS485 chip U2 are both in the receiving mode, and the signal relay from the bus 1 to the bus 2 is completed at that time;

[0017] When a data packet is sent on bus 2, the second RS485 chip U2 receives the data packet and outputs it from the RO terminal, and after passing through a low-pass filter circuit composed of a resistor R8 and a capacitor C1, it is input to the input terminal of the first inverter U3. Since the data packet output from the RO terminal of the second RS485 chip U2 is a low-level valid pulse signal, the input terminal of the first inverter U3 is a low-level signal within the entire data packet time length at this time. Therefore, the output terminal of the first inverter U3 inverts and outputs a high level, prompting the first RS485 chip U1 to be in the sending mode. At the same time, the data packet output from the RO terminal of the second RS485 chip U2 is input to the DI terminal of the first RS485 chip U1, and then the first RS485 chip U1 sends a data packet to bus 1. When the data packet is sent, buses 1 and 2 return to idle state, and the first RS485 chip U1 and the second RS485 chip U2 are both in the receiving mode, and the signal relay from bus 2 to bus 1 is completed.

[0018] The half-duplex relay circuit also includes a diode D1 and a diode D2, wherein the anode of the diode D1 is connected to the capacitor C1, the cathode of the diode D1 is respectively connected to the DI end of the first RS485 chip U1 and the RO end of the second RS485 chip U2, the anode of the diode D2 is connected to the capacitor C2, and the cathode of the diode D2 is respectively connected to the RO end of the first RS485 chip U1 and the DI end of the second RS485 chip U2; the diode D1 and the diode D2 function to accelerate the discharge of the capacitors C1 and C2, and can accelerate the reversing effect of the first inverter U3 and the second inverter U4.

[0019] The half-duplex relay circuit also includes a resistor R2 and a resistor R5, one end of the resistor R2 is respectively connected to the B end of the first RS485 chip U1 and the bus 1, the other end of the resistor R2 is respectively connected to the A end of the first RS485 chip U1 and the bus 1, one end of the resistor R5 is respectively connected to the B end of the second RS485 chip U2 and the bus 2, and the other end of the resistor R5 is respectively connected to the A end of the first RS485 chip U2 and the bus 2; the resistor R2 and the resistor R5 can avoid the problem of signal reflection.

[0020] The half-duplex relay circuit also includes a resistor R1, a resistor R3, a resistor R4 and a resistor R6, one end of the resistor R1 is grounded, the other end of the resistor R1 is connected to the resistor R2, one end of the resistor R3 is connected to an external power supply, the other end of the resistor R3 is connected to the resistor R2, one end of the resistor R4 is grounded, the other end of the resistor R4 is connected to the resistor R5, one end of the resistor R6 is connected to the external power supply, and the other end of the resistor R6 is connected to the resistor R5; the resistors R1, R3, R4 and R6 are bias resistors to improve the anti-interference ability of the bus.

[0021] Of course, the present invention is not limited to the above-mentioned embodiments, and those skilled in the art may make equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications and substitutions are all included in the scope defined by the claims of this application.

Claims

1. A half-duplex relay circuit, characterized in that: The present invention comprises a first RS485 chip U1, a second RS485 chip U2, a first inverter U3, a second inverter U4, a pull-up resistor R7 and a pull-up resistor R9, wherein the A end and the B end of the first RS485 chip U1 are respectively connected to the bus 1, the RO end of the first RS485 chip U1 is respectively connected to the input end of the second inverter U4 and the DI end of the second RS485 chip U2, the output end of the second inverter U4 is respectively connected to the RE end and the DE end of the second RS485 chip U1, the DI end of the first RS485 chip U1 is respectively connected to the RO end of the second RS485 chip U2 and the input end of the first inverter U3, the output end of the first inverter U3 is respectively connected to the RE end and the DE end of the first RS485 chip U1, the A end and the B end of the second RS485 chip U2 are respectively connected to the bus 2, one end of the pull-up resistor R7 is connected to the input end of the first inverter U3, one end of the pull-up resistor R9 is connected to the output end of the second inverter U4. The first RS485 chip U1 is connected to the input end, the other end of the pull-up resistor R7, the power supply end of the first inverter U3, the other end of the pull-up resistor R9, the power supply end of the second inverter U4, the power supply end of the first RS485 chip U1 and the power supply end of the second RS485 chip U2 are connected to the power supply VCC; it also includes a resistor R10 and a capacitor C2, one end of the resistor R10 is respectively connected to the RO end of the first RS485 chip U1 and the DI end of the second RS485 chip U2, the other end of the resistor R10 is respectively connected to the pull-up resistor R9, one end of the capacitor C2 and the input end of the second inverter U4, and the other end of the capacitor C2 is connected to the ground end; it also includes a resistor R8 and a capacitor C1, one end of the resistor R8 is respectively connected to the DI end of the first RS485 chip U1 and the RO end of the second RS485 chip U2, the other end of the resistor R8 is respectively connected to the pull-up resistor R7, one end of the capacitor C1 and the input end of the first inverter U3, and the other end of the capacitor C1 is connected to the ground end.

2. A half-duplex relay circuit according to claim 1, characterized in that: It also includes a diode D1 and a diode D2, wherein the anode of the diode D1 is connected to the capacitor C1, the cathode of the diode D1 is respectively connected to the DI terminal of the first RS485 chip U1 and the RO terminal of the second RS485 chip U2, the anode of the diode D2 is connected to the capacitor C2, and the cathode of the diode D2 is respectively connected to the RO terminal of the first RS485 chip U1 and the DI terminal of the second RS485 chip U2.

3. A half-duplex relay circuit according to claim 1, characterized in that: It also includes a resistor R2 and a resistor R5, one end of the resistor R2 is connected to the B end of the first RS485 chip U1 and the bus 1 respectively, the other end of the resistor R2 is connected to the A end of the first RS485 chip U1 and the bus 1 respectively, one end of the resistor R5 is connected to the B end of the second RS485 chip U2 and the bus 2 respectively, and the other end of the resistor R5 is connected to the A end of the first RS485 chip U2 and the bus 2 respectively.

4. A half-duplex relay circuit according to claim 3, characterized in that: It also includes a resistor R1, a resistor R3, a resistor R4 and a resistor R6, one end of the resistor R1 is grounded, the other end of the resistor R1 is connected to the resistor R2, one end of the resistor R3 is connected to an external power supply, the other end of the resistor R3 is connected to the resistor R2, one end of the resistor R4 is grounded, the other end of the resistor R4 is connected to the resistor R5, one end of the resistor R6 is connected to the external power supply, and the other end of the resistor R6 is connected to the resistor R5.