Electric energy metering device for high-end smart electric energy meter and control method thereof

By adopting a dual-metering chip solution and a watchdog module for detection in high-end smart energy meters, the problem of unreliable energy metering caused by DSP chip failure has been solved, thereby improving the accuracy and reliability of energy metering.

CN119355359BActive Publication Date: 2026-05-01WUHAN SAN FRAN ELECTRONICS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
WUHAN SAN FRAN ELECTRONICS CO LTD
Filing Date
2024-09-10
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

In existing technologies, the energy metering of high-end smart energy meters relies on DSP chips, which are easily affected by malfunctions or unstable metering programs, resulting in unreliable energy metering results.

Method used

A dual-metering chip solution is adopted, including a DSP chip in the gate meter structure and a backup metering chip. The MCU judges the status information of the DSP chip and the target metering data, and the watchdog module is used to detect the fault type to ensure the reliability of the metering.

Benefits of technology

It improves the accuracy and reliability of power metering, avoids metering instability caused by DSP chip failure or program instability, and enhances fault location efficiency and the reliability of metering results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119355359B_ABST
    Figure CN119355359B_ABST
Patent Text Reader

Abstract

The application provides an electric energy metering device for a high-end smart electric energy meter and a control method thereof. The device comprises a gateway meter structure, the gateway meter structure comprising a microcontroller MCU and a digital signal processing DSP chip, the MCU being electrically connected with the DSP chip; the DSP chip is used for counting first metering data according to input voltage and current of the gateway meter structure; a backup metering chip is electrically connected with the MCU; the backup metering chip is used for counting second metering data according to the voltage and the current; the MCU is used for determining state information and target metering data of the DSP chip according to the first metering data and the second metering data; wherein the target metering data belongs to the first metering data or the second metering data; the state information of the DSP chip comprises normal or failure of the DSP chip. The device adopts double metering chips to perform electric energy metering on the electric energy meter, thereby improving electric energy metering precision and reliability of electric energy metering results.
Need to check novelty before this filing date? Find Prior Art

Description

Energy metering device and control method for high-end smart energy meters Technical Field

[0001] This invention relates to the field of electricity metering technology, and in particular to an electricity metering device and its control method for high-end smart electricity meters. Background Technology

[0002] With the gradual deepening of my country's smart grid construction, smart meters, data acquisition terminals and other power acquisition equipment are being installed and connected to the grid. Power companies have high requirements for the reliability and accuracy of power acquisition. Taking the gate meter as an example, the gate meter is generally installed at the boundary where a large amount of load is gathered. Therefore, the requirements for metering reliability and accuracy are very high, usually requiring a level D (0.5S level).

[0003] In related technologies, existing gate meters rely on DSP (Digital Signal Processing) chips to measure the current and voltage input to high-end smart energy meters through preset metering programs. If the DSP chip fails, or the metering program is unstable or prone to bugs, the accuracy of energy metering will be reduced, resulting in unreliable energy metering results. Summary of the Invention

[0004] This invention provides an energy metering device and its control method for high-end smart energy meters, which solves the problem that existing technologies rely on DSP chips to measure the current and voltage input to high-end smart energy meters, which are easily affected by DSP chip failures or unstable metering programs, resulting in unreliable energy metering results. This invention improves the accuracy and reliability of energy metering.

[0005] This invention provides an energy metering device for high-end smart energy meters, comprising:

[0006] A gate meter structure, comprising a microcontroller (MCU) and a digital signal processing (DSP) chip, wherein the MCU and the DSP chip are electrically connected; the DSP chip is used to statistically analyze first measurement data based on the voltage and current input to the gate meter structure.

[0007] A backup metering chip is electrically connected to the MCU; the backup metering chip is used to calculate second metering data based on the voltage and the current.

[0008] The MCU is used to determine the status information and target measurement data of the DSP chip based on the first measurement data and the second measurement data; wherein, the target measurement data belongs to the first measurement data or the second measurement data; the status information of the DSP chip includes whether the DSP chip is normal or faulty.

[0009] According to the present invention, an energy metering device for a high-end smart energy meter is provided, the device further comprising:

[0010] A watchdog module is provided, wherein the input terminal of the watchdog module is connected to the DSP chip, and the output terminal of the watchdog module is connected to the MCU; the watchdog module is used to generate a watchdog set state in the event of a DSP chip failure, and send the watchdog set state to the MCU; wherein the watchdog set state is used to indicate whether the watchdog is set;

[0011] The MCU is also used to determine the fault type of the DSP chip based on the watchdog set state; the fault type includes repairable faults or unrepairable faults.

[0012] According to the present invention, an energy metering device for a high-end smart energy meter is provided, wherein the backup metering chip is a hardware metering chip.

[0013] According to the present invention, an energy metering device for a high-end smart energy meter is provided, wherein the gate meter structure further includes:

[0014] An analog-to-digital converter (ADC) is electrically connected to the DSP chip. The ADC is used to convert the voltage into a digital voltage and the current into a digital current based on voltage reference data, and input the digital current and digital voltage to the DSP chip for statistical analysis of the first measurement data.

[0015] A communication module is connected to the MCU and is used to realize data interaction between the server and the MCU.

[0016] A power supply, connected to the MCU, is used to supply power to the MCU, the DSP chip, and the ADC.

[0017] According to the present invention, an energy metering device for a high-end smart energy meter is provided, the device further comprising:

[0018] A storage module is connected to the DSP chip and the backup metering chip respectively, and the storage module is used to store at least one of the first metering data and the second metering data.

[0019] A control method for an energy metering device in a high-end smart energy meter, provided by the present invention, includes:

[0020] A digital signal processing (DSP) chip based on a gate meter structure calculates first measurement data based on the voltage and current input to the gate meter structure; a backup measurement chip is used to calculate second measurement data based on the voltage and current.

[0021] The microcontroller (MCU) based on the gate table structure determines the status information and target measurement data of the DSP chip according to the first measurement data and the second measurement data; wherein, the MCU is electrically connected to the DSP chip; the target measurement data belongs to either the first measurement data or the second measurement data; the status information of the DSP chip includes whether the DSP chip is normal or faulty.

[0022] According to a control method for an energy metering device in a high-end smart energy meter provided by the present invention, after determining the state information of the DSP chip and the target metering data, the method further includes:

[0023] In the event of a DSP chip failure, a watchdog set state is generated based on the watchdog module, and the watchdog set state is sent to the MCU; wherein, the watchdog set state is used to indicate whether the watchdog is set; the input terminal of the watchdog module is connected to the DSP chip;

[0024] The MCU determines the fault type of the DSP chip based on the watchdog timer's set state; the fault type includes repairable faults or unrepairable faults.

[0025] According to a control method for an energy metering device in a high-end smart energy meter provided by the present invention, after determining the state information of the DSP chip and the target metering data, the method further includes:

[0026] In the event of a DSP chip failure, a watchdog set state is generated based on the watchdog module.

[0027] When the watchdog is in the set state, the statistical values ​​of the backup metering chip at multiple times are determined to be the energy metering values ​​of the high-end smart energy meter; the multiple times include the current time and at least one time point before the current time.

[0028] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a control method for an energy metering device for a high-end smart energy meter as described above.

[0029] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a control method for an energy metering device for a high-end smart energy meter as described above.

[0030] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements a control method for an energy metering device for a high-end smart energy meter as described above.

[0031] The present invention provides an energy metering device and control method for high-end smart energy meters. The device measures the input voltage and current through a DSP chip with a gate meter structure to obtain first metering data. The device measures the input voltage and current through a backup metering chip to obtain second metering data. The MCU then uses the first and second metering data to determine the status information of the DSP chip and the target metering data. By using dual metering chips to perform energy metering, the accuracy and reliability of energy metering results are improved. Attached Figure Description

[0032] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0033] Figure 1 is one of the structural schematic diagrams of the energy metering device for high-end smart energy meters provided by the present invention.

[0034] Figure 2 is a second structural schematic diagram of the energy metering device for high-end smart energy meters provided by the present invention.

[0035] Figure 3 is one of the flowcharts illustrating the control method for an energy metering device for a high-end smart energy meter provided by the present invention.

[0036] Figure 4 is a flowchart illustrating the method for confirming the fault type of a DSP chip provided by the present invention.

[0037] Figure 5 is a second schematic flowchart of the control method for the energy metering device for high-end smart energy meters provided by the present invention.

[0038] Figure 6 is a schematic diagram of the structure of the electronic device provided by the present invention.

[0039] Figure label:

[0040] 110: Gateway table structure; 111: MCU; 112: DSP chip;

[0041] 113: ADC; 114: Communication module; 115: Power supply;

[0042] 120: Backup metering chip; 130: Watchdog module; 140: Storage module. Detailed Implementation

[0043] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0044] The following description, in conjunction with Figures 1-5, describes the energy metering device and its control method for high-end smart energy meters according to the present invention.

[0045] Figure 1 is one of the structural schematic diagrams of the energy metering device for high-end smart energy meters provided by the present invention. As shown in Figure 1, the energy metering device for high-end smart energy meters includes a gate meter structure 110 and a backup metering chip 120.

[0046] The gate meter structure 110 includes a microcontroller MCU 111 and a digital signal processing DSP chip 112. The MCU 111 and the DSP chip 112 are electrically connected. The DSP chip 112 is used to calculate the first measurement data based on the voltage and current input to the gate meter structure 110.

[0047] In this embodiment, the gate meter can be installed at key metering points in the power system, which are typically the boundaries of power inflow or outflow on the user side, such as substations, distribution rooms, or user access points.

[0048] In this embodiment, the gate meter structure 110 and the backup metering chip 120 are two independent power metering units.

[0049] For example, the DSP chip 112 in the gate meter structure 110 obtains the first measurement data by statistically analyzing the voltage and current input to the gate meter structure 110 through a preset measurement program.

[0050] The backup metering chip 120 is electrically connected to the MCU 111; the backup metering chip 120 is used to collect second metering data based on voltage and current.

[0051] In this embodiment, the backup metering chip 120 independently calculates the second metering data based on the input voltage and current, separate from the DSP chip 112.

[0052] For example, the backup metering chip 120 can use a more stable metering program that is different from the metering program in the DSP chip 112 to collect the corresponding second metering data, or it can directly measure the second metering data without going through the metering program. That is, the backup metering chip 120 can provide backup metering data, thereby realizing the use of dual metering chips to avoid the metering instability caused by DSP chip 112 failure or program instability.

[0053] MCU111 is used to determine the status information and target measurement data of DSP chip 112 based on the first measurement data and the second measurement data; wherein, the target measurement data belongs to the first measurement data or the second measurement data; the status information of DSP chip 112 includes whether DSP chip 112 is normal or faulty.

[0054] In this embodiment, the step of determining the status information of the DSP chip 112 based on the first measurement data and the second measurement data includes:

[0055] Determine whether DSP chip 112 is faulty using the following judgment factor calculation formula:

[0056] ;

[0057] in, Let A be the judgment factor, B be the value of the first measurement data, and | be the absolute value operation.

[0058] In this embodiment, the DSP chip 112 and the backup metering chip 120 respectively collect the first metering data and the second metering data at the current time. Then, the corresponding judgment factor is calculated according to the above formula. The judgment factor is then compared with a preset fault threshold. If the judgment factor is less than the fault threshold, it is determined that the DSP chip 112 is not faulty, and the first metering data is used as the target metering data. If the judgment factor is greater than or equal to the fault threshold, it is determined that the DSP chip 112 is faulty, and the second metering data is used as the target metering data. The power meter can be monitored for normal operation by comparing the metering data of the two metering chips.

[0059] In this embodiment, the fault threshold can be set according to user needs, for example... =0.5%.

[0060] The energy metering device for high-end smart energy meters provided in this embodiment of the invention measures the input voltage and current through the DSP chip 112 of the gate meter structure 110 to obtain first metering data, and measures the input voltage and current through the backup metering chip 120 to obtain second metering data. Then, the MCU 111 uses the first metering data and the second metering data to determine the status information and target metering data of the DSP chip 112. By using dual metering chips to perform energy metering on the energy meter, the accuracy and reliability of energy metering results are improved.

[0061] In some embodiments, the device further includes a watchdog module, the input of which is connected to the DSP chip 112, and the output of which is connected to the MCU 111. The watchdog module is used to generate a watchdog set state in the event of a fault in the DSP chip 112, and send the watchdog set state to the MCU 111. The watchdog set state indicates whether the watchdog is set. The MCU 111 is also used to determine the fault type of the DSP chip 112 based on the watchdog set state. The fault type includes a repairable fault or an unrepairable fault.

[0062] In this embodiment, the watchdog module includes a watchdog timer. If the DSP chip 112 is running normally, the software will periodically "reset" or "feed" the watchdog timer. If the DSP chip 112 malfunctions and the software cannot continue to feed the watchdog, the watchdog timer will trigger a system restart or execute other preset alarm operations after timeout.

[0063] In this embodiment, if a fault is determined in the DSP chip 112, the fault type of the DSP chip 112 can be further tested by checking whether the watchdog timer is set. For example, if the watchdog timer is set, the metering program in the DSP chip 112 can be repaired by calling the repair program. If the watchdog timer is not set, it indicates that the clock of the DSP chip 112 is faulty, which has caused a deviation in the metering accuracy. In this case, the deviation information needs to be fed back to the server through the MCU 111 so that the technicians can handle it in time.

[0064] The energy metering device for high-end smart energy meters provided in this embodiment of the invention improves fault location efficiency and metering result reliability by setting a watchdog module to detect the fault type of DSP chip 112 and issue timely alarms.

[0065] In some embodiments, the backup metering chip 120 is a hardware metering chip.

[0066] In this embodiment, the backup metering chip 120 is a dedicated power metering chip, such as the HT7132 chip. This chip is a pure hardware metering chip, and the metering results are highly reliable.

[0067] In some embodiments, the gate meter structure 110 further includes: an analog-to-digital converter (ADC), which is electrically connected to the DSP chip 112. The ADC is used to convert voltage into digital voltage and current into digital current based on voltage reference data, and input the digital current and digital voltage to the DSP chip 112 for statistical analysis of first measurement data; a communication module, which is connected to the MCU 111 and is used to realize data interaction between the server and the MCU 111; and a power supply, which is connected to the MCU 111 and is used to supply power to the MCU 111, the DSP chip 112, and the ADC.

[0068] Figure 2 is a second schematic diagram of the energy metering device for high-end smart energy meters provided by the present invention. In the embodiment shown in Figure 2, the ADC113 (Analog-to-Digital Converter) chip performs analog-to-digital conversion on the input voltage and current according to the reference voltage or current, respectively, to obtain digital voltage and digital current. The DSP chip 112 performs metering and statistics on the digital voltage and digital current to obtain first metering data, and sends the first metering data to the MCU111. At the same time, the backup metering chip 120 directly measures the second metering data corresponding to the above-mentioned input voltage and current, and sends the second metering data to the MCU111. The MCU111 calculates the judgment factor between the first metering data and the second metering data, and compares it with the fault threshold to determine whether the DSP has failed. If the DSP fails, the second metering data will be used as the target metering data; otherwise, the first metering data will be used as the target metering data. In addition, a watchdog module 130 is connected between the DSP chip 112 and the MCU 111. In the event of a DSP failure, the specific fault type of the DSP chip 112 (DSP chip 112 failure or metering program error in the DSP chip 112) is determined by detecting whether the watchdog is set. The MCU 111 will then send an alarm message to the server through the communication module 114 according to the specific fault type for timely re-inspection. The power supply 115 is used to supply power to the electrical equipment, including the MCU 111.

[0069] The energy metering device for high-end smart energy meters provided in this invention uses dual metering chips to measure the energy of the high-end smart energy meter, which can avoid metering instability caused by main metering chip failure or unstable program operation. Moreover, by comparing the metering data of the dual metering chips, the working status of the energy meter can be monitored.

[0070] In some embodiments, the energy metering device for a high-end smart energy meter further includes a storage module, which is connected to the DSP chip 112 and the backup metering chip 120 respectively, and is used to store at least one of the first metering data and the second metering data.

[0071] In this embodiment, the second measurement data measured by the backup metering chip 120 and the first measurement data measured by the DSP chip 112 can both be stored through the storage module so that data analysis can be performed based on the stored data, thereby enabling monitoring of the working status of the backup metering chip 120 and the DSP chip 112 and reducing hardware and software measurement errors.

[0072] In the embodiment shown in Figure 2, the storage module 140 is electrically connected to the DSP chip 112 and is used to store the first measurement data measured by the DSP chip 112 for subsequent analysis and research of the measurement data.

[0073] The energy metering device for high-end smart energy meters provided in this invention helps to monitor the working status of backup metering chips and DSP chips by storing at least one of first metering data and second metering data in a storage module, thereby reducing hardware and software measurement errors.

[0074] The control method for the energy metering device for high-end smart energy meters provided by the present invention will be described below. The control method for the energy metering device for high-end smart energy meters described below can be referred to in correspondence with the energy metering device for high-end smart energy meters described above.

[0075] Figure 3 is one of the flowcharts illustrating the control method for an energy metering device for a high-end smart energy meter provided by the present invention. As shown in Figure 3, the control method for the energy metering device for a high-end smart energy meter includes the following steps:

[0076] Step 310: The digital signal processing (DSP) chip based on the gate meter structure calculates the first measurement data based on the voltage and input current of the input gate meter structure; the backup meter chip is used to calculate the second measurement data based on the voltage and current.

[0077] In this step, gate meters can be installed at critical metering points in the power system, which are typically the boundaries where electricity flows in or out of the user side, such as substations, distribution rooms, or user access points.

[0078] In this embodiment, the gate meter structure and the backup metering chip are two independent power metering units.

[0079] For example, the DSP chip in the gate meter structure obtains the first measurement data by statistically analyzing the voltage and current input to the gate meter structure through a preset measurement program.

[0080] In this embodiment, the backup metering chip independently calculates the second metering data based on the input voltage and current, as described above, according to the DSP chip.

[0081] For example, the backup metering chip can use a more stable metering program that is different from the metering program in the DSP chip to collect the corresponding second metering data, or it can directly measure the second metering data without going through the metering program. In other words, the backup metering chip can provide backup metering data, thereby realizing the use of dual metering chips to avoid the problem of metering instability caused by DSP chip failure or program instability.

[0082] Step 320: The microcontroller (MCU) based on the gate table structure determines the status information and target measurement data of the DSP chip according to the first measurement data and the second measurement data; wherein, the MCU and the DSP chip are electrically connected; the target measurement data belongs to the first measurement data or the second measurement data; the status information of the DSP chip includes whether the DSP chip is normal or faulty.

[0083] In this step, the process of determining the status information of the DSP chip based on the first measurement data and the second measurement data includes:

[0084] Determine if the DSP chip is faulty using the following formula:

[0085] ;

[0086] in, Let A be the judgment factor, B be the value of the first measurement data, and | be the absolute value operation.

[0087] In this embodiment, the DSP chip and the backup metering chip respectively collect the first metering data and the second metering data at the current time. Then, the corresponding judgment factor is calculated according to the above formula. The judgment factor is then compared with a preset fault threshold. If the judgment factor is less than the fault threshold, it is determined that the DSP chip is not faulty, and the first metering data is used as the target metering data. If the judgment factor is greater than or equal to the fault threshold, it is determined that the DSP chip is faulty, and the second metering data is used as the target metering data. The power meter can be monitored for normal operation by comparing the metering data of the two metering chips.

[0088] In this embodiment, the fault threshold can be set according to user needs, for example... =0.5%.

[0089] The operation method of the energy metering device for high-end smart energy meters provided in this invention involves measuring the input voltage and current through a DSP chip in a gate meter structure to obtain first metering data, measuring the input voltage and current through a backup metering chip to obtain second metering data, and then using an MCU to determine the status information of the DSP chip and the target metering data based on the first and second metering data. By using dual metering chips to perform energy metering on the energy meter, the accuracy and reliability of energy metering results are improved.

[0090] In some embodiments, after determining the status information of the DSP chip and the target measurement data, the method further includes: in the event of a DSP chip failure, generating a watchdog set state based on the watchdog module and sending the watchdog set state to the MCU; wherein, the watchdog set state is used to indicate whether the watchdog is set; the input terminal of the watchdog module is connected to the DSP chip; and the MCU determines the fault type of the DSP chip based on the watchdog set state; the fault type includes a repairable fault or an unrepairable fault.

[0091] In this embodiment, the watchdog module includes a watchdog timer. If the DSP chip is running normally, the software will periodically "reset" or "feed" the watchdog timer. If the DSP chip malfunctions and the software cannot continue to feed the watchdog, the watchdog timer will trigger a system restart or execute other preset alarm operations after timeout.

[0092] In this embodiment, if a DSP chip fault is determined, the fault type of the DSP chip can be further tested by checking whether the watchdog timer is set. For example, if the watchdog timer is set, the metering program in the DSP chip can be repaired by calling the repair program. If the watchdog timer is not set, it indicates that the clock of the DSP chip is faulty, which has caused a deviation in the metering accuracy. In this case, the deviation information needs to be fed back to the server through the MCU so that the technicians can handle it in time.

[0093] The operation method of the energy metering device for high-end smart energy meters provided in this invention improves fault location efficiency and metering result reliability by setting a watchdog module to detect the fault type of the DSP chip and issue timely alarms.

[0094] In some embodiments, after determining the status information of the DSP chip and the target metering data, the method further includes: in the event of a DSP chip failure, generating a watchdog set state based on the watchdog module; and in the event that the watchdog set state is watchdog set, determining the statistical values ​​of the backup metering chip at multiple times as the energy metering value of the high-end smart energy meter; the multiple times include the current time and at least one time point before the current time.

[0095] In this embodiment, in the event of a DSP chip failure, the specific type of DSP chip failure is further determined by checking the watchdog timer's bit setting; if the watchdog timer is set, it is determined that the DSP chip has failed; in this case, the metering data B collected by the backup metering chip at the current moment is read. n As the final measurement data for the current time, and retrieve measurement data B from multiple time points before the current time from the backup chip (one second prior to the current time). n-1 B n-jReplace A with (j=2,3,4,…,n-1) n-1 A n-j .

[0096] Figure 4 is a flowchart illustrating the method for confirming the fault type of a DSP chip provided by the present invention. In the embodiment shown in Figure 4, the current metering data and the metering data B from the previous second of the backup metering chip (corresponding to the backup chip) are read. n and B n-1 After resetting the DSP, check if the watchdog timer is set. If it is set, it indicates that the DSP chip has malfunctioned. The MCU needs to report the fault information to the server through the communication module to notify manual repair. For example, the cause of the DSP chip malfunction may be DSP damage or DSP power supply failure. If the watchdog timer is not set, it indicates that there is a bug in the DSP chip's metering program. Call the main program to check if the accuracy has been restored.

[0097] The operation method of the energy metering device for high-end smart energy meters provided in this embodiment of the invention further improves the reliability of energy metering by generating a watchdog set state based on the watchdog module in the event of a DSP chip failure; and by determining the statistical values ​​of the backup metering chip at multiple times as the energy metering value of the high-end smart energy meter when the watchdog set state is watchdog set.

[0098] Figure 5 is a second flowchart illustrating the control method for an energy metering device in a high-end smart energy meter provided by the present invention. In the embodiment shown in Figure 5, the first metering data (corresponding to the main metering data) statistically collected by the DSP chip is read and denoted as A. The second metering data (corresponding to the backup metering data) statistically collected by the backup metering chip is read and denoted as B. According to the above-mentioned judgment factor calculation formula, the corresponding judgment factor is calculated using A and B and compared with the fault threshold (corresponding to 0.5%). If the judgment factor is less than 0.5%, A is determined to be the final metering data, indicating that the DSP chip has no metering fault. Otherwise, B is determined to be the final metering data, indicating that the DSP chip has a metering fault. In the case of a DSP chip fault, it is determined whether the watchdog timer is set. If the watchdog timer is set, the main program (corresponding to program 2) is called to determine the specific fault type of the DSP. If the watchdog timer is not set, it is determined that the metering error of the DSP chip is too large. The fault information corresponding to the above-mentioned DSP chip fault or program fault is remotely reported to the server for timely manual re-inspection.

[0099] Figure 6 is a schematic diagram of the electronic device provided by the present invention. As shown in Figure 6, the electronic device may include: a processor 610, a communication interface 620, a memory 630, and a communication bus 640. The processor 610, communication interface 620, and memory 630 communicate with each other via the communication bus 640. The processor 610 can call logic instructions in the memory 630 to execute a control method for an energy metering device in a high-end smart energy meter. This method includes: a digital signal processing (DSP) chip based on a gate meter structure calculating first metering data based on the voltage and current input to the gate meter structure; a backup metering chip calculating second metering data based on the voltage and current; and a microcontroller (MCU) based on the gate meter structure determining the status information of the DSP chip and target metering data based on the first and second metering data. The MCU is electrically connected to the DSP chip; the target metering data belongs to either the first or second metering data; and the status information of the DSP chip includes whether the DSP chip is normal or faulty.

[0100] Furthermore, the logical instructions in the aforementioned memory 630 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0101] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the control method for an energy metering device for a high-end smart energy meter provided by the above methods. The method includes: a digital signal processing (DSP) chip based on a gate meter structure statistically analyzes first metering data based on the voltage and current input to the gate meter structure; a backup metering chip is used to statistically analyze second metering data based on the voltage and current; a microcontroller (MCU) based on the gate meter structure determines the status information of the DSP chip and target metering data based on the first and second metering data; wherein the MCU is electrically connected to the DSP chip; the target metering data belongs to either the first or second metering data; and the status information of the DSP chip includes whether the DSP chip is normal or faulty.

[0102] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements a control method for an energy metering device for a high-end smart energy meter provided by the methods described above. This method includes: a digital signal processing (DSP) chip based on a gate meter structure calculating first metering data based on the voltage and current input to the gate meter structure; a backup metering chip calculating second metering data based on the voltage and current; and a microcontroller (MCU) based on the gate meter structure determining the status information of the DSP chip and target metering data based on the first and second metering data; wherein the MCU is electrically connected to the DSP chip; the target metering data belongs to either the first or second metering data; and the status information of the DSP chip includes whether the DSP chip is normal or faulty.

[0103] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0104] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An energy metering device for high-end smart energy meters, characterized in that, include: A gate table structure, the gate table structure including a microcontroller (MCU) and a digital signal processing (DSP) chip, wherein the MCU and the DSP chip are electrically connected; The DSP chip is used to statistically analyze the first measurement data based on the voltage and current input to the gate meter structure. A backup metering chip is electrically connected to the MCU. The backup metering chip is used to calculate second metering data based on the voltage and current. The backup metering chip is a hardware metering chip. The MCU is used to determine the status information and target metering data of the DSP chip based on the first metering data and the second metering data. The target metering data belongs to either the first metering data or the second metering data. The status information of the DSP chip includes whether the DSP chip is normal or faulty. Specifically, the MCU is used to determine whether the DSP chip is faulty based on the following judgment factor calculation formula: ;in, The judgment factor is defined as follows: A is the value of the first measurement data, B is the value of the first measurement data, and || is the absolute value operation. The judgment factor is compared with a preset fault threshold. If the judgment factor is less than the fault threshold, the DSP chip is determined to be fault-free. If the judgment factor is greater than or equal to the fault threshold, the DSP chip is determined to be faulty. The backup measurement chip is used to provide backup measurement data to avoid measurement instability caused by DSP chip failure or program instability.

2. The energy metering device for high-end smart energy meters according to claim 1, characterized in that, The device further includes a watchdog module, the input of which is connected to the DSP chip, and the output of which is connected to the MCU. The watchdog module is used to generate a watchdog set state in the event of a DSP chip failure, and to send the watchdog set state to the MCU. The watchdog set state indicates whether the watchdog is set. The MCU is also used to determine the fault type of the DSP chip based on the watchdog set state. The fault type includes a repairable fault or an unrepairable fault.

3. The energy metering device for high-end smart energy meters according to claim 1, characterized in that, The gate meter structure further includes: an analog-to-digital converter (ADC), which is electrically connected to the DSP chip. The ADC is used to convert the voltage into a digital voltage and the current into a digital current based on voltage reference data, and input the digital current and digital voltage to the DSP chip for statistical analysis of the first metering data; a communication module, which is connected to the MCU and is used to realize data interaction between the server and the MCU; and a power supply, which is connected to the MCU and is used to supply power to the MCU, the DSP chip, and the ADC.

4. The energy metering device for a high-end smart energy meter according to any one of claims 1 and 3, characterized in that, The device further includes a storage module, which is connected to the DSP chip and the backup metering chip respectively, and is used to store at least one of the first metering data and the second metering data.

5. A control method for an energy metering device used in a high-end smart energy meter, characterized in that, include: The digital signal processing (DSP) chip based on the gate meter structure calculates the first measurement data according to the voltage and input current input to the gate meter structure. The backup metering chip is used to calculate the second metering data based on the voltage and the current. The backup metering chip is a hardware metering chip. The microcontroller (MCU) based on the gate table structure determines the status information and target measurement data of the DSP chip according to the first measurement data and the second measurement data; wherein, the MCU is electrically connected to the DSP chip; the target measurement data belongs to either the first measurement data or the second measurement data; the status information of the DSP chip includes whether the DSP chip is normal or faulty; the status information of the DSP chip is determined by the following steps: determining whether the DSP chip is faulty according to the following judgment factor calculation formula: ;in, The judgment factor is defined as follows: A is the value of the first measurement data, B is the value of the first measurement data, and || is the absolute value operation. The judgment factor is compared with a preset fault threshold. If the judgment factor is less than the fault threshold, the DSP chip is determined to be fault-free. If the judgment factor is greater than or equal to the fault threshold, the DSP chip is determined to be faulty. The backup measurement chip is used to provide backup measurement data to avoid measurement instability caused by DSP chip failure or program instability.

6. The control method for an energy metering device for a high-end smart energy meter according to claim 5, characterized in that, After determining the status information and target measurement data of the DSP chip, the method further includes: in the event of a DSP chip failure, generating a watchdog set state based on the watchdog module, and sending the watchdog set state to the MCU; wherein the watchdog set state is used to indicate whether the watchdog is set; the input terminal of the watchdog module is connected to the DSP chip; the MCU determines the fault type of the DSP chip based on the watchdog set state; the fault type includes a repairable fault or an unrepairable fault.

7. The control method for an energy metering device for a high-end smart energy meter according to claim 6, characterized in that, After determining the status information of the DSP chip and the target metering data, the method further includes: in the event of a DSP chip failure, generating a watchdog set state based on the watchdog module; and in the event that the watchdog set state is watchdog set, determining the statistical values ​​of the backup metering chip at multiple times as the energy metering values ​​of the high-end smart energy meter; the multiple times include the current time and at least one time point before the current time.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the control method for an energy metering device for a high-end smart energy meter as described in any one of claims 5 to 7.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the control method for the energy metering device for a high-end smart energy meter as described in any one of claims 5 to 7.

Citation Information

Patent Citations

  • Electric quantity metering method and device and electric energy meter

    CN115060966A