Electric energy meter double-core interaction method and device, electronic equipment and storage medium

By configuring communication parameters and delay processing in the dual-core interaction of electricity meters, the communication bottleneck problem in the dual-core interaction of electricity meters is solved, the system performance and response speed are improved, and the metering accuracy and data consistency are ensured.

CN121505840APending Publication Date: 2026-02-10HEXING ELECTRICAL CO LTD +4
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511558329.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-29
Publication Date
2026-02-10

AI Technical Summary

Technical Problem

In the dual-core interaction of electricity meters, the bandwidth, processing capacity, and real-time performance of the communication interface are limited, resulting in a decrease in system performance and response speed.

Method used

By configuring the communication parameters between the metering core and the application core during power-on initialization and sending a request frame at the end of each communication cycle, the application core receives, verifies, and parses the response frame. Combined with the set delay time, it selects the processing method to store the business data, ensuring that the metering core completes initialization and stable metering after power-on.

Benefits of technology

This improves the performance and response speed of the electricity metering system, ensures the accuracy and consistency of the metering, and avoids reporting erroneous data before the metering is stable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121505840A_ABST
    Figure CN121505840A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an electric energy meter double-core interaction method, which comprises the following steps that: an electric energy meter is initialized based on a power supply state, communication parameters of a metering core and an application core are configured, and based on a set communication period, when each communication period is ended, the application core sends a request frame to the metering core, the metering core packages to-be-acquired data into a response frame based on the request frame and sends the response frame to the application core; after receiving the response frame, the application core verifies and analyzes the to-be-acquired data to obtain service data, and the service module selects a corresponding processing mode based on the set delay time and the data type of the service data to store the service data into the electric energy meter. By setting the delay time, it is ensured that the metering core has enough time to complete metering after being powered on, it is avoided that error data is reported to the service module when metering is not stable, metering accuracy and data consistency of the electric energy meter in various starting and running states are guaranteed, and the performance and response speed of an electric energy meter metering system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electricity meter data processing technology, and in particular to a dual-core interaction method, device, electronic device, and storage medium for electricity meters. Background Technology

[0002] Dual-chip interaction in electricity meters is typically used in meters that employ two main microcontroller or processor chips (MCUs) to implement the entire meter function. The two chips respectively implement the metering function and the upper-layer application function. The dual-chip of the electricity meter consists of a metering chip (Metering MCU) and an application chip (Application MCU). The metering chip is directly connected to voltage and current sensors to perform high-speed, high-precision analog signal acquisition and digital signal processing, calculating key metering data such as voltage, current, power, and energy. The application chip manages communication modules (such as 4G, NB-IoT, PLC, infrared, etc.), processes the user interface (such as LCD display), performs rate calculation, data storage, security encryption, remote upgrades, and command interaction with external systems (such as the power grid company's backend). The two chips complete the transmission of metering sampling data and the issuance of application layer function commands through peripheral interfaces.

[0003] To meet market demands, electricity meters are required to integrate more complex functions, such as: more advanced network security (e.g., TLS encryption, secure boot), more complex communication protocols (supporting multiple international standards), power quality monitoring (harmonic analysis, transient event recording), and edge computing capabilities (local data analysis, load identification). This results in a larger volume of data transmission (e.g., power quality data far exceeds basic power data), a higher data transmission frequency (increased real-time requirements), and increased complexity of interaction (more and more complex commands). This puts immense pressure on the bandwidth, processing power, and real-time performance of the communication interface between the two meters. If communication becomes a bottleneck, the overall system performance and response speed will decline. Summary of the Invention

[0004] To address the problems existing in the prior art, this specification describes a dual-core interaction method, apparatus, electronic device, and storage medium for an electricity meter through one or more embodiments.

[0005] According to the first aspect, a dual-core interaction method for an electricity meter is provided, the method comprising: The electricity meter is initialized based on the power state, and the communication parameters between the metering chip and the application chip are configured. Based on the set communication cycle, at the end of each communication cycle, the application chip sends a request frame to the metering chip. The request frame contains the data address of the data to be acquired. The metering chip packages the data to be acquired into a response frame based on the request frame and sends it to the application chip. After receiving the response frame, the application chip verifies and parses the data to be acquired to obtain the service data. The service module selects the corresponding processing method based on the set delay time and the data type of the service data to store the service data in the electricity meter.

[0006] Preferably, the power supply state includes a power-off state and a sleep state, and the energy meter initializes based on the power supply in the sleep state, including: Turn on the power supply of the metering core, configure the serial communication parameters, and enable serial clock and DMA reception; If the power supply data of the electricity meter remains unchanged within a set stable time, the timing will be based on the set delay time.

[0007] Preferably, the service module selects a corresponding processing method based on the set delay time and the data type of the service data to store the service data in the electricity meter, including: During the delay period, the application chip does not communicate with the service module; Outside of the aforementioned delay time, the corresponding processing method is selected based on the data type of the business data to store the business data in the electricity meter.

[0008] Preferably, the business data includes instantaneous data and electrical energy processing data, wherein the instantaneous data includes current, voltage, and power, and the electrical energy processing data includes the number of pulses.

[0009] Preferably, selecting the corresponding processing method based on the data type of the business data to store the business data in the electricity meter includes: When the business data is instantaneous, it will be stored directly in a global variable. When the business data is electrical energy processing data, read the cumulative pulse count reported by the metering core in this communication, subtract the cumulative pulse count recorded during the last successful communication, calculate the difference between the two cumulative pulse counts, and store the difference in a global variable.

[0010] Preferably, if communication is successful but data verification fails, the application chip will clear the service data and store it in the electricity meter.

[0011] Preferably, if communication is successful but data verification fails, the application chip will clear the service data and store it in the electricity meter.

[0012] According to a second aspect, a dual-core interactive device for an electricity meter is provided, the device comprising: The data interaction module is used to initialize the energy meter based on the power status, configure the communication parameters between the metering core and the application core, and, based on the set communication cycle, at the end of each communication cycle, the application core sends a request frame to the metering core. The request frame contains the data address of the data to be acquired, and the metering core packages the data to be acquired into a response frame based on the request frame and sends it to the application core. The service storage module is used to verify and parse the data to be acquired after the application chip receives the response frame to obtain service data. The service module selects the corresponding processing method based on the set delay time and the data type of the service data to store the service data in the energy meter.

[0013] According to a third aspect, an electronic device is provided, including a processor and a memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code stored in the memory to perform the steps of the method provided as in the first aspect or any possible implementation thereof.

[0014] According to a fourth aspect, a computer-readable storage medium is provided having a computer program stored thereon, the computer-readable storage medium storing instructions that, when executed on a computer or processor, cause the computer or processor to perform the method provided as in the first aspect or any possible implementation thereof.

[0015] The beneficial effects of this invention are as follows: 1. The method and apparatus provided in the embodiments of this specification ensure that the metering core has sufficient time to complete internal initialization, stabilize the clock, and establish accurate metering after power-on by setting a delay time. This avoids reporting erroneous data to the business module before the metering is stable, thus ensuring the metering accuracy and data consistency of the electricity meter under various startup and operation states, and improving the performance and response speed of the electricity meter metering system. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a flowchart illustrating a specific implementation of a dual-core interaction method for electricity meters in this manual. Figure 2 This is a schematic diagram of the structure of a dual-core interactive device for an electricity meter in a specific implementation of this specification; Figure 3 This is a schematic diagram of the structure of an electronic device in a specific implementation of this specification; Detailed Implementation

[0018] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0019] In the following description, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance. The following description provides multiple embodiments of this application, which can be substituted or combined with each other. Therefore, this application can also be considered to include all possible combinations of the same and / or different embodiments described. Thus, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then this application should also be considered to include embodiments containing one or more other possible combinations of A, B, C, and D, even if such embodiments are not explicitly described in the following text.

[0020] The following description provides examples and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made to the function and arrangement of the described elements without departing from the scope of this application. Various processes or components may be appropriately omitted, substituted, or added to the examples. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.

[0021] See Figure 1 , Figure 1 This is a flowchart illustrating the dual-core interaction method for electricity meters provided in this application embodiment. In this application embodiment, the method includes: S101. The energy meter is initialized based on the power state, and the communication parameters between the metering core and the application core are configured. Based on the set communication cycle, at the end of each communication cycle, the application core sends a request frame to the metering core. The request frame contains the data address of the data to be acquired. The metering core packages the data to be acquired into a response frame based on the request frame and sends it to the application core. S102. After receiving the response frame, the application chip verifies and parses the data to be acquired to obtain the service data. The service module selects the corresponding processing method based on the set delay time and the data type of the service data to store the service data in the electricity meter.

[0022] The entity executing this application may be a cloud server.

[0023] In the embodiments of this specification, the energy meter first initializes according to the power supply status. Then, the metering core and the application core configure the mapping relationship of all data register addresses and set the communication period, for example, a communication period of 500ms. At the end of each communication period, that is, every 500ms, the application core sends a request frame to the metering core through the serial port. The request frame contains a list of register addresses of the data to be acquired inside the metering core (e.g., voltage register address 0x1000, current register address 0x1001, etc.). The frame also includes a checksum at the end, which is used to verify whether the data has been corrupted during transmission in subsequent processes. Upon receiving a request, the metering core verifies the data, locates it by address, packages it into a response frame, and sends it back. The application core receives the response frame via DMA, verifies and parses it to obtain the business data. A delay time is set and timed after each power-on of the energy meter. If the application core finishes parsing the corresponding frame data within the delay time, it does not notify the business module. For example, if the delay time is set to 2 seconds, and the application core finishes parsing the corresponding frame data within the first 2 seconds after power-on, it does not notify the business module. Otherwise, the application core sends a business notification to the business module. Upon receiving the business notification, the business module reads the business data parsed by the application core and then selects the appropriate processing method based on the data type to store the business data in the energy meter. This application, by setting a delay time, ensures that the metering core has sufficient time to complete internal initialization, stabilize the clock, and establish accurate metering after power-on, avoiding the reporting of erroneous data to the business module before the metering is stable. This guarantees the metering accuracy and data consistency of the energy meter under various startup and operating states, improving the performance and response speed of the energy meter metering system.

[0024] In one implementation, the application chip and the metering chip interact via a UART channel with a baud rate of 115200 and 220 bytes transmitted per round. UART (Universal Asynchronous Receiver / Transmitter) is a hardware circuit (usually integrated within a microcontroller MCU) used to implement serial communication. This hardware circuit and specific pins (requiring at least two lines: TX transmit and RX receive) form the communication path for data transmission. By interacting via the UART channel, the application chip can receive data returned by the metering chip while simultaneously sending instructions to the metering chip, resulting in high communication efficiency.

[0025] In one possible implementation, the power supply state includes a power-off state and a sleep state. When the power supply is in the power-off state (i.e., the meter has just been powered on or a reset has occurred), the power supply of the metering core is first turned off to ensure that it is in the initial state. Then, the application core is configured with global variables related to dual-core communication (such as target register address, data length, etc.). Then, the subsequent dual-core interaction process is executed according to the set communication cycle. When the power supply is in the sleep state (i.e., the meter switches from backup battery power supply to main power supply (AC power)), before fully switching to AC power supply, a communication initialization is performed: the metering core power supply is turned on, the serial communication parameters (baud rate, parity bit, stop bit) are configured, the serial clock and DMA reception are enabled (for efficient data reception), and the judgment state is entered. The stability of AC power supply is continuously detected, and a stabilization time is set. Specifically, the stabilization time is 1 second. When the AC power is stable for 1 second, the "AC power supply state" is officially entered, and the meter runs at full speed. During the switching process, the timing is performed according to the set delay time. During this period, the application core parses the corresponding frame data without notifying the business module.

[0026] In one possible implementation, the specific process of selecting the corresponding processing method to store business data in the electricity meter according to the data type of the business data includes: when the business data is instantaneous data (current, voltage, power, etc.), the business data is directly stored in global variables, and other modules (such as the communication module reporting data and the freeze module storing historical data) can directly read these variables; when the business data is energy processing (pulse count) data, the cumulative pulse count reported by the metering core in this communication is read, the cumulative pulse count recorded in the last successful communication is subtracted, and the difference is stored in the global variable for use by the energy accumulation module.

[0027] In one possible implementation, if communication is successful but data verification fails (the data may be corrupted), the application chip will clear the global variables provided to the business module, thus avoiding over-counting of power due to duplicate or erroneous data.

[0028] The following will be combined with the appendix Figure 2 This application provides a detailed description of the dual-core interactive device for electricity meters provided in its embodiments. It should be noted that the appendix... Figure 2 The dual-core interactive device for the electricity meter shown is used to execute the present application. Figure 1 The methods shown in the embodiments are for illustrative purposes only, illustrating the parts relevant to the embodiments of this application. For specific technical details not disclosed, please refer to this application. Figure 1 The example shown.

[0029] Please see Figure 2 , Figure 2 This is a schematic diagram of the structure provided in an embodiment of this application. For example... Figure 2 As shown, the device includes: The data interaction module 201 is used to initialize the energy meter based on the power status, configure the communication parameters between the metering core and the application core, and, based on the set communication cycle, at the end of each communication cycle, the application core sends a request frame to the metering core. The request frame contains the data address of the data to be acquired, and the metering core packages the data to be acquired into a response frame based on the request frame and sends it to the application core. The service storage module 202 is used to verify and parse the data to be acquired after the application chip receives the response frame to obtain service data. The service module selects the corresponding processing method based on the set delay time and the data type of the service data to store the service data in the electricity meter.

[0030] In one possible implementation, the data interaction module 201 is specifically used for: Turn on the power supply of the metering core, configure the serial communication parameters, and enable serial clock and DMA reception; If the power supply data of the electricity meter remains unchanged within a set stable time, the timing will be based on the set delay time.

[0031] In one possible implementation, the service storage module 202 is specifically used for: During the delay period, the application chip does not communicate with the service module; Outside of the aforementioned delay time, the corresponding processing method is selected based on the data type of the business data to store the business data in the electricity meter.

[0032] In one possible implementation, the service storage module 202 is specifically used for: The business data includes instantaneous data and electrical energy processing data. The instantaneous data includes current, voltage, and power, and the electrical energy processing data includes the number of pulses.

[0033] In one possible implementation, the service storage module 202 is specifically used for: When the business data is instantaneous, it will be stored directly in a global variable. When the business data is electrical energy processing data, read the cumulative pulse count reported by the metering core in this communication, subtract the cumulative pulse count recorded during the last successful communication, calculate the difference between the two cumulative pulse counts, and store the difference in a global variable.

[0034] In one possible implementation, the service storage module 202 is specifically used for: If communication is successful but data verification fails, the application chip will clear the business data and store it in the electricity meter.

[0035] In one possible implementation, the data interaction module 201 is specifically used for: The application chip and the metering chip interact with each other via a UART channel.

[0036] Those skilled in the art will clearly understand that the technical solutions of the embodiments of this application can be implemented by means of software and / or hardware. In this specification, "unit" and "module" refer to software and / or hardware that can independently complete or cooperate with other components to complete a specific function, wherein the hardware may be, for example, a field-programmable gate array (FPGA), an integrated circuit (IC), etc.

[0037] Each processing unit and / or module in the embodiments of this application can be implemented by an analog circuit that implements the functions described in the embodiments of this application, or by software that executes the functions described in the embodiments of this application.

[0038] See Figure 3 It shows a schematic diagram of the structure of an electronic device according to an embodiment of this application, which can be used to implement... Figure 1 The method in the illustrated embodiment. (As shown) Figure 3 As shown, the electronic device 300 may include: at least one central processing unit 301, at least one network interface 304, user interface 303, memory 305, and at least one communication bus 302.

[0039] The communication bus 302 is used to enable communication between these components.

[0040] The user interface 303 may include a display screen and a camera. Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.

[0041] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).

[0042] The central processing unit 301 may include one or more processing cores. The central processing unit 301 connects to various parts within the electronic device 300 using various interfaces and lines. It executes various functions of the terminal 300 and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 305, and by calling data stored in the memory 305. Optionally, the central processing unit 301 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The central processing unit 301 may integrate one or more of the following: a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the central processing unit 301.

[0043] The memory 305 may include random access memory (RAM) or read-only memory. Optionally, the memory 305 may include a non-transitory computer-readable storage medium. The memory 305 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 305 may also be at least one storage device located remotely from the aforementioned central processing unit 301. Figure 3 As shown, the memory 305, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and program instructions.

[0044] exist Figure 3In the illustrated electronic device 300, the user interface 303 is mainly used to provide an input interface for the user and to acquire user input data; while the central processing unit 301 can be used to call the application program stored in the memory 305 and specifically perform the following operations: S101. The energy meter is initialized based on the power state, and the communication parameters between the metering core and the application core are configured. Based on the set communication cycle, at the end of each communication cycle, the application core sends a request frame to the metering core. The request frame contains the data address of the data to be acquired. The metering core packages the data to be acquired into a response frame based on the request frame and sends it to the application core. S102. After receiving the response frame, the application chip verifies and parses the data to be acquired to obtain the service data. The service module selects the corresponding processing method based on the set delay time and the data type of the service data to store the service data in the electricity meter.

[0045] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method. The computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, microdrives, as well as magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic cards or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.

[0046] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0047] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0048] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some service interface; the indirect coupling or communication connection between devices or units may be electrical or other forms.

[0049] 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 units can be selected to achieve the purpose of this embodiment according to actual needs.

[0050] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0051] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory 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 this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0052] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0053] The foregoing description is merely an exemplary embodiment of this disclosure and should not be construed as limiting the scope of this disclosure. Any equivalent changes and modifications made in accordance with the teachings of this disclosure shall still fall within the scope of this disclosure. Those skilled in the art will readily conceive of embodiments of this disclosure upon considering the specification and practicing the disclosure herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not described herein. The specification and embodiments are to be considered exemplary only, and the scope and spirit of this disclosure are defined by the claims.

Claims

1. A dual-core interaction method for an electricity meter, characterized in that, The method includes: The electricity meter is initialized based on the power status, and the communication parameters between the metering chip and the application chip are configured. Based on the set communication cycle, at the end of each communication cycle, the application chip sends a request frame to the metering chip. The request frame contains the data address of the data to be acquired. The metering chip packages the data to be acquired into a response frame based on the request frame and sends it to the application chip. After receiving the response frame, the application chip verifies and parses the data to be acquired to obtain the service data. The service module selects the corresponding processing method based on the set delay time and the data type of the service data to store the service data in the electricity meter.

2. The dual-core interaction method for an electricity meter according to claim 1, characterized in that, The power supply state includes a power-off state and a sleep state. The energy meter is initialized based on the power supply in the sleep state, including: Turn on the power supply of the metering core, configure the serial communication parameters, and enable serial clock and DMA reception; If the power supply data of the electricity meter remains unchanged within a set stable time, the timing will be based on the set delay time.

3. The dual-core interaction method for an electricity meter according to claim 1, characterized in that, The business module selects a corresponding processing method based on the set delay time and the data type of the business data to store the business data in the electricity meter, including: During the delay period, the application chip does not communicate with the service module; Outside of the aforementioned delay time, the corresponding processing method is selected based on the data type of the business data to store the business data in the electricity meter.

4. The dual-core interaction method for an electricity meter according to claim 3, characterized in that, The business data includes instantaneous data and electrical energy processing data. The instantaneous data includes current, voltage, and power, and the electrical energy processing data includes the number of pulses.

5. The dual-core interaction method for an electricity meter according to claim 4, characterized in that, Selecting the corresponding processing method based on the data type of the business data and storing the business data in the electricity meter includes: When the business data is instantaneous, it will be stored directly in a global variable. When the business data is electrical energy processing data, read the cumulative pulse count reported by the metering core in this communication, subtract the cumulative pulse count recorded during the last successful communication, calculate the difference between the two cumulative pulse counts, and store the difference in a global variable.

6. The dual-core interaction method for an electricity meter according to claim 1, characterized in that, If communication is successful but data verification fails, the application chip will clear the business data and store it in the electricity meter.

7. The dual-core interaction method for an electricity meter according to claim 1, characterized in that, The application chip and the metering chip interact with each other via a UART channel.

8. A dual-core interactive device for an electricity meter, characterized in that, The device includes: The data interaction module is used to initialize the energy meter based on the power status, configure the communication parameters between the metering core and the application core, and, based on the set communication cycle, at the end of each communication cycle, the application core sends a request frame to the metering core. The request frame contains the data address of the data to be acquired, and the metering core packages the data to be acquired into a response frame based on the request frame and sends it to the application core. The service storage module is used to verify and parse the data to be acquired after the application chip receives the response frame to obtain service data. The service module selects the corresponding processing method based on the set delay time and the data type of the service data to store the service data in the electricity meter.

9. 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 steps of the method as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, the computer-readable storage medium storing instructions that, when executed on a computer or processor, cause the computer or processor to perform the steps of the method as claimed in any one of claims 1-7.