CN114666208B - Gateway system, node management method, electronic device, and storage medium - Google Patents

Gateway system, node management method, electronic device, and storage medium Download PDF

Info

Publication number
CN114666208B
CN114666208B CN202210323650.4A CN202210323650A CN114666208B CN 114666208 B CN114666208 B CN 114666208B CN 202210323650 A CN202210323650 A CN 202210323650A CN 114666208 B CN114666208 B CN 114666208B
Authority
CN
China
Prior art keywords
gateway
node
information
node information
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210323650.4A
Other languages
Chinese (zh)
Other versions
CN114666208A (en
Inventor
何佩奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou C Sky Microsystems Co Ltd
Original Assignee
Hangzhou C Sky Microsystems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou C Sky Microsystems Co Ltd filed Critical Hangzhou C Sky Microsystems Co Ltd
Priority to CN202210323650.4A priority Critical patent/CN114666208B/en
Publication of CN114666208A publication Critical patent/CN114666208A/en
Application granted granted Critical
Publication of CN114666208B publication Critical patent/CN114666208B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application provides a gateway system, a node management method, electronic equipment and a storage medium, which are particularly suitable for various widely applied chips which are based on RISC-V architecture instruction sets and comprise Bluetooth communication chips or ZigBee communication chips; the gateway system includes: a plurality of gateways forming a grid network, each gateway being connected with at least one node, each gateway storing node information of each node to which the gateway is connected; node information for each of the nodes is stored in at least two of the gateways. The scheme can reduce the cost of a single gateway in the gateway system.

Description

Gateway system, node management method, electronic device, and storage medium
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a gateway system, a node management method, electronic equipment and a storage medium.
Background
In application scenes such as intelligent houses and intelligent buildings, nodes such as temperature control switches, lighting equipment and fire alarm devices need to communicate among the nodes and between the nodes and the Internet through gateways, a plurality of gateways form a gateway system, and each gateway is in wireless connection with at least one node. In order to ensure that the nodes can normally communicate, the gateway system needs to store node information of the nodes connected with each gateway, in order to realize disaster recovery backup, the node information of the nodes connected with each gateway needs to be backed up and stored, and when any gateway fails, a new gateway can be used for quickly replacing the failed gateway based on the backed up node information.
Currently, each gateway included in a gateway system caches node information for all nodes in the network.
However, since each gateway can connect a plurality of nodes, node information of all nodes in the network has a large data size, which requires a large storage space for each gateway to be able to store node information of all nodes in the network, and the large storage space results in a high cost of the gateway.
Disclosure of Invention
In view of this, embodiments of the present application provide a gateway system, a node management method, an electronic device, and a storage medium, which can reduce the cost of a single gateway in the gateway system.
According to a first aspect of embodiments of the present application, there is provided a gateway system, including: a plurality of gateways forming a grid network, each gateway being connected with at least one node, each gateway storing node information of each node to which the gateway is connected; node information for each of the nodes is stored in at least two of the gateways.
According to a second aspect of embodiments of the present application, there is provided a node management method applied to each gateway included in a gateway system, the gateway system including a plurality of gateways constituting a mesh network, each of the gateways being connected to at least one node, the node management method including: storing node information of each node connected with a first gateway in the first gateway; and respectively transmitting the node information of each node connected with the first gateway to at least one second gateway, so that the node information of each node is stored in at least one second gateway.
According to a third aspect of embodiments of the present application, there is provided a node management method applied to each gateway included in a gateway system, the gateway system including a plurality of gateways that form a mesh network, each of the gateways being connected to at least one node, the gateway system being connected to a node control system, the node including a switching device, a lighting device, a security device, or a fire alarm device, the node management method including: storing node information of each node connected with a first gateway in the first gateway; and respectively transmitting the node information of each node connected with the first gateway to at least one second gateway, so that the node information of each node is stored in at least one second gateway.
According to a fourth aspect of embodiments of the present application, there is provided an electronic device, including: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface are communicated with each other through the communication bus; the memory is configured to store at least one executable instruction, where the executable instruction causes the processor to perform operations corresponding to the node management method according to the second aspect or the third aspect.
According to a fifth aspect of embodiments of the present application, there is provided a computer storage medium having stored thereon a computer program which, when executed by a processor, implements the text recognition method as described in the first aspect or the node management method as described in the second or third aspect.
According to a sixth aspect of embodiments of the present application, there is provided a computer program product comprising computer instructions for instructing a computing device to perform the node management method as described in the second or third aspect above.
By the above technical solution, among the plurality of gateways constituting the mesh network, each stores node information of each node to which it is connected, and the node information of each node is stored in at least two gateways, that is, the node information of each node is stored not only in the gateway to which it is connected but also in at least one gateway which is not directly connected to the rest. When one gateway fails, node information of nodes connected with the failed gateway is stored in at least one other gateway, and after the failed gateway is replaced by a new gateway, the new gateway can acquire node information of each node connected with the failed gateway from the other gateways, so that the nodes which communicate through the failed gateway can communicate through the new gateway. Because the node information of each node is only stored on at least two gateways, and each gateway is not required to store the node information of all nodes, the backup requirement of the node information can be met, and the requirement on the storage space of the gateway is reduced, so that the cost of the gateway can be reduced, and the cost of a gateway system can be further reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following description will briefly introduce the drawings that are required to be used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present application, and other drawings may also be obtained according to these drawings for a person having ordinary skill in the art.
FIG. 1 is a schematic diagram of an exemplary system to which one embodiment of the present application is applied;
FIG. 2 is a schematic diagram of a gateway system of one embodiment of the present application;
FIG. 3 is a schematic diagram of a gateway system according to another embodiment of the present application;
FIG. 4 is a schematic diagram of a gateway system of yet another embodiment of the present application;
FIG. 5 is a flow chart of a method of node management of one embodiment of the present application;
FIG. 6 is a flow chart of a method of node management according to another embodiment of the present application;
fig. 7 is a schematic diagram of an electronic device according to one embodiment of the present application.
Detailed Description
In order to better understand the technical solutions in the embodiments of the present application, the following descriptions will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the embodiments of the present application shall fall within the scope of protection of the embodiments of the present application.
First, partial terms or terminology appearing in the course of describing the embodiments of the present application are applicable to the following explanation:
mesh network: the communication network is formed by interconnecting a plurality of communication devices, and any two communication devices can directly communicate, such as a Mesh network. The embodiment of the application refers to a Mesh network formed by connecting a plurality of gateways.
Gateway: and the equipment which connects a plurality of networks using different transmission protocols is responsible for data interaction between the different transmission protocols. Multiple nodes may be connected under each gateway.
And (3) node: a device that uses some kind of transmission protocol and interacts information with the outside through a gateway. The nodes can communicate with each other through the gateway, and also can communicate with the server through the gateway. The nodes may be internet of things (Internet of Things, ioT) devices such as switching devices, lighting devices, fire protection devices, fire alarm devices, etc. applied in smart home, smart building, etc. scenarios.
Node information: information necessary for the node to communicate through the gateway includes identification Information (ID), capability information, status information, configuration information, security information, and the like of the node.
Exemplary System
Fig. 1 illustrates an exemplary system suitable for use in the node management method of embodiments of the present application. As shown in fig. 1, the system includes a server 102, a communication network 104, and one or more nodes 106, which are illustrated in fig. 1 as a plurality of nodes.
Server 102 may be any suitable server for storing information, data, programs, and/or any other suitable type of content. In some embodiments, server 102 may perform any suitable functions. For example, in some embodiments, the server 102 may obtain operational state information of the node and control the node, etc. As another example, in some embodiments, the server 102 may be used to send operational state information of a node to a user device.
In some embodiments, the communication network 104 may be any suitable combination of one or more wired and/or wireless networks. For example, the communication network 104 can include any one or more of the following: the internet, an intranet, a Wide Area Network (WAN), a Local Area Network (LAN), a wireless network, a Digital Subscriber Line (DSL) network, a frame relay network, an Asynchronous Transfer Mode (ATM) network, a Virtual Private Network (VPN), and/or any other suitable communication network. The node 106 can be coupled to the communication network 104 via one or more communication links (e.g., communication link 112), and the communication network 104 can be linked to the server 102 via one or more communication links (e.g., communication link 114). The communication link may be any communication link suitable for transferring data between the node 106 and the server 102, such as a network link, a dial-up link, a wireless link, a hard-wired link, any other suitable communication link, or any suitable combination of such links.
Node 106 may comprise any suitable type of device. For example, in some embodiments, the node 106 may include an internet of things device such as a switch, a light, an air conditioner controller, a fire alarm, a fire suppression device, etc., that communicates based on a wireless network such as WiFi, bluetooth, zigBee, etc.
Although server 102 is illustrated as one device, in some embodiments any suitable number of devices may be used to perform the functions performed by server 102. For example, in some embodiments, multiple devices may be used to implement the functions performed by server 102. Alternatively, the functionality of server 102 may be implemented using cloud services.
Gateway system
Based on the above exemplary system, the present embodiments provide a gateway system that is applied to the communication network 104 in the above exemplary system. As shown in fig. 2, the gateway system 200 includes a plurality of gateways 201, each gateway 201 being connected to each other to form a mesh network, each gateway 201 being connected to at least one node 106, each gateway 201 storing node information of each node 106 connected to the gateway 201. The node information of each node 106 is stored in at least two gateways 201.
Each gateway 201 is connected to one or more nodes 106, and the gateway 201 may receive communication data transmitted from the connected nodes 106 and transmit the communication data to a server through a network other than the gateway system 200, such as a local area network, the internet, or the like, or may transmit the communication data to other gateways 201, and transmit the communication data to the server through a network other than the gateway system 200 by other gateways 201. The gateway 201 may also receive communication data sent by a server through a network other than the gateway system 200, such as a local area network, the internet, etc., and send the communication data to the connected node 106, or send the communication data to other connected gateways 201, and the other gateways 201 send the communication data to the connected node 106. Two-way communication of the node 106 with the server may be achieved through at least one gateway 201 in the gateway system 200.
Each gateway 201 is connected to one or more nodes 106, and the gateway 201 may receive communication data of one node 106 connected and send the communication data to another node 106 connected, or send the communication data to other gateways 201, and send the communication data to the connected nodes 106 by other gateways 201, and through at least one gateway 201 in the gateway system 200, bidirectional communication between the nodes 201 may be achieved.
When forwarding communication data of the node 106, the gateway 201 needs node information of the node 106, where the node information includes identification information, capability information, status information, configuration information, security information, and the like of the node, so as to ensure reliability and security of communication between the node 106 and a server. When one node 106 is connected to the gateway 201, the gateway 201 acquires and stores node information of the node 106, and the gateway 201 performs protocol conversion and data forwarding on communication data of the node 106 based on the stored node information. When the gateway 201 fails, the new gateway replaces the failed gateway, and needs to acquire the backup node information, so that the new gateway can perform protocol conversion and data forwarding on the communication data of the corresponding node 106 based on the acquired node information, without the need of re-networking the node 106.
In the embodiment of the present application, among the plurality of gateways 201 that constitute the mesh network, each of the gateways 201 stores node information of each node 106 to which it is connected, and the node information of each node 106 is stored in at least two of the gateways 201, that is, the node information of each node 106 is stored not only in the gateway 201 to which it is connected but also in at least one gateway 201 that is not directly connected to the rest. When one gateway 201 fails, node information of nodes 106 connected to the failed gateway 201 is stored in at least one other gateway 201, and after the failed gateway 201 is replaced by a new gateway, the new gateway may obtain node information of each node 106 connected to the failed gateway 201 from the other gateway 201, so that nodes 106 that have previously communicated through the failed gateway 201 may communicate through the new gateway. Because the node information of each node 106 only needs to be stored on at least two gateways 201, and each gateway 201 is not required to store the node information of all nodes 106, the backup requirement of the node information can be met, and the requirement on the storage space of the gateway 201 is reduced, so that the cost of the gateway 201 can be reduced, and the cost of the gateway system 200 can be further reduced.
In one possible implementation, for each first gateway of the gateways 201 included in the gateway system 200, node information of the nodes 106 connected to the first gateway is stored in at least one second gateway included in the gateway 200, the first gateway and the second gateway being different gateways.
The first gateway may be any gateway 201 in the gateway system 200, corresponding to the first gateway, and the second gateway may be any gateway 201 in the gateway system 200 different from the first gateway. The same gateway 201 may act as a second gateway to a different first gateway. The first gateway and the second gateway are illustrated below.
Fig. 3 is a schematic diagram of a gateway system of one embodiment of the present application. As shown in fig. 3, gateway system 200 includes gateway a 0 To gateway A n N+1 gateways in total, gateway A 0 With node B 1 To node B 50 A total of 50 nodes are connected with gateway A 1 With node B 51 To node B 100 A total of 50 nodes are connected. Gateway A 0 On which node B is stored 1 To node B 50 Node information of each node in the network, gateway A 1 And gateway A 2 Node B is also stored in 1 To node B 50 Node information of each node in the plurality of nodes. Gateway A 1 Node B is stored therein 51 Node B 100 Node information of each node in the pool, gateway A 2 Node B is also stored in 51 To node B 100 Node information of each node in the plurality of nodes.
Gateway A 0 When being used as a first gateway, gateway A 1 And gateway A 2 For gateway A 0 And a corresponding second gateway. Gateway A 1 When being used as a first gateway, gateway A 2 For gateway A 1 And a corresponding second gateway. Gateway A 2 As gateway A 0 And gateway A 1 Not only store gateway a 2 Node information of each connected node is also stored with a gateway A 0 And gateway A 1 And node information of each connected progress.
In this embodiment of the present application, for any first gateway in the gateway system 200, node information of each node 106 connected to the first gateway is stored in one or more second gateways in a unified backup manner, that is, node information of each node 106 connected to the first gateway is stored in the second gateway, and when the first gateway fails, node information of each node 106 connected to the first gateway can be obtained from one of the second gateways, and the obtained node information is imported into a new gateway that replaces the first gateway, so that the new gateway can replace the first gateway to implement communication of the node 106. Because the node information of each node connected with the first gateway is stored on each second gateway, the node information is only required to be acquired from one of the second gateways when the first gateway is replaced, so that the node information is more convenient and rapid to acquire, and the convenience of managing the nodes can be improved.
Fig. 4 is a schematic diagram of a gateway system of one embodiment of the present application. As shown in fig. 4, each gateway 201 stores not only node information of each node connected to the current gateway (first gateway) and node information of each node connected to the backup gateway (corresponding first gateway when serving as the second gateway), but also a cross storage information table. The corresponding relation between the first gateway and the second gateway is recorded in the cross storage information table.
For the corresponding first gateway and second gateway, the second gateway stores node information of each node 106 connected to the first gateway. For example, as shown in FIG. 3, gateway A 1 In which gateway A is stored 0 The node information of each connected node is recorded with gateway A in the cross storage information table 0 As a first gateway and gateway A 1 As a correspondence of the second gateway. Gateway A 2 In which gateway A is stored 0 The node information of each connected node is recorded with gateway A in the cross storage information table 0 As a first gateway and gateway A 2 As a correspondence of the second gateway. Gateway A 2 In which gateway A is stored 1 The node information of each connected node is recorded with gateway A in the cross storage information table 1 As a first gateway and gateway A 2 As a correspondence of the second gateway.
Table 1 below is an example of a cross storage information table, in which gateway IDs corresponding to a first gateway and a second gateway are recorded, where gateway 0 to gateway n are gateway IDs of n gateways included in the gateway system, respectively, gateway 0 corresponds to gateway x and gateway y, and node information of nodes connected by two gateways, whose gateway IDs are gateway x and gateway y, is stored in the gateway whose gateway ID is gateway 0. It should be appreciated that in table 1 below, x, y, k, m and z are both positive integers less than n, n being a positive integer.
TABLE 1
The cross storage information table records which gateway the node information of the node connected with each gateway is backed up and stored in, the same cross storage information table is stored in each gateway, the cross storage information table is commonly maintained by each gateway, and the backup position of the node information of the node connected with any gateway in the gateway system can be determined according to the cross storage information table.
In this embodiment of the present application, a cross storage information table is stored in each gateway, where a correspondence between a first gateway and a second gateway is recorded in the cross storage information table, and a backup position of node information of a node connected to each gateway may be determined according to the cross storage information table, so after a certain gateway fails, it may be determined according to the cross storage information table, which gateway or gateways the node information of the node connected to the failed gateway is stored in, further node information of the node connected to the failed gateway is obtained from the corresponding gateway, and the obtained node information is imported into a new gateway that replaces the failed gateway, so that each node connected to the failed gateway may communicate through the new gateway. By storing the cross storage information table in the gateway, the backup position of the node information can be rapidly determined, so that the node information can be rapidly imported into a new gateway when the gateway is replaced, and the efficiency of replacing the gateway is improved.
In one possible implementation, after the node information of each node connected to the first gateway is changed, the first gateway may synchronize the changed node information to each corresponding second gateway.
The second gateway stores node information of each node connected with the first gateway, if the node information of each node connected with the first gateway is changed, the first gateway updates the stored node information of each node connected with the first gateway, and the first gateway synchronizes the changed node information into each second gateway so that the node information backed up by the second gateway is identical to the node information of each node connected with the first gateway stored by the first gateway. The change of the node information includes a content change of the node information of a certain node or a plurality of nodes, a deletion of the node information of a certain node or a plurality of nodes, a new addition of the node information of a certain node or a plurality of nodes, and the like.
In the embodiment of the application, after the node information of each node connected with the first gateway is changed, the first gateway realizes the communication of each connected node based on the changed node information, and if the gateway performs protocol conversion and data forwarding on the communication data of the nodes based on the node information before the change, at least part of the nodes cannot normally communicate. After the first gateway synchronizes the changed node information to the second gateway, if the first gateway fails, the changed node information can be acquired from the second gateway and imported into the new gateway, so that the new gateway performs protocol conversion and data forwarding on the communication data of the nodes based on the changed node information, each node connected with the new gateway is guaranteed to be capable of normally communicating, and therefore reliability of node communication after the gateway is replaced can be improved.
In one possible implementation manner, the Mesh network formed by the connection of the gateways may be a bluetooth low energy Mesh network or a ZigBee Mesh network, that is, the gateway system 200 is suitable for a bluetooth Mesh network constructed based on bluetooth low energy (Bluetooth Low Energy, BLE), and is also suitable for a Mesh network constructed based on ZigBee, so as to ensure the applicability of the gateway system 200.
Node management method
Fig. 5 is a flowchart of a node management method according to an embodiment of the present application, which is applied to each gateway included in a gateway system including a plurality of gateways constituting a mesh network, each gateway being connected to at least one node, that is, the node management method is applied to each gateway included in the gateway system in the foregoing embodiment. As shown in fig. 5, the node management method includes the steps of:
step 501, the first gateway stores node information of each node connected to the first gateway.
After a node is connected to a first gateway, that is, the node is connected to the network through the first gateway, node information of the node is stored in the first gateway, so that the first gateway stores node information of each node connected to the first gateway.
Step 502, node information of each node connected to the first gateway is sent to at least one second gateway, so that the node information of each node is stored in at least one second gateway.
And for each node connected with the first gateway, sending the node information of the node to at least one second gateway outside the first gateway, and backing up the node information of the node on the second gateway. For each node connected to the gateway system, the node information of the node is stored not only in the first gateway connected with the node but also in the second gateway not directly connected with the node, so that the backup of the node information is realized.
In this embodiment of the present application, each gateway in the gateway system is connected with at least one node, and node information of each node is not only stored in a first gateway connected with the gateway, but also stored in at least one second gateway unconnected with the first gateway, when the first gateway fails, node information of each node connected with the first gateway may be obtained from the second gateway, after the obtained node information is imported into a new gateway replacing the first gateway, the new gateway performs protocol conversion and data forwarding based on the imported node information, and each node previously connected with the first gateway may communicate through the new gateway. Because the node information of each node is only stored on at least one second gateway for backup, and each gateway is not required to store the node information of all nodes, the backup requirement of the node information can be met, and the requirement on the storage space of the gateway is reduced, so that the cost of the gateway can be reduced, and the cost of a gateway system can be further reduced.
In one possible implementation manner, when the node information of each node connected to the first gateway is sent to the second gateway, the node information of each node connected to the first gateway may be sent to at least one second gateway, so that each second gateway stores the node information of each node connected to the first gateway.
In the embodiment of the application, the node information of each node connected with the first gateway is sent to the second gateways, so that the node information of each node connected with the first network is stored on each second gateway, after the first gateway fails, the node information of each node connected with the first gateway can be obtained from one of the second gateways, the obtained node information is imported into a new gateway replacing the first gateway, and the new gateway can replace the first gateway to realize node communication. Because the node information of each node connected with the first gateway is stored on each second gateway, the node information is only required to be acquired from one of the second gateways when the first gateway is replaced, so that the node information is more convenient and rapid to acquire, and the convenience of managing the nodes can be improved.
In one possible implementation manner, when node information of each node connected to the first gateway is sent to the second gateway, at least one second gateway corresponding to the first gateway may be determined according to a cross storage information table stored in the first gateway, and then the node information of each node connected to the first gateway is sent to each second gateway corresponding to the first gateway, so that node information of each node connected to the first gateway is stored in each second gateway. Each gateway included in the gateway system stores a cross storage information table, and the cross storage information table records the corresponding relation between the first gateway and the second gateway.
In the embodiment of the application, each gateway stores a cross storage information table, the corresponding relation between the first gateway and the second gateway is recorded in the cross storage information table, the second gateway corresponding to the first gateway is determined according to the cross storage information table, then node information of each node connected with the first gateway is stored on the second gateway, if the first gateway breaks down, the second gateway storing the node information of the node connected with the first gateway can be determined according to the cross storage information table, then the node information of the node connected with the first gateway can be obtained from the second gateway, the obtained node information is imported into a new gateway for replacing the first gateway, and all the nodes connected with the first gateway can communicate through the new gateway before the first gateway, so that the node information can be quickly imported into the new gateway when the gateway is replaced, and the efficiency of replacing the gateway is improved.
In one possible implementation, in response to a change in node information transmission of each node to which the first gateway is connected, the changed node information is synchronized to a second gateway corresponding to the first gateway.
In the embodiment of the application, after the node information of each node connected with the first gateway is changed, the first gateway realizes the communication of each connected node based on the changed node information, and if the gateway performs protocol conversion and data forwarding on the communication data of the nodes based on the node information before the change, at least part of the nodes cannot normally communicate. After the changed node information is synchronized to the second gateway, if the first gateway fails, the changed node information can be acquired from the second gateway and imported into the new gateway, so that the new gateway performs protocol conversion and data forwarding on the communication data of the nodes based on the changed node information, each node connected with the new gateway can be guaranteed to normally communicate, and the reliability of node communication after the gateway is replaced can be improved.
In one possible implementation, when a node is connected to a first gateway, that is, when a new node enters the network through the first gateway, a communication address may be allocated to the node according to an allocable address range corresponding to the first gateway, so that each node connected to the gateway system has a different communication address.
The nodes communicate through the gateway, namely, the gateway forwards data according to the communication address of the nodes, and in order to ensure that the nodes can normally communicate, each node connected to the gateway system needs to have different communication addresses. And the gateway distributes communication addresses for nodes connected with the gateway in the allocable address ranges, so that different nodes are ensured to have different communication addresses.
Alternatively, the allocatable address range of the gateway may be determined from the gateway ID. For example, the upper limit of the number of connectable nodes of each gateway is N, N is a positive integer, and the gateway IDs of the gateways are numbered in integer order from 0, and the allocable address range corresponding to the gateway with the gateway ID M is [ mxn, (m+1) ×n ]. And determining an allocable address range for the gateway according to the gateway ID, and ensuring that the allocable address ranges of different gateways are not overlapped, so as to ensure that different nodes have different communication addresses.
In the embodiment of the application, different gateways correspond to non-overlapping allocable address ranges, and according to the allocable address range of each gateway, communication addresses are allocated to nodes connected to the gateway, so that different nodes are guaranteed to have different communication addresses, and further reliability of node communication is guaranteed.
It should be noted that, the node management method in the embodiment of the present application is implemented based on the gateway system in the foregoing embodiment, and the specific method for managing the node may refer to the description in the foregoing gateway system embodiment, and has the beneficial effects of the corresponding gateway system embodiment, which is not described herein in detail.
Node management method
Aiming at the application scenario of the node management scheme provided by the embodiment of the application in intelligent home, intelligent building and the like, the embodiment of the application provides a node management method which is applied to each gateway included in a gateway system, wherein the gateway system comprises a plurality of gateways forming a grid network, each gateway is connected with at least one node, and the gateway system is connected with a node control system. As shown in fig. 6, the node management method includes the steps of:
step 601, storing node information of each node connected with a first gateway in the first gateway, wherein the nodes comprise switch equipment, lighting equipment, security equipment or fire alarm equipment;
step 602, node information of each node connected to the first gateway is sent to at least one second gateway, so that the node information of each node is stored in the at least one second gateway.
It should be noted that, in the embodiment shown in fig. 6, for a specific application of the node management scheme in the embodiment of the present application, a specific node management process may refer to the description in the foregoing embodiment, and no further description is given here.
Electronic equipment
Fig. 7 is a schematic block diagram of an electronic device provided in an embodiment of the present application, where the embodiment of the present application is not limited to a specific implementation of the electronic device. As shown in fig. 7, the electronic device may include: a processor 702, a communication interface (Communications Interface), a memory 706, and a communication bus 708. Wherein:
processor 702, communication interface 704, and memory 706 perform communication with each other via a communication bus 708.
Communication interface 704 for communicating with other electronic devices or servers.
The processor 702 is configured to execute the program 710, and may specifically perform relevant steps in any of the foregoing node management method embodiments.
In particular, program 710 may include program code including computer-operating instructions.
The processor 702 may be a CPU or a specific integrated circuit ASIC (Application Specific Integrated Circuit) or one or more integrated circuits configured to implement embodiments of the present application. The one or more processors comprised by the smart device may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
RISC-V is an open source instruction set architecture based on the principle of Reduced Instruction Set (RISC), which can be applied to various aspects such as single chip microcomputer and FPGA chip, and can be particularly applied to the fields of Internet of things security, industrial control, mobile phones, personal computers and the like, and because the real conditions of small size, rapidness and low power consumption are considered in design, the RISC-V is particularly suitable for modern computing equipment such as warehouse-scale cloud computers, high-end mobile phones, micro embedded systems and the like. With the rise of AIoT of the artificial intelligent Internet of things, RISC-V instruction set architecture is also receiving more and more attention and support, and is expected to become a CPU architecture widely applied in the next generation.
The computer operating instructions in embodiments of the present application may be computer operating instructions based on a RISC-V instruction set architecture, and correspondingly, the processor 702 may be RISC-V based instruction set design. Specifically, the chip of the processor in the electronic device provided in the embodiment of the present application may be a chip designed by using a RISC-V instruction set, and the chip may execute executable codes based on the configured instructions, thereby implementing the node management method in the embodiment described above.
Memory 706 for storing programs 710. The memory 706 may comprise high-speed RAM memory or may further comprise non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 710 may be specifically configured to cause the processor 702 to perform the node management method in any of the foregoing embodiments.
The specific implementation of each step in the program 710 may refer to corresponding steps and corresponding descriptions in the units in any node management method embodiment described above, which are not described herein. It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus and modules described above may refer to corresponding procedure descriptions in the foregoing method embodiments, which are not repeated herein.
By means of the electronic device of the embodiment of the application, among the plurality of gateways forming the mesh network, each stores node information of each node connected with the gateway, and the node information of each node is stored in at least two gateways, namely, the node information of each node is stored in not only the gateway connected with the gateway but also at least one gateway which is not directly connected with the rest. When one gateway fails, node information of nodes connected with the failed gateway is stored in at least one other gateway, and after the failed gateway is replaced by a new gateway, the new gateway can acquire node information of each node connected with the failed gateway from the other gateways, so that the nodes which communicate through the failed gateway can communicate through the new gateway. Because the node information of each node is only stored on at least two gateways, and each gateway is not required to store the node information of all nodes, the backup requirement of the node information can be met, and the requirement on the storage space of the gateway is reduced, so that the cost of the gateway can be reduced, and the cost of a gateway system can be further reduced.
Computer storage medium
The present application also provides a computer readable storage medium storing instructions for causing a machine to perform a node management method as described herein. Specifically, a system or apparatus provided with a storage medium on which a software program code realizing the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or apparatus may be caused to read out and execute the program code stored in the storage medium.
In this case, the program code itself read from the storage medium may realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code form part of the present application.
Examples of the storage medium for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer by a communication network.
Computer program product
Embodiments of the present application also provide a computer program product comprising computer instructions that instruct a computing device to perform any corresponding operations of the above-described method embodiments.
It should be noted that, according to implementation requirements, each component/step described in the embodiments of the present application may be split into more components/steps, and two or more components/steps or part of operations of the components/steps may be combined into new components/steps, so as to achieve the purposes of the embodiments of the present application.
The above-described methods according to embodiments of the present application may be implemented in hardware, firmware, or as software or computer code storable in a recording medium such as a CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk, or as computer code originally stored in a remote recording medium or a non-transitory machine-readable medium and to be stored in a local recording medium downloaded through a network, so that the methods described herein may be stored on such software processes on a recording medium using a general purpose computer, special purpose processor, or programmable or special purpose hardware such as an ASIC or FPGA. It is understood that a computer, processor, microprocessor controller, or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code that, when accessed and executed by a computer, processor, or hardware, performs the methods described herein. Furthermore, when a general purpose computer accesses code for implementing the methods illustrated herein, execution of the code converts the general purpose computer into a special purpose computer for performing the methods illustrated herein.
Those of ordinary skill in the art will appreciate that the elements and method steps of the examples described in connection with the embodiments disclosed herein can be implemented as electronic hardware, or as a combination of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the embodiments of the present application.
The above embodiments are only for illustrating the embodiments of the present application, but not for limiting the embodiments of the present application, and various changes and modifications can be made by one skilled in the relevant art without departing from the spirit and scope of the embodiments of the present application, so that all equivalent technical solutions also fall within the scope of the embodiments of the present application, and the scope of the embodiments of the present application should be defined by the claims.

Claims (9)

1. A gateway system, comprising: a plurality of gateways forming a grid network, each gateway being connected with at least one node, each gateway storing node information of each node to which the gateway is connected;
node information for each of the nodes is stored in at least two of the gateways;
for each first gateway of the plurality of gateways, node information of each node connected to the first gateway is stored in at least one second gateway of the plurality of gateways, and the first gateway and the second gateway are different gateways;
each gateway is stored with a cross storage information table, the cross storage information table is used for recording the corresponding relation between the first gateway and the second gateway, and the corresponding relation between the first gateway and the second gateway is used for indicating that node information of a node connected with the first gateway is backed up and stored in the second gateway.
2. The gateway system of claim 1, wherein the first gateway is configured to, after the node information of each connected node is changed, synchronize the changed node information into the second gateway.
3. The gateway system of any of claims 1-2, wherein the mesh network comprises a bluetooth low energy mesh network or a ZigBee mesh network.
4. A node management method applied to each gateway included in a gateway system including a plurality of gateways constituting a mesh network, each of the gateways being connected to at least one node, the node management method comprising:
storing node information of each node connected with a first gateway in the first gateway;
node information of each node connected with the first gateway is respectively sent to at least one second gateway, so that the node information of each node is stored in at least one second gateway;
the sending the node information of each node connected with the first gateway to at least one second gateway respectively includes: determining at least one second gateway corresponding to the first gateway according to a cross storage information table stored in the first gateway, wherein each gateway included in the gateway system is stored with the cross storage information table, the cross storage information table is used for recording the corresponding relation between the first gateway and the second gateway, and the corresponding relation between the first gateway and the second gateway is used for indicating that node information of a node connected with the first gateway is backed up and stored in the second gateway; and respectively transmitting the node information of each node connected with the first gateway to each second gateway corresponding to the first gateway, so that each second gateway stores the node information of each node connected with the first gateway.
5. The node management method of claim 4, the method further comprising:
and responding to the change of the node information of each node connected with the first gateway, and synchronizing the changed node information into the second gateway.
6. The node management method according to any of claims 4-5, the method further comprising:
and distributing communication addresses to nodes connected to the first gateway according to the allocable address range corresponding to the first gateway, so that each node connected to the gateway system has different communication addresses.
7. A node management method applied to each gateway included in a gateway system, the gateway system including a plurality of gateways constituting a mesh network, each of the gateways being connected to at least one node, the gateway system being connected to a node control system, the node including a switching device, a lighting device, a security device, or a fire alarm device, the node management method comprising:
storing node information of each node connected with a first gateway in the first gateway;
node information of each node connected with the first gateway is respectively sent to at least one second gateway, so that the node information of each node is stored in at least one second gateway;
the sending the node information of each node connected with the first gateway to at least one second gateway respectively includes: determining at least one second gateway corresponding to the first gateway according to a cross storage information table stored in the first gateway, wherein each gateway included in the gateway system is stored with the cross storage information table, the cross storage information table is used for recording the corresponding relation between the first gateway and the second gateway, and the corresponding relation between the first gateway and the second gateway is used for indicating that node information of a node connected with the first gateway is backed up and stored in the second gateway; and respectively transmitting the node information of each node connected with the first gateway to each second gateway corresponding to the first gateway, so that each second gateway stores the node information of each node connected with the first gateway.
8. An electronic device, comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface are communicated with each other through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to perform operations corresponding to the node management method according to any one of claims 4-7.
9. A computer storage medium having stored thereon a computer program which when executed by a processor implements the node management method according to any of claims 4-7.
CN202210323650.4A 2022-03-30 2022-03-30 Gateway system, node management method, electronic device, and storage medium Active CN114666208B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210323650.4A CN114666208B (en) 2022-03-30 2022-03-30 Gateway system, node management method, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210323650.4A CN114666208B (en) 2022-03-30 2022-03-30 Gateway system, node management method, electronic device, and storage medium

Publications (2)

Publication Number Publication Date
CN114666208A CN114666208A (en) 2022-06-24
CN114666208B true CN114666208B (en) 2024-04-12

Family

ID=82033292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210323650.4A Active CN114666208B (en) 2022-03-30 2022-03-30 Gateway system, node management method, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN114666208B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102695195A (en) * 2012-05-30 2012-09-26 浙江中控技术股份有限公司 Method for controlling wireless network and wireless network
CN107360034A (en) * 2017-07-25 2017-11-17 美的智慧家居科技有限公司 Gateway restoration methods, device and its equipment
CN110768840A (en) * 2019-10-30 2020-02-07 珠海格力电器股份有限公司 Control method, device, equipment and storage medium of communication equipment
CN111314495A (en) * 2020-05-14 2020-06-19 上海顺舟智能科技股份有限公司 Communication method, device, equipment, storage medium and system based on LoRaWAN of Internet of things
CN111585800A (en) * 2020-04-29 2020-08-25 平安科技(深圳)有限公司 Virtual private cloud-based network node configuration method, device and medium
CN111683142A (en) * 2020-06-08 2020-09-18 广东美的暖通设备有限公司 Metering device, metering method, and computer-readable storage medium
CN113709839A (en) * 2021-08-19 2021-11-26 珠海格力电器股份有限公司 Multi-gateway network switching method, device and system, electronic equipment and storage medium
CN114007241A (en) * 2021-10-29 2022-02-01 杭州萤石软件有限公司 ZigBee system, gateway equipment thereof, gateway switching method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10320605B2 (en) * 2014-10-15 2019-06-11 Nimbus 9, Inc. Rapid gateway swap
US9948503B2 (en) * 2015-10-23 2018-04-17 Hughes Network Systems, Llc Gateway redundancy protocol for communications networks

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102695195A (en) * 2012-05-30 2012-09-26 浙江中控技术股份有限公司 Method for controlling wireless network and wireless network
CN107360034A (en) * 2017-07-25 2017-11-17 美的智慧家居科技有限公司 Gateway restoration methods, device and its equipment
CN110768840A (en) * 2019-10-30 2020-02-07 珠海格力电器股份有限公司 Control method, device, equipment and storage medium of communication equipment
CN111585800A (en) * 2020-04-29 2020-08-25 平安科技(深圳)有限公司 Virtual private cloud-based network node configuration method, device and medium
CN111314495A (en) * 2020-05-14 2020-06-19 上海顺舟智能科技股份有限公司 Communication method, device, equipment, storage medium and system based on LoRaWAN of Internet of things
CN111683142A (en) * 2020-06-08 2020-09-18 广东美的暖通设备有限公司 Metering device, metering method, and computer-readable storage medium
CN113709839A (en) * 2021-08-19 2021-11-26 珠海格力电器股份有限公司 Multi-gateway network switching method, device and system, electronic equipment and storage medium
CN114007241A (en) * 2021-10-29 2022-02-01 杭州萤石软件有限公司 ZigBee system, gateway equipment thereof, gateway switching method and device

Also Published As

Publication number Publication date
CN114666208A (en) 2022-06-24

Similar Documents

Publication Publication Date Title
CN105897860B (en) Network device and information processing method
US10320605B2 (en) Rapid gateway swap
CN108259283B (en) Wireless device communication method and system based on wide area network Mesh technology
CN111682927A (en) Message synchronization method, device, equipment and medium based on MLAG environment
CN102664750A (en) Method, system and device for hot backup of multi-machine
CN103631652A (en) Method and system for achieving virtual machine migration
EP3007385A1 (en) Terminal peripheral control method, m2m gateway, and communications system
CN111585801A (en) ZigBee device upgrading method and related device
EP1887756A2 (en) Communication system, connection adapter for communication device, and network router
CN114064206A (en) Pod method, system, equipment and storage medium for accessing edge node
CN107147619B (en) Data transmission method based on multi-source and multi-path cooperative transmission control protocol
CN113794618B (en) Redundant network communication method and device based on virtual network card and terminal equipment
CN104780065A (en) Hot spare method and system for TCP (transmission control protocol)
CN114666208B (en) Gateway system, node management method, electronic device, and storage medium
CN107547374B (en) Aggregation route processing method and device
CN101599907A (en) Flow forwarding method and system
JP4322879B2 (en) Connection device for communication equipment
WO2017079180A1 (en) Auto-commissioning of lighting resources
CN108599984B (en) Method for sharing port state, access equipment and system for supporting dual-homing protection
CN114172841B (en) Message forwarding method and device, electronic equipment and read storage medium
JP2002330153A (en) Communication device and control technique of it
CN113132988B (en) Wireless networking link access method of street lamp controller based on token verification
CN112653610B (en) Multilayer virtual switch upgrading method and device, electronic equipment and storage medium
CN112462647B (en) Radio station network control system and method
CN111770210A (en) Multi-controller IP grouping method, system and readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant