Dual-conductor current measurement method and device based on magnetic field sensor chip
The dual-conductor current measurement method based on the magnetic field sensing chip solves the problem that the existing technology cannot be applied to complex application scenarios. It realizes the current measurement of separate wires, multi-core cables and three-phase copper bars, expands the application scenarios and Reduced costs.
Patent Information
- Application Number
- CN202210125805.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-10
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-02-10
AI Technical Summary
Existing current measurement methods cannot be applied to complex application scenarios such as separated wires, multi-core cables and three-phase copper bars, resulting in limited application scenarios.
The dual-conductor current measurement method based on the magnetic field sensing chip is used to obtain the first magnetic induction intensity of the two conductors to be measured in each coordinate axis direction measured by the magnetic field sensing chip, and determine its second magnetic induction intensity perpendicular to the connection direction. , and use the iterative relationship to calculate the current measurement value until the preset conditions are met.
It realizes current measurement in complex scenarios such as separated wires, multi-core cables and three-phase copper bars, expands the application scenarios of current measurement, reduces installation difficulty and cost, and supports the deployment of smart grids.
Smart Images

Figure CN114441835B
Abstract
Description
Technical Field
[0001] The present application relates to the field of electric power technology, and in particular to a dual-conductor current measurement method, device, computer equipment, storage medium and computer program product based on a magnetic field sensor chip. Background Art
[0002] Faced with increasingly severe challenges in energy development, energy-saving, green, and sustainable smart grids are becoming a major technological innovation and development trend in the transformation of the world's power system. Building a grid "nervous system" (perception system) covering key nodes of the grid is the basis for developing smart grids and achieving transparency of smart grids. The grid "nervous system" requires online monitoring and real-time monitoring of the grid. Therefore, measuring the current values of key nodes such as cables and overhead lines is the key to building the grid "nervous system".
[0003] Current measurement currently generally uses current sensors, which convert the magnetic induction intensity generated by the current at the key node into the current magnitude, thereby realizing the current measurement of the key node.
[0004] However, the current method of measuring current using current sensors has the problem of limited application scenarios. For example, it is not suitable for application scenarios such as separated wires, multi-core cables and three-phase copper busbars. Summary of the invention
[0005] Based on this, it is necessary to provide a dual-conductor current measurement method, device, computer equipment, computer-readable storage medium and computer program product based on a magnetic field sensor chip that can expand the scope of application scenarios in response to the above technical problems.
[0006] In a first aspect, the present application provides a dual-conductor current measurement method based on a magnetic field sensor chip. The method comprises:
[0007] Obtaining first magnetic induction intensities of two conductors to be measured measured by the magnetic field sensor chip in directions of respective coordinate axes;
[0008] Determine the second magnetic induction intensity of each conductor to be measured according to each first magnetic induction intensity, wherein the second magnetic induction intensity represents the magnetic induction intensity of the conductor to be measured in a direction perpendicular to a first direction, wherein the first direction is the connection direction between the conductor to be measured and the magnetic field sensor chip;
[0009] Based on each of the second magnetic induction intensities and the current preset values of each of the conductors to be measured, the current iteration result is determined using the first relationship between the current iteration result and the previous iteration result until a target iteration result that meets preset conditions is obtained, wherein the target iteration result includes the current measurement values of each of the conductors to be measured.
[0010] In one embodiment, based on each of the second magnetic induction intensities and the current preset values of each of the conductors to be measured, the current iteration result is determined using a first relationship between the current iteration result and the previous iteration result until a target iteration result that meets a preset condition is obtained, wherein the target iteration result includes the current measurement value of each of the conductors to be measured including:
[0011] Taking the preset values of the second magnetic induction intensity and the current of each conductor to be measured as initial values;
[0012] The initial value is used as the previous iteration result, and the difference obtained by subtracting the ratio of the first matrix corresponding to the initial value to the second matrix from the initial value is used as the current iteration result, wherein the first matrix corresponding to the initial value is a matrix determined based on the initial value and the first magnetic induction intensity, and the second matrix corresponding to the initial value is a matrix determined based on the first matrix and the initial value;
[0013] If the previous iteration result does not meet the preset condition, the current iteration result is used as the previous iteration result, and the current iteration result is determined according to the first relationship between the current iteration result and the previous iteration result, until the target iteration result that meets the preset condition is determined.
[0014] In one embodiment, the method further comprises:
[0015] If the previous iteration result meets the preset condition, the current iteration result is used as the target iteration result.
[0016] In one embodiment, if the previous iteration result satisfies the preset condition, taking the current iteration result as the target iteration result also includes:
[0017] If the absolute value of the first matrix corresponding to the previous iteration result is less than or equal to the preset threshold, the current iteration result is used as the target iteration result;
[0018] Alternatively, if the number of iterations is equal to the preset number of iterations, the current iteration result is used as the target iteration result.
[0019] In one embodiment, the first relationship is: x(k+1)=x(k)-F[x(k)] / J[x(k)], wherein k is an integer greater than or equal to zero, x(k+1) represents the result of the current iteration, x(k) represents the result of the previous iteration, F[x(k)] and J[x(k)] respectively represent the first matrix and the second matrix corresponding to the result of the previous iteration, F[x(k)] is a matrix determined based on the result of the previous iteration, and J[x(k)] is a Jacobian matrix determined based on F[x(k)] and the result of the previous iteration.
[0020] In one embodiment, determining the second magnetic induction intensity of each conductor to be measured according to each first magnetic induction intensity includes:
[0021] Obtaining each angle between the first direction and at least one of the coordinate axis directions;
[0022] The second magnetic induction intensity of each conductor to be measured is determined according to each of the included angles and the second relationship, wherein the second relationship includes the relationship between each of the included angles, each of the second magnetic induction intensities and the first magnetic induction intensity.
[0023] In one embodiment, determining the second magnetic induction intensity of each conductor to be measured according to each first magnetic induction intensity further includes:
[0024] Obtaining each angle between the first direction and at least one of the coordinate axis directions;
[0025] The second magnetic induction intensity of each conductor to be measured is determined according to the respective angles and a third relationship. The third relationship expresses a relationship between each second magnetic induction intensity, the current measurement value of each conductor to be measured, the respective angles, the vacuum magnetic permeability and the first distance, wherein the first distance is the distance between each conductor to be measured and the coordinate origin.
[0026] In a second aspect, the present application also provides a dual-conductor current measurement device based on a magnetic field sensor chip. The device comprises:
[0027] An acquisition module is used to acquire the first magnetic induction intensity of two conductors to be measured measured by the magnetic field sensor chip in the direction of each coordinate axis;
[0028] A first determination module is used to determine the second magnetic induction intensity of each conductor to be measured according to each first magnetic induction intensity, wherein the second magnetic induction intensity represents the magnetic induction intensity of the conductor to be measured in a direction perpendicular to a first direction, wherein the first direction is a connection direction between the conductor to be measured and the magnetic field sensor chip;
[0029] The second determination module is used to determine the current iteration result based on each of the second magnetic induction intensities and the current preset values of each of the conductors to be measured, using the first relationship between the current iteration result and the previous iteration result, until a target iteration result that meets the preset conditions is obtained, wherein the target iteration result includes the current measurement value of each of the conductors to be measured.
[0030] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above methods when executing the computer program.
[0031] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of any of the above methods when executed by a processor.
[0032] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0033] The above-mentioned dual-conductor current measurement method, device, computer equipment, storage medium and computer program product based on the magnetic field sensor chip obtain the first magnetic induction intensity of the two conductors to be measured measured by the magnetic field sensor chip in the directions of each coordinate axis, and determine the second magnetic induction intensity of each conductor to be measured according to each first magnetic induction intensity, the second magnetic induction intensity characterizes the magnetic induction intensity of the conductor to be measured in a direction perpendicular to the first direction, the first direction is the connection direction of the conductor to be measured and the magnetic field sensor chip, and then based on each second magnetic induction intensity and the current preset value of each conductor to be measured, the first relationship between the current iteration result and the previous iteration result is used to determine the current iteration result until the target iteration result that meets the preset conditions is obtained, wherein the target iteration result includes the current measurement value of each conductor to be measured. Since the method provided in this embodiment can obtain the current measurement value of at least two conductors to be measured, it can be more suitable for application scenarios such as separated wires, multi-core cables and three-phase copper busbars than traditional methods, solves the problem of limited application scenarios in traditional methods, and expands the application scenarios of conductor current measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 This is an application environment diagram of a dual-conductor current measurement method based on a magnetic field sensor chip in an embodiment of the present application;
[0035] Figure 2 This is a measurement schematic diagram of a magnetic field sensor chip in an embodiment of the present application;
[0036] Figure 3 A schematic flow chart of a dual-conductor current measurement method based on a magnetic field sensor chip provided in an embodiment of the present application;
[0037] Figure 4 A schematic diagram of a process for obtaining a target iteration result provided in an embodiment of the present application;
[0038] Figure 5 A schematic diagram of a process for determining a second magnetic induction intensity provided in an embodiment of the present application;
[0039] Figure 6 A schematic diagram of another process for determining the second magnetic induction intensity provided in an embodiment of the present application;
[0040] Figure 7 A schematic diagram of the structure of a dual-conductor current measuring device based on a magnetic field sensor chip provided in an embodiment of the present application;
[0041] Figure 8 Schematic diagram of the internal structure of a computer device in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] Figure 1 FIG. 1 is an application environment diagram of the dual-conductor current measurement method based on the magnetic field sensor chip in the embodiment of the present application. The dual-conductor current measurement method based on the magnetic field sensor chip provided in the embodiment of the present application can be applied to the following: Figure 1 The MCU shown.
[0044] The method provided by the present application introduces magnetoresistance sensing technology into the power system, providing a new technical means for current sensing in the power system. Specifically, the present application uses a tunnel magnetoresistance (TMR) device such as a magnetic field sensor chip. According to the two-fluid model theory of TMR, when manufacturing the magnetic field sensor chip, the magnetization directions of the two ferromagnetic layers can be artificially adjusted to be parallel or anti-parallel, thereby obtaining approximately opposite magnetoresistance characteristics. For details, please refer to Figure 1 The magnetic field sensor chip includes 4 TMR resistors, a post-processing circuit and an MCU. The 4 TMR resistors form a bridge, where the magnetoresistance characteristics of R1 and R4 are consistent, the magnetoresistance characteristics of R2 and R3 are consistent, and the magnetoresistance characteristics of R2 and R3 are opposite to those of R1 or R4. Therefore, in the same magnetic field, i.e., H x When the resistance values of R1 and R4 increase, the resistance values of R2 and R3 decrease; when the resistance values of R1 and R4 decrease, the resistance values of R2 and R3 increase. Furthermore, a stable voltage Vcc can be applied to the bridge through the MCU, and an output voltage u proportional to the magnetic field will be generated at the output port. Therefore, through the post-processing circuit, the MCU can measure the output voltage u of the TMR device such as the magnetic field sensor chip, thereby realizing the measurement of the magnetic induction intensity, and then realizing the measurement of the current.
[0045] In order to explain the method provided in the embodiment of the present application more clearly, Figure 2 Provide explanation. Figure 2 This is a measurement diagram of the magnetic field sensor chip in the embodiment of the present application. Figure 2The long straight wires l1 and l2 in the middle represent two conductors to be tested. Figure 2 Sensor chip 1 and sensor chip 2 represent magnetic field sensor chip 1 and magnetic field sensor chip 2, respectively. Combined with the coordinate system, according to Biot-Savart's law, l1 and l2 will generate a second magnetic induction intensity perpendicular to the first direction on sensor chip 1 and sensor chip 2, respectively. The first direction is the direction of the connection between the conductors to be measured, i.e., l1 and l2, and the magnetic field sensor chips, i.e., sensor chip 1 and sensor chip 2. More specifically, l1 generates a second magnetic induction intensity B perpendicular to the direction of the connection between l1 and sensor chip 1. 11 , l1 generates a second magnetic induction intensity B perpendicular to the direction of the line connecting l1 and the sensor chip 2 12 , l2 generates a second magnetic induction intensity B perpendicular to the direction of the line connecting l2 and the sensor chip 1 21 And l2 generates a second magnetic induction intensity B perpendicular to the direction of the line connecting l2 and the sensor chip 2 22 . B 11 , B 12 , B 21 , B 22 It can be obtained according to the following formula (1) to formula (4).
[0046]
[0047]
[0048]
[0049]
[0050] Among them, μ0 is the magnetic permeability of vacuum, π is the pi, m is the distance between l1 and the origin of the coordinate system, n is the distance between l2 and the origin of the coordinate system, and I1 and I2 represent the current values of l1 and l2 respectively.
[0051] like Figure 2 As shown, the magnetic field sensor chip can measure the magnetic induction intensity on the x-axis and y-axis. Specifically, combined with the coordinate system, the magnetic induction intensity generated by l1 and l2, i.e., B 11 ~B 22 Decomposed into the x-axis and y-axis respectively, the first magnetic induction intensity values measured on the sensor chip 1 and the sensor chip 2 can be obtained by vector superposition, that is, the first magnetic induction intensity B measured by the sensor chip 1 on the x-axis x1 , the first magnetic induction intensity B measured by the sensor chip 1 on the y-axis y1 , the first magnetic induction intensity B measured by the sensor chip 2 on the x-axis x2 And the first magnetic induction intensity B measured by the sensor chip 2 on the y-axis y2 . B x1 , B y1 , Bx2 , B y2 It can be obtained by the following formula (5) to formula (8).
[0052] B x1 =B 21 sinθ2-B 11 sinθ1 (5)
[0053] B y1 =B 21 cosθ2-B 11 cosθ1 (6)
[0054] B x2 =B 22 sinα2-B 11 sinα1 (7)
[0055] B y2 =B 22 cosα2-B 11 cosα1 (8)
[0056] Among them, θ1 is the angle between the connection direction of l1 and sensor chip 1 and the x-axis coordinate axis, θ2 is the angle between the connection direction of l2 and sensor chip 1 and the x-axis coordinate axis, α1 is the angle between the connection direction of l1 and sensor chip 2 and the x-axis coordinate axis, and α2 is the angle between the connection direction of l2 and sensor chip 2 and the x-axis coordinate axis.
[0057] like Figure 2 As shown, m and n also satisfy the following equations (9) to (10).
[0058] m tanθ1=n tanθ2 (9)
[0059] m tanα1=n tanα2 (10)
[0060] It is understandable that since the magnetic field sensor chip does not need to be installed when measuring current, it only needs to be placed near the conductor to be measured. Therefore, it can be placed and used when the current needs to be measured, that is, it can be used whenever the current needs to be measured. That is, in formulas (1) to (10), μ0, m, n, B x1 , B y1 , B x2 , B y2 are all known quantities, B 11 , B 12 , B 21 , B 22, I1, I2, θ1, θ2, α1, α2 are unknown quantities. It can be understood that there are 10 unknown quantities in total, and equations (1) to (10) are 10 equations in total. Therefore, the above unknown quantities can be solved according to equations (1) to (10). Specifically, in this embodiment, the Newton-Raphson method can be used to solve the above unknown quantities.
[0061] Specifically, (1) to (10) are transformed into the following equations (11) to (20).
[0062]
[0063]
[0064]
[0065]
[0066] f5=B x1 -B 21 sinθ2-B 11 sinθ1 (15)
[0067] f6=B y1 -B 21 cosθ2-B 11 cosθ1(16)
[0068] f7=B x2 -B 22 sinα2-B 11 sinα1(17)
[0069] f8=B y2 -B 22 cosα2-B 11 cosα1 (18)
[0070] f9=mtanθ1-ntanθ2 (19)
[0071] f 10 =m tanα1-n tanα2 (20)
[0072] Figure 3 The schematic diagram of the process of the dual-conductor current measurement method based on the magnetic field sensor chip provided in the embodiment of the present application is applied to Figure 1 In the MCU shown, in one embodiment, as Figure 3 As shown, the following steps are included:
[0073] S301, obtaining first magnetic induction intensities of two conductors to be measured in directions of respective coordinate axes measured by a magnetic field sensor chip.
[0074] In this embodiment, combined with Figure 2 MCU will first obtain the first magnetic induction intensity of l1 and l2 measured by sensor chip 1 and sensor chip 2 in the direction of each coordinate axis, that is, the first magnetic induction intensity B of the X axis. x1 , B y1 and the first magnetic induction intensity B of the Y axis x2 , B y2 . Combined Figure 1 It can be understood that the first magnetic induction intensity is the measured value of the magnetic induction intensity of the magnetic field sensor chip in the X-axis and Y-axis directions. The measurement of the magnetic induction intensity can be achieved by measuring the output voltage u of the magnetic field sensor chip. This embodiment does not specifically limit how to determine the first magnetic induction intensity based on the output voltage u.
[0075] S302, determining a second magnetic induction intensity of each conductor to be measured according to each first magnetic induction intensity, wherein the second magnetic induction intensity represents the magnetic induction intensity of the conductor to be measured in a direction perpendicular to a first direction, wherein the first direction is a connection direction between the conductor to be measured and the magnetic field sensor chip.
[0076] In this embodiment, according to the first magnetic induction intensity B of the conductors l1 and l2 to be measured x1 , B y1 , B x2 , B y2 , the second magnetic induction intensity of each conductor to be measured can be determined, that is, B 11 , B 12 , B 21 , B 22 The second magnetic induction intensity represents the magnetic induction intensity of the conductors l1 and l2 to be measured in a direction perpendicular to the first direction, and the first direction is the connection direction between the conductors to be measured, i.e., l1 and l2, and the magnetic field sensor chips, i.e., sensor chips 1 and 2.
[0077] S303, based on each second magnetic induction intensity and the current preset value of each conductor to be measured, using the first relationship between the current iteration result and the previous iteration result, determine the current iteration result until the target iteration result that meets the preset conditions is obtained, wherein the target iteration result includes the current measurement value of each conductor to be measured.
[0078] In this embodiment, the current measurement values of the two conductors to be measured are unknown. In order to determine the current measurement values of the two conductors to be measured, it is first necessary to set an initial current preset value for the two conductors to be measured. It should be noted that the current preset value of the conductor to be measured can be used as the current prediction value of the conductor to be measured. The current values of the two conductors to be measured l1 and l2, i.e., the current preset values I1 and I2, can be preset values randomly determined by the MCU according to the rated current range of the conductors to be measured. Then, the MCU can determine the current value of the conductors to be measured according to the second magnetic induction intensity B11 , B 12 , B 21 , B 22 As well as the current preset values I1 and I2 of the conductor to be measured, the target iteration result that meets the preset conditions is obtained by using the first relationship. It can be understood that the process of obtaining the target iteration result is actually to iterate each second magnetic induction intensity and the current preset value of each conductor to be measured. Therefore, the target iteration result that finally meets the preset conditions includes the current measurement value of each conductor to be measured, so that the MCU can obtain the current measurement value of the conductor to be measured that is finally required.
[0079] This embodiment obtains the first magnetic induction intensity of the two conductors to be measured measured by the magnetic field sensor chip in the directions of each coordinate axis, and determines the second magnetic induction intensity of each conductor to be measured based on each first magnetic induction intensity, the second magnetic induction intensity represents the magnetic induction intensity of the conductor to be measured in a direction perpendicular to the first direction, the first direction is the connection direction of the conductor to be measured and the magnetic field sensor chip, and then based on each second magnetic induction intensity and the current preset value of each conductor to be measured, the first relationship between the current iteration result and the previous iteration result is used to determine the current iteration result until the target iteration result that meets the preset conditions is obtained, wherein the target iteration result includes the current measurement value of each conductor to be measured. Since the method provided in this embodiment can obtain the current measurement value of at least two conductors to be measured, it is more suitable for application scenarios such as separated wires, multi-core cables and three-phase copper busbars than traditional methods, which solves the problem of limited application scenarios in traditional methods and expands the application scenarios.
[0080] Furthermore, the method provided in the present application realizes non-contact measurement between the magnetic field sensor chip and the conductor to be measured, thereby reducing the difficulty of installation, reducing costs, and effectively supporting the deployment of the "nervous system" of the power grid.
[0081] Figure 4 A schematic diagram of a process for obtaining a target iteration result provided in an embodiment of the present application, referring to Figure 4 This embodiment relates to an optional implementation method of how to obtain a target iteration result that meets the preset conditions. Based on the above embodiment, the above S303 includes the following steps:
[0082] S401, taking each second magnetic induction intensity and each current preset value of the conductor to be measured as an initial value.
[0083] In this embodiment, the MCU determines the second magnetic induction intensity B based on each first magnetic induction intensity. 11 , B 12 , B 21 , B 22 And the current preset values I1 and I2 of each conductor to be measured are used as the initial value x(0), that is, x(0) includes B11 , B 12 , B 21 , B 22 , I1, I2.
[0084] S402, taking the initial value as the result of the previous iteration, and taking the difference obtained by subtracting the ratio of the first matrix corresponding to the initial value to the second matrix from the initial value as the result of the current iteration, wherein the first matrix corresponding to the initial value is a matrix determined based on the initial value and the first magnetic induction intensity, and the second matrix corresponding to the initial value is a matrix determined based on the first matrix and the initial value.
[0085] In this embodiment, the first matrix corresponding to the initial value is F[x(0)], and the second matrix corresponding to the initial value is J[x(0)]. The MCU regards the initial value x(0) as the result of the previous iteration and x(0)-F[x(0)] / J[x(0)] as the result of the current iteration, where F[x(0)] is based on the initial value x(0) and the first magnetic induction intensity B x1 , B y1 , B x2 , B y2 The determined matrix, J[x(0)] is a matrix determined based on the first matrix F[x(0)] and the initial value x(0).
[0086] S403, if the previous iteration result does not meet the preset conditions, the current iteration result is used as the previous iteration result, and the current iteration result is determined according to the first relationship between the current iteration result and the previous iteration result, until the target iteration result that meets the preset conditions is determined.
[0087] In this embodiment, if the previous iteration result does not meet the preset conditions, for example, the MCU initially uses the initial value x(0) as the previous iteration result to obtain the current iteration result x(1). If the previous iteration result x(0) does not meet the preset conditions, x(1) is used as the previous iteration result, and the current iteration result x(2) is obtained according to the first relationship, and so on, until the target iteration result that meets the preset conditions is determined.
[0088] In this embodiment, each second magnetic induction intensity and the current preset value of each conductor to be measured are used as the initial value, and the initial value is used as the previous iteration result, and the difference obtained by subtracting the ratio of the first matrix corresponding to the initial value and the second matrix from the initial value is used as the current iteration result, wherein the first matrix corresponding to the initial value is a matrix determined based on the initial value and the first magnetic induction intensity, and the second matrix corresponding to the initial value is a matrix determined based on the first matrix and the initial value. If the previous iteration result does not meet the preset conditions, the current iteration result is used as the previous iteration result, and the current iteration result is determined according to the first relationship between the current iteration result and the previous iteration result, until the target iteration result that meets the preset conditions is determined. Since it can be based on each second magnetic induction intensity and the current preset value of each conductor to be measured, the final target iteration result includes the current measurement value of each conductor to be measured, and thus the current measurement values of at least two conductors to be measured can be obtained.
[0089] Optionally, the above-mentioned dual-conductor current measurement method based on the magnetic field sensor chip further includes the following steps:
[0090] If the previous iteration result meets the preset conditions, the current iteration result will be used as the target iteration result.
[0091] In an embodiment, for example, the MCU initially uses the initial value x(0) as the previous iteration result to obtain the current iteration result x(1). If the previous iteration result x(0) does not meet the preset conditions, for example, the preset condition is that the corresponding F[x(0)] meets the preset threshold, then x(1) is used as the target iteration result, thereby obtaining the target iteration result that meets the preset conditions.
[0092] In this embodiment, if the previous iteration result meets the preset conditions, the current iteration result is used as the target iteration result. Since it is possible to determine whether to stop the iteration based on the preset conditions, the target iteration result that meets the preset conditions is finally obtained. The final target iteration result includes the current measurement values of each conductor to be measured, thereby obtaining the current measurement values of at least two conductors to be measured.
[0093] Optionally, if the previous iteration result meets the preset condition, the current iteration result is used as the target iteration result, which can be achieved in the following way:
[0094] If the absolute value of the first matrix corresponding to the previous iteration result is less than or equal to the preset threshold, the current iteration result is used as the target iteration result; or, if the number of iterations is equal to the preset number of iterations, the current iteration result is used as the target iteration result.
[0095] In this embodiment, it can be that if the last iteration result, that is, the absolute value of the first matrix corresponding to x(0) |F[x(0)]| is less than or equal to a preset threshold, for example, less than or equal to the preset threshold Δ=1×10 -8 , then x(1) is taken as the target iteration result. Alternatively, in this embodiment, the number of iterations may be preset. Since the Newton-Raphson method has good convergence, a good target iteration result can usually be obtained within 10 iterations. For example, if the number of iterations is preset to 1, then x(1) has been iterated once, which meets the preset number of iterations, and x(1) is taken as the target iteration result.
[0096] In this embodiment, if the absolute value of the first matrix corresponding to the last iteration result is less than or equal to the preset threshold, the current iteration result is used as the target iteration result. Alternatively, if the number of iterations is equal to the preset number of iterations, the current iteration result is used as the target iteration result. Since the absolute value of the first matrix corresponding to the last iteration result and the number of iterations are known during the iteration process, the MCU can quickly obtain the target iteration result that finally meets the preset conditions. The target iteration result includes the current measurement value of each conductor to be measured, so that the current measurement value of at least two conductors to be measured can be obtained.
[0097] Optionally, the first relationship is: x(k+1)=x(k)-F[x(k)] / J[x(k)], where k is an integer greater than or equal to zero, x(k+1) represents the current iteration result, x(k) represents the previous iteration result, F[x(k)] and J[x(k)] respectively represent the first matrix and the second matrix corresponding to the previous iteration result, F[x(k)] is a matrix determined based on the previous iteration result, and J[x(k)] is a Jacobian matrix determined based on F[x(k)] and the previous iteration result.
[0098] In this embodiment, the first relational expression is: x(k+1)=x(k)-F[x(k)] / J[x(k)], wherein k represents the number of iterations, and k is an integer greater than or equal to zero. It can be understood that the first iteration is performed when k=0, at which time the MCU uses the initial value x(0) as the result of the previous iteration, and obtains the current iteration result x(1) according to the first relational expression, x(1)=x(0)-F[x(0)] / J[x(0)]. F[x(0)] represents the first matrix corresponding to the result of the previous iteration, that is, x(0), and J[x(0)] represents the second matrix corresponding to the result of the previous iteration, that is, x(0). If the absolute value of the first matrix corresponding to the result of the previous iteration, that is, |F[x(0)]|, is greater than the preset threshold, it is necessary to continue the iteration, and at this time x(1) is used as the result of the previous iteration.
[0099] Further, the second iteration is performed, k = 1, x(2) = x(1) - F[x(1)] / J[x(1)], x(2) is the result of the current iteration, F[x(1)] represents the first matrix corresponding to the result of the previous iteration, i.e. x(1), and J[x(1)] represents the second matrix corresponding to the result of the previous iteration, i.e. x(1). If the absolute value of the first matrix corresponding to the result of the previous iteration, i.e. |F[x(1)]|, is greater than the preset threshold, it is necessary to continue the iteration, and x(2) is used as the result of the previous iteration.
[0100] Furthermore, the third iteration is performed, k=2, x(3)=x(2)-F[x(2)] / J[x(2)], x(3) is the result of the current iteration, F[x(2)] represents the first matrix corresponding to the result of the previous iteration, that is, x(2), and J[x(2)] represents the second matrix corresponding to the result of the previous iteration, that is, x(2). If the absolute value of the first matrix corresponding to the result of the previous iteration, that is, |F[x(2)]| is less than or equal to the preset threshold, the iteration is stopped, and x(3) is used as the target iteration result. If |F[x(2)]| is not less than or equal to the preset threshold, x(3) is used as the result of the previous iteration to obtain the result of the current iteration, x(4), which will not be repeated here.
[0101] In this embodiment, since the first relational expression is: x(k+1)=x(k)-F[x(k)] / J[x(k)], where k is an integer greater than or equal to zero, x(k+1) represents the current iteration result, x(k) represents the previous iteration result, F[x(k)] and J[x(k)] respectively represent the first matrix and the second matrix corresponding to the previous iteration result, F[x(k)] is a matrix determined based on the previous iteration result, and J[x(k)] is a Jacobian matrix determined based on F[x(k)] and the previous iteration result. Therefore, the target iteration result can be obtained according to the first relational expression, and the target iteration result includes the current measurement value of each conductor to be measured, and then the current measurement values of at least two conductors to be measured can be obtained.
[0102] Figure 5 A schematic diagram of a process for determining a second magnetic induction intensity provided in an embodiment of the present application, referring to Figure 5 This embodiment relates to an optional implementation method of how to determine the second magnetic induction intensity. Based on the above embodiment, the above S302 also includes the following steps:
[0103] S501: Obtain each angle between a first direction and at least one coordinate axis direction.
[0104] In this embodiment, since the position of the magnetic field sensor chip has been determined during measurement, the MCU will obtain the first direction and at least one coordinate axis direction, such as the various angles of the X-axis, that is, the angle θ1 between the connection direction of l1 and the sensor chip 1 and the x-axis coordinate axis, the angle θ2 between the connection direction of l2 and the sensor chip 1 and the x-axis coordinate axis, the angle α1 between the connection direction of l1 and the sensor chip 2 and the x-axis coordinate axis, and the angle α2 between the connection direction of l2 and the sensor chip 2 and the x-axis coordinate axis. It can be understood that the MCU can also obtain various angles between the first direction and the Y-axis direction, which is not limited in this embodiment.
[0105] S502, according to each included angle and the second relational expression, a second magnetic induction intensity, wherein the second relational expression includes the relationship between each included angle, each second magnetic induction intensity and the first magnetic induction intensity.
[0106] In this embodiment, the second relational expression includes equations (5) to (8). The MCU can calculate the first magnetic induction intensity B of l1 and l2 based on the angles and the second relational expression. x1 , B y1 , B x2 , B y2 Determine the second magnetic induction intensity B of l1 and l2 11 , B 12 , B 21 , B 22
[0107] In this embodiment, each angle between the first direction and at least one coordinate axis direction is obtained, and then the second magnetic induction intensity is obtained according to each angle and the second relational expression, wherein the second relational expression includes the relationship between each angle, each second magnetic induction intensity and the first magnetic induction intensity. Since the second magnetic induction intensity can be determined during measurement, the target iteration result that meets the preset conditions can be obtained according to the second magnetic induction intensity and the current preset value of each conductor to be measured, so that the current measurement values of at least two conductors to be measured can be obtained.
[0108] Figure 6 This is another schematic diagram of a process for determining the second magnetic induction intensity provided in an embodiment of the present application, referring to Figure 6 This embodiment relates to an optional implementation method of how to determine the second magnetic induction intensity. Based on the above embodiment, the above S302 also includes the following steps:
[0109] S601: Acquire each angle between a first direction and at least one coordinate axis direction.
[0110] This embodiment is the same as S501 and will not be described again here.
[0111] S602, determining the second magnetic induction intensity of each conductor to be measured according to each angle and a third relationship, wherein the third relationship expresses the relationship between each second magnetic induction intensity, the current measurement value of each conductor to be measured, each angle, the vacuum permeability, and the first distance, wherein the first distance is the distance between each conductor to be measured and the coordinate origin.
[0112] In this embodiment, the third relational expression includes equations (1) to (4). The MCU can calculate the first magnetic induction intensity B of l1 and l2 based on the angles and the third relational expression. x1 , B y1 , B x2 , B y2 Determine the second magnetic induction intensity B of l1 and l2 11 , B 12 , B 21 , B 22 .
[0113] In this embodiment, the second magnetic induction intensity of each conductor to be measured is determined by obtaining each angle between the first direction and at least one coordinate axis direction, and then according to each angle and the third relationship, the third relationship represents the relationship between each second magnetic induction intensity, the current measurement value of each conductor to be measured, each angle, vacuum permeability and the first distance, wherein the first distance is the distance between each conductor to be measured and the coordinate origin. Since the second magnetic induction intensity can be determined during measurement, the target iteration result that meets the preset conditions can be obtained according to the second magnetic induction intensity and the current preset value of each conductor to be measured, so that the current measurement values of at least two conductors to be measured can be obtained.
[0114] To facilitate the description of the method provided in this embodiment, the expressions for the kth iteration are defined as follows: (21) to (23), wherein x(k) represents the result of the Kth iteration, and F[x(k)] and J[x(k)] respectively represent the first matrix and the second matrix corresponding to the result of the Kth iteration.
[0115] x(k)=[B 11 , B 12 , B 21 , B 22 ,I1,I2,θ1,θ2,α1,α2] (21)
[0116] F[x(k)]=[f1, f2, f3, f4, f5, f6, f7, f8, f9, f 10 ] (twenty two)
[0117]
[0118] Combining equations (21) to (23), it can be seen that F[x(k)] is a matrix determined based on x(k), and J[x(k)] is a Jacobian matrix determined based on x(k) and F[x(k)]. In other words, F[x(k)] is a matrix determined based on the result of the previous iteration, and J[x(k)] is a Jacobian matrix determined based on F[x(k)] and the result of the previous iteration. It can be understood that since the result x(k) of each iteration is different, the corresponding F[x(k)] and J[x(k)] obtained based on x(k) are also different.
[0119] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0120] Based on the same inventive concept, the embodiment of the present application also provides a dual-conductor current measuring device based on a magnetic field sensor chip for implementing the dual-conductor current measuring method based on a magnetic field sensor chip involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more dual-conductor current measuring devices based on a magnetic field sensor chip provided below can refer to the limitations of the dual-conductor current measuring method based on a magnetic field sensor chip above, and will not be repeated here.
[0121] Reference Figure 7 , Figure 7 Schematic diagram of the structure of a dual-conductor current measurement device based on a magnetic field sensor chip provided in an embodiment of the present application. The device 700 includes: an acquisition module 701, a first determination module 702, and a second determination module 703, wherein:
[0122] The acquisition module 701 is used to acquire the first magnetic induction intensity of two conductors to be measured in the direction of each coordinate axis measured by the magnetic field sensor chip.
[0123] The first determination module 702 is used to determine the second magnetic induction intensity of each conductor to be measured according to each first magnetic induction intensity, where the second magnetic induction intensity represents the magnetic induction intensity of the conductor to be measured in a direction perpendicular to the first direction, where the first direction is the connection direction between the conductor to be measured and the magnetic field sensor chip.
[0124] The first determination module 703 is used to determine the current iteration result based on each second magnetic induction intensity and the current preset value of each conductor to be measured, using the first relationship between the current iteration result and the previous iteration result, until a target iteration result that meets the preset conditions is obtained, wherein the target iteration result includes the current measurement value of each conductor to be measured.
[0125] The dual-conductor current measuring device based on the magnetic field sensor chip provided in this embodiment obtains the first magnetic induction intensity of the two conductors to be measured measured by the magnetic field sensor chip in the directions of each coordinate axis, and determines the second magnetic induction intensity of each conductor to be measured according to each first magnetic induction intensity, wherein the second magnetic induction intensity represents the magnetic induction intensity of the conductor to be measured in a direction perpendicular to the first direction, and the first direction is the connection direction between the conductor to be measured and the magnetic field sensor chip, and then based on each second magnetic induction intensity and the current preset value of each conductor to be measured, the first relationship between the current iteration result and the previous iteration result is used to determine the current iteration result until the target iteration result that meets the preset conditions is obtained, wherein the target iteration result includes the current measurement value of each conductor to be measured. Since the method provided in this embodiment can obtain the current measurement value of at least two conductors to be measured, it is more suitable for application scenarios such as separated wires, multi-core cables and three-phase copper busbars than the traditional method, which solves the problem of limited application scenarios in the traditional method and expands the application scenarios.
[0126] Optionally, the second determining module 703 includes:
[0127] The initialization unit is used to take the preset values of each second magnetic induction intensity and each current of the conductor to be measured as initial values.
[0128] An iteration unit is used to take the initial value as the result of the previous iteration, and take the difference obtained by subtracting the ratio of the first matrix corresponding to the initial value to the second matrix as the result of the current iteration, wherein the first matrix corresponding to the initial value is a matrix determined based on the initial value and the first magnetic induction intensity, and the second matrix corresponding to the initial value is a matrix determined based on the first matrix and the initial value.
[0129] The first determination unit is used to take the current iteration result as the previous iteration result if the previous iteration result does not meet the preset conditions, and determine the current iteration result according to the first relationship between the current iteration result and the previous iteration result, until the target iteration result that meets the preset conditions is determined.
[0130] Optionally, the first determining unit is configured to use the current iteration result as the target iteration result if the previous iteration result meets a preset condition.
[0131] Optionally, the determination unit is used to use the current iteration result as the target iteration result if the absolute value of the first matrix corresponding to the previous iteration result is less than or equal to a preset threshold; or, if the number of iterations is equal to the preset number of iterations, use the current iteration result as the target iteration result.
[0132] Optionally, the first relationship is: x(k+1)=x(k)-F[x(k)] / J[x(k)], where k is an integer greater than or equal to zero, x(k+1) represents the current iteration result, x(k) represents the previous iteration result, F[x(k)] and J[x(k)] respectively represent the first matrix and the second matrix corresponding to the previous iteration result, F[x(k)] is a matrix determined based on the previous iteration result, and J[x(k)] is a Jacobian matrix determined based on F[x(k)] and the previous iteration result.
[0133] Optionally, the first determining module 702 includes:
[0134] The first acquisition unit is used to acquire each angle between the first direction and at least one coordinate axis direction.
[0135] The second determining unit is used to determine the second magnetic induction intensity according to each included angle and a second relational expression, wherein the second relational expression includes the relationship between each included angle, each second magnetic induction intensity and the first magnetic induction intensity.
[0136] Optionally, the first determining module 702 further includes:
[0137] The first acquisition unit is used to acquire each angle between the first direction and at least one coordinate axis direction.
[0138] The third determination unit is used to determine the second magnetic induction intensity of each conductor to be measured according to each angle and a third relationship, wherein the third relationship represents the relationship between each second magnetic induction intensity, the current measurement value of each conductor to be measured, each angle, the vacuum permeability and the first distance, wherein the first distance is the distance between each conductor to be measured and the coordinate origin.
[0139] Each module in the above-mentioned dual-conductor current measurement device based on magnetic field sensor chip can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0140] Figure 8 FIG. 1 is an internal structure diagram of a computer device in an embodiment of the present application. In an embodiment of the present application, a computer device is provided. The computer device may be Figure 1The internal structure of the MCU shown in Figure 8 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store relevant data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a dual-conductor current measurement method based on a magnetic field sensor chip is implemented.
[0141] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0142] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0143] Obtaining first magnetic induction intensities of two conductors to be measured measured by the magnetic field sensor chip in directions of respective coordinate axes;
[0144] Determine a second magnetic induction intensity of each of the conductors to be measured according to each of the first magnetic induction intensities, wherein the second magnetic induction intensity represents the magnetic induction intensity of the conductor to be measured in a direction perpendicular to a first direction, wherein the first direction is a connection direction between the conductor to be measured and the magnetic field sensor chip;
[0145] Based on each of the second magnetic induction intensities and the current preset values of each of the conductors to be measured, the current iteration result is determined using the first relationship between the current iteration result and the previous iteration result until a target iteration result that meets preset conditions is obtained, wherein the target iteration result includes the current measurement value of each of the conductors to be measured.
[0146] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0147] Taking each of the second magnetic induction intensities and each of the current preset values of the conductors to be measured as initial values;
[0148] The initial value is used as the previous iteration result, and the difference obtained by subtracting the ratio of the first matrix corresponding to the initial value to the second matrix from the initial value is used as the current iteration result, wherein the first matrix corresponding to the initial value is a matrix determined based on the initial value and the first magnetic induction intensity, and the second matrix corresponding to the initial value is a matrix determined based on the first matrix and the initial value;
[0149] If the previous iteration result does not meet the preset conditions, the current iteration result is used as the previous iteration result, and the current iteration result is determined according to the first relationship between the current iteration result and the previous iteration result, until the target iteration result that meets the preset conditions is determined.
[0150] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0151] If the previous iteration result meets the preset condition, the current iteration result is used as the target iteration result.
[0152] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0153] If the absolute value of the first matrix corresponding to the previous iteration result is less than or equal to the preset threshold, the current iteration result is used as the target iteration result;
[0154] Alternatively, if the number of iterations is equal to the preset number of iterations, the current iteration result is used as the target iteration result.
[0155] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0156] The first relationship is: x(k+1)=x(k)-F[x(k)] / J[x(k)], where k is an integer greater than or equal to zero, x(k+1) represents the current iteration result, x(k) represents the previous iteration result, F[x(k)] and J[x(k)] respectively represent the first matrix and the second matrix corresponding to the previous iteration result, F[x(k)] is a matrix determined based on the previous iteration result, and J[x(k)] is a Jacobian matrix determined based on F[x(k)] and the previous iteration result.
[0157] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0158] Obtaining each angle between the first direction and at least one of the coordinate axis directions;
[0159] The second magnetic induction intensity of each of the conductors to be measured is determined according to the respective included angles and the second relationship formula, wherein the second relationship formula includes the relationship between the respective included angles, the respective second magnetic induction intensities and the first magnetic induction intensity.
[0160] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0161] Obtaining each angle between the first direction and at least one of the coordinate axis directions;
[0162] The second magnetic induction intensity of each of the conductors to be measured is determined according to the respective included angles and a third relationship expression, wherein the third relationship expression represents a relationship between each of the second magnetic induction intensity, the current measurement value of each of the conductors to be measured, the respective included angles, the vacuum magnetic permeability, and the first distance, wherein the first distance is the distance between each of the conductors to be measured and the coordinate origin.
[0163] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0164] Obtaining first magnetic induction intensities of two conductors to be measured measured by the magnetic field sensor chip in directions of respective coordinate axes;
[0165] Determine a second magnetic induction intensity of each of the conductors to be measured according to each of the first magnetic induction intensities, wherein the second magnetic induction intensity represents the magnetic induction intensity of the conductor to be measured in a direction perpendicular to a first direction, wherein the first direction is a connection direction between the conductor to be measured and the magnetic field sensor chip;
[0166] Based on each of the second magnetic induction intensities and the current preset values of each of the conductors to be measured, the current iteration result is determined using the first relationship between the current iteration result and the previous iteration result until a target iteration result that meets preset conditions is obtained, wherein the target iteration result includes the current measurement value of each of the conductors to be measured.
[0167] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0168] Taking each of the second magnetic induction intensities and each of the current preset values of the conductors to be measured as initial values;
[0169] The initial value is used as the previous iteration result, and the difference obtained by subtracting the ratio of the first matrix corresponding to the initial value to the second matrix from the initial value is used as the current iteration result, wherein the first matrix corresponding to the initial value is a matrix determined based on the initial value and the first magnetic induction intensity, and the second matrix corresponding to the initial value is a matrix determined based on the first matrix and the initial value;
[0170] If the previous iteration result does not meet the preset conditions, the current iteration result is used as the previous iteration result, and the current iteration result is determined according to the first relationship between the current iteration result and the previous iteration result, until the target iteration result that meets the preset conditions is determined.
[0171] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0172] If the previous iteration result meets the preset condition, the current iteration result is used as the target iteration result.
[0173] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0174] If the absolute value of the first matrix corresponding to the previous iteration result is less than or equal to the preset threshold, the current iteration result is used as the target iteration result;
[0175] Alternatively, if the number of iterations is equal to the preset number of iterations, the current iteration result is used as the target iteration result.
[0176] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0177] The first relationship is: x(k+1)=x(k)-F[x(k)] / J[x(k)], where k is an integer greater than or equal to zero, x(k+1) represents the current iteration result, x(k) represents the previous iteration result, F[x(k)] and J[x(k)] respectively represent the first matrix and the second matrix corresponding to the previous iteration result, F[x(k)] is a matrix determined based on the previous iteration result, and J[x(k)] is a Jacobian matrix determined based on F[x(k)] and the previous iteration result.
[0178] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0179] Obtaining each angle between the first direction and at least one of the coordinate axis directions;
[0180] The second magnetic induction intensity of each of the conductors to be measured is determined according to the respective included angles and the second relationship formula, wherein the second relationship formula includes the relationship between the respective included angles, the respective second magnetic induction intensities and the first magnetic induction intensity.
[0181] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0182] Obtaining each angle between the first direction and at least one of the coordinate axis directions;
[0183] The second magnetic induction intensity of each of the conductors to be measured is determined according to the respective included angles and a third relationship expression, wherein the third relationship expression represents a relationship between each of the second magnetic induction intensity, the current measurement value of each of the conductors to be measured, the respective included angles, the vacuum magnetic permeability, and the first distance, wherein the first distance is the distance between each of the conductors to be measured and the coordinate origin.
[0184] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0185] Obtaining first magnetic induction intensities of two conductors to be measured measured by the magnetic field sensor chip in directions of respective coordinate axes;
[0186] Determine a second magnetic induction intensity of each of the conductors to be measured according to each of the first magnetic induction intensities, wherein the second magnetic induction intensity represents the magnetic induction intensity of the conductor to be measured in a direction perpendicular to a first direction, wherein the first direction is a connection direction between the conductor to be measured and the magnetic field sensor chip;
[0187] Based on each of the second magnetic induction intensities and the current preset values of each of the conductors to be measured, the current iteration result is determined using the first relationship between the current iteration result and the previous iteration result until a target iteration result that meets preset conditions is obtained, wherein the target iteration result includes the current measurement value of each of the conductors to be measured.
[0188] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0189] Taking each of the second magnetic induction intensities and each of the current preset values of the conductors to be measured as initial values;
[0190] The initial value is used as the previous iteration result, and the difference obtained by subtracting the ratio of the first matrix corresponding to the initial value to the second matrix from the initial value is used as the current iteration result, wherein the first matrix corresponding to the initial value is a matrix determined based on the initial value and the first magnetic induction intensity, and the second matrix corresponding to the initial value is a matrix determined based on the first matrix and the initial value;
[0191] If the previous iteration result does not meet the preset conditions, the current iteration result is used as the previous iteration result, and the current iteration result is determined according to the first relationship between the current iteration result and the previous iteration result, until the target iteration result that meets the preset conditions is determined.
[0192] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0193] If the previous iteration result meets the preset condition, the current iteration result is used as the target iteration result.
[0194] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0195] If the absolute value of the first matrix corresponding to the previous iteration result is less than or equal to the preset threshold, the current iteration result is used as the target iteration result;
[0196] Alternatively, if the number of iterations is equal to the preset number of iterations, the current iteration result is used as the target iteration result.
[0197] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0198] The first relationship is: x(k+1)=x(k)-F[x(k)] / J[x(k)], where k is an integer greater than or equal to zero, x(k+1) represents the current iteration result, x(k) represents the previous iteration result, F[x(k)] and J[x(k)] respectively represent the first matrix and the second matrix corresponding to the previous iteration result, F[x(k)] is a matrix determined based on the previous iteration result, and J[x(k)] is a Jacobian matrix determined based on F[x(k)] and the previous iteration result.
[0199] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0200] Obtaining each angle between the first direction and at least one of the coordinate axis directions;
[0201] The second magnetic induction intensity of each of the conductors to be measured is determined according to the respective included angles and the second relationship formula, wherein the second relationship formula includes the relationship between the respective included angles, the respective second magnetic induction intensities and the first magnetic induction intensity.
[0202] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0203] Obtaining each angle between the first direction and at least one of the coordinate axis directions;
[0204] The second magnetic induction intensity of each of the conductors to be measured is determined according to the respective included angles and a third relationship expression, wherein the third relationship expression represents a relationship between each of the second magnetic induction intensity, the current measurement value of each of the conductors to be measured, the respective included angles, the vacuum magnetic permeability, and the first distance, wherein the first distance is the distance between each of the conductors to be measured and the coordinate origin.
[0205] 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, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0206] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0207] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0208] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A dual-conductor current measurement method based on a magnetic field sensor chip, characterized in that: The method comprises: Obtaining first magnetic induction intensities of two conductors to be measured measured by the magnetic field sensor chip in directions of respective coordinate axes; Determine a second magnetic induction intensity of each of the conductors to be measured according to each of the first magnetic induction intensities, wherein the second magnetic induction intensity represents the magnetic induction intensity of the conductor to be measured in a direction perpendicular to a first direction, wherein the first direction is a connection direction between the conductor to be measured and the magnetic field sensor chip; Taking each of the second magnetic induction intensities and each of the current preset values of the conductors to be measured as initial values; The initial value is used as the previous iteration result, and the difference obtained by subtracting the ratio of the first matrix corresponding to the initial value to the second matrix from the initial value is used as the current iteration result, wherein the first matrix corresponding to the initial value is a matrix determined based on the initial value and the first magnetic induction intensity, and the second matrix corresponding to the initial value is a matrix determined based on the first matrix and the initial value; If the previous iteration result does not meet the preset condition, the current iteration result is used as the previous iteration result, and the current iteration result is determined according to the first relationship between the current iteration result and the previous iteration result, until a target iteration result that meets the preset condition is obtained; the target iteration result includes the current measurement value of each conductor to be measured; Wherein, determining the second magnetic induction intensity of each of the conductors to be measured according to each of the first magnetic induction intensities includes: Acquire each angle between the first direction and at least one of the coordinate axis directions; determine the second magnetic induction intensity of each of the conductors to be measured according to the each angle and a second relational expression, wherein the second relational expression includes the relationship between the each angle, each of the second magnetic induction intensities, and the first magnetic induction intensity; Alternatively, each angle between the first direction and at least one of the coordinate axis directions is obtained; and the second magnetic induction intensity of each of the conductors to be measured is determined according to the each angle and a third relationship, wherein the third relationship represents the relationship between each of the second magnetic induction intensity, the current measurement value of each of the conductors to be measured, the each angle, the vacuum permeability, and the first distance, wherein the first distance is the distance between each of the conductors to be measured and the coordinate origin; Wherein, the first relational expression is: ,in, is an integer greater than or equal to zero, Indicates the result of the current iteration. Indicates the result of the last iteration. and Respectively represent the first matrix and the second matrix corresponding to the previous iteration result, is a matrix determined based on the result of the previous iteration. is based on and the Jacobian matrix determined by the result of the previous iteration; The third relational expression includes: 、 、 and ; The second relational expression includes: 、 、 and ; The conductor to be measured includes a first conductor and a second conductor, and the magnetic field sensor chip includes a first magnetic field sensor chip and a second magnetic field sensor chip; The second magnetic induction intensity generated by the first conductor and perpendicular to the connection direction between the first conductor and the first magnetic field sensor chip; is the second magnetic induction intensity generated by the first conductor and perpendicular to the connection direction between the first conductor and the second magnetic field sensor chip, is the second magnetic induction intensity generated by the second conductor and perpendicular to the connection direction between the second conductor and the first magnetic field sensor chip, A second magnetic induction intensity generated by the second conductor and perpendicular to the connection direction between the second conductor and the second magnetic field sensor chip; is the vacuum permeability, is the circumference of a circle, is the distance between the first conductor and the coordinate origin, is the distance between the second conductor and the coordinate origin, is the current value of the first conductor, is the current value of the second conductor; is the angle between the connecting line between the first conductor and the first magnetic field sensor chip and the first connecting line, is the angle between the connection line between the first conductor and the second magnetic field sensor chip and the first connection line, is the angle between the connecting line between the second conductor and the first magnetic field sensor chip and the first connecting line, is the angle between the connection line between the second conductor and the second magnetic field sensor chip and the first connection line; the first connection line is the connection line between the first conductor and the second conductor; is the first magnetic induction intensity of the first conductor in the X-axis direction, is the first magnetic induction intensity of the second conductor in the X-axis direction, The first magnetic induction intensity of the first conductor in the Y-axis direction, The first magnetic induction intensity of the second conductor in the Y-axis direction.
2. The method according to claim 1, characterized in that The method further comprises: If the previous iteration result meets the preset condition, the current iteration result is used as the target iteration result.
3. The method according to claim 2, characterized in that If the previous iteration result satisfies the preset condition, the current iteration result is used as the target iteration result, including: If the absolute value of the first matrix corresponding to the previous iteration result is less than or equal to the preset threshold, the current iteration result is used as the target iteration result; Alternatively, if the number of iterations is equal to the preset number of iterations, the current iteration result is used as the target iteration result.
4. A dual-conductor current measurement device based on a magnetic field sensor chip, characterized in that: The device comprises: An acquisition module, used for acquiring first magnetic induction intensities of two conductors to be measured respectively in the directions of respective coordinate axes measured by the magnetic field sensor chip; A first determination module, configured to determine a second magnetic induction intensity of each of the conductors to be measured according to each of the first magnetic induction intensities, wherein the second magnetic induction intensity represents the magnetic induction intensity of the conductor to be measured in a direction perpendicular to a first direction, wherein the first direction is a connection direction between the conductor to be measured and the magnetic field sensor chip; A second determination module is used to take each of the second magnetic induction intensities and the current preset values of each of the conductors to be measured as initial values; take the initial values as the previous iteration result, and take the difference obtained by subtracting the ratio of the first matrix corresponding to the initial values to the second matrix as the current iteration result; if the previous iteration result does not meet the preset conditions, take the current iteration result as the previous iteration result, and determine the current iteration result according to the first relationship between the current iteration result and the previous iteration result, until a target iteration result that meets the preset conditions is obtained; wherein the first matrix corresponding to the initial value is a matrix determined based on the initial value and the first magnetic induction intensity, and the second matrix corresponding to the initial value is a matrix determined based on the first matrix and the initial value; the target iteration result includes the current measurement value of each of the conductors to be measured; The first determining module is further used for: Acquire each angle between the first direction and at least one of the coordinate axis directions; determine the second magnetic induction intensity of each of the conductors to be measured according to the each angle and a second relational expression, wherein the second relational expression includes the relationship between the each angle, each of the second magnetic induction intensities, and the first magnetic induction intensity; Alternatively, each angle between the first direction and at least one of the coordinate axis directions is obtained; and the second magnetic induction intensity of each of the conductors to be measured is determined according to the each angle and a third relationship, wherein the third relationship represents the relationship between each of the second magnetic induction intensity, the current measurement value of each of the conductors to be measured, the each angle, the vacuum permeability, and the first distance, wherein the first distance is the distance between each of the conductors to be measured and the coordinate origin; Wherein, the first relational expression is: ,in, is an integer greater than or equal to zero, Indicates the result of the current iteration. Indicates the result of the last iteration. and Respectively represent the first matrix and the second matrix corresponding to the previous iteration result, is a matrix determined based on the result of the previous iteration. is based on and the Jacobian matrix determined by the result of the previous iteration; The third relational expression includes: 、 、 and ; The second relational expression includes: 、 、 and ; The conductor to be measured includes a first conductor and a second conductor, and the magnetic field sensor chip includes a first magnetic field sensor chip and a second magnetic field sensor chip; The second magnetic induction intensity generated by the first conductor and perpendicular to the connection direction between the first conductor and the first magnetic field sensor chip; is the second magnetic induction intensity generated by the first conductor and perpendicular to the connection direction between the first conductor and the second magnetic field sensor chip, is the second magnetic induction intensity generated by the second conductor and perpendicular to the connection direction between the second conductor and the first magnetic field sensor chip, A second magnetic induction intensity generated by the second conductor and perpendicular to the connection direction between the second conductor and the second magnetic field sensor chip; is the vacuum permeability, is the circumference of a circle, is the distance between the first conductor and the coordinate origin, is the distance between the second conductor and the coordinate origin, is the current value of the first conductor, is the current value of the second conductor; is the angle between the connecting line between the first conductor and the first magnetic field sensor chip and the first connecting line, is the angle between the connection line between the first conductor and the second magnetic field sensor chip and the first connection line, is the angle between the connecting line between the second conductor and the first magnetic field sensor chip and the first connecting line, is the angle between the connection line between the second conductor and the second magnetic field sensor chip and the first connection line; the first connection line is the connection line between the first conductor and the second conductor; is the first magnetic induction intensity of the first conductor in the X-axis direction, is the first magnetic induction intensity of the second conductor in the X-axis direction, The first magnetic induction intensity of the first conductor in the Y-axis direction, The first magnetic induction intensity of the second conductor in the Y-axis direction.
5. The device according to claim 4, characterized in that The device is also used to use the current iteration result as the target iteration result if the previous iteration result meets the preset condition.
6. The device according to claim 5, characterized in that The device is also used to use the current iteration result as the target iteration result if the absolute value of the first matrix corresponding to the previous iteration result is less than or equal to a preset threshold; or, if the number of iterations is equal to a preset number of iterations, use the current iteration result as the target iteration result.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
