CN113727462A - Wireless connection establishing method and device, electronic equipment and storage medium - Google Patents
Wireless connection establishing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113727462A CN113727462A CN202110982674.6A CN202110982674A CN113727462A CN 113727462 A CN113727462 A CN 113727462A CN 202110982674 A CN202110982674 A CN 202110982674A CN 113727462 A CN113727462 A CN 113727462A
- Authority
- CN
- China
- Prior art keywords
- mesh device
- configuration information
- mesh
- identifier
- user configuration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 72
- 238000004891 communication Methods 0.000 claims abstract description 84
- 238000001514 detection method Methods 0.000 claims abstract description 34
- 239000000523 sample Substances 0.000 claims description 43
- 238000012544 monitoring process Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 30
- 230000006870 function Effects 0.000 description 11
- 238000012545 processing Methods 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 6
- 230000009471 action Effects 0.000 description 5
- 230000003993 interaction Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000006855 networking Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000002349 favourable effect Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/11—Allocation or use of connection identifiers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present disclosure relates to a wireless connection establishing method, apparatus, electronic device and storage medium, the method comprising: sending a detection request under the condition that the first Mesh equipment is not configured with user configuration information, wherein the detection request carries an identifier of the first Mesh equipment; when the beacon message is monitored, if the beacon message carries the identifier of the first Mesh device, establishing communication connection with a second Mesh device which sends the beacon message; receiving user configuration information from the second Mesh device through the communication connection; and accessing the wireless network according to the user configuration information. According to the method and the device, the first Mesh device does not need to manually configure the user configuration information for the first Mesh device, and can automatically acquire the user configuration information from the second Mesh device and automatically access the wireless network according to the user configuration information. Therefore, the manual participation degree of the Mesh equipment in the process of accessing the wireless network is greatly simplified, the labor amount of a user is reduced, and the problem that the configuration information of the user is configured manually and is wrong can be avoided.
Description
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a wireless connection establishing method, a wireless connection establishing apparatus, an electronic device, and a computer-readable storage medium.
Background
The wireless Mesh networking is developed rapidly in recent years, and has been gradually popularized as a common wireless function under the push of each manufacturer. Through Mesh equipment networking, on one hand, configuration experience that a user needs to be matched with a plurality of pieces of equipment for larger coverage can be simplified, and on the other hand, better wireless roaming experience can be provided for the user among a plurality of pieces of routing equipment.
However, at present, when networking is performed through Mesh devices, each Mesh device needs to be manually input and configured by a user, and the operation repetition degree is high, so that the use experience of the user is influenced.
Disclosure of Invention
The present disclosure provides a wireless connection establishment method, a wireless connection establishment apparatus, an electronic device, and a computer-readable storage medium to solve the deficiencies in the related art.
According to a first aspect of the embodiments of the present disclosure, a wireless connection establishing method is provided, which is applied to a first Mesh device, and the method includes: sending a detection request in at least one channel under the condition that the first Mesh device is not configured with user configuration information, wherein the detection request carries an identifier of the first Mesh device; when the at least one channel monitors a beacon message, if the beacon message carries the identifier of the first Mesh device, establishing communication connection with a second Mesh device which sends the beacon message; receiving user configuration information from the second Mesh device over the communication connection; and accessing a wireless network according to the user configuration information.
In one embodiment, the method further comprises: setting the identifier of the first Mesh device in the detection 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.
In one embodiment, when the at least one channel monitors a beacon packet, if the beacon packet carries the identifier of the first Mesh device, establishing a communication connection with a second Mesh device that sends the beacon packet includes: when the at least one channel monitors a beacon message, if the beacon message carries the identifier of the first Mesh device and the identifier of a second Mesh device which sends the beacon message, determining whether the identifier of the second Mesh device is matched with the device identifier in a device identifier library; and if the beacon messages are matched with the first Mesh equipment, establishing communication connection with second Mesh equipment which sends the beacon messages.
In one embodiment, the establishing a communication connection with the second Mesh device that sends the beacon packet includes: establishing a wireless temporary connection with the second Mesh device; acquiring the IP address of the second Mesh device through the wireless temporary connection; and establishing communication connection with the second Mesh equipment based on the IP address.
In one embodiment, said accessing a wireless network according to said user configuration information comprises: obtaining a backhaul network key from the user configuration information; and connecting a backhaul network access point of the second Mesh device according to the backhaul network key so as to access a wireless network accessed by the second Mesh device.
In one embodiment, the method further comprises: detecting whether user configuration information exists in the first Mesh equipment; and when the first Mesh device does not have the user configuration information, or the first Mesh device has the user configuration information and the existing user configuration information does not meet the preset condition, determining that the first Mesh device is not configured with the user configuration information.
In one embodiment, the preset condition includes at least one of: the time interval between the configuration time of the existing user configuration information and the current time is greater than the preset time length;
the distance between the wireless network suitable for the existing user configuration information and the current position of the first Mesh device is larger than a preset distance.
According to a second aspect of the embodiments of the present disclosure, a method for establishing a wireless connection is provided, which is applied to a second Mesh device, where the method includes: monitoring a detection request on a current working channel under the condition that the second Mesh device is configured with user configuration information; if the identifier of the first Mesh device carried by the monitored detection request is matched with the device identifier in the device identifier library, sending a beacon message in the current working channel, wherein the beacon message carries the identifier of the first Mesh device; establishing communication connection with the first Mesh device, and sending the user configuration information to the second Mesh device through the communication connection; and establishing wireless connection with the first Mesh equipment according to the user configuration information.
In one embodiment, the method further comprises: determining the identifier of the first Mesh device in the detection 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.
In an embodiment, the beacon message further carries an identifier of the second Mesh device.
In one embodiment, the establishing a communication connection with the first Mesh device comprises: 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 communication connection with the first Mesh equipment.
In one embodiment, the user configuration information carries a backhaul network key, and the establishing a wireless connection with the first Mesh device according to the user configuration information includes: and connecting the backhaul network access point of the second Mesh device with the first Mesh device according to the backhaul network key so as to establish wireless connection with the first Mesh device.
According to a third aspect of the embodiments of the present disclosure, a wireless connection establishing apparatus is provided, including:
a request sending module, configured to send a probe request in at least one channel when a first Mesh device is not configured with user configuration information, where the probe request carries an identifier of the first Mesh device;
the connection establishing module is configured to establish communication connection with a second Mesh device which sends a beacon message if the beacon message carries the identifier of the first Mesh device when the beacon message is monitored by the at least one channel;
a configuration receiving module configured to receive user configuration information from the second Mesh device over the communication connection;
and the network access module is configured to access a wireless network according to the user configuration information.
According to a fourth aspect of the embodiments of the present disclosure, a wireless connection establishing apparatus is provided, including:
a request monitoring module configured to monitor a probe request on a current working channel in a case that the second Mesh device has been configured with user configuration information;
the message sending module is configured to send a beacon message in the current working channel under the condition that the identifier of the first Mesh device carried by the monitored detection request is matched with the device identifier in the device identifier library, wherein the beacon message carries the identifier of the first Mesh device;
the configuration sending module 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;
a connection establishing module configured to establish a wireless connection with the first Mesh device according to the user configuration information.
According to a fifth aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the above method.
According to a sixth aspect of the embodiments of the present disclosure, a computer-readable storage medium is proposed, on which a computer program is stored, which when executed by a processor implements the steps in the above-mentioned method.
According to the embodiment of the disclosure, the first Mesh device can automatically acquire the user configuration information from the second Mesh device without manually configuring the user configuration information for the first Mesh device by a user, and automatically access the wireless network according to the user configuration information. Therefore, the manual participation degree of the Mesh equipment in the process of accessing the wireless network is greatly simplified, the labor amount of a user is reduced, and the problem that the configuration information of the user is configured manually and is wrong can be avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
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 disclosure.
Fig. 1 is a schematic flow chart diagram illustrating a wireless connection establishment method according to an embodiment of the present disclosure.
Fig. 2 is a schematic flow chart diagram illustrating another wireless connection establishment method in accordance with an embodiment of the present disclosure.
Fig. 3 is a schematic flow chart diagram illustrating yet another wireless connection establishment method according to an embodiment of the present disclosure.
Fig. 4 is a schematic flow chart diagram illustrating yet another wireless connection establishment method according to an embodiment of the present disclosure.
Fig. 5 is a schematic flow chart diagram illustrating a wireless connection establishment method in accordance with an embodiment of the present disclosure.
Fig. 6 is a schematic flow chart diagram illustrating another wireless connection establishment method in accordance with an embodiment of the present disclosure.
Fig. 7 is a schematic flow chart diagram illustrating yet another wireless connection establishment method in accordance with an embodiment of the present disclosure.
Fig. 8 is a block schematic diagram illustrating a Mesh device according to an embodiment of the present disclosure.
Fig. 9 is a schematic interaction diagram illustrating a first Mesh device and a second Mesh device according to an embodiment of the present disclosure.
Fig. 10 is a schematic block diagram illustrating a wireless connection establishing apparatus according to an embodiment of the present disclosure.
Fig. 11 is a schematic block diagram illustrating another wireless connection establishing apparatus according to an embodiment of the present disclosure.
Fig. 12 is a schematic block diagram illustrating still another wireless connection establishing apparatus according to an embodiment of the present disclosure.
Fig. 13 is a schematic block diagram illustrating a wireless connection establishing apparatus according to an embodiment of the present disclosure.
Fig. 14 is a schematic block diagram illustrating another wireless connection establishing apparatus according to an embodiment of the present disclosure.
Fig. 15 is a schematic block diagram illustrating an apparatus for wireless connection establishment in accordance with an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations 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.
Fig. 1 is a schematic flow chart diagram illustrating a wireless connection establishment method according to an embodiment of the present disclosure. The wireless connection establishing method shown in this embodiment may be applied to a first Mesh device, where the "first" is not particularly specific to a certain Mesh device, but is only for distinguishing from a subsequent second Mesh device, and the first Mesh device and the second Mesh device are different Mesh devices.
The first Mesh device may be used as a node to access a plurality of networks, such as networks of Wi-Fi and bluetooth, but the first Mesh device needs to have some user configuration information when accessing the network, for example, taking access to the Wi-Fi network as an example, the first Mesh device needs to have a Wi-Fi network password, an SSID (Service Set Identifier), and the like.
In the case that the first Mesh device is not configured with the user configuration information, the user is required to manually operate the first Mesh device, and set the user configuration information therein. However, when the network architecture is expanded by using the first Mesh device, a large number of first Mesh devices may need to be set, which results in that a user needs to configure the user configuration information for each first Mesh device, which brings a large amount of repetitive work to the user, affects user experience, and further, a problem that an error occurs in manually configuring the user configuration information may occur.
In order to solve the above technical problem, the present disclosure proposes a wireless connection establishment method, and exemplifies implementation of the wireless connection establishment method through some embodiments.
As shown in fig. 1, the wireless connection establishing method may include the steps of:
in step S101, when the first Mesh device is not configured with the user configuration information, a probe request is sent in at least one channel, where the probe request carries an identifier of the first Mesh device;
in step S102, when a beacon packet is monitored in the at least one channel, if the beacon packet carries the identifier of the first Mesh device, establishing a communication connection with a second Mesh device that sends the beacon packet;
receiving user configuration information from the second Mesh device through the communication connection in step S103;
in step S104, a wireless network is accessed according to the user configuration information.
In one embodiment, the first Mesh device may determine whether itself has been configured with user configuration information, wherein the user configuration information may be associated with a network to which the first Mesh device is adapted to access, for example, the first Mesh device is adapted to access a Wi-Fi network, the user configuration information including, but not limited to, a Wi-Fi network password, SSID; for example, the first Mesh device is adapted to access a bluetooth network and the user profile information includes, but is not limited to, a bluetooth network password.
In the following embodiments, how the first Mesh device determines whether it is configured with the user configuration information is described.
In one embodiment, in the case that the first Mesh device determines that the first Mesh device is not configured with the user configuration information, the Probe Request may be sent on at least one channel, where the at least one channel is a channel agreed in advance by the protocol. The probe request may carry an identification of the first Mesh device.
It should be noted that the action of the first Mesh device sending the probe request on at least one channel may be executed together on each channel, or may be executed sequentially, and may be specifically set as required. For example, for n (n > 1) channels, the first Mesh device may first send a probe request on the 1 st channel, then send a channel probe request on the 2 nd channel, and so on, and finally send a channel probe request on the nth channel; the first Mesh device may also send probe requests on n channels simultaneously.
Similarly, in the subsequent embodiments, the action of monitoring the beacon packet in the at least one channel may also be executed together on each channel or sequentially, which is not described herein again.
In one embodiment, when there is a second Mesh device that has been configured with user configuration information, the second Mesh device may listen on the current operating channel. It should be noted that the second Mesh device may also perform monitoring on multiple channels, but since the second Mesh device is configured with the user configuration information, the second Mesh device has already accessed to the network for communication, and if monitoring is performed on multiple channels, the current communication may be affected. Therefore, as an alternative implementation, monitoring is performed on the current working channel so as to avoid affecting the current communication and ensure the current communication quality.
When the second Mesh device monitors the detection request, the identifier of the first Mesh device carried by the detection request can be determined, and the identifier of the first Mesh device is matched with the device identifier in the device identifier library stored in the second Mesh device in an attempt mode.
If the matching is possible, 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 may determine that the first Mesh device is a valid device, so that a connection may be established with the first Mesh device.
Further, the second Mesh device may add the identifier of the first Mesh device to the Beacon message, and send the Beacon message in the current working channel to indicate that it agrees to establish a connection with the first Mesh device.
In an embodiment, the first Mesh device may further monitor a channel packet on the at least one channel, and when a beacon packet is monitored, determine whether the beacon packet carries an identifier of the first Mesh device, where if the beacon packet carries the identifier of the first Mesh device, it indicates that a second Mesh device that sends the beacon packet agrees to establish a connection with the first Mesh device, and then may establish a communication connection with the second Mesh device.
And the second Mesh device can send the configured user configuration information of the second Mesh device to the first Mesh device through communication connection, and after receiving the user configuration information, the first Mesh device can access a wireless network accessed by the second Mesh device according to the user configuration information.
Therefore, according to the embodiment of the disclosure, a user does not need to manually configure user configuration information for the first Mesh device, and the first Mesh device can automatically acquire the user configuration information from the second Mesh device and automatically access the wireless network according to the user configuration information. Therefore, the manual participation degree of the Mesh equipment in the process of accessing the wireless network is greatly simplified, the labor amount of a user is reduced, and the problem that the configuration information of the user is configured manually and is wrong can be avoided.
After the first Mesh device accesses the wireless network, it is already the Mesh device configured with the user configuration information, so that it may stop sending the probe request and perform the operation performed by the second Mesh device in the subsequent embodiments, for example, listen to the probe request on the working channel.
In addition, since the first Mesh device may send probe requests on multiple channels and listen for beacon messages on multiple channels, in some cases, the first Mesh device may listen for beacon messages on multiple channels.
Under the condition that the first Mesh device respectively monitors beacon messages on a plurality of channels, the first Mesh device can select a second Mesh device corresponding to a channel with the best signal quality to establish connection; further, the first Mesh device may also determine types of wireless networks to which different second Mesh devices that send different beacon messages are accessed, and if the types of the wireless networks to which different second Mesh devices are accessed are the same, the second Mesh device corresponding to the channel with the best signal quality may still be selected to establish a connection, and if the types of the wireless networks to which different second Mesh devices are accessed are different, the connection may be established for the second Mesh devices that access each type of wireless network.
In one embodiment, the method further comprises: setting the identifier of the first Mesh device in the detection 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.
When the first Mesh device sets its own identifier in the probe request, the first Mesh device may operate according to the first agreed format to ensure that the identifier of the first Mesh device is at the position agreed by the first agreed format in the probe request. Therefore, after receiving the probe request, the second Mesh device can determine a position for setting the identifier of the first Mesh device in the probe request according to the first agreed format, and further quickly determine whether the identifier of the first Mesh device is set at the position.
When the second Mesh device sets the identifier of the first Mesh device in the beacon message, the second Mesh device may operate according to the second agreed format to ensure that the identifier of the first Mesh device is at the position agreed by the second agreed format in the beacon message. Therefore, after receiving the beacon message, the first Mesh device can determine a position for setting the identifier of the first Mesh device in the probe request according to the second agreed format, and further quickly determine whether the identifier at the position is the identifier of the first Mesh device.
Fig. 2 is a schematic flow chart diagram illustrating another wireless connection establishment method in accordance with an embodiment of the present disclosure. As shown in fig. 2, when a beacon packet is monitored in the at least one channel, if the beacon packet carries the identifier of the first Mesh device, establishing a communication connection with a second Mesh device that sends the beacon packet includes:
in step S201, when a beacon packet is monitored in the at least one channel, if the beacon packet carries an identifier of the first Mesh device and an identifier of a second Mesh device that sends the beacon packet, determining whether the identifier of the second Mesh device matches with a device identifier in a device identifier library;
in step S202, if the beacon message matches the first Mesh device, a communication connection is established with the second Mesh device that sends the beacon message.
In an embodiment, when the second Mesh device sets the identifier of the first Mesh device in the beacon message, the identifier of the first Mesh device may also be set in the beacon message, so that the first Mesh device determines whether the second Mesh device that sends the beacon table is legal.
After receiving the beacon message, the first Mesh device may determine whether an identifier of a second Mesh device that sends the beacon message exists in the beacon message in addition to the identifier of the first Mesh device, and if the identifier of the second Mesh device exists, the first Mesh device may determine whether the identifier of the second Mesh device matches the device identifier in the device identifier library, for example, the identifier of the second Mesh device attempts to match the device identifier in the device identifier library stored in the first Mesh device.
If the matching is possible, 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 may determine that the second Mesh device is a valid device, so that a communication connection may be established with the second Mesh device.
Fig. 3 is a schematic flow chart diagram illustrating yet another wireless connection establishment method according to an embodiment of the present disclosure. As shown in fig. 3, the establishing a communication connection with the second Mesh device that sends the beacon packet includes:
in step S301, establishing a wireless temporary connection with the second Mesh device;
in step S302, an IP address of the second Mesh device is acquired through the wireless temporary connection;
in step S303, a communication connection is established with the second Mesh device based on the IP address.
In one embodiment, the process of establishing a communication connection between the first Mesh device and the second Mesh device may mainly include three steps.
Firstly, a first Mesh device establishes wireless temporary connection with a second Mesh device by using a WPS (Wi-Fi Protected Setup) protocol; then, the first Mesh device acquires the IP address of the second Mesh device based on a Dynamic Host Configuration Protocol (DHCP); and the first Mesh device establishes a communication connection with the second Mesh device according to the IP address, wherein the established communication connection may be an encrypted communication connection, such as an SSL (Secure Sockets Layer) connection. By establishing the encrypted communication connection, the second Mesh device is favorable for ensuring that the user configuration information is prevented from being leaked when the second Mesh device sends the user configuration information to the first Mesh device through the communication connection.
Fig. 4 is a schematic flow chart diagram illustrating yet another wireless connection establishment method according to an embodiment of the present disclosure. As shown in fig. 4, the accessing to the wireless network according to the user configuration information includes:
in step S401, a backhaul network key is obtained from the user configuration information;
in step S402, a backhaul network access point of the second Mesh device is connected according to the backhaul network key to access a wireless network accessed by the second Mesh device.
In an embodiment, after the second Mesh device is configured with the user configuration information by the user, the second Mesh device may start a backhaul access point ap (access point) interface, and generate a backhaul network key for other Mesh devices to use to access the wireless network.
When the second Mesh device sends the user configuration information to the first Mesh device, the second Mesh device may carry the backhaul network key in the user configuration information and send the user configuration information to the first Mesh device, and the first Mesh device may use the backhaul network key to connect to a backhaul network access point of the second Mesh device.
For example, the first Mesh device may send an access request to the second Mesh device, and carry a backhaul network key in the request for authentication by the second Mesh device. After receiving the access request of the first Mesh device, the second Mesh device may determine whether the first Mesh device passes authentication according to the key carried therein. For example, the second Mesh may calculate a hash value of a key stored in the second Mesh, and determine that the first Mesh device passes authentication and allows the first Mesh device to access the backhaul network access point if the hash value of the key in the access request is the same as the hash value of the key in the access request.
The user configuration information in the first Mesh device can also take effect after the first Mesh device is accessed to the backhaul network access point of the second Mesh device, so that the second Mesh device is accessed to the wireless network.
The following illustrates how the first Mesh device determines whether it is configured with user configuration information by several embodiments.
In one embodiment, the method further comprises:
detecting whether user configuration information exists in the first Mesh equipment;
and when the first Mesh device does not have the user configuration information, or the first Mesh device has the user configuration information and the existing user configuration information does not meet the preset condition, determining that the first Mesh device is not configured with the user configuration information.
In one embodiment, the first Mesh device may detect whether it stores the user configuration information, and if the user configuration information is not stored, it may directly determine that the user configuration information is not configured.
And in the case that the user configuration information is stored, it may be directly determined that the user configuration information is configured, or it may be further determined whether the user configuration information satisfies a preset condition.
In some cases, after the first Mesh device is used in one network, the first Mesh device may be transferred to another network for use, and when the first Mesh device is used in each network, the user configuration information may be configured, but the user configuration information of different networks may be different, so even if the user configuration information exists in the first Mesh device, the user configuration information may only be the user configuration information used as a node in the previous network, and is not applicable to the current network, and therefore, whether the user configuration information meets the requirement or not may be determined by setting a preset condition. If the requirement is not met, that is, the preset condition is not met, it may still be determined that the first Mesh device is not configured with the user configuration information. It is advantageous to accurately determine whether the first Mesh device is configured with the user configuration information.
In one embodiment, the preset condition includes at least one of:
the time interval between the configuration time of the existing user configuration information and the current time is greater than the preset time length;
the distance between the wireless network suitable for the existing user configuration information and the current position of the first Mesh device is larger than a preset distance.
In an embodiment, when the first Mesh device is configured with the user configuration information, the configuration time may be recorded, and then when determining whether the first Mesh device is configured with the user configuration information, a time interval between the current time and the configuration time may be calculated, and if the time interval is larger, for example, longer than a preset time, it may be determined that the user configuration information has failed, and then it is determined that the first Mesh device is not configured with the user configuration information.
In an embodiment, when the first Mesh device is configured with the user configuration information, the first Mesh device may record a location of a wireless network to which the user configuration information is applicable, and further when it is determined whether the first Mesh device is configured with the user configuration information, the first Mesh device may calculate a distance between the current location and the location of the wireless network, and if the distance is larger, for example, larger than a preset distance, it may be determined that the user configuration information is not applicable to the network at the current location, and further it is determined that the first Mesh device is not configured with the user configuration information.
Fig. 5 is a schematic flow chart diagram illustrating a wireless connection establishment method in accordance with an embodiment of the present disclosure. The wireless connection establishing method shown in this embodiment may be applied to a second Mesh device, where the "second" is not particularly specific to a certain Mesh device, but is only for distinguishing from a first Mesh device configured with user configuration information, and the first Mesh device and the second Mesh device are different Mesh devices.
As shown in fig. 5, the wireless connection establishing method may include the steps of:
in step S501, in a case that the second Mesh device has been configured with user configuration information, a probe request is monitored on a current working channel;
in step S502, if the identifier of the first Mesh device carried by the monitored probe request matches the device identifier in the device identifier library, sending a beacon packet in the current working channel, where the beacon packet carries the identifier of the first Mesh device;
in step S503, establishing a communication connection with the first Mesh device, and sending the user configuration information to the second Mesh device through the communication connection;
in step S504, a wireless connection is established with the first Mesh device according to the user configuration information.
In one embodiment, the first Mesh device may determine whether itself has been configured with user configuration information, wherein the user configuration information may be associated with a network to which the first Mesh device is adapted to access, for example, the first Mesh device is adapted to access a Wi-Fi network, the user configuration information including, but not limited to, a Wi-Fi network password, SSID; for example, the first Mesh device is adapted to access a bluetooth network and the user profile information includes, but is not limited to, a bluetooth network password.
In the following embodiments, how the first Mesh device determines whether it is configured with the user configuration information is described.
In one embodiment, in the case that the first Mesh device determines that the first Mesh device is not configured with the user configuration information, the Probe Request may be sent on at least one channel, where the at least one channel is a channel agreed in advance by the protocol. The probe request may carry an identification of the first Mesh device.
It should be noted that, the action of the first Mesh device sending the probe request on the at least one channel, and the subsequent action of listening for the beacon packet on the at least one channel may be executed in sequence on each channel. For example, for n (n > 1) channels, the first Mesh device may first send a probe request on the 1 st channel and listen on the 1 st channel for a period of time; further sending a detection request on the 2 nd channel, and continuously monitoring the 2 nd channel for a period of time; and so on, finally sending a channel detection request on the nth channel and continuously monitoring the nth channel for a period of time.
In one embodiment, when there is a second Mesh device that has been configured with user configuration information, the second Mesh device may listen on the current operating channel. It should be noted that the second Mesh device may also perform monitoring on multiple channels, but since the second Mesh device is configured with the user configuration information, the second Mesh device has already accessed to the network for communication, and if monitoring is performed on multiple channels, the current communication may be affected. Therefore, as an alternative implementation, monitoring is performed on the current working channel so as to avoid affecting the current communication and ensure the current communication quality.
When the second Mesh device monitors the detection request, the identifier of the first Mesh device carried by the detection request can be determined, and the identifier of the first Mesh device is matched with the device identifier in the device identifier library stored in the second Mesh device in an attempt mode.
If the matching is possible, 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 may determine that the first Mesh device is a valid device, so that a connection may be established with the first Mesh device.
Further, the second Mesh device may add the identifier of the first Mesh device to the Beacon message, and send the Beacon message in the current working channel to indicate that it agrees to establish a connection with the first Mesh device.
In an embodiment, the first Mesh device may further monitor a channel packet on the at least one channel, and when a beacon packet is monitored, determine whether the beacon packet carries an identifier of the first Mesh device, where if the beacon packet carries the identifier of the first Mesh device, it indicates that a second Mesh device that sends the beacon packet agrees to establish a connection with the first Mesh device, and then may establish a communication connection with the second Mesh device.
And the second Mesh device can send the configured user configuration information of the second Mesh device to the first Mesh device through communication connection, and after receiving the user configuration information, the first Mesh device can access a wireless network accessed by the second Mesh device according to the user configuration information.
Therefore, according to the embodiment of the disclosure, a user does not need to manually configure user configuration information for the first Mesh device, and the first Mesh device can automatically acquire the user configuration information from the second Mesh device and automatically access the wireless network according to the user configuration information. Therefore, the manual participation degree of the Mesh equipment in the process of accessing the wireless network is greatly simplified, the labor amount of a user is reduced, and the problem that the configuration information of the user is configured manually and is wrong can be avoided.
After the first Mesh device accesses the wireless network, it is already the Mesh device configured with the user configuration information, so that it may stop sending the probe request and perform the operation performed by the second Mesh device in the subsequent embodiments, for example, listen to the probe request on the working channel.
In addition, since the first Mesh device may send probe requests on multiple channels and listen for beacon messages on multiple channels, in some cases, the first Mesh device may listen for beacon messages on multiple channels.
In one embodiment, the method further comprises: determining the identifier of the first Mesh device in the detection 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.
When the first Mesh device sets its own identifier in the probe request, the first Mesh device may operate according to the first agreed format to ensure that the identifier of the first Mesh device is at the position agreed by the first agreed format in the probe request. Therefore, after receiving the probe request, the second Mesh device can determine a position for setting the identifier of the first Mesh device in the probe request according to the first agreed format, and further quickly determine whether the identifier of the first Mesh device is set at the position.
When the second Mesh device sets the identifier of the first Mesh device in the beacon message, the second Mesh device may operate according to the second agreed format to ensure that the identifier of the first Mesh device is at the position agreed by the second agreed format in the beacon message. Therefore, after receiving the beacon message, the first Mesh device can determine a position for setting the identifier of the first Mesh device in the probe request according to the second agreed format, and further quickly determine whether the identifier at the position is the identifier of the first Mesh device.
In an embodiment, the beacon message further carries an identifier of the second Mesh device. When the second Mesh device sets the identifier of the first Mesh device in the beacon message, the identifier of the first Mesh device can be set in the beacon message, so that the first Mesh device can determine whether the second Mesh device which sends the beacon table is legal or not.
After receiving the beacon message, the first Mesh device may determine whether an identifier of a second Mesh device that sends the beacon message exists in the beacon message in addition to the identifier of the first Mesh device, and if the identifier of the second Mesh device exists, the first Mesh device may determine whether the identifier of the second Mesh device matches the device identifier in the device identifier library, for example, the identifier of the second Mesh device attempts to match the device identifier in the device identifier library stored in the first Mesh device.
If the matching is possible, 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 may determine that the second Mesh device is a valid device, so that a communication connection may be established with the second Mesh device.
Fig. 6 is a schematic flow chart diagram illustrating another wireless connection establishment method in accordance with an embodiment of the present disclosure. As shown in fig. 6, the establishing a communication connection with the first Mesh device includes:
in step S601, establishing a wireless temporary connection with the first Mesh device;
in step S602, sending the IP address of the second Mesh device to the first Mesh device through the wireless temporary connection;
in step S603, a communication connection is established with the first Mesh device.
In one embodiment, the process of establishing a communication connection between the second Mesh device and the first Mesh device mainly includes three steps.
Firstly, a second Mesh device establishes wireless temporary connection with a first Mesh device by using a WPS protocol; then, the first Mesh device acquires the IP address of the second Mesh device based on a dynamic host configuration protocol, and the second Mesh device sends the IP address of the second Mesh device to the first Mesh device through wireless temporary connection; and the first Mesh device establishes communication connection, such as SSL connection, with the second Mesh device according to the IP address.
By establishing the communication connection, the second Mesh device is favorable for ensuring that the user configuration information is prevented from being leaked when the second Mesh device sends the user configuration information to the first Mesh device through the communication connection.
Fig. 7 is a schematic flow chart diagram illustrating yet another wireless connection establishment method in accordance with an embodiment of the present disclosure. As shown in fig. 7, the user configuration information carries a backhaul network key, and the establishing a wireless connection with the first Mesh device according to the user configuration information includes:
in step S701, a backhaul network access point of the second Mesh device and the first Mesh device are connected according to the backhaul network key, so as to establish a wireless connection with the first Mesh device.
In an embodiment, after the second Mesh device is configured with the user configuration information by the user, the second Mesh device may start a backhaul access point ap (access point) interface, and generate a backhaul network key for other Mesh devices to use to access the wireless network.
When the second Mesh device sends the user configuration information to the first Mesh device, the second Mesh device may carry the backhaul network key in the user configuration information and send the user configuration information to the first Mesh device, and the first Mesh device may use the backhaul network key to connect to a backhaul network access point of the second Mesh device.
For example, the first Mesh device may send an access request to the second Mesh device, and carry a backhaul network key in the request for authentication by the second Mesh device. After receiving the access request of the first Mesh device, the second Mesh device may determine whether the first Mesh device passes authentication according to the key carried therein. For example, the second Mesh may calculate a hash value of a key stored in the second Mesh, and determine that the first Mesh device passes authentication and allows the first Mesh device to access the backhaul network access point if the hash value of the key in the access request is the same as the hash value of the key in the access request.
The user configuration information in the first Mesh device can also take effect after the first Mesh device is accessed to the backhaul network access point of the second Mesh device, so that the second Mesh device is accessed to the wireless network.
Fig. 8 is a block schematic diagram illustrating a Mesh device according to an embodiment of the present disclosure. Fig. 9 is a schematic interaction diagram illustrating a first Mesh device and a second Mesh device according to an embodiment of the present disclosure.
As shown in fig. 8, a detection module, an identification module, a connection module, and a configuration synchronization module may be provided in the Mesh device. The detection module can be started and the identification module can be closed under the condition that the Mesh device is not configured with user configuration information, such as a first Mesh device; in case the Mesh device has been configured with user configuration information, e.g. a second Mesh device, the detection module may be switched off and the identification module may be switched on.
On the basis of the module shown in fig. 8, the first Mesh device and the second Mesh device may interact according to the flow shown in fig. 9, as shown in fig. 9:
the first Mesh equipment sends a detection request through a detection module on at least one channel, wherein the detection request carries an identifier of the first Mesh equipment;
the second Mesh device continuously receives the detection request in the current working channel through the identification module, after the detection request is received, whether the identifier of the first Mesh device is matched with the identifier in the device identifier library of the second Mesh device or not can be determined, if the identifier of the first Mesh device is matched with the identifier in the device identifier library of the second Mesh device, a beacon message can be sent in the current working channel, and the identifier of the first Mesh device is carried in the beacon message;
the first Mesh device can monitor the beacon message through the detection module, and when the beacon message is determined to contain the identifier of the first Mesh device, the second Mesh device can be determined to allow the first Mesh device to access the wireless network. The first Mesh device establishes wireless temporary connection with the second Mesh device by using a WPS (wi-Fi protected setup) protocol; then the first Mesh equipment acquires the IP address of the second Mesh equipment based on a dynamic host configuration protocol; the first Mesh device establishes communication connection with the second Mesh device according to the IP address;
and the second Mesh equipment sends the user configuration information to the configuration synchronization module of the first Mesh equipment through the configuration synchronization module, the first Mesh equipment stores and validates the user configuration information, the communication connection is disconnected, and backhaul connection is established, so that the second Mesh equipment is accessed to a wireless network. The first Mesh device can also turn off the detector module and turn on the identification module.
Corresponding to the foregoing embodiments of the wireless connection establishing method, the present disclosure also provides embodiments of a wireless connection establishing apparatus.
Fig. 10 is a schematic block diagram illustrating a wireless connection establishing apparatus according to an embodiment of the present disclosure. As shown in fig. 10, the apparatus may be applied to a first Mesh device, where "first" does not refer to a certain Mesh device specifically, but is to distinguish from a subsequent second Mesh device, and the first Mesh device and the second Mesh device are different Mesh devices.
As shown in fig. 10, the wireless connection establishing apparatus includes:
a request sending module 1001, configured to send a probe request in at least one channel when a first Mesh device is not configured with user configuration information, where the probe request carries an identifier of the first Mesh device;
a connection establishing module 1002, configured to, when a beacon packet is monitored in the at least one channel, establish a communication connection with a second Mesh device that sends the beacon packet if the beacon packet carries an identifier of the first Mesh device;
a configuration receiving module 1003 configured to receive user configuration information from the second Mesh device through the communication connection;
a network access module 1004 configured to access a wireless network according to the user configuration information.
It should be noted that, part of the functions executed by the request sending module 1001 is equivalent to part of or all the functions executed by the detection module in the first Mesh device, part of the functions executed by the connection establishing module 1002 is equivalent to part of or all the functions executed by the connection module in the first Mesh device, and part of the functions executed by the configuration receiving module 1003 is equivalent to part of or all the functions executed by the configuration synchronization module in the first Mesh device, but the present invention is not limited thereto.
Fig. 11 is a schematic block diagram illustrating another wireless connection establishing apparatus according to an embodiment of the present disclosure. As shown in fig. 11, the apparatus further includes:
an identity processing module 1101 configured to set an identity 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.
In an embodiment, the connection establishing module 1002 is configured to, when a beacon packet is monitored in the at least one channel, determine whether an identifier of a second Mesh device matches an device identifier in a device identifier library if the beacon packet carries the identifier of the first Mesh device and an identifier of the second Mesh device that sends the beacon packet; and if the beacon messages are matched with the first Mesh equipment, establishing communication connection with second Mesh equipment which sends the beacon messages.
In one embodiment, the connection establishing module 1002 is configured to establish a wireless temporary connection with the second Mesh device; acquiring the IP address of the second Mesh device through the wireless temporary connection; and establishing communication connection with the second Mesh equipment based on the IP address.
In one embodiment, the network access module 1004 is configured to obtain a backhaul network key from the user configuration information; and connecting a backhaul network access point of the second Mesh device according to the backhaul network key so as to access a wireless network accessed by the second Mesh device.
Fig. 12 is a schematic block diagram illustrating still another wireless connection establishing apparatus according to an embodiment of the present disclosure. As shown in fig. 12, the apparatus further includes:
a configuration determining module 1201 configured to detect whether user configuration information exists in the first Mesh device; and when the first Mesh device does not have the user configuration information, or the first Mesh device has the user configuration information and the existing user configuration information does not meet the preset condition, determining that the first Mesh device is not configured with the user configuration information.
In one embodiment, the preset condition includes at least one of: the time interval between the configuration time of the existing user configuration information and the current time is greater than the preset time length; the distance between the wireless network suitable for the existing user configuration information and the current position of the first Mesh device is larger than a preset distance.
Fig. 13 is a schematic block diagram illustrating a wireless connection establishing apparatus according to an embodiment of the present disclosure. As shown in fig. 13, the apparatus may be applied to a second Mesh device, where "second" does not refer to a certain Mesh device specifically, but is to distinguish from a first Mesh device configured with user configuration information, and the first Mesh device and the second Mesh device are different Mesh devices.
As shown in fig. 13, the wireless connection establishing apparatus includes:
a request monitoring module 1301, configured to monitor a probe request on a current working channel when the second Mesh device has been configured with user configuration information;
a message sending module 1302, configured to send a beacon message in the current working channel when an identifier of a first Mesh device carried by the monitored probe request matches an device identifier in a device identifier library, where the beacon message carries the identifier of the first Mesh device;
a configuration sending module 1303, 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;
a connection establishing module 1304 configured to establish a wireless connection with the first Mesh device according to the user configuration information.
It should be noted that, part of the functions executed by the request monitoring module 1301 and the message sending module 1302 are equivalent to part of or all of the functions executed by the identification module in the second Mesh device, and part of the functions executed by the configuration sending module 1303 is equivalent to part of or all of the functions executed by the configuration synchronization module in the second Mesh device, but the invention is not limited thereto.
Fig. 14 is a schematic block diagram illustrating another wireless connection establishing apparatus according to an embodiment of the present disclosure. As shown in fig. 14, the apparatus further includes:
an identifier processing module 1401 configured to determine an 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.
In an embodiment, the beacon message further carries an identifier of the second Mesh device.
In one embodiment, the configuration sending module 1303 is configured to establish 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 communication connection with the first Mesh equipment.
In an embodiment, the user configuration information carries a backhaul network key, and the connection establishing 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, so as to establish a wireless connection with the first Mesh device.
With regard to 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 related method, and will not be described in detail here.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
An embodiment of the present disclosure also provides an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the method of any of the above embodiments.
Embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps in the method according to any of the above embodiments.
Fig. 15 is a schematic block diagram illustrating an apparatus 1500 for wireless connection establishment in accordance with an embodiment of the present disclosure. For example, the 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, an exercise device, a personal digital assistant, and the like.
Referring to fig. 15, apparatus 1500 may include one or more of the following components: processing components 1502, memory 1504, power components 1506, multimedia components 1508, audio components 1510, input/output (I/O) interfaces 1512, sensor components 1514, and communication components 1516.
The processing component 1502 generally controls overall operation of the device 1500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1502 may include one or more processors 1520 executing instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1502 may include one or more modules that 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.
The memory 1504 is configured to store various types of data to support operations at the apparatus 1500. Examples of such data include instructions for any application or method operating on the device 1500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1504 may be implemented by any type or combination of volatile or non-volatile memory devices 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 or optical disks.
The power supply component 1506 provides power to the various components of the device 1500. The power components 1506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 1500.
The multimedia component 1508 includes a screen that provides an output interface between the device 1500 and a 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, multimedia component 1508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 1500 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1510 is configured to output and/or input audio signals. For example, the audio component 1510 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 1500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1504 or transmitted via the communication component 1516. In some embodiments, audio component 1510 also includes a speaker for outputting audio signals.
The I/O interface 1512 provides an interface between the processing component 1502 and peripheral interface modules, which can be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1514 includes one or more sensors for providing status assessment of various aspects of the apparatus 1500. For example, the sensor assembly 1514 can detect an open/closed state of the device 1500, the relative positioning of components, such as a display and keypad of the device 1500, the sensor assembly 1514 can also detect a change in position of the device 1500 or a component of the device 1500, the presence or absence of user contact with the device 1500, orientation or acceleration/deceleration of the device 1500, and a change in temperature of the device 1500. The sensor assembly 1514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1516 is configured to facilitate wired or wireless communication between the apparatus 1500 and other devices. The apparatus 1500 may 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 broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1500 may 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, micro-controllers, microprocessors or other electronic components for performing the methods described in any of the above embodiments.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1504 comprising instructions, executable by the processor 1520 of the apparatus 1500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (16)
1. A wireless connection establishment method applied to a first Mesh device, the method comprising:
sending a detection request in at least one channel under the condition that the first Mesh device is not configured with user configuration information, wherein the detection request carries an identifier of the first Mesh device;
when the at least one channel monitors a beacon message, if the beacon message carries the identifier of the first Mesh device, establishing communication connection with a second Mesh device which sends the beacon message;
receiving user configuration information from the second Mesh device over the communication connection;
and accessing a wireless network according to the user configuration information.
2. The method of claim 1, further comprising:
setting the identifier of the first Mesh device in the detection request according to a first agreed format;
and/or
And determining the identifier of the first Mesh device in the beacon message according to a second agreed format.
3. The method according to claim 1, wherein the establishing a communication connection with a second Mesh device that sends the beacon packet if the beacon packet carries the identifier of the first Mesh device when the at least one channel monitors the beacon packet comprises:
when the at least one channel monitors a beacon message, if the beacon message carries the identifier of the first Mesh device and the identifier of a second Mesh device which sends the beacon message, determining whether the identifier of the second Mesh device is matched with the device identifier in a device identifier library;
and if the beacon messages are matched with the first Mesh equipment, establishing communication connection with second Mesh equipment which sends the beacon messages.
4. The method of claim 1, wherein the establishing a communication connection with a second Mesh device that sends the beacon packet comprises:
establishing a wireless temporary connection with the second Mesh device;
acquiring the IP address of the second Mesh device through the wireless temporary connection;
and establishing communication connection with the second Mesh equipment based on the IP address.
5. The method of claim 1, wherein the accessing the wireless network according to the user configuration information comprises:
obtaining a backhaul network key from the user configuration information;
and connecting a backhaul network access point of the second Mesh device according to the backhaul network key so as to access a wireless network accessed by the second Mesh device.
6. The method according to any one of claims 1 to 5, further comprising:
detecting whether user configuration information exists in the first Mesh equipment;
and when the first Mesh device does not have the user configuration information, or the first Mesh device has the user configuration information and the existing user configuration information does not meet the preset condition, determining that the first Mesh device is not configured with the user configuration information.
7. The method of claim 6, wherein the preset condition comprises at least one of:
the time interval between the configuration time of the existing user configuration information and the current time is greater than the preset time length;
the distance between the wireless network suitable for the existing user configuration information and the current position of the first Mesh device is larger than a preset distance.
8. A wireless connection establishment method applied to a second Mesh device, the method comprising:
monitoring a detection request on a current working channel under the condition that the second Mesh device is configured with user configuration information;
if the identifier of the first Mesh device carried by the monitored detection request is matched with the device identifier in the device identifier library, sending a beacon message in the current working channel, wherein the beacon message carries the identifier of the first Mesh device;
establishing communication connection with the first Mesh device, and sending the user configuration information to the second Mesh device through the communication connection;
and establishing wireless connection with the first Mesh equipment according to the user configuration information.
9. The method of claim 8, further comprising:
determining the identifier of the first Mesh device in the detection request according to a first agreed format;
and/or
And setting the identifier of the first Mesh device in the beacon message according to a second agreed format.
10. The method of claim 8, wherein the beacon message further carries an identifier of the second Mesh device.
11. The method of claim 8, wherein the establishing a communication connection with the first Mesh device comprises:
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 communication connection with the first Mesh equipment.
12. The method according to claim 8, wherein the user configuration information carries a backhaul network key, and the establishing a wireless connection with the first Mesh device according to the user configuration information comprises:
and connecting the backhaul network access point of the second Mesh device with the first Mesh device according to the backhaul network key so as to establish wireless connection with the first Mesh device.
13. A wireless connection establishment apparatus, comprising:
a request sending module, configured to send a probe request in at least one channel when a first Mesh device is not configured with user configuration information, where the probe request carries an identifier of the first Mesh device;
the connection establishing module is configured to establish communication connection with a second Mesh device which sends a beacon message if the beacon message carries the identifier of the first Mesh device when the beacon message is monitored by the at least one channel;
a configuration receiving module configured to receive user configuration information from the second Mesh device over the communication connection;
and the network access module is configured to access a wireless network according to the user configuration information.
14. A wireless connection establishment apparatus, comprising:
a request monitoring module configured to monitor a probe request on a current working channel in a case that the second Mesh device has been configured with user configuration information;
the message sending module is configured to send a beacon message in the current working channel under the condition that the identifier of the first Mesh device carried by the monitored detection request is matched with the device identifier in the device identifier library, wherein the beacon message carries the identifier of the first Mesh device;
the configuration sending module 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;
a connection establishing module configured to establish a wireless connection with the first Mesh device according to the user configuration information.
15. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement the method of any one of claims 1 to 12.
16. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110982674.6A CN113727462A (en) | 2021-08-25 | 2021-08-25 | Wireless connection establishing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110982674.6A CN113727462A (en) | 2021-08-25 | 2021-08-25 | Wireless connection establishing method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113727462A true CN113727462A (en) | 2021-11-30 |
Family
ID=78677902
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110982674.6A Pending CN113727462A (en) | 2021-08-25 | 2021-08-25 | Wireless connection establishing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113727462A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023116426A1 (en) * | 2021-12-24 | 2023-06-29 | 深圳创维数字技术有限公司 | Wireless network connection method and apparatus, access point, and storage medium |
WO2023220876A1 (en) * | 2022-05-16 | 2023-11-23 | 北京小米移动软件有限公司 | Network access method and apparatus, and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105049416A (en) * | 2015-06-15 | 2015-11-11 | 小米科技有限责任公司 | Method and apparatus for accessing to wifi network |
CN106550482A (en) * | 2016-12-09 | 2017-03-29 | 北京小米移动软件有限公司 | Communication connection method for building up and device, electronic equipment |
CN109600252A (en) * | 2018-11-21 | 2019-04-09 | 广东美的制冷设备有限公司 | Equipment distribution method, apparatus and household appliance |
WO2020253695A1 (en) * | 2019-06-17 | 2020-12-24 | 华为技术有限公司 | Smart home device access method and electronic device |
CN112929908A (en) * | 2021-03-17 | 2021-06-08 | 北京小米移动软件有限公司 | Mesh networking method and device, gateway equipment and storage medium |
-
2021
- 2021-08-25 CN CN202110982674.6A patent/CN113727462A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105049416A (en) * | 2015-06-15 | 2015-11-11 | 小米科技有限责任公司 | Method and apparatus for accessing to wifi network |
CN106550482A (en) * | 2016-12-09 | 2017-03-29 | 北京小米移动软件有限公司 | Communication connection method for building up and device, electronic equipment |
CN109600252A (en) * | 2018-11-21 | 2019-04-09 | 广东美的制冷设备有限公司 | Equipment distribution method, apparatus and household appliance |
WO2020253695A1 (en) * | 2019-06-17 | 2020-12-24 | 华为技术有限公司 | Smart home device access method and electronic device |
CN112929908A (en) * | 2021-03-17 | 2021-06-08 | 北京小米移动软件有限公司 | Mesh networking method and device, gateway equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023116426A1 (en) * | 2021-12-24 | 2023-06-29 | 深圳创维数字技术有限公司 | Wireless network connection method and apparatus, access point, and storage medium |
WO2023220876A1 (en) * | 2022-05-16 | 2023-11-23 | 北京小米移动软件有限公司 | Network access method and apparatus, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3823250A1 (en) | Method and device for network configuration, router, and server | |
US10098166B2 (en) | Method and device for wireless connection establishment | |
CN104683248B (en) | The method and apparatus of switching working mode | |
EP3163803B1 (en) | Method and device for establishing connection | |
US20160174140A1 (en) | Method and device for performing configuration | |
CN106358189B (en) | Method and device for accessing wireless local area network | |
CN113115403B (en) | Method, device, electronic equipment and storage medium for network node to access network | |
CN104684106B (en) | The method and device of network connection | |
CN104580401A (en) | Connecting method and device | |
US20160255521A1 (en) | Method and apparatus for testing a smart device | |
CN109691171B (en) | Method and device for configuring reflection service quality and method and device for sending information | |
CN110622616A (en) | Control method and device of inactivity timer | |
US20170034776A1 (en) | Method, apparatus, and system for smart device to access router | |
CN106376057A (en) | Wireless network access method and device | |
CN113727462A (en) | Wireless connection establishing method and device, electronic equipment and storage medium | |
CN108702689B (en) | Cell access method, device and storage medium | |
CN108476379B (en) | Information recording method and information recording apparatus | |
CN110784908A (en) | Wireless network distribution method, wireless router and wireless network distribution system | |
CN109041145B (en) | Communication method, communication device, terminal and storage medium | |
CN106792570B (en) | Positioning method and device | |
CN106550482B (en) | Communication connection establishing method and device and electronic equipment | |
CN107070707B (en) | Method and device for determining initialization mode of router | |
CN107105005B (en) | Method and device for synchronizing data | |
WO2019104507A1 (en) | Network configuration method and apparatus, and network measurement method and apparatus | |
WO2022147721A1 (en) | Capability sending method and apparatus, and capability receiving method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |