A rs485 bus fault protection biasing circuit

By adjusting the pull-up and pull-down resistors of the RS485 bus using a microcontroller and combining this with automated control of the terminating resistors, the problem of uncertain states in RS485 bus communication is solved, improving signal recognition accuracy and bus stability.

CN225020511UActive Publication Date: 2026-11-24JIANGXI FASHION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202522246589.X
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Priority Date
2025-05-15
Filing Date
2025-10-24
Publication Date
2026-11-24
Estimated Expiration
2035-10-24

AI Technical Summary

Technical Problem

In RS485 bus communication, the RS485 driver of the sensor may cause the bus voltage to be uncertain when it is idle, resulting in invalid start bits, false interrupts and frame errors. Furthermore, adding a terminating resistor will affect the communication performance and driving capability. Manually judging whether to connect or disconnect the terminating resistor is not conducive to the automated management of the bus.

Method used

By acquiring the voltage difference between signal lines through a microcontroller, adjusting the resistance values ​​of configurable pull-up and pull-down resistors, and combining the connection and disconnection of terminating resistors, the fault protection bias circuit of the RS485 bus can be automatically managed, eliminating uncertain states and improving signal recognition accuracy.

Benefits of technology

It realizes automated management of RS485 bus, improves communication stability and intelligence level, reduces manual intervention, and ensures signal quality and accurate connection of terminal resistor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN225020511U_ABST
    Figure CN225020511U_ABST
Patent Text Reader

Abstract

This utility model provides an RS485 bus fault protection bias circuit and acquisition device. The circuit includes a first signal line and a second signal line, which are electrically connected to an RS485 driver. The RS485 driver is electrically connected to a microcontroller. The microcontroller is electrically connected to the first and second signal lines via configurable pull-up and pull-down resistors, respectively. A terminating resistor is set between the first and second signal lines. The microcontroller is used to obtain the voltage difference between the first and second signal lines to set the resistance values ​​of the configurable pull-up and pull-down resistors based on the voltage difference, thereby eliminating uncertain states. The microcontroller is also used to obtain several single communication errors through the RS485 driver to determine whether a terminating resistor needs to be connected based on these errors. Compared to traditional methods, this eliminates the need for manual determination of whether a terminating resistor needs to be connected, achieving automated management of the RS485 bus.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model relates to the field of image processing technology, specifically to an RS485 bus fault protection bias circuit. Background Technology

[0002] Over the past three decades, the continuous development of industrial control technology and the increasingly widespread application of computer network communication technology have created an urgent need for a bus communication technology suitable for long-distance digital communication. The RS-485 industrial bus standard effectively supports multiple nodes and long communication distances, and boasts high sensitivity in information reception. In industrial communication networks, the RS-485 bus is generally used for information transmission and data exchange with various external industrial devices. Its effective noise suppression capabilities, high data transmission rate, reliable data transmission performance, and scalable communication cable length are unmatched by many other industrial communication standards.

[0003] With the development of IoT technology, the types of RS485 sensors used in structural safety monitoring are increasing. In actual RS485 sensor bus monitoring scenarios, the RS485 driver of the sensor is mostly in an idle state. When the RS485 driver is idle, the bus voltage is in an uncertain state, which may cause the RS485 receiver to be erroneously triggered to a high or low level (depending on ambient noise and the polarity of the last level before the line floats), thus causing invalid start bits, false interrupts, and frame errors. Therefore, a fault protection bias circuit needs to be added before the RS485 driver to transform this uncertain state into a known, pre-agreed level; this is called fault protection.

[0004] For applications requiring long communication distances, high communication speeds, and high signal quality, terminating resistors are necessary. However, adding terminating resistors can negatively impact the performance of fault protection circuits. Specifically, it may cause the differential voltage of the bus to remain within a threshold level range when the bus is idle, resulting in an uncertain bus state. Furthermore, it can reduce the driving capability of the RS485 bus, decrease the amplitude of the driving signal, increase the power consumption of the RS485 driver, and increase the voltage drop on the communication line.

[0005] Therefore, depending on the actual situation, terminating resistors should be avoided whenever possible. However, in some pre-integrated RS485 bus scenarios, when modifying the RS485 bus or adding / removing the number of RS485 sensors, it is necessary to determine whether the terminating resistor is connected or disconnected. Currently, this is done manually, which is not conducive to the automated configuration and management of the RS485 bus. Summary of the Invention

[0006] In response to the problems raised in the background art, this utility model provides an RS485 bus fault protection bias circuit to solve them. The utility model will be further described below.

[0007] To achieve the above objectives, a first aspect of the present invention provides an RS485 bus fault protection bias circuit, including a first signal line and a second signal line. One end of the first signal line and the second signal line are electrically connected to a sensor group, the sensor group including a plurality of RS485 sensors. The other end of the first signal line and the second signal line are electrically connected to an RS485 driver, the RS485 driver being electrically connected to a microcontroller. The microcontroller is electrically connected to the first signal line via a configurable pull-up resistor and to the second signal line via a configurable pull-down resistor. A terminating resistor is provided between the first signal line and the second signal line. The microcontroller is used to acquire the voltage difference between the first signal line and the second signal line, and to set the resistance values ​​of the configurable pull-up resistor and the configurable pull-down resistor according to the voltage difference, thereby eliminating the uncertain state of the RS485 bus fault protection bias circuit. The microcontroller is also used to acquire a plurality of single communication errors through the RS485 driver, and to determine whether the terminating resistor needs to be connected between the first signal line and the second signal line based on the plurality of single communication errors.

[0008] Furthermore, both the first signal line and the second signal line are electrically connected to a dual-channel controlled switch. The dual-channel controlled switch is electrically connected to an RS485 bus level detection circuit. The RS485 bus level detection circuit is electrically connected to the microcontroller to transmit the voltage difference to the microcontroller. The microcontroller is electrically connected to the dual-channel controlled switch to control the opening and closing of the dual-channel controlled switch.

[0009] Furthermore, the first signal line is electrically connected to the terminating resistor via a single-channel controlled switch, the terminating resistor is electrically connected to the second signal line, and the microcontroller is electrically connected to the single-channel controlled switch to control the opening and closing of the single-channel controlled switch.

[0010] Furthermore, the step of setting the resistance values ​​of the configurable pull-up resistor and the configurable pull-down resistor according to the voltage difference, thereby eliminating the uncertain state of the RS485 bus fault protection bias circuit, includes:

[0011] The voltage difference is compared with the voltage threshold to identify whether the RS485 bus fault protection bias circuit is in an uncertain state.

[0012] If the RS485 bus fault protection bias circuit is in an uncertain state, the power supply voltage and the node common-mode load resistance are obtained, and a first preset resistance value is obtained based on the power supply voltage, the voltage threshold and the node common-mode load resistance.

[0013] Set the first preset resistance value to the resistance values ​​of the configurable pull-up resistor and the configurable pull-down resistor.

[0014] Furthermore, the formula for calculating the first preset resistance value is as follows:

[0015] ,

[0016] in, This indicates the first preset resistance value. Indicates the common-mode load resistance at the node. This indicates the maximum number of RS485 sensors that the RS485 bus fault protection bias circuit can support. Indicates the supply voltage. Represents the voltage threshold, where, Indicates the threshold voltage. Indicates voltage noise tolerance.

[0017] Furthermore, the step of determining whether to connect the terminating resistor between the first signal line and the second signal line based on a plurality of single communication errors includes:

[0018] Based on the communication time frame, determine whether several single communication errors are consecutive communication errors;

[0019] If several of the aforementioned single communication errors are consecutive communication errors, then the total number of errors for the aforementioned single communication errors is obtained;

[0020] The total number of errors is compared with the error threshold. If the total number of errors is greater than the error threshold, it is determined that the terminating resistor needs to be connected between the first signal line and the second signal line.

[0021] Furthermore, after the step of determining whether the terminating resistor needs to be connected between the first signal line and the second signal line based on a plurality of single communication errors, the method further includes:

[0022] If the terminating resistor needs to be connected between the first signal line and the second signal line, a second preset resistance value is obtained based on the resistance value of the terminating resistor, and the second preset resistance value is set as the resistance value of the configurable pull-up resistor and the configurable pull-down resistor.

[0023] Furthermore, the formula for calculating the second preset resistance value is as follows:

[0024] ,

[0025] in, This indicates the second preset resistance value. Indicates the supply voltage. Represents the voltage threshold, where, Indicates the threshold voltage. Indicates voltage noise tolerance. Indicates the common-mode load resistance at the node. This indicates the maximum number of RS485 sensors that the RS485 bus fault protection bias circuit can support. This indicates the resistance value of the terminating resistor.

[0026] Furthermore, after the step of obtaining a second preset resistance value based on the resistance value of the terminating resistor if it is necessary to connect the terminating resistor between the first signal line and the second signal line, and setting the second preset resistance value as the resistance value of the configurable pull-up resistor and the configurable pull-down resistor, the method further includes:

[0027] The number of RS485 sensors that can be updated is determined based on the second preset resistance value.

[0028] Beneficial effects: Compared with the prior art, this utility model obtains the voltage difference between the first signal line and the second signal line through the microcontroller. After determining that it is in an uncertain state based on the voltage difference, it eliminates the uncertain state of the RS485 bus fault protection bias circuit by adjusting the resistance values ​​of the configurable pull-up resistor and the configurable pull-down resistor. This avoids the impact of false triggering and data errors caused by the uncertain state on the subsequent identification of the single communication error, thereby improving the accuracy of subsequent identification of single communication errors caused by signal reflection. This completes the automatic identification of whether the terminating resistor is connected or not. Compared with the traditional method, there is no need for manual judgment on whether the terminating resistor is connected, realizing the automatic management of the RS485 bus and improving its stability and intelligence level. Attached Figure Description

[0029] Figure 1 : A structural block diagram of the RS485 bus fault protection bias circuit in Embodiment 1 of this utility model;

[0030] Figure 2 The connection circuit diagram between the RS485 driver, configurable pull-up resistor, configurable pull-down resistor, terminating resistor and single-channel controlled switch in the RS485 bus fault protection bias circuit of Embodiment 1 of this utility model.

[0031] Figure 3The diagram shows the connection between the dual-channel controlled switch and the RS485 bus level detection circuit in the RS485 bus fault protection bias circuit of Embodiment 1 of this utility model.

[0032] In the diagram: 1. Sensor group; 2. First signal line; 3. Second signal line; 4. Configurable pull-up resistor; 5. Configurable pull-down resistor; 6. Single-channel controlled switch; 7. Termination resistor; 8. Dual-channel controlled switch; 9. RS485 bus level detection circuit; 10. RS485 driver; 11. Microcontroller. Detailed Implementation

[0033] The following detailed description of a specific embodiment of the present invention, in conjunction with the accompanying drawings, will now be provided.

[0034] Please see Figure 1 and Figure 2 Embodiment 1 of the present invention provides an RS485 bus fault protection bias circuit, including a first signal line 2 and a second signal line 3. One end of the first signal line 2 and the second signal line 3 is electrically connected to a sensor group 1, the sensor group 1 including a plurality of RS485 sensors. The other end of the first signal line 2 and the second signal line 3 is electrically connected to an RS485 driver 10, the RS485 driver 10 being electrically connected to a microcontroller 11. Understandably, the RS485 sensor is driven by the RS485 driver to perform data acquisition and the acquired data is transmitted to the microcontroller 11.

[0035] The microcontroller 11 is electrically connected to the first signal line 2 via a configurable pull-up resistor 4, and the microcontroller 11 is electrically connected to the second signal line 3 via a configurable pull-down resistor 5. A terminating resistor 7 is provided between the first signal line 2 and the second signal line 3. Specifically, the first signal line 2 is electrically connected to the terminating resistor 7 via a single-channel controlled switch 6, and the terminating resistor 7 is electrically connected to the second signal line 3. The microcontroller 11 is electrically connected to the single-channel controlled switch 6 to control the opening and closing of the single-channel controlled switch 6. When the terminating resistor 7 needs to be connected, the microcontroller 11 controls the single-channel controlled switch 6 to open, so that the terminating resistor 7 is connected between the first signal line 2 and the second signal line 3. When the terminating resistor 7 needs to be disconnected, the microcontroller 11 controls the single-channel controlled switch 6 to close.

[0036] In this embodiment, the configurable pull-up resistor 4 is resistor Rp1, and the configurable pull-down resistor 5 is resistor Rd1. Resistors Rp1 and Rd1 are electrically connected to the microcontroller 11 via digital isolator U2. The microcontroller 11 writes resistance values ​​to resistors Rp1 and Rd1 via a unidirectional SPI bus. The RS485 driver 10 is driver U1. Resistor Rp1 is electrically connected to the first signal line 2 via resistor R18, and is also electrically connected to driver U1 via the first signal line 2. Resistor Rd1 is electrically connected to driver U1 via the second signal line 3. Resistor R18 is a current-limiting resistor to prevent excessive loop current when the resistance value of resistor Rp1 is too low. The terminating resistor 7 is resistor Rt3. The characteristic impedance of the RS485 bus cable is 120 ohms; therefore, in this embodiment, the resistance value of resistor Rt3 is 120 ohms. The single-channel controlled switch 6 includes a relay RL1, a diode D4, and a transistor Q1. The resistor Rt3 is electrically connected to the fourth pin of the relay RL1. The diode D4 is placed between the first and second pins of the relay RL1. The second pin of the relay RL1 is grounded through the transistor Q1. When the terminating resistor 7 needs to be connected, the microcontroller 11 drives the relay RL1 to connect the resistor Rt3 to the bus by enabling the Rt_EN pin.

[0037] The driver U1 isolates both the RS485 differential signal line and the external power supply. The grounding of all devices is based on the RS485 bus device side reference point (the RS485 bus device is grounded at a single point, and the driver U1 is not grounded). This effectively prevents the driver U1 from being damaged due to the ground potential difference between the grounding system of the RS485 sensor side and the grounding system of the RS485 bus device exceeding the common-mode voltage range of the RS485 sensor. At the same time, it can prevent the common-mode current introduced by ground loop current from interfering with the RS485 bus. In addition, the fully isolated driver can also effectively protect the internal circuits (such as the microcontroller 11) from damage. For example, when the RS485 bus encounters transient high-voltage signals such as surges and lightning, it can effectively isolate the influence of external pulse energy on the internal circuits. A resistor R1 is installed on the first signal line 2, and a resistor R5 is installed on the second signal line 3. Resistors R1 and R5 are current-limiting resistors. A diode D1 is installed on the end of resistor R1 facing away from the driver U1, and a diode D3 is installed on the end of resistor R5 facing away from the driver U1. The end of resistor R1 facing away from the driver U1 is connected to the end of resistor R5 facing away from the driver U1 via diode D2. Diodes D1, D2, and D3 are used to further clamp residual surge voltage to a safe range. A decoupling device RT1 is also connected to the end of resistor R1 facing away from the driver U1, and a decoupling device RT2 is also connected to the end of resistor R5 facing away from the driver U1 via a gas discharge tube G1, to protect the conduction and leakage of the gas discharge tube G1 during surges.

[0038] The microcontroller 11 is used to acquire the voltage difference between the first signal line 2 and the second signal line 3, and to set the resistance values ​​of the configurable pull-up resistor 4 and the configurable pull-down resistor 5 according to the voltage difference, thereby eliminating the uncertain state of the RS485 bus fault protection bias circuit. Specifically, the first signal line 2 and the second signal line 3 are both electrically connected to a dual-channel controlled switch 8, the dual-channel controlled switch 8 is electrically connected to an RS485 bus level detection circuit 9, and the RS485 bus level detection circuit 9 is electrically connected to the microcontroller 11 to transmit the voltage difference to the microcontroller 11. The microcontroller 11 is electrically connected to the dual-channel controlled switch 8 to control the opening and closing of the dual-channel controlled switch 8. When it is necessary to acquire the voltage difference, the microcontroller 11 controls the dual-channel controlled switch 8 to open, so that the RS485 bus level detection circuit 9 is connected between the first signal line 2 and the second signal line 3, thereby completing the acquisition of the voltage difference.

[0039] Please see Figure 3The dual-channel controlled switch 8 is a relay LS1. The eighth pin of the relay LS1 is connected to a transistor Q2. The transistor Q2 is connected to resistors R16 and R17 to form the driving circuit of the relay LS1. A freewheeling diode D5 is set between the first pin and the eighth pin of the relay LS1. When it is necessary to obtain the voltage difference, the microcontroller 11 enables the SW pin and drives the relay LS1 to connect the RS485 bus level detection circuit 9 between the first signal line 2 and the second signal line 3.

[0040] The RS485 bus level detection circuit 9 includes an isolation amplifier U4. Capacitors C4, C5, and C7 are connected between pins 6 and 7 of the isolation amplifier U4. Capacitors C4 and C7 are connected in series, and capacitor C5 is connected in parallel with capacitor C4. A resistor R10 is connected between capacitor C4 and the isolation amplifier U4, and a resistor R15 is connected between capacitor C7 and the isolation amplifier U4. The isolation amplifier U4 is electrically connected to an instrumentation amplifier U3 via pins 6 and 7. The capacitors C4, C5, and C7, along with resistors R10 and R15 and the instrumentation amplifier U3, form an RF filter to filter the acquired voltage difference signal. The instrumentation amplifier U3 is electrically connected to a gain resistor R9.

[0041] The step of setting the resistance values ​​of the configurable pull-up resistor 4 and the configurable pull-down resistor 5 according to the voltage difference, thereby eliminating the uncertain state of the RS485 bus fault protection bias circuit, includes:

[0042] The voltage difference is compared with the voltage threshold to identify whether the RS485 bus fault protection bias circuit is in an uncertain state.

[0043] Specifically, the voltage threshold is generated based on a threshold voltage threshold and a voltage noise tolerance. In this embodiment, the threshold voltage threshold is -200mV to 200mV. When the voltage difference is less than or equal to the voltage threshold, the RS485 bus fault protection bias circuit is determined to be in an uncertain state.

[0044] If the RS485 bus fault protection bias circuit is in an uncertain state, the power supply voltage and the node common-mode load resistance are obtained, and a first preset resistance value is obtained based on the power supply voltage, the voltage threshold and the node common-mode load resistance.

[0045] In this embodiment, the node common-mode load resistance is 12k ohms, and the formula for calculating the first preset resistance value is:

[0046] ,

[0047] in, This indicates the first preset resistance value. Indicates the common-mode load resistance at the node. This indicates the maximum number of RS485 sensors that the RS485 bus fault protection bias circuit can support. Indicates the supply voltage. Represents the voltage threshold, where, Indicates the threshold voltage. This indicates the voltage noise tolerance. In this embodiment, the RS485 bus fault protection bias circuit can support a maximum of 32 RS485 sensors. The first preset resistance value is determined based on this maximum number to ensure that voltage requirements are met in all standard scenarios under the most stringent operating conditions.

[0048] The first preset resistance value is set as the resistance value of the configurable pull-up resistor 4 and the configurable pull-down resistor 5. By setting the resistance values ​​of the configurable pull-up resistor 4 and the configurable pull-down resistor 5, it can be ensured that the voltage difference is greater than the voltage threshold, thereby eliminating the uncertain state of the RS485 bus fault protection bias circuit.

[0049] The microcontroller 11 is further configured to acquire a plurality of single communication errors through the RS485 driver 10, and determine whether the terminating resistor 7 needs to be connected between the first signal line 2 and the second signal line 3 based on the plurality of single communication errors. Specifically, the step of determining whether the terminating resistor 7 needs to be connected between the first signal line 2 and the second signal line 3 based on the plurality of single communication errors includes:

[0050] Based on the communication time frame, determine whether several single communication errors are consecutive communication errors;

[0051] Understandably, if the communication data acquired in adjacent communication time frames are all single communication errors, then it is determined to be a continuous communication error. The single communication error is a CRC error, a frame format error, etc.

[0052] If several of the aforementioned single communication errors are consecutive communication errors, then the total number of errors for the aforementioned single communication errors is obtained;

[0053] The total number of errors is compared with the error threshold. If the total number of errors is greater than the error threshold, it is determined that the terminating resistor 7 needs to be connected between the first signal line 2 and the second signal line 3.

[0054] In this embodiment, the error threshold is 3 times. That is, if the communication data in 3 consecutive communication time frames are all the single communication error, it is determined that the terminal resistor 7 needs to be connected.

[0055] The microcontroller 11 acquires the voltage difference between the first signal line 2 and the second signal line 3. After determining that the state is uncertain based on the voltage difference, the uncertain state of the RS485 bus fault protection bias circuit is eliminated by adjusting the resistance values ​​of the configurable pull-up resistor 4 and the configurable pull-down resistor 5. This avoids the impact of false triggering and data errors caused by the uncertain state on the subsequent identification of the single communication error, thereby improving the accuracy of subsequent identification of single communication errors caused by signal reflection. This completes the automatic identification of whether the terminating resistor 7 is connected. Compared with the traditional method, there is no need for manual judgment on whether the terminating resistor 7 is connected, realizing the automatic management of the RS485 bus and improving its stability and intelligence level.

[0056] Furthermore, after connecting the terminating resistor 7, the equivalent load of the bus changes. Therefore, the resistance values ​​of the configurable pull-up resistor 4 and the configurable pull-down resistor 5 need to be readjusted to ensure the static and dynamic stability of the bus. Specifically, after the step of determining whether the terminating resistor 7 needs to be connected between the first signal line 2 and the second signal line 3 based on a number of single communication errors, the method further includes:

[0057] If the terminating resistor 7 needs to be connected between the first signal line 2 and the second signal line 3, then a second preset resistance value is obtained based on the resistance value of the terminating resistor 7, and the second preset resistance value is set as the resistance value of the configurable pull-up resistor 4 and the configurable pull-down resistor 5.

[0058] The formula for calculating the second preset resistance value is:

[0059] ,

[0060] in, This indicates the second preset resistance value. Indicates the supply voltage. Represents the voltage threshold, where, Indicates the threshold voltage. Indicates voltage noise tolerance. Indicates the common-mode load resistance at the node. This indicates the maximum number of RS485 sensors that the RS485 bus fault protection bias circuit can support. This indicates the resistance value of the terminating resistor 7.

[0061] After connecting the terminating resistor 7 and setting the second preset resistance value, the overall impedance of the bus decreases, and the number of RS485 sensors it supports will change. To avoid overheating or damage to the sensors due to excessive power consumption, the maximum number that can be connected needs to be redefined. Therefore, after the step of obtaining the second preset resistance value based on the resistance value of the terminating resistor 7 if the terminating resistor 7 needs to be connected between the first signal line 2 and the second signal line 3, and setting the second preset resistance value as the resistance value of the configurable pull-up resistor 4 and the configurable pull-down resistor 5, the following method is also included:

[0062] The number of RS485 sensors that can be updated is determined based on the second preset resistance value.

[0063] The formula for calculating the number of updated accessible connections is as follows:

[0064] ,

[0065] in, This indicates the number of devices that can be connected. This indicates the second preset resistance value.

[0066] The above description is merely a preferred embodiment of this utility model and is not intended to limit the utility model. Various modifications and variations can be made to this utility model by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this utility model should be included within the protection scope of this utility model.

Claims

1. An RS485 bus fault protection biasing circuit, characterized by, The system includes a first signal line and a second signal line. One end of the first signal line and the second signal line are electrically connected to a sensor group, which includes several RS485 sensors. The other end of the first signal line and the second signal line are electrically connected to an RS485 driver. The RS485 driver is electrically connected to a microcontroller. The microcontroller is electrically connected to the first signal line via a configurable pull-up resistor and to the second signal line via a configurable pull-down resistor. A terminating resistor is provided between the first signal line and the second signal line. The microcontroller is used to obtain the voltage difference between the first signal line and the second signal line, and to set the resistance values ​​of the configurable pull-up resistor and the configurable pull-down resistor according to the voltage difference, thereby eliminating the uncertain state of the RS485 bus fault protection bias circuit. The microcontroller is also used to obtain several single communication errors through the RS485 driver, and to determine whether the terminating resistor needs to be connected between the first signal line and the second signal line based on the several single communication errors.

2. The RS485 bus fault protection biasing circuit of claim 1, wherein, Both the first signal line and the second signal line are electrically connected to a dual-channel controlled switch. The dual-channel controlled switch is electrically connected to an RS485 bus level detection circuit. The RS485 bus level detection circuit is electrically connected to the microcontroller to transmit the voltage difference to the microcontroller. The microcontroller is electrically connected to the dual-channel controlled switch to control its opening and closing. The microcontroller is also used to control the dual-channel controlled switch to open when the voltage difference needs to be acquired, so that the RS485 bus level detection circuit is connected between the first signal line and the second signal line to acquire the voltage difference.

3. The RS485 bus fault protection biasing circuit of claim 1, wherein, The first signal line is electrically connected to the terminating resistor via a single-channel controlled switch. The terminating resistor is electrically connected to the second signal line. The microcontroller is electrically connected to the single-channel controlled switch to control the opening and closing of the single-channel controlled switch. The microcontroller is also used to control the single-channel controlled switch to open when the terminating resistor needs to be connected, so that the terminating resistor is connected between the first signal line and the second signal line; and to control the single-channel controlled switch to open when the terminating resistor needs to be disconnected.