CN114157559A - Network processing method, network processing system, electronic device, and storage medium - Google Patents

Network processing method, network processing system, electronic device, and storage medium Download PDF

Info

Publication number
CN114157559A
CN114157559A CN202111536661.2A CN202111536661A CN114157559A CN 114157559 A CN114157559 A CN 114157559A CN 202111536661 A CN202111536661 A CN 202111536661A CN 114157559 A CN114157559 A CN 114157559A
Authority
CN
China
Prior art keywords
node
network
current network
central node
proxy
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.)
Pending
Application number
CN202111536661.2A
Other languages
Chinese (zh)
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.)
Lumi United Technology Co Ltd
Original Assignee
Lumi United Technology 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 Lumi United Technology Co Ltd filed Critical Lumi United Technology Co Ltd
Priority to CN202111536661.2A priority Critical patent/CN114157559A/en
Publication of CN114157559A publication Critical patent/CN114157559A/en
Pending legal-status Critical Current

Links

Images

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/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application provides a network processing method, a network processing system, an electronic device and a storage medium, which can be applied to an intelligent home system, wherein the network processing method comprises the following steps: acquiring the network state of a central node under the current network; if the current network state of the central node is abnormal, selecting an agent node for acting the central node from a plurality of slave nodes based on the equipment authority information corresponding to the slave nodes under the current network; broadcasting, by the proxy node, proxy information in the current network to instruct proxy execution of the data transfer function of the central node in the current network by the proxy node. When the network state of the central node in the network is abnormal, the agent node for acting the central node is automatically selected from the plurality of slave nodes, so that the data transmission is not interrupted, the network quality or the communication efficiency is improved, and the user experience is improved.

Description

Network processing method, network processing system, electronic device, and storage medium
Technical Field
The present application relates to the field of smart home technologies, and in particular, to a network processing method, a network processing system, an electronic device, and a computer storage medium.
Background
With the continuous development of the smart home industry, the concept of whole-house intelligence is deeply conscious, and the types and the number of smart home devices in a user house are continuously increased. Most of the existing intelligent home product technologies are based on a wireless, low-rate and low-power consumption Mesh network, for example, a Zigbee local area network and an external network can be communicated through a coordinator gateway, so that devices in a home can be controlled and monitored in a remote manner. However, since there is often only one coordinator gateway in a local area network, if the coordinator gateway fails, the following problems may occur in practical use: the equipment in the whole local area network can not communicate with the external network, and the automatic linkage function between the equipment is invalid.
Disclosure of Invention
In order to solve the existing technical problems, the application provides a network processing method, a network system, an electronic device and a storage medium.
In order to achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a network processing method, including:
acquiring the network state of a central node under the current network;
if the current network state of the central node is abnormal, selecting an agent node for acting the central node from a plurality of slave nodes based on the equipment authority information corresponding to the slave nodes under the current network;
broadcasting, by the proxy node, proxy information in the current network to instruct proxy execution of the data transfer function of the central node in the current network by the proxy node.
In a second aspect, an embodiment of the present application provides a network processing system, where the network processing system includes a central node and a plurality of slave nodes; wherein the content of the first and second substances,
the central node and/or the slave nodes are configured to:
acquiring the network state of a central node under the current network;
if the current network state of the central node is abnormal, selecting an agent node for acting the central node from a plurality of slave nodes based on the equipment authority information corresponding to the slave nodes under the current network; and
broadcasting, by the proxy node, proxy information in the current network to instruct proxy execution of the data transfer function of the central node in the current network by the proxy node.
In some embodiments, the central node 1 and/or the slave node 2 are specifically configured to:
periodically acquiring heartbeat packet data sent by a central node under a current network;
determining the network state of the central node according to the interval duration of the received heartbeat packet data;
and if the heartbeat packet data is not acquired within the interval duration, determining that the current network state of the central node is abnormal.
In some embodiments, the central node 1 and/or the slave node 2 are specifically configured to:
periodically acquiring the data transmission speed of data transmitted by a central node in the current network;
determining the network state of the central node according to the data transmission speed of the central node and the target transmission requirement under the current network;
and if the data transmission speed does not reach the target transmission requirement, determining that the current network state of the central node is abnormal.
In some embodiments, the central node 1 and/or the slave node 2 are specifically configured to:
synchronously reporting corresponding equipment authority information in the current network through each slave node;
and each slave node elects a proxy node for proxying the central node from the plurality of slave nodes based on a target election strategy and the equipment authority information of each slave node.
In some embodiments, the central node 1 and/or the slave node 2 are specifically configured to:
broadcasting and sending self agent information in the current network according to a preset period through the agent node;
after each slave node in the current network receives the agent information broadcasted by the agent node, each slave node updates the message data to be sent to the central node to be sent to the agent node based on the agent information, so that the agent node executes the data transmission function of the central node in the current network in an agent mode.
In some embodiments, the central node 1 and/or the slave node 2 are further configured to:
if the network state of the central node is recovered to be normal, the agent node broadcasts cancellation agent information in the current network to indicate that the central node executes a data transmission function in the current network.
In some embodiments, the central node 1 and/or the slave node 2 are further configured to:
receiving message data reported by the scene trigger equipment in the current network through the proxy node;
and if the message data meets the triggering condition of the automation scene, sending a corresponding target action instruction to the action execution equipment in the automation scene through the proxy node according to the configuration data of the automation scene so as to instruct the action execution equipment to execute the target action.
In a third aspect, an embodiment of the present application provides a network processing apparatus, including:
the acquisition module is used for acquiring the network state of the central node in the current network;
an election module, configured to select, if a current network state of the central node is abnormal, an agent node for acting on the central node from the plurality of slave nodes based on device authority information corresponding to the plurality of slave nodes in the current network;
and the broadcasting module is used for broadcasting the proxy information in the current network through the proxy node so as to instruct the proxy node to execute the data transmission function of the central node in the current network.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory stores a computer program executable by the processor, and the computer program, when executed by the processor, implements the network processing method according to any embodiment of the present application.
In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a controller, the computer program implements the network processing method according to any embodiment of the present application.
The network processing method, the network processing system, the electronic device and the storage medium provided by the embodiments of the present application acquire a network state of a central node in a current network; if the current network state of the central node is abnormal, selecting an agent node for acting the central node from a plurality of slave nodes based on the equipment authority information corresponding to the slave nodes under the current network; broadcasting, by the proxy node, proxy information in the current network to instruct proxy execution of the data transfer function of the central node in the current network by the proxy node. Therefore, when the network state of the central node in the network is abnormal, the agent node for acting the central node is automatically selected from the plurality of slave nodes, so that the data transmission is not interrupted, the network quality or the communication efficiency is improved, and the user experience is improved.
Drawings
FIG. 1 is a schematic diagram of an application environment suitable for use with embodiments of the present application;
fig. 2 is a schematic flowchart of a network processing method according to an embodiment of the present application;
FIG. 3 is a flow chart illustrating a network processing method according to another embodiment of the present application;
fig. 4 is a first schematic diagram illustrating transmission of message data according to an embodiment of the present application;
fig. 5 is a first diagram illustrating transmission of message data according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of a network processing device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
The technical solution of the present application is further described in detail with reference to the drawings and specific embodiments of the specification.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of implementations of the present application. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
In the description of the present application, it is to be understood that the terms "center", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience in describing the present application and simplifying the description, but do not indicate or imply that the referred device or element must have a particular orientation, be constructed in a particular orientation, and be operated, and thus should not be construed as limiting the present application. In the description of the present application, "a plurality" means two or more unless otherwise specified.
In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art.
Referring to fig. 1, fig. 1 is a schematic diagram of an application environment suitable for the embodiment of the present application. The network processing method provided by the embodiment of the present application can be applied to a network processing system as shown in fig. 1, where the network processing system includes a central node 1 and a plurality of slave nodes 2.
Wherein the central node 1 may be used to create a wireless mesh network and the slave nodes 2 may be used to join the wireless mesh network. The central node 1 may be specifically a coordinator node or the like, and the second device 2 may be specifically a gateway node, such as a router gateway node or the like, which is not limited in this embodiment of the present application. When the network state of the central node 1 is abnormal, the central node 1 or the slave nodes 2 select a proxy node for proxying the central node 1 from the slave nodes 2 based on the device authority information corresponding to the slave nodes 2 in the current network, and broadcast proxy information in the current network through the proxy node to instruct the proxy node to execute the data transmission function of the central node 1 in the current network so as to ensure that the data transmission is not interrupted.
Optionally, the wireless mesh network is a ZigBee wireless mesh network, and the central node 1 and the slave node 2 may communicate with each other through a ZigBee link. It is to be understood that the above application environments are only exemplary descriptions for facilitating understanding of the following embodiments, and do not constitute any limitation to the application environments in which the embodiments of the present application may be actually implemented.
To facilitate understanding of the network processing method provided in the embodiments of the present application, terms or concepts appearing or mentioned in the embodiments of the present application are explained first.
The current network comprises a plurality of network nodes, and each network node comprises a central node and a plurality of slave nodes; the central node may be specifically a coordinator node, and the slave node may be specifically a gateway node.
The current network refers to a network in which devices and/or nodes are currently in communication with each other, for example, the current network may be a ZigBee wireless mesh network; wherein the current network may be created by the central node.
The central node is a node device having a coordinator function in a network and a function of communicating with an external network. In particular, it may also be a node device that can be used to perform an automated scenario function. For example, the central node may include a coordinator, a router, a gateway, and the like node devices.
The slave node is a node having a coordinator function in a network and forwarding a packet. Specifically, the method may have an automated scene agent execution function in the network. For example, the central node may also include node devices such as a coordinator, a router, a gateway, a camera with a gateway function, and other intelligent devices with a coordination function.
The proxy node is a node device which is used as a central node temporarily in a network, has a coordinator function and a function of communicating with an external network.
The proxy information refers to proxy information broadcast by the proxy node in the network, and specifically may be proxy broadcast information used for indicating that the proxy node serves as a central node.
Referring to fig. 2, a network processing method provided for an embodiment of the present application may be applied to a network node shown in fig. 1, such as a central node 1 and/or a slave node 2 in fig. 1, and may specifically be a coordinator node and/or a gateway node. The network processing method includes, but is not limited to, S101, S103, and S105, and is specifically introduced as follows:
s101, acquiring the network state of the central node in the current network.
The purpose of the network node acquiring the network state of the central node in the current network is to detect whether the current network state of the central node is normal or abnormal. In this embodiment, the network state of the central node in the current network may be obtained in one or more manners, for example, the network node may correspondingly obtain the network state of the central node in the current network based on the detection result by detecting whether the interval duration of sending heartbeat packet data or the data transmission speed of transmitting data by the central node meets the corresponding requirement.
And S103, if the current network state of the central node is abnormal, selecting a proxy node for acting the central node from the plurality of slave nodes based on the equipment authority information corresponding to the plurality of slave nodes in the current network.
It can be understood that when the current network state of the central node is abnormal, it indicates that the current central node fails, that is, the data transmission function cannot be executed normally, which may cause that the devices in the wireless mesh network cannot communicate with the external network through the central node, and the devices cannot be linked automatically. In this case, the network node may select a proxy node for proxying the hub node from the plurality of slave nodes based on the device right information corresponding to the plurality of slave nodes in the current network.
The device authority information includes, but is not limited to, priority, weight, data version, address information, and the like. It should be noted that the existing abnormality of the current network state of the central node may be a network disconnection of the central node due to the central node itself or an influence of an external factor.
S105, broadcasting agent information in the current network through the agent node to indicate that the data transmission function of the central node is executed in the current network through the agent node.
It is understood that, after the network node selects the agent node for acting on the central node from the plurality of slave nodes, the agent node may broadcast the agent information in the current network to instruct the agent node to perform the data transmission function of the central node in the current network.
The agent information may include the name of the agent node and the version, MAC address, and contention weight of the included automation scenario data. It should be noted that, because the slave nodes in the current network are dynamic online or offline, the proxy information is broadcasted only once in the current network, which may cause some slave nodes to be unable to know the proxy information in time, so that the network node broadcasts the proxy information in the current network through the proxy node may be a node that broadcasts the proxy information in the current network regularly, so as to ensure that all slave nodes in the current network know the proxy information as much as possible, and further improve the network quality or communication efficiency.
In the above embodiments of the present application, a network node obtains a network state of a central node in a current network, and if the current network state of the central node is abnormal, an agent node for acting the central node is selected from a plurality of slave nodes based on device authority information corresponding to the plurality of slave nodes in the current network, and the agent node broadcasts agent information in the current network to instruct the agent node to perform a data transmission function of the central node in the current network. When the network state of the central node in the network is abnormal, the agent node for acting the central node is automatically selected from the plurality of slave nodes, so that the data transmission is not interrupted, the network quality or the communication efficiency is improved, and the user experience is improved.
In some embodiments, the obtaining the network state of the central node under the current network includes:
periodically acquiring heartbeat packet data sent by a central node under a current network;
determining the network state of the central node according to the interval duration of the received heartbeat packet data;
and if the heartbeat packet data is not acquired within the interval duration, determining that the current network state of the central node is abnormal.
It is to be understood that, in order to notify the other party of its own status at regular time, the center node and each of the slave nodes may transmit heartbeat packet data to each other. For example, the central node may send heartbeat packet data to each slave node every preset time period, and after receiving the heartbeat packet data sent by the central node, the slave node should reply the same heartbeat packet data to the central node, or the slave node may send heartbeat packet data to the central node every preset time period.
After receiving the heartbeat packet data sent by the slave node, the central node replies the same heartbeat packet data to the slave node, and if the slave node does not receive the heartbeat packet data within the interval duration, the current network state of the central node is abnormal. The interval duration can be set according to actual requirements, for example, 20 seconds, 40 seconds, and the like can be set. Therefore, the network state of the central node is detected based on the acquisition state of the heartbeat packet data, the operation is convenient and fast, and the network quality or the communication efficiency is further improved.
In some embodiments, the obtaining the network state of the central node under the current network includes:
periodically acquiring the data transmission speed of data transmitted by a central node in the current network;
determining the network state of the central node according to the data transmission speed of the central node and the target transmission requirement under the current network;
and if the data transmission speed does not reach the target transmission requirement, determining that the current network state of the central node is abnormal.
The data transmission speed may be a data amount transmitted in a unit time length, and specifically may be an average data transmission speed in a preset time length, and the like. It can be understood that, under the normal network state, the data transmission speed of the central node should meet the target transmission requirement under the current network.
For example, the data transmission speed of the central node should be greater than or equal to a preset transmission speed threshold, and the like, if the network node detects that the data transmission speed of the data transmitted by the central node in the current network does not reach the target transmission requirement, which indicates that the data transmission of the central node is slow at this time and even the data may not be transmitted, it is determined that the current network state of the central node is abnormal. Therefore, the network state of the central node is detected based on the data transmission speed of the central node, the operation is convenient and fast, and the network quality or the communication efficiency is further improved.
In some embodiments, the selecting, from a plurality of slave nodes under the current network, a proxy node for proxying the central node based on device right information corresponding to the slave nodes includes:
synchronously reporting corresponding equipment authority information in the current network through each slave node;
and each slave node elects a proxy node for proxying the central node from the plurality of slave nodes based on a target election strategy and the equipment authority information of each slave node.
It is understood that, according to the different device permission information, the target election policy is correspondingly different, such as election according to priority order, election according to device weight, and the like. In some embodiments, the target election policy includes at least one of election in priority order corresponding to authority information of each slave node, election in device weight of each slave node, election in data version of target data in each slave node, and election in priority order corresponding to address information of each slave node.
The authority information may be management authority, sharing authority, and the like, and the target data may be preconfigured data and the like. Taking the target election strategy comprising priority elections corresponding to the authority information of each slave node as an example, if the slave node a, the slave node b and the slave node c are b, c and a in sequence from high to low according to the authority information of the slave nodes, the slave node b can be elected as a proxy node for the proxy center node; or, if the device weights of the slave nodes are a, c and b in sequence from big to small, the slave node a can be selected as a proxy node for the proxy center node; or, if the data version of the target data of the slave node is c, b and a in sequence from high to low, the slave node c can be selected as a proxy node for the proxy center node; alternatively, if the priority order is c, a, and b in order from the highest to the lowest based on the address information of the slave node, the slave node c may be selected as a proxy node for the proxy center node. Therefore, the agent nodes for the agent center node are elected according to the equipment authority information of the slave nodes, the operation is convenient and flexible, and the network quality or the communication efficiency is further improved.
It should be noted that, when the network node detects that the current network state of the central node is abnormal, the network node may notify each slave node to synchronously report corresponding device permission information in the current network. Or when each slave node joins the current network, the corresponding device permission information can be reported to the current network.
In some embodiments, said broadcasting, by said proxy node, proxy information in said current network to instruct proxy execution of data transfer functions of said central node in said current network by said proxy node, comprises:
broadcasting and sending self agent information in the current network according to a preset period through the agent node;
after each slave node in the current network receives the agent information broadcasted by the agent node, each slave node updates the message data to be sent to the central node to be sent to the agent node based on the agent information, so that the agent node executes the data transmission function of the central node in the current network in an agent mode.
It can be understood that, since the devices in the current network are dynamic online or offline, in order to enable all the devices in the current network to know the proxy information, the proxy information of the devices can be broadcast and sent in the current network through the proxy node according to a preset period.
For example, the proxy node broadcasts and sends its own proxy information in the current network every 10 seconds. After each slave node in the current network receives the agent information broadcasted by the agent node, the data transmission function of the current agent node executing the central node in the current network by the agent node can be obtained according to the agent information, and based on the agent information, the message data to be sent to the central node is updated to be sent to the agent node so as to execute the data transmission function of the central node in the current network by the agent node. For example, assuming that the slave node a needs to send a packet data a to the slave node b, after receiving the proxy information broadcast by the slave node c as the proxy node, the slave node a sends the packet data a to the slave node c first based on the proxy information, and then the slave node c forwards the packet data a to the slave node b. Therefore, the agent node broadcasts and sends the agent information of the agent node in the current network according to the preset period, each slave node can be ensured to know the agent information in time, and the message data is sent accurately based on the agent information, so that the network quality or the communication efficiency is further improved.
In some embodiments, the network processing method further includes:
if the network state of the central node is recovered to be normal, the agent node broadcasts cancellation agent information in the current network to indicate that the central node executes a data transmission function in the current network.
It can be understood that, when the network node detects that the network state of the central node returns to normal, which indicates that the central node can continue to perform the data transmission function in the current network at this time, the proxy node broadcasts cancellation proxy information in the current network to notify each slave node to subsequently perform the data transmission function in the current network through the central node. Continuing with the above example, suppose that the slave node a needs to send a packet data B to the slave node B, and after receiving the cancellation proxy information broadcast by the slave node c as the proxy node at this time, the slave node a sends the packet data B to the central node first based on the cancellation proxy information, and then the central node forwards the packet data B to the slave node B. It should be noted that, after detecting that the network state of the central node returns to normal, the network node may control the proxy node to return to the ordinary slave node. Therefore, the network state of the central node is recovered to be normal, the data transmission function is continuously executed in the current network through the central node, the operation is flexible, and the convenience of data transmission is improved.
In some embodiments, the central node and each slave node store configuration data of an automation scenario; the automatic scene comprises scene trigger equipment, corresponding trigger conditions, action execution equipment and corresponding target actions;
after the broadcasting, by the proxy node, proxy information in the current network to instruct proxy execution of the data transmission function of the central node in the current network by the proxy node, the method further comprises:
receiving message data reported by the scene trigger equipment in the current network through the proxy node;
and if the message data meets the triggering condition of the automation scene, sending a corresponding target action instruction to the action execution equipment in the automation scene through the proxy node according to the configuration data of the automation scene so as to instruct the action execution equipment to execute the target action.
The method includes the steps that a user can configure an automation scene through a management application or a cloud terminal in an intelligent terminal according to needs, configuration data of the automation scene are generated, the configuration data of the automation scene are sent to a central node, and then the central node sends the configuration data of the automation scene to each slave node.
And after receiving the configuration data of the automation scene sent by the central node, each slave node correspondingly stores the configuration data of the automation scene. The scene trigger equipment in the current network can acquire corresponding data in real time or at irregular time and report the data to the proxy node in a message mode based on the proxy information, and the network node correspondingly receives the message data reported by the scene trigger equipment in the current network through the proxy node.
And if the network node detects that the message data meets the triggering condition of the automation scene, sending a corresponding target action instruction to the action execution equipment in the automation scene through the proxy node according to the configuration data of the automation scene so as to instruct the action execution equipment to execute the target action.
For example, if the scene trigger device includes a wireless human body sensor and a light sensor, the action execution device includes a light control switch, the trigger condition includes human body movement and a light value smaller than a preset light threshold, the target action includes turning on a light, and when the network node receives first message data sent by the wireless human body sensor and used for detecting whether the human body moves and second message data sent by the light sensor and including the light value, which are sent by the proxy node, the network node sends a light-on instruction to the light control switch through the proxy node if the human body movement is detected according to the first message data and the light value smaller than the preset light threshold is detected according to the second message data, which indicates that the trigger condition of the automatic scene is met, so as to instruct the light control switch to execute a light-on operation. Therefore, the scene trigger equipment sends the message data to the proxy node independently, and does not send the message data in a broadcast message mode, so that network congestion is effectively reduced, and the reliability of communication is improved.
In order to provide a more general understanding of the network processing method provided in the present application, referring to fig. 3, the following describes an exemplary network processing method with an optional specific example, where the method includes:
s201, the cloud end issues configuration data of the automation scene to the coordinator gateway and the router gateway.
The first gateway which joins and registers to the cloud background through the management application of the mobile phone and creates the network at the same time is called a coordinator gateway, and other gateways join the network in the role of the child device nodes and are called router gateways.
The coordinator gateway may be unique in the whole network, and its main roles include: 1) creating a network, including generating information such as a network ID, a network key, a network channel and the like; 2) whether other devices are allowed to join the network; 3) device key management, device security authentication, etc.; 4) an automated scene execution function; 5) distributing the synchronous automation scene data; 6) and communicating with the cloud or the external network.
The router gateway can have a plurality of permission in one network, and the main functions of the router gateway comprise: 1) forwarding the message and increasing the communication distance between nodes in the network; 2) after the coordinator gateway goes offline, the only agent coordinator gateway is selected by competition 3) the automated scene agent executes the functions: 4) synchronizing automation scene data with a coordinator gateway; 5) and communicating with the cloud or the external network. Here, the user configures an automation scene through a management application of the mobile phone or a cloud background, stores the automation scene in the cloud, issues the automation scene to the coordinator gateway through the cloud, and distributes the automation scene to the router gateway in the network.
S203, after the coordinator gateway is off-line, the router gateway in the network can promote a unique proxy coordinator gateway according to the priority policy.
Here, the overall priority policy is that the coordinator gateway has the highest priority, the user configures the weight the next time, the automation scenario data version has the right size the next time, and the MAC has the lowest size.
S205, the agent coordinator gateway broadcasts the agent information of itself periodically, reports the message to other sub-equipment nodes in the network, redirects the message and sends the message to the selected agent coordinator gateway.
Here, since the devices in the network are dynamic online and offline, the offline devices and the devices with poor communication currently may not be notified at one time. Therefore, the proxy coordinator gateway needs to broadcast its own proxy information periodically.
And S207, after the coordinator gateway is recovered to be on-line, the elected proxy coordinator gateway backs to be the common router gateway, and the coordinator gateway becomes the gateway for executing the automatic scene service again.
Here, after the coordinator gateway is brought back online, the elected proxy coordinator gateway will roll back to the normal router gateway and tell other sub-devices to send subsequent messages to the coordinator gateway. Since the coordinator gateway has the highest priority, it becomes the gateway for executing the automated scene service again.
Referring to fig. 4, when the coordinator gateway 1 is normally online and the battery powered device 4 needs to report the message data to the router gateway 6, the battery powered device 4 first sends the message data to the coordinator gateway 1, and after receiving the message data, the coordinator gateway 1 sends the message data to the router gateway 6 through the router gateway 3. Referring to fig. 5, when the coordinator gateway 1 is offline, and the battery powered device 4 needs to report the message data to the router gateway 6, if the router gateway 3 is elected as the proxy coordinator gateway, the battery powered device 4 first sends the message data to the proxy coordinator gateway, that is, the router gateway 3, and the router gateway 3 sends the message data to the router gateway 6 after receiving the message data.
In the embodiment of the application, in the wireless and low-power Mesh network, after the coordinator gateway is invalid, the router gateway competition is used as a mechanism for acting the coordinator gateway, so that the automatic scene control of the intelligent household equipment can be still executed to the maximum extent, the communication with an external network is not influenced, and the user experience is improved; secondly, when the coordinator gateway is offline, online and competitively elected by the router gateway, the energy consumption of terminal equipment such as a wireless sensor powered by a battery is repeatedly considered, so that the terminal equipment does not need to be additionally operated, the service life of the battery of the wireless sensor is prolonged, and the frequency of replacing the battery by a user and the maintenance cost are reduced; and thirdly, when the routing forwarding message is carried out on the routing equipment, the broadcast message is not used, so that the network congestion degree is reduced, the network delay is reduced, and the communication reliability is improved.
The application also provides an application scene, namely the network processing method can be specifically applied to an intelligent household scene. The application of the network processing method in the application scenario may be as follows:
in an intelligent home scene, a corresponding intelligent home network system comprises a coordinator gateway node, a plurality of router gateway nodes, wireless human body sensors and light sensors which are arranged in a living room and a corridor, and lamp control switches for controlling lamps arranged in the living room and the corridor respectively. The coordinator gateway node may be a central node in the smart home network system, and the plurality of router gateway nodes may be central nodes in the smart home network system. The wireless human body sensor, the light sensor, the lamp control switch and the lamp can be intelligent equipment in an intelligent home network system.
The wireless human body sensor, the light sensor and the lamp control switch are in communication connection with the corresponding router gateway nodes respectively, and a user can send configuration data of an automatic lighting scene when someone moves and light is smaller than a preset light threshold value to the coordinator gateway node and the router gateway nodes through the cloud server.
When detecting that the coordinator gateway node is invalid, each router gateway node can broadcast the priority information of itself in the current network, and compares whether the priority of itself is higher than the priorities of other router gateway nodes according to the priority information sent by other router gateway nodes. If the current network address is higher than the preset value, the current network address is determined to be the proxy coordinator gateway node, and further, proxy information including the name of the proxy coordinator gateway node, the version of the included automation scene data, the MAC address and the like is broadcasted in the current network.
And the wireless human body sensor and the light sensor can send respective detection message data to the proxy coordinator gateway node through the corresponding router gateway node. And if it is determined that a human body moves in the living room according to the detection message data and the light value is smaller than the preset light threshold value, sending a light-on instruction for turning on a light of the living room to the light control switch through the proxy coordinator gateway node so as to instruct the light control switch to execute the operation of turning on the light of the living room. Therefore, when the network state of the coordinator gateway node under the network is abnormal, the agent node for acting the coordinator gateway node is automatically selected from the router gateway nodes, so that the data transmission in the intelligent home network system is not interrupted, the execution of an automatic scene in the intelligent home system is not influenced, the network quality and the communication efficiency are improved, and the user experience is improved.
Referring to fig. 6, in another aspect of the present application, a network processing apparatus is further provided, including:
an obtaining module 10, configured to obtain a network state of a central node in a current network;
an election module 11, configured to select, if a current network state of the central node is abnormal, an agent node for acting on the central node from the multiple slave nodes based on device authority information corresponding to the multiple slave nodes in the current network;
a broadcasting module 12, configured to broadcast, by the proxy node, proxy information in the current network to instruct the proxy node to perform a data transmission function of the central node in the current network.
In some embodiments, the obtaining module 10 is specifically configured to:
periodically acquiring heartbeat packet data sent by a central node under a current network;
determining the network state of the central node according to the interval duration of the received heartbeat packet data;
and if the heartbeat packet data is not acquired within the interval duration, determining that the current network state of the central node is abnormal.
In some embodiments, the obtaining module 10 is specifically configured to:
periodically acquiring the data transmission speed of data transmitted by a central node in the current network;
determining the network state of the central node according to the data transmission speed of the central node and the target transmission requirement under the current network;
and if the data transmission speed does not reach the target transmission requirement, determining that the current network state of the central node is abnormal.
In some embodiments, the election module 11 is specifically configured to:
synchronously reporting corresponding equipment authority information in the current network through each slave node;
and each slave node elects a proxy node for proxying the central node from the plurality of slave nodes based on a target election strategy and the equipment authority information of each slave node.
In some embodiments, the broadcasting module 12 is specifically configured to:
broadcasting and sending self agent information in the current network according to a preset period through the agent node;
after each slave node in the current network receives the agent information broadcasted by the agent node, each slave node updates the message data to be sent to the central node to be sent to the agent node based on the agent information, so that the agent node executes the data transmission function of the central node in the current network in an agent mode.
In some embodiments, the broadcasting module 12 is further configured to:
if the network state of the central node is recovered to be normal, the agent node broadcasts cancellation agent information in the current network to indicate that the central node executes a data transmission function in the current network.
In some embodiments, the network processing apparatus further comprises a receiving module 13 and a sending module 14, wherein,
the receiving module 13 is configured to receive, through the proxy node, message data reported by the scene trigger device in the current network;
the sending module 14 is configured to send, by the proxy node according to the configuration data of the automation scenario, a corresponding target action instruction to the action execution device in the automation scenario to instruct the action execution device to execute the target action if the packet data meets the trigger condition of the automation scenario.
It should be noted that: in the network processing device provided in the foregoing embodiment, in the process of implementing network processing, only the division of each program module is illustrated, and in practical applications, the processing distribution may be completed by different program modules according to needs, that is, the internal structure of the device may be divided into different program modules, so as to complete all or part of the method steps described above. In addition, the network processing apparatus and the network processing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Referring to fig. 1, in another aspect of the present application, a network processing system is further provided, where the network processing system includes a central node 1 and a plurality of slave nodes 2; wherein the content of the first and second substances,
the central node 1 and/or the slave node 2 are configured to:
acquiring the network state of a central node under the current network;
if the current network state of the central node is abnormal, selecting an agent node for acting the central node from a plurality of slave nodes based on the equipment authority information corresponding to the slave nodes under the current network; and
broadcasting, by the proxy node, proxy information in the current network to instruct proxy execution of the data transfer function of the central node in the current network by the proxy node.
In some embodiments, the central node 1 and/or the slave node 2 are specifically configured to:
periodically acquiring heartbeat packet data sent by a central node under a current network;
determining the network state of the central node according to the interval duration of the received heartbeat packet data;
and if the heartbeat packet data is not acquired within the interval duration, determining that the current network state of the central node is abnormal.
In some embodiments, the central node 1 and/or the slave node 2 are specifically configured to:
periodically acquiring the data transmission speed of data transmitted by a central node in the current network;
determining the network state of the central node according to the data transmission speed of the central node and the target transmission requirement under the current network;
and if the data transmission speed does not reach the target transmission requirement, determining that the current network state of the central node is abnormal.
In some embodiments, the central node 1 and/or the slave node 2 are specifically configured to:
synchronously reporting corresponding equipment authority information in the current network through each slave node;
and each slave node elects a proxy node for proxying the central node from the plurality of slave nodes based on a target election strategy and the equipment authority information of each slave node.
In some embodiments, the central node 1 and/or the slave node 2 are specifically configured to:
broadcasting and sending self agent information in the current network according to a preset period through the agent node;
after each slave node in the current network receives the agent information broadcasted by the agent node, each slave node updates the message data to be sent to the central node to be sent to the agent node based on the agent information, so that the agent node executes the data transmission function of the central node in the current network in an agent mode.
In some embodiments, the central node 1 and/or the slave node 2 are further configured to:
if the network state of the central node is recovered to be normal, the agent node broadcasts cancellation agent information in the current network to indicate that the central node executes a data transmission function in the current network.
In some embodiments, the central node 1 and/or the slave node 2 are further configured to:
receiving message data reported by the scene trigger equipment in the current network through the proxy node;
and if the message data meets the triggering condition of the automation scene, sending a corresponding target action instruction to the action execution equipment in the automation scene through the proxy node according to the configuration data of the automation scene so as to instruct the action execution equipment to execute the target action.
In another aspect of the present application, please refer to fig. 7, which further provides an electronic device, including a processor 211 and a memory 212, where the memory 212 stores therein a computer program executable by the processor, and when the computer program is executed by the processor 211, the network processing method according to any embodiment of the present application is implemented, and the same technical effect can be achieved, and is not repeated herein to avoid repetition.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the foregoing network processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A network processing method, comprising:
acquiring the network state of a central node under the current network;
if the current network state of the central node is abnormal, selecting an agent node for acting the central node from a plurality of slave nodes based on the equipment authority information corresponding to the slave nodes under the current network;
broadcasting, by the proxy node, proxy information in the current network to instruct proxy execution of the data transfer function of the central node in the current network by the proxy node.
2. The network processing method of claim 1, wherein the obtaining the network status of the central node under the current network comprises:
periodically acquiring heartbeat packet data sent by a central node under a current network;
determining the network state of the central node according to the interval duration of the received heartbeat packet data;
and if the heartbeat packet data is not acquired within the interval duration, determining that the current network state of the central node is abnormal.
3. The network processing method of claim 1, wherein the obtaining the network status of the central node under the current network comprises:
periodically acquiring the data transmission speed of data transmitted by a central node in the current network;
determining the network state of the central node according to the data transmission speed of the central node and the target transmission requirement under the current network;
and if the data transmission speed does not reach the target transmission requirement, determining that the current network state of the central node is abnormal.
4. The network processing method according to claim 1, wherein said electing a proxy node for proxying the central node from a plurality of slave nodes based on device right information corresponding to the plurality of slave nodes under the current network comprises:
synchronously reporting corresponding equipment authority information in the current network through each slave node;
and each slave node elects a proxy node for proxying the central node from the plurality of slave nodes based on a target election strategy and the equipment authority information of each slave node.
5. The network processing method of claim 4, wherein the target election policy includes at least one of election according to a priority order corresponding to authority information of each slave node, election according to a device weight of each slave node, election according to a data version of target data in each slave node, and election according to a priority order corresponding to address information of each slave node.
6. The network processing method of any one of claims 1 to 5, wherein the broadcasting, by the proxy node, proxy information in the current network to instruct proxy execution of the data transmission function of the central node in the current network by the proxy node comprises:
broadcasting and sending self agent information in the current network according to a preset period through the agent node;
after each slave node in the current network receives the agent information broadcasted by the agent node, each slave node updates the message data to be sent to the central node to be sent to the agent node based on the agent information, so that the agent node executes the data transmission function of the central node in the current network in an agent mode.
7. The network processing method of any of claims 1 to 5, further comprising:
if the network state of the central node is recovered to be normal, the agent node broadcasts cancellation agent information in the current network to indicate that the central node executes a data transmission function in the current network.
8. The network processing method of any of claims 1 to 5,
the central node and each slave node store configuration data of an automation scene; the automatic scene comprises scene trigger equipment, corresponding trigger conditions, action execution equipment and corresponding target actions;
after the broadcasting, by the proxy node, proxy information in the current network to instruct proxy execution of the data transmission function of the central node in the current network by the proxy node, the method further comprises:
receiving message data reported by the scene trigger equipment in the current network through the proxy node;
and if the message data meets the triggering condition of the automation scene, sending a corresponding target action instruction to the action execution equipment in the automation scene through the proxy node according to the configuration data of the automation scene so as to instruct the action execution equipment to execute the target action.
9. A network processing system, comprising a central node and a plurality of slave nodes; wherein the content of the first and second substances,
the central node and/or the slave nodes are configured to:
acquiring the network state of a central node under the current network;
if the current network state of the central node is abnormal, selecting an agent node for acting the central node from a plurality of slave nodes based on the equipment authority information corresponding to the slave nodes under the current network; and
broadcasting, by the proxy node, proxy information in the current network to instruct proxy execution of the data transfer function of the central node in the current network by the proxy node.
10. A network processing apparatus, comprising:
the acquisition module is used for acquiring the network state of the central node in the current network;
an election module, configured to select, if a current network state of the central node is abnormal, an agent node for acting on the central node from the plurality of slave nodes based on device authority information corresponding to the plurality of slave nodes in the current network;
and the broadcasting module is used for broadcasting the proxy information in the current network through the proxy node so as to instruct the proxy node to execute the data transmission function of the central node in the current network.
11. An electronic device comprising a processor and a memory, the memory having stored therein a computer program executable by the processor, the computer program, when executed by the processor, implementing the network processing method of any one of claims 1 to 8.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a controller, implements the network processing method according to any one of claims 1 to 8.
CN202111536661.2A 2021-12-15 2021-12-15 Network processing method, network processing system, electronic device, and storage medium Pending CN114157559A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111536661.2A CN114157559A (en) 2021-12-15 2021-12-15 Network processing method, network processing system, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111536661.2A CN114157559A (en) 2021-12-15 2021-12-15 Network processing method, network processing system, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN114157559A true CN114157559A (en) 2022-03-08

Family

ID=80451534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111536661.2A Pending CN114157559A (en) 2021-12-15 2021-12-15 Network processing method, network processing system, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN114157559A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114598605A (en) * 2022-03-28 2022-06-07 百富计算机技术(深圳)有限公司 Multi-device management method, first device, center device and storage medium
CN114726665A (en) * 2022-04-02 2022-07-08 深圳绿米联创科技有限公司 Power failure processing method, device, equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539055A (en) * 2015-01-07 2015-04-22 山东鲁能智能技术有限公司 Electric system key equipment actualizing-one-prepared method and system based on network
CN207782832U (en) * 2017-11-28 2018-08-28 深圳和而泰智能控制股份有限公司 A kind of intelligent domestic system
CN110167043A (en) * 2019-04-09 2019-08-23 深圳绿米联创科技有限公司 Apparatus control method, device, Internet of things system, electronic equipment and storage medium
CN110519866A (en) * 2019-07-24 2019-11-29 浙江华云信息科技有限公司 Communication system and its network-building method based on 230MHz microgrid
CN111065064A (en) * 2019-11-27 2020-04-24 广东瑞克斯智能科技有限公司 ZigBee-based mobile internet curtain motor control system, method and device
CN112437459A (en) * 2020-11-17 2021-03-02 杭州萤石软件有限公司 Management method and device of wireless grid network
CN112584364A (en) * 2019-09-30 2021-03-30 阿里巴巴集团控股有限公司 Bluetooth network, communication method, device and storage medium thereof
CN112788798A (en) * 2020-12-15 2021-05-11 福建星网天合智能科技有限公司 Master-slave negotiation multi-gateway intelligent Zigbee network system
CN112911624A (en) * 2021-01-18 2021-06-04 珠海格力电器股份有限公司 Network connection method and device of electronic equipment
CN113596176A (en) * 2021-08-12 2021-11-02 杭州萤石软件有限公司 Self-selection method and device of Internet of things center node, Internet of things equipment and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539055A (en) * 2015-01-07 2015-04-22 山东鲁能智能技术有限公司 Electric system key equipment actualizing-one-prepared method and system based on network
CN207782832U (en) * 2017-11-28 2018-08-28 深圳和而泰智能控制股份有限公司 A kind of intelligent domestic system
CN110167043A (en) * 2019-04-09 2019-08-23 深圳绿米联创科技有限公司 Apparatus control method, device, Internet of things system, electronic equipment and storage medium
CN110519866A (en) * 2019-07-24 2019-11-29 浙江华云信息科技有限公司 Communication system and its network-building method based on 230MHz microgrid
CN112584364A (en) * 2019-09-30 2021-03-30 阿里巴巴集团控股有限公司 Bluetooth network, communication method, device and storage medium thereof
CN111065064A (en) * 2019-11-27 2020-04-24 广东瑞克斯智能科技有限公司 ZigBee-based mobile internet curtain motor control system, method and device
CN112437459A (en) * 2020-11-17 2021-03-02 杭州萤石软件有限公司 Management method and device of wireless grid network
CN112788798A (en) * 2020-12-15 2021-05-11 福建星网天合智能科技有限公司 Master-slave negotiation multi-gateway intelligent Zigbee network system
CN112911624A (en) * 2021-01-18 2021-06-04 珠海格力电器股份有限公司 Network connection method and device of electronic equipment
CN113596176A (en) * 2021-08-12 2021-11-02 杭州萤石软件有限公司 Self-selection method and device of Internet of things center node, Internet of things equipment and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114598605A (en) * 2022-03-28 2022-06-07 百富计算机技术(深圳)有限公司 Multi-device management method, first device, center device and storage medium
CN114726665A (en) * 2022-04-02 2022-07-08 深圳绿米联创科技有限公司 Power failure processing method, device, equipment and storage medium
CN114726665B (en) * 2022-04-02 2024-04-09 深圳绿米联创科技有限公司 Power failure processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US8275313B1 (en) Long range, low power, mesh networking without concurrent timing
KR102104268B1 (en) Mesh network addressing
Brandt et al. Home automation routing requirements in low-power and lossy networks
CN103415018B (en) Communication resource allocation method of wireless sensor network
CN114157559A (en) Network processing method, network processing system, electronic device, and storage medium
CN107360362B (en) Portable network video camera and wireless router operation method
US10462053B2 (en) Automatic rerouting in thread networks
CN107682857B (en) Data sharing method of Zigbee network, gateway equipment and Zigbee network system
EP3262893A1 (en) Energy efficient ble mesh initialisation and operation
WO2016008218A1 (en) Wireless ad hoc network, center node, dynamic selection method and storage medium
CN106538038B (en) Transmission mode selection of ZigBee green energy equipment
Bernard et al. A low energy consumption MAC protocol for WSN
US20230199610A1 (en) Thread over Internet Protocol
CN105338008A (en) Equipment scheduling method, device and system for internet of things
CN114257282A (en) Message sending method and device, intelligent terminal and storage medium
KR20110023585A (en) Method of remote meter reading using zigbee network and system thereof
CN107579887B (en) A kind of intelligent domestic system based on wireless sensor network
EP2781124B1 (en) A method for enhancing data transfer across a wireless network arrangement
CN105188111A (en) Data transmission control method and wireless sensor network
US20230262578A1 (en) Common Interface for Multicast Address Subscriptions
Al-Mekhlafi et al. Research and development on aspects of clock synchronization in a wireless sensor network
GB2620204A (en) Communication system
CN117896402A (en) Cloud broadcasting method based on Internet of things
GB2621359A (en) Communication system
EP4158879A1 (en) Reliable and security-aware communication in a hybrid wireless network

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