Resistance value determination method, electronic device, and storage medium

By sampling and calculating the voltage in the insulation detection circuit before the capacitor is fully charged, the problems of long insulation detection cycle and low accuracy are solved, and efficient and accurate insulation resistance detection is achieved.

CN122193970APending Publication Date: 2026-06-12SUNGIANT AUTOMOTIVE ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SUNGIANT AUTOMOTIVE ELECTRONICS CO LTD
Filing Date
2026-04-24
Publication Date
2026-06-12

AI Technical Summary

Technical Problem

In existing technologies, insulation resistance testing has a long testing cycle, which makes it difficult to meet the needs of efficient testing for new energy vehicles, and the testing accuracy and reliability are insufficient.

Method used

In the insulation detection circuit, the insulation resistance is calculated by performing multiple voltage samples before the first bridge arm capacitor is fully charged, and combining the known capacitance value, resistance value, and supply voltage value, thus avoiding waiting for the capacitor to be fully charged.

Benefits of technology

It shortens the insulation testing cycle, improves testing efficiency and accuracy, reduces the impact of voltage fluctuations on test results, and enhances the accuracy and reliability of insulation resistance values.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122193970A_ABST
    Figure CN122193970A_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a resistance value determination method, an electronic device and a storage medium, relates to electronic component measurement technology, and the method comprises the following steps: when the first bridge arm is turned on and the second bridge arm is turned off, and before the first bridge arm capacitor is fully charged, the connection point between the first safety resistor and the first sampling resistor is sampled multiple times, and the resistance value of the first ground insulation resistor is determined according to the multiple first sampling voltages obtained by sampling and related parameters in the insulation detection circuit, for example, the first capacitance value of the first bridge arm capacitor, the first resistance value of the first safety resistor in the first bridge arm, the second resistance value of the second safety resistor in the second bridge arm, the third resistance value of the first sampling resistor in the first bridge arm and the power supply voltage value of the power supply in the insulation detection circuit. Since the voltage sampling and insulation resistance calculation are completed before the first bridge arm capacitor is fully charged, it is not necessary to wait for the capacitor to be fully charged, and thus the insulation detection period can be shortened, and the insulation detection efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic component measurement technology, and in particular to a method for determining resistance value, an electronic device, and a storage medium. Background Technology

[0002] The battery management system (BMS) is a core component of energy management and safety protection in new energy vehicles. It monitors the insulation status of the power battery system to ground in real time through insulation detection circuits. The insulation resistance value reflects the degree of electrical isolation between the high-voltage system and the vehicle chassis. Furthermore, accurate insulation resistance detection is a crucial evaluation parameter in multiple aspects such as high-voltage safety protection and fault early warning. Quickly obtaining reliable insulation resistance values ​​is essential for ensuring the driving safety of new energy vehicles.

[0003] In related technologies, the insulation resistance is usually tested and calculated using the bridge balancing method or voltage injection method. However, the insulation test results obtained have the problem of long test cycles, which makes it difficult to meet the requirements of efficient insulation testing.

[0004] It is evident that current insulation testing methods suffer from low efficiency in obtaining insulation resistance values. Summary of the Invention

[0005] In view of this, one of the objectives of this application is to provide a method for determining resistance value, an electronic device, and a storage medium that can shorten the insulation testing cycle and improve the insulation testing efficiency.

[0006] To achieve the above objectives, the technical solution of this application is implemented as follows: In a first aspect, embodiments of this application provide a method for determining resistance values, applied to an insulation detection circuit. The insulation detection circuit includes a power supply, a first bridge arm, and a second bridge arm. A first terminal of the power supply is connected to a first common terminal of the first bridge arm, and a second terminal of the power supply is connected to the first common terminal of the second bridge arm. The second common terminal of the first bridge arm is connected to the second common terminal of the second bridge arm. The first bridge arm includes a first parallel unit, and the second bridge arm includes a second parallel unit. The first parallel unit includes at least a first safety resistor, a first sampling resistor, a first bridge arm capacitor, and a first insulation resistance to ground. The second parallel unit includes at least a second safety resistor. The method for determining resistance values ​​includes: Before the first bridge arm is turned on, the second bridge arm is turned off, and the first bridge arm capacitor is fully charged, the voltage at the connection point between the first safety resistor and the first sampling resistor is sampled multiple times to obtain multiple first sampling voltages. In response to the sampling of multiple first sampling voltages, the resistance value of the first ground insulation resistance is determined based on the first capacitance value, the first resistance value, the second resistance value, the third resistance value, the supply voltage value, and the multiple first sampling voltages. Wherein, the first capacitor value is the capacitance value of the first bridge arm capacitor, the first resistor value is the resistance value of the first safety resistor, the second resistor value is the resistance value of the second safety resistor in the second bridge arm, the third resistor value is the resistance value of the first sampling resistor, and the supply voltage value is the voltage value of the power supply.

[0007] In one possible implementation, the second parallel unit further includes a second sampling resistor, a second bridge arm capacitor, and a second insulation resistance to ground; after performing multiple voltage samplings on the connection point between the first safety resistor and the first sampling resistor to obtain multiple first sampling voltages, the method for determining the resistance value further includes: In response to the sampling of multiple first sampled voltages, the second bridge arm is controlled to be turned on and the first bridge arm is turned off. Before the second bridge arm capacitor is fully charged, the voltage at the connection point between the second safety resistor and the second sampling resistor is sampled multiple times to obtain multiple second sampling voltages; In response to the sampling, multiple second sampling voltages are obtained. Based on the second capacitance value, the first resistance value, the second resistance value, the fourth resistance value, and the multiple second sampling voltages, the resistance value of the second ground insulation resistance in the second bridge arm is determined. The second capacitor value is the capacitance value of the second bridge arm capacitor, and the fourth resistor value is the resistance value of the second sampling resistor.

[0008] In one possible implementation, in response to obtaining multiple first sampled voltages, controlling the second bridge arm to turn on and the first bridge arm to turn off includes: In response to the sampling of multiple first sampled voltages, the first bridge arm is controlled to disconnect; In response to the first bridge arm capacitor discharging to a preset charge amount, the second bridge arm is controlled to turn on and the first bridge arm is turned off.

[0009] In one possible implementation, the preset charge amount is zero charge amount.

[0010] In one possible implementation, determining the resistance value of the first-to-ground insulation resistance based on a plurality of first sampling voltages and a first capacitance value of a first bridge arm capacitor includes: The first voltage change rate of multiple first sampled voltages was calculated; The resistance value of the first insulation resistance to ground is determined based on the first capacitance value, the first resistance value, the second resistance value, the third resistance value, the supply voltage value, and the first voltage change rate.

[0011] In one possible implementation, determining the resistance value of the first-to-ground insulation resistance based on the first capacitance value, the first resistance value, the second resistance value, the third resistance value, the supply voltage value, and the first voltage change rate includes: The product of the first voltage change rate and the first capacitance value is determined as the first value; Divide the supply voltage value by the first value to obtain the second value; The difference between the second value and the first resistance value is determined as the third value; The resistance value of the first-to-ground insulation resistance is determined based on the first resistance value, the second resistance value, the third resistance value, and the third value.

[0012] In one possible implementation, the first voltage change rate of a plurality of first sampled voltages is calculated, including: Determine the sampling frequency corresponding to each of the multiple first sampling voltages; Based on the sampling frequency corresponding to each first sampling voltage, the multiple first sampling voltages are numerically differentiated to obtain the first voltage change rate.

[0013] In one possible implementation, before determining the resistance value of the first-to-ground insulation resistance based on the first capacitance value, the first resistance value, the second resistance value, the third resistance value, and a plurality of first sampling voltages, the resistance value determination method further includes: Before the first bridge arm is turned on, the second bridge arm is turned off, and the first bridge arm capacitor is fully charged, the voltage at the connection point between the first safety resistor and the first sampling resistor is sampled multiple times to obtain multiple third sampling voltages; wherein the sampling time corresponding to the multiple third sampling voltages is earlier than the sampling time corresponding to the multiple first sampling voltages; In response to the sampling of multiple third sampling voltages, the first capacitor value is determined based on the first resistor value, the second resistor value, the third resistor value, the supply voltage value, and the multiple third sampling voltages.

[0014] Secondly, embodiments of this application provide an electronic device, which includes a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, it implements the method provided in the first aspect.

[0015] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by one or more processors, implements the method provided in the first aspect.

[0016] This application provides a method for determining resistance values, applied to an insulation detection circuit. The insulation detection circuit includes a power supply, a first bridge arm, and a second bridge arm. The first bridge arm includes a first parallel unit, and the second bridge arm includes a second parallel unit. The first parallel unit includes at least a first safety resistor, a first sampling resistor, a first bridge arm capacitor, and a first insulation resistance to ground. The second parallel unit includes at least a second safety resistor. The method involves performing multiple voltage samplings at the connection point between the first safety resistor and the first sampling resistor before the first bridge arm is turned on, the second bridge arm is turned off, and the first bridge arm capacitor in the first bridge arm is fully charged. Based on the multiple first sampling voltages and relevant parameters in the insulation detection circuit, such as the first capacitance value of the first bridge arm capacitor, the first resistance value of the first safety resistor in the first bridge arm, the second resistance value of the second safety resistor in the second bridge arm, the third resistance value of the first sampling resistor in the first bridge arm, and the power supply voltage value of the power supply in the insulation detection circuit, the resistance value of the first insulation resistance to ground is determined. Since voltage sampling and insulation resistance calculation are completed before the first bridge arm capacitor is fully charged, there is no need to wait for the capacitor to fully charge, thereby shortening the insulation detection cycle and improving insulation detection efficiency. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. It should be understood that the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] The attached diagram is described below: Figure 1 A topology diagram of an insulation detection circuit involved in a resistance value determination method provided in an embodiment of this application; Figure 2 This is one of the flowcharts illustrating a method for determining a resistance value provided in an embodiment of this application; Figure 3 A second schematic flowchart illustrating a method for determining a resistance value provided in an embodiment of this application; Figure 4 This is the third flowchart illustrating a method for determining a resistance value provided in an embodiment of this application. Figure 5 The fourth schematic flowchart illustrates a method for determining resistance values ​​provided in this application embodiment; Figure 6 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application.

[0019] Explanation of reference numerals in the attached figures: U pack The voltage value of the power supply; R1, the first safety resistor; R2, the second safety resistor; R3, the first sampling resistor; R4, the second sampling resistor; Yp, first bridge arm capacitor; Yn, the capacitor of the second bridge arm; Rp, first ground insulation resistance; Rn, the second ground insulation resistance; K1, First Switch; K2, the second switch; K3 Third Switch; 601. Processor; 602. Memory; 603. Communication interface; 610. Bus. Detailed Implementation

[0020] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.

[0021] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0022] New energy vehicles represent a crucial direction for the transformation and upgrading of the automotive industry. The power battery system is the core power source for new energy vehicles, and the Battery Management System (BMS), as a core component of the power battery system, undertakes critical tasks such as power battery energy management, real-time monitoring of operating status, and high-voltage system safety protection. It is a vital component ensuring the safe and stable operation of new energy vehicles. Insulation resistance detection is one of the core functions of the BMS. The insulation resistance value between the high-voltage power battery system and the vehicle chassis is an important parameter for measuring the degree of electrical isolation between the two. Accurate and rapid detection of the insulation resistance value directly determines the timeliness of high-voltage safety protection response and the effectiveness of fault warnings. It plays a vital role in avoiding safety hazards such as high-voltage leakage and electrical short circuits, and ensuring the overall vehicle driving safety.

[0023] Currently, the industry typically uses methods such as the bridge balancing method and voltage injection method to detect the insulation resistance of power battery systems to ground. However, in actual vehicle applications, these methods are easily limited by factors such as detection principles, algorithm design, and hardware adaptation. The efficiency and accuracy of insulation detection are difficult to meet the actual usage requirements of new energy vehicles.

[0024] Specifically, this is reflected in the following aspects: First, the above-mentioned conventional industry solutions take a long time to calculate the insulation resistance value, usually up to 10s or even 15s. The detection response speed is slow, making it difficult to detect the insulation status of the high-voltage system of the power battery in a timely manner. When the insulation status of the high-voltage system suddenly changes abnormally, it is difficult to quickly monitor the abnormal status, which will result in a significant lag in high-voltage safety protection. Second, the overall Y-capacitor parameters of vehicles vary under different models and configurations. The above-mentioned industry standard solutions do not calibrate the Y-capacitor parameters of vehicles and often calculate the insulation value before the detection voltage is stable. The calculation results have large deviations and are difficult to accurately reflect the actual insulation status of the high-voltage system. Third, the above-mentioned industry standard solutions have excessively long intervals between single insulation sampling and between two insulation sampling periods. The total voltage of the power battery is prone to fluctuations during the sampling process, which will affect the calculation of insulation resistance, leading to increased deviation in detection accuracy and consequently affecting the calculated insulation resistance value.

[0025] The aforementioned Y capacitor is a special type of capacitor in the electrical system of electric vehicles. It is typically designed to provide a low-impedance path between different parts of the circuit, which helps reduce electromagnetic interference and also provides protection when the circuit is subjected to external interference.

[0026] Based on this, embodiments of this application provide a method for determining resistance values, an electronic device, and a computer-readable storage medium. Taking the method for determining resistance values ​​as an example, the method is applied to an insulation detection circuit. The insulation detection circuit includes a power supply, a first bridge arm, and a second bridge arm. The first bridge arm includes a first parallel unit, and the second bridge arm includes a second parallel unit. The first parallel unit includes at least a first safety resistor, a first sampling resistor, a first bridge arm capacitor, and a first insulation resistance to ground. The second parallel unit includes at least a second safety resistor. The method involves performing multiple voltage samples at the connection point between the first safety resistor and the first sampling resistor before the first bridge arm is turned on and the second bridge arm is turned off, and before the first bridge arm capacitor in the first bridge arm is fully charged. Based on the multiple first sampling voltages obtained and relevant parameters in the insulation detection circuit, such as the first capacitance value of the first bridge arm capacitor, the first resistance value of the first safety resistor in the first bridge arm, the second resistance value of the second safety resistor in the second bridge arm, the third resistance value of the first sampling resistor in the first bridge arm, and the power supply voltage value of the power supply in the insulation detection circuit, the resistance value of the first insulation resistance to ground is determined. Since voltage sampling and insulation resistance calculation are completed before the first bridge arm capacitor is fully charged, there is no need to wait for the capacitor to be fully charged, which can shorten the insulation detection cycle and improve the insulation detection efficiency.

[0027] Furthermore, by adopting the resistance value determination method provided in the embodiments of this application, the insulation detection cycle can be shortened, thereby avoiding the situation where the total voltage of the power battery fluctuates due to an excessively long detection cycle, which affects the insulation resistance calculation process and leads to an aggravation of the detection accuracy deviation. This, in turn, can enhance the accuracy and reliability of the calculated insulation resistance value.

[0028] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with relevant regulations. The acquisition, storage, use and processing of data in the technical solution of this application all comply with the relevant provisions of national laws and regulations.

[0029] Please see Figure 1 , Figure 1 This is a topology diagram of the insulation detection circuit involved in a resistance value determination method provided in an embodiment of this application. Figure 1The insulation detection circuit shown includes a power supply, a first bridge arm, and a second bridge arm. The first end of the power supply is connected to the first common terminal of the first bridge arm, and the second end of the power supply is connected to the first common terminal of the second bridge arm. The second common terminal of the first bridge arm is connected to the second common terminal of the second bridge arm. The first bridge arm includes a first parallel unit, and the second bridge arm includes a second parallel unit. The first parallel unit includes at least a first safety resistor R1, a first sampling resistor R3, a first bridge arm capacitor Yp, and a first insulation resistance to ground Rp. The second parallel unit includes at least a second safety resistor R2.

[0030] In the first parallel unit mentioned above, the first safety resistor R1 is connected in parallel with the first sampling resistor R3, the first bridge arm capacitor Yp and the first ground insulation resistor Rp, respectively. One end of the parallel connection is the first common terminal of the first bridge arm, and the other end of the parallel connection is the second common terminal of the first bridge arm.

[0031] In some embodiments, the second parallel unit includes at least a second safety resistor R2, a second sampling resistor R4, a second bridge arm capacitor Yn, and a second ground insulation resistance Rn.

[0032] The aforementioned second safety resistor R2 is connected in parallel with the second sampling resistor R4, the second bridge arm capacitor Yn, and the second ground insulation resistance Rn, respectively. One end of the parallel connection is the first common terminal of the second bridge arm, and the other end of the parallel connection is the second common terminal of the second bridge arm.

[0033] In some embodiments, the second common terminal of the first bridge arm is grounded via the first switch K1.

[0034] like Figure 1 The first sampling resistor R3 is connected in series with the second switch K2. One end of the series connection is the first common terminal of the first bridge arm, and the other end of the series connection is the second common terminal of the second bridge arm.

[0035] like Figure 1 The second sampling resistor R4 is connected in series with the third switch K3. One end of the series connection is the first common terminal of the second bridge arm, and the other end of the series connection is the second common terminal of the second bridge arm.

[0036] In some embodiments, the number of first safety resistors R1 is N, where N is a positive integer.

[0037] In some embodiments, the number of first sampling resistors R3, the number of second safety resistors R2, and the number of second sampling resistors R4 are all N.

[0038] Taking the first safety resistor R1 as an example, such as Figure 1In the insulation detection circuit shown, there is one first safety resistor R1. When there are two first safety resistors R1, the two first safety resistors R1 are connected in series and then connected in parallel with the first sampling resistor R3, the first bridge arm capacitor Yp and the first ground insulation resistor Rp, respectively.

[0039] Although two first safety resistors R1 are shown for illustrative purposes, three or more first safety resistors R1 can be selected according to actual needs, all of which are within the protection scope of the embodiments of this application.

[0040] It should be noted that the number of the first sampling resistor R3, the second safety resistor R2, and the second sampling resistor R4 can all be 2, 3, or more, and will not be listed here.

[0041] It should be noted that the embodiments of this application do not specifically limit the values ​​of the first safety resistor R1, the first sampling resistor R3, the first bridge arm capacitor Yp, the first ground insulation resistance Rp, the second safety resistor R2, the second sampling resistor R4, the second bridge arm capacitor Yn, and the second ground insulation resistance Rn, and can be selected according to actual needs.

[0042] The following will be applied to, for example Figure 1 The method for determining the resistance value of the insulation detection circuit shown is described below. Please refer to [link / reference]. Figure 2 , Figure 2 This is a flowchart illustrating a method for determining a resistance value provided in an embodiment of this application, as shown below. Figure 2 The method shown specifically includes the following steps 210 to 220.

[0043] Step 210: Before the first bridge arm is turned on, the second bridge arm is turned off, and the first bridge arm capacitor Yp is fully charged, the voltage at the connection point between the first safety resistor R1 and the first sampling resistor R3 is sampled multiple times to obtain multiple first sampling voltages.

[0044] Before the first bridge arm capacitor Yp is fully charged, it can also be regarded as the initial charging stage. During this stage, in the charging circuit formed by the first sampling resistor R3 and the first bridge arm capacitor Yp, the voltage of the first bridge arm capacitor Yp increases exponentially with time. The voltage change rate of the first bridge arm capacitor Yp is the largest. At this time, multiple dynamically changing first sampling voltages can be sampled and can be directly used to calculate the resistance value of the first ground insulation resistance Rp.

[0045] In some embodiments, performing multiple voltage samplings on the connection point between the first safety resistor R1 and the first sampling resistor R3 includes sampling multiple first sampling voltages according to a preset sampling strategy.

[0046] The above-mentioned sampling according to the preset sampling strategy can be achieved in at least the following ways: Method 1, the preset sampling strategy includes sampling at preset time intervals.

[0047] For example, within 500ms of the first bridge arm being turned on, six first sample voltages are obtained by sampling at 100ms intervals.

[0048] Method 2: The preset sampling strategy can also include sampling at different time intervals.

[0049] For example, sampling can be performed according to a first time interval sequence when the first bridge arm is turned on, or it can be performed according to a second time interval sequence when the first bridge arm is turned on. Both the first and second time interval sequences include time intervals of different sizes, with the time intervals in the first time interval sequence increasing sequentially and the time intervals in the second time interval sequence decreasing sequentially.

[0050] For example, sampling is performed within 500ms from the moment the first bridge arm is turned on, according to a first time interval sequence, the first time interval sequence being (0, 50, 120, 210, 310, 500).

[0051] For example, sampling is performed within 500ms from the turn-on of the first bridge arm according to a second time interval sequence, the second time interval sequence being (0, 190, 290, 380, 450, 500).

[0052] Method 3, the preset sampling strategy may also include selecting a corresponding time interval for sampling based on the supply voltage value. Method 3 can be implemented through steps 2110 to 2130. Please refer to [link to relevant documentation]. Figure 3 , Figure 3 This is a second schematic flowchart illustrating a method for determining resistance values ​​provided in an embodiment of this application.

[0053] Step 2110: In response to the first bridge arm being turned on and the second bridge arm being turned off, the voltage at the connection point between the first safety resistor R1 and the first sampling resistor R3 is sampled multiple times at a first preset time interval to obtain multiple first sampling voltages.

[0054] Step 2120: In response to the first bridge arm being turned on and the second bridge arm being turned off, and the voltage at the connection point between the first safety resistor R1 and the first sampling resistor R3 being greater than or equal to the lower limit of the voltage threshold, the voltage at the connection point between the first safety resistor R1 and the first sampling resistor R3 is sampled multiple times at a second preset time interval to obtain multiple first sampling voltages; wherein, the first preset time interval is greater than the second preset time interval.

[0055] Step 2130: In response to the first bridge arm being turned on, the second bridge arm being turned off, and the voltage at the connection point between the first safety resistor R1 and the first sampling resistor R3 being greater than or equal to the upper limit of the voltage threshold, sampling is stopped; wherein, the lower limit of the voltage threshold is less than the upper limit of the voltage threshold.

[0056] In some embodiments, the lower limit of the voltage threshold is 5% of the supply voltage value, and the upper limit of the voltage threshold is 80% of the supply voltage value.

[0057] In some embodiments, step 2130 further includes: Sampling stops when the first bridge arm is turned on, the second bridge arm is turned off, the voltage at the connection point between the first safety resistor R1 and the first sampling resistor R3 is greater than the lower limit of the voltage threshold and less than or equal to the upper limit of the voltage threshold, and the number of voltage samples is greater than or equal to the preset number of samples threshold.

[0058] In some embodiments, the preset sampling quantity threshold is 6.

[0059] The above method of changing the sampling frequency based on the upper and lower limits of the voltage threshold can obtain a set of multiple first sampling voltages collected during the rapid voltage change phase of the first bridge arm capacitor Yp. This method can adapt to different capacitance values ​​of the first bridge arm capacitor Yp and always sample during the phase when the voltage change rate of the first bridge arm capacitor Yp is relatively high. It can also improve the accuracy and reliability of the voltage change rate determined based on multiple first sampling voltages in subsequent embodiments.

[0060] The above-mentioned sampling according to a preset time interval, sampling according to a first time interval sequence, or sampling according to a second time interval can be selected according to actual needs.

[0061] Although the above 500ms and specific preset time intervals, first time interval sequences, second time interval sequences, lower voltage threshold, upper voltage threshold, and preset sampling number threshold are shown for illustrative purposes, other values ​​can be selected as needed, all of which are within the protection scope of the embodiments of this application.

[0062] When the first bridge arm and the second bridge arm are connected or disconnected, the on / off states of the first switch K1, the second switch K2, and the third switch K3 are described as follows: When the first bridge arm is conducting, both the first switch K1 and the second switch K2 are conducting; When the first bridge arm is disconnected, the first switch K1 is turned on and the second switch K2 is turned off; With the second bridge arm conducting, both the first switch K1 and the third switch K3 are conducting; When the second bridge arm is disconnected, the first switch K1 is turned on and the third switch K3 is turned off.

[0063] It should be noted that regardless of whether the first and second bridge arms are on or off, during the voltage sampling process, if... Figure 1 All of the first switches K1 shown are turned on.

[0064] The on / off states of the first switch K1, the second switch K2, and the third switch K3 can be controlled by control commands generated by the vehicle's BMS.

[0065] Step 220: In response to the sampling of multiple first sampling voltages, determine the resistance value of the first ground insulation resistance Rp based on the first capacitance value, the first resistance value, the second resistance value, the third resistance value, the power supply voltage value, and the multiple first sampling voltages. Wherein, the first capacitor value is the capacitance value of the first bridge arm capacitor Yp, the first resistor value is the resistance value of the first safety resistor R1, the second resistor value is the resistance value of the second safety resistor R2 in the second bridge arm, the third resistor value is the resistance value of the first sampling resistor R3, and the supply voltage value is the voltage value U of the power supply. pack .

[0066] After determining multiple first sampling voltages through the above steps 210, step 210 can combine the existing known first capacitance value, first resistance value, second resistance value, third resistance value, and power supply voltage value to calculate the resistance value of the first ground insulation resistance Rp.

[0067] It should be noted that the complete vehicle equipment often includes two ground insulation resistors: a positive ground insulation resistor and a negative ground insulation resistor. If the first ground insulation resistor Rp in the above embodiment is a positive ground insulation resistor, the resistance value of the positive ground insulation resistor can be detected through steps 210 and 220. Furthermore, the resistance value is calculated based on data obtained before the first bridge arm capacitor Yp is fully charged. Compared to using a bridge balance valve or voltage injection method, this shortens the insulation detection cycle and improves insulation detection efficiency.

[0068] When the resistance value of the positive-to-ground insulation resistance is detected through the above steps 210 and 220, whether the same method as steps 210 and 220 is used (the only difference is that the first bridge arm is open and the second bridge arm is closed), or the resistance value of the negative-to-ground insulation resistance is detected by using a bridge balance valve or voltage injection method, the overall insulation detection efficiency is higher than that of using a bridge balance valve or voltage injection method alone.

[0069] In one possible implementation, after sampling the connection point between the first safety resistor R1 and the first sampling resistor R3 multiple times to obtain multiple first sampling voltages, the method for determining the resistance value further includes: In response to the sampling of multiple first sampled voltages, the second bridge arm is controlled to be turned on and the first bridge arm is turned off. Before the second bridge arm capacitor Yn is fully charged, the voltage at the connection point between the second safety resistor R2 and the second sampling resistor R4 is sampled multiple times to obtain multiple second sampling voltages. In response to the sampling, multiple second sampling voltages are obtained. Based on the second capacitance value, the first resistance value, the second resistance value, the fourth resistance value, and the multiple second sampling voltages, the resistance value of the second ground insulation resistance Rn in the second bridge arm is determined. The second capacitor value is the capacitance value of the second bridge arm capacitor Yn, and the fourth resistor value is the resistance value of the second sampling resistor R4.

[0070] In this embodiment, by controlling the second bridge arm to be on and the first bridge arm to be off, the resistance value of the second ground insulation resistance Rn is detected in the same way as steps 210 and 220 in the above embodiment, achieving the same effect. It will not be described again here, but you can refer to the specific implementation process of steps 210 and 220.

[0071] If the first pair of ground insulation resistance Rp is a positive ground insulation resistance, then the second pair of ground insulation resistance Rn is a negative ground insulation resistance.

[0072] If the resistance values ​​of the first pair-to-ground insulation resistance Rp and the second pair-to-ground insulation resistance Rn are detected sequentially according to the method provided in the embodiments of this application, in some embodiments, before detecting the resistance value of the second pair-to-ground insulation resistance Rn, the first switch K1 and the second switch K2 can be controlled to be turned off, and the third switch K3 can be kept off, so as to release the charge of the first bridge arm capacitor Yp. In this way, the influence of the residual charge in the first bridge arm capacitor Yp on the output voltage of the power supply can be avoided when detecting the second pair-to-ground insulation resistance Rn, the accuracy and reliability of the multiple second sampling voltages determined when detecting the second pair-to-ground insulation resistance Rn can be enhanced, and thus the accuracy and reliability of the second pair-to-ground insulation detection can be improved.

[0073] Conversely, if the resistance value of the second pair of ground insulation resistance Rn is detected first, then before detecting the resistance value of the first pair of ground insulation resistance Rp, the second switch K2 and the third switch K3 can be controlled to be turned off, and the first switch K1 can be kept off, so as to release the charge of the second bridge arm capacitor Yn.

[0074] In some embodiments, before detecting the resistance value of the second ground insulation resistance Rn, the first switch K1 and the second switch K2 can be controlled to be turned off, and the third switch K3 can be kept off, including: controlling the first switch K1 and the second switch K2 to be turned off for a preset time, and the third switch K3 to be kept off.

[0075] This embodiment does not specifically limit the above preset duration, and can be selected according to actual needs. For example, the preset duration is 500ms.

[0076] In one possible implementation, in response to obtaining multiple first sampled voltages, controlling the second bridge arm to turn on and the first bridge arm to turn off includes: In response to the sampling of multiple first sampled voltages, the first bridge arm is controlled to disconnect; In response to the first bridge arm capacitor Yp discharging to a preset charge amount, the second bridge arm is controlled to turn on and the first bridge arm is turned off.

[0077] To further improve the detection efficiency of insulation resistance value, in this embodiment of the application, when the first bridge arm capacitor Yp is detected to discharge to a preset charge amount, the second bridge arm can be immediately controlled to conduct and the first bridge arm can be disconnected to continue the detection of the second ground insulation resistance Rn.

[0078] The embodiments of this application do not specifically limit the preset charge amount, which can be selected according to actual needs.

[0079] For example, the preset charge is zero charge, that is, the charge of the first bridge arm capacitor Yp is completely released before the switching on and off of each switch is controlled to detect the second ground insulation resistance Rn.

[0080] For example, the preset charge amount is the full charge amount or N times the full charge amount, where N is greater than 0 and less than 1. That is, before the charge amount of the first bridge arm capacitor Yp is fully released, the on and off of each switch is controlled to realize the detection of the insulation resistance Rn to ground. In this way, the insulation detection efficiency can be further improved.

[0081] Considering that the charge of the first bridge arm capacitor Yp is not fully released, the residual charge may affect the accuracy of detecting the second-to-ground insulation resistance Rn, specifically affecting the accuracy of the multiple second sampling resistors R4 collected during the detection of the second-to-ground insulation resistance Rn. In some embodiments, the influence of the residual charge on the multiple second sampling resistors R4 can be reduced or even eliminated through steps 310 to 330. Please refer to... Figure 4 , Figure 4 This is the third flowchart illustrating a method for determining resistance value provided in an embodiment of this application.

[0082] Step 310: In response to the first bridge arm capacitor Yp discharging to a preset charge amount, control the second bridge arm to turn on and the first bridge arm to turn off, and re-detect the residual charge amount of the first bridge arm capacitor Yp.

[0083] Step 320: Determine the corresponding influence factor based on the amount of residual charge. The magnitude of the influence factor is used to characterize the degree of influence of the amount of residual charge on the multiple second sampling resistors R4 collected during the detection of the second ground insulation resistance Rn.

[0084] Step 330: During the detection of the second ground insulation resistance Rn, the multiple second sampling resistors R4 collected are multiplied by the influence factor to obtain multiple second target sampling resistors.

[0085] The aforementioned "in response to obtaining multiple second sampling voltages, determining the resistance value of the second bridge arm's second-to-ground insulation resistance Rn based on the second capacitance value, the first resistance value, the second resistance value, the fourth resistance value, and the multiple second sampling voltages" includes: In response to the sampling of multiple second sampling voltages, the resistance value of the second ground insulation resistance Rn in the second bridge arm is determined based on the second capacitance value, the first resistance value, the second resistance value, the fourth resistance value and the multiple second target sampling voltages.

[0086] In some embodiments, step 320 may determine the influence factor corresponding to the residual charge by means of a preset mapping relationship, wherein the preset mapping relationship includes a one-to-one mapping relationship between different charge amounts and different influence factors.

[0087] The aforementioned preset mapping relationship can be determined through a control experiment before step 110.

[0088] Example: Before detecting the second ground insulation resistance Rn, the charge of the first bridge arm capacitor Yp is completely released. According to the above embodiment, multiple second sampling voltages are sampled and the first average voltage of the multiple second sampling voltages is determined. Before detecting the second ground insulation resistance Rn, the charge of the first bridge arm capacitor Yp is released to 50% of the total charge of the first bridge arm capacitor Yp. Multiple second sampling voltages are obtained according to the above embodiment, and the second average voltage of the multiple second sampling voltages is determined. The average value between the first average voltage and the second average voltage is determined as the influence factor corresponding to the case where the residual charge of the first bridge arm capacitor Yp is 50% of its total charge.

[0089] For the same type of first bridge arm capacitor Yp, the influence factors corresponding to different residual charge amounts of the first bridge arm capacitor Yp can be obtained through the above comparative experiments.

[0090] In one possible implementation, the resistance value of the first-to-ground insulation resistance Rp is determined based on a plurality of first sampling voltages and a first capacitance value of the first bridge arm capacitance Yp, including steps 410 to 420. See also... Figure 5 , Figure 5This is the fourth flowchart illustrating a method for determining resistance values ​​provided in this application.

[0091] Step 410: Calculate the first voltage change rate of multiple first sampled voltages.

[0092] Step 420: Determine the resistance value of the first ground insulation resistance Rp based on the first capacitance value, the first resistance value, the second resistance value, the third resistance value, the power supply voltage value, and the first voltage change rate.

[0093] In some embodiments, step 410 includes: Determine the sampling frequency corresponding to each of the multiple first sampling voltages; Based on the sampling frequency corresponding to each first sampling voltage, the multiple first sampling voltages are numerically differentiated to obtain the first voltage change rate.

[0094] In one possible implementation, step 410 includes: The product of the first voltage change rate and the first capacitance value is determined as the first value; Divide the supply voltage value by the first value to obtain the second value; The difference between the second value and the first resistance value is determined as the third value; The resistance value of the first ground insulation resistance Rp is determined based on the first resistance value, the second resistance value, the third resistance value, and the third value.

[0095] For example, when the first switch K1 and the second switch K2 are turned on and the third switch K3 is turned off, the first bridge arm capacitor Yp is rapidly charged. The voltage change at the connection point between the first safety resistor R1 and the first sampling resistor R3 is as follows: (1); Differentiating equation (1) with respect to time t, we get: (2); When t=0, we can obtain: (3); In equations (2) and (3), , represents the equivalent resistance of the first safety resistor R1, the first sampling resistor R3, and the first ground insulation resistance Rp connected in parallel and then connected in series with the second safety resistor R2.

[0096] It should be noted that the second-to-ground insulation resistance Rn is not considered in the Rx formula. In actual testing, the second-to-ground insulation resistance Rn is connected in parallel with the first-to-ground insulation resistance Rp, making it difficult to determine the minimum value of the first-to-ground insulation resistance Rp. However, by ignoring the second-to-ground insulation resistance Rn in the series-parallel connection, the minimum value of the first-to-ground insulation resistance Rp can be calculated.

[0097] Based on the sampling scheme of the aforementioned embodiment, sampling is performed at a preset time interval of 500ms to obtain 6 first sampled voltages: V p0 V p1 V p2 V p3 V p4 V p5 By performing numerical differentiation on the six first sampled voltages, the rate of change of the first voltage was obtained as follows: (4); In equation (3), only the resistance value of the first pair of ground insulation resistance Rp is unknown. Combining this with equation (4), we can obtain: (5); in: The first value; The second value; R x This is the third difference.

[0098] R has been determined x Given that R1, R2, and R3 are known, based on the above equivalent resistance R... x The formula can be used to detect the unknown first-to-ground insulation resistance Rp.

[0099] By controlling the second bridge arm to be on and the first bridge arm to be off, and using the method described in the above embodiment to calculate the first ground insulation resistance Rp, the unknown second ground insulation resistance Rn can be detected.

[0100] In one possible implementation, before determining the resistance value of the first-to-ground insulation resistance Rp based on the first capacitance value, the first resistance value, the second resistance value, the third resistance value, and a plurality of first sampling voltages, the resistance value determination method further includes: Before the first bridge arm is turned on, the second bridge arm is turned off, and the first bridge arm capacitor Yp is fully charged, the voltage at the connection point between the first safety resistor R1 and the first sampling resistor R3 is sampled multiple times to obtain multiple third sampling voltages; wherein the sampling time corresponding to the multiple third sampling voltages is earlier than the sampling time corresponding to the multiple first sampling voltages; In response to the sampling of multiple third sampling voltages, the first capacitor value is determined based on the first resistor value, the second resistor value, the third resistor value, the supply voltage value, and the multiple third sampling voltages.

[0101] In this embodiment, during the vehicle assembly stage before detecting the first pair-to-ground insulation resistance Rp, the charge of the first bridge arm capacitor Yp can be calibrated. During the vehicle assembly stage, it is not necessary to detect the first pair-to-ground insulation resistance Rp; therefore, the resistance of the first pair-to-ground insulation resistance Rp can be considered infinite at this time. Figure 1 The branch containing the first pair of ground insulation resistance Rp is disconnected and not connected to the circuit. At this time, the detection of the first bridge arm capacitor Yp can still be achieved by detecting the first pair of ground insulation resistance Rp. The specific detection process will not be described in this embodiment. For details, please refer to the description of steps 210 to 220 in the aforementioned embodiment.

[0102] The above-mentioned multiple third sampling voltages can be found in the description of the multiple first sampling voltages in the foregoing embodiments, and will not be repeated here.

[0103] For example, when the first switch K1 and the second switch K2 are turned on and the third switch K3 is turned off, the first bridge arm capacitor Yp is rapidly charged. The voltage change at the connection point between the first safety resistor R1 and the first sampling resistor R3 is as follows: (6); Differentiating equation (1) with respect to time t, we get: (7); When t=0, we can obtain: (8); In equations (7) and (8), This can represent the voltage division ratio coefficient in the first bridge arm, specifically the proportion of the voltage across the first sampling resistor R3 to the total input voltage U in the first bridge arm. pack The proportion.

[0104] In equation (8) Similar to Equation (4), only the first bridge arm capacitor Yp is unknown in Equation (8). The capacitance value of the first bridge arm capacitor Yp can be calculated and determined, and the calculated capacitance value of the first bridge arm capacitor Yp can be stored in the storage area of ​​the BMS. When the vehicle is used later, the known first bridge arm capacitor Yp can be used directly to detect the resistance value of the first ground insulation resistance Rp.

[0105] The detection of the second bridge arm capacitor Yn can be referenced from the above process for detecting the first bridge arm capacitor Yp. The only difference is that the first bridge arm is open and the second bridge arm is closed, which will not be repeated here.

[0106] It should be noted that the various embodiments described in this application can be combined with each other or implemented individually without conflict, and this application does not limit this.

[0107] This application embodiment also provides a BMS, which includes: Controller, used to implement such Figure 2 The method for determining the resistance value is shown below; like Figure 1 The insulation detection circuit shown.

[0108] This application also provides a vehicle that includes the above-mentioned BMS.

[0109] The BMS and vehicle provided in this application embodiment can achieve the following: Figure 2 The various processes implemented in the Chinese method embodiments can achieve similar or the same technical effects, and will not be described again here to avoid repetition.

[0110] In addition to the methods, BMS, and vehicles provided in the above embodiments, this application also provides an electronic device, which can be an in-vehicle terminal.

[0111] Please see Figure 6 , Figure 6 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application.

[0112] like Figure 6 The device shown may include a processor 601 and a memory 602 storing computer program instructions.

[0113] Specifically, the processor 601 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0114] Memory 602 may include mass storage for data or instructions. For example, and not limitingly, memory 602 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 602 may include removable or non-removable (or fixed) media. Where appropriate, memory 602 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 602 is non-volatile solid-state memory.

[0115] In some embodiments, memory 602 may include read-only memory (ROM), random access memory (RAM), disk storage media device, optical storage media device, flash memory device, electrical, optical, or other physical / tangible memory storage device. Therefore, generally, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described in the methods provided according to embodiments of this application.

[0116] The processor 601 implements the method provided in the above embodiments by reading and executing computer program instructions stored in the memory 602.

[0117] In one example, the electronic device may also include a communication interface 603 and a bus 610. The processor 601, memory 602, and communication interface 603 are connected via the bus 610 and communicate with each other.

[0118] The communication interface 603 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.

[0119] Bus 610 includes hardware, software, or both, that couples components of an electronic device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 610 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, this application contemplates any suitable bus or interconnect.

[0120] Furthermore, in conjunction with the methods provided in the above embodiments, this application embodiment can be implemented using a computer-readable storage medium. This computer-readable storage medium stores computer program instructions; when executed by a processor, these computer program instructions implement any of the methods in the above embodiments.

[0121] Furthermore, in conjunction with the methods provided in the above embodiments, this application embodiment can provide a computer program product to implement the methods. This program product is stored in a storage medium and executed by at least one processor to implement the various processes of the embodiments of the methods provided in the above embodiments, achieving similar or identical technical effects. To avoid repetition, further details are omitted here.

[0122] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.

[0123] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0124] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0125] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.

[0126] The above are merely specific embodiments of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.

Claims

1. A method for determining resistance values, applied to an insulation detection circuit, the insulation detection circuit including a power supply, a first bridge arm, and a second bridge arm, wherein a first terminal of the power supply is connected to a first common terminal of the first bridge arm, a second terminal of the power supply is connected to a first common terminal of the second bridge arm, a second common terminal of the first bridge arm is connected to a second common terminal of the second bridge arm, the first bridge arm includes a first parallel unit, and the second bridge arm includes a second parallel unit; wherein... The first parallel unit includes at least a first safety resistor, a first sampling resistor, a first bridge arm capacitor, and a first insulation resistance to ground; the second parallel unit includes at least a second safety resistor; characterized in that the method for determining the resistance value includes: Before the first bridge arm is turned on, the second bridge arm is turned off, and the first bridge arm capacitor is fully charged, the voltage at the connection point between the first safety resistor and the first sampling resistor is sampled multiple times to obtain multiple first sampling voltages. In response to the sampling of the plurality of first sampling voltages, the resistance value of the first ground insulation resistance is determined based on the first capacitance value, the first resistance value, the second resistance value, the third resistance value, the supply voltage value, and the plurality of first sampling voltages. Wherein, the first capacitor value is the capacitance value of the first bridge arm capacitor, the first resistor value is the resistance value of the first safety resistor, the second resistor value is the resistance value of the second safety resistor in the second bridge arm, the third resistor value is the resistance value of the first sampling resistor, and the supply voltage value is the voltage value of the power supply.

2. The method as described in claim 1, wherein the second parallel unit further comprises a second sampling resistor, a second bridge arm capacitor, and a second insulation resistance to ground, characterized in that, After performing multiple voltage samples at the connection point between the first safety resistor and the first sampling resistor to obtain multiple first sampling voltages, the method for determining the resistance value further includes: In response to the sampling of the plurality of first sampled voltages, the second bridge arm is controlled to be turned on and the first bridge arm is turned off; Before the second bridge arm capacitor is fully charged, the voltage at the connection point between the second safety resistor and the second sampling resistor is sampled multiple times to obtain multiple second sampling voltages; In response to the sampling of the plurality of second sampling voltages, the resistance value of the second-to-ground insulation resistance in the second bridge arm is determined based on the second capacitance value, the first resistance value, the second resistance value, the fourth resistance value and the plurality of second sampling voltages; Wherein, the second capacitor value is the capacitance value of the second bridge arm capacitor, and the fourth resistor value is the resistance value of the second sampling resistor.

3. The method as described in claim 2, characterized in that, The step of controlling the second bridge arm to turn on and the first bridge arm to turn off in response to the sampling of the plurality of first sampled voltages includes: In response to the sampling of the plurality of first sampled voltages, the first bridge arm is controlled to disconnect; In response to the first bridge arm capacitor discharging to a preset charge amount, the second bridge arm is controlled to turn on and the first bridge arm is turned off.

4. The method as described in claim 3, characterized in that, The preset charge amount is zero charge amount.

5. The method as described in claim 1, characterized in that, Determining the resistance value of the first ground insulation resistance based on the plurality of first sampling voltages and the first capacitance value of the first bridge arm capacitor includes: The first voltage change rate of the plurality of first sampled voltages is calculated; The resistance value of the first ground insulation resistance is determined based on the first capacitance value, the first resistance value, the second resistance value, the third resistance value, the supply voltage value, and the first voltage change rate.

6. The method as described in claim 5, characterized in that, The step of determining the resistance value of the first ground insulation resistance based on the first capacitance value, the first resistance value, the second resistance value, the third resistance value, the supply voltage value, and the first voltage change rate includes: The product of the first voltage change rate and the first capacitance value is determined as the first value; Divide the power supply voltage value by the first value to obtain the second value; The difference between the second value and the first resistance value is determined as the third value; The resistance value of the first ground insulation resistance is determined based on the first resistance value, the second resistance value, the third resistance value, and the third numerical value.

7. The method as described in claim 5, characterized in that, The calculation of the first voltage change rate of the plurality of first sampled voltages includes: Determine the sampling frequency corresponding to each of the plurality of first sampling voltages; Based on the sampling frequency corresponding to each of the first sampling voltages, the plurality of first sampling voltages are numerically differentiated to obtain the first voltage change rate.

8. The method as described in claim 1, characterized in that, Before determining the resistance value of the first-to-ground insulation resistance based on the first capacitance value, the first resistance value, the second resistance value, the third resistance value, and the plurality of first sampling voltages, the resistance value determination method further includes: Before the first bridge arm is turned on, the second bridge arm is turned off, and the first bridge arm capacitor is fully charged, the voltage at the connection point between the first safety resistor and the first sampling resistor is sampled multiple times to obtain multiple third sampling voltages; wherein the sampling time corresponding to the multiple third sampling voltages is earlier than the sampling time corresponding to the multiple first sampling voltages; In response to the sampling of the plurality of third sampling voltages, the first capacitance value is determined based on the first resistance value, the second resistance value, the third resistance value, the supply voltage value, and the plurality of third sampling voltages.

9. An electronic device, characterized in that, The electronic device includes a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, implements the method of any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by one or more processors, implements the method of any one of claims 1 to 8.