High-frequency and power-frequency data processing method and system of double-core electric energy meter and electric energy meter
By using high-frequency and power frequency data processing methods in dual-core energy meters, independent acquisition and transmission of power frequency and high-frequency signals are achieved. This solves the problems of narrow sensing frequency band and high coupling between legal and non-legal functions in existing technologies, meets the module independence requirements of the IR46 standard, and provides accurate power system safety monitoring data.
Patent Information
- Application Number
- CN202510993467.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-18
- Publication Date
- 2025-10-28
AI Technical Summary
Existing electricity meters cannot achieve independent acquisition and dual-channel transmission of power frequency and high frequency signals, resulting in a narrow sensing frequency band and high coupling between legal and non-legal functions, which cannot meet the modular decoupling requirements of the IR46 standard.
The high-frequency and power frequency data processing method of the dual-core energy meter is adopted. The power frequency digital signal and the high-frequency current analog signal are acquired through independent first and second processing links, respectively. The analog signal channel and the digital signal channel are then split and transmitted to different processing modules of the management unit to realize differentiated acquisition and parallel processing of power frequency digital signal and high-frequency analog signal.
It achieves the isolation between legal and non-legal metrological functions, meets the IR46 standard's requirements for module independence, provides accurate data for power system safety monitoring, and ensures the high precision and anti-interference capability of legal metrological data.
Smart Images

Figure CN120856730A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power systems, and more particularly to a high-frequency and power frequency data processing method, system, and energy meter for a dual-core energy meter. Background Technology
[0002] In modern power systems, with the rapid development of the Internet of Things for electricity and smart grids, the functional requirements of electricity meters have extended from single metering to multi-dimensional intelligent services. The IR46 standard proposed by the International Organization of Legal Metrology (OIML) requires a strict distinction between legal metrology functions and non-legal management functions to ensure the independence and immutability of the metering module, while giving the management module flexible scalability.
[0003] Existing technologies mainly include dual-core energy meters, single-core dual-core energy meters, and split-type energy meters. None of these can achieve independent acquisition and dual-channel transmission of power frequency and high-frequency signals. Firstly, traditional energy meters can only acquire power frequency signals through a single channel. Acquisition of high-frequency power signals (such as high-frequency current generated by arc faults) relies entirely on the digital sampling rate, resulting in the loss of high-frequency signal characteristics due to insufficient sampling. This makes it impossible to fully perceive real-time changes across a wide frequency band in the power system and effectively identify potential electrical safety hazards. Secondly, current technologies transmit all signals through digital channels and rely on the software processing of the metering unit. This results in deep coupling between legal metering functions and non-legal management functions at both the hardware and software levels. This affects the independence and stability of the metering module and limits the management module's ability to dynamically expand its functions in new power systems, failing to meet the core requirement of modular decoupling in the IR46 standard. These shortcomings lead to significant bottlenecks in power signal transmission and processing in existing energy meters, necessitating a breakthrough in these technological barriers through differentiated signal acquisition and transmission architectures. Summary of the Invention
[0004] This invention provides a high-frequency and power frequency data processing method, system, and energy meter for a dual-core energy meter, which can solve the problems of narrow sensing frequency band and high coupling between legal and non-legal functions in the prior art.
[0005] In a first aspect, embodiments of this application provide a method for processing high-frequency and power frequency data of a dual-core energy meter, including:
[0006] The first power frequency analog signal is obtained through the first processing link, and the first power frequency analog signal is sequentially processed by digital-to-analog conversion through the first processing link to obtain the first power frequency digital signal.
[0007] The first high-frequency current analog signal is obtained through the second processing link, and the first high-frequency current analog signal is filtered through the second processing link to obtain the second high-frequency current analog signal.
[0008] The second high-frequency current analog signal is transmitted to the first processing module of the management unit through a preset analog signal channel, and the first power frequency digital signal is transmitted to the second processing module of the management unit through a preset digital signal channel for use by the management unit.
[0009] This application embodiment acquires power frequency digital signals and high-frequency current analog signals through independent first and second processing links, respectively, and transmits them to different processing modules of the management unit via analog and digital signal channels. This enables differentiated acquisition and parallel processing of power frequency digital signals and high-frequency analog signals: on the one hand, the power frequency signal undergoes filtering, analog-to-digital conversion, and precise calculation via a dedicated link, ensuring high accuracy and anti-interference capability of legal metrology data; on the other hand, the high-frequency signal retains its original wideband characteristics through the analog channel, circumventing digital sampling rate limitations, allowing the management unit to capture high-frequency abnormal signals in the power system, such as arc faults, in real time. The dual-channel transmission architecture further isolates legal metrology functions from non-legal functions, meeting the IR46 standard's requirements for module independence while providing accurate data for power system safety monitoring. Therefore, this application can solve the problems of narrow sensing frequency bands and high coupling between legal and non-legal functions in the prior art.
[0010] As a preferred example of the first aspect, the first processing link includes a first sampling element, a first filtering circuit, a first metering chip, and a metering MCU. Specifically, the first power frequency analog signal is acquired through the first processing link, and the first power frequency analog signal is sequentially subjected to digital-to-analog conversion processing through the first processing link to obtain a first power frequency digital signal.
[0011] The first power frequency analog signal is obtained by the first sampling element, and the high-frequency interference signal in the first power frequency analog signal is removed by the first filtering circuit to obtain the second power frequency analog signal.
[0012] The second power frequency analog signal is processed by analog-to-digital conversion based on the first metering chip to obtain the second power frequency digital signal, and the first power frequency digital signal is obtained by numerical calculation based on the second power frequency digital signal based on the metering MCU.
[0013] In this preferred embodiment, the second high-frequency current analog signal and the first power frequency digital signal are transmitted to the management unit through preset analog signal channels and digital signal channels, respectively. The analog signal channel is directly connected to the management unit by the second filter circuit, and the digital signal channel is connected to the management unit by the metering MCU. This enables independent transmission of the high-frequency analog signal and the power frequency digital signal. This method not only utilizes the analog signal channel to preserve the original continuity and wide-band characteristics of the high-frequency current signal, avoiding the constraints of digital sampling rate limitations on high-frequency signal perception, but also ensures the anti-interference transmission capability of the power frequency signal through the digital signal channel. At the same time, it completely separates the analog signal transmission from the metering unit software processing, realizing hardware decoupling between legal and non-legal metering functions.
[0014] As a preferred example of the first aspect, the acquisition of the first high-frequency current analog signal through the second processing link specifically includes:
[0015] The second processing link includes a high-frequency current transformer;
[0016] The current in the power system is sampled to obtain a first current signal, and the first current signal is transformed by the high-frequency current transformer to obtain a first high-frequency current analog signal.
[0017] In this preferred example, by sampling and transforming the current signal through a high-frequency current transformer, an analog signal containing high-frequency characteristics can be obtained, breaking through the traditional sampling rate limitation to capture the high-frequency components of the power system and providing a signal basis for real-time monitoring of potential electricity safety hazards.
[0018] As a preferred example of the first aspect, after transmitting the first power frequency digital signal to the second processing module through a preset digital signal channel, the method further includes:
[0019] The second high-frequency current analog signal and the first power frequency digital signal transmitted to the management unit are time-aligned using a time synchronization method to obtain the aligned second high-frequency current analog signal and the first power frequency digital signal.
[0020] In this preferred example, by using a time synchronization method to time-align the high-frequency current analog signal and the power frequency digital signal, it is possible to ensure that the two types of signals with different characteristics maintain strict timing consistency on the time axis, so that the management unit can perform joint analysis of wide-band power signals based on a unified time reference.
[0021] As a preferred example of the first aspect, the second high-frequency current analog signal includes a first timestamp, and the first power frequency digital signal includes a second timestamp. Specifically, the time synchronization method for time-aligning the second high-frequency current analog signal and the first power frequency digital signal transmitted to the management unit involves:
[0022] The first timestamp and the second timestamp are subtracted to obtain the first deviation. If the first deviation does not meet the preset time deviation, the alignment fails and the resynchronization mechanism is triggered; otherwise, the alignment succeeds.
[0023] In this preferred example, by adding timestamps to the high-frequency current analog signal and the power frequency digital signal respectively and performing difference calculation, the timing consistency of the two types of signals can be monitored in real time. When the time deviation exceeds the allowable range, the resynchronization mechanism is automatically triggered to ensure the accurate alignment of multi-band signals on the time axis. This mechanism effectively avoids the problem of data timing disorder caused by clock drift or transmission delay, and improves the reliability of the management unit in jointly analyzing mixed signals.
[0024] Secondly, embodiments of this application also provide a high-frequency and power frequency data processing system for a dual-core energy meter, comprising: a first data processing module, a second data processing module, and a data transmission module;
[0025] The first data processing module is used to acquire a first power frequency analog signal through the first processing link, and sequentially perform digital-to-analog conversion processing on the first power frequency analog signal through the first processing link to obtain a first power frequency digital signal;
[0026] The second data processing module is used to acquire a first high-frequency current analog signal through the second processing link, and to filter the first high-frequency current analog signal through the second processing link to obtain a second high-frequency current analog signal.
[0027] The data transmission module is used to transmit the second high-frequency current analog signal to the first processing module of the management unit through a preset analog signal channel, and to transmit the first power frequency digital signal to the second processing module of the management unit through a preset digital signal channel, so that the management unit can use it.
[0028] As a preferred example of the second aspect, the first processing link includes a first sampling element, a first filtering circuit, a first metering chip and a metering MCU, and the first data processing module includes a first processing unit and a second processing unit;
[0029] The first processing unit is configured to acquire the first power frequency analog signal through the first sampling element, and remove high-frequency interference signals from the first power frequency analog signal through the first filtering circuit to obtain the second power frequency analog signal;
[0030] The second processing unit is used to perform analog-to-digital conversion processing on the second power frequency analog signal based on the first metering chip to obtain a second power frequency digital signal, and to perform numerical calculations on the second power frequency digital signal based on the metering MCU to obtain the first power frequency digital signal.
[0031] As a preferred example of the second aspect, the second data processing module includes a third processing unit;
[0032] The second processing link includes a high-frequency current transformer;
[0033] The third processing unit is used to sample the current in the power system to obtain a first current signal, and to perform current transformation on the first current signal through the high-frequency current transformer to obtain a first high-frequency current analog signal.
[0034] As a preferred example of the second aspect, the data transmission module includes a time synchronization unit;
[0035] The time synchronization unit is used to time-align the second high-frequency current analog signal and the first power frequency digital signal transmitted to the management unit based on a time synchronization method, so as to obtain the aligned second high-frequency current analog signal and the first power frequency digital signal.
[0036] As a preferred example of the second aspect, the second high-frequency current analog signal includes a first timestamp, the first power frequency digital signal includes a second timestamp, and the time synchronization unit includes a time synchronization subunit.
[0037] The time synchronization subunit is used to calculate the difference between the first timestamp and the second timestamp to obtain a first deviation. If the first deviation does not meet the preset time deviation, the alignment fails and a resynchronization mechanism is triggered; otherwise, the alignment succeeds.
[0038] In summary, this application's embodiments acquire power frequency digital signals and high-frequency current analog signals through independent first and second processing links, respectively, and transmit them to different processing modules of the management unit via analog and digital signal channels. This enables differentiated acquisition and parallel processing of power frequency digital signals and high-frequency analog signals: on the one hand, the power frequency signal undergoes filtering, analog-to-digital conversion, and precise calculation via a dedicated link, ensuring high accuracy and anti-interference capability of legal metrology data; on the other hand, the high-frequency signal retains its original wideband characteristics through the analog channel, circumventing digital sampling rate limitations, allowing the management unit to capture high-frequency abnormal signals in the power system, such as arc faults, in real time. The dual-channel transmission architecture further isolates legal metrology functions from non-legal functions, meeting the IR46 standard's requirements for module independence while providing accurate data for power system safety monitoring. Therefore, this application can solve the problems of narrow sensing frequency bands and high coupling between legal and non-legal functions in the prior art.
[0039] Another embodiment of the present invention provides a terminal device, including: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the steps of the high-frequency and power frequency data processing method of the dual-core energy meter of the present invention.
[0040] Another embodiment of the present invention provides a computer-readable storage medium item, including: a stored computer program, which, when the computer program is running, controls the device where the computer-readable storage medium is located to perform steps such as the high-frequency and power frequency data processing method of the dual-core energy meter of the present invention. Attached Figure Description
[0041] To more clearly illustrate the technical solution of this application, the 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 from these drawings without creative effort.
[0042] Figure 1 This is a flowchart illustrating an embodiment of a high-frequency and power frequency data processing method for a dual-core energy meter provided by the present invention.
[0043] Figure 2 This is an interactive architecture diagram of an embodiment of a high-frequency and power frequency data processing method for a dual-core energy meter provided by the present invention;
[0044] Figure 3 A data interaction startup flowchart of an embodiment of a high-frequency and power frequency data processing method for a dual-core energy meter provided by the present invention;
[0045] Figure 4This is a module structure diagram of an embodiment of a high-frequency and power frequency data processing system for a dual-core energy meter provided by the present invention. Detailed Implementation
[0046] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.
[0048] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.
[0049] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0050] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.
[0051] In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), similarly, "multiple sets" refers to two or more (including two sets), and "multiple pieces" refers to two or more (including two pieces).
[0052] In the description of the embodiments of this application, unless otherwise expressly specified and limited, technical terms such as "installation," "connection," "joining," and "fixing" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. For those skilled in the art, the specific meaning of the above terms in the embodiments of this application can be understood according to the specific circumstances.
[0053] According to the IR46 standard published by the International Organization of Legal Metrology (OIML), the dual-core architecture design divides the electricity meter into two independent modules: a metering unit and a management unit. The metering unit undertakes legal metering tasks, responsible for the accurate collection, storage, and secure transmission of electricity data. Its hardware configuration and firmware must undergo rigorous legal certification, and subsequent software upgrades are prohibited to ensure the independence and tamper-proof nature of the metering function. The management unit focuses on non-legal business operations, encompassing functions such as communication protocol processing, data visualization, and demand-side management. It supports remote online upgrades to adapt to dynamic changes in power grid operations and meet the flexible expansion needs of intelligent applications. This architecture, through physical and logical isolation, ensures the authority of legal metering while providing open space for innovation in management functions.
[0054] Example 1
[0055] See Figure 1 To address the problems of narrow sensing frequency bands and high coupling between legal and non-legal functions in existing energy meters, an embodiment of the present invention provides a high-frequency and power frequency data processing method for a dual-core energy meter. The dual-core energy meter includes a metering unit and a management unit. The metering unit includes a first processing link and a second processing link. The management unit includes a first processing module and a second processing module. The first processing link is connected to the first processing module via a preset digital signal channel, and the second processing link is connected to the second processing module via a preset analog signal channel. The data processing method includes:
[0056] S1. Obtain a first power frequency analog signal through the first processing link, and sequentially perform digital-to-analog conversion processing on the first power frequency analog signal through the first processing link to obtain a first power frequency digital signal.
[0057] Furthermore, in some embodiments of this application, the first processing link includes a first sampling element, a first filtering circuit, a first metering chip, and a metering MCU. The step of acquiring a first power frequency analog signal through the first processing link and sequentially performing digital-to-analog conversion processing on the first power frequency analog signal through the first processing link to obtain a first power frequency digital signal specifically involves:
[0058] The first power frequency analog signal is obtained by the first sampling element, and the high-frequency interference signal in the first power frequency analog signal is removed by the first filtering circuit to obtain the second power frequency analog signal.
[0059] The second power frequency analog signal is processed by analog-to-digital conversion based on the first metering chip to obtain the second power frequency digital signal, and the first power frequency digital signal is obtained by numerical calculation based on the second power frequency digital signal based on the metering MCU.
[0060] Specifically, such as Figure 2As shown, the first processing link includes a first sampling element, a first filtering circuit, a first metering chip, and a metering MCU. The first sampling element can use a voltage transformer or resistor divider to convert voltages of several hundred volts or even higher into signals of a few volts. This ensures that the sampled voltage signal accurately reflects the changes in the primary grid voltage, including voltage amplitude, frequency, and phase. Simultaneously, it ensures the stability of the sampling process, enabling stable output of the sampled signal even under grid voltage fluctuations. The first filtering circuit can use a low-pass filter to filter out interference signals above a certain frequency (e.g., frequency components several times higher than the grid fundamental frequency) to improve the quality of the voltage signal. This ensures that the filtered voltage signal accurately reflects the actual voltage situation of the grid, providing a high-quality analog signal input to the metering chip, thereby guaranteeing the accuracy of energy metering. The first metering chip converts the analog signal from the first sampling element (voltage sampling element) into a digital signal. This process is achieved through analog-to-digital conversion (ADC) technology, ensuring the digitization accuracy of the signal and providing accurate basic data for subsequent energy metering calculations. For example, continuous analog voltage and current signals can be converted into digital signals of a certain number of bits (e.g., 12-bit, 16-bit, etc.) to meet the accuracy requirements of electricity metering. Preliminary electricity metering calculations are then performed on the converted digital signals, such as calculating basic electricity parameters like active power and reactive power. These calculations are based on specific electricity metering algorithms, using the converted digital signals to obtain preliminary metering results for further processing by the metering MCU and use by the management unit. The metering MCU serves as the core control component of the metering unit, coordinating the operation of the metering chip, filtering circuit, and sampling elements. In the data acquisition section, it controls the metering chip to start and stop data acquisition tasks, and controls the parameter configuration of the filtering circuit to adapt to different signal filtering requirements. Simultaneously, the metering MCU performs preliminary processing and calculations on the acquired data, performing simple numerical calculations on the voltage and current data output by the metering chip. In the communication interaction section, data is exchanged with the management unit through SPI and UART communication interfaces. In SPI communication, as a slave or master device (depending on the specific communication protocol), it completes the transmission (via SPI1) of the sampled raw data or receives instructions from the management unit (via SPI2). At the same time, it receives meter reading instructions and other information from the management unit via UART, or sends some status information to the management unit.
[0061] By transmitting the second high-frequency current analog signal and the first power frequency digital signal to the management unit through preset analog signal channels and digital signal channels respectively, and with the analog signal channel directly connected to the management unit by the second filter circuit and the digital signal channel connected to the management unit by the metering MCU, independent transmission of high-frequency analog signals and power frequency digital signals can be achieved. This method utilizes the analog signal channel to preserve the original continuity and wide-band characteristics of the high-frequency current signal, avoiding the constraints of digital sampling rate limitations on high-frequency signal perception, while ensuring the anti-interference transmission capability of the power frequency signal through the digital signal channel. At the same time, it completely separates the analog signal transmission from the metering unit software processing, realizing hardware decoupling of legal metering functions and non-legal functions.
[0062] S2. Obtain a first high-frequency current analog signal through the second processing link, and filter the first high-frequency current analog signal through the second processing link to obtain a second high-frequency current analog signal.
[0063] Furthermore, in some embodiments of this application, the step of obtaining the first high-frequency current analog signal through the second processing link specifically includes:
[0064] The second processing link includes a high-frequency current transformer;
[0065] The current in the power system is sampled to obtain a first current signal, and the first current signal is transformed by the high-frequency current transformer to obtain a first high-frequency current analog signal.
[0066] Specifically, such as Figure 2 As shown, the second processing link may include a second filtering circuit and a second sampling element (high-frequency current transformer). The second filtering circuit filters the signal from the second sampling element, removing interference components and noise outside the specific frequency band. Similar to the first filtering circuit, a suitable filter structure (such as a low-pass filter) is used to filter out interference signals, ensuring the quality of the current signal. The second sampling element may use sampling methods such as current transformers to convert hundreds of amperes or even larger currents into milliampere-level current signals. This ensures that the sampled current signal can accurately reflect the changes in the primary grid current, including information such as the current amplitude, frequency, and phase, and guarantees the stability and accuracy of the sampling process.
[0067] Specifically, the high-frequency current transformer can use an air-core U-shaped open coil with 150 turns and a frequency response range of not less than 1MHz.
[0068] By sampling and transforming the current signal using a high-frequency current transformer, an analog signal containing high-frequency characteristics can be obtained, breaking through the traditional sampling rate limitation to capture the high-frequency components of the power system and providing a signal basis for real-time monitoring of potential electricity safety hazards.
[0069] S3. The second high-frequency current analog signal is transmitted to the first processing module of the management unit through a preset analog signal channel, and the first power frequency digital signal is transmitted to the second processing module of the management unit through a preset digital signal channel for use by the management unit.
[0070] Furthermore, in some embodiments of this application, after transmitting the first power frequency digital signal to the second processing module through a preset digital signal channel, the method further includes:
[0071] The second high-frequency current analog signal and the first power frequency digital signal transmitted to the management unit are time-aligned using a time synchronization method to obtain the aligned second high-frequency current analog signal and the first power frequency digital signal.
[0072] By aligning the high-frequency analog current signal with the power frequency digital signal using a time synchronization method, it is possible to ensure that the two types of signals with different characteristics maintain strict timing consistency on the time axis, enabling the management unit to perform joint analysis of wide-band power signals based on a unified time reference.
[0073] Furthermore, in some embodiments of this application, the second high-frequency current analog signal includes a first timestamp, and the first power frequency digital signal includes a second timestamp. The time synchronization method for time-aligning the second high-frequency current analog signal and the first power frequency digital signal transmitted to the management unit specifically involves:
[0074] The first timestamp and the second timestamp are subtracted to obtain the first deviation. If the first deviation does not meet the preset time deviation, the alignment fails and the resynchronization mechanism is triggered; otherwise, the alignment succeeds.
[0075] Specifically, to fully explain the above steps, the following scheme will be used as an example:
[0076] like Figure 3 As shown, the management unit and the metering unit interact with each other, and the software involves the data interaction initiation and monitoring process. The specific process is described as follows:
[0077] ① The management unit can set metering parameters and analog channel related parameters in plain text. The metering unit enables characteristic value control according to the permissions, and at the same time decides whether to enable the metering unit's cycle raw data output and the analog channel collaborative enable.
[0078] ② The management unit requests clock synchronization from the metering unit to ensure time synchronization between the metering unit and the management unit. The analog channel multiplies the same clock signal to ensure that the sampling time of the two is consistent when the management unit receives data from the analog channel and the metering unit.
[0079] ③ The management unit sets the cycle output parameters (number of points / mode) and analog communication characteristic parameters (type / quantity) of the metering unit, and synchronously sends configuration commands to the metering unit and the analog channel to obtain the waveform data of the metering unit and the characteristic data of the analog channel. After the metering unit and the management unit modify the configuration parameters, the parameters are saved and will not be lost when power is off.
[0080] ④ The management unit writes version information to the metering unit and verifies the simulation channel timestamp; when reading the version, the metering unit returns the management unit version and simulation channel firmware version stored in its own memory;
[0081] ⑤ The data uploaded by the analog channel and the metering unit will be aligned with the two data streams through timestamps. When the management unit receives the data, it will compare the timestamps of the analog channel and the metering unit. If a time discrepancy is found, the management unit will trigger a resynchronization mechanism to ensure the time sequence consistency of the data.
[0082] Specifically, such as Figure 2 As shown, the preset digital signal channels may include one UART and two SPI channels. The UART is mainly used to read data from the management unit via the metering unit's RS485 or Bluetooth channel; SPI1 outputs raw sampled data unidirectionally from the metering unit to the management unit; SPI2 is used for the management unit to actively read data from the metering unit; the preset analog signal channels may include an analog sampling channel. The specific method for acquiring data through SPI1 is as follows:
[0083] ① The metering unit operates in mode 1 (typically CPOL=0, CPHA=1) via SPI1, with the metering unit acting as the master device to drive the clock and data output. The communication rate is selected based on the meter application: single-phase energy meters support a maximum of 2Mbps, and three-phase energy meters support 6Mbps. Before outputting data, the metering unit needs to wait at least 10μs after pulling CS (chip select) low to ensure that the management unit has sufficient time to complete signal acquisition and synchronization, and then begins to continuously transmit the sampled data for one cycle.
[0084] ② The metering unit samples data on a single power frequency cycle, supporting settings for 64, 128, or 256 sampling points per cycle, with a default setting of 128 points. For a 50Hz power frequency environment, the sampling interval is approximately 156.25μs with 128 points. The acquired raw waveform data is packaged and output according to the set number of sampling points, along with configuration parameters transmitted in little-endian format. These parameters include the number of cycles, meter type, ADC sampling data bit depth, offset decimal places, voltage coefficient, current coefficient, phase coefficient, and neutral current coefficient. The management unit uses these parameters to deduce the actual voltage, current, and phase, ensuring the waveform data is correctly converted into the meter's physical quantities.
[0085] ③ The ADC within the metering unit performs continuous sampling within each power frequency cycle according to the selected number of sampling points. For example, under a 50Hz power grid, the sampling period is 20ms. Furthermore, the management unit and the metering unit are synchronized via clock to ensure consistency between the analog signal and digital data acquisition time, providing precise timing guarantees for subsequent data processing.
[0086] Furthermore, the specific method for obtaining data via SPI2 is as follows:
[0087] ① The management unit operates in mode 1 (CPOL=0, CPHA=1) via SPI2 to achieve bidirectional data transmission. The management unit is responsible for sending control commands and querying data via MOSI; the metering unit is responsible for receiving commands and returning data via MISO. Before data transmission begins, the management unit needs to pull SPI-CS low for at least 10μs to prepare the metering unit for reception. After data transmission is complete, SPI-CS remains low for at least 8 SPI-CLK cycles, then is pulled high and held for at least 50μs to clearly indicate the end of a data frame transmission.
[0088] ② During the transmission phase, the management unit sends a predefined query or control message to the metering unit via MOSI. This message contains an instruction requesting the metering unit to sample data. After transmission, the management unit waits for a response from the metering unit: after data transmission, SPI-CS remains low for a sufficient number of clock cycles to ensure the metering unit can stably receive commands. Next, during the query phase, while waiting for a response from the metering unit, the management unit holds SPI-CS high for at least 24 SPI-CLK cycles, then pulls SPI-CS low and holds it for at least 10μs. At this time, SPI-CLK is enabled to wait for valid data to be received from the metering unit's MISO line. If the metering unit does not respond, it defaults to replying with AAH; in case of an error, it continuously replies with 55H. Finally, after receiving the complete message, the management unit pulls SPI-CS high, completing the entire data exchange process.
[0089] ③ After receiving the query command from the management unit, the metering unit will process and transmit the obtained energy data, including RMS values, power values, and power factor. The RMS values, power values, and power factor in the messages transmitted via SPI2 are calculated by default after collecting 10 waveforms. The management unit periodically sends query commands to obtain the latest data, thereby ensuring the timeliness and accuracy of data updates. The entire process ensures that the management unit can periodically and stably obtain the various energy data returned by the metering unit for subsequent energy monitoring and processing.
[0090] By adding timestamps to the high-frequency current analog signal and the power frequency digital signal respectively and calculating the difference, the timing consistency of the two types of signals can be monitored in real time. When the time deviation exceeds the allowable range, the resynchronization mechanism is automatically triggered to ensure the precise alignment of multi-band signals on the time axis. This mechanism effectively avoids the problem of data timing disorder caused by clock drift or transmission delay, and improves the reliability of the management unit in jointly analyzing mixed signals.
[0091] In summary, this application's embodiments acquire power frequency digital signals and high-frequency current analog signals through independent first and second processing links, respectively, and transmit them to different processing modules of the management unit via analog and digital signal channels. This enables differentiated acquisition and parallel processing of power frequency digital signals and high-frequency analog signals: on the one hand, the power frequency signal undergoes filtering, analog-to-digital conversion, and precise calculation via a dedicated link, ensuring high accuracy and anti-interference capability of legal metrology data; on the other hand, the high-frequency signal retains its original wideband characteristics through the analog channel, circumventing digital sampling rate limitations, allowing the management unit to capture high-frequency abnormal signals in the power system, such as arc faults, in real time. The dual-channel transmission architecture further isolates legal metrology functions from non-legal functions, meeting the IR46 standard's requirements for module independence while providing accurate data for power system safety monitoring. Therefore, this application can solve the problems of narrow sensing frequency bands and high coupling between legal and non-legal functions in the prior art.
[0092] Example 2
[0093] like Figure 4 As shown, based on the above method embodiments, corresponding device embodiments are provided;
[0094] One embodiment of the present invention provides a high-frequency and power frequency data processing system for a dual-core energy meter, comprising: a first data processing module 41, a second data processing module 42, and a data transmission module 43;
[0095] Further, in some embodiments of this application, the first data processing module 41 is used to acquire a first power frequency analog signal through the first processing link, and sequentially perform digital-to-analog conversion processing on the first power frequency analog signal through the first processing link to obtain a first power frequency digital signal; the second data processing module 42 is used to acquire a first high-frequency current analog signal through the second processing link, and filter the first high-frequency current analog signal through the second processing link to obtain a second high-frequency current analog signal; the data transmission module 43 is used to transmit the second high-frequency current analog signal to the first processing module of the management unit through a preset analog signal channel, and transmit the first power frequency digital signal to the second processing module of the management unit through a preset digital signal channel for use by the management unit.
[0096] Furthermore, in some embodiments of this application, the first data processing module includes a first processing unit and a second processing unit; the first processing link includes a first sampling element, a first filtering circuit, a first metering chip, and a metering MCU; the first processing unit is used to acquire the first power frequency analog signal through the first sampling element, remove high-frequency interference signals in the first power frequency analog signal through the first filtering circuit, and obtain a second power frequency analog signal; the second processing unit is used to perform analog-to-digital conversion processing on the second power frequency analog signal based on the first metering chip to obtain a second power frequency digital signal, and perform numerical calculation on the second power frequency digital signal based on the metering MCU to obtain the first power frequency digital signal.
[0097] Furthermore, in some embodiments of this application, the second data processing module includes a third processing unit; the second processing link includes a high-frequency current transformer; the third processing unit is used to sample the current in the power system to obtain a first current signal, and to perform current transformation on the first current signal through the high-frequency current transformer to obtain a first high-frequency current analog signal.
[0098] Furthermore, in some embodiments of this application, the data transmission module includes a time synchronization unit; the time synchronization unit is used to time-align the second high-frequency current analog signal and the first power frequency digital signal transmitted to the management unit based on a time synchronization method, so as to obtain the aligned second high-frequency current analog signal and the first power frequency digital signal.
[0099] Furthermore, in some embodiments of this application, the time synchronization unit includes a time synchronization subunit; the second high-frequency current analog signal includes a first timestamp, and the first power frequency digital signal includes a second timestamp; the time synchronization subunit is used to calculate the difference between the first timestamp and the second timestamp to obtain a first deviation; if the first deviation does not meet the preset time deviation, the alignment fails and a resynchronization mechanism is triggered; otherwise, the alignment succeeds.
[0100] In summary, this application's embodiments acquire power frequency digital signals and high-frequency current analog signals through independent first and second processing links, respectively, and transmit them to different processing modules of the management unit via analog and digital signal channels. This enables differentiated acquisition and parallel processing of power frequency digital signals and high-frequency analog signals: on the one hand, the power frequency signal undergoes filtering, analog-to-digital conversion, and precise calculation via a dedicated link, ensuring high accuracy and anti-interference capability of legal metrology data; on the other hand, the high-frequency signal retains its original wideband characteristics through the analog channel, circumventing digital sampling rate limitations, allowing the management unit to capture high-frequency abnormal signals in the power system, such as arc faults, in real time. The dual-channel transmission architecture further isolates legal metrology functions from non-legal functions, meeting the IR46 standard's requirements for module independence while providing accurate data for power system safety monitoring. Therefore, this application can solve the problems of narrow sensing frequency bands and high coupling between legal and non-legal functions in the prior art.
[0101] For more detailed steps and working principles of this embodiment, please refer to the relevant description in Embodiment 1, but not limited to these descriptions.
[0102] It is understood that the above-described device embodiments correspond to the method embodiments of the present invention, and can implement the high-frequency and power frequency data processing method for dual-core energy meters provided by any of the above-described method embodiments of the present invention.
[0103] It should be noted that the device embodiments described above are merely illustrative, and some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can specifically be implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.
[0104] Example 3
[0105] Based on the above method embodiments, corresponding physical device embodiments are provided;
[0106] An embodiment of the present invention provides a dual-core energy meter, which is used to implement the high-frequency and power frequency data processing method of the dual-core energy meter according to any one of the present invention. The dual-core energy meter includes a metering unit and a management unit. The metering unit includes a first sampling element, a second sampling element, a first filtering circuit, a second filtering circuit, a metering chip, and a metering MCU. The management unit includes a first processing module and a second processing module. The first sampling element is connected to the first filtering circuit, the first filtering circuit is connected to the metering chip, the metering chip is connected to the metering MCU, the metering MCU is connected to the first processing module of the management unit through a preset digital signal channel, the second sampling element is connected to the second filtering circuit, and the second filtering circuit is connected to the second processing module of the management unit through a preset analog signal channel.
[0107] Example 4
[0108] Based on the above embodiments of the high-frequency and power frequency data processing method for dual-core energy meters, another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the high-frequency and power frequency data processing method for dual-core energy meters according to any embodiment of the present invention.
[0109] For example, in this embodiment, the computer program can be divided into one or more modules, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the terminal device.
[0110] The terminal device may be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.
[0111] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting all parts of the terminal device via various interfaces and lines.
[0112] Example 5
[0113] Based on the above-described method embodiments, another embodiment of the present invention provides a computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to execute the high-frequency and power frequency data processing method of the dual-core energy meter described in any of the above-described method embodiments of the present invention.
[0114] The modules / units integrated in the device / terminal equipment, if implemented as software functional units and sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.
[0115] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for processing high-frequency and power frequency data of a dual-core energy meter, characterized in that, The dual-core energy meter includes a metering unit and a management unit. The metering unit includes a first processing link and a second processing link. The management unit includes a first processing module and a second processing module. The first processing link is connected to the first processing module through a preset digital signal channel, and the second processing link is connected to the second processing module through a preset analog signal channel. The data processing method includes: The first power frequency analog signal is obtained through the first processing link, and the first power frequency analog signal is sequentially processed by digital-to-analog conversion through the first processing link to obtain the first power frequency digital signal. The first high-frequency current analog signal is obtained through the second processing link, and the first high-frequency current analog signal is filtered through the second processing link to obtain the second high-frequency current analog signal. The second high-frequency current analog signal is transmitted to the first processing module of the management unit through a preset analog signal channel, and the first power frequency digital signal is transmitted to the second processing module of the management unit through a preset digital signal channel for use by the management unit.
2. The high-frequency and power frequency data processing method for a dual-core energy meter as described in claim 1, characterized in that, The first processing link includes a first sampling element, a first filtering circuit, a first metering chip, and a metering MCU; the step of acquiring a first power frequency analog signal through the first processing link and sequentially performing digital-to-analog conversion processing on the first power frequency analog signal through the first processing link to obtain a first power frequency digital signal specifically involves: The first power frequency analog signal is obtained by the first sampling element, and the high-frequency interference signal in the first power frequency analog signal is removed by the first filtering circuit to obtain the second power frequency analog signal. The second power frequency analog signal is processed by analog-to-digital conversion based on the first metering chip to obtain the second power frequency digital signal, and the first power frequency digital signal is obtained by numerical calculation based on the second power frequency digital signal based on the metering MCU.
3. The high-frequency and power frequency data processing method for a dual-core energy meter as described in claim 1, characterized in that, The acquisition of the first high-frequency current analog signal through the second processing link specifically includes: The second processing link includes a high-frequency current transformer; The current in the power system is sampled to obtain a first current signal, and the first current signal is transformed by the high-frequency current transformer to obtain a first high-frequency current analog signal.
4. A high-frequency and power frequency data processing method for a dual-core energy meter as described in any one of claims 1-3, characterized in that, After transmitting the first power frequency digital signal to the second processing module through a preset digital signal channel, the process further includes: The second high-frequency current analog signal and the first power frequency digital signal transmitted to the management unit are time-aligned using a time synchronization method to obtain the aligned second high-frequency current analog signal and the first power frequency digital signal.
5. The high-frequency and power frequency data processing method for a dual-core energy meter as described in claim 4, characterized in that, The second high-frequency current analog signal includes a first timestamp, and the first power frequency digital signal includes a second timestamp. The time synchronization method for time-aligning the second high-frequency current analog signal and the first power frequency digital signal transmitted to the management unit specifically involves: The first timestamp and the second timestamp are subtracted to obtain the first deviation. If the first deviation does not meet the preset time deviation, the alignment fails and the resynchronization mechanism is triggered; otherwise, the alignment succeeds.
6. A high-frequency and power frequency data processing system for a dual-core energy meter, characterized in that, The dual-core energy meter includes a metering unit and a management unit. The metering unit includes a first processing link and a second processing link. The management unit includes a first processing module and a second processing module. The first processing link is connected to the first processing module through a preset digital signal channel, and the second processing link is connected to the second processing module through a preset analog signal channel. The high-frequency and power frequency data processing system of the dual-core energy meter includes a first data processing module, a second data processing module, and a data transmission module. The first data processing module is used to acquire a first power frequency analog signal through a first processing link, and sequentially perform digital-to-analog conversion processing on the first power frequency analog signal through the first processing link to obtain a first power frequency digital signal; The second data processing module is used to acquire a first high-frequency current analog signal through a second processing link, and to filter the first high-frequency current analog signal through the second processing link to obtain a second high-frequency current analog signal. The data transmission module is used to transmit the second high-frequency current analog signal to the first processing module of the management unit through a preset analog signal channel, and to transmit the first power frequency digital signal to the second processing module of the management unit through a preset digital signal channel, so that the management unit can use it.
7. The high-frequency and power frequency data processing system for a dual-core energy meter as described in claim 6, characterized in that, The first processing link includes a first sampling element, a first filtering circuit, a first metering chip, and a metering MCU; the first data processing module includes a first processing unit and a second processing unit. The first processing unit is configured to acquire the first power frequency analog signal through the first sampling element, and remove high-frequency interference signals from the first power frequency analog signal through the first filtering circuit to obtain the second power frequency analog signal; The second processing unit is used to perform analog-to-digital conversion processing on the second power frequency analog signal based on the first metering chip to obtain a second power frequency digital signal, and to perform numerical calculations on the second power frequency digital signal based on the metering MCU to obtain the first power frequency digital signal.
8. The high-frequency and power frequency data processing system for a dual-core energy meter as described in claim 6, characterized in that, The second data processing module includes a third processing unit; The second processing link includes a high-frequency current transformer; The third processing unit is used to sample the current in the power system to obtain a first current signal, and to perform current transformation on the first current signal through the high-frequency current transformer to obtain a first high-frequency current analog signal.
9. The high-frequency and power frequency data processing system for a dual-core energy meter as described in claim 6, characterized in that, The data transmission module includes a time synchronization unit; The time synchronization unit is used to time-align the second high-frequency current analog signal and the first power frequency digital signal transmitted to the management unit based on a time synchronization method, so as to obtain the aligned second high-frequency current analog signal and the first power frequency digital signal.
10. The high-frequency and power frequency data processing system for a dual-core energy meter as described in claim 9, characterized in that, The second high-frequency current analog signal includes a first timestamp, the first power frequency digital signal includes a second timestamp, and the time synchronization unit includes a time synchronization subunit; The time synchronization subunit is used to calculate the difference between the first timestamp and the second timestamp to obtain a first deviation. If the first deviation does not meet the preset time deviation, the alignment fails and a resynchronization mechanism is triggered; otherwise, the alignment succeeds.
11. A dual-core energy meter, characterized in that, The dual-core energy meter is used to implement the high-frequency and power frequency data processing method of the dual-core energy meter according to any one of claims 1-5. The dual-core energy meter includes a metering unit and a management unit. The metering unit includes a first sampling element, a second sampling element, a first filtering circuit, a second filtering circuit, a metering chip, and a metering MCU. The management unit includes a first processing module and a second processing module. The first sampling element is connected to the first filtering circuit, the first filtering circuit is connected to the metering chip, the metering chip is connected to the metering MCU, the metering MCU is connected to the first processing module of the management unit through a preset digital signal channel, the second sampling element is connected to the second filtering circuit, and the second filtering circuit is connected to the second processing module of the management unit through a preset analog signal channel.
Citation Information
Patent Citations
Optical fiber current sensor harmonic superposition test system and method and measurement system
CN116068474A
Data processing method and device, electronic equipment and storage medium
CN116073832A
Digital output current measurement method and system based on TMR array
CN119224419A
Intelligent electric energy meter integrated with fault arc detection function
CN120142751A
Digital electronic energy computing device and its method
CN1776438A
Cited By
Intelligent electric meter energy management method oriented to light storage and charging scene and intelligent electric meter
CN122068445A
Smart meter energy management method for optical storage and charging scene and smart meter
CN122068445B