Calibration method for residual current, electronic device and storage medium
By determining the calibration intervals that connect the beginning and end and establishing a fitted linear relationship, the problem of insufficient residual current calibration accuracy in the existing technology is solved, achieving high-precision calibration across the entire range and improving electrical safety.
Patent Information
- Application Number
- CN202511333159.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-18
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2045-09-18
AI Technical Summary
In the existing technology, the residual current calibration method can only guarantee the accuracy of the calibration point or the area near the calibration point, but cannot guarantee the accuracy of other residual currents in the interval, resulting in poor calibration accuracy.
By acquiring multiple sample values, a calibration interval with consecutive beginnings and endings is determined, and calibration parameters are determined for each interval. A linear relationship is established using a fitted straight line to calibrate the residual current during the working phase in real time.
It improves the accuracy and reliability of residual current calibration, ensuring that the calibration accuracy meets the requirements across the entire range, and enhances electrical safety.
Smart Images

Figure CN120831623B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of circuit protection, and in particular to a residual current calibration method, an electronic device and a storage medium. BACKGROUND
[0002] Residual current refers to the current whose vector sum is not zero in each phase of a circuit. Specifically, when an accident occurs at the power consumption side, the current flows from the live body to the ground through the human body, so that the currents in the incoming and outgoing lines of the main circuit are not equal. At this time, the effective value of the instantaneous vector synthesis of the current is called residual current, commonly known as leakage current. When the residual current is too large, there is a fire hazard and harm to personal safety. At present, residual current protection is mainly realized by circuit breakers. The circuit breaker detects the residual current generated by the equipment during operation through a residual current transformer and a sampling circuit, obtains the corresponding sample value, calculates the residual current value based on the sample value, and determines whether to perform protection according to the calculated residual current value and the preset residual current threshold. Due to the characteristics of the residual current transformer, the precision of the sampling and conditioning circuit, and other factors, the residual current needs to be calibrated when detecting the residual current.
[0003] In related technologies, a plurality of residual current calibration points of several levels are usually set according to the characteristic curve of the residual current transformer. During the working stage, the residual current located in the interval is calibrated by using the calibration parameters of the interval between each two residual current calibration points.
[0004] However, in the above calibration method, the errors of the residual currents located in the interval are different for one interval. If the above method is used for calibration, only the accuracy when the residual current is consistent with the residual current calibration point or the residual current near the residual current calibration point can be guaranteed, and the accuracy of other residual currents in the interval cannot be guaranteed, resulting in poor calibration accuracy. SUMMARY
[0005] The present application provides a residual current calibration method, an electronic device and a storage medium to solve the problem that only the accuracy when the residual current is consistent with the residual current calibration point or the residual current near the residual current calibration point can be guaranteed, and the accuracy of other residual currents in the interval cannot be guaranteed, resulting in poor calibration accuracy, and to achieve the purpose of improving the calibration accuracy.
[0006] In a first aspect, the present application provides a residual current calibration method, comprising:
[0007] obtaining a plurality of sample values, the plurality of sample values corresponding to sample residual current values of different levels respectively;
[0008] According to a plurality of sample sampling values, determine one or more calibration intervals that are connected at the head and tail; for each calibration interval, for each first sampling value, the first relative error of the sample residual current value corresponding to the first sampling value relative to the first fitting straight line is less than or equal to a preset error; the first sampling value is the sample sampling value belonging to the calibration interval, and the first fitting straight line is used to indicate the linear relationship between the sampling value and the calibration residual current value in the calibration interval;
[0009] For each calibration interval, determine the calibration parameter corresponding to the calibration interval;
[0010] According to one or more calibration intervals and one or more calibration parameters corresponding to the calibration intervals respectively, calibrate the working residual current generated in the working phase in real time.
[0011] In a possible design, according to a plurality of sample sampling values, one or more calibration intervals that are connected at the head and tail are determined, comprising:
[0012] Arrange the plurality of sample sampling values in ascending order to obtain a sample sequence;
[0013] According to the second sampling value, the sample residual current value corresponding to the second sampling value, the reference sampling value and the sample residual current value corresponding to the reference sampling value, determine a second fitting straight line, the initial second sampling value is the last sample sampling value in the sample sequence, the initial reference sampling value is 0, and the sample residual current value corresponding to the initial reference sampling value is 0;
[0014] For each third sampling value, according to the second fitting straight line, the third sampling value and the sample residual current value corresponding to the third sampling value, calculate the second relative error of the sample residual current value corresponding to the third sampling value relative to the second fitting straight line; the third sampling value is all sample sampling values between the second sampling value and the reference sampling value in the sample sequence;
[0015] When all the second relative errors are less than or equal to the preset error, the second sampling value is determined as the right end point of the calibration interval, the reference sampling value is determined as the left end point of the calibration interval, and one calibration interval is obtained; when there is still a sample sampling value after the second sampling value in the sample sequence, the reference sampling value is updated to the second sampling value, the second sampling value is updated to the last sample sampling value in the sample sequence, and the step of determining the second fitting straight line is continued to be executed until there is no sample sampling value after the second sampling value in the sample sequence, and one or more calibration intervals that are connected at the head and tail are obtained;
[0016] When there is an error greater than the preset error in all the second relative errors, the second sampling value is updated to the sample sampling value before the second sampling value in the sample sequence, and the step of determining the second fitting straight line is continued to be executed.
[0017] In a possible design, for each third sampling value, the second relative error of the sample residual current value corresponding to the third sampling value relative to the second fitting straight line is calculated according to the second fitting straight line, the third sampling value and the sample residual current value corresponding to the third sampling value, including:
[0018] According to the third sampling value, the sample residual current value corresponding to the third sampling value, the reference sampling value and the sample residual current value corresponding to the reference sampling value, the slope corresponding to the third sampling value is calculated.
[0019] According to the slope of the second fitting straight line, the slope corresponding to the third sampling value, the third sampling value, the reference sampling value and the sample residual current value corresponding to the third sampling value, the second relative error of the sample residual current value corresponding to the third sampling value relative to the second fitting straight line is determined through Formula I.
[0020] In the formula, Formula I is:
[0021] ;
[0022] In the formula, Formula I is: the second relative error of the sample residual current value corresponding to the third sampling value relative to the second fitting straight line, the sample residual current value corresponding to the third sampling value, the reference sampling value, the third sampling value, the slope of the second fitting straight line, the slope corresponding to the third sampling value.
[0023] In a possible design, for each third sampling value, the second relative error of the sample residual current value corresponding to the third sampling value relative to the second fitting straight line is calculated according to the second fitting straight line, the third sampling value and the sample residual current value corresponding to the third sampling value, including:
[0024] According to the straight line equation of the second fitting straight line and the third sampling value, the calibrated residual current value corresponding to the third sampling value is calculated.
[0025] The absolute value of the difference between the sample residual current value corresponding to the third sampling value and the calibrated residual current value corresponding to the third sampling value is determined as the second relative error of the sample residual current value corresponding to the third sampling value relative to the second fitting straight line.
[0026] In a possible design, the calibration parameter includes a sample residual current value corresponding to a left end point of the calibration interval and a slope of the first fitting straight line, the slope of the first fitting straight line is determined according to the left end point and the right end point of the calibration interval and the sample residual current value corresponding to the left end point and the sample residual current value corresponding to the right end point, and the real-time calibration of the working residual current generated in the working stage includes the following steps.
[0027] Obtaining a sample value of the working residual current;
[0028] Determining a target interval in which the sample value of the working residual current is located according to the sample value of the working residual current and the one or more calibration intervals;
[0029] Determining a calibration residual current value corresponding to the working residual current by Formula Two according to the left end point of the target interval, the sample residual current value corresponding to the left end point of the target interval, the slope of the first fitting straight line corresponding to the target interval, and the sample value of the working residual current.
[0030] In the formula, Formula Two is as follows.
[0031] ;
[0032] In the formula, Formula Two is as follows. is the calibration residual current value corresponding to the working residual current, is the slope of the first fitting straight line corresponding to the target interval, is the sample value of the working residual current, is determined according to the left end point of the target interval, is the sample residual current value corresponding to the left end point of the target interval.
[0033] In a possible design, the calibration parameter includes a sample residual current value corresponding to a left end point of the calibration interval and a slope of the first fitting straight line, the slope of the first fitting straight line is determined according to the left end point and the right end point of the calibration interval and the sample residual current value corresponding to the left end point and the sample residual current value corresponding to the right end point, and the real-time calibration of the working residual current generated in the working stage includes the following steps.
[0034] Obtaining a sample value of the working residual current;
[0035] Determining a target interval in which the sample value of the working residual current is located according to the sample value of the working residual current and the one or more calibration intervals;
[0036] Calculating a calibration residual current value corresponding to the working residual current according to the linear equation of the first fitting straight line corresponding to the target interval and the sample value of the working residual current.
[0037] In a possible design, a plurality of sample sampling values are obtained, including:
[0038] Different levels of sample residual currents are applied to a preset number of circuit breakers of the same model respectively to obtain a plurality of groups of experimental sampling values, each group of experimental sampling values corresponding to a level of sample residual current value, and each group of experimental sampling values including sampling values corresponding to the preset number of circuit breakers of the same model respectively.
[0039] For each group of experimental sampling values, an average value of the experimental sampling values is calculated, and the average value is determined as a sample sampling value corresponding to a sample residual current value of a level corresponding to the experimental sampling values.
[0040] By the method provided in the first aspect, a plurality of sample sampling values are obtained, and the plurality of sample sampling values correspond to sample residual current values of different levels respectively, so that the full range of residual currents that can be detected by the circuit breaker can be covered, which helps to improve the reliability and accuracy of residual current calibration. One or more calibration intervals are determined according to the plurality of sample sampling values, for each calibration interval, and for each first sampling value, a first relative error of a sample residual current value corresponding to the first sampling value with respect to a first fitting straight line is less than or equal to a preset error. The first sampling value is a sample sampling value belonging to the calibration interval, and the first fitting straight line is used to indicate a linear relationship between the sampling value and the calibration residual current value in the calibration interval. Therefore, the plurality of sample sampling values can be divided into one or more calibration intervals, so as to divide the range of residual currents detected by the circuit breaker into continuous intervals, and to independently establish a calibration relationship in each interval, which helps to improve the calibration accuracy of the residual current. For each calibration interval, a calibration parameter corresponding to the calibration interval is determined, so as to utilize different calibration parameters to calibrate the working residual current in each calibration interval during the working phase of the circuit breaker, which helps to improve the accuracy of the residual current calibration. The working residual current generated in the working phase is calibrated in real time according to the one or more calibration intervals and the calibration parameters corresponding to the one or more calibration intervals. Based on this, the working residual current is calibrated by using the calibration interval and the calibration parameter, so as to ensure that the accuracy of the calibration residual current value meets the requirements regardless of which calibration interval the working residual current is in and which position in the calibration interval, thereby realizing calibration in the full range and improving the calibration accuracy of the residual current.
[0041] In the second aspect, the present application provides a calibration device, including a module for executing the calibration method of the residual current in the first aspect and any possible design of the first aspect.
[0042] In the third aspect, the present application provides an electronic device, including a first processor, which realizes the calibration method of the residual current in the first aspect and any possible design of the first aspect when executing a computer executable program or instruction in a memory.
[0043] In a fourth aspect, the present application provides an electronic device, comprising at least one memory and at least one second processor, wherein the memory stores a computer executable program or instructions, and the second processor executes the computer executable program or instructions to implement the method for calibrating the residual current as described in the first aspect and any possible design of the first aspect.
[0044] In a fifth aspect, the present application provides a computer readable storage medium, wherein the computer readable storage medium stores a computer executable program or instructions, and the computer executable program or instructions are executed by a processor to implement the method for calibrating the residual current as described in the first aspect and any possible design of the first aspect.
[0045] In a sixth aspect, the present application provides a computer program product, comprising: execution instructions stored in a readable storage medium, and at least one processor of an electronic device can read the execution instructions from the readable storage medium, and the at least one processor executes the execution instructions to enable the electronic device to implement the method for calibrating the residual current as described in the first aspect and any possible design of the first aspect.
[0046] The above description is only a summary of the technical solutions of the embodiments of the present application. In order to enable the technical means of the embodiments of the present application to be more clearly understood, and to be implemented according to the content of the description, and in order to enable the above and other purposes, characteristics and advantages of the embodiments of the present application to be more apparent, the following specific embodiments of the present application are provided. BRIEF DESCRIPTION OF DRAWINGS
[0047] Figure 1 A flowchart of a method for calibrating a residual current according to an embodiment of the present application.
[0048] Figure 2 A schematic diagram of a calibration interval according to an embodiment of the present application.
[0049] Figure 3 A flowchart of a method for determining one or more calibration intervals in a loop according to an embodiment of the present application.
[0050] Figure 4 A flowchart of a method for calculating a second relative error according to an embodiment of the present application.
[0051] Figure 5 A flowchart of a method for calculating a second relative error according to an embodiment of the present application.
[0052] Figure 6 A flowchart of a method for calculating a work residual current generated by a real-time calibration work phase according to an embodiment of the present application.
[0053] Figure 7A method flowchart for generating a working residual current in a real-time calibration working phase is provided for an embodiment of the present application.
[0054] Figure 8 A method flowchart for acquiring a plurality of sample sampling values is provided for an embodiment of the present application.
[0055] Figure 9 A structural schematic diagram of a calibration device is provided for an embodiment of the present application.
[0056] Figure 10 A structural schematic diagram of an electronic device is provided for an embodiment of the present application.
[0057] Figure 11 A structural schematic diagram of an electronic device is provided for an embodiment of the present application. DETAILED DESCRIPTION
[0058] In the present application, "at least one" means one or more, and "multiple" means two or more. The "and / or" describes the association relationship between the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the following three cases: A exists alone, A and B exist together, B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after it. "At least one of the following" or similar expressions means any combination of these items, including any combination of single item or multiple items. For example, at least one of a, b or c alone, which can represent: a alone, b alone, c alone, combination of a and b, combination of a and c, combination of b and c, or combination of a, b and c, where a, b and c can be single or multiple. In addition, the terms "first", "second" are only for descriptive purposes, and cannot be understood as indicating or implying relative importance.
[0059] The terms "center", "longitudinal", "transverse", "upper", "lower", "left", "right", "front", "back", and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, which is only for the convenience of describing the present application and simplifying the description, and cannot be understood as indicating or implying that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as limiting the present application.
[0060] The terms "connected", "connection" should be understood broadly, for example, the "connected" or "connection" of the circuit structure can be not only the physical connection, but also the electrical connection or signal connection, for example, it can be directly connected, that is, physically connected, or indirectly connected through at least one intermediate element, as long as the circuit is connected, it can also be the internal connection of two elements; signal connection can not only be signal connection through the circuit, but also signal connection through media medium, for example, radio wave. For those skilled in the art, the specific meaning of the above terms in this application can be understood according to the specific circumstances.
[0061] Exemplarily, the application provides a residual current calibration method, an electronic device and a storage medium. By traversing a plurality of sample sampling values corresponding to sample residual current values of different gear positions, one or more calibration intervals are determined, and the error of the sample residual current values corresponding to the sample sampling values in each calibration interval is made to conform to the preset accuracy requirement, so that the working residual current generated during the calibration work phase can be ensured to be located in which calibration interval or which position in the calibration interval, and the calibration residual current value meeting the accuracy requirement can be obtained, thereby improving the calibration accuracy of the residual current.
[0062] Among them, the residual current calibration method provided by the application is executed by an electronic device, or by a calibration device in the electronic device.
[0063] Among them, the electronic device can be a circuit breaker, a server, a desktop computer, a mobile phone, a tablet computer, a notebook computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, etc.
[0064] Among them, the calibration device can be realized by the combination of software and / or hardware, for example, the calibration device can be a microcontroller unit (MCU). Or, the calibration device can be an application (APP), a webpage or a public number, etc.
[0065] In order to simplify the description, the embodiments of the application are described by taking the calibration device as an example.
[0066] In the following, the embodiments of the application will be combined with Figures 1 to 8 The residual current calibration method provided by the application is described in detail.
[0067] Please refer to Figure 1 , Figure 1 The flow chart of a residual current calibration method provided by an embodiment of the application. As shown in Figure 1As shown, the method comprises:
[0068] S101, the calibration device obtains a plurality of sample sampling values.
[0069] The plurality of sample sampling values correspond to sample residual current values of different gears, respectively.
[0070] Specifically, the calibration device can pre-apply different gear sample residual currents to any one of the A-phase, B-phase or C-phase of the circuit breaker to obtain the sample sampling value corresponding to the sample residual current of each gear.
[0071] The sample residual currents of different gears need to cover the full range of residual currents that the circuit breaker can detect. For example, the circuit breaker can detect residual currents of 5 milliamps (mA) to 5000 mA, so the sample residual currents of different gears should cover 5 mA to 5000 mA. The sample residual current values of different gears can include: 5 mA, 20 mA, 500 mA, 1000 mA, 2000 mA, 3000 mA, 4000 mA and 5000 mA.
[0072] Next, for a sample residual current of a gear, the method for obtaining the sample sampling value corresponding to the sample residual current of the gear is introduced.
[0073] The calibration device applies a sample residual current to the circuit breaker. The calibration device collects the sample residual current at a preset sampling frequency to obtain a plurality of sampling voltage values. The calibration device calculates the sample sampling value corresponding to the sample residual current by the following formula three:
[0074] Formula three;
[0075] Wherein, the sample sampling value is the plurality of sampling voltage values, the number of the plurality of sampling voltage values, the value of N is [1, N].
[0076] The preset sampling frequency may be, for example, 1.6 kilohertz (KHz) or 3.2 KHz, and the number of the plurality of sampling voltage values may be 32 or 64. For example, with a power supply cycle of 50 Hz and a preset sampling frequency of 1.6 KHz, the calibration device can collect the sample residual current 32 times in one power supply cycle, thereby obtaining 32 sampling voltage values.
[0077] For the sample residual current of each gear, the calibration device calculates the corresponding sample sampling value by the above method, thereby obtaining a plurality of sample sampling values.
[0078] Based on this, the calibration device obtains sample sampling values corresponding to sample residual current values of multiple different gears respectively, ensures that the full range of residual currents that can be detected by the circuit breaker can be covered, and thus helps to improve the reliability and accuracy of residual current calibration.
[0079] In S102, the calibration device determines one or more calibration intervals that are connected at the head and tail according to the multiple sample sampling values.
[0080] Considering that the input / output of the residual current transformer in the circuit breaker is nonlinear, that is, the relationship between the sampling value and the residual current value is nonlinear, and thus the error of the multiple sample sampling values is also nonlinear, the calibration device can determine one or more calibration intervals that are connected at the head and tail based on the multiple sample sampling values, so that the first relative error of the sample residual current value corresponding to each sample sampling value in each calibration interval with respect to the first fitting straight line is less than or equal to the preset error, that is, for each calibration interval, for each first sampling value, the first relative error of the sample residual current value corresponding to the first sampling value with respect to the first fitting straight line is less than or equal to the preset error.
[0081] The first sampling value is a sample sampling value belonging to the calibration interval.
[0082] The first fitting straight line is used to indicate the linear relationship between the sampling value and the calibrated residual current value in the calibration interval. The calibrated residual current value refers to the residual current value obtained after the sampling value is calibrated. The calibration device can determine whether the error of the sample residual current value corresponding to the sample sampling value in the calibration interval satisfies the preset error based on the first fitting straight line. The calibration device can determine the first fitting straight line by using a linear fitting method such as the least square method, and the present application does not limit this.
[0083] The first relative error can be the ratio of the absolute value of the difference between the calibrated residual current obtained by substituting the first sampling value into the first fitting straight line and the sample residual current corresponding to the first sampling value to the sample residual current corresponding to the first sampling value.
[0084] The preset error can be determined according to the detection requirement of the residual current, for example, the preset error can be 3%, that is, the error of the calibrated residual current obtained after the residual current is calibrated is required to be less than or equal to 3%.
[0085] Specifically, the calibration device can iteratively form one or more candidate intervals from multiple sampled values, and perform linear fitting based on the sampled values within each candidate interval to obtain the fitting line corresponding to the candidate interval. Based on the fitting line, it determines whether the relative error of the sample residual current value corresponding to the sampled value within the candidate interval is less than or equal to a preset error. If the condition is met, the candidate interval is determined as a calibration interval. If the condition is not met, a new calibration interval is determined until one or more calibration intervals are formed, thus ensuring that the sampled values within each calibration interval satisfy the condition that the first relative error of the sample residual current value corresponding to the sampled value is less than or equal to the preset error relative to the first fitting line.
[0086] Below, in conjunction with Figure 2 This section introduces the calibration range.
[0087] like Figure 2 As shown, the horizontal axis represents the sampled values, the vertical axis represents the sampled residual current, the dashed line represents the first fitted line corresponding to each interval, point O is the origin, and each point represents a sampled value and the corresponding sampled residual current value. All points (I'1, I1) between point P1 (I'1, I1) and point O are considered as follows. x1 I x1 All satisfy: I x1 With I' x1 The absolute value of the difference between the calibrated residual current value obtained by substituting it into the first fitted straight line OP1, and I x1 The ratios are all less than or equal to the preset error. The same applies to points P2 (I'2, I2) and P3 (I'3, I3). The calibration device can determine three calibration intervals: (0, I'1], (I'1, I'2], and (I'2, I'3).
[0088] Based on this, the calibration device can divide multiple sampled values into one or more calibration intervals, thereby dividing the range of residual current detection of the circuit breaker into continuous intervals, and independently establishing a calibration relationship (i.e., the first fitted straight line) in each interval, thereby improving the calibration accuracy of the residual current.
[0089] S103. The calibration device determines the calibration parameters corresponding to each calibration interval.
[0090] For each calibration interval, the calibration parameters may include the linear equation of the first fitted line, or the calibration parameters may include the slope of the first fitted line and the sample residual current value corresponding to the left endpoint of the calibration interval.
[0091] After obtaining the calibration parameters, the calibration device can save the calibration intervals and the calibration parameters corresponding to the calibration intervals, so as to calibrate the residual current in the working phase using the calibration intervals and the calibration parameters.
[0092] Based on this, the calibration device can determine the calibration parameters corresponding to each calibration interval, so as to calibrate the working residual current in each calibration interval in the working phase of the circuit breaker, which helps to improve the accuracy of the residual current calibration.
[0093] S104, the calibration device calibrates the working residual current generated in the working phase in real time according to the one or more calibration intervals and the calibration parameters corresponding to the one or more calibration intervals respectively.
[0094] Based on the calibration parameters and the calibration intervals, after obtaining the sampling value corresponding to the working residual current in the working phase, the calibration device can find the calibration interval in which the sampling value is located, and calculate the calibration residual current value corresponding to the working residual current using the calibration parameters of the calibration interval, so as to adapt to the nonlinear characteristics of the sampling value-residual current value, realize adaptive calibration, and improve the calibration accuracy of the residual current.
[0095] The working residual current is the residual current generated in the power grid where the circuit breaker is located in the working phase. The calibration residual current value refers to the residual current value obtained after the sampling value is calibrated.
[0096] In addition, the calibration device can also send the one or more calibration intervals and the one or more calibration intervals to the circuit breaker, which is stored by the circuit breaker, and the circuit breaker can calibrate the working residual current by itself, which is not limited by the present application.
[0097] Based on this, the calibration device can calibrate the working residual current based on the calibration intervals and the calibration parameters, ensure that the accuracy of the calibration residual current value meets the requirements no matter which calibration interval the working residual current is in and which position in the calibration interval, and thus improve the calibration accuracy of the residual current.
[0098] It should be noted that the stage of S101 to S103 can be called a calibration phase, in which the circuit breaker is not formally working, and the calibration device is pre-calibrated to obtain the calibration intervals and the calibration parameters. The stage of S104 can be called a working phase, in which the circuit breaker formally starts working, and the calibration intervals and the calibration parameters can be used to calibrate the working residual current. Based on this, S101 to S103 can be set to a calibration mode, and S104 can be set to a working mode. When the working personnel adjusts the circuit breaker to the calibration mode, the calibration device starts to execute S101 to S103. After obtaining the calibration intervals and the calibration parameters, the calibration device switches to the working mode and starts to execute S104.
[0099] In the embodiment of the present application, the calibration device obtains a plurality of sample sampling values, and the plurality of sample sampling values correspond to sample residual current values of different ranges respectively, so as to ensure that the full range of residual current that can be detected by the circuit breaker is covered, and the reliability and accuracy of residual current calibration are improved; one or more calibration intervals are determined according to the plurality of sample sampling values; for each calibration interval, for each first sampling value, the first relative error of the sample residual current value corresponding to the first sampling value with respect to the first fitting straight line is less than or equal to a preset error; the first sampling value is a sample sampling value belonging to the calibration interval, and the first fitting straight line is used to indicate the linear relationship between the sampling value and the calibration residual current value in the calibration interval. The calibration device can divide the plurality of sample sampling values into one or more calibration intervals, so as to divide the range of residual current detected by the circuit breaker into continuous intervals, and independently establish a calibration relationship in each interval, thereby improving the calibration accuracy of the residual current; the calibration device determines the calibration parameter corresponding to each calibration interval, so as to calibrate the working residual current in each calibration interval by using different calibration parameters in the working stage of the circuit breaker, thereby improving the accuracy of the residual current calibration; the calibration device calibrates the working residual current generated in the working stage in real time according to the one or more calibration intervals and the calibration parameters corresponding to the one or more calibration intervals. Based on this, the calibration device can calibrate the working residual current based on the calibration interval and the calibration parameter, so as to ensure that the accuracy of the calibrated residual current value meets the requirements regardless of the calibration interval and the position in the calibration interval, thereby realizing calibration in the full range and improving the calibration accuracy of the residual current. Further, when residual current protection is performed, the accuracy of the protection can be improved, thereby ensuring the safety of electricity use.
[0100] In addition, when the accuracy requirement changes, the calibration device can modify the preset error according to the accuracy requirement, and after modifying the preset error, the calibration device can quickly obtain new calibration intervals and new calibration parameters again based on the embodiment of the present application, and calibrate the residual current based on the new calibration intervals and the new calibration parameters, thereby improving the calibration efficiency of the residual current.
[0101] Based on the above exemplary description, the following introduces a method for determining one or more calibration intervals in conjunction with Figure 3 .
[0102] Please refer to Figure 3 , Figure 3 for a method flowchart for determining one or more calibration intervals provided by an embodiment of the present application. As shown in Figure 3 , the method comprises the following steps.
[0103] S201, the calibration device arranges a plurality of sample sampling values in ascending order to obtain a sample sequence.
[0104] For example, the sample residual current values of different gears are 20 mA, 100 mA, 1000 mA, 2000 mA, 3000 mA, 4000 mA and 5000 mA respectively, and the corresponding sample sampling values are 57, 289, 2850, 5470, 7030, 7840 and 8350 respectively. The sample sequence obtained by arranging the sample sampling values in ascending order is [57, 289, 2850, 5470, 7030, 7840, 8350].
[0105] Based on this, the calibration device sorts the plurality of sample sampling values in ascending order to facilitate the division of the calibration interval and the fitting of the straight line.
[0106] S202, the calibration device determines a second fitting straight line according to the second sampling value, the sample residual current value corresponding to the second sampling value, the reference sampling value and the sample residual current value corresponding to the reference sampling value.
[0107] The initial second sampling value is the last sample sampling value in the sample sequence, the initial reference sampling value is 0, and the sample residual current value corresponding to the initial reference sampling value is 0.
[0108] The interval formed by the second sampling value and the reference sampling value can be referred to as a pending interval, and the second fitting straight line is used to indicate the linear relationship between the sampling value and the calibration residual current value in the pending interval.
[0109] The calibration device can establish a rectangular coordinate system with the horizontal axis as the sample sampling value and the vertical axis as the sample residual current. Then the second sampling value and the sample residual current value corresponding to the second sampling value correspond to a point in the rectangular coordinate system, and the reference sampling value and the sample residual current value corresponding to the reference sampling value correspond to another point. The calibration device can determine the straight line passing through the two points as the second fitting straight line.
[0110] For example, the sample sequence is [57, 289, 2850, 5470, 7030, 7840, 8350], then the initial second sampling value is 8350, the sample residual current value corresponding to the second sampling value is 5000 mA, the initial reference sampling value is 0, and the sample residual current value corresponding to the initial reference sampling value is 0. The calibration device can determine the second fitting straight line based on (8350, 5000) and (0, 0).
[0111] Based on this, the calibration device determines the second fitting straight line to determine whether the sample sampling value in the pending interval meets the preset error, thereby ensuring the accuracy of the calibration.
[0112] S203, the calibration device calculates, for each third sampling value, a second relative error of the sample residual current value corresponding to the third sampling value with respect to the second fitting straight line according to the second fitting straight line, the third sampling value and the sample residual current value corresponding to the third sampling value.
[0113] The third sampling value is all sample sampling values between the second sampling value and the reference sampling value in the sample sequence.
[0114] In some examples, the calibration device can substitute the third sampling value into the linear equation of the second fitting straight line to obtain a calibrated residual current corresponding to the third sampling value, and determine the ratio of the absolute value of the difference between the calibrated residual current corresponding to the third sampling value and the sample residual current value corresponding to the third sampling value to the sample residual current value corresponding to the third sampling value as the second relative error of the sample residual current value corresponding to the third sampling value with respect to the second fitting straight line.
[0115] In other examples, the calibration device can calculate the second relative error according to the distance from a point to a straight line. Specifically, for each third sampling value, the calibration device calculates the distance from the point formed by the third sampling value and the sample residual current corresponding to the third sampling value in the rectangular coordinate system to the second fitting straight line, and determines the ratio of the distance to the sample residual current value corresponding to the third sampling value as the second relative error of the sample residual current value corresponding to the third sampling value with respect to the second fitting straight line.
[0116] For example, the sample sequence is [57, 289, 2850, 5470, 7030, 7840, 8350], and the initial second sampling value is 8350. The third sampling values include 57, 289, 2850, 5470, 7030 and 7840. The sample residual current values corresponding to the third sampling values include 20 mA, 100 mA, 1000 mA, 2000 mA, 3000 mA and 4000 mA. The calibration device calculates the second relative error of the sample residual current value corresponding to each of the six third sampling values with respect to the second fitting straight line.
[0117] Based on this, the calibration device can verify the fitting accuracy in the pending interval based on the second fitting straight line, so as to determine whether the accuracy in the pending interval meets the requirements.
[0118] S204, the calibration device determines whether all the second relative errors are less than or equal to the preset error.
[0119] When all the second relative errors are less than or equal to the preset error, the calibration device performs S205; when there is an error greater than the preset error among all the second relative errors, the calibration device performs S208.
[0120] All the second relative errors are less than or equal to the preset error, that is, if the to-be-determined interval is taken as the calibration interval, the errors of the calibrated residual currents all meet the accuracy requirement, and then the calibration device can determine the to-be-determined interval as the calibration interval.
[0121] All the second relative errors are greater than the preset error, that is, if the to-be-determined interval is taken as the calibration interval, the errors of the calibrated residual currents will have a part that does not meet the accuracy requirement, and then the calibration device can need to determine the calibration interval again.
[0122] Based on the above example, assuming that the second relative errors are 1%, 3%, 3%, 1%, 3% and 3% respectively, and the preset error is 3%, the calibration device can determine that all the second relative errors are less than or equal to the preset error, and the calibration device executes S205.
[0123] Based on the above example, assuming that the second relative errors are 1%, 3%, 4%, 3%, 3% and 6% respectively, and the preset error is 3%, the calibration device can determine that all the second relative errors are greater than the preset error, and the calibration device executes S208.
[0124] Therefore, the calibration device determines the relationship between all the second relative errors in the to-be-determined interval and the preset error, so as to ensure that the relative errors in the finally determined calibration interval meet the accuracy requirement.
[0125] S205, the calibration device determines the second sampling value as the right end point of the calibration interval, and determines the reference sampling value as the left end point of the calibration interval, to obtain a calibration interval.
[0126] Based on the above example, the sample sequence is [57, 289, 2850, 5470, 7030, 7840, 8350], the second sampling value is 8350, and the reference sampling value is 0, so the calibration interval is (0, 8350].
[0127] S206, the calibration device determines whether there is still a sample sampling value after the second sampling value in the sample sequence.
[0128] When there is still a sample sampling value after the second sampling value in the sample sequence, the calibration device executes S207; when there is no sample sampling value after the second sampling value in the sample sequence, the calibration device executes S209.
[0129] When there is still a sample sampling value after the second sampling value in the sample sequence, the calibration device needs to determine other calibration intervals again to ensure that the final calibration interval can cover the full range of residual currents that can be detected by the circuit breaker.
[0130] When there is no sample sampling value after the second sampling value in the sample sequence, the calibration device has determined all the calibration intervals, and thus one or more calibration intervals can be obtained.
[0131] S207, the calibration device updates the reference sampling value to the second sampling value, updates the second sampling value to the last sample sampling value in the sample sequence, and continues to perform the step S202 of determining the second fitting straight line.
[0132] When there is a sample sampling value after the second sampling value in the sample sequence, the calibration device updates the reference sampling value and the second sampling value, removes the sample sampling value for which the calibration interval has been determined, and continues to determine the calibration interval for the remaining sample sampling value.
[0133] Based on the above example, the sample sequence is [57, 289, 2850, 5470, 7030, 7840, 8350], and if the last determined calibration interval is (0, 5470], the calibration device updates the reference sampling value from 0 to 5470, updates the second sampling value 5470 to 8350, and the calibration device determines the calibration interval for [5470, 7030, 7840, 8350] again.
[0134] Therefore, the calibration device can ensure that all calibration intervals are determined.
[0135] S208, the calibration device updates the second sampling value to the sample sampling value before the second sampling value in the sample sequence, and continues to perform the step S202 of determining the second fitting straight line.
[0136] When there is an error greater than the preset error in all the second relative errors, the calibration device updates the second sampling value, tightens the right end point of the pending interval, and thus narrows the range of the pending interval, so as to find a calibration interval that is smaller but meets the accuracy requirement.
[0137] Based on the above example, the sample sequence is [57, 289, 2850, 5470, 7030, 7840, 8350], the second sampling value is 8350, the calibration device updates the second sampling value to 7840, and the calibration device determines the calibration interval for [57, 289, 2850, 5470, 7030, 7840] again.
[0138] Therefore, the calibration device can ensure that the sample sampling values in each calibration interval meet the accuracy requirement.
[0139] S209, the calibration device obtains one or more calibration intervals that are connected in a loop.
[0140] Next, a specific example is given to illustrate the method of determining one or more calibration intervals.
[0141] For example, the preset error is 3%, the sample residual current values of different gears are 20 mA, 100 mA, 1000 mA, 2000 mA, 3000 mA, 4000 mA and 5000 mA, and the corresponding multiple sample values are 57, 289, 2850, 5470, 7030, 7840 and 8350, respectively. The sample sequence obtained by arranging the sample values in ascending order is [57, 289, 2850, 5470, 7030, 7840, 8350].
[0142] The initial second sample value is 8350, the initial reference sample value is 0, the sample residual current value corresponding to the initial reference sample value is 0, the third sample values are 57, 289, 2850, 5470, 7030 and 7840, and the calibration device determines that the second relative errors corresponding to the third sample values are 1%, 3%, 4%, 3%, 3% and 6%, respectively.
[0143] Since there is a second relative error greater than the preset error, the calibration device updates the second sample value to 7840, and the third sample values are 57, 289, 2850, 5470 and 7030. The calibration device determines that the second relative errors corresponding to the third sample values are 1%, 4%, 4%, 3% and 1%, respectively.
[0144] Since there is a second relative error greater than the preset error, the calibration device updates the second sample value to 7030, and the third sample values are 57, 289, 2850 and 5470. The calibration device determines that the second relative errors corresponding to the third sample values are 1%, 4%, 3% and 1%, respectively.
[0145] Since there is a second relative error greater than the preset error, the calibration device updates the second sample value to 5470, and the third sample values are 57, 289 and 2850. The calibration device determines that the second relative errors corresponding to the third sample values are 1%, 4% and 1%, respectively.
[0146] Since there is a second relative error greater than the preset error, the calibration device updates the second sample value to 2850, and the third sample values are 57 and 289. The calibration device determines that the second relative errors corresponding to the third sample values are 1% and 2%, respectively.
[0147] Since the second relative errors are all less than or equal to 3%, the calibration device determines that the calibration interval is (0, 2850].
[0148] There are still sample values after the second sample value, the calibration device updates the reference sample value to 2850 and the second sample value to 8350. The third sample values are 5470, 7030 and 7840, and the calibration device determines that the second relative errors corresponding to the third sample values are 1%, 2% and 3%, respectively.
[0149] Since the second relative errors are all less than or equal to 3%, the calibration device determines that the calibration interval is (2850, 8350].
[0150] Since the second relative errors are all less than or equal to 3%, the calibration device determines that the calibration interval is (2850, 8350].
[0151] Based on the above exemplary description, the calibration device can calculate the second relative error for each third sampling value in various ways. The following describes a method for calculating the second relative error in combination with Figure 4 and Figure 5 .
[0152] Please refer to Figure 4 , Figure 4 for a flowchart of a method for calculating the second relative error provided by an embodiment of the present application. As shown in Figure 4 , the method comprises the following steps.
[0153] S301, the calibration device calculates the slope corresponding to the third sampling value according to the third sampling value, the sample residual current value corresponding to the third sampling value, the reference sampling value and the sample residual current value corresponding to the reference sampling value.
[0154] The calibration device can determine the third sampling value and the sample residual current value corresponding to the third sampling value as a point in the rectangular coordinate system, determine the reference sampling value and the sample residual current value corresponding to the reference sampling value as another point in the rectangular coordinate system, and calculate the slope corresponding to the third sampling value based on the slope formula between the two points.
[0155] S302, the calibration device determines the second relative error of the sample residual current value corresponding to the third sampling value with respect to the second fitting straight line according to the slope of the second fitting straight line, the slope corresponding to the third sampling value, the third sampling value, the reference sampling value and the sample residual current value corresponding to the third sampling value through Formula 1.
[0156] Formula 1;
[0157] wherein, is the second relative error of the sample residual current value corresponding to the third sampling value with respect to the second fitting straight line, is the sample residual current value corresponding to the third sampling value, is the reference sampling value, is the third sampling value, is the slope of the second fitting straight line, is the slope corresponding to the third sampling value.
[0158] Please refer to Figure 5 , Figure 5A method flowchart for calculating the second relative error is provided for an embodiment of the present application. As shown in Figure 5 The method comprises the following steps:
[0159] S401, the calibration device calculates a calibration residual current value corresponding to the third sampling value according to the straight line equation of the second fitting straight line and the third sampling value.
[0160] The calibration device substitutes the third sampling value as the abscissa into the straight line equation of the second fitting straight line, thereby obtaining the calibration residual current value corresponding to the third sampling value.
[0161] S402, the calibration device determines the ratio of the absolute value of the difference between the sample residual current value corresponding to the third sampling value and the corresponding calibration residual current value to the sample residual current value corresponding to the third sampling value as the second relative error of the sample residual current value corresponding to the third sampling value with respect to the second fitting straight line.
[0162] For example, the sample residual current value corresponding to the third sampling value is 20 mA, the calibration residual current value corresponding to the third sampling value is 19 mA, and the absolute value of the difference is 1 mA, and the ratio is 1 mA / 20 mA=5%.
[0163] Based on the above exemplary description, the calibration parameters include the sample residual current value corresponding to the left endpoint of the calibration interval and the slope of the first fitting straight line.
[0164] The slope of the first fitting straight line is determined according to the left and right endpoints of the calibration interval and the sample residual current values corresponding to the left and right endpoints.
[0165] The calibration device can determine the left endpoint of the calibration interval and the sample residual current value corresponding to the left endpoint as one point in the rectangular coordinate system, determine the right endpoint of the calibration interval and the sample residual current value corresponding to the right endpoint as another point in the rectangular coordinate system, and calculate the slope of the first fitting straight line based on the slope formula between the two points.
[0166] Based on this, the calibration device can calibrate the working residual current generated in the working phase in real time according to the method as shown in Figure 6
[0167] Please refer to Figure 6 , Figure 6 A method flowchart for calibrating the working residual current generated in the working phase in real time is provided for an embodiment of the present application. As shown in Figure 6 The method comprises the following steps:
[0168] S501, the calibration device obtains the sampling value of the working residual current.
[0169] The working residual current is a residual current generated in a power grid where the circuit breaker is located in a working phase, and the working residual current flows through the circuit breaker. The method for obtaining the sample value of the working residual current by the calibration device can refer to the method for obtaining the sample value of the sample described in S101, which will not be described here.
[0170] S502, the calibration device determines a target interval in which the sample value of the working residual current is located according to the sample value of the working residual current and one or more calibration intervals.
[0171] For example, the calibration intervals are (0, 2850] and (2850, 8350], and the sample value of the working residual current is 3000, so the target interval is (2850, 8350].
[0172] S503, the calibration device determines the calibration residual current value corresponding to the working residual current according to the left end point of the target interval, the sample residual current value corresponding to the left end point of the target interval, the slope of the first fitting straight line corresponding to the target interval, and the sample value of the working residual current through Formula Two.
[0173] Formula Two;
[0174] wherein, is the calibration residual current value corresponding to the working residual current, is the slope of the first fitting straight line corresponding to the target interval, is the sample value of the working residual current, is the left end point of the target interval, is the sample residual current value corresponding to the left end point of the target interval.
[0175] After determining the target interval, the calibration device can calibrate the working residual current by using the calibration parameters corresponding to the target interval, so as to obtain the calibration residual current value corresponding to the working residual current.
[0176] Based on the above exemplary description, the calibration parameters include the linear equation of the first fitting straight line corresponding to the calibration interval.
[0177] wherein, the linear equation of the first fitting straight line is determined according to the left end point and the right end point of the calibration interval, and the sample residual current value corresponding to the left end point and the sample residual current value corresponding to the right end point.
[0178] The calibration device can determine the left end point of the calibration interval and the sample residual current value corresponding to the left end point as a point in the rectangular coordinate system, determine the right end point of the calibration interval and the sample residual current value corresponding to the right end point as another point in the rectangular coordinate system, and calculate the linear equation of the first fitting straight line based on the linear equation formula.
[0179] Based on this, the calibration device can calibrate the working residual current generated in the working phase in real time according to the method shown in the following Figure 7 .
[0180] Please refer to Figure 7 , Figure 7 for a method flowchart provided by an embodiment of the present application for calibrating the working residual current generated in the working phase in real time. As shown in the following Figure 7 , the method comprises the following steps.
[0181] S601, the calibration device acquires a sample value of the working residual current.
[0182] S602, the calibration device determines a target interval in which the sample value of the working residual current is located according to the sample value of the working residual current and one or more calibration intervals.
[0183] S603, the calibration device calculates a calibration residual current value corresponding to the working residual current according to a straight line equation of a first fitting straight line corresponding to the target interval and the sample value of the working residual current.
[0184] The calibration device substitutes the sample value of the working residual current into the straight line equation of the first fitting straight line corresponding to the target interval, thereby obtaining the calibration residual current value corresponding to the working residual current.
[0185] Based on this, no matter which calibration interval or position of the calibration interval the sample value of the working residual current is located in, the calibration device can obtain a calibration residual current value meeting the accuracy requirement, thereby improving the accuracy of residual current calibration.
[0186] Based on the above exemplary description, the calibration device can acquire a plurality of sample values by the method shown in the following Figure 8 .
[0187] Please refer to Figure 8 , Figure 8 for a method flowchart provided by an embodiment of the present application for acquiring a plurality of sample values. As shown in the following Figure 8 , the method comprises the following steps.
[0188] S701, the calibration device applies sample residual currents of different gears to a preset number of circuit breakers of the same model respectively, and obtains a plurality of groups of experimental sample values.
[0189] Each group of experimental sample values corresponds to a sample residual current value of a gear, and each group of experimental sample values includes sample values corresponding to the preset number of circuit breakers of the same model respectively.
[0190] S702, the calibration device calculates an average value of the experimental sample values for each group of experimental sample values, and determines the average value as a sample value corresponding to the sample residual current value of the gear corresponding to the experimental sample values.
[0191] For example, the preset number is 3, the calibration device respectively applies 20 mA, 100 mA, 1000 mA, 2000 mA, 3000 mA, 4000 mA and 5000 mA sample residual currents to three circuit breakers of the same model, and obtains first group of experimental sampling values 57, 57 and 55, second group of experimental sampling values 289, 289 and 300, third group of experimental sampling values 2850, 2854 and 2820, fourth group of experimental sampling values 5470, 5450 and 5488, fifth group of experimental sampling values 7030, 7000 and 7030, sixth group of experimental sampling values 7840, 7830 and 7832, and seventh group of experimental sampling values 8350, 8344 and 8330.
[0192] The calibration device calculates the average value of each group, and obtains the average values 56, 293, 2841, 5469, 7020, 7834 and 8341.
[0193] The calibration device can determine the plurality of sample sampling values as 56, 293, 2841, 5469, 7020, 7834 and 8341, and the corresponding sample residual current values as 20 mA, 100 mA, 1000 mA, 2000 mA, 3000 mA, 4000 mA and 5000 mA.
[0194] Based on this, the calibration device can take the calibration interval and the calibration parameter determined according to the plurality of sample sampling values as the calibration interval and the calibration parameter of the preset number of circuit breakers, thereby realizing batch calibration and improving the calibration efficiency.
[0195] Figure 9 A structure schematic diagram of a calibration device provided by an embodiment of the present application is shown in FIG. 1. Figure 9 As shown in the figure, the device includes an acquisition module 101, a determination module 102 and a calibration module 103.
[0196] The acquisition module 101 is configured to acquire a plurality of sample sampling values, and the plurality of sample sampling values respectively correspond to sample residual current values of different gears.
[0197] The determination module 102 is configured to determine one or more calibration intervals connected at the head and tail according to the plurality of sample sampling values; for each calibration interval, for each first sampling value, a first relative error of a sample residual current value corresponding to the first sampling value with respect to a first fitting straight line is less than or equal to a preset error; the first sampling value is a sample sampling value belonging to the calibration interval, and the first fitting straight line is used to indicate a linear relationship between the sampling value and the calibration residual current value in the calibration interval; and for each calibration interval, a calibration parameter corresponding to the calibration interval is determined.
[0198] The calibration module 103 is configured to calibrate the working residual current generated in the working phase in real time according to one or more calibration intervals and calibration parameters corresponding to the one or more calibration intervals respectively.
[0199] It should be noted that the calibration device of the embodiments of the present application can be used to implement the technical solutions of the method embodiments described above, and the implementation principles and technical effects are similar, which will not be described here.
[0200] In some examples, the determining module 102 is specifically configured to:
[0201] arranging the plurality of sample sampling values in ascending order to obtain a sample sequence;
[0202] determining a second fitting straight line according to the second sampling value, the sample residual current value corresponding to the second sampling value, the reference sampling value, and the sample residual current value corresponding to the reference sampling value, wherein the initial second sampling value is the last sample sampling value in the sample sequence, the initial reference sampling value is 0, and the sample residual current value corresponding to the initial reference sampling value is 0;
[0203] for each third sampling value, calculating a second relative error of the sample residual current value corresponding to the third sampling value with respect to the second fitting straight line according to the second fitting straight line, the third sampling value, and the sample residual current value corresponding to the third sampling value, wherein the third sampling value is all sample sampling values between the second sampling value and the reference sampling value in the sample sequence;
[0204] when all the second relative errors are less than or equal to a preset error, determining the second sampling value as a right endpoint of a calibration interval and determining the reference sampling value as a left endpoint of the calibration interval to obtain one calibration interval; when there is still a sample sampling value after the second sampling value in the sample sequence, updating the reference sampling value to the second sampling value and updating the second sampling value to the last sample sampling value in the sample sequence, and continuing to perform the step of determining the second fitting straight line until there is no sample sampling value after the second sampling value in the sample sequence, to obtain one or more calibration intervals connected at both ends;
[0205] when there is an error greater than the preset error in all the second relative errors, updating the second sampling value to a sample sampling value before the second sampling value in the sample sequence, and continuing to perform the step of determining the second fitting straight line.
[0206] In some examples, the determining module 102 is specifically configured to:
[0207] calculating the slope corresponding to the third sampling value according to the third sampling value, the sample residual current value corresponding to the third sampling value, the reference sampling value, and the sample residual current value corresponding to the reference sampling value;
[0208] determine the second relative error of the third sampling value corresponding sample residual current value relative to the second fitting straight line according to the slope of the second fitting straight line, the slope corresponding to the third sampling value, the third sampling value, the reference sampling value and the sample residual current value corresponding to the third sampling value through formula one.
[0209] The formula one is:
[0210]
[0211] The formula one is: The second relative error of the third sampling value corresponding sample residual current value relative to the second fitting straight line, The sample residual current value corresponding to the third sampling value, The reference sampling value, The third sampling value, The slope of the second fitting straight line, The slope corresponding to the third sampling value.
[0212] In some examples, the determining module 102 is specifically configured to:
[0213] According to the straight line equation of the second fitting straight line and the third sampling value, calculate the calibration residual current value corresponding to the third sampling value;
[0214] The absolute value of the difference between the sample residual current value corresponding to the third sampling value and the corresponding calibration residual current value is determined as the second relative error of the sample residual current value corresponding to the third sampling value relative to the second fitting straight line.
[0215] In some examples, the calibration parameters include the sample residual current value corresponding to the left end point of the calibration interval and the slope of the first fitting straight line, and the slope of the first fitting straight line is determined according to the left end point and the right end point of the calibration interval, and the sample residual current value corresponding to the left end point and the sample residual current value corresponding to the right end point, and the calibration module 103 is specifically configured to:
[0216] Obtain the sampling value of the working residual current;
[0217] According to the sampling value of the working residual current and one or more calibration intervals, determine the target interval in which the sampling value of the working residual current is located;
[0218] According to the left end point of the target interval, the sample residual current value corresponding to the left end point of the target interval, the slope of the first fitting straight line corresponding to the target interval and the sampling value of the working residual current, determine the calibration residual current value corresponding to the working residual current through formula two.
[0219] The formula two is:
[0220] ;
[0221] wherein, is a calibration residual current value corresponding to the working residual current, is a slope of the first fitting straight line corresponding to the target interval, is a sampling value of the working residual current, is a left end point according to the target interval, is a sample residual current value corresponding to the left end point of the target interval.
[0222] In some examples, the calibration parameter includes a straight line equation of the first fitting straight line corresponding to the calibration interval, the straight line equation of the first fitting straight line is determined according to the left end point and the right end point of the calibration interval, and the sample residual current value corresponding to the left end point and the sample residual current value corresponding to the right end point, and the calibration module 103 is specifically configured to:
[0223] obtain a sampling value of the working residual current;
[0224] determine a target interval in which the sampling value of the working residual current is located according to the sampling value of the working residual current and one or more calibration intervals;
[0225] calculate a calibration residual current value corresponding to the working residual current according to the straight line equation of the first fitting straight line corresponding to the target interval and the sampling value of the working residual current.
[0226] In some examples, the obtaining module 101 is specifically configured to:
[0227] apply sample residual currents of different gears to a preset number of circuit breakers of the same model respectively to obtain a plurality of groups of experimental sampling values, each group of experimental sampling values corresponding to a sample residual current value of a gear, and each group of experimental sampling values including sampling values corresponding to the preset number of circuit breakers of the same model respectively;
[0228] for each group of experimental sampling values, calculate an average value of the experimental sampling values, and determine the average value as a sample sampling value corresponding to the sample residual current value of the gear corresponding to the experimental sampling values.
[0229] Figure 10 FIG. 1 is a structural schematic diagram of an electronic device according to an embodiment of the present application. As shown in the figure, the electronic device can include a first processor 201, a memory 202, a communication interface 203, and a power supply 204. Figure 10 The first processor 201 executes a computer executable program or instruction in the memory, and implements the residual current calibration method shown in the figure. Figures 1 to 8 The first processor 201 executes a computer executable program or instruction in the memory, and implements the residual current calibration method shown in the figure.
[0230] The electronic device can be used to execute each step and / or process corresponding to the electronic device in the above method embodiment.
[0231] Figure 11 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application. Figure 11 As shown, the electronic device may include a second processor 301 and a memory 302. The memory 302 stores a computer program. When the second processor 301 executes the computer program, it implements the embodiments of this application. Figures 1 to 8 The calibration method for residual current is shown.
[0232] The electronic device can be used to perform the various steps and / or processes corresponding to the electronic devices in the above method embodiments.
[0233] The electronic device of this application can be used to execute the technical solutions of the method embodiments described above. Its implementation principle and technical effects are similar. The operations implemented by each module can be further referred to the relevant descriptions of the method embodiments, which will not be repeated here. The modules here can also be replaced by components or circuits.
[0234] This application can divide electronic devices into functional modules based on the above method examples. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated modules can be implemented in hardware or as software functional modules. It should be noted that the module division in the embodiments of this application is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0235] Another embodiment of this application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it can implement the embodiments of this application. Figures 1 to 8 The calibration method for residual current is shown.
[0236] This application also provides a program product including executable instructions stored in a computer-readable storage medium. At least one processor of an electronic device can read the executable instructions from the computer-readable storage medium, and the at least one processor executes the executable instructions to cause the electronic device to implement embodiments of this application. Figures 1 to 8 The calibration method for residual current is shown.
[0237] This application also provides a chip that is connected to a memory, or a chip that integrates a memory. When a software program stored in the memory is executed, it implements the embodiments of this application. Figures 1 to 8 The calibration method for residual current is shown.
[0238] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other manners. For example, the division of the above-described device embodiments is only a logical function division, and there can be another division manner for the actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different units, can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.
[0239] Those skilled in the art can understand that the combination of features of different embodiments means to be within the scope of the present application and form different embodiments, although some embodiments herein include certain features included in other embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.
[0240] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements for some technical features therein; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method of calibrating residual current, characterized by, The method comprises: obtaining a plurality of sample sampling values, the plurality of sample sampling values respectively corresponding to sample residual current values of different gears; determining one or more calibration intervals connected at both ends according to the plurality of sample sampling values; for each calibration interval, for each first sampling value, the first sampling value corresponding to the sample residual current value has a first relative error with respect to a first fitting straight line less than or equal to a preset error; the first sampling value is a sample sampling value belonging to the calibration interval, and the first fitting straight line is used to indicate a linear relationship between the sampling value and the calibration residual current value in the calibration interval; determining a calibration parameter corresponding to each calibration interval; calibrating a working residual current generated in a working phase in real time according to the one or more calibration intervals and the calibration parameters corresponding to the one or more calibration intervals respectively; wherein, the determining one or more calibration intervals connected at both ends according to the plurality of sample sampling values comprises: arranging the plurality of sample sampling values in ascending order to obtain a sample sequence; determining a second fitting straight line according to a second sampling value, a sample residual current value corresponding to the second sampling value, a reference sampling value and a sample residual current value corresponding to the reference sampling value, the initial second sampling value being the last sample sampling value in the sample sequence, the initial reference sampling value being 0, and the sample residual current value corresponding to the initial reference sampling value being 0; for each third sampling value, calculating a second relative error of the sample residual current value corresponding to the third sampling value with respect to the second fitting straight line according to the second fitting straight line, the third sampling value and the sample residual current value corresponding to the third sampling value; the third sampling value being all sample sampling values between the second sampling value and the reference sampling value in the sample sequence; when all the second relative errors are less than or equal to the preset error, determining the second sampling value as a right end point of a calibration interval and the reference sampling value as a left end point of the calibration interval to obtain one calibration interval; when there is a sample sampling value after the second sampling value in the sample sequence, updating the reference sampling value to the second sampling value and the second sampling value to the last sample sampling value in the sample sequence, and continuing to perform the step of determining the second fitting straight line until there is no sample sampling value after the second sampling value in the sample sequence, to obtain one or more calibration intervals connected at both ends; when there is an error greater than the preset error in all the second relative errors, updating the second sampling value to a sample sampling value before the second sampling value in the sample sequence, and continuing to perform the step of determining the second fitting straight line.
2. The method of claim 1, wherein, the calculating a second relative error of the sample residual current value corresponding to the third sampling value with respect to the second fitting straight line according to the second fitting straight line, the third sampling value and the sample residual current value corresponding to the third sampling value for each third sampling value comprises: According to the third sampling value, the sample residual current value corresponding to the third sampling value, the reference sampling value and the sample residual current value corresponding to the reference sampling value, the slope corresponding to the third sampling value is calculated; According to the slope of the second fitting straight line, the slope corresponding to the third sampling value, the third sampling value, the reference sampling value and the sample residual current value corresponding to the third sampling value, the second relative error of the sample residual current value corresponding to the third sampling value relative to the second fitting straight line is determined through formula one; Wherein, the formula one is: ; wherein, a second relative error of a sample residual current value corresponding to the third sampling value with respect to a second fitted straight line, a sample residual current value corresponding to the third sampling value, a reference sampling value, the third sampling value, a slope of the second fitted straight line, a slope corresponding to the third sampling value.
3. The method of claim 1, wherein, According to the second fitting straight line, the third sampling value and the sample residual current value corresponding to the third sampling value, the second relative error of the sample residual current value corresponding to the third sampling value relative to the second fitting straight line is calculated for each third sampling value, including: According to the straight line equation of the second fitting straight line and the third sampling value, the calibrated residual current value corresponding to the third sampling value is calculated; The absolute value of the difference between the sample residual current value corresponding to the third sampling value and the corresponding calibrated residual current value is determined as the ratio of the sample residual current value corresponding to the third sampling value, and the second relative error of the sample residual current value corresponding to the third sampling value relative to the second fitting straight line.
4. The method according to any one of claims 1 to 3, characterized in that, The calibration parameters include the sample residual current value corresponding to the left end point of the calibration interval and the slope of the first fitting straight line, and the slope of the first fitting straight line is determined according to the left end point and the right end point of the calibration interval, and the sample residual current value corresponding to the left end point and the sample residual current value corresponding to the right end point, and the working residual current generated in the working stage is calibrated in real time according to the one or more calibration intervals and the calibration parameters corresponding to the one or more calibration intervals, including: Obtaining the sampling value of the working residual current; According to the sampling value of the working residual current and the one or more calibration intervals, the target interval in which the sampling value of the working residual current is located is determined; According to the left end point of the target interval, the sample residual current value corresponding to the left end point of the target interval, the slope of the first fitting straight line corresponding to the target interval and the sampling value of the working residual current, the calibrated residual current value corresponding to the working residual current is determined through formula two; Wherein, the formula two is: ; wherein, is a calibration residual current value corresponding to the working residual current, is a slope of a first fitting straight line corresponding to the target interval, is a sample value of the working residual current, is a left end point of the target interval, is a sample residual current value corresponding to the left end point of the target interval.
5. The method according to any one of claims 1 to 3, characterized in that, The calibration parameters include the straight line equation of the first fitting straight line corresponding to the calibration interval, and the straight line equation of the first fitting straight line is determined according to the left end point and the right end point of the calibration interval, and the sample residual current value corresponding to the left end point and the sample residual current value corresponding to the right end point, and the working residual current generated in the working stage is calibrated in real time according to the one or more calibration intervals and the calibration parameters corresponding to the one or more calibration intervals, including: Obtaining the sampling value of the working residual current; According to the sampling value of the working residual current and the one or more calibration intervals, the target interval in which the sampling value of the working residual current is located is determined; According to the straight line equation of the first fitting straight line corresponding to the target interval and the sampling value of the working residual current, a calibrated residual current value corresponding to the working residual current is calculated.
6. The method according to any one of claims 1 to 3, characterized in that, The obtaining of the plurality of sample sampling values comprises: A sample residual current of different gears is applied to a preset number of circuit breakers of the same model respectively to obtain a plurality of groups of experimental sampling values, each group of the experimental sampling values corresponding to a sample residual current value of a gear, and each group of the experimental sampling values including sampling values respectively corresponding to the preset number of circuit breakers of the same model; For each group of the experimental sampling values, an average value of the experimental sampling values is calculated, and the average value is determined as a sample sampling value corresponding to a sample residual current value of a gear corresponding to the experimental sampling values.
7. An electronic device, comprising: Comprise: A first processor; The first processor is configured to execute computer executable programs or instructions in the memory, so that the electronic device executes the residual current calibration method of any one of claims 1-6.
8. An electronic device, comprising: Comprise: At least one memory and at least one second processor; The memory is configured to store computer executable programs or instructions; The second processor is configured to call the computer executable programs or instructions in the memory, so that the electronic device executes the residual current calibration method of any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer executable programs or instructions, and the computer executable programs or instructions are configured to execute the residual current calibration method of any one of claims 1-6.
Citation Information
Patent Citations
Current calibration method and system for power distribution network overhead line monitoring device
CN110907881A
Method for realizing high-precision measurement of residual current
CN111090000A