Current detection method and system
By using the first and second current detection modules in the electric vehicle current detection system to detect the current respectively, and judging its working status based on the preset calibration parameter information, the problem of low reliability of the existing system when the current sensor fails is solved and realized Provides higher detection accuracy and fault diagnosis capabilities.
Patent Information
- Application Number
- CN202211145572.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-20
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-09-20
AI Technical Summary
The existing electric vehicle current detection system cannot properly detect the current of the battery pack when the shunt type current sensor experiences resistance drift, short circuit or open circuit failure, resulting in low reliability and the inability to diagnose the type of current sensor failure.
The first current detection module and the second current detection module are used to detect the current in the target circuit respectively, and by obtaining the preset calibration parameter information, it is judged whether the working status of the two modules is normal, and when it is determined that their status is normal, it is determined to have a higher The current value of the accuracy level is used as the operating current value of the target circuit.
It improves the reliability and accuracy of current detection, can accurately diagnose the fault type when the current sensor fails, and improves the safety and reliability of the system.
Smart Images

Figure CN117783649B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of current detection, and in particular to a current detection method and system. Background Art
[0002] At present, electric vehicles are becoming mainstream, and more and more people will drive electric vehicles in the future. At present, the current detection system of electric vehicles mainly detects the current of the battery pack through a shunt-type current transformer.
[0003] As electric vehicle technology continues to develop, there are more and more electronic and electrical components on electric vehicles, which increases the probability of electric vehicle failure. Therefore, in order to improve the safety performance of electric vehicles, the existing technology usually adopts the means of improving the failure diagnosis coverage of hardware components to improve the reliability of the product, thereby reducing the risk caused by the failure of electronic and electrical components. However, when the shunt-type current sensor has resistance drift, short circuit or open circuit failure, the existing current detection system cannot detect the current of the battery pack normally, and the reliability is not high. In addition, the system cannot diagnose the type of current sensor failure, and the failure diagnosis coverage is low. Summary of the invention
[0004] In order to solve the above technical problem or at least partially solve the above technical problem, the present disclosure provides a current detection method and system.
[0005] To achieve the above-mentioned purpose, the present application provides a current detection method, which is applied to a current detection system, wherein the current detection system adopts a first current detection module and a second current detection module to respectively detect the current in a target circuit, and the current detection method comprises: obtaining preset calibration parameter information; obtaining a first detection signal detected by the first current detection module, and obtaining a first current value based on the first detection signal and the preset calibration parameter information; obtaining a second detection signal detected by the second current detection module, and obtaining a second current value based on the second detection signal and the preset calibration parameter information; wherein the first current detection module and the second current detection module are detection modules of different types; judging whether the working states of the first current detection module and the second current detection module are both normal based on the first current value and the second current value; when it is determined that the working states of the first current detection module and the second current detection module are both normal, determining a current value with a higher level of accuracy from the first current value and the second current value according to the first current value, the second current value and the preset calibration parameter information, and determining the current value with a higher level of accuracy as the working current value of the target circuit.
[0006] The current detection method provided in the present application detects the current in the target circuit through a first current detection module and a second current detection module respectively, obtains a first current value and a second current value respectively, and judges whether the working states of the first current detection module and the second current detection module are normal according to the first current value and the second current value; and when it is determined that the working states of the first current detection module and the second current detection module are normal, the current value with a higher accuracy level among the first current value and the second current value is determined as the working current value of the target circuit, which can not only improve the reliability of current detection, but also improve the accuracy of the detection result.
[0007] The present application also provides a current detection system, which includes a first current detection module, a second current detection module and a processing unit. The first current detection module is used to detect the current in the target circuit, obtain and output a first detection signal. The second current detection module is used to detect the current in the target circuit, obtain and output a second detection signal. Among them, the first current detection module and the second current detection module are detection modules of different types. The processing unit is electrically connected to the first current detection module and the second current detection module, respectively, and the processing unit is used to obtain preset calibration parameter information. The processing unit is also used to obtain a first current value based on the first detection signal and the preset calibration parameter information, and to obtain a second current value based on the second detection signal and the preset calibration parameter information, and to judge whether the working states of the first current detection module and the second current detection module are both normal based on the first current value and the second current value. The processing unit is also used to determine a current value with a higher level of accuracy from the first current value and the second current value based on the first current value, the second current value and the preset calibration parameter information when it is determined that the working states of the first current detection module and the second current detection module are both normal, and determine the current value with a higher level of accuracy as the working current value of the target circuit.
[0008] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 It is a structural schematic diagram of the first current detection system provided in an embodiment of the present application.
[0010] Figure 2 It is a schematic diagram of the first accuracy calibration table provided in an embodiment of the present application.
[0011] Figure 3 It is a structural schematic diagram of a second current detection system provided in an embodiment of the present application.
[0012] Figure 4 It is a structural schematic diagram of the third current detection system provided in the embodiment of the present application.
[0013] Figure 5 It is a structural schematic diagram of the fourth current detection system provided in an embodiment of the present application.
[0014] Figure 6 It is a structural schematic diagram of the fifth current detection system provided in an embodiment of the present application.
[0015] Figure 7 It is a flow chart of the current detection method provided in the embodiment of the present application.
[0016] Figure 8 yes Figure 7 A detailed flow chart of step 650 in the illustrated embodiment.
[0017] The following are the descriptions of the reference numerals:
[0018] Current detection system 100~150
[0019] First current detection modules 10, 10', 10"
[0020] Second current detection module 20, 20"
[0021] Processing unit 30
[0022] The first processing unit 31
[0023] The second processing unit 32
[0024] Hall Sensor 101
[0025] Filter conditioning circuit 102
[0026] Operational amplifier circuit 103
[0027] Shunt resistance detection circuit 200
[0028] Shunt resistor 201
[0029] Differential conditioning circuit 202
[0030] Temperature detection circuit 203
[0031] Isolation amplifier circuit 204
[0032] Power interface 40
[0033] Communication interface 50
[0034] Isolation Power Module 60
[0035] Communication conversion module 70
[0036] Communication module 80
[0037] The following specific implementation methods will illustrate the present application in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0039] In the description of the present application, it should be noted that the directions or positional relationships indicated by the terms "upper", "lower", "left", "right", etc. are based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0040] See also Figure 1 The present application provides a current detection system 100, which is used to detect the current in a target circuit (not shown) to obtain the operating current value of the target circuit. The current detection system 100 includes a first current detection module 10, a second current detection module 20 and a processing unit 30.
[0041] The first current detection module 10 is used to detect the current in the target circuit, obtain and output a first detection signal. The second current detection module 20 is used to detect the current in the target circuit, obtain and output a second detection signal. Among them, the first current detection module 10 and the second current detection module 20 use different types of detection modules. Exemplarily, the first current detection module 10 and the second current detection module 20 use a shunt current detection module or a Hall type current detection module. In this embodiment, the first current detection module 10 uses a Hall type current detection module, and the second current detection module 20 uses a shunt current detection module.
[0042] The Hall-type current detection module uses the Hall effect to measure the current, that is, by measuring the magnetic field around the current-carrying conductor, and then calculating the current value according to the proportional relationship between the magnetic field around the current-carrying conductor and the current. Specifically, the Hall-type current detection module includes a Hall sensor 101, a filter conditioning circuit 102, and an operational amplifier circuit 103, wherein the Hall sensor 101 is coupled with the target circuit, the Hall sensor 101 is used to detect the current in the target circuit to obtain a corresponding electrical signal (such as a current signal or a voltage signal, and the embodiment of the present application takes a voltage signal as an example), the filter conditioning circuit 102 and the operational amplifier circuit 103 are electrically connected to the Hall sensor 101 in sequence, the filter conditioning circuit 102 is used to filter out the noise in the electrical signal, and the operational amplifier circuit 103 is used to amplify the filtered electrical signal to obtain and output the first detection signal. The advantage of the Hall-type current detection module is that the measurement circuit and the target circuit are electrically isolated by the Hall sensor, but the disadvantage is that the response speed is slow and the detection accuracy of small currents is not high.
[0043] The measurement principle of the shunt current detection module is to measure the voltage across the shunt resistor, and then compare the voltage with the resistance value of the shunt resistor to obtain the current value. Specifically, the shunt current detection module includes a shunt resistor 201 and a differential conditioning circuit 202, wherein the shunt resistor 201 is connected in series in the target circuit, the Hall sensor 101 is used to detect the current in the target circuit to obtain a corresponding voltage signal, and the differential conditioning circuit 202 is electrically connected to the shunt resistor 201, and the differential conditioning circuit 202 is used to filter out typical noise in the voltage signal, obtain and output the second detection signal to the processing unit 30. The advantages of the shunt current detection module are fast response speed and low cost, while the disadvantages are that the measurement circuit is not electrically isolated from the target circuit, and an isolation circuit needs to be added to avoid interference of the measurement circuit with other circuits. Optionally, the shunt type current detection module may further include a temperature detection circuit 203, which is used to detect the temperature of the shunt resistor 201. The processing unit 30 may perform temperature compensation on the second detection signal according to the temperature, thereby eliminating the detection error caused by temperature changes. In this way, not only can the shunt type current detection module be applicable to a wider temperature range (for example, -50 degrees to 160 degrees), but the accuracy of the detection results can also be improved.
[0044] The processing unit 30 is electrically connected to the first current detection module 10 and the second current detection module 20, respectively, and the processing unit 30 is used to obtain preset calibration parameter information. The processing unit 30 is also used to obtain the first current value I1 based on the first detection signal and the preset calibration parameter information, and to obtain the second current value I2 based on the second detection signal and the preset calibration parameter information, and to determine whether the working states of the first current detection module 10 and the second current detection module 20 are both normal based on the first current value I1 and the second current value I2. The processing unit 30 is also used to determine the current value with a higher level of accuracy from the first current value I1 and the second current value I2 according to the first current value I1, the second current value I2 and the preset calibration parameter information when it is determined that the working states of the first current detection module 10 and the second current detection module 20 are both normal, and determine the current value with a higher level of accuracy as the working current value of the target circuit. Among them, the preset calibration parameter information of the current detection module can be calibrated through a test after being assembled into a product, and stored in a memory (not shown in the figure). Exemplarily, the memory may include a volatile memory (Vol atile Memory, VM), such as a random access memory (Random Access Memory, RAM); the memory may also include a non-volatile memory (Non-Volatile Memory, NVM), such as a read-only memory (Read-Only Memory, ROM), a flash memory (flash memory), a hard disk (Hard Disk Drive, HDD) or a solid-state drive (Solid-State Drive, SSD).
[0045] As mentioned above, different types of current detection modules have different optimal detection ranges, and external factors such as the characteristics of the current detection module components themselves and the production and assembly process will affect their detection accuracy. Therefore, using two different types of current detection modules to detect current at the same time, and selecting the detection value with higher detection accuracy as the working current value of the target circuit according to the magnitude of the measured current, can make the two types of current detection modules complement each other and improve the accuracy of the detection results.
[0046] Specifically, the preset calibration parameter information includes the resistance R of the shunt resistor 201 and the calculated parameter K of the Hall sensor, wherein K is determined according to the actual parameters of the Hall sensor, which belongs to the prior art and is not specifically introduced here. Define the voltage value of the first detection signal as U1, and the voltage value of the second detection signal as U2, then the first current value I1 and the second current value I2 can be obtained by the following formula:
[0047] I1 = U1 * K
[0048] I2 = U2 / R
[0049] The preset calibration parameter information further includes a first precision calibration table associated with the first current detection module 10 and a second precision calibration table associated with the second current detection module 20. Both the first precision calibration table and the second precision calibration table record the mapping relationships between multiple current data ranges and multiple precision levels. Exemplarily, as Figure 2 shown in the first precision calibration table, where the current data ranges are divided into I11~I12, I12~I13……I1n-1~I1n, and the corresponding precision levels are L1, L2……Ln-1 respectively, where I11 < I12 < I13 <……< I1n-1 < I1n. For example, I12~I13 is 100A~300A.
[0050] In the embodiment of the present application, the processing unit 30 is specifically configured to determine the first precision level corresponding to the first current value I1 according to the first precision calibration table, determine the second precision level corresponding to the second current value I2 according to the second precision calibration table, compare the first precision level and the second precision level, so as to determine a target precision level with a higher level from the first precision level and the second precision level, determine the current value corresponding to the target precision level as the working current value of the target circuit, and output the working current value to an external circuit. Optionally, the processing unit 30 may also output the current value with a higher precision level among the first current value I1 and the second current value I2 as the main current value, and the current value with a lower precision level as the auxiliary current value to the external circuit together.
[0051] Further, the preset calibration parameter information also includes a preset error threshold ΔIm. The processing unit 30 is also used to determine that the first current detection module 10 and the second current detection module 20 are both normal when the difference between the first current value I1 and the second current value I2 is less than or equal to the preset error threshold ΔIm, and to determine that at least one current detection module has a fault when the difference between the first current value I1 and the second current value I2 is greater than the preset error threshold ΔIm, and to determine the type of the fault according to the first current value I1 and the second current value I2, and to generate a corresponding fault signal. Wherein, the preset error threshold ΔIm can be the maximum error value obtained by comparing the detection results of the first current detection module 10 and the second current detection module 20 after the first current detection module 10 and the second current detection module 20 are assembled. Optionally, the preset calibration parameter information also includes the sampling period signal of the first current detection module 10 and the second current detection module 20, and the processing unit 30 can process the first current signal and the second current signal according to the sampling period signal to synchronize the two.
[0052] Further, the fault types of the current detection module include open circuit fault, bypass fault and drift fault, and the fault signal includes bypass fault signal, open circuit fault signal and drift fault signal. The processing unit 30 is also used to determine that the current detection module corresponding to the current value is bypassed, generate a corresponding bypass fault signal, and output the bypass fault signal to an external circuit when the difference between the first current value I1 and the second current value I2 is greater than the preset error threshold ΔIm, and one of the first current value I1 and the second current value I2 is less than or equal to the preset current lower limit value (for example, 0A). Optionally, the processing unit 30 can determine the current value corresponding to the current detection module that is not bypassed as the working current value of the target circuit and output it to the external circuit. In this way, when a current detection module has a bypass fault, the other current detection module can be used in a degraded mode, which can improve the safety and reliability of the system.
[0053] The processing unit 30 is also used to determine that the current detection module corresponding to the current value has an open circuit fault, generate a corresponding open circuit fault signal, and output the open circuit fault signal to an external circuit when the difference between the first current value I1 and the second current value I2 is greater than the preset error threshold ΔIm, and one of the first current value I1 and the second current value I2 is greater than the preset current upper limit value (for example, the maximum range value of the first current detection module 10 or the second current detection module 20). Wherein, the preset current upper limit value is greater than the preset current lower limit value. Optionally, the processing unit 30 can determine the current value corresponding to the current detection module without an open circuit fault as the working current value of the target circuit and output it to the external circuit. In this way, when an open circuit fault occurs in one current detection module, the other current detection module can be used as a standby, and the reliability is higher.
[0054] The processing unit 30 is also used to determine that the first current detection module 10 and / or the second current detection module 20 has a drift fault, generate a drift fault signal, and output the drift fault signal to an external circuit when the difference between the first current value I1 and the second current value I2 is greater than the preset error threshold, and the first current value I1 and the second current value I2 are both between the current lower limit value and the current upper limit value. At this time, the processing unit 30 cannot determine which detection module has a drift fault, and further investigation by engineers is required.
[0055] In the embodiment of the present application, the current detection system 100 further includes a power interface 40 , a communication interface 50 , an isolation power module 60 and a communication conversion module 70 .
[0056] The power interface 40 is used to receive a power supply voltage. The isolated power module 60 is electrically connected between the processing unit 30 and the power interface 40, and the isolated power module 60 is used to convert the power supply voltage into an operating voltage VDD of the processing unit 30, such as a 5V DC voltage. The isolated power module 60 also provides the operating voltage VDD to the Hall sensor 101 and the communication conversion module 70. Exemplarily, the isolated power module 60 can use a DC-DC converter.
[0057] The communication interface 50 is used to communicate with an external circuit (not shown in the figure, such as a vehicle controller). The communication conversion module 70 is electrically connected between the processing unit 30 and the communication interface 50, and the communication conversion module 70 is used to convert the output signal of the processing unit 30 into a signal that meets the preset communication protocol and output it to the communication interface 50. Among them, the output signal of the processing unit 30 includes the working current value and / or the fault signal. Exemplarily, the preset communication protocol can be a CAN (Controller Area Network, Controller Area Network Bus) bus protocol. Preferably, on the basis of the CAN bus protocol, CRC check, fixed data address and life frame can be added to ensure the reliability of the data. Specifically, the communication interface 50 can upload data signals to the external circuit in an end-to-end (E2E) communication mode. Among them, the end-to-end communication mode generally includes data frame verification (such as CheckSum, CRC, etc.), fixed address communication, and frame validity check (such as ActiveCounter).
[0058] As mentioned above, the measurement circuit of the shunt current detection module is not electrically isolated from the target circuit, and an isolation circuit needs to be added to prevent the measurement circuit from interfering with other circuits. Figure 1 In the illustrated embodiment, the isolated power supply module 60 and the communication conversion module 70 together form an isolation belt to achieve electrical isolation, thereby isolating the shunt current detection module from the power supply interface 40 and the communication interface 50 .
[0059] See also Figure 3 , Figure 3 is a structural diagram of a second current detection system 110 provided in an embodiment of the present application, Figure 3 The current sensing system 110 shown is Figure 1 The circuit structure of the current detection system 100 shown is similar, except that: Figure 3 The second current detection module 20 ′ in the current detection system 110 shown further includes an isolation amplifier circuit 204 , and the isolation power supply module 60 is omitted.
[0060] Specifically, the current detection system 110 includes a first current detection module 10 , a second current detection module 20 ′, a processing unit 30 , a power interface 40 , a communication interface 50 and a communication conversion module 70 .
[0061] The second current detection module 20' includes a shunt resistor detection circuit 200, a temperature detection circuit 203 and an isolation amplifier circuit 204, wherein the shunt resistor detection circuit 200 includes the shunt resistor 201 and the differential conditioning circuit 202, and the shunt resistor detection circuit 200 is used to detect the current in the target circuit to obtain and output a voltage signal. The isolation amplifier circuit 204 is electrically connected between the shunt resistor detection circuit 200 and the processing unit 30, and the isolation amplifier circuit 204 is used to electrically isolate and amplify the voltage signal output by the shunt resistor detection circuit 200 to obtain and output the second detection signal.
[0062] The power interface 40 is electrically connected to the processing unit 30, and the power interface 40 is used to receive the power supply voltage and output it to the processing unit 30, the communication conversion module 70 and the Hall sensor 101. The communication interface 50 is used to communicate with an external circuit. The communication conversion module 70 is electrically connected between the processing unit 30 and the communication interface 50, and the communication conversion module 70 is used to convert the output signal of the processing unit 30 into a signal that meets the preset communication protocol and output it to the communication interface 50.
[0063] It should be noted that in Figure 3 In the illustrated embodiment, the isolation amplifier circuit 204 forms an isolation band to achieve electrical isolation, thereby isolating the shunt resistor detection circuit 200 in the shunt current detection module from the power interface 40 and the communication interface 50 .
[0064] See also Figure 4 , Figure 4 is a structural diagram of a third current detection system 120 provided in an embodiment of the present application, Figure 4 The current sensing system 120 shown is Figure 1 The circuit structure of the current detection system 100 shown is similar, except that: Figure 4 The current detection system 120 shown further includes a communication module 80 , and the processing unit 30 includes a first processing unit 31 and a second processing unit 32 electrically connected to each other.
[0065] Specifically, the current detection system 120 includes a first current detection module 10, a second current detection module 20, a first processing unit 31, a second processing unit 32, a power interface 40, a communication interface 50, an isolation power module 60, a communication conversion module 70 and the communication module 80. In this embodiment, the first current detection module 10 adopts a Hall type current detection module, and the second current detection module 20 adopts a shunt type current detection module. In another embodiment, the types of the first current detection module and the second current detection module can also be interchangeable, for example, in Figure 5 In the current detection system 130 shown, the first current detection module 10 ″ adopts a shunt-type current detection module, and the second current detection module 20 ″ adopts a Hall-type current detection module.
[0066] The preset calibration parameter information includes first calibration parameter information and second calibration parameter information. The first processing unit 31 is also electrically connected to the first current detection module 10, and the first processing unit 31 is used to receive and obtain the first current value I1 based on the first calibration parameter information and the first detection signal, and output the first current value I1 to the second processing unit 32.
[0067] The second processing unit 32 is also electrically connected to the second current detection module 20. The second processing unit 32 is used to receive and obtain the second current value I2 based on the second calibration parameter information and the second detection signal, and determine the current value with a higher accuracy level between the first current value I1 and the second current value I2 as the operating current value of the target circuit according to the first current value I1, the second current value I2 and the second calibration parameter information.
[0068] Further, the second calibration parameter information includes the first accuracy calibration table, the second accuracy calibration table and the preset error threshold ΔIm. The second processing unit 32 is also used to determine whether the working states of the first current detection module 10 and the second current detection module 20 are both normal when the difference between the first current value I1 and the second current value I2 is less than or equal to the preset error threshold ΔIm, and to determine whether at least one current detection module has a fault when the difference between the first current value I1 and the second current value I2 is greater than the preset error threshold ΔIm, and to determine the type of fault according to the first current value I1 and the second current value I2, and to generate a corresponding fault signal. The method for the second processing unit 32 to determine the type of fault and generate a corresponding fault signal can refer to Figure 1 The embodiments shown will not be described in detail here.
[0069] Further, the communication interface 50 is used to communicate with an external circuit. The communication conversion module 70 is electrically connected between the second processing unit 32 and the communication interface 50, and the communication conversion module 70 is used to convert the output signal of the second processing unit 32 into a signal that meets a preset communication protocol and output it to the communication interface 50. The output signal of the second processing unit 32 includes the working current value and / or the fault signal.
[0070] Further, the power interface 40 is electrically connected to the Hall-type current detection module (i.e., the first current detection module 10) and its corresponding processing unit (i.e., the first processing unit 31), respectively, and the power interface 40 is used to receive the power supply voltage and output it to the Hall-type current detection module and its corresponding processing unit. The isolation power module 60 is electrically connected between the power interface 40 and the processing unit corresponding to the shunt-type current detection module (i.e., the second current detection module 20), and the isolation power module 60 is used to electrically isolate the power supply voltage received by the power interface 40, and convert the power supply voltage into the working voltage of the processing unit corresponding to the shunt-type current detection module.
[0071] The communication module 80 is electrically connected between the first processing unit 31 and the second processing unit 32 , and the isolated communication module 80 is used to implement communication between the first processing unit 31 and the second processing unit 32 .
[0072] It should be noted that in Figure 4 In the embodiment shown, the isolated power supply module 60, the communication conversion module 70 and the communication module 80 together form an isolation zone to achieve electrical isolation. Figure 5 In the illustrated embodiment, the isolated power module 60 and the communication module 80 together form an isolation band to achieve electrical isolation, thereby isolating the shunt current detection module from the power interface 40 and the communication interface 50 .
[0073] See also Figure 6 , Figure 6 is a structural diagram of a fifth current detection system 140 provided in an embodiment of the present application, Figure 6 The current sensing system 140 shown is Figure 4 The circuit structure of the current detection system 120 shown is similar, except that: Figure 6 The second current detection module 20 ′ in the current detection system 140 shown further includes an isolation amplifier circuit 204 , and the isolation power supply module 60 is omitted.
[0074] It should be noted that in Figure 6 In the illustrated embodiment, the isolation amplifier circuit 204 forms an isolation band to achieve electrical isolation, thereby isolating the shunt resistor detection circuit 200 in the shunt current detection module from the power interface 40 and the communication interface 50 .
[0075] See also Figure 7 The present application also provides a current detection method, which is applied to the above-mentioned current detection system. The current detection method specifically includes the following steps:
[0076] Step 610, obtaining preset calibration parameter information.
[0077] Step 620 , obtaining a first detection signal detected by the first current detection module 10 , and obtaining a first current value I1 based on the first detection signal and the preset calibration parameter information.
[0078] Step 630, obtain the second detection signal detected by the second current detection module 20, and obtain the second current value I2 based on the second detection signal and the preset calibration parameter information. Wherein, the first current detection module 10 and the second current detection module 20 are detection modules of different types. It should be noted that the present application does not limit the execution order of step 620 and step 630, that is, step 620 may be executed first and then step 630, or step 630 may be executed first and then step 620, or step 620 and step 630 may be executed simultaneously.
[0079] Step 640, based on the first current value I1 and the second current value I2, determine whether the working states of the first current detection module 10 and the second current detection module 20 are both normal. If the working states of the first current detection module 10 and the second current detection module 20 are both normal, execute step 650. Otherwise, execute step 660. Specifically, the preset calibration parameter information also includes a preset error threshold ΔIm, and determining whether the working states of the first current detection module 10 and the second current detection module 20 are both normal includes: determining whether the difference between the first current value I1 and the second current value I2 is greater than the preset error threshold ΔIm. If the difference between the first current value I1 and the second current value I2 is less than or equal to the preset error threshold ΔIm, it is determined that the first current detection module 10 and the second current detection module 20 are both normal. If the difference between the first current value I1 and the second current value I2 is greater than the preset error threshold ΔIm, it is determined that at least one current detection module is faulty.
[0080] Step 650, when it is determined that the working states of the first current detection module 10 and the second current detection module 20 are both normal, determine the current value with a higher level of accuracy from the first current value I1 and the second current value I2 according to the first current value I1, the second current value I2 and the preset calibration parameter information, and determine the current value with a higher level of accuracy as the working current value of the target circuit. Wherein, the preset calibration parameter information includes a first accuracy calibration table associated with the first current detection module 10 and a second accuracy calibration table associated with the second current detection module 20, and the first accuracy calibration table and the second accuracy calibration table both record the mapping relationship between multiple current data ranges and multiple accuracy levels.
[0081] Specifically, Figure 8 As shown, Figure 8 yes Figure 7 The detailed flow chart of step 650 in the embodiment shown in the figure, step 650 specifically includes the following steps:
[0082] Step 651, determining a first accuracy level corresponding to the first current value I1 according to the first accuracy calibration table, and determining a second accuracy level corresponding to the second current value I2 according to the second accuracy calibration table.
[0083] Step 652, compare the first accuracy level with the second accuracy level to determine a target accuracy level with a higher level from the first accuracy level and the second accuracy level, and determine the current value corresponding to the target accuracy level as the operating current value of the target circuit. Optionally, step 652 may also include: outputting the operating current value to an external circuit; or, outputting the current value with a higher accuracy level among the first current value I1 and the second current value I2 as the main current value, and the current value with a lower accuracy level as the auxiliary current value to the external circuit.
[0084] Step 660, determining the type of fault according to the first current value I1 and the second current value I2, and generating a corresponding fault signal. Optionally, step 660 may also include: outputting the fault signal to an external circuit. The fault types of the current detection module include open circuit fault, bypass fault and drift fault, and the fault signal includes bypass fault signal, open circuit fault signal and drift fault signal.
[0085] Specifically, if the first current value I1 and the second current value I2 are both between the current lower limit value and the current upper limit value, it is determined that the first current detection module 10 and / or the second current detection module has a drift fault, and a drift fault signal is generated, and the drift fault signal is output to an external circuit. Wherein, the preset current upper limit value is greater than the preset current lower limit value.
[0086] If one of the first current value I1 and the second current value I2 is less than or equal to the preset current lower limit value, it is determined that the current detection module corresponding to the current value is bypassed, and a corresponding bypass fault signal is generated, and the bypass fault signal is output to the external circuit. Optionally, the current value corresponding to the current detection module that is not bypassed can be determined as the working current value of the target circuit and output to the external circuit. In this way, when one current detection module is bypassed, the other current detection module can be used as a standby, which is more reliable.
[0087] If one of the first current value I1 and the second current value I2 is greater than the preset current upper limit, it is determined that the current detection module corresponding to the current value has an open circuit fault, and a corresponding open circuit fault signal is generated, and the open circuit fault signal is output to the external circuit. Optionally, the current value corresponding to the current detection module without an open circuit fault can be determined as the operating current value of the target circuit and output to the external circuit. In this way, when an open circuit fault occurs in one current detection module, the other current detection module can be used as a standby, which is more reliable.
[0088] Optionally, before executing step 610, the current detection method may further include:
[0089] When the current detection system is powered on, an initialization self-check is performed, and whether the system is abnormal is determined according to the self-check result. If the system is abnormal, a corresponding self-check fault signal is generated according to the self-check fault type, and the self-check fault signal is output to the external circuit. Otherwise, step 610 is executed. Exemplarily, the self-check items may include at least one of the following items: checking whether the peripheral device is abnormal, checking whether there is abnormal information in the historical record, checking whether the processing unit is abnormal, checking whether the power management module is abnormal, etc.
[0090] The current detection method provided in the present application detects the current in the target circuit through the first current detection module 10 and the second current detection module 20 respectively, obtains the first current value and the second current value respectively, and judges whether the working states of the first current detection module 10 and the second current detection module 20 are both normal according to the first current value and the second current value; and when it is determined that the working states of the first current detection module 10 and the second current detection module 20 are both normal, determines the current value with a higher accuracy level among the first current value and the second current value as the working current value of the target circuit, which can not only improve the reliability of current detection, but also improve the accuracy of the detection result.
[0091] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.
Claims
1. A current detection method, applied to a current detection system, wherein the current detection system uses a first current detection module and a second current detection module to respectively detect the current in a target circuit, It is characterized in that include: Get preset calibration parameter information; Acquire a first detection signal detected by the first current detection module, and obtain a first current value based on the first detection signal and the preset calibration parameter information; Acquire a second detection signal detected by the second current detection module, and obtain a second current value based on the second detection signal and the preset calibration parameter information; wherein the first current detection module and the second current detection module are detection modules of different types; Determining whether the working states of the first current detection module and the second current detection module are both normal based on the first current value and the second current value; and When it is determined that the working states of the first current detection module and the second current detection module are both normal, a current value with a higher level of accuracy is determined from the first current value and the second current value according to the first current value, the second current value and the preset calibration parameter information, and the current value with a higher level of accuracy is determined as the working current value of the target circuit; The preset calibration parameter information includes a first accuracy calibration table associated with the first current detection module and a second accuracy calibration table associated with the second current detection module, wherein the first accuracy calibration table and the second accuracy calibration table both record mapping relationships between multiple current data ranges and multiple accuracy levels; The step of determining a current value with a higher level of accuracy from the first current value and the second current value according to the first current value, the second current value, and the preset calibration parameter information, and determining the current value with a higher level of accuracy as the operating current value of the target circuit includes: Determining a first accuracy level corresponding to the first current value according to the first accuracy calibration table, and determining a second accuracy level corresponding to the second current value according to the second accuracy calibration table; and The first accuracy level and the second accuracy level are compared to determine a target accuracy level with a higher level from the first accuracy level and the second accuracy level, and the current value corresponding to the target accuracy level is determined as the operating current value of the target circuit.
2. The current detection method according to claim 1, It is characterized in that The first current detection module and the second current detection module are shunt-type current detection modules or Hall-type current detection modules.
3. The current detection method according to claim 1, It is characterized in that The preset calibration parameter information also includes a preset error threshold; Judging whether the working states of the first current detection module and the second current detection module are both normal based on the first current value and the second current value includes: Determining whether a difference between the first current value and the second current value is greater than the preset error threshold; If the difference between the first current value and the second current value is less than or equal to the preset error threshold, it is determined that the first current detection module and the second current detection module are both normal; If the difference between the first current value and the second current value is greater than the preset error threshold, determining that at least one current detection module is faulty; The current detection method further includes: When it is determined that at least one of the first current detection module and the second current detection module has a fault, the type of the fault is determined according to the first current value and the second current value, and a corresponding fault signal is generated.
4. The current detection method according to claim 3, It is characterized in that The fault types of the current detection module include open circuit fault, bypass fault and drift fault, and the fault signal includes bypass fault signal, open circuit fault signal and drift fault signal; The determining the type of fault according to the first current value and the second current value, and generating a corresponding fault signal, comprises: If both the first current value and the second current value are between the current lower limit value and the current upper limit value, it is determined that the first current detection module and / or the second current detection module has a drift fault, and a drift fault signal is generated; wherein the preset current upper limit value is greater than the preset current lower limit value; If one of the first current value and the second current value is less than or equal to the preset current lower limit value, it is determined that the current detection module corresponding to the current value is bypassed, and a corresponding bypass fault signal is generated; If one of the first current value and the second current value is greater than the preset current upper limit value, it is determined that an open circuit fault exists in the current detection module corresponding to the current value, and a corresponding open circuit fault signal is generated.
5. A current detection system, It is characterized in that include: A first current detection module, used to detect the current in the target circuit and output a first detection signal; a second current detection module, configured to detect the current in the target circuit and output a second detection signal; wherein the first current detection module and the second current detection module are detection modules of different types; as well as a processing unit, electrically connected to the first current detection module and the second current detection module, respectively, the processing unit being used to obtain preset calibration parameter information, and to obtain a first current value based on the first detection signal and the preset calibration parameter information, and to obtain a second current value based on the second detection signal and the preset calibration parameter information; the processing unit is also used to determine whether the working states of the first current detection module and the second current detection module are both normal based on the first current value and the second current value; the processing unit is also used to determine a current value with a higher level of accuracy from the first current value and the second current value according to the first current value, the second current value and the preset calibration parameter information when it is determined that the working states of the first current detection module and the second current detection module are both normal, and determine the current value with a higher level of accuracy as the working current value of the target circuit; The preset calibration parameter information includes a first accuracy calibration table associated with the first current detection module and a second accuracy calibration table associated with the second current detection module, wherein the first accuracy calibration table and the second accuracy calibration table both record mapping relationships between multiple current data ranges and multiple accuracy levels; The processing unit is used to determine the first accuracy level corresponding to the first current value according to the first accuracy calibration table, and determine the second accuracy level corresponding to the second current value according to the second accuracy calibration table, and compare the first accuracy level with the second accuracy level to determine a target accuracy level with a higher level from the first accuracy level and the second accuracy level, and determine the current value corresponding to the target accuracy level as the operating current value of the target circuit.
6. The current detection system according to claim 5, It is characterized in that The first current detection module and the second current detection module are shunt-type current detection modules or Hall-type current detection modules.
7. The current detection system according to claim 5, It is characterized in that The preset calibration parameter information also includes a preset error threshold; the processing unit is also used to determine that the first current detection module and the second current detection module are both normal when the difference between the first current value and the second current value is less than or equal to the preset error threshold, and to determine that at least one current detection module is faulty when the difference between the first current value and the second current value is greater than the preset error threshold, and to determine the type of fault based on the first current value and the second current value, and to generate a corresponding fault signal.
8. The current detection system according to claim 7, It is characterized in that The fault types of the current detection module include open circuit fault, bypass fault and drift fault, and the fault signal includes bypass fault signal, open circuit fault signal and drift fault signal; The processing unit is further configured to determine that the current detection module corresponding to the current value is bypassed and generate a corresponding bypass fault signal when the difference between the first current value and the second current value is greater than the preset error threshold and one of the first current value and the second current value is less than or equal to a preset current lower limit value; The processing unit is further configured to determine that an open circuit fault exists in the current detection module corresponding to the current value, and generate a corresponding open circuit fault signal when the difference between the first current value and the second current value is greater than the preset error threshold and one of the first current value and the second current value is greater than a preset current upper limit; The processing unit is also used to determine that the first current detection module and / or the second current detection module has a drift fault and generate a drift fault signal when the difference between the first current value and the second current value is greater than the preset error threshold, and the first current value and the second current value are both between the current lower limit value and the current upper limit value; wherein the preset current upper limit value is greater than the preset current lower limit value.
9. The current detection system according to claim 8, It is characterized in that The current detection system also includes: A power interface, used for receiving a power supply voltage; A communication interface, used for communicating with an external circuit; an isolated power supply module, electrically connected between the processing unit and the power interface, the isolated power supply module being used to electrically isolate the power supply voltage received by the power interface and convert the power supply voltage into an operating voltage of the processing unit; and A communication conversion module is electrically connected between the processing unit and the communication interface, and is used to convert the output signal of the processing unit into a signal that satisfies a preset communication protocol and output it to the communication interface; wherein the output signal of the processing unit includes the working current value and / or the fault signal.
10. The current detection system according to claim 8, It is characterized in that The second current detection module adopts a shunt current detection module, and the second current detection module includes: A shunt resistor detection circuit, used for detecting the current in the target circuit to obtain and output a voltage signal; as well as an isolation amplifier circuit, electrically connected between the shunt resistor detection circuit and the processing unit, the isolation amplifier circuit being used to electrically isolate and amplify the voltage signal output by the shunt resistor detection circuit to obtain and output the second detection signal; The current detection system also includes: A power interface, electrically connected to the processing unit, the power interface being used to receive a power supply voltage and output it to the processing unit; A communication interface for communicating with an external circuit; and A communication conversion module is electrically connected between the processing unit and the communication interface, and is used to convert the output signal of the processing unit into a signal that satisfies a preset communication protocol and output it to the communication interface; wherein the output signal of the processing unit includes the working current value and / or the fault signal.
11. The current detection system according to claim 8, It is characterized in that The processing unit includes a first processing unit and a second processing unit electrically connected to each other, and the preset calibration parameter information includes first calibration parameter information and second calibration parameter information; The first processing unit is also electrically connected to the first current detection module, and the first processing unit is used to receive and obtain the first current value based on the first calibration parameter information and the first detection signal, and output the first current value to the second processing unit; The second processing unit is also electrically connected to the second current detection module, and the second processing unit is used to receive and obtain the second current value based on the second calibration parameter information and the second detection signal, and determine the current value with a higher accuracy level from the first current value and the second current value according to the first current value, the second current value and the second calibration parameter information, and determine the current value with a higher accuracy level as the operating current value of the target circuit; the second calibration parameter information includes the first accuracy calibration table, the second accuracy calibration table and the preset error threshold; The second processing unit is also used to determine that the working states of the first current detection module and the second current detection module are normal when the difference between the first current value and the second current value is less than or equal to the preset error threshold, and to determine that at least one current detection module has a fault when the difference between the first current value and the second current value is greater than the preset error threshold, and to determine the type of fault based on the first current value and the second current value, and to generate a corresponding fault signal.
12. The current detection system according to claim 11, It is characterized in that The current detection system also includes: A communication interface for communicating with an external circuit; and A communication conversion module is electrically connected between the second processing unit and the communication interface, and is used to convert the output signal of the second processing unit into a signal that meets a preset communication protocol and output it to the communication interface; wherein the output signal of the second processing unit includes the working current value and / or the fault signal.
13. The current detection system according to claim 12, It is characterized in that The current detection system also includes: A power supply interface, electrically connected to the Hall-type current detection module and its corresponding processing unit, respectively, for receiving a power supply voltage and outputting it to the Hall-type current detection module and its corresponding processing unit; an isolated power supply module, electrically connected between the power supply interface and the processing unit corresponding to the shunt-type current detection module, the isolated power supply module being used to electrically isolate the power supply voltage received by the power supply interface and convert the power supply voltage into an operating voltage of the processing unit corresponding to the shunt-type current detection module; and A communication module is electrically connected between the first processing unit and the second processing unit, and is used to implement communication between the first processing unit and the second processing unit.
Citation Information
Patent Citations
Current detection device
CN112305290A
