Wireless connection establishment method and device, electronic device, and storage medium
The first Mesh device sends a detection request and establishes a communication connection with the second Mesh device, and automatically obtains user configuration information, solving the repetition and error problems of user manual configuration in the wireless Mesh network, and realizing automated wireless network access.
Patent Information
- Application Number
- CN202110982674.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-25
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2041-08-25
AI Technical Summary
In wireless Mesh networking, the prior art requires users to manually configure user configuration information for each Mesh device, which has high repetition of operations, affects user experience and is prone to errors.
If the user configuration information is not configured, the first Mesh device automatically obtains the user configuration information from the second Mesh device to access the wireless network by sending a detection request carrying the identification, and listening in the beacon message, and establishing a communication connection.
This simplifies the manual participation of Mesh devices to access wireless networks, reduces user labor, and avoids the problem of manual configuration errors.
Smart Images

Figure CN113727462B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technologies, and in particular to a method for establishing a wireless connection, a device for establishing a wireless connection, an electronic device, and a computer-readable storage medium. Background Art
[0002] Wireless mesh networking has experienced rapid growth in recent years, and driven by various manufacturers, it has gradually become a common wireless feature. Mesh networking simplifies the configuration experience of multiple devices for greater coverage and provides users with a better wireless roaming experience across multiple routers.
[0003] However, when networking through Mesh devices, users are required to manually input configurations for each Mesh device, resulting in high repetitive operations and affecting the user experience. Summary of the Invention
[0004] The present disclosure provides a wireless connection establishment method, a wireless connection establishment device, an electronic device, and a computer-readable storage medium to address deficiencies in related technologies.
[0005] According to a first aspect of an embodiment of the present disclosure, a method for establishing a wireless connection is proposed, which is applicable to a first Mesh device. The method includes: when the first Mesh device is not configured with user configuration information, sending a probe request on at least one channel, wherein the probe request carries an identifier of the first Mesh device; when a beacon message is monitored on the at least one channel, if the beacon message carries the identifier of the first Mesh device, establishing a communication connection with a second Mesh device that sends the beacon message; receiving user configuration information from the second Mesh device through the communication connection; and accessing a wireless network according to the user configuration information.
[0006] In one embodiment, the method further includes: setting the identifier of the first Mesh device in the probe request according to a first agreed format; and / or determining the identifier of the first Mesh device in the beacon message according to a second agreed format.
[0007] In one embodiment, when a beacon message is monitored on the at least one channel, if the beacon message carries the identifier of the first Mesh device, establishing a communication connection with the second Mesh device that sends the beacon message includes: when a beacon message is monitored on the at least one channel, if the beacon message carries the identifier of the first Mesh device and the identifier of the second Mesh device that sends the beacon message, determining whether the identifier of the second Mesh device matches the device identifier in the device identifier library; if they match, establishing a communication connection with the second Mesh device that sends the beacon message.
[0008] In one embodiment, establishing a communication connection with the second Mesh device that sends the beacon message includes: establishing a wireless temporary connection with the second Mesh device; obtaining the IP address of the second Mesh device through the wireless temporary connection; and establishing a communication connection with the second Mesh device based on the IP address.
[0009] In one embodiment, accessing the wireless network according to the user configuration information includes: obtaining a backhaul network key from the user configuration information; and connecting to a backhaul network access point of the second Mesh device according to the backhaul network key to access the wireless network to which the second Mesh device is connected.
[0010] In one embodiment, the method further includes: detecting whether user configuration information exists in the first Mesh device; when user configuration information does not exist in the first Mesh device, or when user configuration information exists in the first Mesh device and the existing user configuration information does not meet a preset condition, determining that the first Mesh device is not configured with user configuration information.
[0011] In one embodiment, the preset condition includes at least one of the following: the time interval between the configuration time of the existing user configuration information and the current time is greater than a preset time length;
[0012] The distance between the wireless network to which the existing user configuration information applies and the current location of the first Mesh device is greater than a preset distance.
[0013] According to a second aspect of an embodiment of the present disclosure, a method for establishing a wireless connection is proposed, which is applicable to a second Mesh device. The method includes: when the second Mesh device has been configured with user configuration information, listening for a probe request on a current working channel; if the identifier of the first Mesh device carried in the monitored probe request matches the device identifier in a device identifier library, sending a beacon message on the current working channel, wherein the beacon message carries the identifier of the first Mesh device; establishing a communication connection with the first Mesh device, and sending the user configuration information to the second Mesh device through the communication connection; and establishing a wireless connection with the first Mesh device based on the user configuration information.
[0014] In one embodiment, the method further includes: determining the identifier of the first Mesh device in the probe request according to a first agreed format; and / or setting the identifier of the first Mesh device in the beacon message according to a second agreed format.
[0015] In one embodiment, the beacon message also carries an identifier of the second Mesh device.
[0016] In one embodiment, establishing a communication connection with the first Mesh device includes: establishing a wireless temporary connection with the first Mesh device; sending the IP address of the second Mesh device to the first Mesh device through the wireless temporary connection; and establishing a communication connection with the first Mesh device.
[0017] In one embodiment, the user configuration information carries a backhaul network key, and establishing a wireless connection with the first Mesh device based on the user configuration information includes: connecting the backhaul network access point of the second Mesh device and the first Mesh device based on the backhaul network key to establish a wireless connection with the first Mesh device.
[0018] According to a third aspect of an embodiment of the present disclosure, a wireless connection establishment device is provided, including:
[0019] a request sending module, configured to send a probe request on at least one channel when the first Mesh device is not configured with user configuration information, wherein the probe request carries an identifier of the first Mesh device;
[0020] a connection establishing module configured to, when a beacon message is monitored on the at least one channel, establish a communication connection with a second Mesh device that sends the beacon message if the beacon message carries an identifier of the first Mesh device;
[0021] a configuration receiving module, configured to receive user configuration information from the second Mesh device through the communication connection;
[0022] The network access module is configured to access the wireless network according to the user configuration information.
[0023] According to a fourth aspect of an embodiment of the present disclosure, a wireless connection establishment device is provided, including:
[0024] a request monitoring module, configured to monitor a detection request on a current working channel when the second Mesh device has been configured with user configuration information;
[0025] a message sending module, configured to send a beacon message on the current working channel when the identifier of the first Mesh device carried in the monitored probe request matches the device identifier in the device identifier library, wherein the beacon message carries the identifier of the first Mesh device;
[0026] a configuration sending module, configured to establish a communication connection with the first Mesh device and send the user configuration information to the second Mesh device through the communication connection;
[0027] The connection establishment module is configured to establish a wireless connection with the first Mesh device according to the user configuration information.
[0028] According to a fifth aspect of an embodiment of the present disclosure, an electronic device is proposed, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the above method.
[0029] According to a sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps in the above method are implemented.
[0030] According to the embodiments of the present disclosure, the user no longer needs to manually configure user configuration information for the first mesh device. Instead, the first mesh device can automatically obtain user configuration information from the second mesh device and automatically connect to the wireless network based on the user configuration information. This greatly simplifies the manual intervention required for mesh devices to connect to the wireless network, helps reduce user workload, and avoids errors that can occur when manually configuring user configuration information.
[0031] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0033] Figure 1 It is a schematic flowchart of a method for establishing a wireless connection according to an embodiment of the present disclosure.
[0034] Figure 2 It is a schematic flow chart of another method for establishing a wireless connection according to an embodiment of the present disclosure.
[0035] Figure 3 It is a schematic flowchart of another method for establishing a wireless connection according to an embodiment of the present disclosure.
[0036] Figure 4 It is a schematic flowchart of another method for establishing a wireless connection according to an embodiment of the present disclosure.
[0037] Figure 5 It is a schematic flowchart of a method for establishing a wireless connection according to an embodiment of the present disclosure.
[0038] Figure 6 It is a schematic flow chart of another method for establishing a wireless connection according to an embodiment of the present disclosure.
[0039] Figure 7 It is a schematic flowchart of another method for establishing a wireless connection according to an embodiment of the present disclosure.
[0040] Figure 8 It is a module diagram of a Mesh device according to an embodiment of the present disclosure.
[0041] Figure 9 3 is a schematic diagram of the interaction between a first Mesh device and a second Mesh device according to an embodiment of the present disclosure.
[0042] Figure 10 This is a schematic block diagram of a device for establishing a wireless connection according to an embodiment of the present disclosure.
[0043] Figure 11 It is a schematic block diagram of another device for establishing a wireless connection according to an embodiment of the present disclosure.
[0044] Figure 12 It is a schematic block diagram of another apparatus for establishing a wireless connection according to an embodiment of the present disclosure.
[0045] Figure 13 This is a schematic block diagram of a device for establishing a wireless connection according to an embodiment of the present disclosure.
[0046] Figure 14 It is a schematic block diagram of another device for establishing a wireless connection according to an embodiment of the present disclosure.
[0047] Figure 15 It is a schematic block diagram of an apparatus for establishing a wireless connection according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0048] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
[0049] Figure 1 This is a schematic flow chart of a method for establishing a wireless connection according to an embodiment of the present disclosure. The wireless connection establishment method shown in this embodiment can be applied to a first Mesh device, where "first" does not specifically refer to a specific Mesh device, but is simply used to distinguish it from a subsequent second Mesh device. The first Mesh device and the second Mesh device are different Mesh devices.
[0050] The first Mesh device can access multiple networks as a node, such as Wi-Fi, Bluetooth and other networks. However, the first Mesh device needs to have some user configuration information to access the network. For example, to access the Wi-Fi network, the first Mesh device needs to have the Wi-Fi network password, SSID (Service Set Identifier), etc.
[0051] If the first Mesh device is not configured with user configuration information, the user needs to manually configure the user configuration information on the first Mesh device. However, when using the first Mesh device to expand the network architecture, a large number of first Mesh devices may need to be set up. This requires the user to configure the user configuration information for each first Mesh device, which causes a lot of repetitive work for the user, affects the user experience, and may also cause errors in manually configuring the user configuration information.
[0052] In order to solve the above technical problems, the present disclosure proposes a method for establishing a wireless connection, and exemplifies the implementation of the method through some embodiments.
[0053] like Figure 1 As shown, the wireless connection establishment method may include the following steps:
[0054] In step S101, when the first Mesh device is not configured with user configuration information, a probe request is sent on at least one channel, wherein the probe request carries an identifier of the first Mesh device;
[0055] In step S102, when a beacon message is monitored on the at least one channel, if the beacon message carries the identifier of the first Mesh device, a communication connection is established with the second Mesh device that sent the beacon message;
[0056] In step S103, user configuration information is received from the second Mesh device through the communication connection;
[0057] In step S104, access a wireless network according to the user configuration information.
[0058] In one embodiment, the first Mesh device can determine whether it has been configured with user configuration information, wherein the user configuration information may be associated with the network to which the first Mesh device is applicable. For example, if the first Mesh device is applicable to accessing a Wi-Fi network, the user configuration information includes but is not limited to the Wi-Fi network password and SSID; for example, if the first Mesh device is applicable to accessing a Bluetooth network, the user configuration information includes but is not limited to the Bluetooth network password.
[0059] How the first Mesh device determines whether it has been configured with user configuration information will be described in subsequent embodiments.
[0060] In one embodiment, when the first Mesh device determines that it has not been configured with user configuration information, it can send a Probe Request on at least one channel, where the at least one channel is a channel pre-agreed by the protocol. The Probe Request can carry an identifier of the first Mesh device.
[0061] It should be noted that the action of the first Mesh device sending a probe request on at least one channel can be performed simultaneously on each channel or sequentially, and the specific setting can be set as needed. For example, for n (n>1) channels, the first Mesh device can first send a probe request on the first channel, then send a channel probe request on the second channel, and so on, and finally send a channel probe request on the nth channel. The first Mesh device can also send probe requests on n channels simultaneously.
[0062] Similarly, in subsequent embodiments, the action of monitoring the beacon message on the at least one channel may also be performed on each channel together or sequentially, which will not be described in detail.
[0063] In one embodiment, when a second Mesh device configured with user configuration information exists, the second Mesh device can monitor on the current operating channel. It should be noted that the second Mesh device can also monitor on multiple channels. However, since the second Mesh device has been configured with user configuration information, it is already connected to the network and communicating. Monitoring on multiple channels may affect the current communication. Therefore, as an optional implementation, monitoring is performed on the current operating channel to avoid affecting the current communication and ensure the quality of the current communication.
[0064] When the second Mesh device monitors the probe request, it can determine the identifier of the first Mesh device carried in the probe request, and try to match the identifier of the first Mesh device with the device identifiers in the device identifier library stored in the second Mesh device.
[0065] If there is a match, for example, the identifier of the first Mesh device exists in the device identifier library stored in the second Mesh device, the second Mesh device can determine that the first Mesh device is a legitimate device, and thus can establish a connection with the first Mesh device.
[0066] Furthermore, the second Mesh device may add the identifier of the first Mesh device to the Beacon message, and send the Beacon message on the current working channel to indicate that it agrees to establish a connection with the first Mesh device.
[0067] In one embodiment, the first Mesh device can also monitor channel messages on the at least one channel. When a beacon message is monitored, it can be determined whether it carries the identifier of the first Mesh device. If the message carries the identifier of the first Mesh device, it means that the second Mesh device sending the beacon message agrees to establish a connection with the first Mesh device, then a communication connection can be established with the second Mesh device.
[0068] Then, the second Mesh device can send the user configuration information of the second Mesh device to the first Mesh device through the communication connection. After receiving the user configuration information, the first Mesh device can access the wireless network connected to the second Mesh device according to the user configuration information.
[0069] As can be seen, according to the embodiments of the present disclosure, the user no longer needs to manually configure user configuration information for the first Mesh device. Instead, the first Mesh device can automatically obtain the user configuration information from the second Mesh device and automatically connect to the wireless network based on the user configuration information. This greatly simplifies the manual intervention required for Mesh devices to connect to the wireless network, helps reduce user workload, and avoids errors that may occur when manually configuring user configuration information.
[0070] After the first Mesh device accesses the wireless network, it is already a Mesh device configured with user configuration information, so it can stop sending probe requests and perform the operations performed by the second Mesh device in subsequent embodiments, such as listening for probe requests on the working channel.
[0071] In addition, since the first Mesh device can send probe requests on multiple channels and listen to beacon messages on multiple channels, in some cases, the first Mesh device may listen to beacon messages on multiple channels.
[0072] When the first Mesh device monitors beacon messages on multiple channels respectively, the first Mesh device can select the second Mesh device corresponding to the channel with the best signal quality to establish a connection; further, the first Mesh device can also determine the type of wireless network accessed by different second Mesh devices sending different beacon messages. If the types of wireless networks accessed are the same, the second Mesh device corresponding to the channel with the best signal quality can still be selected to establish a connection. If the types of wireless networks accessed are different, connections can be established separately for the second Mesh devices accessing each type of wireless network.
[0073] In one embodiment, the method further includes: setting the identifier of the first Mesh device in the probe request according to a first agreed format; and / or determining the identifier of the first Mesh device in the beacon message according to a second agreed format.
[0074] When the first mesh device sets its own identifier in the probe request, it can operate according to the first agreed format to ensure that the identifier of the first mesh device is in the position specified by the first agreed format in the probe request. Therefore, after receiving the probe request, the second mesh device can determine the position in the probe request for setting the identifier of the first mesh device according to the first agreed format, and then quickly determine whether the identifier of the first mesh device is set in that position.
[0075] When the second mesh device sets the identifier of the first mesh device in the beacon message, it can operate according to the second agreed format to ensure that the identifier of the first mesh device is in the position specified by the second agreed format in the beacon message. Therefore, after receiving the beacon message, the first mesh device can determine the position in the probe request for setting the identifier of the first mesh device according to the second agreed format, and then quickly determine whether the identifier at that position is the identifier of the first mesh device.
[0076] Figure 2 FIG. 1 is a schematic flow chart of another method for establishing a wireless connection according to an embodiment of the present disclosure. Figure 2 As shown, when a beacon message is monitored on the at least one channel, if the beacon message carries the identifier of the first Mesh device, establishing a communication connection with the second Mesh device that sends the beacon message includes:
[0077] In step S201, when a beacon message is monitored on the at least one channel, if the beacon message carries the identifier of the first Mesh device and the identifier of the second Mesh device that sent the beacon message, determining whether the identifier of the second Mesh device matches a device identifier in a device identifier library;
[0078] In step S202, if there is a match, a communication connection is established with the second Mesh device that sent the beacon message.
[0079] In one embodiment, when the second Mesh device sets the identifier of the first Mesh device in the beacon message, it may also set the identifier of the first Mesh device itself in the beacon message so that the first Mesh device can determine whether the second Mesh device sending the beacon message is legitimate.
[0080] After receiving the beacon message, the first Mesh device can determine whether the beacon message contains the identifier of the second Mesh device that sent the beacon message in addition to the identifier of the first Mesh device. If the identifier of the second Mesh device exists, the first Mesh device can determine whether the identifier of the second Mesh device matches the device identifier in the device identifier library, for example, trying to match the identifier of the second Mesh device with the device identifier in the device identifier library stored in the first Mesh device.
[0081] If there is a match, for example, the identifier of the second Mesh device exists in the device identifier library stored in the first Mesh device, the first Mesh device can determine that the second Mesh device is a legitimate device, and thus can establish a communication connection with the second Mesh device.
[0082] Figure 3 FIG. 1 is a schematic flow chart of another method for establishing a wireless connection according to an embodiment of the present disclosure. Figure 3 As shown, establishing a communication connection with the second Mesh device that sends the beacon message includes:
[0083] In step S301, a temporary wireless connection is established with the second Mesh device;
[0084] In step S302, the IP address of the second Mesh device is obtained through the wireless temporary connection;
[0085] In step S303, a communication connection is established with the second Mesh device based on the IP address.
[0086] In one embodiment, the process of establishing a communication connection between a first Mesh device and a second Mesh device may mainly include three steps.
[0087] First, the first Mesh device establishes a temporary wireless connection with the second Mesh device using the WPS (Wi-Fi Protected Setup) protocol. Then, the first Mesh device obtains the IP address of the second Mesh device using the Dynamic Host Configuration Protocol (DHCP). The first Mesh device then establishes a communication connection with the second Mesh device based on the IP address. The established communication connection can be an encrypted communication connection, such as an SSL (Secure Sockets Layer) connection. Establishing an encrypted communication connection helps prevent the leakage of user configuration information when the second Mesh device sends it to the first Mesh device via the communication connection.
[0088] Figure 4 FIG. 1 is a schematic flow chart of another method for establishing a wireless connection according to an embodiment of the present disclosure. Figure 4 As shown, accessing a wireless network according to the user configuration information includes:
[0089] In step S401, a backhaul network key is obtained from the user configuration information;
[0090] In step S402, the backhaul network access point of the second Mesh device is connected according to the backhaul network key to access the wireless network to which the second Mesh device is connected.
[0091] In one embodiment, after being configured with user configuration information, the second Mesh device can start a backhaul network access point (AP) interface and generate a backhaul network key for other Mesh devices to use to access the wireless network.
[0092] When the second Mesh device sends user configuration information to the first Mesh device, it may carry the backhaul network key in the user configuration information and send it to the first Mesh device. The first Mesh device may use the backhaul network key to connect to the backhaul network access point of the second Mesh device.
[0093] For example, a first mesh device can send an access request to a second mesh device, including the backhaul network key for authentication by the second mesh device. After receiving the access request from the first mesh device, the second mesh device can determine whether the first mesh device is authenticated based on the key included in the request. For example, the second mesh device can calculate the hash value of its stored key and check whether it matches the hash value of the key in the access request. If so, the first mesh device is authenticated and is allowed to access the backhaul network access point.
[0094] Since the user configuration information in the second Mesh device has taken effect and the second Mesh device has accessed the wireless network, after the first Mesh device accesses the backhaul network access point of the second Mesh device, the user configuration information in the first Mesh device can also take effect, thereby accessing the wireless network.
[0095] The following describes how the first Mesh device determines whether it is configured with user configuration information through several embodiments.
[0096] In one embodiment, the method further comprises:
[0097] Detecting whether user configuration information exists in the first Mesh device;
[0098] When the user configuration information does not exist in the first Mesh device, or when the user configuration information exists in the first Mesh device and the existing user configuration information does not meet a preset condition, it is determined that the first Mesh device is not configured with the user configuration information.
[0099] In one embodiment, the first Mesh device may detect whether the user configuration information has been stored in the first Mesh device. If the user configuration information is not stored, it may be directly determined that the user configuration information is not configured.
[0100] In the case where the user configuration information is stored, it can be directly determined that the user configuration information has been configured, or it can be further determined whether the user configuration information meets a preset condition.
[0101] In some cases, after being used in one network, a first Mesh device can be transferred to another network for use. While user configuration information can be configured in each network, the user configuration information for each network can be different. Therefore, even if user configuration information exists in the first Mesh device, it may only be the user configuration information used when it was a node in the previous network and not applicable to the current network. Therefore, it is possible to determine whether the user configuration information meets the requirements by setting preset conditions. If the requirements are not met, that is, if the preset conditions are not met, it can still be determined that the first Mesh device has not been configured with user configuration information. This helps accurately determine whether the first Mesh device has been configured with user configuration information.
[0102] In one embodiment, the preset condition includes at least one of the following:
[0103] The time interval between the configuration time of the existing user configuration information and the current time is greater than the preset time interval;
[0104] The distance between the wireless network to which the existing user configuration information applies and the current location of the first Mesh device is greater than a preset distance.
[0105] In one embodiment, when the first Mesh device is configured with user configuration information, it can record the configuration time, and then when determining whether it has been configured with user configuration information, it can calculate the time interval between the current time and the configuration time. If the time interval is large, for example, greater than the preset duration, then it can be determined that the user configuration information has expired, and then it can be determined that the first Mesh device has not been configured with user configuration information.
[0106] In one embodiment, when the first Mesh device is configured with user configuration information, it can record the location of the wireless network to which the user configuration information applies. Then, when determining whether it has been configured with user configuration information, it can calculate the distance between the current location and the location of the wireless network. If the distance is large, for example, greater than a preset distance, then it can be determined that the user configuration information is no longer applicable to the network at the current location, and thus it can be determined that the first Mesh device has not been configured with user configuration information.
[0107] Figure 5 This is a schematic flow chart of a method for establishing a wireless connection according to an embodiment of the present disclosure. The wireless connection establishment method shown in this embodiment can be applied to a second Mesh device. The "second" does not specifically refer to a Mesh device, but is simply used to distinguish it from the first Mesh device configured with user configuration information. The first Mesh device and the second Mesh device are different Mesh devices.
[0108] like Figure 5 As shown, the wireless connection establishment method may include the following steps:
[0109] In step S501, if the second Mesh device has been configured with user configuration information, it listens for a probe request on the current working channel;
[0110] In step S502, if the identifier of the first Mesh device carried in the monitored probe request matches the device identifier in the device identifier library, a beacon message is sent on the current working channel, wherein the beacon message carries the identifier of the first Mesh device;
[0111] In step S503, a communication connection is established with the first Mesh device, and the user configuration information is sent to the second Mesh device through the communication connection;
[0112] In step S504, a wireless connection is established with the first Mesh device according to the user configuration information.
[0113] In one embodiment, the first Mesh device can determine whether it has been configured with user configuration information, wherein the user configuration information may be associated with the network to which the first Mesh device is applicable. For example, if the first Mesh device is applicable to accessing a Wi-Fi network, the user configuration information includes but is not limited to the Wi-Fi network password and SSID; for example, if the first Mesh device is applicable to accessing a Bluetooth network, the user configuration information includes but is not limited to the Bluetooth network password.
[0114] How the first Mesh device determines whether it has been configured with user configuration information will be described in subsequent embodiments.
[0115] In one embodiment, when the first Mesh device determines that it has not been configured with user configuration information, it can send a Probe Request on at least one channel, where the at least one channel is a channel pre-agreed by the protocol. The Probe Request can carry an identifier of the first Mesh device.
[0116] It should be noted that the action of the first Mesh device sending a probe request on at least one channel, and the subsequent action of listening for beacon messages on the at least one channel, can be performed sequentially on each channel. For example, for n (n>1) channels, the first Mesh device can first send a probe request on the first channel and continuously listen on the first channel for a period of time; then send a probe request on the second channel and continuously listen on the second channel for a period of time; and so on, finally send a channel probe request on the nth channel and continuously listen on the nth channel for a period of time.
[0117] In one embodiment, when a second Mesh device configured with user configuration information exists, the second Mesh device can monitor on the current operating channel. It should be noted that the second Mesh device can also monitor on multiple channels. However, since the second Mesh device has been configured with user configuration information, it is already connected to the network and communicating. Monitoring on multiple channels may affect the current communication. Therefore, as an optional implementation, monitoring is performed on the current operating channel to avoid affecting the current communication and ensure the quality of the current communication.
[0118] When the second Mesh device monitors the probe request, it can determine the identifier of the first Mesh device carried in the probe request, and try to match the identifier of the first Mesh device with the device identifiers in the device identifier library stored in the second Mesh device.
[0119] If there is a match, for example, the identifier of the first Mesh device exists in the device identifier library stored in the second Mesh device, the second Mesh device can determine that the first Mesh device is a legitimate device, and thus can establish a connection with the first Mesh device.
[0120] Furthermore, the second Mesh device may add the identifier of the first Mesh device to the Beacon message, and send the Beacon message on the current working channel to indicate that it agrees to establish a connection with the first Mesh device.
[0121] In one embodiment, the first Mesh device can also monitor channel messages on the at least one channel. When a beacon message is monitored, it can be determined whether it carries the identifier of the first Mesh device. If the message carries the identifier of the first Mesh device, it means that the second Mesh device sending the beacon message agrees to establish a connection with the first Mesh device, then a communication connection can be established with the second Mesh device.
[0122] Then, the second Mesh device can send the user configuration information of the second Mesh device to the first Mesh device through the communication connection. After receiving the user configuration information, the first Mesh device can access the wireless network connected to the second Mesh device according to the user configuration information.
[0123] As can be seen, according to the embodiments of the present disclosure, the user no longer needs to manually configure user configuration information for the first Mesh device. Instead, the first Mesh device can automatically obtain the user configuration information from the second Mesh device and automatically connect to the wireless network based on the user configuration information. This greatly simplifies the manual intervention required for Mesh devices to connect to the wireless network, helps reduce user workload, and avoids errors that may occur when manually configuring user configuration information.
[0124] After the first Mesh device accesses the wireless network, it is already a Mesh device configured with user configuration information, so it can stop sending probe requests and perform the operations performed by the second Mesh device in subsequent embodiments, such as listening for probe requests on the working channel.
[0125] In addition, since the first Mesh device can send probe requests on multiple channels and listen to beacon messages on multiple channels, in some cases, the first Mesh device may listen to beacon messages on multiple channels.
[0126] In one embodiment, the method further includes: determining the identifier of the first Mesh device in the probe request according to a first agreed format; and / or setting the identifier of the first Mesh device in the beacon message according to a second agreed format.
[0127] When the first mesh device sets its own identifier in the probe request, it can operate according to the first agreed format to ensure that the identifier of the first mesh device is in the position specified by the first agreed format in the probe request. Therefore, after receiving the probe request, the second mesh device can determine the position in the probe request for setting the identifier of the first mesh device according to the first agreed format, and then quickly determine whether the identifier of the first mesh device is set in that position.
[0128] When the second mesh device sets the identifier of the first mesh device in the beacon message, it can operate according to the second agreed format to ensure that the identifier of the first mesh device is in the position specified by the second agreed format in the beacon message. Therefore, after receiving the beacon message, the first mesh device can determine the position in the probe request for setting the identifier of the first mesh device according to the second agreed format, and then quickly determine whether the identifier at that position is the identifier of the first mesh device.
[0129] In one embodiment, the beacon message also carries the identifier of the second Mesh device. When the second Mesh device sets the identifier of the first Mesh device in the beacon message, it may also set its own identifier in the beacon message, so that the first Mesh device can determine whether the second Mesh device sending the beacon message is legitimate.
[0130] After receiving the beacon message, the first Mesh device can determine whether the beacon message contains the identifier of the second Mesh device that sent the beacon message in addition to the identifier of the first Mesh device. If the identifier of the second Mesh device exists, the first Mesh device can determine whether the identifier of the second Mesh device matches the device identifier in the device identifier library, for example, trying to match the identifier of the second Mesh device with the device identifier in the device identifier library stored in the first Mesh device.
[0131] If there is a match, for example, the identifier of the second Mesh device exists in the device identifier library stored in the first Mesh device, the first Mesh device can determine that the second Mesh device is a legitimate device, and thus can establish a communication connection with the second Mesh device.
[0132] Figure 6 FIG. 1 is a schematic flow chart of another method for establishing a wireless connection according to an embodiment of the present disclosure. Figure 6 As shown, establishing a communication connection with the first Mesh device includes:
[0133] In step S601, a temporary wireless connection is established with the first Mesh device;
[0134] In step S602, the IP address of the second Mesh device is sent to the first Mesh device through the wireless temporary connection;
[0135] In step S603, a communication connection is established with the first Mesh device.
[0136] In one embodiment, the process of establishing a communication connection between the second Mesh device and the first Mesh device may mainly include three steps.
[0137] First, the second Mesh device uses the WPS protocol to establish a wireless temporary connection with the first Mesh device; then, the first Mesh device obtains the IP address of the second Mesh device based on the Dynamic Host Configuration Protocol, and the second Mesh device sends the IP address of the second Mesh device to the first Mesh device through the wireless temporary connection; then, the first Mesh device establishes a communication connection with the second Mesh device based on the IP address, such as an SSL connection.
[0138] Establishing a communication connection helps to prevent leakage of user configuration information when the second Mesh device sends the user configuration information to the first Mesh device through the communication connection.
[0139] Figure 7 FIG. 1 is a schematic flow chart of another method for establishing a wireless connection according to an embodiment of the present disclosure. Figure 7 As shown, the user configuration information carries a backhaul network key, and establishing a wireless connection with the first Mesh device according to the user configuration information includes:
[0140] In step S701, a backhaul network access point of the second Mesh device is connected to the first Mesh device according to the backhaul network key to establish a wireless connection with the first Mesh device.
[0141] In one embodiment, after being configured with user configuration information, the second Mesh device can start a backhaul network access point (AP) interface and generate a backhaul network key for other Mesh devices to use to access the wireless network.
[0142] When the second Mesh device sends user configuration information to the first Mesh device, it may carry the backhaul network key in the user configuration information and send it to the first Mesh device. The first Mesh device may use the backhaul network key to connect to the backhaul network access point of the second Mesh device.
[0143] For example, a first mesh device can send an access request to a second mesh device, including the backhaul network key for authentication by the second mesh device. After receiving the access request from the first mesh device, the second mesh device can determine whether the first mesh device is authenticated based on the key included in the request. For example, the second mesh device can calculate the hash value of its stored key and check whether it matches the hash value of the key in the access request. If so, the first mesh device is authenticated and is allowed to access the backhaul network access point.
[0144] Since the user configuration information in the second Mesh device has taken effect and the second Mesh device has accessed the wireless network, after the first Mesh device accesses the backhaul network access point of the second Mesh device, the user configuration information in the first Mesh device can also take effect, thereby accessing the wireless network.
[0145] Figure 8 It is a module diagram of a Mesh device according to an embodiment of the present disclosure. Figure 9 3 is a schematic diagram of the interaction between a first Mesh device and a second Mesh device according to an embodiment of the present disclosure.
[0146] like Figure 8 As shown in the figure, a Mesh device can be provided with a detection module, an identification module, a connection module, and a configuration synchronization module. If the Mesh device has not been configured with user configuration information, such as the first Mesh device, the detection module can be enabled and the identification module disabled. If the Mesh device has been configured with user configuration information, such as the second Mesh device, the detection module can be disabled and the identification module enabled.
[0147] exist Figure 8 Based on the modules shown, the first Mesh device and the second Mesh device can be Figure 9 The process interactions shown are as follows Figure 9 As shown:
[0148] The first Mesh device sends a probe request on at least one channel through the detection module, where the probe request carries an identifier of the first Mesh device;
[0149] The second Mesh device continuously receives probe requests on the current working channel through the identification module. After receiving the probe request, it can determine whether the identifier of the first Mesh device matches the identifier in the device identifier library of the second Mesh device. If they match, it can send a beacon message on the current working channel, carrying the identifier of the first Mesh device in the beacon message;
[0150] The first Mesh device can monitor the beacon message through the detection module. When it determines that the beacon message contains the first Mesh device's own identifier, it can determine that the second Mesh device allows the first Mesh device to access the wireless network. Then, it can establish a communication connection with the connection module of the second Mesh device through the connection module. The first Mesh device first uses the WPS protocol to establish a temporary wireless connection with the second Mesh device; then the first Mesh device obtains the IP address of the second Mesh device based on the Dynamic Host Configuration Protocol; and then the first Mesh device establishes a communication connection with the second Mesh device based on the IP address.
[0151] The second mesh device sends the user configuration information to the configuration synchronization module of the first mesh device through the configuration synchronization module. The first mesh device saves and validates the user configuration information, disconnects the communication connection, establishes a backhaul connection, and thus accesses the wireless network. The first mesh device can also disable the detector module and enable the identification module.
[0152] Corresponding to the aforementioned embodiment of the wireless connection establishment method, the present disclosure also provides an embodiment of a wireless connection establishment device.
[0153] Figure 10 FIG. 1 is a schematic block diagram of a wireless connection establishment device according to an embodiment of the present disclosure. Figure 10 As shown, the apparatus can be applicable to a first Mesh device, wherein "first" does not specifically refer to a certain Mesh device, but is only used to distinguish it from a subsequent second Mesh device. The first Mesh device and the second Mesh device are different Mesh devices.
[0154] like Figure 10 As shown, the wireless connection establishing device includes:
[0155] The request sending module 1001 is configured to send a probe request on at least one channel when the first Mesh device is not configured with user configuration information, wherein the probe request carries an identifier of the first Mesh device;
[0156] The connection establishing module 1002 is configured to, when a beacon message is monitored on the at least one channel, establish a communication connection with the second Mesh device that sent the beacon message if the beacon message carries the identifier of the first Mesh device;
[0157] The configuration receiving module 1003 is configured to receive user configuration information from the second Mesh device through the communication connection;
[0158] The network access module 1004 is configured to access a wireless network according to the user configuration information.
[0159] It should be noted that some of the functions performed by the above-mentioned request sending module 1001 are equivalent to some or all of the functions performed by the detection module in the above-mentioned first Mesh device, some of the functions performed by the above-mentioned connection establishment module 1002 are equivalent to some or all of the functions performed by the connection module in the above-mentioned first Mesh device, and some of the functions performed by the above-mentioned configuration receiving module 1003 are equivalent to some or all of the functions performed by the configuration synchronization module in the above-mentioned first Mesh device, but are not limited to this.
[0160] Figure 11FIG. 1 is a schematic block diagram of another wireless connection establishment device according to an embodiment of the present disclosure. Figure 11 As shown, the device also includes:
[0161] The identification processing module 1101 is configured to set the identification of the first Mesh device in the probe request according to a first agreed format; and / or determine the identification of the first Mesh device in the beacon message according to a second agreed format.
[0162] In one embodiment, the connection establishment module 1002 is configured to, when a beacon message is monitored on the at least one channel, determine whether the identifier of the second Mesh device matches the device identifier in the device identifier library if the beacon message carries the identifier of the first Mesh device and the identifier of the second Mesh device that sends the beacon message; if they match, establish a communication connection with the second Mesh device that sends the beacon message.
[0163] In one embodiment, the connection establishment module 1002 is configured to establish a wireless temporary connection with the second Mesh device; obtain the IP address of the second Mesh device through the wireless temporary connection; and establish a communication connection with the second Mesh device based on the IP address.
[0164] In one embodiment, the network access module 1004 is configured to obtain a backhaul network key from the user configuration information; and connect to the backhaul network access point of the second Mesh device according to the backhaul network key to access the wireless network to which the second Mesh device is connected.
[0165] Figure 12 FIG. 1 is a schematic block diagram of another wireless connection establishment device according to an embodiment of the present disclosure. Figure 12 As shown, the device also includes:
[0166] The configuration determination module 1201 is configured to detect whether there is user configuration information in the first Mesh device; when there is no user configuration information in the first Mesh device, or when there is user configuration information in the first Mesh device and the existing user configuration information does not meet the preset conditions, it is determined that the first Mesh device is not configured with user configuration information.
[0167] In one embodiment, the preset conditions include at least one of the following: the time interval between the configuration time of the existing user configuration information and the current time is greater than the preset duration; the distance between the wireless network to which the existing user configuration information applies and the current location of the first Mesh device is greater than the preset distance.
[0168] Figure 13FIG. 1 is a schematic block diagram of a wireless connection establishment device according to an embodiment of the present disclosure. Figure 13 As shown, the apparatus can be applicable to a second Mesh device, where "second" does not specifically refer to a certain Mesh device, but is only used to distinguish it from the first Mesh device configured with user configuration information. The first Mesh device and the second Mesh device are different Mesh devices.
[0169] like Figure 13 As shown, the wireless connection establishing device includes:
[0170] The request monitoring module 1301 is configured to monitor a detection request on a current working channel when the second Mesh device has been configured with user configuration information;
[0171] The message sending module 1302 is configured to send a beacon message on the current working channel when the identifier of the first Mesh device carried in the monitored probe request matches the device identifier in the device identifier library, wherein the beacon message carries the identifier of the first Mesh device;
[0172] The configuration sending module 1303 is configured to establish a communication connection with the first Mesh device and send the user configuration information to the second Mesh device through the communication connection;
[0173] The connection establishing module 1304 is configured to establish a wireless connection with the first Mesh device according to the user configuration information.
[0174] It should be noted that some of the functions performed by the above-mentioned request monitoring module 1301 and the above-mentioned message sending module 1302 are equivalent to some or all of the functions performed by the identification module in the above-mentioned second Mesh device, and some of the functions performed by the above-mentioned configuration sending module 1303 are equivalent to some or all of the functions performed by the configuration synchronization module in the above-mentioned second Mesh device, but are not limited to this.
[0175] Figure 14 FIG. 1 is a schematic block diagram of another wireless connection establishment device according to an embodiment of the present disclosure. Figure 14 As shown, the device also includes:
[0176] The identification processing module 1401 is configured to determine the identification of the first Mesh device in the probe request according to a first agreed format; and / or set the identification of the first Mesh device in the beacon message according to a second agreed format.
[0177] In one embodiment, the beacon message also carries an identifier of the second Mesh device.
[0178] In one embodiment, the configuration sending module 1303 is configured to establish a wireless temporary connection with the first Mesh device; send the IP address of the second Mesh device to the first Mesh device through the wireless temporary connection; and establish a communication connection with the first Mesh device.
[0179] In one embodiment, the user configuration information carries a backhaul network key, and the connection establishment module 1304 is configured to connect the backhaul network access point of the second Mesh device and the first Mesh device according to the backhaul network key to establish a wireless connection with the first Mesh device.
[0180] Regarding the apparatus in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments of the relevant methods and will not be elaborated on here.
[0181] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. Those of ordinary skill in the art can understand and implement it without paying any creative work.
[0182] An embodiment of the present disclosure further provides an electronic device, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the method described in any one of the above embodiments.
[0183] An embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the method described in any of the above embodiments when the program is executed by a processor.
[0184] Figure 15 1 is a schematic block diagram of an apparatus 1500 for establishing a wireless connection according to an embodiment of the present disclosure. For example, apparatus 1500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0185] Reference Figure 15, device 1500 may include one or more of the following components: a processing component 1502 , a memory 1504 , a power component 1506 , a multimedia component 1508 , an audio component 1510 , an input / output (I / O) interface 1512 , a sensor component 1514 , and a communication component 1516 .
[0186] Processing component 1502 generally controls the overall operation of device 1500, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. Processing component 1502 may include one or more processors 1520 to execute instructions to perform all or part of the steps of the above-described method. In addition, processing component 1502 may include one or more modules to facilitate interaction between processing component 1502 and other components. For example, processing component 1502 may include a multimedia module to facilitate interaction between multimedia component 1508 and processing component 1502.
[0187] The memory 1504 is configured to store various types of data to support the operation of the device 1500. Examples of such data include instructions for any application or method operating on the device 1500, contact data, phone book data, messages, pictures, videos, etc. The memory 1504 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0188] The power supply component 1506 provides power to the various components of the device 1500. The power supply component 1506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 1500.
[0189] The multimedia component 1508 includes a screen that provides an output interface between the device 1500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1508 includes a front camera and / or a rear camera. When the device 1500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0190] The audio component 1510 is configured to output and / or input audio signals. For example, the audio component 1510 includes a microphone (MIC) that is configured to receive external audio signals when the device 1500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 1504 or transmitted via the communication component 1516. In some embodiments, the audio component 1510 further includes a speaker for outputting audio signals.
[0191] I / O interface 1512 provides an interface between processing component 1502 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to, a home button, volume buttons, a start button, and a lock button.
[0192] Sensor assembly 1514 includes one or more sensors for providing various aspects of the status assessment of device 1500. For example, sensor assembly 1514 can detect the open / closed state of device 1500, the relative positioning of components, such as the display and keypad of device 1500. Sensor assembly 1514 can also detect changes in the position of device 1500 or a component of device 1500, the presence or absence of user contact with device 1500, the orientation or acceleration / deceleration of device 1500, and changes in the temperature of device 1500. Sensor assembly 1514 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 1514 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 1514 can also include an accelerometer, a gyroscope, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0193] The communication component 1516 is configured to facilitate wired or wireless communication between the device 1500 and other devices. The device 1500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G LTE, 5G NR or a combination thereof. In an exemplary embodiment, the communication component 1516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0194] In an exemplary embodiment, the device 1500 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the method described in any of the above embodiments.
[0195] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1504 including instructions, which can be executed by the processor 1520 of the apparatus 1500 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0196] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0197] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for establishing a wireless connection, characterized in that: Applicable to a first Mesh device, the method includes: When the first Mesh device is not configured with user configuration information, sending a probe request on at least one channel, wherein the probe request carries an identifier of the first Mesh device; When a beacon message is monitored on the at least one channel, if the beacon message carries the identifier of the first Mesh device, a communication connection is established with the second Mesh device that sent the beacon message, wherein a wireless temporary connection is established with the second Mesh device using the WPS protocol, an IP address of the second Mesh device is obtained through the wireless temporary connection, and an encrypted communication connection is established with the second Mesh device based on the IP address; Receiving user configuration information and a backhaul network key from the second Mesh device through the communication connection, wherein the second Mesh device has been connected to a wireless network, and after the second Mesh device is configured with the user configuration information, starting a backhaul network access point interface to generate the backhaul network key; Accessing the wireless network according to the user configuration information, wherein the backhaul network key is used to connect to the backhaul network access point, sending an access request to the second Mesh device, carrying the backhaul network key in the access request for authentication of the second Mesh device, and if the authentication is successful, accessing the backhaul network access point, the user configuration information in the first Mesh device takes effect, and accessing the wireless network.
2. The method according to claim 1, characterized in that The method further comprises: Setting the identifier of the first Mesh device in the probe request according to a first agreed format; and / or Determine the identifier of the first Mesh device in the beacon message according to the second agreed format.
3. The method according to claim 1, characterized in that When a beacon message is monitored on the at least one channel, if the beacon message carries the identifier of the first Mesh device, establishing a communication connection with the second Mesh device that sends the beacon message includes: When a beacon message is monitored on the at least one channel, if the beacon message carries the identifier of the first Mesh device and the identifier of the second Mesh device that sends the beacon message, determining whether the identifier of the second Mesh device matches a device identifier in a device identifier library; If a match is found, a communication connection is established with the second Mesh device that sent the beacon message.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: Detecting whether user configuration information exists in the first Mesh device; When the user configuration information does not exist in the first Mesh device, or when the user configuration information exists in the first Mesh device and the existing user configuration information does not meet a preset condition, it is determined that the first Mesh device is not configured with the user configuration information.
5. The method according to claim 4, characterized in that The preset conditions include at least one of the following: The time interval between the configuration time of the existing user configuration information and the current time is greater than the preset time interval; The distance between the wireless network to which the existing user configuration information applies and the current location of the first Mesh device is greater than a preset distance.
6. A method for establishing a wireless connection, characterized in that: Applicable to the second Mesh device, the method includes: When the second Mesh device has been configured with user configuration information, the second Mesh device listens for a probe request on a current working channel, wherein the second Mesh device has been connected to a wireless network, and after the second Mesh device has been configured with user configuration information, the second Mesh device starts a backhaul network access point interface and generates a backhaul network key; If the identifier of the first Mesh device carried in the monitored probe request matches the device identifier in the device identifier library, a beacon message is sent on the current working channel, wherein the beacon message carries the identifier of the first Mesh device; Establishing a communication connection with the first Mesh device, wherein a wireless temporary connection is established with the first Mesh device using the WPS protocol, and sending the IP address of the second Mesh device to the first Mesh device through the wireless temporary connection, wherein the IP address is used for the first Mesh device to establish an encrypted communication connection with the second Mesh device; and sending the user configuration information and the backhaul network key to the second Mesh device through the communication connection; A wireless connection is established with the first Mesh device according to the user configuration information, wherein the backhaul network key is used by the first Mesh device to connect to the backhaul network access point, and the second Mesh device receives the access request sent by the first Mesh device, and carries the backhaul network key in the access request for authentication of the second Mesh device. If the authentication is successful, the first Mesh device is allowed to access the backhaul network access point, the user configuration information in the first Mesh device takes effect, and accesses the wireless network.
7. The method according to claim 6, characterized in that The method further comprises: Determining an identifier of the first Mesh device in the probe request according to a first agreed format; and / or The identifier of the first Mesh device is set in the beacon message according to the second agreed format.
8. The method according to claim 6, characterized in that The beacon message also carries the identifier of the second Mesh device.
9. A wireless connection establishment device, characterized in that: include: a request sending module, configured to send a probe request on at least one channel when the first Mesh device is not configured with user configuration information, wherein the probe request carries an identifier of the first Mesh device; a connection establishing module, configured to, when a beacon message is monitored on the at least one channel, establish a communication connection with a second Mesh device that sent the beacon message if the beacon message carries an identifier of the first Mesh device, wherein a wireless temporary connection is established with the second Mesh device using the WPS protocol, an IP address of the second Mesh device is obtained through the wireless temporary connection, and an encrypted communication connection is established with the second Mesh device based on the IP address; a configuration receiving module configured to receive user configuration information and a backhaul network key from the second Mesh device through the communication connection, wherein the second Mesh device has been connected to a wireless network, and after being configured with the user configuration information, the second Mesh device starts a backhaul network access point interface and generates the backhaul network key; A network access module is configured to access the wireless network according to the user configuration information, wherein the backhaul network key is used to connect to the backhaul network access point, and an access request is sent to the second Mesh device. The backhaul network key is carried in the access request for authentication of the second Mesh device. If the authentication is successful, the backhaul network access point is accessed, the user configuration information in the first Mesh device takes effect, and the wireless network is accessed.
10. A wireless connection establishment device, characterized in that: include: a request monitoring module configured to monitor a probe request on a current working channel when the second Mesh device has been configured with user configuration information, wherein the second Mesh device has been connected to a wireless network, and after the second Mesh device has been configured with the user configuration information, start a backhaul network access point interface and generate a backhaul network key; a message sending module, configured to send a beacon message on the current working channel when the identifier of the first Mesh device carried in the monitored probe request matches the device identifier in the device identifier library, wherein the beacon message carries the identifier of the first Mesh device; A configuration sending module is configured to establish a communication connection with the first Mesh device, wherein a wireless temporary connection is established with the first Mesh device using the WPS protocol, and the IP address of the second Mesh device is sent to the first Mesh device through the wireless temporary connection, where the IP address is used for the first Mesh device to establish an encrypted communication connection with the second Mesh device; and the user configuration information and the backhaul network key are sent to the second Mesh device through the communication connection; A connection establishment module is configured to establish a wireless connection with the first Mesh device according to the user configuration information, wherein the backhaul network key is used by the first Mesh device to connect to the backhaul network access point, and the second Mesh device receives the access request sent by the first Mesh device, and carries the backhaul network key in the access request for authentication of the second Mesh device. If the authentication is successful, the first Mesh device is allowed to access the backhaul network access point, the user configuration information in the first Mesh device takes effect, and accesses the wireless network.
11. A communication device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the method according to any one of claims 1 to 8.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Method and apparatus for accessing to wifi network
CN105049416A
Household appliance network accessing method and device
CN107567070A
Equipment network distribution method and device and household appliance
CN109600252A
Mesh networking method and device, gateway equipment and storage medium
CN112929908A