SINGLE-PHASE CURRENT MEASURING CHIP AND SMART INTERNET OF THINGS COUNTER BASED ON THE IR46 STANDARD
Patent Information
- Application Number
- DE602022028663
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-12-27
- Filing Date
- 2022-09-07
- Publication Date
- 2026-01-14
- Estimated Expiration
- 2042-09-07
AI Technical Summary
The existing single-phase intelligent Internet of Things electric energy meters lack a suitable metering chip that meets the IR46 standard, leading to issues with electrical isolation and reliable connection between modules, and the need for complex data correction and transmission, which affects real-time performance.
A single-phase electric energy metering chip with integrated current and voltage signal acquisition and correction units, full-wave and harmonic measurement units, terminal temperature measurement, and communication interfaces, along with an electrical isolation circuit, to ensure accurate data processing and simplified module connections.
The solution provides reliable electrical isolation, simplified design, and reduced costs while ensuring real-time data processing and compliance with the IR46 standard, enhancing safety and performance of the next-generation intelligent meters.
Description
TECHNICAL FIELD
[0001] The present invention belongs to the field of electric power, and particularly relates to a single-phase electric energy metering chip and intelligent Internet of Things meter based on an IR46 standard.BACKGROUND
[0002] A new-generation single-phase intelligent Internet of Things electric energy meter adopts a multi-module design, and mainly comprises a metering core module and a management core module, wherein the metering core module is mainly responsible for electric energy metering, and the management core module is responsible for data processing and other services, and there is a large amount of data interaction between the two modules. Moreover, electrical isolation needs to be performed between the two modules. There is no single-phase metering chip that meets requirements in the market at present, the metering core module can only be implemented by a single-phase metering SOC (System on Chip) chip, which is namely a MCU (Microcontroller Unit) with a metering module, there are many interfaces with complicated functions between the metering core module and the management core module in the implementation mode, and there is frequent data exchange between the management core module and the metering core module, so that there are always the problems of electrical isolation and reliable connection between modules.
[0003] IR46: International Recommendation 46, International recommendations for active electric energy meters.
[0004] Chinese patent publication No. CN214174475U discloses a single-phase smart meter and its metering module, which comprises a metering chip that communicates with the electric supply and is used for metering electric energy parameters, a metering MCU that is connected with the metering chip, a management MCU that is connected to the metering MCU, and an isolation circuit that is connected to the signal interface of the metering chip and the signal interface of the metering MCU and is used for forming an electrical isolation between the two. However, the full-wave data, the harmonic data and the original waveform data that the single-phase smart meter sends to the metering MCU, the management MCU and the function expansion modules are not corrected. The metering MCU, the management MCU and the function expansion modules need to correct the data, so that cannot guarantee the real-time performance of data.SUMMARY
[0005] Object of invention: the technical problem to be solved by the present invention is to provide a single-phase electric energy metering chip and intelligent Internet of Things meter based on an IR46 standard aiming at the defects in the prior art.
[0006] In order to solve the above technical problem, in a first aspect, a single-phase electric energy metering chip based on an IR46 standard is disclosed, which comprises a current and voltage signal acquisition and correction unit, a full-wave measurement and metering unit, a harmonic measurement and metering unit, an original sampled data processing unit, a terminal temperature measurement unit, a communication interface, an energy output interface and an original waveform data output port, wherein, the current and voltage signal acquisition and correction unit is configured for performing analog-to-digital conversion on a voltage signal and a current signal, and performing phase and gain correction on the signals subjected to the analog-to-digital conversion to obtain corrected data of the voltage signal and corrected data of the current signal; the full-wave measurement and metering unit is configured for calculating and obtaining full-wave data according to the corrected data of the voltage signal and the corrected data of the current signal, and the full-wave data comprises a full-wave effective value, full-wave power, a grid frequency, a power factor and full-wave energy data; the harmonic measurement and metering unit is configured for calculating and obtaining harmonic data according to the corrected data of the voltage signal and the corrected data of the current signal, and the harmonic data comprises a harmonic effective value, harmonic power and harmonic energy data; the original waveform data processing unit is configured for processing the corrected data of the voltage signal and / or the corrected data of the current signal to obtain waveform data; the terminal temperature measurement unit comprises acquisition and correction of a temperature measurement signal, and is configured for measuring and monitoring temperatures of four wiring terminals of an electric energy meter to obtain terminal temperature measurement data; the communication interface is configured for communicating with a metering main control chip, and the metering main control chip controls the single-phase electric energy metering chip through the communication interface, and reads the full-wave data, the harmonic data and the terminal temperature measurement data; the energy output interface is configured for outputting the full-wave energy data and the harmonic energy data; and the original waveform data output port is configured for outputting the waveform data in an active output mode.
[0007] In combination with the first aspect, optionally, the current signal comprises a live wire current signal and a zero wire current signal, and the current and voltage signal acquisition and correction unit comprises a first acquisition and correction subunit, a second acquisition and correction subunit and a third acquisition and correction subunit, the first acquisition and correction subunit comprises a first analog-to-digital converter and a voltage signal channel, the first analog-to-digital converter is configured for performing the analog-to-digital conversion on the voltage signal to obtain a voltage digital signal; and the voltage signal channel is configured for performing the phase and gain correction on the voltage digital signal to obtain the corrected data of the voltage signal; the second acquisition and correction subunit and the third acquisition and correction subunit both comprise a first analog-to-digital converter, a digital integrator and a current signal channel, and the current signal channel and the voltage signal channel have the same structure; and considering sampling synchronization of the voltage and current signals, three completely independent first analog-to-digital converters are needed to sample the voltage and current signals.
[0008] The second acquisition and correction subunit is input with the live wire current signal and outputs corrected data of the live wire current signal; the third acquisition and correction subunit is input with the zero wire current signal and outputs corrected data of the zero wire current signal; and the live wire and zero wire current signals are separately subjected to phase-angle and gain correction, with a correction resolution capable of reaching one ten-thousandth. When the live wire current signal and the zero wire current signal are sampled and obtained by a Rogowski coil, the digital integrator is turned on; and when the live wire current signal and the zero wire current signal are obtained by other means, such as a resistor and a current transformer, the digital integrator is turned off. The corrected data comprises a direct-current component mean value, non-high-pass data, high-pass data, asynchronously sampled data and synchronously sampled data of a corresponding signal, and the asynchronously sampled data and the synchronously sampled data are output in a DMA (Direct Memory Access) mode.
[0009] The non-high-pass data, the high-pass data, the asynchronously sampled data and the synchronously sampled data of the corresponding signal may be used for calculating effective values, power, energy and the like by the full-wave measurement and metering unit and the harmonic measurement and metering unit; and the asynchronously sampled data and the synchronously sampled data also need to be output to a metering main control chip, a main control chip of a management core module, a main control chip of an extension module 1 and a main control chip of an extension module 2, these main control chips may be used to do some self-operations, and a real-time performance of data can be guaranteed through DMA output.
[0010] In combination with the first aspect, optionally, the voltage signal channel comprises a metering correction circuit, and the metering correction circuit comprises a phase correction circuit, a down-sampling circuit, a low-pass filter, a high-pass filter, a direct-current automatic compensation circuit, a first arithmetic unit, a gain correction circuit and a first selector, the phase correction circuit is configured for performing metering phase correction on the voltage digital signal to obtain metering-phase-corrected data; the down-sampling circuit is configured for performing down-sampling on the metering-phase-corrected data to obtain down-sampled data; the low-pass filter is configured for performing low-pass filtration on the down-sampled data to obtain a direct-current component mean value of the voltage signal; the direct-current automatic compensation circuit is configured for performing direct-current compensation on the direct-current component mean value of the voltage signal to obtain direct-current-compensated data; and when the direct-current automatic compensation circuit is turned off, the direct-current-compensated data is zero; the first arithmetic unit is configured for subtracting the direct-current-compensated data from the down-sampled data to obtain a first arithmetic value; the high-pass filter is configured for performing high-pass filtration on the down-sampled data to obtain a second alternating-current component value; the gain correction circuit is configured for performing metering gain correction on the first arithmetic value and the second alternating-current component value respectively, and after the first arithmetic value passes through the gain correction circuit, non-high-pass data of the voltage signal is obtained; and after the second alternating-current component value passes through the gain correction circuit, high-pass data of the voltage signal is obtained; and the first selector is configured for selecting the non-high-pass data of the voltage signal or the high-pass data of the voltage signal to obtain asynchronously sampled data of the voltage signal.
[0011] In combination with the first aspect, optionally, the voltage signal channel further comprises a waveform correction circuit, and the waveform correction circuit comprises a phase correction circuit, a synchronous sampling circuit, a second arithmetic unit and a gain correction circuit, the phase correction circuit is further configured for performing waveform phase correction on the voltage digital signal to obtain waveform-phase-corrected data; the synchronous sampling circuit is configured for performing synchronous sampling on the waveform-phase-corrected data to obtain synchronously sampled data; and Traditional error correction is changed from traditional separate correction of effective values and power into correction of original data sampled by the first analog-to-digital converter, which has the advantages that: a) the correction is simpler, and b) it is unnecessary to correct the original waveform data transmitted to the management core module and other modules.
[0012] The second arithmetic unit is configured for subtracting the direct-current-compensated data from the synchronously sampled data to obtain a third arithmetic value; and the gain correction circuit is further configured for performing waveform gain correction on the third arithmetic value to obtain synchronously sampled data of the voltage signal.
[0013] In combination with the first aspect, optionally, the harmonic effective value comprises M-order harmonic and total harmonic current and voltage effective values, the harmonic power comprises M-order harmonic and total harmonic active and reactive power, and the harmonic energy data comprises M-order harmonic and total harmonic active and reactive energy data; and M represents a total number of harmonic waves, and 1 ≤ M ≤ 41; the harmonic measurement and metering unit comprises an FFT (Fast Fourier Transform) algorithm subunit, a 1-order to M-order harmonic data gain compensation circuit and an energy integration circuit, the synchronously sampled data of the voltage signal and synchronously sampled data of the current signal are put into a data buffer area inside the single-phase electric energy metering chip as data sources, and the FFT algorithm subunit performs harmonic operation on the synchronously sampled data of the voltage signal and the synchronously sampled data of the current signal every other period T FFT to obtain harmonic operation results; the 1-order to M-order harmonic data gain compensation circuit performs gain compensation on the harmonic operation results to obtain M-order harmonic current and voltage effective values, M-order harmonic active power and M-order harmonic reactive power respectively; and the energy integration circuit performs energy integration operation on the M-order harmonic active power and the M-order harmonic reactive power respectively, and after the M-order harmonic active power passes through the energy integration circuit, the M-order harmonic and total harmonic active energy data is obtained; and after the M-order harmonic reactive power passes through the energy integration circuit, the M-order harmonic and total harmonic reactive energy data is obtained.
[0014] In combination with the first aspect, optionally, the terminal temperature measurement unit comprises a channel selection subunit, a second analog-to-digital converter, an analog gain circuit and first to fourth gain correction circuits, the channel selection subunit is configured for selecting a terminal temperature signal from a first live wire terminal, a second live wire terminal, a first zero wire terminal and a second zero wire terminal to enter the second analog-to-digital converter; the second analog-to-digital converter is configured for performing analog-to-digital conversion on the terminal temperature signal to obtain a terminal temperature digital signal; and considering an amplitude and a measurement accuracy of the input terminal temperature signal, the second analog-to-digital converter may be different from the first analog-to-digital converter, and an accuracy of the second analog-to-digital converter is 16 bits. Because it is unnecessary to update the temperature data so quickly, only one second analog-to-digital converter is needed for time division multiplexing. An input impedance of the second analog-to-digital converter is required to be above 200 K.
[0015] The analog gain circuit is configured for obtaining a terminal temperature gain value from the terminal temperature digital signal; and the first to fourth gain correction circuits are configured for performing gain correction on a first live wire terminal temperature gain value, a second live wire terminal temperature gain value, a first zero wire terminal temperature gain value and a second zero wire terminal temperature gain value respectively to obtain corresponding temperature effective values.
[0016] In combination with the first aspect, optionally, a number of sampling points of each cycle of the first analog-to-digital converter is N ADC1 , and a synchronous sampling function is needed, which means that, with a change of a power grid frequency, the number of sampling points every cycle is fixed. In order to ensure a bandwidth of metering, N ADC1 ≥128, and accuracy of the first analog-to-digital converter is 22 bits, so that the corrected data of the voltage signal and the corrected data of the current signal are 22 bits.
[0017] In combination with the first aspect, optionally, the original waveform data processing unit comprises a channel selection subunit, an output point number processing subunit and a data framing processing subunit, the channel selection subunit is configured for selecting the waveform data to output the corrected data of the voltage signal and / or the corrected data of the current signal, and selecting the asynchronously sampled data or the synchronously sampled data in the corrected data; and the current and voltage signal acquisition and correction unit sends the asynchronously sampled data or the synchronously sampled data to the channel selection subunit after each sampling point is completed, and the asynchronously sampled data or the synchronously sampled data are both represented by three bytes; the output point number processing subunit is configured for selecting a number of output points according to the number of sampling points output by the asynchronously sampled data or the synchronously sampled data every cycle to obtain the asynchronously sampled data or the synchronously sampled data after output point number processing; when 128≤N ADC1 <256, the number of output points is 128; and when N ADC1 ≥256, the number of output points is 128 or 256; the data framing processing subunit is configured for performing data framing processing on the asynchronously sampled data or the synchronously sampled data after output point number processing, and a waveform data format after processing is: frame header+U+IA+IB+checksum; wherein, the frame header is one byte; U represents the corrected data of the voltage signal, U = U_Byte0 +U_Byte1 + U_Byte2, and U _Byte0 to U_Byte2 represent three byte representations of the corrected data of the voltage signal respectively; Ia represents the corrected data of the live wire current signal, Ia = Ia_Byte0 + Ia_Byte1 + Ia _Byte2, and Ia _Byte0 to Ia_Byte2 represent three byte representations of the corrected data of the live wire current signal respectively; Ib represents the corrected data of the zero wire current signal, Ib = Ib_Byte0 + Ib_Byte1 + Ib_Byte2, and Ib _Byte0 to Ib_Byte2 represent three byte representations of the corrected data of the zero wire current signal respectively; U+Ia+Ib is adjusted according to a configuration of a sampled original data output control register; and checksum is an inverse of an accumulated sum of the corrected data of the voltage signal and / or the corrected data of the current signal, plus 0x33.
[0018] A waveform is processed in the single-phase electric energy metering chip to meet a requirement of a next-generation Internet of Things intelligent electric energy meter for a transmission data format of waveform data, thus reducing resource expenditures of the main control chip of the management core module, the main control chip of the extension module 1 and the main control chip of the extension module 2.
[0019] In combination with the first aspect, optionally, the communication interface adopts UART (Universal Asynchronous Receiver / Transmitter) communication, and a Baud rate is adaptive within a range of 1200 bps to 19200 bps; and more than one energy output port is provided, energy data is output in a square wave mode, and a high level of a square wave lasts for 80 ms; and a type of the energy data output by the energy output port is capable of being configured through a CF (Calibration Frequency) pulse output control register.
[0020] In a second aspect, an intelligent Internet of Things meter based on an IR46 standard is disclosed, which comprises a metering core module, wherein the metering core module comprises the single-phase electric energy metering chip above and a metering main control chip, and an electrical isolation circuit with a withstand voltage strength of 4 KV is used between the single-phase electric energy metering chip and the metering main control chip; and the metering core module is designed by combining the single-phase electric energy metering chip with a general main control chip, and a position of electrical isolation is between the single-phase electric energy metering chip and the metering main control chip, which not only makes the electrical isolation circuit more simple and reliable, but also reduces a cost.
[0021] Beneficial effects: by adopting the metering core module designed by combining the single-phase electric energy metering chip based on the IR46 standard provided by the present application with the general main control chip, an isolation circuit design can be simplified to completely avoid contact between a human body and a power grid, so that higher safety is achieved, the problems of electrical isolation and reliable connection between modules are well solved, and the metering requirement of the next-generation intelligent Internet of Things electric energy meter can be fully met. Meanwhile, the single-phase electric energy metering chip can greatly simplify a design of the next-generation intelligent Internet of Things meter, and reduce development and production costs of the next-generation intelligent Internet of Things meter.BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The present invention is further described in detail hereinafter with reference to the drawings and specific embodiments, and the advantages of the above and / or other aspects of the present invention will be clearer. FIG. 1 is a first schematic structural diagram of a new-generation single-phase intelligent Internet of Things meter in the prior art. FIG. 2 is a schematic diagram of assemblies of the new-generation single-phase intelligent Internet of Things meter in the prior art. FIG. 3 is a second schematic structural diagram of the new-generation single-phase intelligent Internet of Things meter in the prior art. FIG. 4 is a schematic diagram of an interface between a metering core module and a management core module in the prior art. FIG. 5 is a schematic structural diagram of an intelligent Internet of Things meter based on an IR46 standard provided by an embodiment of the present application. FIG. 6 is a schematic structural diagram of a single-phase electric energy metering chip based on an IR46 standard provided by the embodiment of the present application. FIG. 7 is a schematic structural diagram of a current and voltage signal acquisition and correction unit in the single-phase electric energy metering chip based on the IR46 standard provided by the embodiment of the present application. FIG. 8 is a schematic structural diagram of a harmonic measurement and metering unit in the single-phase electric energy metering chip based on the IR46 standard provided by the embodiment of the present application. FIG. 9 is a schematic structural diagram of a terminal temperature measurement unit in the single-phase electric energy metering chip based on the IR46 standard provided by the embodiment of the present application. FIG. 10 is a schematic structural diagram of an original waveform data processing unit in the single-phase electric energy metering chip based on the IR46 standard provided by the embodiment of the present application. DETAILED DESCRIPTION
[0023] Embodiments of the present invention are described hereinafter with reference to the drawings.
[0024] A new-generation single-phase intelligent Internet of Things meter adopts a multi-core modularization design concept, and realizes mutual independence between a legal metering function and other functions, and a functional block diagram and a schematic diagram of assemblies are shown in FIG. 1 and FIG. 2: 1. A new-generation intelligent electric energy meter is mainly composed of a metering core module, a management core module, function extension modules, an uplink module and other structural assemblies. 2. When mounted and used, the metering core module 2 is assembled with a bottom case 1 and an upper cover assembly 3 into a whole to be connected with a power line, and the management core module 5, the uplink module 6, the function extension modules 71 and 72, and a battery box assembly 4 may be hot-swapped and replaced if permitted. A wiring terminal 21 is an interface for connecting the intelligent electric energy meter with a power grid, and a terminal base 22 is a mounting wiring terminal for fixing the metering core module 2. 3. As a metering standard instrument, the metering core module cannot be replaced, and a program cannot be upgraded. 4. In order to ensure the safety of personnel, the metering core module and other functional modules must be subjected to electrical isolation.
[0025] As mentioned earlier, because of having no single-phase metering chip that meets the requirements, the existing metering core module of the new-generation single-phase intelligent Internet of Things electric energy meter can only be implemented by an electric energy metering SoC chip, and the whole single-phase intelligent Internet of Things electric energy meter designed based on this solution is shown in FIG. 3: 1. The metering core module is designed into the SoC chip with peripherals such as a metering function, an MCU and an RTC (Real Time Clock). 2. Because the SoC solution is adopted, the whole metering core module is actually a high-voltage area to ensure a safe hot-swap requirement of the management core module. There is isolation with a withstand voltage strength of 4 KV between interfaces of the metering core module and the management core module. 3. Because current and voltage waveform data of the metering core module need to be transmitted to the function extension module, the isolation with the withstand voltage strength of 4 KV is also adopted between the metering core module and various function extension modules. 4. A battery is used to supply power to the RTC module of the metering core, and in order to realize hot-swap operation of the battery, it is necessary to make special treatment for a battery box and a contact point to prevent a human body from touching a high-voltage part.
[0026] The metering core module solution based on the SoC chip design as mentioned above has the following problems: 1. There are many interfaces with complicated functions between the metering core module and the management core module, as shown in FIG. 4: there are both an analog signal and a digital signal, and there are both a high-speed communication port and an ordinary logic level interface. Therefore, a circuit may be more complicated to realize the electrical isolation at the interfaces, thus increasing a design difficulty and a design cost. 2. There is frequent data exchange between the management core module and the metering core module, a communication rate of an SPI interface is required to reach 2 Mbps, and a communication rate of a serial port is required to reach 115200 bps. In the case of isolation, it is difficult to ensure the stability of communication at such a high communication rate. Especially in an extreme environment of high and low temperatures, it is more difficult to ensure the reliability of communication due to a temperature influence on an isolation device.
[0027] First Embodiment of the present application provides a single-phase electric energy metering chip based on an IR46 standard, which, as shown in FIG. 6, comprises a current and voltage signal acquisition and correction unit, a full-wave measurement and metering unit, a harmonic measurement and metering unit, an original sampled data processing unit, a terminal temperature measurement unit, a communication interface, an energy output interface and an original waveform data output port.
[0028] The current and voltage signal acquisition and correction unit is configured for performing analog-to-digital conversion on a voltage signal and a current signal, and performing phase and gain correction on the signals subjected to the analog-to-digital conversion to obtain corrected data of the voltage signal and corrected data of the current signal.
[0029] The full-wave measurement and metering unit is configured for calculating and obtaining full-wave data according to the corrected data of the voltage signal and the corrected data of the current signal, and the full-wave data comprises a full-wave effective value, full-wave power, a grid frequency, a power factor and full-wave energy data.
[0030] The harmonic measurement and metering unit is configured for calculating and obtaining harmonic data according to the corrected data of the voltage signal and the corrected data of the current signal, and the harmonic data comprises a harmonic effective value, harmonic power and harmonic energy data.
[0031] The original waveform data processing unit is configured for processing the corrected data of the voltage signal and / or the corrected data of the current signal to obtain waveform data.
[0032] The terminal temperature measurement unit comprises acquisition and correction of a temperature measurement signal, and is configured for measuring and monitoring temperatures of four wiring terminals of an electric energy meter to obtain terminal temperature measurement data.
[0033] The communication interface is configured for communicating with a metering main control chip, the metering main control chip controls the single-phase electric energy metering chip through the communication interface, and reads the full-wave data, and the harmonic data and the terminal temperature measurement data.
[0034] The energy output interface is configured for outputting the full-wave energy data and the harmonic energy data.
[0035] The original waveform data output port is configured for outputting the waveform data in an active output mode, which is generally an SPI (Serial Peripheral Interface) active mode.
[0036] As shown in FIG. 7, the current signal comprises a live wire current signal and a zero wire current signal, and the current and voltage signal acquisition and correction unit comprises a first acquisition and correction subunit, a second acquisition and correction subunit and a third acquisition and correction subunit.
[0037] The first acquisition and correction subunit comprises a first analog-to-digital converter ADC1 and a voltage signal channel, the first analog-to-digital converter ADC1 is configured for performing the analog-to-digital conversion on the voltage signal to obtain a voltage digital signal; and the voltage signal channel is configured for performing the phase and gain correction on the voltage digital signal to obtain the corrected data of the voltage signal.
[0038] The second acquisition and correction subunit and the third acquisition and correction subunit both comprise a first analog-to-digital converter ADC1, a digital integrator and a current signal channel, and the current signal channel and the voltage signal channel have the same structure.
[0039] The second acquisition and correction subunit is input with the live wire current signal and outputs corrected data of the live wire current signal; and the third acquisition and correction subunit is input with the zero wire current signal and outputs corrected data of the zero wire current signal.
[0040] The corrected data comprises a direct-current component mean value, non-high-pass data, high-pass data, asynchronously sampled data and synchronously sampled data of a corresponding signal, and the asynchronously sampled data and the synchronously sampled data are output in a DMA mode.
[0041] As shown in FIG. 7, the voltage signal channel comprises a metering correction circuit, and the metering correction circuit comprises a phase correction circuit, a down-sampling circuit, a low-pass filter 81, a high-pass filter 82, a direct-current automatic compensation circuit, a first arithmetic unit 83, a gain correction circuit and a first selector 85.
[0042] The phase correction circuit is configured for performing metering phase correction on the voltage digital signal to obtain metering-phase-corrected data.
[0043] The down-sampling circuit is configured for performing down-sampling on the metering-phase-corrected data to obtain down-sampled data.
[0044] The low-pass filter 81 is configured for performing low-pass filtration on the down-sampled data to obtain a direct-current component mean value of the voltage signal.
[0045] The direct-current automatic compensation circuit is configured for performing direct-current compensation on the direct-current component mean value of the voltage signal to obtain direct-current-compensated data; when the direct-current automatic compensation circuit is turned off, the direct-current-compensated data is zero; and the direct-current automatic compensation circuit may be controlled to be turned on and off by a direct-current compensation register.
[0046] The first arithmetic unit 83 is configured for subtracting the direct-current-compensated data from the down-sampled data to obtain a first arithmetic value.
[0047] The high-pass filter 82 is configured for performing high-pass filtration on the down-sampled data to obtain a second alternating-current component value.
[0048] The gain correction circuit is configured for performing metering gain correction on the first arithmetic value and the second alternating-current component value respectively, and after the first arithmetic value passes through the gain correction circuit, non-high-pass data of the voltage signal is obtained; and after the second alternating-current component value passes through the gain correction circuit, high-pass data of the voltage signal is obtained.
[0049] The first selector 85 is configured for selecting the non-high-pass data of the voltage signal or the high-pass data of the voltage signal to obtain asynchronously sampled data of the voltage signal. In practical application, for example, if direct-current metering needs to be performed or metering data needs to be obtained quickly, the non-high-pass data of the voltage signal may be selected in a scene with a low accuracy requirement; and the high-pass data of the voltage signal may be selected in a scene with a high accuracy requirement and a low response speed requirement.
[0050] As shown in FIG. 7, the voltage signal channel further comprises a waveform correction circuit, and the waveform correction circuit comprises a phase correction circuit, a synchronous sampling circuit, a second arithmetic unit 84 and a gain correction circuit.
[0051] The phase correction circuit is further configured for performing waveform phase correction on the voltage digital signal to obtain waveform-phase-corrected data.
[0052] The synchronous sampling circuit is configured for performing synchronous sampling on the waveform-phase-corrected data to obtain synchronously sampled data.
[0053] The second arithmetic unit 84 is configured for subtracting the direct-current-compensated data from the synchronously sampled data to obtain a third arithmetic value.
[0054] The gain correction circuit is further configured for performing waveform gain correction on the third arithmetic value to obtain synchronously sampled data of the voltage signal.
[0055] The harmonic effective value comprises M-order harmonic and total harmonic current and voltage effective values, the harmonic power comprises M-order harmonic and total harmonic active and reactive power, and the harmonic energy data comprises M-order harmonic and total harmonic active and reactive energy data; and M represents a total number of harmonic waves, and 1 ≤ M ≤ 41. In the embodiment, according to requirements of intelligent Internet of Things, a value of M is 41.
[0056] As shown in FIG. 8, the harmonic measurement and metering unit comprises an FFT algorithm subunit, a 1-order to M-order harmonic data gain compensation circuit and an energy integration circuit.
[0057] The synchronously sampled data of the voltage signal and synchronously sampled data of the current signal are put into a data buffer area inside the single-phase electric energy metering chip as data sources, and the FFT algorithm subunit performs harmonic operation on the synchronously sampled data of the voltage signal and the synchronously sampled data of the current signal every other period T FFT to obtain harmonic operation results. In the embodiment, a value of T FFT is 20 ms.
[0058] The 1-order to M-order harmonic data gain compensation circuit performs gain compensation on the harmonic operation results to obtain M-order harmonic current and voltage effective values, M-order harmonic active power and M-order harmonic reactive power respectively.
[0059] The energy integration circuit performs energy integration operation on the M-order harmonic active power and the M-order harmonic reactive power respectively, and after the M-order harmonic active power passes through the energy integration circuit, the M-order harmonic and total harmonic active energy data is obtained; and after the M-order harmonic reactive power passes through the energy integration circuit, the M-order harmonic and total harmonic reactive energy data is obtained.
[0060] As shown in FIG. 9, the terminal temperature measurement unit comprises a channel selection subunit, a second analog-to-digital converter ADC2, an analog gain circuit and first to fourth gain correction circuits.
[0061] The channel selection subunit is configured for selecting a temperature signal from a temperature signal AN0 of a first live wire terminal, a temperature signal AN1 of a second live wire terminal, a temperature signal AN2 of a first zero wire terminal and a temperature signal AN3 of a second zero wire terminal to enter the second analog-to-digital converter ADC2; and a user may select a channel to the second analog-to-digital converter through the control register in a time-sharing multiplexing mode, or make the second analog-to-digital converter automatically switch between AN0 and AN3 channels.
[0062] The second analog-to-digital converter ADC2 is configured for performing analog-to-digital conversion on the terminal temperature signal to obtain a terminal temperature digital signal.
[0063] The analog gain circuit is configured for obtaining a terminal temperature gain value from the terminal temperature digital signal.
[0064] The first to fourth gain correction circuits are configured for performing gain correction on a first live wire terminal temperature gain value, a second live wire terminal temperature gain value, a first zero wire terminal temperature gain value and a second zero wire terminal temperature gain value respectively to obtain corresponding temperature effective values. Each channel outputs a corresponding effective value, and a refresh cycle of the effective value is 1 second.
[0065] A number of sampling points of each cycle of the first analog-to-digital converter ADC1 is N ADC1 , N ADC1 ≥128, and accuracy of the first analog-to-digital converter ADC1 is 22 bits, so that the corrected data of the voltage signal and the corrected data of the current signal are 22 bits.
[0066] As shown in FIG. 10, the original waveform data processing unit comprises a channel selection subunit, an output point number processing subunit and a data framing processing subunit.
[0067] The channel selection subunit is configured for selecting the waveform data to output the corrected data of the voltage signal and / or the corrected data of the current signal, and selecting the asynchronously sampled data or the synchronously sampled data in the corrected data; the current and voltage signal acquisition and correction unit sends the asynchronously sampled data or the synchronously sampled data to the channel selection subunit after each sampling point is completed, and the asynchronously sampled data or the synchronously sampled data are both represented by three bytes; and a circuit of the channel selection subunit may be realized by the register and the selector.
[0068] The output point number processing subunit is configured for selecting a number of output points according to the number of sampling points output by the asynchronously sampled data or the synchronously sampled data every cycle to obtain the asynchronously sampled data or the synchronously sampled data after output point number processing; when 128≤N ADC1 <256, the number of output points is 128; and when N ADC1 ≥256, the number of output points is 128 or 256.
[0069] The data framing processing subunit is configured for performing data framing processing on the asynchronously sampled data or the synchronously sampled data after output point number processing, and a waveform data format after processing is: frame header+U+IA+IB+checksum; wherein, the frame header is one byte, this byte is filled in by the user: the single-phase electric energy metering chip reserves one register for the user to write the frame header to be sent, such as writing 0x7D by the user; U represents the corrected data of the voltage signal, U = U _Byte0 +U_Byte1 + U_Byte2, and U _Byte0 to U _Byte2 represent three byte representations of the corrected data of the voltage signal respectively; Ia represents the corrected data of the live wire current signal, Ia = Ia _Byte0 + Ia_Byte1 + Ia_Byte2, and Ia _Byte0 to Ia_Byte2 represent three byte representations of the corrected data of the live wire current signal respectively; Ib represents the corrected data of the zero wire current signal, Ib = Ib _Byte0 + Ib_Byte1 + Ib_Byte2, and Ib _Byte0 to Ib_Byte2 represent three byte representations of the corrected data of the zero wire current signal respectively; U+Ia+Ib is adjusted according to a configuration of a sampled original data output control register; and checksum is an inverse of an accumulated sum of the corrected data of the voltage signal and / or the corrected data of the current signal, plus 0x33.
[0070] If the waveform data selects to output the corrected data of the voltage signal, which means that only a transmission U channel is selected, then checksum=0x33 + ~(U_Byte0 + U_Byte1 + U_Byte2); and if the waveform data selects to output the corrected data of the voltage signal and the corrected data of the live wire current signal (sampled data of U and Ia are selected to be sent simultaneously), then checksum=0x33 + ~(U_Byte0 + U_Byte1 + U_Byte2+Ia _Byte0 + Ia_Byte1 + Ia_Byte2).
[0071] If the waveform data selects to output the corrected data of the voltage signal and the corrected data of the live wire current signal, then every time the single-phase electric energy metering chip completes sampling, a waveform data format sent is as follows: 0 × 7 d + U_Byte 0 + U_Byte 1 + U_Byte 2 + Ia _ Byte 0 + Ia _ Byte 1 + Ia _ Byte 2 + checksum
[0072] The communication interface adopts UART communication, and a Baud rate is adaptive within a range of 1200 bps to 19200 bps.
[0073] More than one energy output port is provided, energy data is output in a square wave mode, and a high level of a square wave lasts for 80 ms; and a type of the energy data output by the energy output port is capable of being configured through a CF pulse output control register. In the embodiment, considering a size and a number of pins of the chip and requirements of the Internet of Things meter, two energy output ports are provided.
[0074] Second Embodiment of the present application provides an intelligent Internet of Things meter based on an IR46 standard, which, as shown in FIG. 5, comprises a metering core module, wherein the metering core module comprises the single-phase electric energy metering chip according to any one of claims 1 to 9 and a metering main control chip, and an electrical isolation circuit with a withstand voltage strength of 4 KV is used between the single-phase electric energy metering chip and the metering main control chip.
[0075] The circuits not described in detail in the embodiment of the present invention or the circuits corresponding to the subunits are all obtained by the prior art known to those skilled in the art, which will not be limited herein.
[0076] The present invention provides the idea and method of the single-phase electric energy metering chip and intelligent Internet of Things meter based on the IR46 standard. There are many methods and ways to realize the technical solutions, and the above is only the specific embodiments of the present invention. It should be pointed out that, for those of ordinary skills in the art, several improvements may be made without departing from the principle of the present invention as defined by the appended Claims.
Claims
1. A single-phase electric energy metering chip based on an IR46 standard, comprising a current and voltage signal acquisition and correction unit, a full-wave measurement and metering unit, a harmonic measurement and metering unit, an original sampled data processing unit, a terminal temperature measurement unit, a communication interface, an energy output interface and an original waveform data output port, wherein, the current and voltage signal acquisition and correction unit is configured for performing analog-to-digital conversion on a voltage signal and a current signal, and performing phase and gain correction on the signals subjected to the analog-to-digital conversion to obtain corrected data of the voltage signal and corrected data of the current signal; the corrected data comprises a direct-current component mean value, non-high-pass data, high-pass data, asynchronously sampled data and synchronously sampled data of a corresponding signal, and the asynchronously sampled data and the synchronously sampled data are output in a DMA mode; the full-wave measurement and metering unit is configured for calculating and obtaining full-wave data according to the corrected data of the voltage signal and the corrected data of the current signal, and the full-wave data comprises a full-wave effective value, full-wave power, a grid frequency, a power factor and full-wave energy data; the harmonic measurement and metering unit is configured for calculating and obtaining harmonic data according to the corrected data of the voltage signal and the corrected data of the current signal, and the harmonic data comprises a harmonic effective value, harmonic power and harmonic energy data; the original waveform data processing unit is configured for processing the corrected data of the voltage signal and / or the corrected data of the current signal to obtain waveform data; the terminal temperature measurement unit comprises acquisition and correction of a temperature measurement signal, and is configured for measuring and monitoring temperatures of four wiring terminals of an electric energy meter to obtain terminal temperature measurement data; the communication interface is configured for communicating with a metering main control chip, and the metering main control chip controls the single-phase electric energy metering chip through the communication interface, and reads the full-wave data, the harmonic data and the terminal temperature measurement data; the energy output interface is configured for outputting the full-wave energy data and the harmonic energy data; and the original waveform data output port is configured for outputting the waveform data in an active output mode; the current and voltage signal acquisition and correction unit comprises a first acquisition and correction subunit, the first acquisition and correction subunit comprises a first analog-to-digital converter and a voltage signal channel, the first analog-to-digital converter is configured for performing the analog-to-digital conversion on the voltage signal to obtain a voltage digital signal; and the voltage signal channel is configured for performing the phase and gain correction on the voltage digital signal to obtain the corrected data of the voltage signal; the voltage signal channel comprises a metering correction circuit, and the metering correction circuit comprises a phase correction circuit, a down-sampling circuit, a low-pass filter (81), a high-pass filter (82), a direct-current automatic compensation circuit, a first arithmetic unit (83), a gain correction circuit and a first selector (85), the phase correction circuit is configured for performing metering phase correction on the voltage digital signal to obtain metering-phase-corrected data; the down-sampling circuit is configured for performing down-sampling on the metering-phase-corrected data to obtain down-sampled data; the low-pass filter (81) is configured for performing low-pass filtration on the down-sampled data to obtain a direct-current component mean value of the voltage signal; the direct-current automatic compensation circuit is configured for performing direct-current compensation on the direct-current component mean value of the voltage signal to obtain direct-current-compensated data; and when the direct-current automatic compensation circuit is turned off, the direct-current-compensated data is zero; the first arithmetic unit (83) is configured for subtracting the direct-current-compensated data from the down-sampled data to obtain a first arithmetic value; the high-pass filter (82) is configured for performing high-pass filtration on the down-sampled data to obtain a second alternating-current component value; the gain correction circuit is configured for performing metering gain correction on the first arithmetic value and the second alternating-current component value respectively, and after the first arithmetic value passes through the gain correction circuit, non-high-pass data of the voltage signal is obtained; and after the second alternating-current component value passes through the gain correction circuit, high-pass data of the voltage signal is obtained; and the first selector (85) is configured for selecting the non-high-pass data of the voltage signal or the high-pass data of the voltage signal to obtain asynchronously sampled data of the voltage signal.
2. The single-phase electric energy metering chip based on the IR46 standard according to claim 1, wherein the current signal comprises a live wire current signal and a zero wire current signal, and the current and voltage signal acquisition and correction unit also comprises a second acquisition and correction subunit and a third acquisition and correction subunit, the second acquisition and correction subunit and the third acquisition and correction subunit both comprise a first analog-to-digital converter, a digital integrator and a current signal channel, and the current signal channel and the voltage signal channel have the same structure; the second acquisition and correction subunit is input with the live wire current signal and outputs corrected data of the live wire current signal; and the third acquisition and correction subunit is input with the zero wire current signal and outputs corrected data of the zero wire current signal.
3. The single-phase electric energy metering chip based on the IR46 standard according to claim 2, wherein the voltage signal channel further comprises a waveform correction circuit, and the waveform correction circuit comprises a phase correction circuit, a synchronous sampling circuit, a second arithmetic unit (84) and a gain correction circuit, the phase correction circuit is further configured for performing waveform phase correction on the voltage digital signal to obtain waveform-phase-corrected data; the synchronous sampling circuit is configured for performing synchronous sampling on the waveform-phase-corrected data to obtain synchronously sampled data; the second arithmetic unit (84) is configured for subtracting the direct-current-compensated data from the synchronously sampled data to obtain a third arithmetic value; and the gain correction circuit is further configured for performing waveform gain correction on the third arithmetic value to obtain synchronously sampled data of the voltage signal.
4. The single-phase electric energy metering chip based on the IR46 standard according to claim 3, wherein the harmonic effective value comprises M-order harmonic and total harmonic current and voltage effective values, the harmonic power comprises M-order harmonic and total harmonic active and reactive power, and the harmonic energy data comprises M-order harmonic and total harmonic active and reactive energy data; and M represents a total number of harmonic waves, and 1 ≤ M ≤ 41; the harmonic measurement and metering unit comprises an FFT algorithm subunit, a 1-order to M-order harmonic data gain compensation circuit and an energy integration circuit, the synchronously sampled data of the voltage signal and synchronously sampled data of the current signal are put into a data buffer area inside the single-phase electric energy metering chip as data sources, and the FFT algorithm subunit performs harmonic operation on the synchronously sampled data of the voltage signal and the synchronously sampled data of the current signal every other period TFFT to obtain harmonic operation results; the 1-order to M-order harmonic data gain compensation circuit performs gain compensation on the harmonic operation results to obtain M-order harmonic current and voltage effective values, M-order harmonic active power and M-order harmonic reactive power respectively; and the energy integration circuit performs energy integration operation on the M-order harmonic active power and the M-order harmonic reactive power respectively, and after the M-order harmonic active power passes through the energy integration circuit, the M-order harmonic and total harmonic active energy data is obtained; and after the M-order harmonic reactive power passes through the energy integration circuit, the M-order harmonic and total harmonic reactive energy data is obtained.
5. The single-phase electric energy metering chip based on the IR46 standard according to claim 4, wherein the terminal temperature measurement unit comprises a channel selection subunit, a second analog-to-digital converter, an analog gain circuit and first to fourth gain correction circuits, the channel selection subunit is configured for selecting a terminal temperature signal from a first live wire terminal, a second live wire terminal, a first zero wire terminal and a second zero wire terminal to enter the second analog-to-digital converter; the second analog-to-digital converter is configured for performing analog-to-digital conversion on the terminal temperature signal to obtain a terminal temperature digital signal; the analog gain circuit is configured for obtaining a terminal temperature gain value from the terminal temperature digital signal; and the first to fourth gain correction circuits are configured for performing gain correction on a first live wire terminal temperature gain value, a second live wire terminal temperature gain value, a first zero wire terminal temperature gain value and a second zero wire terminal temperature gain value respectively to obtain corresponding temperature effective values.
6. The single-phase electric energy metering chip based on the IR46 standard according to claim 5, wherein a number of sampling points of each cycle of the first analog-to-digital converter is NADC1, NADC1≥128, and accuracy of the first analog-to-digital converter is 22 bits, so that the corrected data of the voltage signal and the corrected data of the current signal are 22 bits.
7. The single-phase electric energy metering chip based on the IR46 standard according to claim 6, wherein the original waveform data processing unit comprises a channel selection subunit, an output point number processing subunit and a data framing processing subunit, the channel selection subunit is configured for selecting the waveform data to output the corrected data of the voltage signal and / or the corrected data of the current signal, and selecting the asynchronously sampled data or the synchronously sampled data in the corrected data; and the current and voltage signal acquisition and correction unit sends the asynchronously sampled data or the synchronously sampled data to the channel selection subunit after each sampling point is completed, and the asynchronously sampled data or the synchronously sampled data are both represented by three bytes; the output point number processing subunit is configured for selecting a number of output points according to the number of sampling points output by the asynchronously sampled data or the synchronously sampled data every cycle to obtain the asynchronously sampled data or the synchronously sampled data after output point number processing; when 128≤NADC1<256, the number of output points is 128; and when NADC1≥256, the number of output points is 128 or 256; the data framing processing subunit is configured for performing data framing processing on the asynchronously sampled data or the synchronously sampled data after output point number processing, and a waveform data format after processing is: frame header+U+IA+IB+checksum; wherein, the frame header is one byte; U represents the corrected data of the voltage signal, U = U _Byte0 +U_Byte1 + U_Byte2, and U _Byte0 to U _Byte2 represent three byte representations of the corrected data of the voltage signal respectively; Ia represents the corrected data of the live wire current signal, Ia = Ia _Byte0 + Ia_Byte1 + Ia _Byte2, and Ia _Byte0 to Ia_Byte2 represent three byte representations of the corrected data of the live wire current signal respectively; Ib represents the corrected data of the zero wire current signal, Ib = Ib_Byte0 + Ib_Byte1 + Ib_Byte2, and Ib_Byte0 to Ib_Byte2 represent three byte representations of the corrected data of the zero wire current signal respectively; U+Ia+Ib is adjusted according to a configuration of a sampled original data output control register; and checksum is an inverse of an accumulated sum of the corrected data of the voltage signal and / or the corrected data of the current signal, plus 0x33.
8. The single-phase electric energy metering chip based on the IR46 standard according to claim 7, wherein the communication interface adopts UART communication, and a Baud rate is adaptive within a range of 1200 bps to 19200 bps; and more than one energy output port is provided, energy data is output in a square wave mode, and a high level of a square wave lasts for 80 ms; and a type of the energy data output by the energy output port is capable of being configured through a CF pulse output control register.
9. An intelligent Internet of Things meter based on an IR46 standard, comprising a metering core module, wherein the metering core module comprises the single-phase electric energy metering chip according to any one of claims 1 to 8 and a metering main control chip, and an electrical isolation circuit with a withstand voltage strength of 4 KV is used between the single-phase electric energy metering chip and the metering main control chip.