Improved line collection gateway system and data transmission method based on electric energy metering device

By designing an improved serial port hub gateway system in the electric energy metering device and using the RS422 bus and single-chip microcomputer for data collection and transmission, the problem of low transmission efficiency in the existing technology is solved, second-level data collection and update capabilities are achieved, and the cost is reduced. cost.

CN115209240BActive Publication Date: 2024-08-23XINDA CHANGYUAN ELECTRIC POWER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210825799.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-13
Publication Date
2024-08-23
Estimated Expiration
2042-07-13

AI Technical Summary

Technical Problem

The existing technology has low transmission efficiency and slow transmission rate in the transmission of power consumption and power quality data. It cannot meet the requirements of smart meters for second-level data collection and update, and some solutions have high costs and high networking costs.

Method used

Design an improved serial port hub gateway system based on the electric energy metering device. By acquiring the data signal of the electric energy metering device, it performs packet processing and buffer storage. It uses the RS422 bus and the microcontroller for data collection and transmission, and uses the FIFO module for data transmission. , and perform data distribution through the RemapDevice module.

Benefits of technology

It achieves second-level data collection and update capabilities, meets the data transmission requirements of smart meters, and reduces transmission costs and networking costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115209240B
    Figure CN115209240B
Patent Text Reader

Abstract

The present invention discloses an improved hub gateway system and data transmission method based on electric energy metering device, wherein the transmission method comprises: obtaining data signals of several electric energy metering devices, taking the data signals as initial data; performing sub-packet processing on each of the initial data, obtaining sub-packet data of each electric energy metering device; transmitting and buffering the sub-packet data, obtaining sub-packet FIFO data; based on the principle of sub-packet FIFO data and first-in-first-out, sending the FIFO header packet data in the FIFO data; the system comprises: an intelligent electric energy meter, a hub gateway, several RS422 buses, a single-chip microcomputer, a DataSplit module, a FIFO module, a FIFO buffer, and a RemapDevice module. The system has the capability of data acquisition and updating in seconds, and can meet the requirements of electric energy analysis intelligent electric meters for data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of integrated communications, and in particular relates to an improved line collection gateway system based on an electric energy metering device and a data transmission method. Background Art

[0002] At present, commercial electricity and civil electricity usually use carrier communication or RS485 communication methods for data transmission, which has low transmission efficiency, slow transmission rate, low data transmission success rate, and data can only be refreshed once every few hours. In order to meet the analysis of power consumption and power quality data fluctuations by the superior energy analysis system, the equipment should have the ability to collect and update data in seconds. The existing equipment is far from meeting the data transmission requirements of smart energy meters for energy analysis.

[0003] Some smart meters on the market currently use 4G communication for direct transmission, which is too expensive and has high requirements for servers. Some use zigbee, LoRa and other technologies for regional networking, which has slow collection rate, low frequency and high networking cost. Summary of the invention

[0004] The purpose of the present invention is to provide an improved serial port hub gateway system based on an intelligent electric energy metering device to solve the problems existing in the above-mentioned prior art.

[0005] On the one hand, in order to achieve the above-mentioned purpose, the present invention provides an improved hub gateway data transmission method based on an electric energy metering device, comprising:

[0006] Acquire data signals of several electric energy metering devices, and use the data signals as initial data; the data signals include power consumption, current, and voltage data of the electric energy metering devices;

[0007] Subpacketizing the initial data of each channel, converting the data stream into a data packet, and obtaining the subpacketized data of each electric energy metering device;

[0008] Transmitting and buffering the sub-packet data to obtain sub-packet FIFO data;

[0009] Based on the packetized FIFO data and the first-in-first-out principle, the FIFO header packet data in the FIFO data is sent.

[0010] Optionally, the process of acquiring the data signal of the electric energy metering device includes:

[0011] Use a single-channel timer as a tick generator to collect the data signal obtained by the IO port in the microcontroller and cache it locally as the initial data.

[0012] Optionally, the process of obtaining the sub-package data of each electric energy metering device includes:

[0013] Based on the tick generator, the signal of the IO port is collected and processed according to the predetermined frequency to obtain the time base signal;

[0014] After the IO port jumps, the 1 or 0 data currently obtained by the RS422 bus is obtained based on the time base signal.

[0015] Optionally, the process of collecting and processing the signal of the IO port at a predetermined frequency includes: triggering a tick count once within 0.1 ms by the tick generator to obtain a time base signal.

[0016] Optionally, the process of obtaining the sub-package data of each electric energy metering device further includes:

[0017] When the IO port jump process is interrupted, the main function determines whether the time base signal exceeds the bit data jump time. When it exceeds three times the bit data jump time, it is determined that the subpacketization is completed.

[0018] Optionally, the process of sending the FIFO header packet data includes:

[0019] Allow the FIFO header packet data to enter the buffer again and wait for distribution processing;

[0020] Based on different onboard modules, the FIFO header packet data is automatically remapped and sent.

[0021] On the other hand, to achieve the above-mentioned purpose, the present invention provides an improved line collection gateway system based on an electric energy metering device, comprising: an intelligent electric energy meter, a plurality of RS422 buses, a single-chip microcomputer, a DataSplit module, a FIFO module, a FIFO buffer, and a RemapDevice module connected in sequence;

[0022] The smart energy meter is used to provide power consumption, current and voltage data;

[0023] The single chip microcomputer is used for receiving data of the RS422 bus;

[0024] The DataSplit module is used to perform data splitting processing;

[0025] The FIFO module is used to transfer the packetized data to the FIFO buffer;

[0026] The FIFO buffer is used to store the packetized data;

[0027] The RemapDevice module is used to distribute data.

[0028] Optionally, several of the RS422 buses are connected to independent IO ports in the single chip microcomputer respectively.

[0029] The technical effects of the present invention are:

[0030] The system has the ability to collect and update data in seconds, which can meet the data transmission requirements of smart meters for power analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0032] Figure 1 It is a schematic diagram of the working process of the improved line collection gateway system based on the electric energy metering device in the embodiment of the present invention;

[0033] Figure 2 Schematic diagram of the structure of the monitoring device in an embodiment of the present invention. DETAILED DESCRIPTION

[0034] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0035] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0036] Embodiment 1

[0037] like Figure 1-2 As shown, this embodiment provides an improved serial port hub gateway system based on an intelligent electric energy metering device;

[0038] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0039] like Figure 1 , Figure 2 The figures are respectively a schematic diagram of the flow chart of an improved serial port hub gateway system based on an intelligent electric energy metering device and a schematic diagram of the structure of a monitoring device according to an embodiment of the present application. In this embodiment, the electric energy includes the voltage and current on the bus.

[0040] The improved serial port hub gateway system based on the intelligent electric energy metering device includes: an intelligent electric energy meter, a plurality of RS422 buses, a single chip microcomputer, a DataSplit module, a FIFO module, a FIFO buffer, and a RemapDevice module connected in sequence;

[0041] The smart energy meter is used to provide power consumption, current and voltage data; the single-chip microcomputer is used to receive data from the RS422 bus; the DataSplit module is used to packetize the data; the FIFO module is used to transfer the packetized data to the FIFO buffer; the FIFO buffer is used to store the packetized data; and the RemapDevice module is used to distribute the data.

[0042] Among them, several RS422 buses are respectively connected to independent IO ports in the microcontroller.

[0043] Embodiment 2

[0044] This embodiment provides a data transmission method of an improved serial port hub gateway based on an intelligent electric energy metering device. Specifically, the method includes the following steps:

[0045] S1. Acquiring data signals from the electric energy metering device. In this embodiment, this is accomplished through the RS422 bus data input interface.

[0046] In this embodiment, since the object of data collection is the data of power consumption, current, voltage, etc. of the power metering device, the entire system includes the processing of all data streams and the FIFO buffer distribution process.

[0047] Directly collecting data such as voltage, current, and electricity on the electric energy metering device through multiple RS422 buses cannot be directly used for data reception. Therefore, in this step, multiple RS422 buses are connected to the independent IO of the microcontroller respectively, and the interrupt input of each independent IO is enabled. A single-channel timer is used as a tick generator to collect the RS422 bus data obtained by each IO, and cache it locally as the initial data of this embodiment.

[0048] S2. Perform packet processing on each data stream, convert the data stream into a data packet, and obtain the packet data of each electric energy metering device. In this embodiment, this is accomplished by the DataSplit module.

[0049] Since the initial signal is a continuous data stream, it is necessary to first perform packet segmentation processing. In this embodiment, the following steps are included:

[0050] S2.1. Use the timer tick to collect and process the IO signal at a predetermined frequency. In this embodiment, the timer triggers a tick count within 0.1 ms to obtain a time base signal.

[0051] S2.2. After the IO jumps, the 1 or 0 data currently obtained by the RS422 bus can be obtained through the tick time base.

[0052] S2.3. At the same time as the IO jump interrupt, the main function determines whether the tick time base exceeds the bit data jump time of the RS422 bus. If it exceeds three times, it is determined that the packet sub-packet is completed.

[0053] S3. After the data of the multi-channel electric energy metering devices are divided into packets, they are sequentially entered into the FIFO buffer to wait for data transmission. In this embodiment, this is accomplished by the FIFO module.

[0054] S4. Based on the sub-packetized FIFO data of the electric energy metering device, according to the first-in-first-out principle, the FIFO header packet data is sent through the data sending module.

[0055] S4.1. In order to better realize the versatility of the data sending function, the data will enter the high-speed buffer again when it is sent, and notify the RemapDevice module to perform data distribution processing.

[0056] S2.2. The remapping method specified by the device automatically remaps the data to 4G or network port for transmission according to different onboard modules.

[0057] In this embodiment, the data of multiple electric energy metering devices enter the IO through the RS422 bus, and the stream data is packetized and sent to the cloud in sequence.

[0058] The above is only a preferred specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An improved hub gateway data transmission method based on an electric energy metering device, characterized in that: The following steps are involved: Acquire data signals of several electric energy metering devices, and use the data signals as initial data; the data signals include power consumption, current, and voltage data of the electric energy metering devices; Performing packet processing on the initial data of each channel, converting the data stream in the data signal into a data packet, and obtaining the packetized data of each electric energy metering device; Transmitting and buffering the sub-packet data to obtain sub-packet FIFO data; Based on the packetized FIFO data and the first-in first-out principle, the FIFO header packet data in the FIFO data is sent; The process of obtaining the data signal of the electric energy metering device includes: Use a single-channel timer as a tick generator to collect the data signal obtained by the IO port in the microcontroller and cache it locally as the initial data; The process of obtaining the sub-package data of each electric energy metering device includes: Based on the tick generator, the signal of the IO port is collected and processed according to the predetermined frequency to obtain the time base signal; After the IO port jumps, the 1 or 0 data currently obtained by the RS422 bus is obtained based on the time base signal; The process of collecting and processing the signal of the IO port according to the predetermined frequency includes: triggering a tick count once within 0.1ms by the tick generator to obtain a time base signal; The process of obtaining the sub-package data of each electric energy metering device also includes: When the IO port jump process is interrupted, the main function determines whether the time base signal exceeds the bit data jump time. When it exceeds three times the bit data jump time, it is determined that the subpacketization is completed. The process of sending FIFO header packet data includes: Allow the FIFO header packet data to enter the buffer again and wait for distribution processing; Based on different onboard modules, the FIFO header packet data is automatically remapped and sent.

2. An improved hub gateway system based on an electric energy metering device, which implements an improved hub gateway data transmission method based on an electric energy metering device as claimed in claim 1, characterized in that: It includes the following connected in sequence: intelligent energy meter, several RS422 buses, single chip microcomputer, DataSplit module, FIFO module, FIFO buffer, RemapDevice module; The smart energy meter is used to provide power consumption, current and voltage data; The single chip microcomputer is used for receiving data of the RS422 bus; The DataSplit module is used to perform data splitting processing; The FIFO module is used to transfer the packetized data to the FIFO buffer; The FIFO buffer is used to store the packetized data; The RemapDevice module is used to distribute data.

3. The improved hub gateway system based on the electric energy metering device according to claim 2 is characterized in that: A plurality of the RS422 buses are respectively connected to independent IO ports in the single chip microcomputer.