Automatic calibration method of electric quantity sensor

By establishing a configuration file library and automatically matching the target configuration file, the automatic calibration of the smart power sensor is achieved, and the problems of low manual calibration efficiency and poor reusability of the host computer software in the existing technology are solved, and calibration efficiency and accuracy are improved.

CN118962550APending Publication Date: 2024-11-15MIANYANG WEIBO ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411011722.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The existing smart power sensor calibration methods require manual setting of signal sources, which are inefficient. When there are many sensor calibration parameters or calibration points, you need to manually switch wiring multiple times, which is prone to errors and the reusability of the host computer software is low.

Method used

By establishing a configuration file library, including configuration files of different types of power sensors, automatically match the target configuration files, and using communication interfaces, wiring logic control and calibration process configuration information to achieve automated calibration, including initializing communication interfaces, automatic wiring and calibration signal sources. Store calibration instructions to facilitate maintenance and reuse of the host computer software.

Benefits of technology

It improves the calibration efficiency of smart power sensors, reduces human operation errors, supports flexible configuration of different models of sensors, realizes an automated calibration process, and improves measurement accuracy and reusability of the computer software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118962550A_ABST
    Figure CN118962550A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic calibration method for an electric quantity sensor, relates to the technical field of intelligent electric quantity sensor calibration, and is convenient to maintain by storing all sending instructions in a configuration file; the wiring control logic is stored and read in a configuration file, and different types of intelligent sensors can be configured with different wiring logics; the calibration process is stored and read in a configuration file, different types of intelligent sensors can be configured with different calibration schemes, and the calibration process comprises the control of connecting wires of a voltage stabilization source and a signal source with output signals; different intelligent sensors compile different calibration modes, calibration process configuration information is produced, and the purpose of upper computer software reuse is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of intelligent electrical quantity sensor calibration, and in particular to an automatic calibration method for an electrical quantity sensor. Background Art

[0002] The intelligent power sensor is an electric power measuring device with advanced sensor technology. It can measure and monitor various parameters in the power system and realize real-time data acquisition, transmission and processing. It can be applied to all aspects of the power system, including transmission, distribution, substation, etc. It is widely used in power monitoring, control, metering and protection.

[0003] In the production process of intelligent power sensors, in order to achieve the accuracy of output monitoring data, the calibration of intelligent power sensors is particularly important. Generally, the calibration of intelligent sensors is mainly through the matching upper computer software. After adding a specific input signal to the sensor, the original sampling data of the sensor is read, and the calibration data is calculated from the original data through a specific algorithm. Then the calibration data is written into the specified calibration data register. The sensor calculates the output data based on the data in the calibration data register, thereby achieving consistency between the input signal and the output data.

[0004] like Figure 1 As shown, a calibration method of an existing intelligent electrical quantity sensor is provided, and the disadvantages and shortcomings of the existing calibration method are as follows:

[0005] 1) The signal source needs to be set manually, which is inefficient;

[0006] 2) When there are many sensor calibration parameters or calibration points, it is necessary to manually switch the wiring multiple times, which is inefficient and prone to errors;

[0007] 3) Different host computer software needs to be designed for different sensors, and the reusability of the host computer software is low. Summary of the invention

[0008] The purpose of the present invention is to provide an automatic calibration method for a power sensor, which solves the problems existing in the prior art.

[0009] The present invention is achieved through the following technical solutions:

[0010] An automatic calibration method for a power sensor, comprising:

[0011] Establishing a configuration file library; the configuration file library contains configuration files corresponding to different types of power sensors;

[0012] Matching the electric quantity sensor to be calibrated in the configuration file library to obtain a target configuration file corresponding to the electric quantity sensor to be calibrated;

[0013] Based on the target configuration file, the electrical quantity sensor to be calibrated is automatically calibrated.

[0014] In a possible implementation, the configuration file includes communication interface configuration information, wiring logic control information, control instruction information, and calibration process configuration information;

[0015] The communication interface configuration information is used to configure the communication port number, communication baud rate and communication verification method between different components so that different components can communicate;

[0016] The wiring logic control information is used to configure the wiring mode corresponding to the electric quantity sensor so as to automatically convert the corresponding wiring mode through the relay;

[0017] The control instruction information is used to configure the operation instructions of different components to control the working status of different components;

[0018] The calibration process configuration information is used to configure calibration process parameters of the power sensor;

[0019] Among them, the component is used to characterize the device that performs automated calibration of the electrical quantity sensor.

[0020] In a possible implementation manner, matching the to-be-calibrated electrical quantity sensor in the configuration file library to obtain a target configuration file corresponding to the to-be-calibrated electrical quantity sensor includes:

[0021] The model of the electric quantity sensor to be calibrated is determined, and a target configuration file is determined in a configuration file library according to the model of the electric quantity sensor to be calibrated.

[0022] In a possible implementation, based on the target configuration file, automatically calibrating the electrical quantity sensor to be calibrated includes:

[0023] Parsing the target configuration file to determine target communication interface configuration information, target wiring logic control information, target control instruction information, and target calibration process configuration information;

[0024] Initializing the communication interface according to the target communication interface configuration information so that all components can communicate;

[0025] Based on the target wiring logic control information and the target calibration process configuration information, the wiring between the voltage-stabilized power supply, the program-controlled signal source, the wiring logic control board and the power sensor is completed by scheduling the command control wiring in the target control command information that meets the target wiring logic control information and the target calibration process configuration information;

[0026] On the basis of the completion of wiring, each component is controlled by the target calibration process configuration information to perform automatic calibration of the electrical quantity sensor to be calibrated.

[0027] In a possible implementation, initializing the communication interface according to the target communication interface configuration information includes:

[0028] According to the target communication interface configuration information, the program-controlled DC voltage-stabilized source communication interface, the program-controlled signal source communication interface, the wiring logic control board communication interface and the sensor communication interface are initialized.

[0029] In a possible implementation, based on the wiring logic control information, controlling the wiring by scheduling instructions in the control instruction information that satisfy the wiring logic control information includes:

[0030] Based on the target wiring logic control information, the instructions satisfying the target wiring logic control information are dispatched to the wiring logic control board, so that the wiring logic control board is connected to the power supply voltage;

[0031] Based on the target calibration process configuration information, the instructions satisfying the target calibration process configuration information in the scheduling target control instruction information are sent to the wiring logic control board, so that the wiring logic control board connects the line between the program-controlled signal source and the electric quantity sensor to be calibrated.

[0032] In a possible implementation, controlling various components to perform automatic calibration of the electrical quantity sensor to be calibrated using the target calibration process configuration information includes:

[0033] Based on the target calibration process configuration information, send an instruction to control the program-controlled signal source to output a calibration signal, and input the calibration signal to the signal input terminal of the electrical quantity sensor to be calibrated;

[0034] Based on the target calibration process configuration information, an instruction is sent to the power sensor to be calibrated to control the power sensor to be calibrated to perform automatic calibration.

[0035] In a possible implementation, controlling the to-be-calibrated electrical quantity sensor to be calibrated includes:

[0036] The power sensor to be calibrated is controlled to read the original sampling data, and obtain the average value of multiple original samplings to obtain calibration data, and then the calibration data is written into the sensor specific register.

[0037] In a possible implementation manner, after the automatic calibration of the electrical quantity sensor to be calibrated is performed, the method further includes:

[0038] The measurement accuracy of the electrical quantity sensor to be calibrated is verified, and when the measurement accuracy does not meet the accuracy requirement, the electrical quantity sensor to be calibrated is automatically calibrated again.

[0039] In a possible implementation, verifying the measurement accuracy of the electrical quantity sensor to be calibrated includes:

[0040] A test signal is transmitted to the electrical quantity sensor to be calibrated, and an output signal corresponding to the electrical quantity sensor to be calibrated is read, and the difference between the test signal and the output signal is determined to obtain the measurement accuracy.

[0041] The present invention provides an automatic calibration method for an electric quantity sensor, which is convenient for maintenance by storing all sending instructions in a configuration file; the wiring control logic is stored and read in the configuration file, and different types of intelligent sensors can be configured with different wiring logics; the calibration process is stored and read in the configuration file, and different types of intelligent sensors can be configured with different calibration schemes, and the calibration process includes wiring and output signal control of a voltage stabilizing source and a signal source; different intelligent sensors are compiled with different calibration methods, and calibration process configuration information is produced to achieve the purpose of reusing the upper computer software. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope. For those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without creative work. In the drawings:

[0043] Figure 1 The present invention provides a flowchart of the prior art.

[0044] Figure 2 This is a flow chart of an automatic calibration method for a power sensor provided in Embodiment 1 of the present invention.

[0045] Figure 3 This is a schematic diagram of the structure of the calibration system provided in Example 2 of the present invention.

[0046] Figure 4 This is a flow chart of the calibration method provided in Example 2 of the present invention. DETAILED DESCRIPTION

[0047] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.

[0048] Example 1

[0049] like Figure 2 As shown, an embodiment of the present invention provides an automatic calibration method for a power sensor, comprising:

[0050] S1. Establish a configuration file library; the configuration file library contains configuration files corresponding to different types of power sensors;

[0051] S2, matching the electric quantity sensor to be calibrated in the configuration file library to obtain a target configuration file corresponding to the electric quantity sensor to be calibrated;

[0052] S3. Based on the target configuration file, automatically calibrate the electrical quantity sensor to be calibrated.

[0053] The present invention provides an automatic calibration method for an electric quantity sensor, which is convenient for maintenance by storing all sending instructions in a configuration file; the wiring control logic is stored and read in the configuration file, and different types of intelligent sensors can be configured with different wiring logics; the calibration process is stored and read in the configuration file, and different types of intelligent sensors can be configured with different calibration schemes, and the calibration process includes wiring and output signal control of a voltage stabilizing source and a signal source; different intelligent sensors are compiled with different calibration methods, and calibration process configuration information is produced to achieve the purpose of reusing the upper computer software.

[0054] In a possible implementation, the configuration file includes communication interface configuration information, wiring logic control information, control instruction information, and calibration process configuration information;

[0055] The communication interface configuration information is used to configure the communication port number, communication baud rate and communication verification method between different components so that different components can communicate;

[0056] The wiring logic control information is used to configure the wiring mode corresponding to the electric quantity sensor so as to automatically convert the corresponding wiring mode through the relay;

[0057] The control instruction information is used to configure the operation instructions of different components to control the working status of different components;

[0058] The calibration process configuration information is used to configure calibration process parameters of the power sensor;

[0059] Among them, the component is used to characterize the device that performs automated calibration of the electrical quantity sensor.

[0060] In a possible implementation manner, matching the to-be-calibrated electrical quantity sensor in the configuration file library to obtain a target configuration file corresponding to the to-be-calibrated electrical quantity sensor includes:

[0061] The model of the electric quantity sensor to be calibrated is determined, and a target configuration file is determined in a configuration file library according to the model of the electric quantity sensor to be calibrated.

[0062] In a possible implementation, based on the target configuration file, automatically calibrating the electrical quantity sensor to be calibrated includes:

[0063] Parsing the target configuration file to determine target communication interface configuration information, target wiring logic control information, target control instruction information, and target calibration process configuration information;

[0064] Initializing the communication interface according to the target communication interface configuration information so that all components can communicate;

[0065] Based on the target wiring logic control information and the target calibration process configuration information, the wiring between the voltage-stabilized power supply, the program-controlled signal source, the wiring logic control board and the power sensor is completed by scheduling the command control wiring in the target control command information that meets the target wiring logic control information and the target calibration process configuration information;

[0066] On the basis of the completion of wiring, each component is controlled by the target calibration process configuration information to perform automatic calibration of the electrical quantity sensor to be calibrated.

[0067] In a possible implementation, initializing the communication interface according to the target communication interface configuration information includes:

[0068] According to the target communication interface configuration information, the program-controlled DC voltage-stabilized source communication interface, the program-controlled signal source communication interface, the wiring logic control board communication interface and the sensor communication interface are initialized.

[0069] In a possible implementation, based on the wiring logic control information, controlling the wiring by scheduling instructions in the control instruction information that satisfy the wiring logic control information includes:

[0070] Based on the target wiring logic control information, the instructions satisfying the target wiring logic control information are dispatched to the wiring logic control board, so that the wiring logic control board is connected to the power supply voltage;

[0071] Based on the target calibration process configuration information, the instructions satisfying the target calibration process configuration information in the scheduling target control instruction information are sent to the wiring logic control board, so that the wiring logic control board connects the line between the program-controlled signal source and the electric quantity sensor to be calibrated.

[0072] In a possible implementation, controlling various components to perform automatic calibration of the electrical quantity sensor to be calibrated using the target calibration process configuration information includes:

[0073] Based on the target calibration process configuration information, send an instruction to control the program-controlled signal source to output a calibration signal, and input the calibration signal to the signal input terminal of the electrical quantity sensor to be calibrated;

[0074] Based on the target calibration process configuration information, an instruction is sent to the power sensor to be calibrated to control the power sensor to be calibrated to perform automatic calibration.

[0075] In a possible implementation, controlling the to-be-calibrated electrical quantity sensor to be calibrated includes:

[0076] The power sensor to be calibrated is controlled to read the original sampling data, and obtain the average value of multiple original samplings to obtain calibration data, and then the calibration data is written into the sensor specific register.

[0077] Specific register: refers to the calibration data register.

[0078] There are three basic types of calibration algorithms:

[0079] The calibration data register is written based on the original sampled data multiple times and averaged.

[0080] Input a zero-point signal and write the zero-point calibration data register based on the original sampling data multiple times and averagely; input a full-scale signal and write the full-value calibration data register based on the original sampling data multiple times and averagely.

[0081] According to the corresponding relationship between the calibrated data and the signal, the corresponding output data (eg, apparent power = voltage × current) is calculated. Output data = f (calibrated data).

[0082] Data description:

[0083] 1. Sampling data: The original sampling data after the analog signal is converted by the sensor sampling chip.

[0084] 2. Calibration data: The host computer software calculates the raw data of the corresponding signal conversion multiple times and writes it into the data of the sensor calibration data register.

[0085] 3. Output range: The full-scale data corresponding to the sensor output parameters.

[0086] 4. Output data: The value corresponding to the sensor signal obtained through the Modbus protocol.

[0087] In a possible implementation manner, after the automatic calibration of the electrical quantity sensor to be calibrated is performed, the method further includes:

[0088] The measurement accuracy of the electrical quantity sensor to be calibrated is verified, and when the measurement accuracy does not meet the accuracy requirement, the electrical quantity sensor to be calibrated is automatically calibrated again.

[0089] In a possible implementation, verifying the measurement accuracy of the electrical quantity sensor to be calibrated includes:

[0090] A test signal is transmitted to the electrical quantity sensor to be calibrated, and an output signal corresponding to the electrical quantity sensor to be calibrated is read, and the difference between the test signal and the output signal is determined to obtain the measurement accuracy.

[0091] Example 2

[0092] This embodiment is a further example based on Embodiment 1, and the specific principles are as follows.

[0093] like Figure 3 As shown, a calibration hardware system is provided, which may include:

[0094] Computer: Run the host computer software, with at least 3 RS232 interfaces and 1 RS485 interface.

[0095] Programmable DC regulated voltage source: Provides power to the sensor and can be set and controlled via the RS232 interface.

[0096] Programmable signal source: Provides input signal for sensor calibration and can be set and controlled via RS232 interface.

[0097] Wiring logic control board: relay logic control, can be set and controlled through RS232 interface, the communication protocol uses Modbus protocol.

[0098] Sensor: The intelligent electrical quantity sensor to be calibrated can communicate through the RS485 interface. The communication protocol uses the Modbus protocol, and refers to the Modbus protocol to expand instructions such as reading raw data and writing calibration data. During the R&D stage, the universality of the calibration solution is considered, and the requirements for automated calibration are used as much as possible.

[0099] like Figure 4 As shown, based on the above calibration hardware system, a calibration method is provided, which may include:

[0100] A1. Obtain configuration information. The configuration information is saved in the configuration file, including communication interface configuration information, wiring logic control information, control instruction information, calibration process configuration information, etc.

[0101] The configuration file is customized by the host computer software through the interactive interface to avoid errors. Different models of smart power sensors correspond to different calibration scheme configurations. When used in production, automatic calibration is performed by selecting the smart power sensor model.

[0102] Communication interface configuration information, the main configuration content includes but is not limited to communication port number, communication baud rate, verification method and other information; wiring logic control information, which can be set according to the calibration of different smart sensor models and the wiring method during the calibration process, with local flexible applicability; control instruction information, since the signal source used may be of different models or even different manufacturers, the communication protocols are generally different, and the control instruction information is obtained from the control instruction configuration file of the software, which can be re-edited according to the actual communication protocol used; calibration process configuration information, different smart power sensors may have different signals and calibration processes that need to be calibrated, and the calibration process configuration file can be edited according to the different calibration signals or calibration processes, including but not limited to the signal source used for calibration, signal wiring path, waiting time required for signal source stabilization and other information.

[0103] A2. Initialize and open the communication interface, including the program-controlled DC voltage regulator communication interface, the program-controlled signal source communication interface, the wiring logic control board communication interface, and the sensor communication interface;

[0104] A3. Turn on the power supply voltage, send instructions to the wiring logic control board, connect the sensor power supply terminal and the voltage regulator, set the voltage value of the voltage regulator, and output the power supply voltage.

[0105] A4. Set / switch the signal source signal. According to the calibration process configuration information, send instructions to the wiring logic control board, connect the line between the signal source and the sensor input signal, send instructions to control the signal source output signal, and input the calibration signal to the signal input terminal of the sensor.

[0106] A5. Sensor calibration: The host computer software sends instructions to the sensor, reads the original sampling data of the sensor, and calculates the calibration data (mainly calculating the average value after multiple sampling), and then writes the calibration data into the sensor's specific register. The host computer software only converts the specific input signal into the original sampling output data of the smart power sensor and feeds it back to the sensor. The specific calibration process data is calculated by the internal program of the smart power sensor.

[0107] A6. Sensor inspection: The host computer software sends instructions to the sensor, reads the sensor's output data, and compares it with the input signal to determine whether the calibrated data meets the accuracy requirements.

[0108] A7. Determine the calibration conclusion and check whether the calibrated data meets the accuracy requirements.

[0109] A8. Determine whether all parameters have been calibrated. If not, repeat the calibration steps and calibrate multiple calibration points.

[0110] A9. Turn off and cut off the signal source, send instructions to the signal source, turn off the output signal, send instructions to the wiring logic control board, and cut off the wiring between the signal source and the sensor signal input terminal.

[0111] A10. Turn off and cut off the voltage regulator, send instructions to the voltage regulator, connect the power output, send instructions to the wiring logic control board, and cut off the connection between the voltage regulator and the power supply end of the sensor.

[0112] A11. Complete the calibration.

[0113] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. An automatic calibration method for a power sensor, It is characterized in that include: Establishing a configuration file library; the configuration file library contains configuration files corresponding to different types of power sensors; Matching the electric quantity sensor to be calibrated in the configuration file library to obtain a target configuration file corresponding to the electric quantity sensor to be calibrated; Based on the target configuration file, the electrical quantity sensor to be calibrated is automatically calibrated.

2. The automatic calibration method of the electric quantity sensor according to claim 1, It is characterized in that The configuration file includes communication interface configuration information, wiring logic control information, control instruction information and calibration process configuration information; The communication interface configuration information is used to configure the communication port number, communication baud rate and communication verification method between different components so that different components can communicate; The wiring logic control information is used to configure the wiring mode corresponding to the electric quantity sensor so as to automatically convert the corresponding wiring mode through the relay; The control instruction information is used to configure the operation instructions of different components to control the working status of different components; The calibration process configuration information is used to configure calibration process parameters of the power sensor; Among them, the component is used to characterize the device that performs automated calibration of the electrical quantity sensor.

3. The automatic calibration method of the electric quantity sensor according to claim 2, It is characterized in that The electric quantity sensor to be calibrated is matched in the configuration file library to obtain a target configuration file corresponding to the electric quantity sensor to be calibrated, including: The model of the electric quantity sensor to be calibrated is determined, and a target configuration file is determined in a configuration file library according to the model of the electric quantity sensor to be calibrated.

4. The automatic calibration method of the electric quantity sensor according to claim 3, It is characterized in that Based on the target configuration file, the electrical quantity sensor to be calibrated is automatically calibrated, including: Parsing the target configuration file to determine target communication interface configuration information, target wiring logic control information, target control instruction information, and target calibration process configuration information; Initializing the communication interface according to the target communication interface configuration information so that all components can communicate; Based on the target wiring logic control information and the target calibration process configuration information, the wiring between the voltage-stabilized power supply, the program-controlled signal source, the wiring logic control board and the power sensor is completed by scheduling the command control wiring in the target control command information that meets the target wiring logic control information and the target calibration process configuration information; On the basis of the completion of wiring, each component is controlled by the target calibration process configuration information to perform automatic calibration of the electrical quantity sensor to be calibrated.

5. The automatic calibration method of the electric quantity sensor according to claim 4, It is characterized in that Initializing the communication interface according to the target communication interface configuration information includes: According to the target communication interface configuration information, the program-controlled DC voltage-stabilized source communication interface, the program-controlled signal source communication interface, the wiring logic control board communication interface and the sensor communication interface are initialized.

6. The automatic calibration method of the electric quantity sensor according to claim 4, It is characterized in that Based on the wiring logic control information, the wiring is controlled by dispatching instructions in the control instruction information that meet the wiring logic control information, including: Based on the target wiring logic control information, the instructions satisfying the target wiring logic control information are dispatched to the wiring logic control board, so that the wiring logic control board is connected to the power supply voltage; Based on the target calibration process configuration information, the instructions satisfying the target calibration process configuration information in the scheduling target control instruction information are sent to the wiring logic control board, so that the wiring logic control board connects the line between the program-controlled signal source and the electric quantity sensor to be calibrated.

7. The automatic calibration method of the electric quantity sensor according to claim 4, It is characterized in that The target calibration process configuration information is used to control each component to perform automatic calibration of the electrical quantity sensor to be calibrated, including: Based on the target calibration process configuration information, send an instruction to control the program-controlled signal source to output a calibration signal, and input the calibration signal to the signal input terminal of the electrical quantity sensor to be calibrated; Based on the target calibration process configuration information, an instruction is sent to the power sensor to be calibrated to control the power sensor to be calibrated to perform automatic calibration.

8. The automatic calibration method of the electric quantity sensor according to claim 7, It is characterized in that Control the power sensor to be calibrated to perform calibration, including: The power sensor to be calibrated is controlled to read the original sampling data, and obtain the average value of multiple original samplings to obtain calibration data, and then the calibration data is written into the sensor specific register.

9. The automatic calibration method of the electric quantity sensor according to claim 1, It is characterized in that After the automatic calibration of the electrical quantity sensor to be calibrated, it also includes: The measurement accuracy of the electrical quantity sensor to be calibrated is verified, and when the measurement accuracy does not meet the accuracy requirement, the electrical quantity sensor to be calibrated is automatically calibrated again.

10. The automatic calibration method of the electric quantity sensor according to claim 9, It is characterized in that Verify the measurement accuracy of the electrical quantity sensor to be calibrated, including: A test signal is transmitted to the electrical quantity sensor to be calibrated, and an output signal corresponding to the electrical quantity sensor to be calibrated is read, and the difference between the test signal and the output signal is determined to obtain the measurement accuracy.