Concentrator temperature compensation method, device and storage medium based on normalization algorithm

Through the temperature compensation method based on the normalization algorithm, the problem of reduced measurement accuracy of the concentrator in high or low temperature environments is solved, and high-precision temperature compensation is achieved, with the error controlled below 0.1%, saving computing resources and reducing hardware costs.

CN118643261BActive Publication Date: 2024-10-22QINGDAO ITECHENE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411087190.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-10-22
Estimated Expiration
2044-08-09

AI Technical Summary

Technical Problem

When existing concentrators are exposed to high or low temperatures, the metering accuracy and performance of the equipment are affected. The existing temperature compensation technology is not very accurate and consumes large amounts of computing resources, making it difficult to achieve rapid implementation and high-precision temperature compensation.

Method used

The temperature compensation method based on the normalization algorithm is used to read and normalize the voltage correction register value, calculate the voltage error proportion value, perform accumulation processing to obtain the comprehensive error attribute value, calculate the gain value and write it into the correction register Perform temperature compensation to achieve accurate compensation of three-phase voltage, current, active and reactive power.

Benefits of technology

It achieves precise compensation at different temperatures, with the error controlled below 0.1%, saving computing resources, reducing hardware costs, and is suitable for concentrator equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118643261B_ABST
    Figure CN118643261B_ABST
Patent Text Reader

Abstract

The present invention provides a concentrator temperature compensation method, device and storage medium based on a normalization algorithm, which belongs to the field of intelligent power data processing technology. The concentrator device is placed in a high temperature or low temperature environment for a certain period of time, and powered on for a certain period of time, and the value of the phase voltage correction register of the concentrator device is read, normalized, and a temperature compensation algorithm is designed to obtain the temperature compensation of the phase voltage channel; it is also applicable to current channel compensation correction and active phase compensation correction, reactive phase compensation correction; different from the previous scheme using the same temperature compensation parameter, the present invention can perform point-to-point precise compensation for any phase of three-phase voltage, current, active and reactive power; after the above-mentioned temperature compensation, the error of the AC sampling analog quantity at different temperatures can be controlled below 0.1%, and at the same time, the temperature compensation calculation is no longer required when the device is running, saving computing resources, and there is no need to configure a hardware temperature compensation circuit, which can reduce hardware costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of intelligent power data processing, and in particular relates to a concentrator temperature compensation method, device and storage medium based on a normalization algorithm. Background Art

[0002] When the concentrator is in use, the ambient temperature may be too high or too low due to the different installation environments and regions. In this case, it will have an adverse effect on the metering accuracy and performance of the equipment. For example, in a high temperature environment, coupled with the energy consumption and heat generation of the equipment itself, the performance of the internal circuit components will be offset; in a low temperature environment, the internal components of the equipment are prone to freezing, which will also affect the metering accuracy of the equipment. However, according to the relevant standards, the concentrator is generally required to work in the range of -40℃~70℃, and it can have good error stability.

[0003] As the temperature changes, the high (low) temperature characteristics of the transformer and chip will cause deviations in the voltage, current and power collected by the concentrator device. The equipment has been calibrated at room temperature (25°C), but the established correspondence is no longer applicable to high (low) temperature conditions. In order to maintain a good error effect at high (low) temperature, temperature compensation is required for the normal temperature calibration parameters.

[0004] The temperature compensation technology currently available on the market can be divided into hardware compensation and software compensation. The principle of hardware compensation is to configure a bridge circuit with a variable resistance or a thermistor on the hardware circuit to match the sampling signal offset caused by temperature changes. Although the hardware compensation method has a fast response and high real-time performance, it is difficult to debug and has low accuracy. The principle of software compensation is to use the existing error value as the basis and correct the value of the calibration register through an algorithm. Using software compensation can facilitate debugging, and with the help of automated processes, it can also liberate human resources and improve efficiency. Commonly used software compensation methods include linear regression, neural network, least squares method, etc. Although linear regression analysis and least squares method are relatively simple and easy to implement, the error accuracy after compensation is not high. The neural network method uses more CPU resources, and its calculation matrix occupies a large amount of memory, which is not suitable for use on devices such as concentrators. Summary of the invention

[0005] In view of the above problems, the software compensation method provided by the present invention can be implemented quickly, has high precision, is debuggable, and does not require additional computing resources when the device is operating normally.

[0006] The first aspect of the present invention provides a concentrator temperature compensation method based on a normalization algorithm, comprising the following process:

[0007] S1, reading the value calreg_1 of the phase voltage correction register of the concentrator device; wherein the concentrator device is placed in a heating or cooling environment for a certain period of time and powered on for a certain period of time;

[0008] S2, normalize calreg_1 to obtain a signed value calreg_2 whose value range is when the highest bit of the register is used as a signed number;

[0009] S3, maps the original range of the original calreg_2 to between -1 and 0 or between 0 and 1 to obtain calreg_3, which is convenient for unifying data of different ranges to the same scale for processing;

[0010] S4, calculate the error attribute value of the voltage correction register at room temperature Err_a :

[0011]

[0012] S5, obtain the actual voltage value Ustd output by the standard meter of the recording platform, and read the actual voltage value Ux of the current phase of the concentrator device; the difference between the two is divided by the current actual voltage value of the concentrator device to obtain the voltage error ratio value of the current phase in the heating or cooling environment Err_b ;

[0013] S6, the obtained Err_b and Err_a Perform accumulation processing to obtain the comprehensive error attribute value of the phase voltage Err_ c ;

[0014] S7, performing the following formula calculation on the phase voltage comprehensive error attribute value Err_c:

[0015]

[0016] Get the gain value Gain, the value range of Gain is -1~1;

[0017] S8, according to the positive or negative value of Gain, calculate the final temperature compensation value calrega, write the value into the correction register corresponding to the phase voltage, and complete the temperature compensation of the phase voltage channel.

[0018] Preferably, in S1, the concentrator device is placed in a high and low temperature box, the temperature of the high and low temperature box is set to the heating gear or the cooling gear, and it is left to stand for a certain period of time without power, waiting for the overall temperature of the concentrator device to reach a predetermined state; then the table device is used to power the concentrator device, and the voltage, current, and power factor values ​​are set to the standard voltage gear, the standard current gear, and the power factor is set to 1.0, and it is left to stand for a certain period of time.

[0019] Preferably, in S2, the following formula is used for normalization processing:

[0020]

[0021] Where n is the length of the register bit.

[0022] Preferably, in S3, calreg_2 is calculated according to the following formula to obtain calreg_3:

[0023]

[0024] Where n is the length of the register bit.

[0025] Preferably, in S8, the normalization process is performed according to the following formula:

[0026]

[0027] Calculate the final temperature compensation value calrega.

[0028] Preferably, when performing current channel compensation correction, the various settings of the platform remain unchanged, that is, the voltage, current, and power factor levels remain unchanged, the corresponding values ​​of the voltage channel are replaced with the values ​​of the current channel, and the corresponding voltage values ​​on the platform are replaced with the current values. Finally, the calculated compensation values ​​are written into the correction register corresponding to the current to complete the current channel temperature compensation correction.

[0029] Preferably, when performing active phase compensation correction and reactive phase compensation correction, the power factor of the platform is set to 0.5L, and other settings of the platform remain unchanged, that is, the voltage and current gear settings remain unchanged; the corresponding values ​​of the voltage channel are replaced with the values ​​of the active phase and reactive phase channels, and the corresponding voltage values ​​on the platform are replaced with active values ​​and reactive values. Finally, the calculated compensation values ​​are written into the active phase register and reactive phase register respectively to complete the temperature compensation correction of the active phase and reactive phase.

[0030] The second aspect of the present invention provides a concentrator temperature compensation device based on a normalization algorithm, the device comprising at least one processor and at least one memory, the processor and the memory being coupled; the memory storing a computer execution program of the concentrator temperature compensation method as described in the first aspect; when the processor executes the computer execution program stored in the memory, the processor executes a concentrator temperature compensation method based on a normalization algorithm.

[0031] The third aspect of the present invention provides a computer-readable storage medium, in which a computer execution program of the concentrator temperature compensation method as described in the first aspect is stored. When the computer execution program is executed by a processor, the processor executes a concentrator temperature compensation method based on a normalization algorithm.

[0032] Compared with the prior art, the present invention has the following beneficial effects:

[0033] 1. Accurate single-phase compensation: Different from the previous scheme using the same temperature compensation parameters, the present invention can perform point-to-point accurate compensation for any phase of the three-phase voltage, current, active and reactive power.

[0034] 2. The compensation accuracy is high. After the above temperature compensation, the error of the AC sampling analog quantity at different temperatures can be controlled below 0.1%.

[0035] 3. Temperature compensation calculation is no longer required when the device is running, saving computing resources, and there is no need to configure hardware temperature compensation circuits, which can reduce hardware costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 This is the overall flow chart of the concentrator temperature compensation algorithm of the present invention.

[0037] Figure 2 This is a comparison chart of high temperature compensation error effects.

[0038] Figure 3 This is a comparison chart of low temperature compensation error effects.

[0039] Figure 4 This is a schematic diagram of the simple structure of the concentrator temperature compensation device. DETAILED DESCRIPTION

[0040] The present invention is further described below in conjunction with the embodiments. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] Embodiment 1:

[0042] In this embodiment, the premise of the temperature compensation scheme is that the concentrator equipment has completed the calibration at room temperature (25°C) and has obtained the calibration parameters at room temperature. The equipment and environment used are: high and low temperature environment temperature test box (hereinafter referred to as high and low temperature box) and measurement and detection table device (hereinafter referred to as table). The high and low temperature box is used to set different high and low temperature environment conditions, and the table device provides different power supply environments.

[0043] For single-phase or three-phase equipment, the correction principle and process of each phase channel are the same. In this embodiment, the temperature compensation algorithm proposed by the present invention is mainly described in detail by taking the single-phase channel voltage temperature compensation as an example. The overall process is as follows: Figure 1 shown.

[0044] 1. Place the concentrator device in a high and low temperature box, use tooling or special wires to lead the voltage and current lines from the table body, and connect them to the concentrator in the high and low temperature box. Set the temperature of the high and low temperature box to high or low temperature, and leave it for a while without power, waiting for the overall temperature of the concentrator device to reach the predetermined state.

[0045] For example, for three-phase equipment, three-phase voltage and three-phase current lines need to be drawn from the platform to power the equipment.

[0046] For example, the high temperature setting is 70℃, the low temperature setting is -40℃, and it is left alone for 3-6 hours without power.

[0047] 2. Use the bench device to power the concentrator equipment, set the voltage, current, and power factor values ​​to the standard voltage level, standard current level, and the power factor to 1.0. Leave it for a while until the temperature of the concentrator equipment stabilizes.

[0048] For example, for a concentrator device with an electrical specification of 220V-1.5A, the voltage on the platform is 220V, the current is 1.5A, and the power factor is positive active 1.0. To keep the temperature inside the device stable, let the concentrator stand for 30 minutes.

[0049] 3. Through the communication channel and communication protocol on the concentrator device, the value calreg_1 of the phase voltage correction register of the concentrator device is read out. That is, before temperature compensation, the correction register value obtained by calibrating the concentrator device at room temperature.

[0050] For example, the data can be obtained by using the host computer software through the RS485 channel or RJ45 network port channel on the concentrator device and the power industry standard protocol DL / T698.45 protocol to read the value calreg_1 of the phase voltage correction register of the concentrator device.

[0051] 4. The obtained calreg_1 is normalized in the following manner to obtain a signed value calreg_2 whose value range is when the highest bit of the register is used as a signed number.

[0052] Where n is the length of the register bit.

[0053] For example, taking the calibration register data length of 2 bytes, n is 16 bits, 2^16 is 65536, and 2^15 is 32768. By calculating with the above formula, a value calreg_2 with a range of -32768 to 32767 can be obtained.

[0054] 5. For the obtained value calreg_2, calculate calreg_3 according to the following formula, that is, map the original range of the original calreg_2 to between -1 and 0 or between 0 and 1, so as to unify the data of different ranges to the same scale for processing.

[0055]

[0056] Where n is the length of the register bit.

[0057] For example, if the calibration register data length is 2 bytes, n is 16. The value of calreg_3 is calreg_2 divided by 32768.

[0058] 6. According to the obtained ratio value calreg_3, calculate it with the following formula Err_a , this value is the error property value of the voltage correction register at room temperature.

[0059]

[0060] 7. Check the actual voltage value Ustd output by the standard meter of the recording platform, and read the actual voltage value Ux of the current phase of the concentrator device. Divide the difference between the two by the current actual voltage value of the concentrator device to obtain the voltage error ratio value of the current phase in the high (low) temperature environment. Err_b .

[0061]

[0062] For example, the actual voltage value Ux of the current phase of the concentrator device can be read through the power industry standard protocol DL / T698.45. The value of the platform standard table can be obtained through the platform function interface or by observation.

[0063] 8. The voltage error of the phase under high (low) temperature environment is obtained Err_b The error Err_a at room temperature is accumulated to obtain the comprehensive error attribute value of the phase voltage Err_c This value reflects the error impact on the device sampling channel in a high (low) temperature environment, based on the error value at room temperature.

[0064]

[0065] 9. Comprehensive error attribute value of the phase voltage Err_c Perform the following formula calculation to obtain the gain value Gain, and the value range of Gain is -1~1. The gain value obtained in this calculation reflects the error ratio of temperature compensation.

[0066]

[0067] 10. According to the positive and negative of Gain, perform normalization according to the following formula to calculate the final temperature compensation value calrega. Write this value into the correction register corresponding to the phase voltage to complete the temperature compensation of the phase voltage channel.

[0068]

[0069] Where n is the length of the register bit.

[0070] For example, taking the correction register data length of 2 bytes as an example, the value range of calrega is 0 to 65535.

[0071] 11. Current channel compensation correction: The various settings of the table body remain unchanged, that is, the voltage, current, and power factor gears remain unchanged. Use the same principle as above 3-10 to replace the corresponding values ​​of the voltage channel with the values ​​of the current channel, and replace the corresponding voltage values ​​on the table body with current values. Finally, write the calculated compensation values ​​into the correction register corresponding to the current to complete the current channel temperature compensation correction.

[0072] 12. Active phase compensation correction and reactive phase compensation correction: Set the power factor of the platform to 0.5L, and keep other settings of the platform unchanged, that is, the voltage and current gear settings unchanged. Use the same principle as above 3-10 to replace the corresponding values ​​of the voltage channel with the values ​​of the active phase and reactive phase channels, and replace the corresponding voltage values ​​on the platform with active values ​​and reactive values. Finally, the calculated compensation values ​​are written into the active phase register and reactive phase register respectively. Complete the temperature compensation correction of the active phase and reactive phase.

[0073] The compensation and correction of the phase register is to correct the accuracy of the phase difference between voltage and current. Therefore, the power factor of the platform is set to 0.5L to produce a phase difference between voltage and current, so that the phase correction data in the concentrator equipment can be compared and compensated.

[0074] like Figure 2 As shown, it can be seen that in a high temperature environment, when not compensated, the error of the concentrator table increases with the increase of temperature to about -0.35%. After high temperature compensation by this algorithm, in an environment of 70℃, the error can still be controlled within 0.1%, and the compensation effect is good.

[0075] like Figure 3As shown, it can be seen that in a low temperature environment, when not compensated, the error of the concentrator table increases continuously to about -0.3% as the temperature decreases. After low temperature compensation by this algorithm, in a -40℃ environment, the error can still be controlled within 0.1%, and the compensation effect is good.

[0076] Embodiment 2:

[0077] like Figure 4 As shown, the present invention also provides a concentrator temperature compensation device based on a normalization algorithm, the device includes at least one processor and at least one memory, and also includes a communication interface and an internal bus; a computer execution program is stored in the memory; a computer execution program of the concentrator temperature compensation method as described in Example 1 is stored in the memory; when the processor executes the computer execution program stored in the memory, the processor can execute a concentrator temperature compensation method based on a normalization algorithm. The internal bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus. The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a U disk, a mobile hard disk, a read-only memory, a disk or an optical disk, etc.

[0078] The device may be provided as a terminal, a server or other forms of device. In an exemplary embodiment, the electronic device may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0079] Embodiment 3:

[0080] The present invention also provides a computer-readable storage medium, in which a computer execution program of the concentrator temperature compensation method as described in Example 1 is stored. When the computer execution program is executed by a processor, the processor can execute a concentrator temperature compensation method based on a normalization algorithm.

[0081] Specifically, a system, device or equipment equipped with a readable storage medium may be provided, on which a software program code for implementing the functions of any of the above-mentioned embodiments is stored, and a computer or processor of the system, device or equipment reads and executes the instructions stored in the readable storage medium. In this case, the program code read from the readable medium itself can implement the functions of any of the above-mentioned embodiments, so the machine-readable code and the readable storage medium storing the machine-readable code constitute a part of the present invention.

[0082] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk (such as CD-ROM, CD-R, CD-RW, DVD-20 ROM, DVD-RAM, DVD-RW, DVD-RW), magnetic tape, etc. The storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0083] It should be understood that the storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in a terminal or server.

[0084] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

[0085] Although the above describes the specific implementation methods of the present invention, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A concentrator temperature compensation method based on a normalization algorithm, characterized in that: The process includes: S1, read the value of the phase voltage correction register calreg_1 of the concentrator device; The concentrator equipment is placed in a heating or cooling environment for a certain period of time and powered on for a certain period of time; S2, normalize calreg_1 to obtain a signed value calreg_2 whose value range is when the highest bit of the register is used as a signed number; Use the following formula for normalization: Where n is the length of the register in bits; S3, maps the original range of the original calreg_2 to -1~0 or 0~1 to obtain calreg_3, which is convenient for unifying data of different ranges to the same scale for processing; calreg_2 is calculated according to the following formula to obtain calreg_3: Where n is the length of the register in bits; S4, calculate the error attribute value of the voltage correction register at room temperature Err_a : S5, obtain the actual voltage value Ustd output by the standard meter of the recording platform, and read the actual voltage value Ux of the current phase of the concentrator device; the difference between the two is divided by the current actual voltage value of the concentrator device to obtain the voltage error ratio value of the current phase under heating or cooling environment Err_b ; S6, the obtained Err_b and Err_a Perform accumulation processing to obtain the comprehensive error attribute value of the phase voltage Err_c ; S7, the comprehensive error attribute value of the phase voltage Err_c Perform the following formula calculation: Get the gain value Gain, the value range of Gain is -1~1; S8, according to the positive or negative value of Gain, calculate the final temperature compensation value calrega, write the value into the correction register corresponding to the phase voltage, and complete the temperature compensation of the phase voltage channel; perform normalization according to the following formula: Calculate the final temperature compensation value calrega.

2. A concentrator temperature compensation method based on a normalization algorithm as claimed in claim 1, characterized in that: In S1, the concentrator device is placed in a high and low temperature box, the temperature of the high and low temperature box is set to the heating gear or the cooling gear, and it is left to stand for a certain period of time without power, waiting for the overall temperature of the concentrator device to reach a predetermined state; then the table device is used to power the concentrator device, and the voltage, current, and power factor values ​​are set to the standard voltage gear, the standard current gear, and the power factor is set to 1.0, and it is left to stand for a certain period of time.

3. The concentrator temperature compensation method based on normalization algorithm according to claim 1, characterized in that: When performing current channel compensation correction, the various settings of the platform remain unchanged, that is, the voltage, current, and power factor gears remain unchanged. The corresponding values ​​of the voltage channel are replaced with the values ​​of the current channel, and the corresponding voltage values ​​on the platform are replaced with current values. Finally, the calculated compensation values ​​are written into the correction register corresponding to the current to complete the current channel temperature compensation correction.

4. The concentrator temperature compensation method based on normalization algorithm according to claim 1, characterized in that: When performing active phase compensation correction and reactive phase compensation correction, the power factor of the platform is set to 0.5L, and other settings of the platform remain unchanged, that is, the voltage and current gear settings remain unchanged; the corresponding values ​​of the voltage channel are replaced with the values ​​of the active phase and reactive phase channels, and the corresponding voltage values ​​on the platform are replaced with active values ​​and reactive values. Finally, the calculated compensation values ​​are written into the active phase register and reactive phase register respectively to complete the temperature compensation correction of the active phase and reactive phase.

5. A concentrator temperature compensation device based on a normalization algorithm, characterized in that: The device includes at least one processor and at least one memory, the processor and the memory are coupled; the memory stores a computer execution program of the concentrator temperature compensation method as described in any one of claims 1 to 4; when the processor executes the computer execution program, the processor executes a concentrator temperature compensation method based on a normalization algorithm as described in any one of claims 1 to 4.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer execution program of the concentrator temperature compensation method as described in any one of claims 1 to 4. When the computer execution program is executed by a processor, the processor executes a concentrator temperature compensation method based on a normalization algorithm as described in any one of claims 1 to 4.