Mesh networking method and apparatus, device, readable storage medium and program product
Searching and determining the target slave device for Mesh networking through the master device's broadcast request message solves the cumbersome operation and security problems of the traditional method, and achieves the effect of simplifying the networking process and improving security.
Patent Information
- Application Number
- PCT/CN2023/132358
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-20
- Filing Date
- 2023-11-17
- Publication Date
- 2024-08-29
AI Technical Summary
The traditional Wi-Fi Mesh networking method is cumbersome to operate. Users need to operate on the master device and the slave device separately to start the networking process. There are also security issues such as other devices logging into the network of the slave device.
Through the master device broadcasting request messages, it searches for Mesh-enabled devices within a preset range, receives response information, and determines the target slave device for Mesh networking, preventing users from participating in the networking process and improving security.
It simplifies the discovery and networking process of Mesh networking, avoids the need to open secret-free hotspots from the device, and improves the security and operation efficiency of the network.
Smart Images

Figure CN2023132358_29082024_PF_FP_ABST
Abstract
Description
Mesh networking method, device, equipment, readable storage medium, and program product
[0001] Related applications
[0002] This application claims priority to Chinese patent application number 202310184588X, filed on February 20, 2023, entitled “Mesh networking method, apparatus, device, readable storage medium and program product,” the entire text of which is hereby incorporated by reference. Technical Field
[0003] The present application relates to the field of communication technology, and more specifically, to a Mesh networking method, apparatus, device, readable storage medium, and program product. Background Art
[0004] Mesh networking is a new type of local area network. Nodes in a MESH network are interconnected via wired or wireless connections. It's a dynamic, scalable network architecture with prominent features such as dynamic self-organization, self-configuration, and self-maintenance. The Service Set Identifier (SSID) remains consistent throughout the MESH network, allowing wireless terminals to automatically connect to nodes with better signals, and seamless connection switching when roaming between nodes.
[0005] Wi-Fi Mesh networking involves using multiple wireless network devices (such as customer premises equipment or routers) to form a larger wireless mesh network, enabling seamless roaming of devices. Traditionally, Wi-Fi Mesh networking involves users initiating the mesh networking process on both the master and slave devices. However, this traditional method is cumbersome.
[0006] Summary of the Invention
[0007] Based on this, it is necessary to provide a Mesh networking method, device, equipment, readable storage medium and program product to address the above technical problems, which can simplify the operation of starting the Mesh networking process.
[0008] In a first aspect, an embodiment of the present application provides a Mesh networking method, including:
[0009] In response to the networking request, a request message is broadcast; the request message includes a target field; the target field is used to search for devices that support Mesh within a preset range;
[0010] receiving response information returned by at least one device based on the request message;
[0011] Based on the response information, a target slave device is determined from the at least one device, and Mesh networking is performed with the target slave device.
[0012] In a second aspect, an embodiment of the present application provides a Mesh networking method, including:
[0013] Receive a request message broadcast by a master device; the request message is broadcast by the master device in response to a networking request; the request message includes a target field; the target field is used to search for devices that support Mesh within a preset range;
[0014] Send response information to the master device based on the request message, where the response information is used to instruct the master device to determine a target slave device from at least one device based on the response information, and perform Mesh networking with the target slave device.
[0015] In a third aspect, an embodiment of the present application provides a Mesh networking device, including:
[0016] A broadcast module, configured to broadcast a request message in response to a networking request; the request message includes a target field; the target field is used to search for devices supporting Mesh within a preset range;
[0017] A first receiving module is configured to receive response information returned by at least one device based on the request message;
[0018] A determination module is configured to determine a target slave device from the at least one device based on the response information, and perform Mesh networking with the target slave device.
[0019] In a fourth aspect, an embodiment of the present application provides a Mesh networking device, including:
[0020] A first receiving module is configured to receive a request message broadcast by a master device; the request message is broadcast by the master device in response to a networking request; the request message includes a target field; the target field is used to search for devices supporting Mesh within a preset range;
[0021] The first sending module is used to send response information to the master device based on the request message, where the response information is used to instruct the master device to determine a target slave device from at least one device based on the response information and perform Mesh networking with the target slave device.
[0022] In a fifth aspect, an embodiment of the present application provides a device comprising a memory, a processor and a transceiver, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the Mesh networking method as described in the first and second aspects.
[0023] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first and second aspects.
[0024] In a seventh aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the methods described in the first and second aspects.
[0025] The above-mentioned Mesh networking method, apparatus, equipment, readable storage medium and program product, the master device broadcasts a request message including a search for devices supporting Mesh within a preset range in response to a networking request, and the master device can receive response information returned by at least one device within the preset range based on the request message, so that the master device can determine the target slave device from at least one device based on the response information returned by at least one device, and perform Mesh networking with the target slave device. Since the target slave device is mainly determined through communication and interaction between the master device and at least one device within the preset range in this process, the user's participation in the process of starting the Mesh networking is avoided, the discovery of the Mesh network and the user's operation on the master device and slave device in the networking process are simplified, that is, the operation of starting the Mesh networking process is simplified; in addition, there is no need to enable a password-free hotspot from the slave device during the Mesh networking process, which avoids other devices logging into the network of the slave device and improves the security of the Mesh network. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the disclosed drawings without any creative work.
[0027] FIG1 is an application environment diagram of a Mesh networking method according to an embodiment;
[0028] FIG2 is a flow chart of a Mesh networking method applied to a master device in one embodiment;
[0029] FIG3 is a schematic diagram of the structure of a request message in one embodiment;
[0030] FIG4 is a flow chart of a Mesh networking method applied to a master device in another embodiment;
[0031] FIG5 is a flow chart of a Mesh networking method applied to a master device in another embodiment;
[0032] FIG6 is a flowchart of a Mesh networking method applied to a Mesh-enabled device in one embodiment;
[0033] FIG7 is a flowchart of a Mesh networking method applied to a Mesh-enabled device in another embodiment;
[0034] FIG8 is a flow chart of a Mesh networking method according to an embodiment;
[0035] FIG9 is a structural block diagram of a Mesh networking device according to an embodiment;
[0036] FIG10 is a structural block diagram of a Mesh networking device according to another embodiment;
[0037] FIG11 is a structural block diagram of a Mesh networking device according to another embodiment;
[0038] FIG12 is a structural block diagram of a Mesh networking device according to another embodiment;
[0039] FIG13 is a structural block diagram of a Mesh networking device according to an embodiment;
[0040] FIG14 is a structural block diagram of a Mesh networking device according to another embodiment;
[0041] FIG15 is a structural block diagram of a Mesh networking device according to another embodiment;
[0042] FIG16 is a schematic structural diagram of a device in one embodiment. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solutions and advantages of this application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0044] The Mesh networking method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. The master device 102 and the Mesh-enabled device 104 can both be wireless routers or customer premises equipment, etc. The master device 102 can be a device that has both Internet access and management capabilities for other devices, while the Mesh-enabled device 104 can be a device that only allows other devices to join. Furthermore, the master device 104 can mesh network with the Mesh-enabled device 104 to form a wireless Mesh network, thereby achieving the function of expanding wireless network coverage.
[0045] In one embodiment, as shown in FIG2 , a Mesh networking method is provided. The method is described by taking the master device in FIG1 as an example, including the following steps:
[0046] S201, in response to a networking request, broadcast a request message; the request message includes a target field; the target field is used to search for devices supporting Mesh within a preset range.
[0047] Among them, the networking request is a request for establishing a Mesh network. Optionally, the networking request can be triggered on the main device when the user needs a larger range of network coverage, or it can be triggered autonomously by the main device when the main device detects that the wireless connection signal of the terminal is weak.
[0048] In this embodiment, after detecting a networking request, the master device responds to the request by broadcasting a request message to a preset range of surrounding devices. The request message includes a target field, which is a predefined field used to search for Mesh-enabled devices within the preset range. Optionally, the Mesh-enabled devices within the preset range of the master device may be one or more devices, which is not limited in this embodiment.
[0049] As an optional implementation manner, the message list included in the request message in this embodiment can be as shown in Table 1, wherein the hexadecimal expression of the Discover message can be Type: 0x00 as shown in Table 1, and the Discover message can be used to support the master device to search for surrounding devices that support Mesh; the hexadecimal expression of the Discover Resp message can be Type: 0x01 as shown in Table 1, and the Discover Resp message can be a message sent by the Mesh-supporting device to the master device in response to the master device's search request. The Discover Resp message can carry the Mac address, model, and other information of the Mesh-supporting device; the Agent Set message is a message sent by the slave device to the slave device requesting to start Mesh networking. The Agent Set message can carry the Mac address information of the slave device determined by the master device. The hexadecimal expression of the Agent Set message can be Type: 0x02 as shown in Table 1; the Agent Set Resp message is a response message returned by the slave device in response to the master device's networking request. The Resp message may carry the response result of the slave device to the networking request. The hexadecimal representation of the Agent Set Resp message may be Type: 0x03 as shown in Table 1.
[0050] Table 1
[0051] In addition, as an optional implementation, the request message can be composed of multiple TLV groups as shown in Figure 3, and the target field mentioned above can be included in any TLV group in the multiple TLV groups. The TLV group is the basic component unit of the Wi-Fi Probe. The T field indicates the message type, the L field indicates the message length, and the V field is used to store the message content. In this embodiment, as shown in Figure 3, the elements (Element) in the TLV group are manufacturer-defined data, and the OUI is the manufacturer's identifier. In this embodiment, the manufacturer's identifier can be 149bf3 as shown in Figure 3. In this embodiment, the L field can include the length of the OUI and the length of the message value (Value), and the V field can include the message value (Value) and the message type (Type) value as shown in Figure 3.
[0052] S202: Receive response information returned by at least one device based on the request message.
[0053] In this embodiment, after the devices supporting Mesh within the preset range around the main device receive the request message broadcast by the main device, they will send response information to the main device based on the received request message, so that the main device can determine the information of the surrounding devices based on the received response information. Optionally, in this embodiment, the response information returned by the devices within the preset range around the main device may include at least one of the device's identification information, location information, model information, and configuration information. It should be noted that at this time, no network communication connection is established between the main device and the devices within the preset range around it. The main device and the devices within the preset range around it can communicate using a communication protocol supported by both, such as Bluetooth communication. That is to say, in this embodiment, the main device can receive the response information returned by at least one device within the preset range around it based on the above request message through a communication protocol supported by itself and the devices within the preset range around it.
[0054] S203: Based on the response information, determine a target slave device from at least one device, and perform Mesh networking with the target slave device.
[0055] In this embodiment, after the master device receives the response information returned by at least one device within a preset range, the master device itself can determine the target slave device from at least one device that sends the response information, or the master device can display the received response information to the user, obtain the target slave device selection instruction triggered by the user based on the response information, determine the target slave device according to the selection instruction, and then start the process of Mesh networking with the determined target slave device, and perform Mesh networking with the target slave device. Exemplarily, taking the example of the master device itself determining the target slave device from at least one device that sends response information, if the response information returned by at least one device within the preset range around the master device includes configuration information, the master device can determine the unconfigured device as the target slave device based on the configuration information of at least one device within the preset range around the master device; for another example, if the response information returned by at least one device within the preset range around the master device includes location information, the master device can determine the device closest to the master device as the target slave device based on the location information of at least one device within the preset range around the master device; for another example, if the response information returned by at least one device within the preset range around the master device includes identification information, the master device can determine the device with the same identification as its own as the target slave device based on the identification information of at least one device within the preset range around the master device; for another example, if the response information returned by at least one device within the preset range around the master device includes model information, the master device can determine the device with the same model as its own as the target slave device based on the model information of at least one device within the preset range around the master device.
[0056] In the above-mentioned Mesh networking method, the master device, in response to a networking request, broadcasts a request message including a message for searching for Mesh-supported devices within a preset range. The master device is able to receive response information returned by at least one device within the preset range based on the request message, so that the master device can determine the target slave device from at least one device based on the response information returned by the at least one device, and perform Mesh networking with the target slave device. Since the target slave device is determined mainly through communication and interaction between the master device and at least one device within the preset range, this avoids user participation in the Mesh networking process, simplifies the discovery of the Mesh network, and simplifies the user's operation of the master and slave devices during the networking process, that is, simplifies the operation of the Mesh networking process. In addition, during the Mesh networking process, there is no need to enable a password-free hotspot from the slave device, which avoids other devices logging into the slave device's network and improves the security of the Mesh network.
[0057] In the scenario where the master device determines the target device from at least one device within a preset surrounding range based on the response information, the master device may obtain identification information of at least one device within the preset surrounding range from the received response information, and determine the target slave device based on the identification information of at least one device within the preset surrounding range. In one embodiment, as shown in FIG4 , the “determining the target slave device from at least one device based on the response information” in S203 includes:
[0058] S301: Obtain identification information of at least one device from response information.
[0059] In this embodiment, after receiving a response message from at least one device within a preset range, the master device can parse the response message to obtain identification information of the at least one device. Optionally, the identification information can be used to indicate whether the device has been configured or to identify the model of the device.
[0060] S302: Determine a target slave device from at least one device according to identification information of at least one device.
[0061] Optionally, in this embodiment, the master device itself may determine the target slave device from at least one device based on the identification information of at least one device, or the master device may display the identification information of at least one device to the user, and the user may determine the target slave device.
[0062] As an optional implementation, when the target slave device is determined by the master device itself, the master device may determine the device with the same identification information as itself among the at least one device as the target slave device based on the identification information of the at least one device.
[0063] The following will describe the detailed process of the target slave device being determined by the user. In one embodiment, as shown in FIG5 , the above S302 includes:
[0064] S401: Display identification information of at least one device.
[0065] Optionally, in this embodiment, after the main device obtains the identification information of at least one device within a preset range, it can form the identification information of the at least one device into an identification information list and display the identification information of the at least one device to the user in the form of the identification information list.
[0066] S402: Acquire selection information triggered by the user based on identification information of at least one displayed device.
[0067] In this embodiment, after the master device displays the identification information of at least one device to the user, the user can make a judgment based on the identification information of the at least one device and trigger selection information of identification information that meets their needs within the displayed identification information. For example, in this embodiment, based on the identification information of the at least one device, the user can trigger selection information of identification information of the same model as the master device within the displayed identification information.
[0068] S403: Determine a target slave device from at least one device according to the selection information.
[0069] In this embodiment, after the master device receives the user-triggered selection information, it can determine the device corresponding to the selection information as the target slave device. For example, if the identification information displayed by the master device includes the identification information of device A, device B, device C, and device D, and the user-triggered selection information is the selection information of device B's identification information, the master device can determine device B as the target slave device.
[0070] In this embodiment, the master device can obtain the identification information of at least one device from the response information returned by at least one device within the surrounding preset range, so that the target slave device can be determined from the at least one device based on the identification information of the at least one device. Since the target slave device is determined by the master device in this process, the user's operation in the process of determining the target slave device is simplified; in addition, the master device can accurately determine the identification information of at least one device from the response information returned by at least one device within the surrounding preset range, so that the master device can accurately determine the target slave device from at least one device within the surrounding preset range based on the identification information of at least one device within the surrounding preset range, thereby improving the accuracy of the determined target slave device.
[0071] In some scenarios, after the master device identifies a target slave device, the target slave device must enter slave mode before the master device and the target slave device can establish a Mesh network. Only after the target slave device enters slave mode can Mesh networking be established. In one embodiment, the method further includes: sending a control instruction to the target slave device; the control instruction is used to instruct the target slave device to enter slave mode; wherein, in slave mode, the configuration information of the target slave device is the same as the configuration information of the master device, and the target permission in the target slave device is disabled.
[0072] First, it should be noted that in a Mesh network, the configuration information of the slave device is the same as that of the master device, and the slave device can only allow other devices to join but does not have Internet access permissions. In other words, the target permission of the target slave device in this embodiment refers to the Internet access permission of the target slave device.
[0073] In this embodiment, after the master device identifies a target slave device from at least one device within a preset surrounding range, it may send a control instruction to the target slave device, instructing the target slave device to enter slave mode through this control instruction, i.e., instructing the target slave device to modify its own configuration information to be identical to that of the master device and to disable its own target permissions. Optionally, in this embodiment, the control instruction sent by the master device to the target slave device may include the master device's configuration information. After receiving this control instruction, the target slave device may modify its own configuration information based on the master device's configuration information in the control instruction, so that the target slave device's configuration information is identical to that of the master device.
[0074] It can be understood that if the target slave device is currently in slave mode, the above control instruction can be used to instruct the target slave device to enter slave mode. If the target slave device is currently not in slave mode, the above control instruction can be used to instruct the target slave device to switch to slave mode.
[0075] Furthermore, as an optional implementation, the master device can receive the execution result of the above-mentioned control instruction sent by the target slave device, and perform Mesh networking with the target slave device when the above-mentioned execution result indicates that the target slave device has entered the slave device mode. It can be understood that this can pre-instruct the target slave device to enter the slave device mode, and then perform Mesh networking when the target slave device enters the slave device mode. Therefore, the operation of instructing the target slave device to enter the slave device mode after initiating the networking request is avoided, so that the master device can directly perform Mesh networking with the target slave device, thereby improving the efficiency of Mesh networking between the master device and the target slave device.
[0076] In this embodiment, the master device sends a control instruction to the target slave device, which can instruct the target slave device to enter the slave mode through the control instruction. In the slave mode, the configuration information of the target slave device is the same as the configuration information of the master device, and the target permission in the target slave device is closed. This facilitates the Mesh networking between the master device and the determined target slave device, thereby improving the efficiency of the Mesh networking between the master device and the determined target slave device.
[0077] In one embodiment, as shown in FIG6 , a Mesh networking method is provided. The method is described by taking the application of the Mesh-enabled device in FIG1 as an example, including the following steps:
[0078] S501, receiving a request message broadcast by a master device; the request message is broadcast by the master device in response to a networking request; the request message includes a target field; the target field is used to search for devices supporting Mesh within a preset range.
[0079] Among them, the networking request is a request for establishing a Mesh network. Optionally, the networking request can be triggered on the main device when the user needs a larger range of network coverage, or it can be triggered autonomously by the main device when the main device detects that the wireless connection signal of the terminal is weak.
[0080] In this embodiment, after detecting a networking request, the master device responds to the networking request by broadcasting a request message to a preset range around the master device. The devices within the preset range around the master device receive the request message sent by the master device, wherein the request message includes a target field, which is a predefined field for searching for devices that support Mesh within the preset range. Optionally, in this embodiment, the device that receives the request message broadcast by the master device may be a device within the preset range around the master device, or may be multiple devices within the preset range around the master device, which is not limited in this embodiment. Optionally, the message list included in the request message broadcast by the received master device may be as shown in Table 1 above. In addition, the request message may also be constructed according to the structure shown in Figure 3. For an explanation of the message list and message structure, please refer to the description in step S201, which will not be repeated in this embodiment.
[0081] S502 : Send response information to the master device based on the request message, where the response information is used to instruct the master device to determine a target slave device from at least one device based on the response information, and perform Mesh networking with the target slave device.
[0082] In this embodiment, after receiving the above-mentioned request message, the devices within the preset range around the master device will send response information to the master device based on the received request message. The response information can instruct the master device to determine the target slave device from at least one device within the preset range based on the response information, and perform Mesh networking with the determined target slave device.
[0083] Optionally, in this embodiment, the response information returned by devices within a preset range around the master device may include at least one of the following: identification information, location information, model information, and configuration information of the device. It should be noted that, at this point, no network communication connection is established between the master device and the devices within the preset range. The master device and the devices within the preset range can communicate using a communication protocol supported by both, such as Bluetooth. In other words, in this embodiment, devices within the preset range around the master device can send response information to the master device using a communication protocol supported by both the master device and themselves.
[0084] Optionally, after the master device receives the response information returned by at least one device within a preset range, the master device itself can determine the target slave device from at least one device that sends the response information, or the master device can display the received response information to the user, obtain the target slave device selection instruction triggered by the user based on the response information, determine the target slave device according to the selection instruction, and then start the process of Mesh networking with the determined target slave device, and perform Mesh networking with the target slave device. Exemplarily, taking the example of the master device itself determining the target slave device from at least one device that sends response information, if the response information returned by at least one device within the preset range around the master device includes configuration information, the master device can determine the unconfigured device as the target slave device based on the configuration information of at least one device within the preset range around the master device; for another example, if the response information returned by at least one device within the preset range around the master device includes location information, the master device can determine the device closest to the master device as the target slave device based on the location information of at least one device within the preset range around the master device; for another example, if the response information returned by at least one device within the preset range around the master device includes identification information, the master device can determine the device with the same identification as its own as the target slave device based on the identification information of at least one device within the preset range around the master device; for another example, if the response information returned by at least one device within the preset range around the master device includes model information, the master device can determine the device with the same model as its own as the target slave device based on the model information of at least one device within the preset range around the master device.
[0085] In the above-mentioned Mesh networking method, devices within a preset range around the master device can send a response message to the master device based on the received request message by receiving a request message broadcast by the master device in response to a networking request, including a target field for searching for devices that support Mesh within the preset range, instructing the master device to determine a target slave device from at least one device within the preset range based on the response information and to perform Mesh networking with the target slave device. Since the target slave device is determined mainly through communication and interaction between the master device and at least one device within the preset range in this process, user participation in the Mesh networking process is avoided, the discovery of the Mesh network and the user's operation of the master and slave devices in the networking process are simplified, that is, the operation of starting the Mesh networking process is simplified; in addition, during the Mesh networking process, there is no need for the slave device to enable a password-free hotspot, which avoids other devices logging into the slave device's network and improves the security of the Mesh network.
[0086] In some scenarios, before the target slave device can form a Mesh network with the master device, it is necessary for the target slave device to enter the slave mode. Only after the target slave device enters the slave mode can the Mesh network be formed. In one embodiment, as shown in FIG7 , the above method further includes:
[0087] S601: Receive a control instruction sent by a master device.
[0088] S602, in response to the control instruction, entering the slave device mode; wherein, in the slave device mode, the configuration information of the target slave device is the same as the configuration information of the master device, and the target permission in the target slave device is closed.
[0089] It should be noted that in a Mesh network, the configuration information of the slave device is the same as that of the master device, and the slave device can only allow other devices to join but does not have Internet access permissions. In other words, the target permission of the target slave device in this embodiment refers to the Internet access permission of the target slave device.
[0090] In this embodiment, after receiving a control instruction from the master device, the target slave device is instructed to enter slave mode via the control instruction. This means that the target slave device is instructed to modify its own configuration information to be identical to that of the master device and to disable its own target permissions. Optionally, in this embodiment, the control instruction sent by the master device to the target slave device may include the master device's configuration information. After receiving the control instruction, the target slave device may modify its own configuration information based on the master device's configuration information in the control instruction, so that the target slave device's configuration information is identical to that of the master device.
[0091] It can be understood that if the target slave device is currently in slave mode, the above control instruction can be used to instruct the target slave device to enter slave mode. If the target slave device is currently not in slave mode, the above control instruction can be used to instruct the target slave device to switch to slave mode.
[0092] Furthermore, as an optional implementation, the target slave device can send the execution result of the above-mentioned control instruction to the master device, so that the master device can perform Mesh networking with the target slave device when the above-mentioned execution result indicates that the target slave device has entered the slave device mode. It can be understood that this can pre-instruct the target slave device to enter the slave device mode, and then the Mesh networking is performed when the target slave device enters the slave device mode. Therefore, the operation of instructing the target slave device to enter the slave device mode after initiating the networking request is avoided, so that the master device can directly perform Mesh networking with the target slave device, thereby improving the efficiency of Mesh networking between the master device and the target slave device.
[0093] In this embodiment, the target slave device can respond to the control instruction sent by the master device and enter the slave device mode. In the slave device mode, the configuration information of the target slave device is the same as the configuration information of the master device, and the target authority in the target slave device is closed. This facilitates the Mesh networking between the master device and the determined target slave device, thereby improving the efficiency of the Mesh networking between the master device and the determined target slave device.
[0094] To facilitate understanding by those skilled in the art, the following detailed description of the Mesh networking method provided by the present disclosure is provided in conjunction with FIG8 . The method may include:
[0095] S1: The master device responds to the networking request triggered by the user and broadcasts a request message; the request message includes a target field; the target field is used to search for devices that support Mesh within a preset range.
[0096] S2: The master device receives response information returned by at least one device based on the request message.
[0097] S3. The master device obtains identification information of at least one device from the response information.
[0098] S4. The master device displays identification information of at least one device.
[0099] S5. The master device obtains selection information triggered by the user based on identification information of at least one device.
[0100] S6: The master device determines a target slave device from at least one device according to the selection information.
[0101] S7, the master device sends a control instruction to the target slave device.
[0102] S8, the target slave device enters the slave mode in response to the control instruction; wherein, in the slave mode, the configuration information of the target slave device is the same as the configuration information of the master device, and the target permission in the target slave device is closed.
[0103] S9, the target slave device sends the execution result of the control instruction to the master device.
[0104] S10, the master device receives the execution result of the control instruction sent by the target slave device.
[0105] S11 , when the execution result indicates that the target slave device has entered the slave mode, the master device performs Mesh networking with the target slave device.
[0106] It should be noted that for the description of the above steps, reference can be made to the relevant description in the above embodiment, and the effects are similar, so this embodiment will not be repeated here.
[0107] It should be understood that, although the steps in the flowcharts of the above embodiments are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flowcharts of the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0108] Based on the same inventive concept, the present application also provides a Mesh networking device for implementing the aforementioned Mesh networking method. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of one or more Mesh networking device embodiments provided below can be found in the above-mentioned limitations of the Mesh networking method and will not be repeated here.
[0109] In one embodiment, as shown in FIG9 , a Mesh networking device is provided, including: a broadcast module 10 , a first receiving module 11 , and a determining module 12 , wherein:
[0110] The broadcast module 10 is used to broadcast a request message in response to a networking request; the request message includes a target field; the target field is used to search for devices that support Mesh within a preset range.
[0111] The first receiving module 11 is configured to receive response information returned by at least one device based on the request message.
[0112] The determination module 12 is configured to determine a target slave device from at least one device based on the response information, and perform Mesh networking with the target slave device.
[0113] The Mesh networking device provided in this embodiment can execute the above method embodiment shown in Figure 2. Its implementation principle and technical effects are similar and will not be repeated here.
[0114] Based on the above embodiment, as shown in FIG10 , optionally, the above determination module 12 includes: an acquisition unit 121 and a determination unit 122 , wherein:
[0115] The acquiring unit 121 is configured to acquire identification information of at least one device from the response information.
[0116] The determining unit 122 is configured to determine a target slave device from at least one device according to identification information of at least one device.
[0117] The Mesh networking device provided in this embodiment can execute the above method embodiment. Its implementation principles and technical effects are similar and will not be repeated here.
[0118] Based on the above embodiment, optionally, the above determination unit 122 is used to display identification information of at least one device; obtain selection information triggered by the user based on the identification information of at least one device displayed; and determine a target slave device from at least one device according to the selection information.
[0119] The Mesh networking device provided in this embodiment can execute the above method embodiment shown in Figure 4. Its implementation principles and technical effects are similar and will not be repeated here.
[0120] Based on the above embodiment, as shown in FIG11 , optionally, the apparatus further includes a sending module 13 , wherein:
[0121] The sending module 13 is used to send a control instruction to the target slave device; the control instruction is used to instruct the target slave device to enter the slave device mode; wherein, in the slave device mode, the configuration information of the target slave device is the same as the configuration information of the master device, and the target permission in the target slave device is closed.
[0122] Based on the above embodiment, as shown in FIG12 , optionally, the above apparatus further includes: a second receiving module 14, wherein:
[0123] The second receiving module 14 is used to receive the execution result of the control instruction sent by the target slave device;
[0124] The determining module 12 is configured to perform Mesh networking with the target slave device when the execution result indicates that the target slave device has entered the slave mode.
[0125] Each module in the aforementioned Mesh networking device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a computer device's memory in software form, so that the processor can call and execute the corresponding operations of each module.
[0126] Based on the same inventive concept, the present application also provides a Mesh networking device for implementing the aforementioned Mesh networking method. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of one or more Mesh networking device embodiments provided below can be found in the above-mentioned limitations of the Mesh networking method and will not be repeated here.
[0127] In one embodiment, as shown in FIG13 , a Mesh networking device is provided, including: a first receiving module 20 and a first sending module 21 , wherein:
[0128] The first receiving module 20 is used to receive a request message broadcast by the master device; the request message is broadcast by the master device in response to a networking request; the request message includes a target field; the target field is used to search for devices that support Mesh within a preset range.
[0129] The first sending module 21 is used to send response information to the master device based on the request message, where the response information is used to instruct the master device to determine a target slave device from at least one device based on the response information and perform Mesh networking with the target slave device.
[0130] The Mesh networking device provided in this embodiment can execute the above method embodiment shown in Figure 6. Its implementation principle and technical effects are similar and will not be repeated here.
[0131] Based on the above embodiment, as shown in FIG14 , optionally, the above apparatus further includes: a second receiving module 22 and a responding module 23 , wherein:
[0132] The second receiving module 22 is configured to receive a control instruction sent by the master device.
[0133] The response module 23 is configured to enter the slave device mode in response to the control instruction; wherein, in the slave device mode, the configuration information of the target slave device is the same as the configuration information of the master device, and the target permission in the target slave device is closed.
[0134] The Mesh networking device provided in this embodiment can execute the above method embodiment shown in Figure 7. Its implementation principle and technical effects are similar and will not be repeated here.
[0135] Based on the above embodiment, as shown in FIG15 , optionally, the above apparatus further includes: a second sending module 24, wherein:
[0136] The second sending module 24 is configured to send the execution result of the control instruction to the master device.
[0137] Each module in the aforementioned Mesh networking device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a computer device's memory in software form, so that the processor can call and execute the corresponding operations of each module.
[0138] In one embodiment, a device is provided, which may be a wireless router, and its internal structure diagram may be shown in Figure 16. The device includes a processor, memory, a transceiver, an input / output interface, a communication interface, a display unit, and an input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals via wired or wireless means, and the wireless means may be implemented via Wi-Fi, a mobile cellular network, NFC (near field communication), or other technologies. When executed by the processor, the computer program implements a mesh networking method. The display unit of the device is used to form a visually visible image and may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the device casing, or an external keyboard, touchpad or mouse.
[0139] Those skilled in the art will understand that the structure shown in Figure 16 is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0140] The present application also provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, cause the processors to perform the steps of the Mesh networking method.
[0141] An embodiment of the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the Mesh networking method.
[0142] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.
[0143] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0144] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that variations and improvements are possible within the scope of the present invention, without departing from the spirit of the present invention. These variations and improvements are within the scope of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.
Claims
1. A Mesh networking method, applied to a master device, characterized in that: include: In response to the networking request, a request message is broadcasted; The request message includes a target field, and the target field is used to search for devices supporting Mesh within a preset range; Receiving response information returned by at least one device based on the request message; Based on the response information, a target slave device is determined from the at least one device, and Mesh networking is performed with the target slave device.
2. The method according to claim 1, characterized in that The request message includes multiple TLV groups, and any one of the multiple TLV groups includes the target field.
3. The method according to claim 1 or 2, characterized in that: The response information includes at least one of identification information, location information, model information, and configuration information of the device.
4. The method according to claim 3, characterized in that The step of determining a target slave device from the at least one device based on the response information includes: Acquire identification information of the at least one device from the response information; The target slave device is determined from the at least one device according to the identification information of the at least one device.
5. The method according to claim 4, characterized in that The step of determining the target slave device from the at least one device according to the identification information of the at least one device includes: According to the identification information of the at least one device, a device with the same identification information as the own device among the at least one device is determined as the target slave device.
6. The method according to claim 4, characterized in that The step of determining the target slave device from the at least one device according to the identification information of the at least one device includes: Displaying identification information of the at least one device; Acquire selection information triggered by the user based on identification information of the at least one device; The target slave device is determined from the at least one device according to the selection information.
7. The method according to claim 6, characterized in that The displaying of identification information of the at least one device includes: Forming an identification information list with the identification information of the at least one device; The identification information of the at least one device is displayed in the form of the identification information list.
8. The method according to claim 1 or 2, characterized in that: The method further comprises: A control instruction is sent to the target slave device, wherein the control instruction is used to instruct the target slave device to enter a slave device mode; wherein, in the slave device mode, the configuration information of the target slave device is the same as the configuration information of the master device, and the target permission in the target slave device is closed.
9. The method according to claim 8, characterized in that The method further comprises: receiving an execution result of the control instruction sent by the target slave device; The performing Mesh networking with the target slave device includes: When the execution result indicates that the target slave device enters the slave device mode, Mesh networking is performed with the target slave device.
10. The method according to claim 1, characterized in that The receiving response information returned by at least one device based on the request message includes: The response information returned by the at least one device based on the request message is received through a communication protocol supported by the device itself and the devices within the preset range.
11. The method according to claim 10, characterized in that The communication protocol includes a Bluetooth communication protocol.
12. A Mesh networking method, applied to a device supporting Mesh, characterized in that: include: Receive the request message broadcast by the master device; The request message includes a target field, which is used to search At least one device that supports Mesh within the preset range; Send response information to the master device based on the request message, where the response information is used to instruct the master device to determine a target slave device from at least one device based on the response information, and perform Mesh networking with the target slave device.
13. The method according to claim 12, characterized in that The method further comprises: Receiving a control instruction sent by the master device; In response to the control instruction, a slave device mode is entered; wherein, in the slave device mode, the configuration information of the target slave device is the same as the configuration information of the master device, and the target permission in the target slave device is closed.
14. The method according to claim 13, characterized in that The control instruction includes configuration information of the master device, and the step of entering the slave device mode in response to the control instruction includes: In response to the control instruction, the configuration information of the slave device is modified according to the configuration information of the master device, and the slave device mode is entered.
15. The method according to claim 14, characterized in that The method further comprises: An execution result of the control instruction is sent to the master device, where the execution result is used to instruct the master device to perform Mesh networking with the target slave device when the execution result indicates that the target slave device enters the slave mode.
16. A Mesh networking device, characterized in that: include: A broadcast module, used for broadcasting a request message in response to a networking request; The request message includes a target field; The target field is used to search for devices that support Mesh within a preset range; A first receiving module, configured to receive response information returned by at least one device based on the request message; The determination module is used to determine a target slave device from the at least one device based on the response information, and perform Mesh networking with the target slave device.
17. A Mesh networking device, characterized in that: include: A first receiving module, used for receiving a request message broadcast by a master device; The request message is broadcast by the master device in response to a networking request; The request message includes a target field; The target field is used to search for devices that support Mesh within a preset range; The first sending module is used to send response information to the master device based on the request message, and the response information is used to instruct the master device to determine a target slave device from at least one device based on the response information, and to perform Mesh networking with the target slave device.
18. A device comprising a memory, a processor and a transceiver, wherein a computer program is stored in the memory, characterized in that: When the computer program is executed by the processor, the processor executes the steps of the Mesh networking method according to any one of claims 1 to 15.
19. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 15 are implemented.
20. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 15 are implemented.
Citation Information
Patent Citations
A virtualization accessing method and apparatus
CN104703211A
Fusion networking method, device and system and computer readable storage medium
CN113132958A
Bluetooth network access method, related device and storage medium
CN114710823A
Connectionless Wi-Fi Mesh Communication
US20140003286A1
Cited By
Communication method and apparatus
WO2026118800A1
