A network backup self-electing master gateway device

By designing a network backup and self-referred master gateway device, the problem of unstable data transmission and low online rate of IoT devices in complex environments is solved, continuous data transmission and stability are achieved, and the online rate of terminal devices is improved.

CN117768932BActive Publication Date: 2025-03-18重庆玖奇科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311830235.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-27
Publication Date
2025-03-18
Estimated Expiration
2043-12-27

AI Technical Summary

Technical Problem

The existing Internet of Things wireless data transmission devices lack local networking functions and flexible network backup functions, resulting in easy loss of terminal data in complex environments and low online rate.

Method used

Design a network backup self-referral master gateway device, including information processing and transmission main control modules Master and Slave, which has data acquisition, main network, local wireless network backup and Master role recommendation modules. The Master main network node is automatically elected through the self-referral algorithm and switched to the backup network when the main network is abnormal to achieve continuous data transmission.

Benefits of technology

It improves the online rate of IoT terminal devices, ensures continuous data transmission and stability, avoids data loss, and is suitable for data communication needs in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117768932B_ABST
    Figure CN117768932B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of computer technology, and in particular to a network backup self-recommended master gateway device, comprising: an information processing and transmission master control module Master and an information processing and transmission master control module Slave; the information processing and transmission master control module Master and the information processing and transmission master control module Slave are used to drive and control a data acquisition module, a main network module, and a Master role recommendation module connected thereto; the data acquisition module is used to collect various raw data of industrial and commercial electricity consumption; the main network module is used to transmit the raw data to a designated server or terminal device through a wireless network; the local wireless network backup module is used to switch the data transmission function of the Master role or the Slave role of the information processing and transmission master control module Master and the information processing and transmission master control module Slave; the Master role recommendation module is used to automatically select a Master master network node from multiple master network nodes in a wireless network according to a self-recommendation algorithm. The present invention solves the technical problem of low online rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a network backup self-electing master gateway device. Background Art

[0002] The currently known wireless data transmission devices for the Internet of Things are all based on a single network and single node working mode. The existing devices only have a single wireless communication capability of 4G or WIFI or NB. The existing defects are that there is no local area networking function and no flexible network backup function. In a slightly complex working environment, there will be a serious situation of large-scale terminal data loss, resulting in a serious problem of low online rate of terminal equipment. The problems or defects of the existing technology are as follows: These devices exist in the Internet of Things industry and various industrial control, smart city and other fields. Wireless communication solves the function of the Internet of Everything, but brings the defect of poor network communication stability. For example, when using wireless communication in a complex environment, the communication quality will be very poor, such as in a basement, garage and other environments with large buildings blocking. If the device is installed in such an environment, it cannot effectively and stably provide stable and reliable data support for the big data platform. Summary of the invention

[0003] The invention provides a network backup self-recommending master gateway device, which solves the technical problem of low online rate in the prior art.

[0004] The basic scheme provided by the present invention is: a network backup self-nominating master gateway device, comprising: an information processing and transmission master control module Master and an information processing and transmission master control module Slave, wherein the information processing and transmission master control module Master and the information processing and transmission master control module Slave are both connected to a data acquisition module, a main network module, a local wireless network backup module and a Master role nominating module;

[0005] The information processing and transmission master control module Master and the information processing and transmission master control module Slave are used to drive and control the data acquisition module, the main network module, and the Master role recommendation module connected thereto;

[0006] The data acquisition module is used to collect various raw data of industrial and commercial electricity consumption;

[0007] The main network module is used to transmit the original data to a designated server or terminal device via a wireless network;

[0008] The local wireless network backup module is used to switch the data transmission function of the Master role or the Slave role of the information processing and transmission master control module Master and the information processing and transmission master control module Slave;

[0009] The Master role nomination module is used to automatically elect a Master master network node from multiple master network nodes in the wireless network according to a self-nomination algorithm.

[0010] The working principle and advantages of the present invention are:

[0011] 1. In this solution, the gateway device normally works in the main network working mode, and the backup network is in standby mode, which is only responsible for the role maintenance of the gateway device; the backup network of the gateway device adopts a star networking mode, and the master-slave interaction mode (master & slave) adopts a time-sharing polling mechanism. The network backup function of the Master self-nomination network autonomy can be completed through the wireless LAN (obtaining master recommendation information and various application data) through a custom heartbeat message. In a project, one Master role and multiple Slave roles are configured by default, and the Master role and Slave role are maintained through the wireless LAN backup network information. The information processing and transmission master control module Master has the function of publishing its own data and proxy publishing the application data of the Slave. The information processing and transmission master control module Slave also has its own data publishing function. If it is in the backup network working mode and cannot publish data to the cloud by itself, it needs to be published through the information processing and transmission master control module Master proxy.

[0012] 2. The gateway device can switch between the master and slave roles according to its own main network status. Both roles of the gateway device have the characteristics of transmitting their own data to the cloud in the main network working mode. As long as the main network status of one of the gateway devices in the same local backup network node is normal, then even if the main network status of all other gateway devices is in an abnormal state, the gateway device in the abnormal state can still realize the data through the master agent release of the information processing transmission control module, and the gateway device works in the slave backup network state. In the nodes of the entire wireless local area backup network, the gateway device will monitor the main network status, which includes information such as signal strength, signal quality, and network status. Each gateway device uses this information to automatically assign the role of each transmission device through recommendation decisions, so that it can work in its own working mode and improve the online rate of the gateway device.

[0013] The core technology of the present invention lies in the self-election Master function, which can realize automatic backup of the wireless network. When the main network has problems or the signal is unstable, the gateway device can automatically switch to the backup network to ensure continuous data transmission, thereby avoiding data loss caused by network interruption. In addition, the gateway device also has a flexible networking solution that can meet the data communication requirements of different scenarios and needs. The advantage of this solution is that it can solve the problems of low online rate, unstable data transmission, data loss, etc. of data transmission devices in the Internet of Things industry, and ensure the effectiveness of terminal transmission devices.

[0014] Furthermore, the data acquisition module includes a real-time data acquisition submodule and a historical data query submodule. The real-time data acquisition submodule is used to acquire real-time original data, and the historical data query submodule is used to query historical original data.

[0015] The beneficial effect is that various data on industrial and commercial electricity consumption can be collected, such as voltage, current, power factor, current demand, current power consumption and daily power consumption. These data can be collected in real time through the electricity meter or queried through historical data.

[0016] Furthermore, the main network module includes a 4F sub-network module, a Wi-Fi sub-network module, a NB sub-network module and a LAN sub-network module.

[0017] The beneficial effect is that the main network module can support multiple wireless communication protocols to be responsible for local to cloud data transmission, such as 4F, Wi-Fi, NB, LAN, etc., to meet the needs of different scenarios.

[0018] Furthermore, when the Master role election module automatically elects a Master master network node from multiple master network nodes in the wireless network according to the self-election algorithm, the election is performed according to the communication capability of the master network node.

[0019] The beneficial effect is that this can achieve centralized management and control of data, and the Master role election module can elect based on factors such as the communication capability of the master node to ensure the stability and reliability of the Master network node.

[0020] Furthermore, the information processing and transmission master control module Master and the information processing and transmission master control module Slave are also connected to a data storage module, and the data storage module is used to back up original data.

[0021] The beneficial effect is that the collected original data can be professionally backed up to prevent the original data from being lost or damaged.

[0022] Furthermore, the data storage module includes a local data storage submodule and a cloud data storage submodule, the local data storage submodule is used to use local storage to back up original data, and the cloud data storage submodule is used to use cloud storage to back up original data.

[0023] The beneficial effect is that backup can be performed in a variety of ways, such as local storage and cloud storage, to meet the needs of different users.

[0024] Furthermore, the information processing and transmission master control module Master and the information processing and transmission master control module Slave are also connected to an interface expansion module, and the interface expansion module is used to expand the interface.

[0025] The beneficial effect is that this allows access to other devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 4 is a system structure block diagram of an embodiment of the present invention.

[0027] Figure 2 This is a role configuration flow chart of an embodiment of the present invention.

[0028] Figure 3 This is a flowchart of working condition selection according to an embodiment of the present invention.

[0029] Figure 4 The present invention provides a flow chart of the proxy service publishing process according to an embodiment of the present invention.

[0030] Figure 5 The figure is a flowchart of a role recommendation task according to an embodiment of the present invention.

[0031] Figure 6 The present invention is a flowchart of a role recommendation profile configuration update task according to an embodiment of the present invention. DETAILED DESCRIPTION

[0032] The following is a further detailed description through specific implementation methods:

[0033] The embodiment is basically as shown in the attached Figure 1 As shown, it includes: an information processing and transmission master control module Master and an information processing and transmission master control module Slave, wherein the information processing and transmission master control module Master and the information processing and transmission master control module Slave are both connected to a data acquisition module, a main network module, a local wireless network backup module and a Master role recommendation module;

[0034] The information processing and transmission master control module Master and the information processing and transmission master control module Slave are used to drive and control the data acquisition module, the main network module, and the Master role recommendation module connected thereto;

[0035] The data acquisition module is used to collect various raw data of industrial and commercial electricity consumption; the data acquisition module includes a real-time data acquisition submodule and a historical data query submodule, the real-time data acquisition submodule is used to collect real-time raw data, and the historical data query submodule is used to query historical raw data;

[0036] The main network module is used to transmit the original data to a designated server or terminal device through a wireless network; the main network module includes a 4F sub-network module, a Wi-Fi sub-network module, a NB sub-network module and a LAN sub-network module;

[0037] The local wireless network backup module is used to switch the data transmission function of the Master role or the Slave role of the information processing and transmission master control module Master and the information processing and transmission master control module Slave;

[0038] The Master role election module is used to automatically elect a Master master network node from multiple master network nodes in the wireless network according to a self-election algorithm; when the Master role election module automatically elects a Master master network node from multiple master network nodes in the wireless network according to the self-election algorithm, the election is performed according to the communication capability of the master network node;

[0039] The information processing and transmission master control module Master and the information processing and transmission master control module Slave are also connected to a data storage module, and the data storage module is used to back up the original data; the data storage module includes a local data storage submodule and a cloud data storage submodule, the local data storage submodule is used to use local storage to back up the original data, and the cloud data storage submodule is used to use cloud storage to back up the original data;

[0040] The information processing and transmission master control module Master and the information processing and transmission master control module Slave are also connected with an interface expansion module, and the interface expansion module is used to expand the interface.

[0041] For example, a property user uses a smart electricity management platform to manage the electricity consumption of merchants. The platform will be connected to the gateway device of this solution. The gateway device will deploy N gateway devices in this property user according to the number of merchant partitions. Here we use these two gateway devices as an example, as shown in the attached figure. Figure 1As shown, the data acquisition modules of the two gateway devices are mounted with 30 districts of smart electricity meters. The smart meters collect electricity usage in each district of the merchant, including voltage, current, power factor, current demand, current electricity consumption and daily electricity consumption data. The main control module of the information processing and transmission device analyzes and processes the data and formats the data again. Finally, the data is pushed to the cloud through the main network module to provide data support. Before this series of actions, the gateway device will configure the file through the cloud, and one of the devices will be set as the Master role and the other as the Slave, as well as the file configuration of the meter and the collection task configuration of the meter. The default process configuration is as shown in the attached figure. Figure 2 After the configuration is completed, the Master role recommendation module performs role self-recommendation maintenance. The algorithm and logic of this module are as shown in the attached Figure 3 Normally, both gateway devices work in the main network mode. Once the following two situations occur, the data proxy publishing service will be performed as shown in the attached figure. Figure 4 shown.

[0042] (1) Once the gateway device with the current Master role has a main network node abnormality, the Master role recommendation module will promptly drive the submission of the role identity switch to the high-quality main network node of the gateway device with the current Slave role, recommend the Slave role as the current Master role, switch the Master identity to the Slave role, and then enter the data proxy publishing mode. The gateway device with the main network node abnormality obtains all the data of the Slave gateway device through the Master role wireless local area network backup module for proxy publishing and feedback forwarding. This completes the node data continuation of the Slave gateway device with the main network abnormality, thereby achieving the purpose of not losing data and ensuring that the gateway device continues to exist without being offline.

[0043] (2) If the main network of the current Slave role gateway device is abnormal, the Master role gateway device will directly proxy the data release and control feedback of the Slave role gateway device, and will not initiate the role recommendation information update, to ensure that the data of the Slave role gateway device is reported in time, so as to achieve the purpose of not losing data and keeping the gateway device offline. If there are multiple Slave role gateway devices in the same wireless LAN, the Master role recommendation module will enter the deep role recommendation task, as shown in the attached figure. Figure 5 As shown in the figure, the best gateway device of the Master role will be recommended as the main network node for proxy release according to the main network service connection status, network status, signal quality, signal strength and other dimensions of the gateway device of the Slave role, and finally the role recommendation file configuration update task will be completed, as shown in the attached Figure 6shown.

[0044] In this embodiment:

[0045] 1. The gateway device normally works in the main network working mode, and the backup network is in standby mode, which is only responsible for the role maintenance of the gateway device; the backup network of the gateway device adopts a star networking mode, and the master-slave interaction mode (master & slave) adopts a time-sharing polling mechanism. The network backup function of the Master self-nomination network autonomy can be completed through the wireless LAN (obtaining master recommendation information and various application data) through a custom heartbeat message. In a project, one Master role and multiple Slave roles are configured by default, and the Master role and Slave role are maintained through wireless LAN backup network information. The information processing and transmission master control module Master has the function of publishing its own data and proxy publishing the application data of the Slave. The information processing and transmission master control module Slave also has its own data publishing function. If it is in the backup network working mode and cannot publish data to the cloud by itself, it needs to be published through the information processing and transmission master control module Master proxy.

[0046] 2. The gateway device can switch between the master and slave roles according to its own main network status. Both roles of the gateway device have the characteristics of transmitting their own data to the cloud in the main network working mode. As long as the main network status of one of the gateway devices in the same local backup network node is normal, then even if the main network status of all other gateway devices is in an abnormal state, the gateway device in the abnormal state can still realize the data through the master agent release of the information processing transmission control module, and the gateway device works in the slave backup network state. In the nodes of the entire wireless local area backup network, the gateway device will monitor the main network status, which includes information such as signal strength, signal quality, and network status. Each gateway device uses this information to automatically assign the role of each transmission device through recommendation decisions, so that it can work in its own working mode and improve the online rate of the gateway device.

[0047] The above is only an embodiment of the present invention. The common sense such as the known specific structure and characteristics in the scheme is not described in detail here. The ordinary technicians in the relevant field know all the common technical knowledge in the technical field of the invention before the application date or priority date, can obtain all the existing technologies in the field, and have the ability to apply the conventional experimental means before that date. The ordinary technicians in the relevant field can improve and implement this scheme in combination with their own abilities under the enlightenment given by this application. Some typical known structures or known methods should not become obstacles for ordinary technicians in the relevant field to implement this application. It should be pointed out that for those skilled in the art, without departing from the structure of the present invention, several deformations and improvements can be made, which should also be regarded as the protection scope of the present invention, which will not affect the effect of the implementation of the present invention and the practicality of the patent. The protection scope required by this application shall be based on the content of its claims, and the specific implementation methods and other records in the specification can be used to interpret the content of the claims.

Claims

1. A network backup self-electing master gateway device, characterized in that: include: An information processing and transmission master control module Master and an information processing and transmission master control module Slave, wherein the information processing and transmission master control module Master and the information processing and transmission master control module Slave are both connected to a data acquisition module, a main network module, a local wireless network backup module and a Master role recommendation module; The information processing and transmission master control module Master and the information processing and transmission master control module Slave are used to drive and control the data acquisition module, the main network module, and the Master role recommendation module connected thereto; The data acquisition module is used to collect various raw data of industrial and commercial electricity consumption; The main network module is used to transmit the original data to a designated server or terminal device via a wireless network; The local wireless network backup module is used to switch the data transmission function of the Master role or the Slave role of the information processing and transmission master control module Master and the information processing and transmission master control module Slave; The Master role election module is used to automatically elect a Master master network node from multiple master network nodes in the wireless network according to a self-election algorithm; The information processing and transmission master control module Master has the function of publishing its own data and publishing the application data of the Slave on behalf of the master control module; the information processing and transmission master control module Slave also has the function of publishing its own data; Both roles of the gateway device have the characteristics of transmitting their own data to the cloud in the main network working mode; If the information processing and transmission master control module Slave is in the backup network working mode and cannot publish data to the cloud by itself, it needs to be published through the information processing and transmission master control module Master; When the gateway device of the current Master role has a master network node abnormality, the Master role recommendation module drives the submission of the role identity switch to the high-quality master network node of the gateway device of the current Slave role, recommends the Slave role as the current Master role, switches the Master identity to the Slave role, and enters the data proxy publishing mode; The information processing and transmission master control module Master is used to publish data on behalf of the information processing and transmission master control module Slave when the information processing and transmission master control module Slave itself cannot publish data to the designated server or terminal device; When the Master role election module automatically elects a Master master network node from multiple master network nodes in the wireless network according to the self-election algorithm, the election is performed according to the communication capability of the master network node.

2. A network backup self-electing master gateway device as claimed in claim 1, characterized in that: The data acquisition module includes a real-time data acquisition submodule and a historical data query submodule. The real-time data acquisition submodule is used to acquire real-time original data, and the historical data query submodule is used to query historical original data.

3. A network backup self-electing master gateway device as claimed in claim 2, characterized in that: The main network module includes a 4F sub-network module, a Wi-Fi sub-network module, a NB sub-network module and a LAN sub-network module.

4. A network backup self-electing master gateway device as claimed in claim 1, characterized in that: The information processing and transmission master control module Master and the information processing and transmission master control module Slave are also connected to a data storage module, and the data storage module is used to back up original data.

5. A network backup self-electing master gateway device as claimed in claim 4, characterized in that: The data storage module includes a local data storage submodule and a cloud data storage submodule. The local data storage submodule is used to back up original data using local storage, and the cloud data storage submodule is used to back up original data using cloud storage.

6. A network backup self-electing master gateway device as claimed in claim 5, characterized in that: The information processing and transmission master control module Master and the information processing and transmission master control module Slave are also connected with an interface expansion module, and the interface expansion module is used to expand the interface.

Citation Information

Patent Citations

  • Method for controlling wireless network and wireless network

    CN102695195A

  • Home gateway system and data forwarding method

    CN110351385A