Mesh network recombination method and device and readable medium
By using the saved historical Mesh network topology information when the master node is powered on again, the Mesh network is quickly reorganized, which solves the problem of the master node reorganizing after powered on in the existing technology, and improves the establishment efficiency.
Patent Information
- Application Number
- CN202311149769.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-06
- Publication Date
- 2025-03-07
AI Technical Summary
After the master node is powered on again, the existing Wi-Fi Mesh technology will clear the previous networking and topology map information and start networking again, resulting in inefficient networking.
When the master node is powered on again, it obtains and uses the saved topological information of the historical Mesh network, including the information of the master node and slave node and the connection relationship, and quickly reorganizes the Mesh network.
It realizes the rapid reorganization of the Mesh network after the main node is powered on, avoiding the process of rebuilding topological information, improving the efficiency of the establishment, and optimizing the process of the reorganization network.
Smart Images

Figure CN119584248A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a Mesh network reorganization method, device and readable medium. Background Art
[0002] Wireless Fidelity (Wi-Fi) Mesh network consists of a master device and one or more slave devices. The master device is the brain of the entire Mesh network as the main controller, responsible for establishing and managing the Mesh network. The slave devices expand the coverage of the entire Mesh network, and the slave devices access the Internet through the master device. The master device of the Mesh network initiates the networking, and all devices join the Mesh network during the networking process, forming the topology of the entire Mesh network during the networking process.
[0003] In existing Wi-Fi Mesh technology, if the master node is powered on again, the existing Wi-Fi Mesh technology will clear the previous networking and topology map information, restart the networking and draw the topology map of the Wi-Fi Mesh network. Summary of the invention
[0004] The embodiments of the present disclosure provide a Mesh network reorganization method, device, and readable medium.
[0005] A first aspect of the embodiments of the present disclosure provides a Mesh network reorganization method, which is applied to a master node. The method includes:
[0006] When the master node is powered on again, the saved topology information of the historical Mesh network is obtained; wherein the topology information of the historical Mesh network includes: information of the master node, information of each slave node, and connection relationship between the master node and each slave node;
[0007] According to the topology information of the historical Mesh network, a Mesh network is re-established with each of the slave nodes of the historical Mesh network.
[0008] A second aspect of the present disclosure provides a Mesh network reorganization method, which is applied to a slave node. The method includes:
[0009] Receiving the connection relationship sent by the master node; wherein the connection relationship belongs to the topology information of the historical Mesh network;
[0010] Establish a network connection with other nodes according to the connection relationship.
[0011] A third aspect of the present disclosure provides an electronic device, including:
[0012] at least one processor;
[0013] A memory having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to the first aspect or the second aspect;
[0014] At least one I / O interface is connected between the processor and the memory and is configured to implement information interaction between the processor and the memory.
[0015] A fourth aspect of the embodiments of the present disclosure provides a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method according to the first aspect or the second aspect.
[0016] In the disclosed embodiment, by saving the topology information of the Mesh network, when the master node is powered on again, the master node obtains the saved topology information of the historical Mesh network, which includes the information of the master node, the information of each slave node, and the connection relationship between the master node and each slave node; the master node re-establishes the Mesh network with each slave node of the historical Mesh network according to the topology information of the historical Mesh network. Because the topology information of the historical Mesh network is directly used, there is no need to rebuild the topology information, so the Mesh network can be reorganized quickly, avoiding the situation that the Mesh network needs to be re-collected according to the complete establishment process and re-established each time the master node is powered on again, optimizing the process of reorganizing the network, and improving the efficiency of establishing the Mesh network after the master node is powered on again. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram of a method for a master node to perform Mesh network reorganization according to an embodiment of the present disclosure;
[0018] Figure 2 A schematic diagram of a Wi-Fi Mesh network structure provided in an embodiment of the present disclosure;
[0019] Figure 3 A schematic flow chart of a method for reorganizing a Mesh network from a node provided in an embodiment of the present disclosure;
[0020] Figure 4 A schematic diagram of a Wi-Fi Mesh networking process provided in an embodiment of the present disclosure;
[0021] Figure 5 A schematic diagram of the structure of a Mesh network reorganization device applied to a master node provided in an embodiment of the present disclosure;
[0022] Figure 6A schematic diagram of the structure of a Mesh network reorganization device applied to a sub-node provided in an embodiment of the present disclosure;
[0023] Figure 7 A schematic diagram of the structure of a Mesh network management system provided in an embodiment of the present disclosure;
[0024] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0026] As used in this disclosure, the term "and / or" includes any and all combinations of one or more of the associated listed items.
[0027] The terms used in the present disclosure are only used to describe specific embodiments and are not intended to limit the present disclosure.As used in the present disclosure, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
[0028] When the terms “comprising” and / or “made of…” are used in the present disclosure, it specifies the existence of the stated features, integers, steps, operations, elements and / or components, but does not exclude the existence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0029] Unless otherwise defined, all terms (including technical and scientific terms) used in this disclosure have the same meaning as those commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this disclosure, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined in this disclosure.
[0030] The disclosed embodiment provides a Mesh network reorganization method, which can be applied to a main node (MainNode), that is, a main control node in a Mesh network. Before executing the steps of the Mesh network reorganization method, the main node has completed at least one Mesh network networking process as a main node, and saves the topology information of the Mesh network that has been established. The topology information of the Mesh network can be in the form of a network topology diagram, and of course, other representation forms can also be used, such as text descriptions, tables, etc.
[0031] Figure 1FIG. 1 is a flow chart of a method for a master node to reorganize a Mesh network. The method for a master node to reorganize a Mesh network mainly includes the following steps:
[0032] Step 101, when the master node is powered on again, obtain the saved topology information of the historical Mesh network; wherein the topology information of the historical Mesh network includes: information of the master node, information of each slave node, and connection relationship between the master node and each slave node.
[0033] In some embodiments, the scenarios in which the master node is powered on again include but are not limited to the following scenarios: restarting the master node; powering on the master node after power failure; and upgrading the master node version. The above scenarios all involve the master node being offline from the Mesh network for a period of time and then back online. In the embodiments of the present disclosure, the master node will save the topology information of the Mesh network that has been established before going offline.
[0034] In some embodiments, each time the master node successfully establishes a Mesh network, it saves the topology information of the Mesh network. The information may be directly saved in a local storage space that is not cleared when the power is off, or saved in an external storage space that the master node can access. The specific storage location is not limited here, as long as the topology information of the Mesh network saved by the master node is not lost when the power is off and can be accessed after the master node is powered on again.
[0035] In some embodiments, the historical Mesh network here refers to the Mesh network most recently established by the master node in history.
[0036] Step 102: Re-establish a Mesh network with each of the slave nodes (Sub nodes) of the historical Mesh network according to the topology information of the historical Mesh network.
[0037] In some embodiments, the re-establishing a Mesh network with each of the slave nodes of the historical Mesh network according to the topological information of the historical Mesh network includes: receiving information reported by each of the slave nodes; judging whether the network can be re-established quickly according to the information reported by each of the slave nodes and the information of each of the slave nodes of the historical Mesh network; and if the network can be re-established quickly, re-establishing a Mesh network with each of the slave nodes according to the connection relationship in the topological information of the historical Mesh network. In these embodiments, the information reported by the slave node is compared with the information of the slave node in the historical Mesh network to determine the change of the slave node, and then judging whether the network can be re-established quickly.
[0038] In some embodiments, the re-establishing of the Mesh network with each of the slave nodes according to the connection relationship in the topology information of the historical Mesh network includes: obtaining the connection relationship from the topology information of the historical Mesh network, and sending the connection relationship to each of the slave nodes, so that the slave nodes establish network connections with other nodes according to the received connection relationship. Among them, the other nodes include at least one of the master node and other slave nodes. By sending the connection relationship of the historical Mesh network to each slave node, each slave node directly establishes a network connection with other nodes according to the received connection relationship, without the need for the slave node to search for nodes and establish connections for networking, thereby improving the establishment efficiency.
[0039] In some embodiments, before executing the step of re-establishing a Mesh network with each of the slave nodes according to the connection relationship in the topology information of the historical Mesh network, fast networking indication information is sent to each of the slave nodes in the historical Mesh network; wherein the fast networking indication information is used to notify the slave node to establish a network connection with other nodes according to the specified connection relationship. In these embodiments, the master node sends fast networking indication information to each of the slave nodes in the historical Mesh network to notify each of the slave nodes to stop the process of searching and establishing a network by themselves, and to establish a network according to the topology information of the historical Mesh network sent by the master node.
[0040] In some embodiments, the rapid networking indication information may be expressed in a variety of forms, including but not limited to using a rapid networking flag as the rapid networking indication information.
[0041] In some embodiments, the information of the slave node includes at least one of the following dimensions:
[0042] Status information of the slave node;
[0043] The location information of the slave node.
[0044] In an exemplary embodiment, after the master node is powered on again, it receives the location information of the corresponding slave node broadcasted by each slave node.
[0045] After sending the fast networking indication information to the slave node, the master node receives the status information of the slave node sent by the slave node; or, after being powered on again, the master node receives the status information of the slave node broadcasted by the slave node.
[0046] The location information of the slave node may be obtained by positioning the slave node, and the positioning method includes but is not limited to at least one of the following methods: Wi-Fi, Bluetooth, and Global Positioning System (GPS). The slave node broadcasts its own location information after locating it.
[0047] Among them, the status information of the slave node includes information such as the working status and signal strength of the slave node. The working status of the slave node includes a flag indicating whether the slave node is in a normal working state. Flag A indicates that the slave node is in a normal working state, and flag B indicates that the slave node is in an abnormal state.
[0048] In some embodiments, the manner of determining whether the network can be re-established is different according to the different information dimensions included in the information of the slave node, including but not limited to the following situations:
[0049] Case A, judging whether the network can be quickly re-established based on the information reported by each of the slave nodes and the information of each of the slave nodes in the historical Mesh network, includes: judging whether the status of each of the slave nodes has changed based on the status information reported by each of the slave nodes and the status information of each of the slave nodes in the historical Mesh network; determining that the network can be quickly re-established if the status of each of the slave nodes has not changed; and determining that the network cannot be quickly re-established if the status of at least one of the slave nodes has changed.
[0050] In this case, the master node can quickly re-establish the network when the status of each slave node does not change.
[0051] For example, when the user confirms that the location information of each slave node has not changed, the user starts the fast re-networking enabling mode of the master node. When the master node determines that the status of each node has not changed, the master node controls the fast re-networking, that is, the fast re-networking is directly performed according to the topology information of the historical Mesh network. For example, the user determines that the location of the current device node has not changed, and initiates the fast re-networking through the APP or button mode.
[0052] Case B, judging whether the network can be quickly re-established based on the information reported by each of the slave nodes and the information of each of the slave nodes in the historical Mesh network, includes: judging whether the position of each of the slave nodes has changed based on the position information reported by each of the slave nodes and the position information of each of the slave nodes in the historical Mesh network; determining that the network can be quickly re-established if the position of each of the slave nodes has not changed; and determining that the network cannot be quickly re-established if the position of at least one of the slave nodes has changed.
[0053] In this case, the master node does not care about the status of each slave node, and can quickly re-network when the positions of each node have not changed.
[0054] Case C, judging whether the network can be quickly re-established based on the information reported by each of the slave nodes and the information of each of the slave nodes in the historical Mesh network, includes: judging whether the position of each of the slave nodes has changed based on the position information reported by each of the slave nodes and the position information of each of the slave nodes in the historical Mesh network; judging whether the state of each of the slave nodes has changed based on the status information reported by each of the slave nodes and the status information of each of the slave nodes in the historical Mesh network; determining that the network can be quickly re-established when the position of each of the slave nodes has not changed and the state of each of the slave nodes has not changed; determining that the network cannot be quickly re-established when the position or state of at least one of the slave nodes has changed.
[0055] In this case, it is necessary to pay attention to the position change and state change of each slave node. The master node can quickly re-establish the network when the position and state of each slave node remain unchanged.
[0056] In the above three cases, the state of the slave node has not changed, which means that the state change of the slave node is a slight change within a certain range, and the state of the slave node is considered to have not changed. For example, if the change in the signal strength value reported by the slave node and the signal strength value of the slave node in the historical Mesh network is within a certain interval, it is considered that the signal strength of the slave node has not changed. If the change exceeds the range of the interval, it is considered that the signal strength of the slave node has changed.
[0057] Similarly, if the position information of the slave node has not changed, it means that the position change of the slave node is a small change within a certain range, and the position of the slave node is considered to have not changed. For example, if the change in the position coordinate value reported by the slave node and the position coordinate value of the slave node in the historical Mesh network is within a certain interval, the position of the slave node is considered to have not changed. If the change exceeds the range of the interval, the position of the slave node is considered to have changed.
[0058] In some embodiments, the method further includes: before executing the step of determining whether the network can be quickly re-established based on the information reported by each of the slave nodes and the information of each of the slave nodes of the historical Mesh network, receiving a startup instruction for a fast re-establishment mode.
[0059] There are many ways to generate the startup instruction of the fast re-networking mode, including but not limited to the following:
[0060] Method 1: When the master node detects a trigger operation of a designated key (virtual key or physical key), it generates a start instruction for the fast re-networking mode.
[0061] Exemplarily, the user clicks a physical button on the master node for starting the fast re-networking mode, and the master node generates the start instruction when detecting that the physical button is clicked, and enters the fast re-networking mode. In this case, the user determines the location information of each slave node of the historical Mesh network formed by the master node, and confirms that the location information of these slave nodes has not changed.
[0062] Method 2: The master node receives a startup instruction of the fast re-networking mode sent by other devices. The other devices can be any device that can establish a communication connection with the master node, such as a server that establishes a communication connection with the master node. In this case, the other devices determine the location information of each slave node of the historical Mesh network formed by the master node, and confirm that the location information of these slave nodes has not changed.
[0063] Accordingly, when the master node receives the startup instruction of the fast renetworking mode, it determines whether the network can be quickly renetworked based on the status information reported by each of the slave nodes and the status information of each of the slave nodes in the historical Mesh network, without comparing the location information reported by the slave nodes with the location information of each of the slave nodes in the historical Mesh network.
[0064] In some embodiments, the master node and each slave node in the Mesh network are wireless access hotspots (Wi-Fi), and the formed Mesh network is a Wi-Fi Mesh network.
[0065] In an exemplary embodiment, Figure 2The figure shows a typical Wi-Fi Mesh network structure diagram. Here, only four Mesh nodes are taken as an example. The number of Mesh nodes can be set according to demand. The Wi-Fi Mesh network includes a master node A, slave nodes B, C and D. The master node is connected to the network interface provided by the Internet. The slave nodes B, C and D extend the Wi-Fi network, which can expand the coverage of the Wi-Fi Mesh network. The master node A is responsible for establishing the Wi-Fi Mesh network, and the topology diagram of the Wi-Fi Mesh network will be drawn during the network establishment process. In a traditional Wi-Fi Mesh network, when the master node A is powered off or restarted, that is, the master node A is powered on again, the master node A needs to re-initiate the network establishment. There is no topological record of the previous network establishment in the Mesh network. Assuming that the status of each node has not changed at this time, it still needs to be re-established. By adopting the fast networking method provided by the embodiment of the present disclosure, when the master node A is powered off or restarted, the previous network topology is saved, the status of each slave node is judged during the startup of the master node A, and the fast reorganization network indication information is transmitted in the message during the networking process, so that each node can complete the fast connection networking according to the original topology, thereby improving the networking efficiency when the master node is reset and enhancing the user experience.
[0066] In an exemplary embodiment, during the power-on process of the master node, it is first checked whether the user has configured to initiate a fast re-networking. If the user has not configured a fast re-networking, the master node compares the location information reported by each slave node with the location information of the corresponding node previously saved. If there is no change, a fast re-networking is initiated. Regardless of the method of initiating a fast re-networking, the master node sends a fast re-networking indication message to each slave node to notify each slave node to network according to the topology information of the historical Mesh network and stop the traditional networking process of self-searching and networking. The slave node reports its own status such as the Wi-Fi signal strength of each slave node. The master node determines that the Wi-Fi signal strength is within a certain range and that the status of the slave node remains basically unchanged, and then quickly implements networking according to the originally saved Wi-Fi Mesh network topology.
[0067] Correspondingly, an embodiment of the present disclosure also provides a Mesh network reorganization method, which is applied to a slave node.
[0068] Figure 3 The figure shows a flow chart of a method for reorganizing a Mesh network from a node. The method for reorganizing a Mesh network from a node mainly includes the following steps:
[0069] Step 301, receiving a connection relationship specified by the master node; wherein the connection relationship belongs to the topology information of the historical Mesh network;
[0070] Step 302: Establish a network connection with other nodes according to the connection relationship.
[0071] In some embodiments, before executing the step of receiving the connection relationship specified by the master node, fast networking indication information sent by the master node is received; wherein the fast networking indication information is used to notify the slave node to establish a network connection with other nodes according to the specified connection relationship.
[0072] In some embodiments, before executing the step of establishing a network connection with other nodes based on the connection relationship, the slave node reports the information of the slave node to the master node, and the information of the slave node includes at least one of the following dimensions: status information of the slave node; location information of the slave node.
[0073] In some embodiments, the slave node sends its own location information to the master node by broadcasting, and specifically, the location information can be broadcast periodically in the boot state. The slave node obtains its own location information by positioning, and the positioning method includes but is not limited to at least one of the following methods: Wi-Fi, Bluetooth, GPS. The location information can be specifically physical location coordinates, such as longitude and latitude coordinates.
[0074] In some embodiments, the slave node sends its own status information to the master node, specifically, it can be periodically broadcasting the status information in the power-on state, or it can be sending its own status information to the master node after receiving the fast networking indication information sent by the master node. The status information may include the signal strength information of the slave node, etc.
[0075] In some embodiments, the connection relationship sent by the master node and received by the slave node may specifically be a connection relationship between all nodes in the historical Mesh network, or a connection relationship related to the slave node in the historical Mesh network.
[0076] The network reorganization method provided in the embodiment of the present disclosure saves the topology information of the Mesh network. When the master node is powered on again, the master node obtains the saved topology information of the historical Mesh network, which includes the information of the master node, the information of each slave node, and the connection relationship between the master node and each slave node; the master node reorganizes the Mesh network with each slave node of the historical Mesh network according to the topology information of the historical Mesh network. Thus, the Mesh network can be reorganized quickly, avoiding the situation that the Mesh network needs to be re-collected according to the complete formation process and re-formed according to the complete formation process every time the master node is powered on again, optimizing the process of reorganizing the network, and improving the efficiency of forming the Mesh network after the master node is powered on again.
[0077] For Wi-Fi Mesh networking, see Figure 4The schematic diagram of the Wi-Fi Mesh networking process shown in the figure is that the networking process is only an example, and the order of some steps can be adjusted without affecting the overall networking effect. For example, the slave node receives the working status information of the Wi-Fi signal strength after receiving the fast networking flag, or the slave node first reports the working status information of the Wi-Fi signal strength and then receives the fast networking flag. The adjustment of the order of the two does not affect the overall networking effect. The embodiment of the present disclosure can solve the problem of low efficiency in the previous Wi-Fi Mesh networking process, which requires re-networking and building the network topology. The topology of the Wi-Fi Mesh network before re-networking is the information formed after the Wi-Fi Mesh completes the networking according to the position and status information of each node. The master node will save the original network topology information for subsequent re-networking. When re-networking, the master node determines that the position of each slave node in the current networking has not changed, initiates a fast re-networking, and each slave node receives the working status information of the Wi-Fi signal strength reported by the fast re-networking flag. When the master node determines that the working status of each slave node has not changed, the fast networking is completed according to the saved network topology information. Improve the efficiency of establishing Wi-Fi Mesh network, quickly build network topology, and greatly improve user experience. At present, Wi-Fi Mesh network has become a popular application for deploying wireless networks in homes and offices. The method provided in the embodiment of the present disclosure can be applied to the deployment of WLAN Mesh network products. On the basis of existing CPE (Customer Premise Equipment) network equipment, it greatly improves the efficiency of reorganizing the Wi-Fi Mesh network and further improves the user experience of WLAN Mesh products.
[0078] The step division of the above various methods is only for clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the protection scope of this disclosure. Adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the protection scope of this disclosure.
[0079] A Mesh network reorganization device is provided in an embodiment of the present disclosure and is applied to a master node. The specific implementation of the device can refer to the relevant description of the method embodiment and will not be repeated here. Figure 5 The schematic diagram of the structure of the device is shown, which mainly includes:
[0080] The acquisition module 501 is used to acquire the saved topology information of the historical Mesh network when the master node is powered on again; wherein the topology information of the historical Mesh network includes: information of the master node, information of each slave node, and connection relationship between the master node and each slave node;
[0081] The reorganization module 502 is used to reorganize the Mesh network with each of the slave nodes of the historical Mesh network according to the topology information of the historical Mesh network.
[0082] A Mesh network reorganization device is provided in an embodiment of the present disclosure and is applied to a slave node. The specific implementation of the device can refer to the relevant description of the method embodiment and will not be repeated here. Figure 6 The schematic diagram of the structure of the device is shown, which mainly includes:
[0083] The first receiving module 601 receives the connection relationship sent by the master node; wherein the connection relationship belongs to the topology information of the historical Mesh network;
[0084] The connection module 602 establishes a network connection with other nodes according to the connection relationship.
[0085] The functions or modules included in the device provided in the embodiments of the present disclosure can be used to execute the method described in the method embodiments. The specific implementation and technical effects thereof can be referred to the description of the method embodiments above, and will not be described again here for the sake of brevity.
[0086] It should be noted that all modules involved in this embodiment are logic modules. In practical applications, a logic unit may be a physical unit, or a part of a physical unit, or may be implemented as a combination of multiple physical units. In addition, in order to highlight the innovative part of the present disclosure, this embodiment does not introduce units that are not closely related to solving the technical problems proposed by the present disclosure, but this does not mean that there are no other units in this embodiment.
[0087] The present disclosure also provides a Mesh network management system. Figure 7 As shown, the system mainly includes a slave node information reporting module 701 , a slave node status judgment module 702 , a Mesh topology management module 703 and a Mesh networking management module 704 .
[0088] Among them, the slave node information reporting module 701 is set in the slave node; the slave node status judgment module 702, the Mesh topology management module 703 and the Mesh networking management module 704 are set in the master node.
[0089] The slave node information reporting module 701 is used to report the location information and status information of the slave node to the master node;
[0090] A slave node status determination module 702, configured to determine whether the state of the slave node has changed according to the status information reported by the slave node, and determine whether the position of the slave node has changed according to the position information reported by the slave node;
[0091] Mesh topology management module 703, used to save the topology information of the historical Mesh network;
[0092] The Mesh networking management module 704 is used to obtain the topology information of the historical Mesh network from the Mesh topology management module and quickly re-network when the master node is powered on again and the slave node status judgment module determines that the status and position of the slave node have not changed.
[0093] Reference Figure 8 , an embodiment of the present disclosure provides an electronic device, comprising:
[0094] at least one processor 801;
[0095] A memory 802 having at least one program stored thereon, and when the at least one program is executed by the at least one processor, the at least one processor implements the above method;
[0096] At least one I / O interface 803 is connected between the processor and the memory and is configured to implement information exchange between the processor and the memory.
[0097] Among them, the processor 801 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 802 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I / O interface (read-write interface) 803 is connected between the processor 801 and the memory 802, and can realize information interaction between the processor 801 and the memory 802, including but not limited to a data bus (Bus), etc.
[0098] In some embodiments, the processor 801 , the memory 802 , and the I / O interface 803 are connected to each other via a bus, and further connected to other components of the computing device.
[0099] This embodiment further provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the method provided in this embodiment is implemented. To avoid repeated description, the specific steps of the method are not repeated here.
[0100] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods applied for above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0101] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0102] Those skilled in the art will understand that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features from different embodiments is meant to be within the scope of the present embodiment and to form different embodiments.
[0103] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present disclosure, but the present disclosure is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and substance of the present disclosure, and these modifications and improvements are also considered to be within the scope of protection of the present disclosure.
Claims
1. A Mesh network reorganization method, characterized in that: Applied to the master node, the method comprises: When the master node is powered on again, the saved topology information of the historical Mesh network is obtained; wherein the topology information of the historical Mesh network includes: information of the master node, information of each slave node, and connection relationship between the master node and each slave node; According to the topology information of the historical Mesh network, a Mesh network is re-established with each of the slave nodes of the historical Mesh network.
2. The method according to claim 1, characterized in that The re-establishing a Mesh network with each of the slave nodes of the historical Mesh network according to the topology information of the historical Mesh network includes: Receiving information reported by each of the slave nodes; Determine whether the network can be quickly re-established based on the information reported by each slave node and the information of each slave node of the historical Mesh network; In the case where the network can be re-established quickly, the Mesh network is re-established with each slave node according to the connection relationship in the topology information of the historical Mesh network.
3. The method according to claim 1, characterized in that: The re-establishing a Mesh network with each of the slave nodes of the historical Mesh network according to the topology information of the historical Mesh network includes: The connection relationship is acquired from the topology information of the historical Mesh network, and the connection relationship is sent to each of the slave nodes, so that the slave node establishes a network connection with other nodes according to the received connection relationship.
4. The method according to claim 2, characterized in that: The method further comprises: Before executing the step of re-establishing the Mesh network with each slave node according to the connection relationship in the topology information of the historical Mesh network, fast networking indication information is sent to each slave node in the historical Mesh network; wherein the fast networking indication information is used to notify the slave node to establish a network connection with other nodes according to the specified connection relationship.
5. The method according to claim 2, characterized in that: The information of the slave node and the information reported by the slave node include at least one of the following dimensions: Status information of the slave node; The location information of the slave node.
6. The method according to claim 5, characterized in that The determining whether the network can be quickly re-established according to the information reported by each slave node and the information of each slave node of the historical Mesh network includes: According to the status information reported by each of the slave nodes and the status information of each of the slave nodes in the historical Mesh network, determining whether the status of each of the slave nodes has changed; In the case where the states of the slave nodes do not change, determining that the network can be quickly re-established; When the state of at least one of the slave nodes changes, it is determined that rapid re-networking is not possible.
7. The method according to claim 5, characterized in that The determining whether the network can be quickly re-established according to the information reported by each slave node and the information of each slave node of the historical Mesh network includes: According to the position information reported by each slave node and the position information of each slave node in the historical Mesh network, determining whether the position of each slave node has changed; In the case where the positions of the slave nodes do not change, determining that the network can be quickly re-established; In the case where the position of at least one of the slave nodes changes, it is determined that rapid re-networking is not possible.
8. The method according to claim 5, characterized in that The determining whether the network can be quickly re-established according to the information reported by each slave node and the information of each slave node of the historical Mesh network includes: According to the position information reported by each slave node and the position information of each slave node in the historical Mesh network, determining whether the position of each slave node has changed; According to the status information reported by each of the slave nodes and the status information of each of the slave nodes in the historical Mesh network, determining whether the status of each of the slave nodes has changed; In the case where the positions of the slave nodes do not change and the states of the slave nodes do not change, determining that the network can be quickly re-established; When the position or state of at least one of the slave nodes changes, it is determined that the network cannot be quickly re-established.
9. The method according to claim 2, characterized in that: The method further comprises: Before executing the step of determining whether a fast re-networking is possible based on the information reported by each slave node and the information of each slave node of the historical Mesh network, a startup instruction for a fast re-networking mode is received.
10. The method according to any one of claims 1 to 9, characterized in that: The master node and each slave node in the Mesh network are wireless access hotspots.
11. A Mesh network reorganization method, characterized in that: Applied to a slave node, the method comprises: Receive a connection relationship specified by a master node; wherein the connection relationship belongs to topology information of a historical Mesh network; Establish a network connection with other nodes according to the connection relationship.
12. The method according to claim 11, characterized in that The method further comprises: Before executing the step of receiving the connection relationship specified by the master node, fast networking indication information sent by the master node is received; wherein the fast networking indication information is used to notify the slave node to establish a network connection with other nodes according to the specified connection relationship.
13. The method according to claim 11, characterized in that The method further comprises: Before executing the step of establishing a network connection with other nodes according to the connection relationship, reporting the information of the slave node to the master node, wherein the information of the slave node includes at least one of the following dimensions: Status information of the slave node; The location information of the slave node.
14. An electronic device, characterized in that: include: at least one processor; A memory having at least one program stored thereon, wherein when the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 10 or implements the method according to any one of claims 11 to 13; At least one I / O interface is connected between the processor and the memory and is configured to implement information interaction between the processor and the memory.
15. A computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 10 or the method according to any one of claims 11 to 13 is implemented.