Networking method and apparatus for wireless device

By setting the device role of the current device as the main device after the trigger condition is met, and broadcasting detection frames and management frames to other devices, the simultaneous networking between multiple mesh devices is realized, and the problems of low network efficiency and time-consuming in the existing technology are solved.

WO2025130553A1PCT designated stage expired Publication Date: 2025-06-26SHENZHEN SKYWORTH DIGITAL TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/135501
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-19
Filing Date
2024-11-29
Publication Date
2025-06-26

AI Technical Summary

Technical Problem

The existing EasyMesh technology has problems of inefficiency and time-consuming in the networking process between multiple devices, especially when more than 2 devices are networked at the same time.

Method used

After the trigger condition is met, the device role of the current device is set as the main device, and the detection frame and management frame are broadcast to other devices, automatic channel switching and network connection of multiple devices to be networked can be realized.

Benefits of technology

The simultaneous networking between multiple mesh devices is realized, which improves the efficiency and reliability of networking, and solves the problem that multiple mesh devices cannot simultaneous networking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024135501_26062025_PF_FP_ABST
    Figure CN2024135501_26062025_PF_FP_ABST
Patent Text Reader

Abstract

The present application is applicable in the technical field of wireless communications. Provided are a networking method and apparatus for a wireless device, and a terminal device. The networking method comprises: after a trigger condition is met, setting the device character of the current device to be a controller; broadcasting a detection frame to other devices; receiving response frames that have preset identifiers and are returned by the other devices on the basis of the broadcast detection frame; and using, as devices to be networked, the other devices respectively corresponding to a plurality of response frames; and broadcasting a management frame to the other devices, wherein information in the management frame comprises networking information. By means of the above steps, simultaneous networking among a plurality of mesh devices is realized. The controller is responsible for coordinating the other devices to join a network and performing detection and management by means of broadcasting frames. The preset identifiers are used for identifying the devices to be networked, and the networking information is used for ensuring that the devices to be networked can be connected to a network of the controller. The technical problem of it being impossible to simultaneously network the plurality of mesh devices is solved, thereby improving the efficiency and reliability of networking.
Need to check novelty before this filing date? Find Prior Art

Description

A wireless device networking method and device

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on December 19, 2023, with application number 202311762507.6, and invention name “A networking method and device for wireless devices”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application belongs to the technical field of wireless networks, and in particular to a networking method and apparatus for wireless devices. Background Art

[0003] EasyMesh is a wireless networking technology based on the IEEE 802.11s standard. It enables automatic connection between multiple wireless devices, forming a wireless network with wider coverage and improved performance. The core of EasyMesh technology is the division of device roles into master devices (Controllers) and slave devices (Agents). The master device manages and controls the entire network topology, while slave devices communicate with the master and other slave devices to expand the network's coverage.

[0004] There are generally two ways to pair EasyMesh products on the market: wired or WPS. WPS pairing involves pressing the WPS button on both the master and slave devices to wirelessly pair them. The slave device can then be added to the network through the master device's management interface. The advantage of WPS networking is that it eliminates the constraints of network cables and space, allowing for network pairing with just the push of a button. However, its disadvantage is that only two devices can be networked simultaneously. If more than two devices press WPS, network pairing fails, and networking multiple devices sequentially is very time-consuming.

[0005] In summary, the inventors realized that how to achieve rapid networking between multiple devices has become a technical problem that needs to be solved urgently. Summary of the Invention

[0006] In view of this, the embodiments of the present application provide a wireless device networking method, apparatus, terminal device, and computer-readable storage medium to solve the technical problem of how to achieve rapid networking between multiple devices.

[0007] A first aspect of an embodiment of the present application provides a networking method for wireless devices, the networking method being applied to a master device, the networking method including:

[0008] After the trigger condition is met, the device role of the current device is set to the master device;

[0009] Broadcasting a detection frame to other devices; the detection frame is used to detect whether there is a device to be networked, and control the device to be networked to switch the current channel to the target channel where the master device is located;

[0010] receiving a response frame having a preset identifier returned by the other device according to the broadcast request frame; the preset identifier is used to indicate whether the other device is in a waiting state for networking;

[0011] Using other devices corresponding to each of the plurality of response frames as the devices to be networked;

[0012] Broadcast a management frame to other devices; the information in the management frame includes networking information; the networking information is used to instruct the device to be networked to connect to the master device, including a network name and password.

[0013] Furthermore, the trigger condition includes detecting a pairing instruction or detecting that the current device is connected to a wired network.

[0014] Furthermore, the information in the detection frame includes the channel information and identification character of the master device; the channel information is used to control the other devices to switch to the target channel, and the identification character is used to identify devices of the same type.

[0015] Furthermore, the identification characters include a manufacturer number.

[0016] Furthermore, the information in the management frame also includes a device information list corresponding to a plurality of the devices to be networked; the device information list is used to control the connection between the specified devices to be networked and the master device.

[0017] Furthermore, the step of using the other devices corresponding to the plurality of response frames as the devices to be networked includes:

[0018] screening target other devices whose signal strength is greater than a threshold among the plurality of other devices;

[0019] The target other device is used as the device to be networked.

[0020] A second aspect of an embodiment of the present application provides a networking method for wireless devices, the networking method being applied to a slave device, the networking method comprising:

[0021] Receive a detection frame sent by the master device, and switch the current channel to the target channel where the master device is located according to the detection frame;

[0022] Sending a response frame with a preset identifier to the master device; the preset identifier is used to indicate whether the other device is in a waiting state for networking;

[0023] Receive the management frame sent by the master device, and connect to the master device according to the networking information in the management frame.

[0024] Furthermore, the step of receiving a management frame sent by the master device and connecting to the master device according to the networking information in the management frame includes:

[0025] Receive a management frame sent by the master device, and obtain a device information list in the management frame;

[0026] If the slave device is matched in the device information list, it is connected to the master device according to the networking information in the management frame.

[0027] Furthermore, the step of receiving a detection frame sent by the master device and switching the current channel to the target channel where the master device is located according to the detection frame includes:

[0028] Receive the detection frame sent by the master device;

[0029] If the power-on duration of the slave device does not exceed the preset duration, the current channel is switched to the target channel where the master device is located according to the detection frame.

[0030] Furthermore, the information in the detection frame includes an identification character, and the identification character is used to identify devices of the same type;

[0031] If the power-on duration of the slave device does not exceed the preset duration, the step of switching the current channel to the target channel of the master device according to the detection frame includes:

[0032] If the power-on duration of the slave device does not exceed the preset duration, and the identification character in the detection frame is the same as the identification character stored locally, the current channel is switched to the target channel of the master device according to the detection frame.

[0033] A third aspect of the embodiments of the present application provides a networking system for wireless devices, the networking system comprising a master device and multiple slave devices;

[0034] The master device is configured to set the device role of the current device to the master device after a trigger condition is met;

[0035] The master device is configured to broadcast a detection frame to other devices; the detection frame is configured to detect whether there is a device to be networked, and to control the device to be networked to switch the current channel to the target channel where the master device is located;

[0036] The slave device is configured to receive a detection frame sent by the master device and switch a current channel to a target channel where the master device is located according to the detection frame;

[0037] The slave device is configured to send a response frame with a preset identifier to the master device; the preset identifier is used to indicate whether the other device is in a waiting state for networking;

[0038] The master device is configured to receive a response frame having a preset identifier returned by the other device in response to the broadcast request frame; the preset identifier is used to indicate whether the other device is in a waiting state for networking;

[0039] The master device is configured to use other devices corresponding to each of the plurality of response frames as the devices to be networked;

[0040] The master device is configured to broadcast a management frame to other devices; the information in the management frame includes networking information; the networking information is configured to instruct the device to be networked to connect to the master device, including a network name and password;

[0041] The slave device is configured to receive the management frame sent by the master device and connect to the master device according to the networking information in the management frame.

[0042] Furthermore, the trigger condition includes detecting a pairing instruction or detecting that the current device is connected to a wired network.

[0043] Furthermore, the information in the detection frame includes the channel information and identification character of the master device; the channel information is used to control the other devices to switch to the target channel, and the identification character is used to identify devices of the same type.

[0044] A fourth aspect of the embodiments of the present application provides a networking apparatus for wireless devices, including:

[0045] A setting unit, configured to set the device role of the current device to the master device after a trigger condition is met;

[0046] A first broadcast unit is configured to broadcast a detection frame to other devices; the detection frame is configured to detect whether there is a device to be networked, and to control the device to be networked to switch a current channel to a target channel where the master device is located;

[0047] A first receiving unit is configured to receive a response frame having a preset identifier returned by the other device according to the broadcast request frame; the preset identifier is used to indicate whether the other device is in a waiting state for networking;

[0048] A selection unit, configured to select other devices corresponding to each of the plurality of response frames as the devices to be networked;

[0049] The second broadcast unit is used to broadcast a management frame to other devices; the information in the management frame includes networking information; the networking information is used to instruct the device to be networked to connect to the main device, including a network name and password.

[0050] A fifth aspect of the embodiments of the present application provides a networking apparatus for wireless devices, including:

[0051] a second receiving unit, configured to receive a detection frame sent by the master device, and switch a current channel to a target channel where the master device is located according to the detection frame;

[0052] a sending unit, configured to send a response frame with a preset identifier to the master device; the preset identifier is used to indicate whether the other device is in a waiting state for networking;

[0053] The third receiving unit is configured to receive a management frame sent by the master device and connect to the master device according to the networking information in the management frame.

[0054] The sixth aspect of an embodiment of the present application provides a main device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect when executing the computer program.

[0055] The seventh aspect of an embodiment of the present application provides a slave device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the second aspect when executing the computer program.

[0056] An eighth aspect of an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0057] A ninth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0058] Compared with the prior art, the present embodiment has the following advantages: after a trigger condition is met, the present embodiment sets the device role of the current device to the master device; broadcasts a detection frame to other devices; the detection frame is used to detect the presence of a device to be networked and control the device to be networked to switch its current channel to the target channel of the master device; receives a response frame with a preset identifier returned by the other device in response to the broadcast request frame; the preset identifier is used to indicate whether the other device is in a networked state; the other device corresponding to each of the multiple response frames is designated as the device to be networked; and broadcasts a management frame to the other devices; the information in the management frame includes networking information; the networking information indicates that the device to be networked is connected to the master device, including the network name and password. Through these steps, simultaneous networking among multiple mesh devices is achieved. The master device is responsible for coordinating the joining of other devices to the network and performing detection and management via broadcast frames. The preset identifier is used to identify the device to be networked, and the networking information ensures that the device to be networked can connect to the master device's network. This solves the technical problem of multiple mesh devices being unable to network simultaneously, improving networking efficiency and reliability.

[0059] The details of one or more embodiments of the disclosure are set forth in the accompanying drawings and the description below, and other features and advantages of the disclosure will be apparent from the description, the drawings, and the claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0061] FIG1 is a schematic flow chart showing the overall networking logic of a networking method for wireless devices provided in the present application;

[0062] FIG2 shows a schematic flow chart of a networking method for wireless devices provided in the present application;

[0063] FIG3 shows a schematic flow chart of a networking method for wireless devices provided in the present application;

[0064] FIG4 shows a schematic diagram of a networking device for wireless devices provided by the present application;

[0065] FIG5 shows a schematic diagram of a networking device for wireless devices provided by the present application;

[0066] FIG6 shows a schematic diagram of a master device provided by an embodiment of the present application;

[0067] FIG7 shows a schematic diagram of a master device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0068] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.

[0069] The embodiments of the present application provide a wireless device networking method, apparatus, terminal device, and computer-readable storage medium to solve the technical problem of how to achieve rapid networking between multiple devices.

[0070] First, the present application provides a networking system for wireless devices, the networking system including a master device and multiple slave devices;

[0071] Master device, used to set the device role of the current device to the master device after the trigger condition is met;

[0072] The master device is configured to broadcast a detection frame to other devices; the detection frame is used to detect whether there is a device to be networked and control the device to be networked to switch the current channel to the target channel where the master device is located;

[0073] The slave device is configured to receive a detection frame sent by the master device and switch a current channel to a target channel where the master device is located according to the detection frame;

[0074] The slave device is configured to send a response frame with a preset identifier to the master device; the preset identifier is used to indicate whether the other device is in a waiting state for networking;

[0075] A master device, configured to receive a response frame having a preset identifier returned by the other device in response to the broadcast request frame; the preset identifier is used to indicate whether the other device is in a waiting state for networking;

[0076] The master device is configured to use other devices corresponding to the plurality of response frames as the devices to be networked;

[0077] The master device is configured to broadcast a management frame to other devices; the information in the management frame includes networking information; the networking information is configured to instruct the device to be networked to connect to the master device, including a network name and password;

[0078] The slave device is configured to receive the management frame sent by the master device and connect to the master device according to the networking information in the management frame.

[0079] To better illustrate the networking logic between a master device and multiple slave devices in a networking system, the networking logic is specifically described herein in conjunction with an overall flowchart. Please refer to FIG1 , which shows a schematic flowchart of the overall networking logic of a wireless device networking method provided by the present application. As shown in FIG1 , after a trigger condition is met, the master device sets the device role of the current device to the master device. The master device broadcasts a detection frame to multiple slave devices n. Multiple slave devices n each receive the detection frame broadcast by the master device. After multiple slave devices n determine that the master device and the current device are of the same type based on the identification characters in the detection frame (to prevent non-mesh devices from mistakenly connecting to the master device), they each switch their current channel to the target channel of the master device based on the channel information in the detection frame. Multiple slave devices n each send a response frame with a preset identifier to the master device. The master device screens response frames with signal strength greater than a threshold, and identifies the other devices corresponding to each of the multiple response frames with signal strength greater than the threshold as the devices to be networked. It then broadcasts a management frame to the multiple slave devices n. If multiple slave devices n are listed in the device information list in the management frame, they connect to the master device based on the networking information in the management frame.

[0080] The networking system provided in this embodiment sets the device role of the current device to the master device after a trigger condition is met; broadcasts a detection frame to other devices; the detection frame is used to detect the presence of a device to be networked and control the device to be networked to switch its current channel to the target channel of the master device; receives a response frame with a preset identifier returned by the other device in response to the broadcast request frame; the preset identifier is used to indicate whether the other device is in a networked state; the other device corresponding to each of the multiple response frames is designated as the device to be networked; and broadcasts a management frame to the other devices; the information in the management frame includes networking information; the networking information indicates that the device to be networked is connected to the master device, including the network name and password. Through these steps, simultaneous networking among multiple mesh devices is achieved. The master device is responsible for coordinating the joining of other devices to the network and performing detection and management through broadcast frames. The preset identifier is used to identify the device to be networked, and the networking information ensures that the device to be networked can connect to the master device's network. This solves the technical problem of multiple mesh devices being unable to network simultaneously, improving networking efficiency and reliability.

[0081] Secondly, this application provides a method for networking wireless devices, which is applied to a master device. Please refer to Figure 2, which shows a schematic flow chart of a method for networking wireless devices provided by this application. As shown in Figure 2, the method for networking wireless devices may include the following steps:

[0082] Step 201: After the trigger condition is met, the device role of the current device is set to the master device;

[0083] The triggering conditions include, but are not limited to, the main device being connected to the Internet or receiving a WPS (Wi-Fi Protected Setup) instruction triggered by the user.

[0084] After selecting a device, the user connects the Internet to the selected device or presses the WPS switch, and the selected device sets its device role to a slave device.

[0085] Step 202: Broadcast a detection frame to other devices; the detection frame is used to detect whether there is a device to be networked, and control the device to be networked to switch the current channel to the target channel where the master device is located;

[0086] Since the master device needs to scan nearby mesh devices (devices to be networked), it broadcasts detection frames to other devices.

[0087] Specifically, the probe frame contains information about the master device's channel and an identifier. The channel information is used to control other devices switching to the target channel, and the identifier is used to identify devices of the same type. Identifiers include, but are not limited to, vendor IDs and other characters that distinguish devices of the same type. This means that networking can only proceed if the vendor IDs of the master and slave devices are identical. This means that networking of multiple devices is limited to MESH devices from the same vendor.

[0088] As you can understand, in real-world environments, there may be a variety of different network devices. To prevent misconnections between devices from different manufacturers or different types and the master device, the vendor ID is used to verify probe frames transmitted between devices, ensuring that probe frames are only processed by slave devices from the same manufacturer. In other words, the vendor ID is used to screen devices to be networked in real-world environments. Network devices from the same manufacturer all have a pre-stored vendor ID.

[0089] After receiving a probe frame, the slave device first compares the vendor ID in the probe frame with its locally stored vendor ID. If the vendor ID in the probe frame and the locally stored vendor ID do not match, the slave device discards the probe frame. If the vendor ID in the probe frame and the locally stored vendor ID match, the slave device switches its current channel to the master device's target channel based on the channel information in the probe frame.

[0090] Step 203: receiving a response frame having a preset identifier returned by the other device in response to the broadcast request frame; the preset identifier is used to indicate whether the other device is in a waiting state for networking;

[0091] After switching its current channel to the master's target channel, the slave device encapsulates an identification character (manufacturer ID) and a preset "to be paired" flag in a response frame and sends the response frame to the master, indicating that it is a slave device from the same manufacturer. The manufacturer ID in the response frame also allows the master to verify that it is from the same manufacturer as the device in question. Using the manufacturer ID limits communicating parties to network devices from the same manufacturer, preventing misconnections.

[0092] After receiving the response frame, the master device obtains the identification character (manufacturer ID) in the response frame. If the manufacturer ID in the response frame is the same as the manufacturer ID in the local device, the subsequent steps are executed. If the manufacturer ID in the response frame is different from the manufacturer ID in the local device, the response frame is discarded.

[0093] Step 204: using the other devices corresponding to the plurality of response frames as the devices to be networked;

[0094] The master device extracts the preset identifier of "to be paired" in the response frame, and uses other devices corresponding to the response frame with the preset identifier of "to be paired" as devices to be networked.

[0095] Specifically, step 204 includes steps 2041 to 2042:

[0096] Step 2041: Filter target other devices whose signal strength is greater than a threshold among the multiple other devices.

[0097] In order to ensure the communication quality of the mesh network, it is necessary to ensure the communication signal strength between multiple mesh devices. Therefore, this embodiment selects target other devices with signal strength greater than a threshold from multiple other devices.

[0098] Step 2042: Use the target other device as the device to be networked.

[0099] It is worth noting that after receiving the response frame, the master device needs to perform three checks or processing: 1) Determine whether to process the response frame based on the manufacturer ID; 2) Determine whether to regard the corresponding device as a device to be networked based on whether the response frame contains the preset "to be paired" mark; 3) Screen the devices to be networked based on the signal strength of the device sending the response frame.

[0100] Step 205: Broadcast a management frame to other devices; the information in the management frame includes networking information; the networking information is used to instruct the device to be networked to connect to the master device, including a network name and password.

[0101] After identifying multiple devices to be networked, the master device aggregates their information to create a device information list. The device information list and networking information are encapsulated in a management frame. The device information list indicates to nearby devices which devices can connect to the master device, thereby controlling the connection between the devices and the master device based on the networking information. Networking information includes, but is not limited to, a single piece of information, such as a network name and password, or a combination of multiple pieces of information.

[0102] In this embodiment, after a trigger condition is met, the current device is set to the master device role; a detection frame is broadcast to other devices; the detection frame is used to detect the presence of a device to be networked and control the device to switch its current channel to the target channel of the master device; a response frame with a preset identifier is received from the other device in response to the broadcast request frame; the preset identifier indicates whether the other device is in a network-ready state; the other device corresponding to each of the multiple response frames is designated as the device to be networked; and a management frame is broadcast to the other devices; the information in the management frame includes networking information, which indicates the connection between the device to be networked and the master device, including the network name and password. Through these steps, simultaneous networking among multiple mesh devices is achieved. The master device is responsible for coordinating the joining of other devices to the network and performing detection and management via broadcast frames. The preset identifier is used to identify the device to be networked, while the networking information ensures that the device to be networked can connect to the master device's network. This solves the technical problem of multiple mesh devices being unable to network simultaneously, improving networking efficiency and reliability.

[0103] Next, the present application provides a method for networking a wireless device, which is applied to a slave device. Referring to FIG3 , FIG3 shows a schematic flow chart of a method for networking a wireless device provided by the present application. As shown in FIG3 , the method for networking a wireless device may include the following steps:

[0104] Step 301: Receive a detection frame sent by a master device, and switch the current channel to the target channel where the master device is located according to the detection frame;

[0105] The master device broadcasts a detection frame to surrounding devices. The slave devices receive the detection frame and switch the current channel to the target channel according to the channel information in the detection frame.

[0106] Specifically, step 301 includes steps 3011 to 3014:

[0107] Step 3011: Receive a detection frame sent by the master device;

[0108] Step 3012: If the power-on duration of the slave device does not exceed the preset duration, the current channel is switched to the target channel where the master device is located according to the detection frame.

[0109] When users network multiple devices, they often power on all of them and begin networking operations, often leaving them in a freshly powered-on state. Devices that have been powered on for longer than a certain amount of time are often considered non-networking devices. Therefore, this embodiment utilizes this natural law to filter devices for networking based on power-on time.

[0110] Specifically, step 3012 specifically includes: if the power-on duration of the slave device does not exceed the preset duration, and the identification character in the detection frame is the same as the identification character stored locally, then switching the current channel to the target channel of the master device according to the detection frame.

[0111] Because a variety of network devices may exist in real-world environments, to prevent misconnections between devices from different manufacturers or different types and the master device, the probe frames transmitted between devices are verified using an identifier (manufacturer ID) so that they are processed only by slave devices from the same manufacturer. The manufacturer ID is used to filter devices to be networked in real-world environments. Network devices from the same manufacturer all have a pre-stored manufacturer ID.

[0112] When it is determined that the power-on time of the slave device exceeds the preset time and the identification character check passes, the current channel is switched to the target channel of the master device according to the detection frame.

[0113] Optionally, after step 301, the process further includes converting the device role to a slave device.

[0114] Step 302: Sending a response frame with a preset identifier to the master device; the preset identifier is used to indicate whether the other device is in a waiting state for networking;

[0115] After switching its current channel to the master's target channel, the slave device encapsulates a response frame containing the preset "to be paired" identifier and an identifier (vendor ID) and sends it to the master, indicating that it is a slave device from the same manufacturer. The vendor ID in the response frame also allows the master to verify that it is from the same manufacturer as the device in question. Using the vendor ID limits communicating parties to network devices from the same manufacturer, preventing misconnections.

[0116] Step 303: Receive the management frame sent by the master device, and connect to the master device according to the networking information in the management frame.

[0117] The network information includes but is not limited to the network name and password. The slave device establishes a connection with the master device based on the network information in the management frame.

[0118] Specifically, step 303 includes steps 3031 to 3032:

[0119] Step 3031: Receive the management frame sent by the master device, and obtain the device information list in the management frame.

[0120] Step 3032: If the slave device is matched in the device information list, connect to the master device according to the networking information in the management frame.

[0121] In order to instruct a designated slave device to connect to the master device, the master device compiles information of multiple slave devices into a device information list, so that the slave device can determine whether it can connect to the master device based on the device information list.

[0122] It's important to note that the slave device uses different logic to determine whether to process a probe frame or a management frame. After receiving a probe frame, the slave device uses the vendor ID to determine whether to process it. After receiving a management frame, the slave device uses the device information list to determine whether to process it.

[0123] In this embodiment, a detection frame sent by a master device is received, and the current channel is switched to the target channel where the master device is located according to the detection frame; a response frame with a preset identifier is sent to the master device; the preset identifier is used to indicate whether the other devices are in a state to be networked; a management frame sent by the master device is received, and the master device is connected according to the networking information in the management frame. Through the above steps, simultaneous networking between multiple mesh devices is achieved. The master device is responsible for coordinating other devices to join the network and performing detection and management through broadcast frames. The preset identifier is used to identify the device to be networked, and the networking information ensures that the device to be networked can connect to the network of the master device. This solves the technical problem that multiple mesh devices cannot be networked at the same time, and improves the efficiency and reliability of networking.

[0124] As shown in FIG4 , the present application provides a networking device 4 for wireless devices. Please refer to FIG4 , which shows a schematic diagram of a networking device for wireless devices provided by the present application. As shown in FIG4 , a networking device for wireless devices includes:

[0125] A setting unit 41 is configured to set the device role of the current device to a master device after a trigger condition is met;

[0126] The first broadcast unit 42 is configured to broadcast a detection frame to other devices; the detection frame is used to detect whether there is a device to be networked and control the device to be networked to switch the current channel to the target channel where the master device is located;

[0127] The first receiving unit 43 is configured to receive a response frame having a preset identifier returned by the other device according to the broadcast request frame; the preset identifier is used to indicate whether the other device is in a waiting state for networking;

[0128] The selection unit 44 is configured to select other devices corresponding to the plurality of response frames as the devices to be networked;

[0129] The second broadcast unit 45 is used to broadcast a management frame to other devices; the information in the management frame includes networking information; the networking information is used to instruct the device to be networked to connect to the master device, including a network name and password.

[0130] The present application provides a wireless device networking device. This device sets the device role of the current device to the master device after a trigger condition is met; broadcasts a probe frame to other devices, wherein the probe frame detects the presence of a device to be networked and controls the device to switch its current channel to the target channel of the master device; receives a response frame with a preset identifier returned by the other device in response to the broadcast request frame, wherein the preset identifier indicates whether the other device is in a network-ready state; identifies the other device corresponding to each of the multiple response frames as the device to be networked; and broadcasts a management frame to the other devices, wherein the management frame contains networking information, including a network name and password, indicating that the device to be networked is connected to the master device. Through these steps, simultaneous networking among multiple mesh devices is achieved. The master device coordinates the joining of other devices to the network and performs detection and management via broadcast frames. The preset identifier identifies the device to be networked, while the networking information ensures that the device to be networked can connect to the master device's network. This device solves the technical problem of multiple mesh devices being unable to network simultaneously, thereby improving networking efficiency and reliability.

[0131] As shown in FIG5 , the present application provides a networking device 5 of a wireless device. Please refer to FIG5 , which shows a schematic diagram of a networking device of a wireless device provided by the present application. As shown in FIG5 , a networking device of a wireless device includes:

[0132] The second receiving unit 51 is configured to receive a detection frame sent by the master device, and switch the current channel to the target channel where the master device is located according to the detection frame;

[0133] The sending unit 52 is configured to send a response frame with a preset identifier to the master device; the preset identifier is used to indicate whether the other device is in a waiting state for networking;

[0134] The third receiving unit 53 is configured to receive a management frame sent by the master device and connect to the master device according to the networking information in the management frame.

[0135] The present application provides a networking device for wireless devices, which receives a detection frame sent by a master device, switches the current channel to the target channel where the master device is located according to the detection frame; sends a response frame with a preset identifier to the master device; the preset identifier is used to indicate whether the other devices are in a state to be networked; receives a management frame sent by the master device, and connects to the master device according to the networking information in the management frame. Through the above steps, simultaneous networking between multiple mesh devices is achieved. The master device is responsible for coordinating other devices to join the network and performing detection and management through broadcast frames. The preset identifier is used to identify the device to be networked, and the networking information ensures that the device to be networked can connect to the network of the master device. The technical problem that multiple mesh devices cannot be networked at the same time is solved, and the efficiency and reliability of networking are improved.

[0136] Figure 6 is a schematic diagram of a terminal device provided in one embodiment of the present application. As shown in Figure 6, the terminal device 6 of this embodiment includes: a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60, such as a program for networking wireless devices. When the processor 60 executes the computer program 62, it implements the steps in the aforementioned embodiments of the method for networking wireless devices, such as steps 201 to 205 shown in Figure 2. Alternatively, when the processor 60 executes the computer program 62, it implements the functions of the various units in the aforementioned apparatus embodiments, such as the functions of units 41 to 45 shown in Figure 4.

[0137] Exemplarily, the computer program 62 may be divided into one or more units, which are stored in the memory 61 and executed by the processor 60 to implement the present application. The one or more units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 62 in the terminal device 6. For example, the specific functions of each unit of the computer program 62 may be as follows:

[0138] A setting unit, configured to set the device role of the current device to the master device after a trigger condition is met;

[0139] A first broadcast unit is configured to broadcast a detection frame to other devices; the detection frame is configured to detect whether there is a device to be networked, and to control the device to be networked to switch a current channel to a target channel where the master device is located;

[0140] A first receiving unit is configured to receive a response frame having a preset identifier returned by the other device according to the broadcast request frame; the preset identifier is used to indicate whether the other device is in a waiting state for networking;

[0141] A selection unit, configured to select other devices corresponding to each of the plurality of response frames as the devices to be networked;

[0142] The second broadcast unit is used to broadcast a management frame to other devices; the information in the management frame includes networking information; the networking information is used to instruct the device to be networked to connect to the main device, including a network name and password.

[0143] The terminal device includes, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will appreciate that FIG6 is merely an example of a terminal device 6 and does not limit the terminal device 6. The terminal device 6 may include more or fewer components than shown in the figure, or may combine certain components or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.

[0144] The processor 60 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0145] The memory 61 can be an internal storage unit of the terminal device 6, such as a hard disk or memory of the terminal device 6. The memory 61 can also be an external storage device of the terminal device 6, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 6. Furthermore, the memory 61 can also include both an internal storage unit of the terminal device 6 and an external storage device. The memory 61 is used to store the computer program and other programs and data required by the roaming control device. The memory 61 can also be used to temporarily store data that has been output or is to be output.

[0146] Figure 7 is a schematic diagram of a terminal device provided in one embodiment of the present application. As shown in Figure 7, the terminal device 7 of this embodiment includes: a processor 70, a memory 71, and a computer program 72 stored in the memory 71 and executable on the processor 70, such as a program for networking a wireless device. When the processor 70 executes the computer program 72, it implements the steps in the aforementioned embodiments of the method for networking a wireless device, such as steps 301 to 303 shown in Figure 3. Alternatively, when the processor 70 executes the computer program 72, it implements the functions of the various units in the aforementioned apparatus embodiments, such as the functions of units 51 to 53 shown in Figure 5.

[0147] Exemplarily, the computer program 72 may be divided into one or more units, which are stored in the memory 71 and executed by the processor 70 to complete the present application. The one or more units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 72 in the terminal device 7. For example, the specific functions of each unit of the computer program 72 may be as follows:

[0148] A setting unit, configured to set the device role of the current device to the master device after a trigger condition is met;

[0149] a second receiving unit, configured to receive a detection frame sent by the master device, and switch a current channel to a target channel where the master device is located according to the detection frame;

[0150] a sending unit, configured to send a response frame with a preset identifier to the master device; the preset identifier is used to indicate whether the other device is in a waiting state for networking;

[0151] The third receiving unit is configured to receive a management frame sent by the master device and connect to the master device according to the networking information in the management frame.

[0152] The terminal device includes, but is not limited to, a processor 70 and a memory 71. Those skilled in the art will appreciate that FIG7 is merely an example of a terminal device 7 and does not limit the terminal device 7. The terminal device 7 may include more or fewer components than shown in the figure, or may combine certain components or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.

[0153] The processor 70 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0154] The memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or memory of the terminal device 7. The memory 71 may also be an external storage device of the terminal device 7, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 7. Furthermore, the memory 71 may include both an internal storage unit and an external storage device of the terminal device 7. The memory 71 is used to store the computer program and other programs and data required by the roaming control device. The memory 71 may also be used to temporarily store data that has been output or is to be output.

[0155] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0156] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of this application. Their specific functions and technical effects can be found in the method embodiment section and will not be repeated here.

[0157] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0158] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned various method embodiments can be implemented.

[0159] An embodiment of the present application provides a computer program product. When the computer program product is run on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned various method embodiments when executing the computer program product.

[0160] If the integrated unit is implemented as a software functional unit and sold or used as a standalone product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process steps in the above-mentioned method embodiments by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed by a processor, the computer program can implement the steps of each of the above-mentioned method embodiments. The computer program includes computer program code, which can be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a camera / terminal device, a recording medium, computer memory, read-only memory (ROM), random access memory (RAM), an electric carrier signal, a telecommunications signal, and a software distribution medium. Examples include a USB flash drive, a removable hard drive, a magnetic disk, or an optical disk. In some jurisdictions, based on legislation and patent practice, computer-readable media cannot be electric carrier signals or telecommunications signals.

[0161] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0162] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0163] In the embodiments provided in this application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely illustrative. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0164] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, and may be located in one place or distributed across multiple network units.

[0165] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.

[0166] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0167] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to monitoring," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is monitored" can be interpreted as meaning "upon determination" or "in response to determining" or "upon monitoring [described condition or event]" or "in response to monitoring [described condition or event]," depending on the context.

[0168] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0169] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0170] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A method for networking wireless devices, wherein: The networking method is applied to a master device, and the networking method includes: After the trigger condition is met, the device role of the current device is set to the master device; Broadcasting a detection frame to other devices; the detection frame is used to detect whether there is a device to be networked, and control the device to be networked to switch the current channel to the target channel where the master device is located; receiving a response frame having a preset identifier returned by the other device according to the broadcast request frame; the preset identifier is used to indicate whether the other device is in a waiting networking state; Using other devices corresponding to each of the plurality of response frames as the devices to be networked; Broadcast management frames to other devices; the information in the management frames includes networking information; the networking information is used to indicate that the device to be networked is connected to the main device, including a network name and a password.

2. The wireless device networking method according to claim 1, wherein: The trigger condition includes detecting a pairing instruction or detecting that the current device is connected to a wired network.

3. The wireless device networking method according to claim 1, wherein: The information in the detection frame includes the channel information and identification character of the master device; the channel information is used to control the other devices to switch to the target channel, and the identification character is used to identify the same type of devices.

4. The networking method of wireless devices according to claim 1, wherein: The identification characters include a manufacturer number.

5. The networking method of wireless devices according to claim 1, wherein: The information in the management frame also includes a device information list corresponding to the plurality of devices to be networked; the device information list is used to control the connection between the designated device to be networked and the master device.

6. The wireless device networking method according to claim 1, wherein: The step of using the other devices corresponding to the plurality of response frames as the devices to be networked includes: Selecting target other devices whose signal strength is greater than a threshold value from among the plurality of other devices; The target other device is used as the device to be networked.

7. A method for networking wireless devices, wherein: The networking method is applied to a slave device, and the networking method includes: Receive a detection frame sent by the master device, and switch the current channel to the target channel where the master device is located according to the detection frame; Sending a response frame with a preset identifier to the master device; the preset identifier is used to indicate whether other devices are in a waiting networking state; Receive the management frame sent by the master device, and connect to the master device according to the networking information in the management frame.

8. The wireless device networking method according to claim 7, wherein: The step of receiving the management frame sent by the master device and connecting with the master device according to the networking information in the management frame comprises: Receive a management frame sent by the master device, and obtain a device information list in the management frame; If the slave device is matched in the device information list, the slave device is connected to the master device according to the networking information in the management frame.

9. The wireless device networking method according to claim 7, wherein: The step of receiving a detection frame sent by the master device and switching the current channel to the target channel where the master device is located according to the detection frame comprises: Receive the detection frame sent by the master device; If the power-on time of the slave device does not exceed the preset time, the current channel is switched to the target channel where the master device is located according to the detection frame.

10. The wireless device networking method according to claim 9, wherein: The information in the detection frame includes an identification character, and the identification character is used to identify devices of the same type; If the power-on duration of the slave device does not exceed the preset duration, the step of switching the current channel to the target channel where the master device is located according to the detection frame includes: If the power-on duration of the slave device does not exceed the preset duration, and the identification character in the detection frame is the same as the identification character stored locally, the current channel is switched to the target channel where the master device is located according to the detection frame.

11. The wireless device networking method according to claim 7, wherein: After the step of receiving the detection frame sent by the master device and switching the current channel to the target channel where the master device is located according to the detection frame, the method further includes: Set the device role of the current device to slave.

12. A wireless device networking system, wherein: The networking system includes a master device and multiple slave devices; The master device is used to set the device role of the current device to the master device after the trigger condition is met; The master device is used to broadcast a detection frame to other devices; the detection frame is used to detect whether there is a device to be networked, and control the device to be networked to switch the current channel to the target channel where the master device is located; The slave device is used to receive the detection frame sent by the master device, and switch the current channel to the target channel where the master device is located according to the detection frame; The slave device is used to send a response frame with a preset identifier to the master device; The preset identifier is used to indicate whether the other device is in a state of waiting for networking; The master device is configured to receive a response frame having a preset identifier returned by the other device according to the broadcast request frame; The preset identifier is used to indicate whether the other device is in a state of waiting for networking; The master device is used to use other devices corresponding to each of the plurality of response frames as the devices to be networked; The master device is used to broadcast a management frame to other devices; the information in the management frame includes networking information; the networking information is used to indicate that the device to be networked is connected to the master device, including a network name and a password; The slave device is used to receive the management frame sent by the master device and connect to the master device according to the networking information in the management frame.

13. The wireless device networking system according to claim 12, wherein: The trigger condition includes detecting a pairing instruction or detecting that the current device is connected to a wired network.

14. The networking system of wireless devices according to claim 12, wherein: The information in the detection frame includes the channel information and identification character of the master device; the channel information is used to control the other devices to switch to the target channel, and the identification character is used to identify the same type of devices.

15. A networking device for wireless devices, wherein: The networking device comprises: A setting unit, used to set the device role of the current device to the master device after the trigger condition is met; A first broadcast unit, configured to broadcast a detection frame to other devices; the detection frame is used to detect whether there is a device to be networked, and to control the device to be networked to switch a current channel to a target channel where the master device is located; A first receiving unit, configured to receive a response frame having a preset identifier returned by the other device according to the broadcast request frame; the preset identifier is used to indicate whether the other device is in a waiting networking state; A selection unit, configured to select other devices corresponding to each of the plurality of response frames as the devices to be networked; The second broadcast unit is used to broadcast a management frame to other devices; the information in the management frame includes networking information; the networking information is used to indicate that the device to be networked is connected to the main device, including a network name and a password.

16. A networking device for wireless devices, wherein: The networking device comprises: A second receiving unit, configured to receive a detection frame sent by the master device, and switch a current channel to a target channel where the master device is located according to the detection frame; A sending unit, used to send a response frame with a preset identifier to the master device; the preset identifier is used to indicate whether the other device is in a waiting state for networking; The third receiving unit is used to receive the management frame sent by the master device and connect to the master device according to the networking information in the management frame.

17. A host device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

18. A slave device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 7 to 11 are implemented.

19. A computer-readable storage medium storing a computer program, wherein: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

20. A computer-readable storage medium storing a computer program, wherein: When the computer program is executed by a processor, the steps of the method according to any one of claims 7 to 11 are implemented.

Citation Information

Patent Citations

  • Equipment network access method and device, network device and storage medium

    CN110740460A

  • Automatic networking opening method based on Mesh and related equipment

    CN113950010A

  • Mesh networking method and device for multiple devices and readable storage medium

    CN114302433A

  • Mesh networking method and device and storage medium

    CN117082533A

  • Networking method and device of wireless equipment

    CN117715084A