Metrology chip and external digital signal analysis receiving and transmitting device
Patent Information
- Application Number
- CN202521941710.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-09
- Publication Date
- 2026-09-11
- Estimated Expiration
- 2035-09-09
AI Technical Summary
[0003]本申请提供了计量芯片及外部数字信号解析接收发送装置,以至少解决相关技术中的计量芯片依赖软件处理外部ADC数据,处理过程导致延迟获取解析后的数据的问题
[0008]本申请提供的一种计量芯片,通过第一通信接口获取外部芯片发送的至少一种预设通信格式的数字信号,并传输给硬件数据处理模块,使得硬件数据处理模块进行解析后传输至电能计量模块,从而,相比于传统的依赖软件处理外部ADC数据,本申请的电能计量模块直接获取解析后的数据,进而,无需延迟获取解析后的数据。
Smart Images

Figure CN224745045U_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart meter technology, and in particular to metering chips and external digital signal parsing, receiving and transmitting devices. Background Technology
[0002] In the field of smart meters and energy metering, existing smart meters use three-phase metering chips, as well as management MCU chips or metering SOC chips, where the ADC (analog-to-digital converter) module and the metering chip are integrated. This means that traditional solutions rely on software to process external ADC data, resulting in a delay in acquiring the parsed data. Utility Model Content
[0003] This application provides a metering chip and an external digital signal parsing, receiving and transmitting device to at least solve the problem in related technologies where metering chips rely on software to process external ADC data, and the processing results in a delay in obtaining the parsed data.
[0004] This application provides a metering chip, which is connected to an external chip. The external chip includes a second communication interface, and the metering chip includes:
[0005] An electricity metering module is used to detect electricity consumption.
[0006] A first communication interface, which is connected to a second communication interface, is used to receive and output at least one digital signal in a preset communication format.
[0007] The hardware data processing module is connected to both the first communication interface and the power metering module. It is used to parse digital signals in a preset communication format and then send them to the power metering module.
[0008] This application provides a metering chip that acquires at least one digital signal in a preset communication format sent by an external chip through a first communication interface and transmits it to a hardware data processing module. The hardware data processing module then parses the signal and transmits it to an energy metering module. Thus, compared to the traditional method of relying on software to process external ADC data, the energy metering module of this application directly acquires the parsed data, thereby eliminating the need for delay in acquiring the parsed data.
[0009] In some alternative implementations, the hardware data processing module includes:
[0010] A hardware data caching unit is connected to the first communication interface 20 and is used to cache parsed data.
[0011] The hardware data processing module is also used to synchronize the phases of multiple preset communication formats.
[0012] In some alternative implementations, the first communication interface includes:
[0013] A universal asynchronous transceiver interface, wherein the universal asynchronous transceiver interface is connected to both a hardware data processing module and an external chip; and / or,
[0014] A serial peripheral interface is provided, which is connected to both the hardware data processing module and an external chip.
[0015] In some alternative embodiments, the metering chip further includes:
[0016] A random access memory, which is connected to both the first communication interface and the hardware data processing module, is used to store software frames.
[0017] In some alternative implementations, the first communication interface further includes:
[0018] A direct memory access unit, which is connected to both the hardware data processing module and an external chip.
[0019] In some alternative implementations, the energy metering module includes:
[0020] A first digital signal module, connected to the hardware data processing module, is used to output a first digital signal.
[0021] In some optional embodiments, the energy metering module further includes:
[0022] An external data access register, which is connected to the hardware data processing module, is used to store the data parsed by the hardware data processing module.
[0023] In some alternative embodiments, the metering chip further includes:
[0024] A measurement data storage device is connected to the hardware data processing module and is used to store the data parsed by the hardware data processing module.
[0025] This application also provides an external digital signal analysis, receiving, and transmitting device, comprising:
[0026] The external digital signal parsing, receiving, and transmitting device includes the metering chip and the external chip as described above, wherein the external chip includes:
[0027] The second digital signal module is used to output a second digital signal;
[0028] The second communication interface is connected to the second digital signal module and the first communication interface respectively, and is used to convert the second digital signal into a preset communication format and then output it.
[0029] In some optional embodiments, the external digital signal parsing and receiving transceiver further includes:
[0030] An isolation device is connected to the second communication interface and is used to isolate the second communication interface from the first communication interface. Attached Figure Description
[0031] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0032] Figure 1 This is a schematic diagram of the structure of a metering chip provided in an embodiment of this application;
[0033] Figure 2 A schematic diagram of the transmission signal of a metering chip provided in an embodiment of this application;
[0034] Figure 3 This is a schematic diagram of a metering chip provided in an embodiment of this application;
[0035] Figure 4 This is another analytical schematic diagram of a metering chip provided in an embodiment of this application;
[0036] Figure 5 A further analytical schematic diagram of a metering chip provided in an embodiment of this application;
[0037] Figure 6 This is a schematic diagram of the transmission signal of another metering chip provided in an embodiment of this application. Detailed Implementation
[0038] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0039] It should be noted that, in the description of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "first," "second," etc., in this application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0040] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0041] In the field of smart meters and energy metering, existing smart meters use three-phase metering chips, as well as management MCU chips or metering SOC chips, where the ADC (analog-to-digital converter) module and the metering chip are integrated. This means that traditional solutions rely on software to process external ADC data, resulting in a delay in acquiring the parsed data.
[0042] Therefore, there is a need for a device that can directly connect to multiple types of ADC data, directly realize data synchronization and metering, improve metering efficiency and real-time performance, and meet the high precision requirements of smart meters.
[0043] Embodiments of this application provide a metering chip, such as... Figure 1 As shown, the metering chip is connected to an external chip, the external chip including: a second communication interface, and the metering chip including:
[0044] Electricity metering module 10, the electricity metering module is used to detect electricity consumption;
[0045] A first communication interface 20 is connected to a second communication interface and is used to receive and output at least one digital signal in a preset communication format.
[0046] The hardware data processing module 30 is connected to the first communication interface 20 and the power metering module 10 respectively. It is used to parse digital signals in a preset communication format and send them to the power metering module.
[0047] Specifically, the metering chip is a metering SOC (System on a Chip) chip, the energy metering module 10 is an EMU (Energy Measurement Unit), and the hardware data processing module 30 is an EDI (Extra Data Interface) module.
[0048] The external chip may also include a second digital signal module, which is connected to a second communication interface. The second digital signal module is used to output a second digital signal.
[0049] Specifically, the preset communication format digital signal includes a preset frame format or a preset transmission protocol digital signal. The first communication interface 20 can receive at least one different preset communication format digital signal. Therefore, the metering chip can receive digital signals with different preset communication formats. When calling different first communication interfaces, the hardware data processing module 30 can select one interface individually. The digital signal is decomposed into a frame format to determine whether it conforms to the frame format, and the original data of each channel is parsed out.
[0050] The metering chip provided in this application acquires at least one digital signal of a preset communication format sent by an external chip through a first communication interface 20 and transmits it to a hardware data processing module 30. The hardware data processing module 30 then parses the signal and transmits it to the energy metering module 10. Thus, compared with the traditional method of relying on software to process external ADC data, the energy metering module of this application directly acquires the parsed data, thereby eliminating the need for delay in acquiring the parsed data.
[0051] In some feasible implementations, such as Figure 1 As shown, the hardware data processing module 30 includes:
[0052] A hardware data caching unit is connected to the first communication interface 20 and is used to cache parsed data.
[0053] The hardware data processing module 30 is also used to synchronize the phases of multiple preset communication formats.
[0054] Specifically, the hardware data processing module 30 is used for phase synchronization, processing, and data transmission for various preset communication formats received. Thus, the metering chip can connect to multiple digital signals, including phase synchronization of data transmitted from different channels and interfaces. The metering chip directly acquires data and performs verification, synchronization processing, and error correction to ensure system stability and real-time performance. This device achieves multi-channel data synchronous acquisition and processing through hardware, reducing software intervention, improving metering efficiency, and meeting the high-precision metering requirements of smart meters.
[0055] It is worth noting that the second digital signal module of the external chip and the metering chip need to operate on the same clock to avoid asynchronous operation.
[0056] In some feasible implementations, such as Figure 2 , Figure 3 and Figure 4As shown, the first communication interface 20 includes:
[0057] A universal asynchronous transceiver interface, wherein the universal asynchronous transceiver interface is connected to both a hardware data processing module and an external chip; and / or,
[0058] Specifically, refer to Figure 3 The universal asynchronous receiver / transmitter (UART) interface includes UART interface 0, UART interface 1, UART interface 2, and UART interface 3. Data is transmitted to channels 0, 1, 2, and 3 respectively. For example, data from UART interface 0 is parsed into CHN0_0, CHN0_1, and CHN0_2 via channel 0, and so on. The parsed data is then sent to the hardware data buffer channel.
[0059] refer to Figure 2 When the external chip's second data signal module uses the UART transmission protocol, the transmitted data needs to meet the frame format of including a frame header, frame sequence number, raw data, checksum, and frame trailer. In this case, the external chip's second data signal module can transmit three channels of raw data.
[0060] refer to Figure 3 , Figure 3 This is a diagram illustrating the UART transmission protocol frame format. The hardware data processing module 30 inside the metering chip will process the UART channel (such as...) Figure 3 Channels 0, 1, 2, and 3 in the hardware data processing module 30 are opened, correspondingly replacing the data received by the UART interface with the data accessed by the hardware data processing module 30. Each UART channel of the hardware data processing module 30 corresponds to a different UART data interface, and each UART interface can access the data from the second data signal module of an external chip. That is, the hardware data processing module 30 can simultaneously access the data from the second data signal modules of four external chips.
[0061] Each UART channel within the hardware data processing module 30 parses data into three sub-channels. If a 4-channel UART communication protocol is used with an external second data signal module, the data parsed from the 4 channels will ultimately be distributed into 12 sub-channels. If the external second data signal module transmits 3 data streams, all three sub-channels of each channel will be padded with data. If the external second data signal module transmits less than 3 data streams, the other sub-channels of each channel will be forcibly padded with zeros to ensure synchronous transmission of the 12 sub-channels.
[0062] It is worth noting that the data from each sub-channel can be selected by the subsequent hardware data buffer channel and ultimately transmitted to the 7-channel external data register and metering data register.
[0063] A serial peripheral interface is provided, which is connected to both the hardware data processing module and an external chip.
[0064] Specifically, refer to Figure 4 , Figure 4 This is a diagram illustrating the frame format of the SPI transmission protocol. The serial peripheral interface is SPI (Serial Peripheral Interface). SPI interface 0 parses the data into CHN4_0 to CHN4_6 via channel 4 and sends the parsed data to the hardware data buffer channel.
[0065] refer to Figure 2 When the external second-signal module uses the SPI transmission protocol, the transmitted data needs to meet the frame format including a frame header, frame sequence number, raw data, checksum, and frame trailer. In this case, the external ADC module can transmit 7 channels of raw data.
[0066] The hardware data processing module 30 inside the metering chip will process the SPI channel (such as...) Figure 4 Channel 4) is opened, which replaces the data accessed by the hardware data processing module 30 with the data received by the SPI interface. The SPI channel of the hardware data processing module 30 corresponds to an SPI data interface; this SPI interface can access data from an external second data signal module, that is, the hardware data processing module 30 can access data from one external second data signal module.
[0067] Each SPI channel within the hardware data processing module 30 parses the data into seven sub-channels. If the external second-order signal module transmits seven data streams, then all seven sub-channels of each channel will be filled with data. If the external second-order signal module transmits less than seven data streams, then the other sub-channels of each channel will be forcibly padded with zeros to ensure synchronous transmission of the seven sub-channels.
[0068] It is worth noting that, like the sub-channels of UART, the data from the seven sub-channels of SPI can be selected by the subsequent hardware data buffer channels and ultimately transmitted to the seven external data registers and metering data registers.
[0069] In some feasible implementations, the metering chip further includes:
[0070] The random access memory is connected to both the first communication interface and the hardware data processing module.
[0071] Specifically, random access memory (RAM) is used to store software frames when receiving data from other communication protocols.
[0072] In some feasible implementations, the first communication interface 20 further includes:
[0073] A direct memory access unit, which is connected to both the hardware data processing module and an external chip.
[0074] Specifically, when the data transmission format of the external second data signal module is a custom frame format, regardless of whether UART, SPI, or other communication protocols are used, the hardware data processing module 30 can choose to transmit the data into the hardware data buffer channel through software parsing and DMA transfer. In this case, the external second data signal module can transmit 7 channels of raw data.
[0075] refer to Figure 2 The hardware data processing module 30 inside the metering chip will transfer the data via the DMA transfer channel (such as...). Figure 5 Channel 5) is opened, and the data connected to the hardware data processing module 30 is replaced with the data received by the DMA interface.
[0076] refer to Figure 5 , Figure 5 This diagram illustrates DMA data transfer with software participation in the transmission protocol frame format parsing. After receiving external data through the corresponding interface, the metering chip uses software frame de-framing to save the data to RAM. This data can be 7-channel digital signals or fewer than 7 channels. The hardware data processing module 30 specifies how many channels of data to transfer into the EDI write interface each time via DMA.
[0077] Similar to the sub-channels of UART and SPI, the data from the seven EDI write interfaces of the DMA transfer mode can be selected by the subsequent hardware data buffer channels and finally transferred to the seven external data registers and metering data registers.
[0078] In some feasible implementations, such as Figure 1 As shown, the metering chip also includes:
[0079] The first digital signal module is connected to the hardware data processing module 30 and is used to output a first digital signal.
[0080] Specifically, the hardware data processing module 30 also processes the first digital signal inside the metering chip, which can be more than just external signals.
[0081] In some feasible implementations, the energy metering module 10 includes:
[0082] An external data access register is connected to the hardware data processing module and is used to store the data parsed by the hardware data processing module.
[0083] In some feasible implementations, the energy metering module 10 further includes:
[0084] A measurement data storage device is connected to the hardware data processing module and is used to store the data parsed by the hardware data processing module.
[0085] refer to Figure 6 Regardless of whether the data is parsed using UART, SPI, or DMA, it will ultimately be transmitted to the 7-channel buffer of the hardware data processing module 30. The data in the buffer channels, in addition to externally accessed data, can also be switched to metering data from the metering chip.
[0086] If the corresponding cache channel of the hardware data processing module 30 is opened, the data corresponding to that channel will be synchronously entered into the hardware data cache unit (cache buffer). Since the data in the cache buffer is transmitted from the sub-channels of different data interfaces, phase synchronization between different channels will be completed to ensure that multiple data will not be misaligned due to some transmission interference.
[0087] Sufficient space is reserved in the buffer channels, and each EDI buffer corresponds to a data output register ExCIC. When the data written to all enabled EDI buffers reaches the length set in register BufferStartLVL (the length for starting data transmission in the buffer), data will be sent according to the frequency set in register BufferCLKDIV. If the original data sampling frequency of each channel of the external ADC is 12.8kHz, then the data interval in each EDI buffer is 78.125µs. If the preset frequency of BufferCLKDIV is also set to 12.8kHz, then the data in the EDI buffers will be sent out at intervals of 78.125µs. The data in all EDI buffers will eventually be updated to the external data output register ExCICx: for example, data in BufferUA is updated to ExEICUA, data in BufferUB is updated to ExEICUB, data in BufferUC is updated to ExEICUC, data in BufferIA is updated to ExEICIA, data in BufferIB is updated to ExEICIB, data in BufferIC is updated to ExEICIC, and data in BufferIN is updated to ExEICIN. Ultimately, the data from the external data output register can also be synchronously updated in the metering data register of the metering chip for subsequent energy metering. Furthermore, the data transmission frequency can be set. Simultaneously, EDI data can be directly connected to the EMU without requiring additional processing.
[0088] Embodiments of this application also provide an external digital signal parsing and receiving transceiver, the external digital signal parsing and receiving transceiver comprising the metering chip and the external chip as described above, the external chip comprising:
[0089] The second digital signal module is used to output a second digital signal;
[0090] The second communication interface is connected to the second digital signal module and the first communication interface respectively, and is used to convert the second digital signal into a preset communication format and then output it.
[0091] Specifically, the second digital signal module of the external chip packages the raw data into a specified frame format.
[0092] In some optional embodiments, the external digital signal parsing and receiving transceiver further includes:
[0093] An isolation device is connected to the second communication interface and is used to isolate the second communication interface from the first communication interface.
[0094] Specifically, the isolation device is responsible for isolating the external chip and the metering chip. The isolation device can be an optocoupler or a high-speed optocoupler to complete the electrical isolation of the data processing and data sampling ends.
[0095] The foregoing has provided a detailed description of a metering chip and an external digital signal analysis, receiving, and transmitting device provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only intended to help understand the method and core ideas of this application. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this application.
Claims
1. A metering chip, characterized in that, The metering chip is connected to an external chip, the external chip including: a second communication interface, and the metering chip including: An electricity metering module is used to detect electricity consumption. A first communication interface, which is connected to a second communication interface, is used to receive and output at least one digital signal in a preset communication format. The hardware data processing module is connected to both the first communication interface and the power metering module. It is used to parse digital signals in a preset communication format and then send them to the power metering module.
2. The metering chip according to claim 1, characterized in that, The hardware data processing module includes: A hardware data caching unit is connected to the first communication interface 20 and is used to cache parsed data. The hardware data processing module is also used to synchronize the phases of multiple preset communication formats.
3. The metering chip according to claim 1, characterized in that, The first communication interface includes: A universal asynchronous transceiver interface, wherein the universal asynchronous transceiver interface is connected to both a hardware data processing module and an external chip; and / or, A serial peripheral interface is provided, which is connected to both the hardware data processing module and an external chip.
4. The metering chip according to claim 1, characterized in that, The metering chip also includes: A random access memory, which is connected to both the first communication interface and the hardware data processing module, is used to store software frames.
5. The metering chip according to claim 1, characterized in that, The first communication interface further includes: A direct memory access unit, which is connected to both the hardware data processing module and an external chip.
6. The metering chip according to claim 1, characterized in that, The power metering module includes: A first digital signal module, which is connected to the hardware data processing module, is used to output a first digital signal.
7. The metering chip according to claim 1, characterized in that, The power metering module also includes: An external data access register, which is connected to the hardware data processing module, is used to store the data parsed by the hardware data processing module.
8. The metering chip according to claim 1, characterized in that, The power metering module also includes: A measurement data storage device is connected to the hardware data processing module and is used to store the data parsed by the hardware data processing module.
9. An external digital signal parsing, receiving, and transmitting device, characterized in that, The external digital signal parsing, receiving, and transmitting device includes a metering chip as described in any one of claims 1 to 8 and an external chip, wherein the external chip includes: The second digital signal module is used to output a second digital signal; The second communication interface is connected to the second digital signal module and the first communication interface respectively, and is used to convert the second digital signal into a preset communication format and then output it.
10. The external digital signal parsing, receiving, and transmitting device according to claim 9, characterized in that, The external digital signal parsing, receiving, and transmitting device further includes: An isolation device is connected to the second communication interface and is used to isolate the second communication interface from the first communication interface.