Method for detecting insulation resistance in hardware circuit and related device

By configuring adjustable insulation resistance and controlling switch action, voltage is collected in real time and the insulation resistance value in the hardware circuit is automatically calculated, which solves the data maintenance difficulties caused by manual calibration in the hardware circuit, and achieves efficient and accurate insulation resistance detection and fault diagnosis.

CN120294416APending Publication Date: 2025-07-11WEICHAI POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510568813.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-30
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

The insulation resistance parameters in existing hardware circuits require manual calibration, which leads to difficulty in maintaining data under different hardware states, and is prone to calculation errors, which cannot adapt to the management needs of multiple hardware states.

Method used

By configuring the main positive and main negative terminal insulation resistance with adjustable resistance, the main switch and control switch actions are controlled, the insulation detection voltage is collected in real time, and the insulation resistance value is calculated based on the output voltage and detection voltage of the power module to achieve automatic calibration.

Benefits of technology

It realizes automatic detection of insulation resistance in hardware circuits, reduces manual operation, improves calibration efficiency and accuracy, adapts to unified management of different hardware states, and supports fault diagnosis and parameter closed-loop control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120294416A_ABST
    Figure CN120294416A_ABST
Patent Text Reader

Abstract

The invention provides an insulation resistance detection method in a hardware circuit and a related device, and relates to the field of electronic circuits. A main positive end insulation resistor is connected between the second end of the main switch of the hardware circuit and the positive electrode of the power supply module, and a main negative end insulation resistor is connected between the second end of the main switch of the hardware circuit and the negative electrode of the power supply module; according to the scheme, the main switch, the positive end control switch and the negative end control switch are controlled to act under the main positive end insulation resistor and the main negative end insulation resistor with different resistance values to obtain multiple groups of insulation detection voltages, the output voltage of the power module based on the hardware circuit and the multiple groups of insulation detection voltages obtained through detection; the resistance values of the positive end resistance, the negative end resistance, the main positive end calculation insulation resistance and the main negative end calculation insulation resistance in the hardware circuit can be obtained through calculation, and automatic detection of the resistance values of the insulation resistors in the hardware circuit is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic circuits, and in particular to an insulation resistance detection method in a hardware circuit and a related device. Background Art

[0002] There are two methods for testing the insulation resistance of electric vehicles. One is to use the signal injection method for measurement, and the other is to use external resistance switching for measurement.

[0003] Signal injection method for measurement: The DC power supply insulation measurement method changes the circuit through a relay, thereby changing the voltage on the insulation resistance of the positive and negative electrodes of the battery, and jointly solves the insulation resistance of the positive and negative electrodes of the battery to the ground by using the circuit equations under two different relay states.

[0004] External resistor switching measurement: The unbalanced bridge method for measuring insulation resistance belongs to the passive grounding method. Its basic principle is to connect a series of resistors between the DC power supply and the grounded casing, switch the resistance value through a relay, and calculate the insulation resistance of the positive and negative poles of the power supply to the ground by measuring the different voltage values ​​on each resistor and writing a group of equations.

[0005] There are other similar methods. The detection principle of the measuring circuit is to collect the voltage on the resistor and use simultaneous equations to calculate the insulation resistance between the positive and negative electrodes of the power battery and the vehicle body shell. Regardless of the insulation detection principle, as long as the resistance parameters of the hardware circuit are changed, the insulation resistance parameters need to be manually calibrated through the software before getting on the vehicle.

[0006] The current hardware circuits are designed with different resistance parameters to meet the accuracy requirements of insulation detection for different projects according to different project requirements and voltage platforms. Each time the hardware circuit is changed, the corresponding resistance parameters need to be manually calibrated. If the calibration is wrong, the insulation resistance will be calculated incorrectly. Even for the same project, there will be multiple hardware states on the market, and the corresponding resistance parameters need to be calibrated for each hardware state. Therefore, even for different hardware states of the same project, data maintenance is not easy to manage.

[0007] The existing strategies and test benches assume that the relays and resistors in the hardware circuit design are fault-free and directly calculate the insulation resistance. If troubleshooting is required, the relay action must be manually controlled and the voltage change data must be collected in real time for analysis. A multimeter can also be used to detect the on / off of the relay and the change in the collected voltage to diagnose whether the relay and resistor are faulty.

[0008] Therefore, the calibration method of relevant resistance parameters in traditional hardware circuits requires manual participation. Different resistance parameters need to be calibrated for different hardware circuits. Especially after a large number of BMS controllers are matched in the market, the calibration workload of the resistance parameters in the hardware circuit is even greater, and data maintenance is more difficult. If the data maintenance is incorrect, it will lead to incorrect calculation of the system insulation resistance. Therefore, there is an urgent need for a solution that can automatically calibrate the relevant resistance parameters in the hardware circuit. Summary of the Invention

[0009] In view of this, an embodiment of the present invention provides a method for detecting insulation resistance in a hardware circuit to provide an automatic detection solution for the resistance value of the insulation resistance in the hardware circuit.

[0010] To achieve the above object, the embodiment of the present invention provides the following technical solutions:

[0011] A method for detecting insulation resistance in a hardware circuit, the hardware circuit includes a positive terminal resistance, a negative terminal resistance, a main positive terminal calculated insulation resistance, a main negative terminal calculated insulation resistance, a main switch, a positive terminal control switch, and a negative terminal control switch; the first ends of the positive terminal resistance and the main positive terminal calculated insulation resistance are connected to the positive pole of the power supply module, the second ends of the negative terminal resistance and the main negative terminal calculated insulation resistance are connected to the negative pole of the power supply module, the second end of the positive terminal resistance is connected to the first end of the negative terminal resistance, the second end of the main positive terminal calculated insulation resistance is sequentially connected to the first end of the main negative terminal calculated insulation resistance through the positive terminal control switch and the negative terminal control switch, and the first end of the main switch is connected to the second end of the positive terminal resistance and the common end of the positive terminal control switch and the negative terminal control switch;

[0012] A main positive terminal insulation resistance is connected between the second end of the main switch and the positive pole of the power supply module, and a main negative terminal insulation resistance is connected between the second end of the main switch of the hardware circuit and the negative pole of the power supply module;

[0013] The method includes:

[0014] Under different resistance values of the main positive terminal insulation resistance and the main negative terminal insulation resistance, control the main switch, the positive terminal control switch, and the negative terminal control switch to act, and collect the insulation detection voltage in real time during the action of the main switch, the positive terminal control switch, and the negative terminal control switch. The insulation detection voltage includes the first positive terminal measurement voltage and the first negative terminal measurement voltage of the hardware circuit when the main switch is closed, and the second positive terminal measurement voltage and the second negative terminal measurement voltage when the target switch is closed. The target switch is one of the positive terminal control switch and the negative terminal control switch in the hardware circuit;

[0015] Based on the output voltage of the power supply module of the hardware circuit and the insulation detection voltage, calculate the resistance values of the positive terminal resistance, the negative terminal resistance, the main positive terminal calculated insulation resistance, and the main negative terminal calculated insulation resistance in the hardware circuit.

[0016] Optionally, in the insulation resistance detection method for the hardware circuit, the operations of controlling the main switch, the positive terminal control switch, and the negative terminal control switch, and the real-time acquisition of the insulation detection voltage during the operations of the main switch, the positive terminal control switch, and the negative terminal control switch include:

[0017] Obtaining the first positive terminal measurement voltage and the first negative terminal measurement voltage of the hardware circuit when the main switch of the hardware circuit is closed;

[0018] Based on the comparison result of the first positive terminal measurement voltage and the first negative terminal measurement voltage, selecting and controlling the target switch to close, where the target switch is one of the positive terminal control switch and the negative terminal control switch of the hardware circuit;

[0019] Obtaining the second positive terminal measurement voltage and the second negative terminal measurement voltage of the hardware circuit after the target switch is closed.

[0020] Optionally, in the insulation resistance detection method for the hardware circuit, the controlling the target switch to close based on the comparison result of the first positive terminal measurement voltage and the first negative terminal measurement voltage includes:

[0021] When the first positive terminal measurement voltage is greater than the first negative terminal measurement voltage, taking the positive terminal control switch as the target switch and controlling the positive terminal control switch to close;

[0022] When the first positive terminal measurement voltage is not greater than the first negative terminal measurement voltage, taking the negative terminal control switch as the target switch and controlling the negative terminal control switch to close.

[0023] Optionally, in the insulation resistance detection method for the hardware circuit, based on the output voltage of the power supply module of the hardware circuit and the insulation detection voltage, calculating the values of the positive terminal resistance, the negative terminal resistance, the main positive terminal calculated insulation resistance, and the main negative terminal calculated insulation resistance in the hardware circuit includes:

[0024] Substituting the insulation detection voltage and the output voltage of the power supply module collected under different values of the main positive terminal insulation resistance and the main negative terminal insulation resistance into the target formula, and solving the target formula simultaneously to obtain the values of the positive terminal resistance, the negative terminal resistance, the main positive terminal calculated insulation resistance, and the main negative terminal calculated insulation resistance in the hardware circuit, where the target formula is used to represent the calculation relationship among the insulation detection voltage, the output voltage of the power supply module, the positive terminal resistance, the negative terminal resistance, the main positive terminal calculated insulation resistance, and the main negative terminal calculated insulation resistance.

[0025] Optionally, in the insulation resistance detection method for the hardware circuit, after calculating the values of the positive terminal resistance, the negative terminal resistance, the main positive terminal calculated insulation resistance, and the main negative terminal calculated insulation resistance in the hardware circuit, it further includes:

[0026] Adjust the output voltage of the power supply module, as well as the resistance values of the main positive terminal insulation resistance and the main negative terminal insulation resistance;

[0027] Control the actions of the main switch, the positive terminal control switch, and the negative terminal control switch, and collect in real time the insulation detection voltage during the action process of the main switch, the positive terminal control switch, and the negative terminal control switch;

[0028] Based on the output voltage of the power supply module, the insulation detection voltage, the positive terminal resistance, the negative terminal resistance, the calculated insulation resistance of the main positive terminal, and the calculated insulation resistance of the main negative terminal, calculate the resistance values of the main positive terminal insulation resistance and the main negative terminal insulation resistance;

[0029] Judge whether the error between the calculated resistance values of the main positive terminal insulation resistance and the main negative terminal insulation resistance and the adjusted resistance values of the main positive terminal insulation resistance and the main negative terminal insulation resistance is within the allowable error range;

[0030] If it is within the allowable error range, calibrate each resistor in the hardware circuit based on the calculated positive terminal resistance, negative terminal resistance, calculated insulation resistance of the main positive terminal, and calculated insulation resistance of the main negative terminal.

[0031] Optionally, in the insulation resistance detection method of the hardware circuit, after controlling the actions of the main switch, the positive terminal control switch, and the negative terminal control switch, it further includes:

[0032] Judge whether there is a change in the insulation detection voltage collected before and after the switch action. If there is a change, continue to execute the subsequent steps. If there is no change, output the fault information corresponding to the action switch.

[0033] An insulation resistance detector in a hardware circuit, the hardware circuit includes a positive terminal resistance, a negative terminal resistance, a calculated insulation resistance of the main positive terminal, a calculated insulation resistance of the main negative terminal, a main switch, a positive terminal control switch, and a negative terminal control switch; the first ends of the positive terminal resistance and the calculated insulation resistance of the main positive terminal are connected to the positive pole of the power supply module, the second ends of the negative terminal resistance and the calculated insulation resistance of the main negative terminal are connected to the negative pole of the power supply module, the second end of the positive terminal resistance is connected to the first end of the negative terminal resistance, the second end of the calculated insulation resistance of the main positive terminal is sequentially connected to the first end of the calculated insulation resistance of the main negative terminal through the positive terminal control switch and the negative terminal control switch, and the first end of the main switch is connected to the second end of the positive terminal resistance and the common end of the positive terminal control switch and the negative terminal control switch;

[0034] A main positive terminal insulation resistance is connected between the second end of the main switch and the positive pole of the power supply module, and a main negative terminal insulation resistance is connected between the second end of the main switch of the hardware circuit and the negative pole of the power supply module;

[0035] The detector includes:

[0036] An insulation voltage detection unit, which is used to control the actions of the main switch, the positive terminal control switch, and the negative terminal control switch under different resistances of the main positive terminal insulation resistance and the main negative terminal insulation resistance, and to collect in real time the insulation detection voltage during the actions of the main switch, the positive terminal control switch, and the negative terminal control switch. The insulation detection voltage includes the first positive terminal measurement voltage and the first negative terminal measurement voltage of the hardware circuit when the main switch is closed, the second positive terminal measurement voltage and the second negative terminal measurement voltage when the target switch is closed, and the target switch is one of the positive terminal control switch and the negative terminal control switch in the hardware circuit;

[0037] A calculation unit, which is used to calculate the resistance values of the positive terminal resistance, the negative terminal resistance, the main positive terminal calculated insulation resistance, and the main negative terminal calculated insulation resistance in the hardware circuit based on the output voltage of the power supply module of the hardware circuit and the insulation detection voltage.

[0038] An insulation resistance detection system in a hardware circuit, comprising:

[0039] A power supply module, a main positive terminal insulation resistance, a main negative terminal insulation resistance, and an insulation resistance detector in the above-mentioned hardware circuit;

[0040] The hardware circuit includes a positive terminal resistance, a negative terminal resistance, a main positive terminal calculated insulation resistance, a main negative terminal calculated insulation resistance, a main switch, a positive terminal control switch, and a negative terminal control switch; the first ends of the positive terminal resistance and the main positive terminal calculated insulation resistance are connected to the positive pole of the power supply module, the second ends of the negative terminal resistance and the main negative terminal calculated insulation resistance are connected to the negative pole of the power supply module, the second end of the positive terminal resistance is connected to the first end of the negative terminal resistance, the second end of the main positive terminal calculated insulation resistance is sequentially connected to the first end of the main negative terminal calculated insulation resistance through the positive terminal control switch and the negative terminal control switch, and the first end of the main switch is connected to the second end of the positive terminal resistance and the common end of the positive terminal control switch and the negative terminal control switch;

[0041] A main positive terminal insulation resistance is connected between the second end of the main switch and the positive pole of the power supply module, and a main negative terminal insulation resistance is connected between the second end of the main switch of the hardware circuit and the negative pole of the power supply module.

[0042] Optionally, in the above-mentioned insulation resistance detection system in the hardware circuit, the main positive terminal insulation resistance and the main negative terminal insulation resistance are adjustable resistors;

[0043] The output voltage of the power supply module is adjustable.

[0044] Optionally, in the above-mentioned insulation resistance detection system in the hardware circuit, the main positive terminal insulation resistance and the main negative terminal insulation resistance are digital adjustable resistors.

[0045] As can be seen from the above solution, in this application, a main positive-terminal insulation resistance and a main negative-terminal insulation resistance with adjustable resistance values are configured for the hardware circuit to be detected. By controlling the actions of the main switch, the positive-terminal control switch, and the negative-terminal control switch under different resistance values of the main positive-terminal insulation resistance and the main negative-terminal insulation resistance, multiple sets of insulation detection voltages are obtained. Based on the output voltage of the power supply module of the hardware circuit and the multiple sets of insulation detection voltages obtained through detection, the resistance values of the positive-terminal resistance, the negative-terminal resistance, the calculated main positive-terminal insulation resistance, and the calculated main negative-terminal insulation resistance in the hardware circuit can be calculated, realizing the automatic detection of the resistance values of the insulation resistances in the hardware circuit. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings described below are only the embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on the provided drawings without creative efforts.

[0047] Figure 1 It is a schematic circuit diagram of an insulation resistance detection system (excluding the insulation resistance detector in the hardware circuit) in the hardware circuit disclosed in the embodiment of this application;

[0048] Figure 2 It is a schematic flowchart of a method for detecting insulation resistance in a hardware circuit disclosed in the embodiment of this application;

[0049] Figure 3 It is a schematic flowchart of a method for detecting insulation resistance in a hardware circuit disclosed in another embodiment of this application;

[0050] Figure 4 It is a schematic flowchart of a method for detecting insulation resistance in a hardware circuit disclosed in another embodiment of this application;

[0051] Figure 5 It is a schematic flowchart of diagnosing switch faults in a hardware circuit disclosed in the embodiment of this application;

[0052] Figure 6 It is a schematic structural diagram of an insulation resistance detector in the hardware circuit disclosed in the embodiment of this application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0053] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.

[0054] In this embodiment, the hardware circuit may be a BMS main control circuit, and the measurement scenario of the insulation resistance in the hardware circuit is as Figure 1 shown, where the hardware circuit includes a positive terminal resistor R1, a negative terminal resistor R2, a main positive terminal calculated insulation resistance R P0 , a main negative terminal calculated insulation resistance R N0 , a positive terminal control switch K2, a negative terminal control switch K3, and a main switch K1. The positive terminal control switch K2, the negative terminal control switch K3, and the main switch K1 may all be relays. The first ends of the positive terminal resistor R1 and the main positive terminal calculated insulation resistance R P0 are connected to the positive pole of the power supply module. The second ends of the negative terminal resistor R2 and the main negative terminal calculated insulation resistance R N0 are connected to the negative pole of the power supply module. The second end of the positive terminal resistor R1 is connected to the first end of the negative terminal resistor R2. The second end of the main positive terminal calculated insulation resistance R P0 is sequentially connected to the first end of the main negative terminal calculated insulation resistance R N0 through the positive terminal control switch K2 and the negative terminal control switch K3. The first end of the main switch K1 is connected to the second end of the positive terminal resistor R1 and the common terminal of the positive terminal control switch K2 and the negative terminal control switch K3. A main positive terminal insulation resistance R3 is connected between the second end of the main switch K1 and the positive pole of the power supply module, and a main negative terminal insulation resistance R4 is connected between the second end of the main switch K1 of the hardware circuit and the negative pole of the power supply module. The power supply module, the negative terminal resistor R2, the main positive terminal insulation resistance R3, and the main negative terminal insulation resistance R4 are not included in the hardware circuit.

[0055] As Figure 2 shown, the insulation resistance detection method in the hardware circuit disclosed in this embodiment may specifically include:

[0056] Step S201: Control the actions of the main switch K1, the positive terminal control switch K2, and the negative terminal control switch K3 under different resistances of the main positive terminal insulation resistance R3 and the main negative terminal insulation resistance R4;

[0057] In this step, since it is necessary to Figure 1 the positive terminal resistor R1, the negative terminal resistor R2, the main positive terminal calculated insulation resistance R P0 , and the main negative terminal calculated insulation resistance R N0Calculate the resistance value. That is to say, there are four unknowns in this circuit. In order to obtain the value of each unknown, multiple functional relationships need to be constructed. In this solution, by changing the main positive terminal insulation resistance R3 and the main negative terminal insulation resistance R4, multiple sets of insulation detection voltages can be measured. Substitute the measured multiple sets of insulation detection voltages into the relationship between the insulation detection voltage and the positive terminal resistance R1, negative terminal resistance R2, main positive terminal calculated insulation resistance R P0 and the main negative terminal calculated insulation resistance R N0 Between them, solve the relationship, and the positive terminal resistance R1, negative terminal resistance R2, and main positive terminal calculated insulation resistance R P0 and the main negative terminal calculated insulation resistance R N0 Resistance value;

[0058] Step S202: Collect the insulation detection voltage in real time during the operation of the main switch K1, positive terminal control switch K2, and negative terminal control switch K3;

[0059] The insulation detection voltage includes the first positive terminal measurement voltage and the first negative terminal measurement voltage of the hardware circuit when the main switch K1 is closed, the second positive terminal measurement voltage and the second negative terminal measurement voltage when the target switch is closed. The target switch is one of the positive terminal control switch K2 and the negative terminal control switch K3 of the hardware circuit.

[0060] When the main switch K1, positive terminal control switch K2, and negative terminal control switch K3 operate under different resistance values of the main positive terminal insulation resistance R3 and the main negative terminal insulation resistance R4, measure the positive terminal voltage and negative terminal voltage of the hardware circuit, and multiple sets of different first positive terminal measurement voltages, first negative terminal measurement voltages, second positive terminal measurement voltages, and second negative terminal measurement voltages can be obtained, that is, multiple sets of different insulation detection voltages.

[0061] Step S203: Calculate the positive terminal resistance R1, negative terminal resistance R2, and main positive terminal calculated insulation resistance R in the hardware circuit based on the output voltage of the power supply module of the hardware circuit and the insulation detection voltage P0 and the main negative terminal calculated insulation resistance R N0 Resistance value.

[0062] After obtaining a sufficient number of insulation detection voltages, substitute the insulation detection voltages into the functional relationships between the positive terminal resistance R1, negative terminal resistance R2, main positive terminal calculated insulation resistance R P0 and the main negative terminal calculated insulation resistance R N0 and the insulation detection voltage, and solve these functional relationships simultaneously to obtain the positive terminal resistance R1, negative terminal resistance R2, main positive terminal calculated insulation resistance R P0 and the main negative terminal calculated insulation resistance R N0 Resistance value.

[0063] As can be seen from the above solution, in this application, a main positive terminal insulation resistance and a main negative terminal insulation resistance with adjustable resistance values are configured for the hardware circuit to be detected. By controlling the actions of the main switch, the positive terminal control switch, and the negative terminal control switch under different resistance values of the main positive terminal insulation resistance and the main negative terminal insulation resistance, multiple groups of insulation detection voltages are obtained. Based on the output voltage of the power supply module of the hardware circuit and the multiple groups of insulation detection voltages obtained through detection, the resistance values of the positive terminal resistance, the negative terminal resistance, the calculated main positive terminal insulation resistance, and the calculated main negative terminal insulation resistance in the hardware circuit can be calculated, realizing the automatic detection of the resistance values of the insulation resistances in the hardware circuit.

[0064] See Figure 3 , in this embodiment, controlling the actions of the main switch K1, the positive terminal control switch K2, and the negative terminal control switch K3, and collecting the insulation detection voltages during the actions of the main switch K1, the positive terminal control switch K2, and the negative terminal control switch K3 in real time includes:

[0065] Step S301: Control the main switch K1 to close, and obtain the first positive terminal measurement voltage U P and the first negative terminal measurement voltage U N ;

[0066] In this step, when the main switch K1 is closed, the first positive terminal measurement voltage U P is obtained for the positive terminal to ground voltage of the hardware circuit, and the first negative terminal measurement voltage U N is measured for the negative terminal to ground voltage.

[0067] Step S302: Based on the comparison result of the first positive terminal measurement voltage and the first negative terminal measurement voltage, select and control the target switch to close, and obtain the second positive terminal measurement voltage and the second negative terminal measurement voltage of the hardware circuit after the target switch is closed.

[0068] The target switch is one of the positive terminal control switch K2 and the negative terminal control switch K3 of the hardware circuit. When the target switch is closed, the second positive terminal measurement voltage is obtained again for the positive terminal to ground voltage of the hardware circuit, and the second negative terminal measurement voltage is measured for the negative terminal to ground voltage.

[0069] In this embodiment, it is necessary to select the target switch based on the comparison result of the first positive terminal measurement voltage and the first negative terminal measurement voltage. Different comparison results result in different selected target switches. Specifically, in this solution, it is determined whether the first positive terminal measurement voltage U P is greater than the first negative terminal measurement voltage U N . When the first positive terminal measurement voltage U P is greater than the first negative terminal measurement voltage U NWhen the positive terminal control switch K2 is used as the target switch, when the first positive terminal measured voltage U P is not greater than the first negative terminal measured voltage U N the negative terminal control switch K3 is used as the target switch.

[0070] In this embodiment, based on the output voltage and insulation detection voltage of the power supply module of the hardware circuit, the positive terminal resistance R1, negative terminal resistance R2, main positive terminal calculated insulation resistance R P0 and main negative terminal calculated insulation resistance R N0 in the hardware circuit are calculated, including:

[0071] Substitute the insulation detection voltage and the output voltage of the power supply module collected under different values of the main positive terminal insulation resistance R3 and the main negative terminal insulation resistance R4 into the target formula, and solve the equations of the target formula simultaneously to obtain the positive terminal resistance R1, negative terminal resistance R2, main positive terminal calculated insulation resistance R P0 and main negative terminal calculated insulation resistance R N0 in the hardware circuit. The target formula is used to represent the calculation relationship between the insulation detection voltage, the output voltage of the power supply module, the positive terminal resistance, the negative terminal resistance, the main positive terminal calculated insulation resistance, and the main negative terminal calculated insulation resistance. Those skilled in the art can set a suitable target formula according to the calculation relationship between voltage and resistance. The present application does not limit the specific form of the formula, as long as it can finally calculate the positive terminal resistance R1, negative terminal resistance R2, main positive terminal calculated insulation resistance R P0 and main negative terminal calculated insulation resistance R N0 based on the insulation detection voltage, the power supply module, and other known parameters of the circuit. For example, the target formula disclosed in the embodiment of the present application may include: , , and ;

[0072] Among them, the R N0 is the value of the main negative terminal calculated insulation resistance R N0 , the R1 is the value of the positive terminal resistance R1, the R2 is the value of the negative terminal resistance R2, the R P0 is the value of the main positive terminal calculated insulation resistance R P0 , the R P is the equivalent resistance value after the parallel connection of the positive terminal resistance R1 and the main positive terminal insulation resistance R3, the R N is the equivalent resistance value after the parallel connection of the negative terminal resistance R2 and the main negative terminal insulation resistance R4, the U Bat is the output voltage of the power supply module, the U N is the first negative terminal measured voltage, the UNR is the second negative terminal measurement voltage collected when the target switch is closed, and the U P The first positive terminal voltage is measured, the U PR The second positive terminal measurement voltage is collected when the target switch is closed.

[0073] In this embodiment, since the resistance values ​​of the main positive terminal insulation resistance R3 and the main negative terminal insulation resistance R4 can be adjusted, multiple groups of insulation detection voltages can be measured under different resistance values ​​of the main positive terminal insulation resistance R3 and the main negative terminal insulation resistance R4, and these insulation detection voltages are substituted into the above target formula, multiple groups of target formulas can be obtained at this time, and these target formulas can be combined and solved to obtain the positive terminal resistance R1, the negative terminal resistance R2, and the main positive terminal calculated insulation resistance R P0 , calculate the insulation resistance R of the main negative terminal N0 The resistance value, R PC The actual positive insulation resistance is obtained by correcting the calculated main positive terminal insulation resistance, R NC The actual negative insulation resistance is obtained by correcting the calculated negative and positive terminal insulation resistance.

[0074] In this embodiment, in order to ensure that the calculated positive terminal resistance R1, negative terminal resistance R2, and main positive terminal insulation resistance R P0 , calculate the insulation resistance R of the main negative terminal N0 The reliability of the resistance value can also be verified in this solution. At this time, refer to Figure 4 , calculate the positive terminal resistance R1, negative terminal resistance R2, and main positive terminal insulation resistance R in the hardware circuit P0 , calculate the insulation resistance R of the main negative terminal N0 After the resistance value, it also includes:

[0075] Step S401: adjusting the output voltage of the power module, and the resistance values ​​of the main positive terminal insulation resistor R3 and the main negative terminal insulation resistor R4.

[0076] In this step, it is necessary to record the adjusted resistance values ​​of the main positive terminal insulation resistor R3 and the main negative terminal insulation resistor R4.

[0077] Step S402: controlling the main switch K1, the positive end control switch K2 and the negative end control switch K3 to operate, and collecting the insulation detection voltage of the main switch K1, the positive end control switch K2 and the negative end control switch K3 in real time during the operation process.

[0078] Step S403: Calculate the insulation resistance R based on the output voltage of the power module, the insulation detection voltage, the positive terminal resistance R1, the negative terminal resistance R2, and the main positive terminal insulation resistance R P0 , calculate the insulation resistance R of the main negative terminal N0The resistances of the main positive terminal insulation resistance R3 and the main negative terminal insulation resistance R4 are obtained by calculating the resistance value.

[0079] In this step, the output voltage of the power supply module, the insulation detection voltage, the positive terminal resistance R1, the negative terminal resistance R2, the main positive terminal calculated insulation resistance R P0 , the main negative terminal calculated insulation resistance R N0 The resistance values are substituted into the target formula and , and R P and R N are calculated. Since the R P is the equivalent resistance value after the parallel connection of the positive terminal resistance R1 and the main positive terminal insulation resistance R3, and the R N is the equivalent resistance value after the parallel connection of the negative terminal resistance R2 and the main negative terminal insulation resistance R4. When the values of the positive terminal resistance R1 and R P are known, the resistance value of the main positive terminal insulation resistance R3 can be calculated. When the values of the negative terminal resistance R2 and R N are known, the resistance value of the main negative terminal insulation resistance R4 can be calculated.

[0080] Step S404: Determine whether the errors between the calculated resistances of the main positive terminal insulation resistance R3 and the main negative terminal insulation resistance R4 and the adjusted resistances of the main positive terminal insulation resistance R3 and the main negative terminal insulation resistance R4 are within the allowable error range.

[0081] In this step, the calculated resistance value of the main positive terminal insulation resistance R3 is compared with the resistance value of the main positive terminal insulation resistance R3 recorded in step S401, and the calculated resistance value of the main negative terminal insulation resistance R4 is compared with the resistance value of the main negative terminal insulation resistance R4 recorded in step S401. It is respectively determined whether the errors between the two are within the allowable error range. If the errors are within the allowable error range, the calculated positive terminal resistance R1, negative terminal resistance R2, main positive terminal calculated insulation resistance R P0 , main negative terminal calculated insulation resistance R N0 have reliable resistance values. Otherwise, the calculated positive terminal resistance R1, negative terminal resistance R2, main positive terminal calculated insulation resistance R P0 , main negative terminal calculated insulation resistance R N0 have unreliable resistance values.

[0082] Step S405: If it is within the allowable error range, calibrate each resistor in the hardware circuit based on the calculated resistances of the positive terminal resistance R1, negative terminal resistance R2, main positive terminal calculated insulation resistance R P0 , main negative terminal calculated insulation resistance R N0 .

[0083] When the calculated positive terminal resistance R1, negative terminal resistance R2, main positive terminal calculated insulation resistance R P0 , and main negative terminal calculated insulation resistance R N0 have reliable resistance values, calibrate the resistance values of the positive terminal resistance R1, negative terminal resistance R2, main positive terminal calculated insulation resistance R P0 , and main negative terminal calculated insulation resistance R N0 into the controller. If the difference exceeds the allowable error range, re - execute the insulation resistance detection method in the hardware circuit provided in this application, and recalculate the resistance values of the positive terminal resistance R1, negative terminal resistance R2, main positive terminal calculated insulation resistance R P0 , and main negative terminal calculated insulation resistance R N0 .

[0084] In the technical solution disclosed in this embodiment, it is also possible to detect the magnitudes of the insulation detection voltage values detected before and after the actions of the main switch K1, positive - terminal control switch K2, and negative - terminal control switch K3. When the insulation detection voltage values detected before and after the switch action do not change, it indicates that there is a fault in the operating switch. For example, when the insulation detection voltage value does not change before and after the main switch K1 is closed, it indicates that the main switch K1 has an open - circuit fault. When the insulation detection voltage value does not change before and after the positive - terminal control switch K2 / negative - terminal control switch K3 is closed, it indicates that the positive - terminal control switch K2 / negative - terminal control switch K3 has an open - circuit fault. When the insulation detection voltage value does not change before and after the main switch K1 is opened, it indicates that the main switch K1 has an adhesion fault. When the insulation detection voltage value does not change before and after the positive - terminal control switch K2 / negative - terminal control switch K3 is opened, it indicates that the positive - terminal control switch K2 / negative - terminal control switch K3 has an adhesion fault.

[0085] Furthermore, in this embodiment, to ensure personal safety, refer to Figure 5 , before applying low - voltage power to the hardware circuit, connect the power module, main positive - terminal insulation resistance R3, main negative - terminal insulation resistance R4, and the hardware circuit as follows Figure 1After the schematic connection shown is ready, apply low-voltage power. After the system applying this method is initialized, determine whether there is a request for fault diagnosis of the insulation detection hardware circuit. If there is no request, this solution is not executed; if there is a request, first set the output voltage of the power supply module and the resistance values of the main positive terminal insulation resistance R3 and the main negative terminal insulation resistance R4, close the switch, and determine whether the insulation detection voltage changes. If there is a change, it indicates that there is no open circuit fault in the main switch K1. If there is no change, report the open circuit fault of the main switch K1. When there is no open circuit fault in the main switch K1, continue to close the positive terminal control switch K2 / negative terminal control switch K3. The open circuit fault diagnosis method of the positive terminal control switch K2 / negative terminal control switch K3 is similar to that of the main switch K1. After detecting that both the main switch K1 and the positive terminal control switch K2 / negative terminal control switch K3 have no open circuit faults, then disconnect the positive terminal control switch K2 / negative terminal control switch K3, and determine whether the insulation detection voltage changes. If there is a change, it indicates that there is no adhesion fault in the positive terminal control switch K2 / negative terminal control switch K3. If there is no change, report the adhesion fault of the positive terminal control switch K2 / negative terminal control switch K3. Continue to disconnect the main switch K1 and judge the adhesion fault of the main switch K1. The adhesion fault diagnosis method of the main switch K1 is similar to that of the positive terminal control switch K2 / negative terminal control switch K3. When it is determined that the main switch K1, the positive terminal control switch K2, and the negative terminal control switch K3 have no open circuit faults and adhesion faults, then execute step S201 and subsequent steps.

[0086] In this embodiment, an insulation resistance detector in a hardware circuit is disclosed. The insulation resistance detector in the hardware circuit is used to execute each step of any of the above-mentioned insulation resistance detection methods in the present application. For the specific working content of each unit in the insulation resistance detector in the hardware circuit, please refer to the content of the above method embodiment. The insulation resistance detector in the hardware circuit provided in the embodiment of the present invention will be described below. The insulation resistance detector in the hardware circuit described below can be mutually corresponding and referred to the insulation resistance detection method in the hardware circuit described above. Specifically, refer to Figure 6 , the insulation resistance detector in the hardware circuit includes:

[0087] An insulation voltage detection unit 10, configured to control the actions of the main switch K1, the positive terminal control switch K2, and the negative terminal control switch K3 under different resistance values of the main positive terminal insulation resistance R3 and the main negative terminal insulation resistance R4, and collect in real time the insulation detection voltage during the actions of the main switch K1, the positive terminal control switch K2, and the negative terminal control switch K3. The insulation detection voltage includes the first positive terminal measurement voltage and the first negative terminal measurement voltage of the hardware circuit when the main switch K1 is closed, and the second positive terminal measurement voltage and the second negative terminal measurement voltage when the target switch is closed. The target switch is one of the positive terminal control switch K2 and the negative terminal control switch K3 in the hardware circuit;

[0088] A calculation unit 20, configured to calculate the positive terminal resistance R1, negative terminal resistance R2, and main positive terminal calculated insulation resistance R in the hardware circuit based on the output voltage and insulation detection voltage of the power supply module of the hardware circuit P0 , and the main negative terminal calculated insulation resistance R N0 .

[0089] Corresponding to the insulation resistance detector in the above hardware circuit, the present application also discloses an insulation resistance detection system in a hardware circuit, which may include:

[0090] A power supply module, a main positive terminal insulation resistance R3, a main negative terminal insulation resistance R4, and the insulation resistance detector in the above hardware circuit.

[0091] In this embodiment, the main positive terminal insulation resistance R3 and the main negative terminal insulation resistance R4 are adjustable resistors, and the output voltage of the power supply module is adjustable.

[0092] In this embodiment, the main positive terminal insulation resistance R3 and the main negative terminal insulation resistance R4 are digital adjustable resistors. A digital adjustable resistor can be designed by using a digital coding method, such as Figure 6 is the system block diagram of the digital adjustable resistor. The core of the digital adjustable resistor is a 4321 resistor matrix (multiple 4321 resistor matrices can be selected according to actual situations), Figure 6 is 3 4321 resistor matrices, which respectively represent the hundreds, tens, and units digits of the resistance value. There are 4 high-precision thin film resistors inside each resistor matrix. By controlling the connection of the resistor matrix, any resistance value from 0 to 1110Ω can be output, where the change rate is 1Ω.

[0093] As can be seen from the above solution, this solution integrates the power supply module, the main positive terminal insulation resistance R3, and the main negative terminal insulation resistance R4 into a bench. The output voltage of the power supply module and the resistance values of the main positive terminal insulation resistance R3 and the main negative terminal insulation resistance R4 are automatically designed by the insulation resistance detector in the hardware circuit. The insulation resistance detector in the hardware circuit automatically identifies, calibrates, and verifies the positive terminal resistance R1, negative terminal resistance R2, and main positive terminal calculated insulation resistance R in the hardware circuit P0 , and the main negative terminal calculated insulation resistance R N0 , realizing the closed-loop control of the calibration of the insulation detection resistance parameters in the hardware circuit.

[0094] The output voltage of the power supply module in the full range and the resistance values of the main positive terminal insulation resistance R3 and the main negative terminal insulation resistance R4 are automatically designed by the insulation resistance detector in the hardware circuit. Only by controlling the main switch K1, the positive terminal control switch K2, and the negative terminal control switch K3 in an orderly manner through the control strategy, collecting the insulation detection voltage in real time, judging whether the voltage change is consistent with the theoretical voltage change of the actions of the main switch K1, the positive terminal control switch K2, and the negative terminal control switch K3, and inversely deducing the resistance parameters of each resistor in the hardware circuit according to the target formula and comparing them with the theoretically designed resistance parameters, can the faults of the specific main switch K1, the positive terminal control switch K2, and the negative terminal control switch K3 or the resistor be located, guiding the staff to accurately locate the problems in the hardware circuit and improving the efficiency of offline detection.

[0095] This solution realizes the automatic identification, calibration, and verification of the insulation detection hardware resistance parameters, eliminating the need for on-site manual calibration, reducing the cost of manual operation, improving the calibration efficiency and accuracy, and being applicable to all usage scenarios with different hardware states. The control strategy inversely deduces the hardware design resistance parameters based on the pre-set variable resistor and realizes automatic identification, automatic calibration, and automatic verification, which is beneficial to the unified management of the platform software and data in subsequent different hardware states.

[0096] The hardware circuit fault diagnosis method provided by this solution is used to identify the problems of the insulation detection relay or resistor in the controller hardware circuit in advance before offline, locate the faults of the specific relay or resistor, and then screen out the problem controllers in advance. By effectively identifying the hardware problems in advance through the control strategy, it guides engineers to troubleshoot and locate the hardware problems, ensuring the subsequent insulation detection process.

[0097] For the convenience of description, when describing the above system, it is described separately as various modules according to functions. Of course, when implementing the present invention, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0098] Each embodiment in this specification is described in a progressive manner. The same or similar parts between the embodiments can be referred to each other, and the key points of each embodiment are the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The system and system embodiments described above are only illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative work.

[0099] Those skilled in the art may further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0100] The steps of the methods or algorithms described in combination with the embodiments disclosed herein can be directly implemented by hardware, software modules executed by a processor, or a combination of the two. The software modules can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.

[0101] It should also be noted that in this text, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.

[0102] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to these embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for detecting insulation resistance in a hardware circuit, characterized in that, the hardware circuit includes a positive terminal resistor, a negative terminal resistor, a main positive terminal calculated insulation resistor, a main negative terminal calculated insulation resistor, a main switch, a positive terminal control switch, and a negative terminal control switch; the first ends of the positive terminal resistor and the main positive terminal calculated insulation resistor are connected to the positive pole of the power supply module, the second ends of the negative terminal resistor and the main negative terminal calculated insulation resistor are connected to the negative pole of the power supply module, the second end of the positive terminal resistor is connected to the first end of the negative terminal resistor, the second end of the main positive terminal calculated insulation resistor is sequentially connected to the first end of the main negative terminal calculated insulation resistor through the positive terminal control switch and the negative terminal control switch, and the first end of the main switch is connected to the second end of the positive terminal resistor and the common terminal of the positive terminal control switch and the negative terminal control switch; a main positive terminal insulation resistor is connected between the second end of the main switch and the positive pole of the power supply module, and a main negative terminal insulation resistor is connected between the second end of the main switch of the hardware circuit and the negative pole of the power supply module; the method includes: under different resistance values of the main positive terminal insulation resistor and the main negative terminal insulation resistor, controlling the actions of the main switch, the positive terminal control switch, and the negative terminal control switch, and collecting the insulation detection voltage during the actions of the main switch, the positive terminal control switch, and the negative terminal control switch in real time. The insulation detection voltage includes the first positive terminal measurement voltage and the first negative terminal measurement voltage of the hardware circuit when the main switch is closed, and the second positive terminal measurement voltage and the second negative terminal measurement voltage when the target switch is closed. The target switch is one of the positive terminal control switch and the negative terminal control switch of the hardware circuit; based on the output voltage of the power supply module of the hardware circuit and the insulation detection voltage, calculating the resistance values of the positive terminal resistor, the negative terminal resistor, the main positive terminal calculated insulation resistor, and the main negative terminal calculated insulation resistor in the hardware circuit.

2. The method for detecting insulation resistance in the hardware circuit according to claim 1, wherein Controlling the actions of the main switch, the positive terminal control switch, and the negative terminal control switch, and collecting the insulation detection voltage during the actions of the main switch, the positive terminal control switch, and the negative terminal control switch includes: acquiring the first positive terminal measurement voltage and the first negative terminal measurement voltage of the hardware circuit when the main switch of the hardware circuit is closed; selecting and controlling the target switch to close based on the comparison result of the first positive terminal measurement voltage and the first negative terminal measurement voltage. The target switch is one of the positive terminal control switch and the negative terminal control switch of the hardware circuit; acquiring the second positive terminal measurement voltage and the second negative terminal measurement voltage of the hardware circuit after the target switch is closed.

3. The method for detecting insulation resistance in the hardware circuit according to claim 2, wherein The selecting and controlling the target switch to close based on the comparison result of the first positive terminal measurement voltage and the first negative terminal measurement voltage includes: when the first positive terminal measurement voltage is greater than the first negative terminal measurement voltage, taking the positive terminal control switch as the target switch and controlling the positive terminal control switch to close; when the first positive terminal measurement voltage is not greater than the first negative terminal measurement voltage, taking the negative terminal control switch as the target switch and controlling the negative terminal control switch to close.

4. The method for detecting insulation resistance in the hardware circuit according to claim 2, wherein Calculating the values of the positive terminal resistance, negative terminal resistance, main positive terminal calculated insulation resistance, and main negative terminal calculated insulation resistance in the hardware circuit based on the output voltage of the power supply module and the insulation detection voltage, including: Substituting the insulation detection voltage and the output voltage of the power supply module collected under different values of the main positive terminal insulation resistance and main negative terminal insulation resistance into the target formula, and solving the target formula simultaneously to obtain the values of the positive terminal resistance, negative terminal resistance, main positive terminal calculated insulation resistance, and main negative terminal calculated insulation resistance in the hardware circuit. The target formula is used to represent the calculation relationship between the insulation detection voltage, the output voltage of the power supply module, the positive terminal resistance, the negative terminal resistance, the main positive terminal calculated insulation resistance, and the main negative terminal calculated insulation resistance.

5. The method for detecting insulation resistance in the hardware circuit according to claim 4, wherein, After calculating the values of the positive terminal resistance, negative terminal resistance, main positive terminal calculated insulation resistance, and main negative terminal calculated insulation resistance in the hardware circuit, it further includes: Adjusting the output voltage of the power supply module, as well as the values of the main positive terminal insulation resistance and main negative terminal insulation resistance; Controlling the actions of the main switch, positive terminal control switch, and negative terminal control switch, and collecting the insulation detection voltage during the actions of the main switch, positive terminal control switch, and negative terminal control switch in real time; Calculating the values of the main positive terminal insulation resistance and main negative terminal insulation resistance based on the output voltage of the power supply module, the insulation detection voltage, the positive terminal resistance, the negative terminal resistance, the main positive terminal calculated insulation resistance, and the main negative terminal calculated insulation resistance; Judging whether the error between the calculated values of the main positive terminal insulation resistance and main negative terminal insulation resistance and the adjusted values of the main positive terminal insulation resistance and main negative terminal insulation resistance is within the allowable error range; If it is within the allowable error range, calibrating each resistor in the hardware circuit based on the calculated values of the positive terminal resistance, negative terminal resistance, main positive terminal calculated insulation resistance, and main negative terminal calculated insulation resistance.

6. The method for detecting the insulation resistance in the hardware circuit according to any one of claims 1-3, characterized in that After controlling the actions of the main switch, positive terminal control switch, and negative terminal control switch, it further includes: Judging whether there is a change in the insulation detection voltage collected before and after the switch action. If there is a change, continue to execute the subsequent steps. If there is no change, output the fault information corresponding to the action switch.

7. An insulation resistance detector in a hardware circuit, characterized in that, The hardware circuit includes a positive terminal resistance, a negative terminal resistance, a main positive terminal calculated insulation resistance, a main negative terminal calculated insulation resistance, a main switch, a positive terminal control switch, and a negative terminal control switch; the first ends of the positive terminal resistance and the main positive terminal calculated insulation resistance are connected to the positive pole of the power supply module, the second ends of the negative terminal resistance and the main negative terminal calculated insulation resistance are connected to the negative pole of the power supply module, the second end of the positive terminal resistance is connected to the first end of the negative terminal resistance, the second end of the main positive terminal calculated insulation resistance is sequentially connected to the first end of the main negative terminal calculated insulation resistance through the positive terminal control switch and the negative terminal control switch, and the first end of the main switch is connected to the second end of the positive terminal resistance and the common end of the positive terminal control switch and the negative terminal control switch; A main positive terminal insulation resistance is connected between the second end of the main switch and the positive pole of the power supply module, and a main negative terminal insulation resistance is connected between the second end of the main switch of the hardware circuit and the negative pole block of the power supply module; The detector includes: An insulation voltage detection unit, which is used to control the actions of the main switch, the positive terminal control switch, and the negative terminal control switch under different resistances of the main positive terminal insulation resistance and the main negative terminal insulation resistance, and to collect in real time the insulation detection voltages during the actions of the main switch, the positive terminal control switch, and the negative terminal control switch. The insulation detection voltages include the first positive terminal measurement voltage and the first negative terminal measurement voltage of the hardware circuit when the main switch is closed, the second positive terminal measurement voltage and the second negative terminal measurement voltage when the target switch is closed. The target switch is one of the positive terminal control switch and the negative terminal control switch in the hardware circuit; A calculation unit, which is used to calculate the resistance values of the positive terminal resistance, the negative terminal resistance, the main positive terminal calculated insulation resistance, and the main negative terminal calculated insulation resistance in the hardware circuit based on the output voltage of the power supply module of the hardware circuit and the insulation detection voltages.

8. An insulation resistance detection system in a hardware circuit, characterized in that, It includes: A power supply module, a main positive terminal insulation resistance, a main negative terminal insulation resistance, and an insulation resistance detector in the hardware circuit according to claim 7; The hardware circuit includes a positive terminal resistance, a negative terminal resistance, a main positive terminal calculated insulation resistance, a main negative terminal calculated insulation resistance, a main switch, a positive terminal control switch, and a negative terminal control switch; the first ends of the positive terminal resistance and the main positive terminal calculated insulation resistance are connected to the positive pole of the power supply module, the second ends of the negative terminal resistance and the main negative terminal calculated insulation resistance are connected to the negative pole of the power supply module, the second end of the positive terminal resistance is connected to the first end of the negative terminal resistance, the second end of the main positive terminal calculated insulation resistance is sequentially connected to the first end of the main negative terminal calculated insulation resistance through the positive terminal control switch and the negative terminal control switch, and the first end of the main switch is connected to the second end of the positive terminal resistance and the common end of the positive terminal control switch and the negative terminal control switch; A main positive terminal insulation resistance is connected between the second end of the main switch and the power supply module, and a main negative terminal insulation resistance is connected between the second end of the main switch of the hardware circuit and the power supply module.

9. The insulation resistance detection system in the hardware circuit according to claim 8, characterized in that, The main positive terminal insulation resistance and the main negative terminal insulation resistance are adjustable resistors; The output voltage of the power supply module is adjustable.

10. The insulation resistance detection system in the hardware circuit according to claim 9, characterized in that, The main positive terminal insulation resistance and the main negative terminal insulation resistance are digital adjustable resistors.