CN111885601A - Keep-alive processing method and device for Mesh equipment - Google Patents

Keep-alive processing method and device for Mesh equipment Download PDF

Info

Publication number
CN111885601A
CN111885601A CN202010728234.3A CN202010728234A CN111885601A CN 111885601 A CN111885601 A CN 111885601A CN 202010728234 A CN202010728234 A CN 202010728234A CN 111885601 A CN111885601 A CN 111885601A
Authority
CN
China
Prior art keywords
mesh
keep
mesh devices
devices
time period
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
CN202010728234.3A
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.)
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Haier Uplus Intelligent Technology Beijing 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 Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Haier Uplus Intelligent Technology Beijing Co Ltd
Priority to CN202010728234.3A priority Critical patent/CN111885601A/en
Publication of CN111885601A publication Critical patent/CN111885601A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a keep-alive processing method and a keep-alive processing device for Mesh equipment, wherein the method comprises the following steps: establishing a secure channel with one or more Mesh devices through the same network layer key and application layer key; receiving heartbeat messages broadcast by one or more Mesh devices in a first preset time period through the secure channel; the keep-alive processing is carried out on the one or more Mesh devices according to the heartbeat message, the problem that the efficiency of obtaining the online state of the devices in the Mesh network is low due to the fact that a keep-alive mechanism of the devices in the whole Mesh network can be maintained only through one device in the related technology can be solved, any one Mesh device can be used as a heartbeat receiving party, and the efficiency of obtaining the online state of the devices in the Mesh network is improved.

Description

Keep-alive processing method and device for Mesh equipment
Technical Field
The invention relates to the field of Internet of things, in particular to a keep-alive processing method and device for Mesh equipment.
Background
Bluetooth Mesh (wireless Mesh) technology is a broadcast-based network protocol in which each device in the network sends and receives all messages from all devices within radio range. There is no concept of connectivity in a mesh network. Any device in the network may transmit messages from other devices, which allows a network device to send messages to devices outside of radio range by having one or more other devices deliver the message to a destination.
Currently, bluetooth Mesh devices on the market usually adopt a "heartbeat module" in the SIG Model to implement a heartbeat synchronization mechanism in the Mesh network. Generally, a heartbeat keep-alive mechanism designed in a bluetooth Mesh network generally adopts a "heartbeat module" in a SIGModel to implement a heartbeat synchronization mechanism in the Mesh network, and this method needs a provider (master device) to configure each device (node device) and configure through a Configuration server model.
Mainly divided into a Heartbeat sending message (Heartbeat Publication) and a Heartbeat subscribing message (Heartbeat subscription). Wherein the destination of the Heartpoint Publication can be a unicast address or a group address, and other addresses cannot be used; the destination of Heartbeat description, namely the destination address of the monitored source Heartbeat message, can only be received if the source address and the destination address are both matched, and can only be the first element address or the group address of the node, and the Heartbeat issue period is 2^ (n-1) seconds (for example: n is 3, the period is 8 s).
Therefore, this approach has two major limitations: only the provisioner can maintain the online condition of the devices in the whole Mesh network, so that the problem of low efficiency of acquiring the online state of the devices in the Mesh network is caused.
Aiming at the problem that the efficiency of acquiring the online state of the equipment in the Mesh network is low because the keep-alive mechanism of the equipment in the whole Mesh network can be maintained only by one equipment in the related technology, a solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a keep-alive processing method and device for Mesh equipment, which are used for at least solving the problem that the efficiency of acquiring the online state of the equipment in a Mesh network is low because a keep-alive mechanism of the equipment in the whole Mesh network can be maintained only by one equipment in the related art.
According to an embodiment of the present invention, a keep-alive processing method for a Mesh device is provided, including:
establishing a secure channel with one or more Mesh devices through the same network layer key and application layer key;
receiving heartbeat messages broadcast by the one or more Mesh devices in a first preset time period through the secure channel;
and performing keep-alive processing on the one or more Mesh devices according to the heartbeat message.
Optionally, performing keep-alive processing on the one or more Mesh devices according to the heartbeat packet includes:
and performing keep-alive processing on the one or more Mesh devices by updating the online time stamps of the one or more Mesh devices.
Optionally, after performing keep-alive processing on the one or more Mesh devices by updating online timestamps of the one or more Mesh devices, the method further includes:
checking online timestamps of the one or more Mesh devices for a second predetermined time period, wherein the second predetermined time period is greater than the first predetermined time period;
if the online timestamps of the one or more Mesh devices are not updated in the current time period;
updating offline timestamps of the one or more Mesh devices using the current time.
Optionally, the method further comprises:
receiving device state data broadcast by the one or more Mesh devices after detecting that the device state changes through the secure channel;
and performing keep-alive processing on the one or more Mesh devices according to the device state data.
Optionally, performing keep-alive processing on the one or more Mesh devices according to the device state data includes:
and updating the online time stamps of the one or more Mesh devices by using the current time, and keeping the one or more Mesh devices alive according to the device state data.
Optionally, after performing keep-alive processing on the one or more Mesh devices according to the heartbeat packet, the method further includes:
and storing the device state information of the one or more Mesh devices, wherein the device state information comprises a device element address, an online timestamp of the Mesh device and an offline timestamp of the Mesh device.
Optionally, the method further comprises:
broadcasting the heartbeat message in the first preset time period; and/or
The device status data is broadcast after detecting a change in the device status.
Optionally, the method further comprises:
judging whether the difference value between the current time and the time for sending the equipment state data is greater than the first preset time period or not;
and broadcasting the heartbeat message in the first preset time period under the condition that the judgment result is yes.
According to another embodiment of the present invention, there is also provided a keep-alive processing apparatus for a Mesh device, including:
the establishing module is used for establishing a secure channel with one or more Mesh devices through the same network layer key and the application layer key;
a first receiving module, configured to receive, through the secure channel, a heartbeat packet broadcast by the one or more Mesh devices in a first predetermined time period;
and the first keep-alive processing module is used for carrying out keep-alive processing on the one or more Mesh devices according to the heartbeat messages.
Optionally, the first keep alive processing module is further configured to
And performing keep-alive processing on the one or more Mesh devices by updating the online time stamps of the one or more Mesh devices.
Optionally, the apparatus further comprises:
a checking module, configured to check online timestamps of the one or more Mesh devices at a second predetermined time period, where the second predetermined time period is greater than the first predetermined time period;
an updating module, configured to update the online timestamp of the one or more Mesh devices if the online timestamp is not updated in the current time period;
a use module to update the offline timestamps of the one or more Mesh devices using the current time.
Optionally, the apparatus further comprises:
a second receiving module, configured to receive, through the secure channel, device status data that is broadcast by the one or more Mesh devices after detecting that a device status has changed;
and the second keep-alive processing module is used for carrying out keep-alive processing on the one or more Mesh devices according to the device state data.
Optionally, the second keep-alive processing module is further configured to
And updating the online time stamps of the one or more Mesh devices by using the current time, and keeping the one or more Mesh devices alive according to the device state data.
Optionally, the apparatus further comprises:
the storage module is configured to store device state information of the one or more Mesh devices, where the device state information includes a device element address, an online timestamp of a Mesh device, and an offline timestamp of the Mesh device.
Optionally, the apparatus further comprises:
the first broadcasting module is used for broadcasting the heartbeat message in the first preset time period; and/or
And the second broadcasting module is used for broadcasting the equipment state data after detecting that the equipment state is changed.
Optionally, the apparatus further comprises:
the judging module is used for judging whether the difference value between the current time and the time for sending the equipment state data is greater than the first preset time period or not;
and the third broadcasting module is used for broadcasting the heartbeat message in the first preset time period under the condition that the judgment result is yes.
According to a further embodiment of the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above-described method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
By the invention, a secure channel is established with one or more Mesh devices through the same network layer key and application layer key, receiving heartbeat messages broadcast by the one or more Mesh devices in a first preset time period through the established safety channel, performing keep-alive processing on the one or more Mesh devices according to the heartbeat messages, because all the Mesh devices use the same network layer key and application layer key, any one Mesh device can receive heartbeat messages broadcast by other Mesh devices in the established secure channel, therefore, the keep-alive processing is carried out on other devices, the problem that the efficiency of acquiring the online state of the devices in the Mesh network is low due to the fact that the keep-alive mechanism of the devices in the whole Mesh network can be maintained only through one device in the related technology can be solved, any one Mesh device can be used as a heartbeat receiver, and the efficiency of acquiring the online state of the devices in the Mesh network is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal of a keep-alive processing method for a Mesh device according to an embodiment of the present invention;
fig. 2 is a flowchart of a keep-alive processing method of a Mesh device according to an embodiment of the present invention;
FIG. 3 is a flow diagram of Bluetooth Mesh device heartbeat keep-alive in accordance with an embodiment of the invention;
fig. 4 is a block diagram of a keep-alive processing device of a Mesh device according to an embodiment of the present invention;
fig. 5 is a block diagram of a keep-alive processing device of a Mesh device according to a preferred embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal of the Mesh device keep-alive processing method according to the embodiment of the present invention, and as shown in fig. 1, the mobile terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, and optionally, the mobile terminal may further include a transmission device 106 for a communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 can be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to the Mesh device keep-alive processing method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 can be a Radio FrequeNcy (RF) module, which is used to communicate with the internet in a wireless manner.
Based on the above mobile terminal or network architecture, in this embodiment, a keep-alive processing method for a Mesh device is provided, and fig. 2 is a flowchart of the keep-alive processing method for the Mesh device according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, establishing a secure channel with one or more Mesh devices through the same network layer key and application layer key;
step S204, receiving heartbeat messages broadcast by the one or more Mesh devices in a first preset time period through the secure channel;
step S206, keep-alive processing is carried out on the one or more Mesh devices according to the heartbeat messages.
Further, the step S206 may specifically include: and performing keep-alive processing on the one or more Mesh devices by updating the online time stamps of the one or more Mesh devices.
Through the steps S202 to S206, since all the Mesh devices use the same network layer key and application layer key, any one Mesh device can receive the heartbeat messages broadcast by other Mesh devices in the established security channel, so as to keep alive other devices, and thus, the problem of low efficiency in obtaining the online state of the device in the Mesh network due to the fact that the keep-alive mechanism of the device in the whole Mesh network can be maintained only by one device in the related art can be solved.
In the embodiment of the present invention, after any one Mesh device keeps alive the one or more Mesh devices by updating the online timestamps of the one or more Mesh devices, any one Mesh device may check the online timestamps of the one or more Mesh devices for a second predetermined time period, where the second predetermined time period is greater than the first predetermined time period, for example, the first predetermined time period is 5 to 10S, and the second predetermined time period is 15 to 20S; if the online timestamps of the one or more Mesh devices are not updated in the current time period; updating offline timestamps of the one or more Mesh devices using the current time.
In the embodiment of the present invention, if the state of the Mesh device changes, the device broadcasting device state data is triggered, any one Mesh device may receive the device state data broadcasted by the one or more Mesh devices after detecting that the device state changes, keep-alive processing may be performed on the one or more Mesh devices according to the device state data, further, in a manner of updating the online timestamp of the one or more Mesh devices by using the current time, keep-alive processing may be performed on the one or more Mesh devices according to the device state data, if the heartbeat message is not broadcasted within the first predetermined time period after the heartbeat message is broadcasted, the heartbeat message is not broadcasted within the first predetermined time period after the device state data is sent by the Mesh, so that if any Mesh device does not frequently keep-alive within a period of time (i.e., within the first predetermined time period) after the Mesh device is kept alive processed by the device state data, that any Mesh device does not need to keep-alive (i.e., within the first predetermined time period) And the frequency of data processing is reduced by active processing.
In an optional embodiment, after any Mesh device keeps alive the one or more Mesh devices according to the heartbeat message, device state information of the one or more Mesh devices is stored in the Mesh device, where the device state information includes a device element address, an online timestamp of the Mesh device, and an offline timestamp of the Mesh device.
In another optional embodiment, any Mesh device broadcasts the heartbeat packet at the first predetermined time period, and/or broadcasts device status data after detecting that the device status changes, and other Mesh devices may perform keep-alive processing after receiving the heartbeat packet and/or the device status data.
In another optional embodiment, any Mesh device determines whether a difference between a current time and a time for transmitting the device state data is greater than the first predetermined time period; and under the condition that the judgment result is yes, broadcasting the heartbeat message in the first preset time period, namely not sending the heartbeat message within the first preset time after sending the equipment state data, and sending the heartbeat message after the first preset time.
In the embodiment of the invention, based on the Bluetooth Mesh access layer (namely a broadcast data receiving and sending mechanism of the Mesh application layer), each common node is a heartbeat sender and a heartbeat receiver, and each node device can maintain the online state of the Mesh device in the current Mesh network. All Mesh nodes need to use the same set of netkey and appkey, and the heartbeat synchronization function across the Mesh subnet is not supported. Fig. 3 is a flowchart of keep-alive heartbeat of a bluetooth Mesh device according to an embodiment of the present invention, as shown in fig. 3, including:
step S301, the gateway sends a control instruction 01 to node _ 1;
step S302, the node _1 sends a unicast reply 02 to the gateway;
step S303, node _1 determines that the equipment state changes and broadcasts 06 data;
step S304, any one of node _2 to node _ N receives 06 data, caches 06 data of node _1, and performs heartbeat keep-alive processing on node _1, and updates the online timestamp of node _ 1;
step S305, the node _1 judges whether the heartbeat needs to be broadcast or not by taking 5 seconds as a period;
step S306, node _1 determines that 06 data is not broadcasted within 5 seconds, and broadcasts heartbeat;
step S307, any node of node _2 to node _ N receives the heartbeat, caches the heartbeat of node _1, performs heartbeat keep-alive processing on node _1, and updates the online timestamp of node _ 1;
in step S308, if any node from node _2 to node _ N does not receive the heartbeat within 17 seconds, it is determined that node _1 is offline, and the offline timestamp of node _1 is updated.
The Gateway can be used as a provider role in the Bluetooth Mesh or a common node role of a third party; node _1, …, node _ N, represents a different Proxy node within the same Mesh network.
Under the condition that only one APPkey/Netkey exists in the Mesh network, any Proxy node can acquire the broadcast data sent by other nodes in the same network.
Each Proxy node will send a broadcast heartbeat at a certain period (e.g., 5 seconds) if: broadcast 06 data of the device is not generated in the heartbeat sending period, and 06 data is the device state data; after the state of the Proxy node changes, 06 data can be generated and broadcast and sent, and the broadcast heartbeat can not be sent again in the current period; any Proxy node receives broadcast type data (including 06 data and heartbeat) in the current Mesh network, namely the broadcast type data can be used as a basis for judging the heartbeat, and an online timestamp of the equipment is updated by using the current time point; the control-caused reply is a broadcast reply; the reply caused by the query is a unicast reply, and the unicast reply is to the source address of the query; unicast replies are 02 data and broadcast replies are 06 data. The data generated by the unicast reply cannot cause the online timestamp of the device to change; each Proxy node can cache the related information of N groups of Mesh nodes in the Mesh network, including: the device Element address, the online timestamp of the Mesh node, the offline timestamp, etc.
Each Proxy node checks the online time stamps of N groups of Mesh nodes maintained by the Proxy node at one time in a certain period (such as 17 seconds), if the fact that the online time stamps of the Proxy nodes are not updated when equipment exceeds the current period is checked, the equipment is considered to be offline, and the offline time stamps of the equipment are updated by using the current time point;
after the mobile phone end is connected with the Proxy node, the mobile phone actively queries the state information of the Mesh device (namely the information of the N groups of Mesh nodes maintained in each device).
In the embodiment of the invention, any node device can be used as a heartbeat receiver, so that the real online state detection and management function of the distributed Mesh device is realized, and any Mesh node device can monitor the online state of the nodes in the full Mesh network. The problems that in a typical Mesh scheme, a mobile phone needs to be resident in a Mesh network for a certain period in advance, the monitoring period is long, and the user experience is poor are solved. In a common scene, a mobile phone directly connected with any Mesh node device can acquire all online device information in all Mesh networks within millisecond-level time.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a keep-alive processing device for a Mesh device is further provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a block diagram of a keep-alive processing apparatus for a Mesh device according to an embodiment of the present invention, as shown in fig. 4, including:
an establishing module 42, configured to establish a secure channel with one or more Mesh devices through the same network layer key and application layer key;
a first receiving module 44, configured to receive, through the secure channel, a heartbeat packet broadcast by the one or more Mesh devices in a first predetermined time period;
and a first keep-alive processing module 46, configured to perform keep-alive processing on the one or more Mesh devices according to the heartbeat packet.
Optionally, the first keep alive module 46 is further configured to
And performing keep-alive processing on the one or more Mesh devices by updating the online time stamps of the one or more Mesh devices.
Optionally, the apparatus further comprises:
a checking module, configured to check online timestamps of the one or more Mesh devices at a second predetermined time period, where the second predetermined time period is greater than the first predetermined time period;
an updating module, configured to update the online timestamp of the one or more Mesh devices if the online timestamp is not updated in the current time period;
a use module to update the offline timestamps of the one or more Mesh devices using the current time.
Fig. 5 is a block diagram of a keep-alive processing apparatus for a Mesh device according to a preferred embodiment of the present invention, as shown in fig. 5, the apparatus further includes:
a second receiving module 52, configured to receive, through the secure channel, device status data broadcasted by the one or more Mesh devices after detecting that a device status has changed;
and a second keep-alive processing module 54, configured to perform keep-alive processing on the one or more Mesh devices according to the device status data.
Optionally, the second keep-alive processing module 54 is further configured to
And updating the online time stamps of the one or more Mesh devices by using the current time, and keeping the one or more Mesh devices alive according to the device state data.
Optionally, the apparatus further comprises:
the storage module is configured to store device state information of the one or more Mesh devices, where the device state information includes a device element address, an online timestamp of a Mesh device, and an offline timestamp of the Mesh device.
Optionally, the apparatus further comprises:
the first broadcasting module is used for broadcasting the heartbeat message in the first preset time period; and/or
And the second broadcasting module is used for broadcasting the equipment state data after detecting that the equipment state is changed.
Optionally, the apparatus further comprises:
the judging module is used for judging whether the difference value between the current time and the time for sending the equipment state data is greater than the first preset time period or not;
and the third broadcasting module is used for broadcasting the heartbeat message in the first preset time period under the condition that the judgment result is yes.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, establishing a secure channel with one or more Mesh devices through the same network layer key and application layer key;
s2, receiving heartbeat messages broadcast by one or more Mesh devices in a first preset time period;
s3, keep-alive processing is carried out on the one or more Mesh devices according to the heartbeat messages.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-ONly Memory (ROM), a RaNdom Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, which can store computer programs.
Example 4
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, establishing a secure channel with one or more Mesh devices through the same network layer key and application layer key;
s2, receiving heartbeat messages broadcast by one or more Mesh devices in a first preset time period;
s3, keep-alive processing is carried out on the one or more Mesh devices according to the heartbeat messages.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A keep-alive processing method for Mesh equipment is characterized by comprising the following steps:
establishing a secure channel with one or more Mesh devices through the same network layer key and application layer key;
receiving heartbeat messages broadcast by the one or more Mesh devices in a first preset time period through the secure channel;
and performing keep-alive processing on the one or more Mesh devices according to the heartbeat message.
2. The method of claim 1, wherein performing keep-alive processing on the one or more Mesh devices according to the heartbeat packet comprises:
and performing keep-alive processing on the one or more Mesh devices by updating the online time stamps of the one or more Mesh devices.
3. The method of claim 2, wherein after keep-alive processing is performed on the one or more Mesh devices by updating online time stamps of the one or more Mesh devices, the method further comprises:
checking online timestamps of the one or more Mesh devices for a second predetermined time period, wherein the second predetermined time period is greater than the first predetermined time period;
if the online timestamps of the one or more Mesh devices are not updated in the current time period;
updating offline timestamps of the one or more Mesh devices using the current time.
4. The method of claim 1, further comprising:
receiving device state data broadcast by the one or more Mesh devices after detecting that the device state changes through the secure channel;
and performing keep-alive processing on the one or more Mesh devices according to the device state data.
5. The method of claim 4, wherein keep-alive processing for the one or more Mesh devices according to the device state data comprises:
and updating the online time stamps of the one or more Mesh devices by using the current time, and keeping the one or more Mesh devices alive according to the device state data.
6. The method of claim 1, wherein after keep-alive processing is performed on the one or more Mesh devices according to the heartbeat packet, the method further comprises:
and storing the device state information of the one or more Mesh devices, wherein the device state information comprises a device element address, an online timestamp of the Mesh device and an offline timestamp of the Mesh device.
7. The method according to any one of claims 1 to 6, further comprising:
broadcasting the heartbeat message in the first preset time period; and/or
The device status data is broadcast after detecting a change in the device status.
8. The method of claim 7, further comprising:
judging whether the difference value between the current time and the time for sending the equipment state data is greater than the first preset time period or not;
and broadcasting the heartbeat message in the first preset time period under the condition that the judgment result is yes.
9. A keep-alive processing device for Mesh equipment is characterized by comprising:
the establishing module is used for establishing a secure channel with one or more Mesh devices through the same network layer key and the application layer key;
a first receiving module, configured to receive, through the secure channel, a heartbeat packet broadcast by the one or more Mesh devices in a first predetermined time period;
and the first keep-alive processing module is used for carrying out keep-alive processing on the one or more Mesh devices according to the heartbeat messages.
10. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 8 when executed.
11. An electronic device comprising a memory and a processor, wherein the memory has stored therein
A computer program arranged to be run by a processor to perform the method of any of claims 1 to 8.
CN202010728234.3A 2020-07-23 2020-07-23 Keep-alive processing method and device for Mesh equipment Pending CN111885601A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010728234.3A CN111885601A (en) 2020-07-23 2020-07-23 Keep-alive processing method and device for Mesh equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010728234.3A CN111885601A (en) 2020-07-23 2020-07-23 Keep-alive processing method and device for Mesh equipment

Publications (1)

Publication Number Publication Date
CN111885601A true CN111885601A (en) 2020-11-03

Family

ID=73200556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010728234.3A Pending CN111885601A (en) 2020-07-23 2020-07-23 Keep-alive processing method and device for Mesh equipment

Country Status (1)

Country Link
CN (1) CN111885601A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112751907A (en) * 2020-11-20 2021-05-04 青岛海尔科技有限公司 Information processing method, information processing apparatus, storage medium, and electronic apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2551206A1 (en) * 2006-06-23 2007-12-23 Research In Motion Limited Secure wireless heartbeat
US20070297609A1 (en) * 2006-06-23 2007-12-27 Research In Motion Limited Secure Wireless HeartBeat
CN104009894A (en) * 2013-02-26 2014-08-27 海尔集团公司 Automatic acquisition method of service information in local area network and system and equipment thereof
CN110602746A (en) * 2019-08-20 2019-12-20 福建星网智慧科技股份有限公司 Information interaction method between master device and slave device in Mesh network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2551206A1 (en) * 2006-06-23 2007-12-23 Research In Motion Limited Secure wireless heartbeat
US20070297609A1 (en) * 2006-06-23 2007-12-27 Research In Motion Limited Secure Wireless HeartBeat
CN104009894A (en) * 2013-02-26 2014-08-27 海尔集团公司 Automatic acquisition method of service information in local area network and system and equipment thereof
CN110602746A (en) * 2019-08-20 2019-12-20 福建星网智慧科技股份有限公司 Information interaction method between master device and slave device in Mesh network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112751907A (en) * 2020-11-20 2021-05-04 青岛海尔科技有限公司 Information processing method, information processing apparatus, storage medium, and electronic apparatus

Similar Documents

Publication Publication Date Title
CN102118263B (en) Method and system for distribution of configuration information
US7839899B2 (en) Method and system of updating routing information in a communications network
US7623472B2 (en) Dynamic peer application discovery
EP3264810A1 (en) Perception-free authentication method and system, and control method and system based on method
US7016347B2 (en) Updating radio network data in an IP base station using an IP message
CN110875857B (en) Method, device and system for reporting disconnected network state
EP2272218B1 (en) Updating routing and outage information in a communications network
CN111885601A (en) Keep-alive processing method and device for Mesh equipment
EP3697070B1 (en) Apparatus, method and program for transmitting and receiving data to and from iot device
US9888453B2 (en) Integrated paging technique
CN114126085B (en) Industrial field bus communication method and device, electronic equipment and storage medium
CN112437146B (en) Equipment state synchronization method, device and system
US11612007B2 (en) Low power dissipation Bluetooth mesh network system and communication method
CN112751907B (en) Information processing method, information processing apparatus, storage medium, and electronic apparatus
CN112702361B (en) Safety blocking method, device and equipment based on lightweight distributed cooperative equipment
JP2014146876A (en) Message distribution system and message distribution method
CN111435921B (en) Method, communication device and communication system for configuring monitoring event
CN114363183A (en) Service chain address pool slicing processing method, device and system
CN114760348B (en) Service processing method and device, storage medium and electronic device
CN114697375B (en) Voice packet switching method and device, storage medium and electronic device
CN108322501B (en) Message pushing method and device
CN112653637A (en) Mesh gateway selection method and device
KR100714807B1 (en) Method and apparatus for managing a neighbor table of a subscriber card in ipv6 software forwarding router system
CN118101756A (en) Message pushing method, system, equipment and storage medium of distributed server
CN115150363A (en) IP address updating method, gateway device, gateway drop device and storage 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201103