A wireless access point rapid discovery method and device
By sending a detection request message to the wireless AP in the Wi-Fi network and determining the connection channel based on the response information, it solves the time-consuming problem of wireless STAs discovering APs, achieves rapid discovery and efficient connection, and improves user experience and power consumption management.
Patent Information
- Application Number
- CN202011642076.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-31
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-12-31
AI Technical Summary
In a Wi-Fi network, a wireless STA needs to wait for a response from the AP when discovering a wireless AP, which takes a long time and affects the user experience.
By sending a detection request message to the wireless AP, including a random number as the request identifier, and determining the connected Wi-Fi working channel based on the AP's response information, the signal strength and channel quality are optimized to select the most suitable AP for connection.
It shortens the wireless AP discovery time, improves the speed and efficiency of user access to wireless LAN, reduces the power consumption of wireless devices and APs, and improves user experience.
Smart Images

Figure CN114698060B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to a method and device for quickly discovering a wireless access point. Background Art
[0002] Wireless access points (APs) are deployed on different channels in different frequency bands. After deployment, channels may be dynamically switched according to the channel environment. To access a wireless network (Wi-Fi), a wireless workstation (STA) must first discover nearby available wireless APs. After authentication and association, the wireless STA can establish a link connection with the wireless AP. In other words, before accessing the wireless network, the wireless STA will go through a discovery process to find the wireless AP to be accessed and the corresponding channel, and then initiate the association process. The discovery process can be based on passive scanning, active scanning, or rely on a third party (such as Bluetooth Low Energy (BLE)) to obtain information for discovery and association. Passive scanning and active scanning can be used in combination. Among them, passive scanning means that before the wireless STA decides to initiate access to the wireless network, it first determines the list to be scanned; then switches to the working frequency / channel corresponding to the list to be scanned in turn, and waits for tens of milliseconds in the hope of receiving the Beacon message sent by the wireless AP; when the waiting time is reached, it switches to the next channel in the list to be scanned, and the above process is repeated until the wireless AP expected to be associated is found. Active scanning means that before a wireless STA decides to initiate access to a wireless network, it first determines the list to be scanned; then it switches to the working frequency / channel corresponding to the list to be scanned, immediately sends a Probe Request detection message, and waits for tens of milliseconds to expect to receive a Probe Response response message from the wireless AP or a Beacon message sent by the wireless AP; when the waiting time is reached, it switches to the next channel and repeats the above process again until the wireless AP expected to be associated is found.
[0003] However, Wi-Fi has multiple Wi-Fi working channels that can be deployed. If the Wi-Fi working channels are scanned sequentially, it will take a long time for the wireless STA to wait for the wireless AP to respond, resulting in a poor user experience. Summary of the invention
[0004] The embodiment of the present application proposes a method and device for quickly discovering a wireless access point, which can quickly discover the working channel and related information of a wireless AP, reduce the power consumption of wireless electronic devices and wireless APs, shorten the time to discover wireless APs, speed up the user's access to a wireless local area network, improve network access efficiency, and enhance user experience. The technical solution is as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for quickly discovering a wireless access point. The method is applied to an electronic device including a first Wi-Fi module, and the electronic device also includes a first communication module. The method includes:
[0006] Sending a probe request message to the first Wi-Fi working channel, the probe request message including one or more service set identifiers corresponding to the wireless access point and a request identifier corresponding to the one or more service set identifiers; wherein the request identifier is a random number, and different service set identifiers correspond to different request identifiers;
[0007] When receiving first information broadcasted by the wireless access point in response to the detection request message through the first communication channel, stopping sending the detection request message; wherein the first information includes at least one request identifier among the request identifiers corresponding to the one or more service set identifiers and a second Wi-Fi working channel identifier;
[0008] Determining, according to the second Wi-Fi operating channel identifier, a second Wi-Fi operating channel when the electronic device is connected to the wireless access point;
[0009] According to the at least one request identifier, it is determined to connect to the wireless access point via the second Wi-Fi working channel.
[0010] In a possible implementation, the detection request message further includes: a first identifier, where the first identifier is used to indicate that the wireless access point does not respond on the first Wi-Fi working channel but responds on the first communication channel.
[0011] In a possible implementation, the first information further includes: a signal strength of a detection request message received by the wireless access point through the first Wi-Fi working channel;
[0012] The above method further comprises:
[0013] The distance between the wireless access point and the electronic device is determined according to the signal strength of the detection request message received by the wireless access point through the first Wi-Fi working channel.
[0014] In a possible implementation, the first information further includes: a channel quality of a second Wi-Fi working channel corresponding to the second Wi-Fi working channel identifier;
[0015] The determining, according to the second Wi-Fi working channel identifier, the second Wi-Fi working channel when the electronic device is connected to the wireless access point includes:
[0016] The second Wi-Fi working channel when the electronic device is connected to the wireless access point is determined according to the second Wi-Fi working channel identifier, the distance between the wireless access point and the electronic device, and the channel quality of the second Wi-Fi working channel corresponding to the second Wi-Fi working channel identifier.
[0017] In a possible implementation, the first information further includes a basic service set identifier; or
[0018] The above method further includes:
[0019] Sending a basic service set identifier request to a wireless access point, and receiving a basic service set identifier fed back by the wireless access point;
[0020] The connecting to the wireless access point through the second Wi-Fi working channel includes:
[0021] Through the second Wi-Fi working channel, a wireless access point corresponding to the basic service set identifier is connected.
[0022] In a possible implementation, the first communication channel is a channel used when the first communication module of the electronic device communicates with the second communication module of the wireless access point.
[0023] In a second aspect, an embodiment of the present application further proposes a method for quickly discovering a wireless access point, the method being applied to a wireless access point including a second Wi-Fi module, the wireless access point also including a second communication module, the method comprising:
[0024] Receiving a detection request message sent by an electronic device through a first Wi-Fi working channel, the detection request message including one or more service set identifiers corresponding to a wireless access point and a request identifier corresponding to the one or more service set identifiers; wherein the request identifier is a random number, and different service set identifiers correspond to different request identifiers;
[0025] Broadcasting first information on a first communication channel according to the received one or more service set identifiers, the first information including at least one request identifier among the request identifiers corresponding to the one or more service set identifiers and a second Wi-Fi working channel identifier;
[0026] The electronic device is connected via a second Wi-Fi working channel; wherein the second Wi-Fi working channel is determined according to a second Wi-Fi working channel identifier.
[0027] In a possible implementation, the detection request message further includes: a first identifier, where the first identifier is used to indicate that the wireless access point does not respond on the first Wi-Fi working channel but responds on the first communication channel.
[0028] In a possible implementation, broadcasting the first information on the first communication channel according to the received one or more service set identifiers includes:
[0029] The received one or more service set identifiers are compared with the service set identifier of the device itself, and if they are consistent, the first information is broadcasted on the first communication channel.
[0030] In a possible implementation, after broadcasting the first information on the first communication channel, the method further includes:
[0031] When the time for the wireless access point to broadcast the first information is less than or equal to the preset time threshold and the electronic device has been successfully connected to the wireless access point, stop broadcasting the first information; or
[0032] When the time for the wireless access point to broadcast the first information is greater than a preset time threshold, the wireless access point stops broadcasting the first information.
[0033] In a possible implementation, the first communication channel is a channel used when the first communication module of the electronic device communicates with the second communication module of the wireless access point.
[0034] In a third aspect, an embodiment of the present application provides a wireless access point rapid discovery device, the device comprising:
[0035] A first sending module is configured to send a probe request message to a first Wi-Fi working channel, where the probe request message includes one or more service set identifiers corresponding to the wireless access point and a request identifier corresponding to the one or more service set identifiers; wherein the request identifier is a random number, and different service set identifiers correspond to different request identifiers;
[0036] A second sending module, configured to stop sending the detection request message when receiving first information broadcast by the wireless access point in response to the detection request message through the first communication channel; wherein the first information includes at least one request identifier among the request identifiers corresponding to the one or more service set identifiers and a second Wi-Fi working channel identifier;
[0037] A determination module, configured to determine, according to the second Wi-Fi working channel identifier, a second Wi-Fi working channel when the electronic device is connected to the wireless access point;
[0038] The first connection module is used to determine, according to the at least one request identifier, to connect to the wireless access point via the second Wi-Fi working channel.
[0039] In a fourth aspect, an embodiment of the present application provides a wireless access point rapid discovery device, the device comprising:
[0040] A receiving module, configured to receive a detection request message sent by an electronic device through a first Wi-Fi working channel, wherein the detection request message includes one or more service set identifiers corresponding to a wireless access point and a request identifier corresponding to the one or more service set identifiers; wherein the request identifier is a random number, and different service set identifiers correspond to different request identifiers;
[0041] a broadcast module, configured to broadcast first information on a first communication channel according to the received one or more service set identifiers, wherein the first information includes at least one request identifier among the request identifiers corresponding to the one or more service set identifiers and a second Wi-Fi working channel identifier;
[0042] The second connection module is used to connect the electronic device through a second Wi-Fi working channel; wherein the second Wi-Fi working channel is determined according to a second Wi-Fi working channel identifier.
[0043] In a fifth aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a memory, a processor, and a communication interface;
[0044] The above-mentioned electronic device is used to execute the method in the first aspect and its various possible implementations.
[0045] In a sixth aspect, an embodiment of the present application provides a wireless access point, the wireless access point comprising: a memory, a processor, and a communication interface;
[0046] The wireless access point is used to execute the method in the second aspect and various possible implementations thereof.
[0047] In the seventh aspect, an embodiment of the present application proposes a computer program product comprising instructions, which, when the computer program product runs on a computer, enables the method in the first aspect and its various possible implementations to be executed by the computer; or the method in the second aspect and its various possible implementations to be executed by the computer.
[0048] In an eighth aspect, an embodiment of the present application proposes a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method in the first aspect and its various possible implementations is executed; or the method in the second aspect and its various possible implementations is executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 A schematic diagram of the architecture of a wireless communication network provided in an embodiment of the present application;
[0051] Figure 2 A schematic diagram of the structure of a wireless electronic device provided in an embodiment of the present application;
[0052] Figure 3 A schematic diagram of the structure of a wireless AP provided in an embodiment of the present application;
[0053] Figure 4 A schematic diagram of a scenario in which a smart phone and a Wi-Fi router communicate with each other in an embodiment of the present application;
[0054] Figure 5 A schematic diagram of a method for quickly discovering a wireless access point provided in an embodiment of the present application;
[0055] Figure 6 A schematic diagram of a scenario in which a wireless STA and a wireless AP interact with each other according to an embodiment of the present application;
[0056] Figure 7 A schematic diagram of the structure of a wireless access point rapid discovery device provided in an embodiment of the present application;
[0057] Figure 8 Another structural schematic diagram of a wireless access point rapid discovery device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the specific implementation methods of the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0059] It should be noted that the term "and / or" in this application is only a kind of association relationship describing the associated objects, indicating that there may be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The terms "first" and "second" in the description and claims of the embodiments of this application are used to distinguish different objects, rather than to describe the specific order of objects. For example, the first sending module and the second sending module are used to distinguish different modules, rather than to describe the specific order of target objects. In the embodiments of this application, the words "exemplary", "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of this application should not be interpreted as having advantages over other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way. In the description of the embodiments of this application, unless otherwise specified, the meaning of "multiple" refers to two or more.
[0060] In one possible implementation, Wi-Fi can be deployed on multiple Wi-Fi working channels, and the Wi-Fi working channels can be scanned through passive scanning and / or active scanning. Since each Wi-Fi working channel is scanned, the wireless STA needs to wait for the wireless AP to respond, which takes a long time and the user experience is poor. In one possible implementation, before initiating an association to access the wireless network, the wireless STA interacts and negotiates with the wireless AP through a low-power BLE module, and the content of the interactive negotiation includes SSID, channel number and / or encryption method. This method is used to obtain the Wi-Fi working channel and other information of the wireless AP. However, if the wireless AP has been broadcasting its own related information through the BLE module periodically, there will be power consumption overhead and air interface resources will be occupied. If the wireless AP is triggered to work by sending a BLE detection frame on the wireless STA side, the BLE module of the wireless AP also needs to be turned on and in a listening state, resulting in a certain amount of power consumption overhead.
[0061] Figure 1 A schematic diagram of the architecture of a wireless communication network is shown, Figure 1 As shown, the architecture diagram includes a wireless electronic device and multiple wireless APs, namely wireless AP1, wireless AP2 and wireless AP3. The wireless electronic device and the three wireless APs are connected to each other through a wireless communication network.
[0062] In one possible implementation, the wireless electronic device has both a first Wi-Fi module and a first communication module. Both the first Wi-Fi module and the first communication module have short-range wireless communication functions. In one example, the first Wi-Fi module has a Wi-Fi function, and the first communication module has a BLE function. The wireless electronic device can be an electronic device such as a mobile phone, an iPad, or a portable laptop computer, which is not specifically limited in the embodiments of the present application.
[0063] In a possible implementation, the wireless AP has a second Wi-Fi module and a second communication module. Both the second Wi-Fi module and the second communication module have short-range wireless communication functions. In one example, the second Wi-Fi module has a Wi-Fi function, and the second communication module has a BLE function. The wireless AP can be a Wi-Fi router, a mobile phone, an iPad, or a portable laptop with a BLE function, which is not specifically limited in the embodiments of the present application.
[0064] In the embodiments of the present application, there is no specific limitation on the wireless electronic device and the wireless AP, but the wireless electronic device needs to have both a first Wi-Fi module and a first communication module, and the wireless AP needs to have both a second Wi-Fi module and a second communication module.
[0065] In a possible implementation, the present application is described in detail below by taking the wireless electronic device as a wireless STA, the first Wi-Fi module and the second Wi-Fi module having Wi-Fi functions, and the first communication module and the second communication module having BLE functions as an example.
[0066] Figure 2 A schematic diagram of the structure of a wireless STA is shown. The wireless STA may be the above-mentioned mobile phone, iPad or portable notebook computer.
[0067] like Figure 2 As shown, the wireless STA 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, a display screen 270, and a subscriber identity module (SIM) card interface 280, etc.
[0068] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the wireless STA 200. In other embodiments of the present application, the wireless STA 200 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0069] The processor 210 may include one or more processing units, for example, the processor 210 may include a central processing unit (CPU), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0070] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0071] The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.
[0072] In some embodiments, the processor 210 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, and / or a universal serial bus (USB) interface, etc.
[0073] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is a schematic illustration and does not constitute a structural limitation on the wireless STA 200. In other embodiments of the present application, the wireless STA 200 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0074] The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the wireless STA 200. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as audio data are stored in the external memory card.
[0075] The internal memory 221 may be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 210 executes various functional applications and data processing of the wireless STA 200 by running instructions stored in the internal memory 221 and / or instructions stored in a memory provided in the processor.
[0076] The wireless communication module 260 can be used for wireless communication through short-range wireless communication technologies such as BLE, Wi-Fi, Zigbee, InfraRED and Ultra Wide Band (UWB). For example, the first Wi-Fi module of the wireless STA can send a detection request message or a connection request to the second Wi-Fi module of the wireless AP. For another example, the first communication module of the wireless STA can receive its own related information broadcast by the second communication module of the wireless AP.
[0077] Figure 3 The schematic diagram of the structure of a wireless AP is shown. The wireless AP may be the above-mentioned Wi-Fi router.
[0078] like Figure 3 As shown, the wireless AP 300 may include a routing processor 310 , a wireless module 320 , a USB interface 330 , a memory 340 and a power module 350 .
[0079] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the wireless AP 300. In other embodiments of the present application, the wireless AP 300 may include more or fewer components than those shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0080] The routing processor 310 may be used to exchange routing information, perform routing table lookup, and forward data packets.
[0081] The wireless module 320 can be used for wireless communication through short-range wireless communication technologies such as BLE, Wi-Fi, Zigbee, InfraRED and Ultra Wide Band (UWB). For example, the second Wi-Fi module of the wireless AP can receive a detection request message or a connection request sent by the first Wi-Fi module of the wireless STA. For another example, the second communication module of the wireless AP can broadcast its own related information to the first communication module of the wireless STA.
[0082] The following uses a wireless STA as a smartphone and a wireless AP as a Wi-Fi router as an example to introduce the wireless access point fast discovery method provided in an embodiment of the present application.
[0083] Figure 4 FIG. 1 shows a schematic diagram of a scenario in which a smartphone communicates with a Wi-Fi router. Figure 4As shown, the execution subject includes a smart phone with a first Wi-Fi module and a first communication module and three Wi-Fi routers with a second Wi-Fi module and a second communication module respectively. In a possible implementation, when there is no user access to the Wi-Fi router, its second communication module is set not to send information, only to keep receiving or to turn off its second communication module to save power consumption.
[0084] In a possible implementation, the first Wi-Fi module of the smartphone determines the first Wi-Fi working channels of the three Wi-Fi routers, and sends a probe request message to at least one of the first Wi-Fi working channels, respectively. The probe request message includes the service set identifier SSID of the corresponding Wi-Fi router among the three Wi-Fi routers and the request identifier corresponding to the above SSID; the SSID carried can be one or more. The request identifier can be a random number, which is different from each other, and different SSIDs correspond to different request identifiers. In order to save the time for the smartphone to receive the broadcast information of the Wi-Fi router in the first communication channel list, the second Wi-Fi working channel identifier expected to be responded by the Wi-Fi router can also be carried in the probe request message. In addition, under normal circumstances, after the first Wi-Fi module of the smartphone sends a probe request message to the second Wi-Fi module of the Wi-Fi router, the second Wi-Fi module of the Wi-Fi router will respond. However, in an embodiment of the present application, in order to solve the problem that the smartphone needs to wait for a long time for the Wi-Fi router to respond, the above-mentioned detection request message also carries a first identifier, which is used to instruct the second communication module of the Wi-Fi router to respond on the first communication channel, and the second Wi-Fi module of the Wi-Fi router does not need to respond on the first Wi-Fi working channel.
[0085] After the second Wi-Fi module of the Wi-Fi router receives the detection request message through the first Wi-Fi working channel, it compares the SSID therein with its own SSID. One possible implementation method is that the SSID in the detection request message is the same as its own SSID, and the match is successful. The second communication module of the Wi-Fi router broadcasts the first information on the first communication channel, and the first information includes the request identifier corresponding to the successfully matched SSID and the second Wi-Fi working channel identifier. The above-mentioned first communication channel is the channel used when the first communication module of the smartphone communicates with the second communication module of the Wi-Fi router. After the first communication module of the smartphone monitors the first information through the first communication channel, it sends the first information to the first Wi-Fi module, the first Wi-Fi module stops sending the detection request message, and determines the second Wi-Fi working channel on which the first Wi-Fi module works according to the second Wi-Fi working channel identifier.
[0086] It should be noted that when a smartphone wants to connect to a Wi-Fi router, for example, when a user wants to use a smartphone to play games or watch TV series online, the user needs to know the unique identifier of the Wi-Fi router and connect to the Wi-Fi router through the unique identifier. In a possible implementation, the basic service set identifier (BSSID) of at least one Wi-Fi router may be carried in the first information; or the smartphone obtains the BSSID by sending a BSSID request to the Wi-Fi router.
[0087] In one possible implementation, after the smartphone receives the request identifier corresponding to the successfully matched SSID, it can be determined that the received first information is a response to the previously sent detection request message. The first Wi-Fi module of the smartphone sends a connection request to the Wi-Fi router corresponding to the BSSID via the second Wi-Fi working channel. After receiving the connection request, the second Wi-Fi module of the Wi-Fi router connects to the smartphone.
[0088] It should be noted that the closer the distance between the Wi-Fi router and the smartphone, the stronger the signal strength of the received detection request message. In order to make the wireless communication function between the smartphone and the Wi-Fi router better, select the Wi-Fi router closest to the smartphone for connection. Specifically, after the smartphone sends a detection request message to the Wi-Fi router through the first Wi-Fi working channel, the Wi-Fi router records the signal strength of the detection request message and feeds back the information of the signal strength of the detection request message to the smartphone. Thus, the smartphone can determine the Wi-Fi router closest to the smartphone among the Wi-Fi routers based on the information and connect to it. That is, the smartphone sends a connection request to the Wi-Fi router closest to the smartphone through the second Wi-Fi working channel. In another possible implementation, the position of the smartphone relative to the Wi-Fi router changes, and the Wi-Fi router closest to the smartphone among the Wi-Fi routers will be reselected for connection.
[0089] In a possible implementation, when the time for the second communication module of the Wi-Fi router to broadcast the first information is less than or equal to a preset time threshold and the smart phone is successfully connected to the Wi-Fi router, the broadcasting of the first information is stopped; or when the time for the second communication module of the Wi-Fi router to broadcast the first information is greater than a preset time threshold, the broadcasting of the first information is stopped.
[0090] It is understandable that the first communication module of the smartphone and the second communication module of the Wi-Fi router can be replaced by BLE, Zigbee, InfraRED or UWB. In the embodiment of the present application, the first communication module and the second communication module are not specifically limited.
[0091] In another possible implementation, the probe request message sent by the smartphone to the Wi-Fi router may carry the BSSID and the request identifier corresponding to the BSSID. The subsequent operation method and principle are the same as when the probe request message carries the SSID and the request identifier corresponding to the SSID.
[0092] Figure 5 A schematic diagram of a wireless access point rapid discovery method according to an embodiment of the present application is shown. Figure 4 The smartphone and Wi-Fi router in the scenario diagram shown implement the above method. The structural diagrams of the smartphone and the Wi-Fi router are shown in FIG. Figure 2 and Figure 3 As shown. Figure 5 In the wireless access point rapid discovery method shown, the first communication module of the wireless STA is a first BLE module, the second communication module of the wireless AP is a second BLE module, and the first communication channel is a fixed Bluetooth channel for communication between the first BLE module and the second BLE module.
[0093] like Figure 5 As shown, the smartphone wants to connect to one of the multiple Wi-Fi routers. The multiple Wi-Fi routers can be Wi-Fi routers with the same SSID or Wi-Fi routers with different SSIDs. In one possible implementation, S501, before the smartphone is connected to the Wi-Fi router, a part of the Wi-Fi routers has no user access, and the second BLE module is set to keep receiving and not send information or the second BLE module is set to be turned off, and the second Wi-Fi module keeps receiving but does not send messages, and does not respond even if a normal Probe Request detection message is received, so as to save power consumption.
[0094] In the embodiment of the present application, the second BLE module of the Wi-Fi router without user access is set to be turned off, that is, Figure 3 The second BLE modules of Wi-Fi router 1, Wi-Fi router 2 and Wi-Fi router 3 are turned off and are all in low power consumption.
[0095] In one possible implementation, S502, when the smartphone wants to connect to the Wi-Fi router, it sends a detection request message to the first Wi-Fi working channel, and uses its first BLE module to listen to the relevant information broadcast by the second BLE module of the Wi-Fi router on the fixed Bluetooth channel.
[0096] In an embodiment of the present application, when the smartphone wants to connect to one of Wi-Fi routers 1, Wi-Fi router 2 and Wi-Fi router 3, it uses its own first BLE module to monitor its own related information broadcasted by the second BLE modules of the three Wi-Fi routers on a fixed Bluetooth channel.
[0097] In a possible implementation, the first Wi-Fi module of the smart phone sends a probe request message to the first Wi-Fi working channel in turn, and the probe request message can be a Probe Request detection message carrying a private information element (Information Element, IE). The above-mentioned Probe Request detection message carrying a private IE carries a service set identifier (Service Set Identifier, SSID) and a request identifier corresponding to the above-mentioned SSID. The above-mentioned SSID can be the same SSID or a plurality of different SSIDs. The one or more SSIDs are used to compare with the SSID of the Wi-Fi router itself, so that the Wi-Fi router with the same SSID as the one or more SSIDs broadcasts its own information. In a possible implementation, the above-mentioned Probe Request detection message carrying a private IE also carries a fixed Bluetooth channel number to which the Wi-Fi router is expected to respond. For example, if the Wi-Fi router is expected to respond on the second fixed Bluetooth channel, the fixed Bluetooth channel number 2 is carried. The above detection request message also carries a first identifier, which is used to instruct the second BLE module of the Wi-Fi router to respond on a fixed Bluetooth channel, and the second Wi-Fi module of the Wi-Fi router does not respond on the first Wi-Fi working channel.
[0098] In an embodiment of the present application, the first Wi-Fi module of the smart phone sends a probe request message to the first Wi-Fi working channel. In one example, three Wi-Fi routers have the same SSID, namely SSID1, and the above probe request message carries one SSID, namely SSID1. In another example, Wi-Fi router 1 and Wi-Fi router 2 have the same SSID, namely SSID2, and Wi-Fi router 3 has a different SSID from Wi-Fi router 1 and Wi-Fi router 2, namely SSID3, and the above probe request message carries two different SSIDs, namely SSID3 and SSID4.
[0099] In a possible implementation, S503, after receiving the detection request message, the second Wi-Fi module of the Wi-Fi router determines whether to respond according to the first identifier in the detection request message.
[0100] In the embodiment of the present application, after the second Wi-Fi modules of Wi-Fi router 1, Wi-Fi router 2 and Wi-Fi router 3 receive the detection request message through the first Wi-Fi working channel, according to the indication of the first identifier in the detection request message, their second BLE modules respond on the fixed Bluetooth channel, and their second Wi-Fi modules do not respond on the first Wi-Fi working channel.
[0101] In a possible implementation, S504, the Wi-Fi router compares the SSID in the probe request message with the SSID of the Wi-Fi router itself. In one example, the SSID in the probe request message is the same as the SSID of the Wi-Fi router itself. The Wi-Fi router turns on the BLE module and broadcasts the first information (i.e., information related to itself) on a fixed Bluetooth channel. The first information includes the SSID and the second Wi-Fi working channel identifier. The first information is used to tell the smartphone some necessary information required to connect to the Wi-Fi router. In a possible implementation, after the second Wi-Fi module of the Wi-Fi router receives the probe request message through the first Wi-Fi working channel, it records the signal strength of the received probe request message. The signal strength of the received probe request message can be used to determine the distance between the Wi-Fi router and the smartphone. At the same time, the Wi-Fi router feeds back the information about the distance from the smartphone to the smartphone, so that the smartphone can evaluate each connectable Wi-Fi router to determine which Wi-Fi router to connect to. The SSIDs of multiple Wi-Fi routers can be the same, but the BSSID of the Wi-Fi router is unique and can be used to distinguish different Wi-Fi routers. Therefore, the above first information can also carry the BSSID or the smartphone sends a BSSID request to the Wi-Fi router and obtains the BSSID fed back by the Wi-Fi router. The second Wi-Fi working channel of the Wi-Fi router can be directly obtained according to the second Wi-Fi working channel identifier. The signal strength of the received detection request message directly reflects the distance between the smartphone and the Wi-Fi router. The stronger the signal strength received by the Wi-Fi router, the closer the smartphone is to the Wi-Fi router, and vice versa. Figure 4 As shown, the signal strength of the detection request message received by Wi-Fi router 1 is the strongest, which correspondingly indicates that the smart phone is closest to Wi-Fi router 1.
[0102] In one example, three Wi-Fi routers have the same SSID, namely SSID1, and the above-mentioned probe request message carries one SSID, namely SSID1. Wi-Fi router 1, Wi-Fi router 2, and Wi-Fi router 3 respectively compare their own SSID1 with the SSID1 in the probe request message. Since the SSID1 of the three Wi-Fi routers is the same as the SSID1 in the probe request message, the comparison is successful. The three Wi-Fi routers turn on the BLE module and broadcast the first information on a fixed Bluetooth channel. Among them, the first information carries a request identifier corresponding to SSID1 and a second Wi-Fi working channel identifier.
[0103] In another example, Wi-Fi router 1 and Wi-Fi router 2 have the same SSID, namely SSID2, and Wi-Fi router 3 has a different SSID from Wi-Fi router 1 and Wi-Fi router 2, namely SSID3. The above-mentioned probe request message carries two different SSIDs, namely SSID3 and SSID4. Wi-Fi router 1 and Wi-Fi router 2 compare their own SSID2 with SSID3 and SSID4 in the probe request message respectively, and find that the two SSIDs in the probe request message are not their own SSID2. Therefore, Wi-Fi router 1 and Wi-Fi router 2 do not broadcast information. Correspondingly, Wi-Fi router 3 compares its own SSID3 with SSID3 and SSID4 in the probe request message, and finds that SSID3 in the probe request message is the same as its own SSID3. Therefore, Wi-Fi router 3 broadcasts the first information. Among them, the above-mentioned first information carries the request identifier corresponding to SSID3 and the second Wi-Fi working channel identifier.
[0104] In a possible implementation, a first BLE module of a smart phone receives first information broadcasted by a second BLE module of at least one Wi-Fi router; S505, the first BLE module of the smart phone sends the first information to a first Wi-Fi module of the smart phone.
[0105] In a possible implementation, S506, after receiving the first information, the first Wi-Fi module of the smartphone stops sending the detection request message and selects a suitable Wi-Fi router for access. Specifically, according to the second Wi-Fi working channel identifier, the signal strength of the wireless access point, and the channel quality of the second Wi-Fi working channel corresponding to the second Wi-Fi working channel identifier, the second Wi-Fi working channel when the smartphone is connected to the Wi-Fi router is determined. In an example, the smartphone selects a Wi-Fi router for connection based on the signal strength of the Wi-Fi router and its weight and / or the channel quality of the second Wi-Fi working channel and its weight. In an embodiment of the present application, the signal strength can be represented by a numerical value, and the channel quality of the second Wi-Fi working channel can also be represented by a numerical value. For example, the signal strength value of Wi-Fi router 1 is 90, and the channel quality value is 90; the signal strength value of Wi-Fi router 2 is 78, and the channel quality value is 92; the signal strength value of Wi-Fi router 3 is 70, and the channel quality value is 80, and the weights of the above signal strength and channel quality are 0.5 respectively. The score of Wi-Fi router 1 is 90, the score of Wi-Fi router 2 is 85, and the score of Wi-Fi router 3 is 75, calculated by signal strength, channel quality, and their respective weights. Therefore, the smartphone will choose Wi-Fi router 1 with the highest score to connect. After that, the smartphone and Wi-Fi router 1 complete the access connection process according to the 802.11 standard protocol and can communicate and surf the Internet. The specific scenarios of smartphones interacting with Wi-Fi routers are as follows: Figure 6 shown.
[0106] It should be noted that when the time for the second BLE module of the Wi-Fi router to broadcast the first information is less than or equal to the preset time threshold and the smartphone is successfully connected to the Wi-Fi router, the second BLE module stops broadcasting the first information to save power consumption; or when the time for the second BLE module of the Wi-Fi router to broadcast the first information is greater than the preset time threshold, the second BLE module stops broadcasting the first information to save power consumption. In this way of cooperation between the Wi-Fi module and the BLE module, the smartphone sends a detection request message to wake up the Wi-Fi router with the same SSID as that in the detection request message, quickly discovers the second Wi-Fi working channel and related information of the Wi-Fi router, shortens the time to discover the Wi-Fi router, speeds up the speed at which users access the wireless LAN, improves network access efficiency, and enhances user experience. The second Wi-Fi module and the second BLE module of the Wi-Fi router are both in low power consumption when no user is connected. The second BLE module of the Wi-Fi router only works when it is triggered to broadcast its own related information, and is in low power consumption at other times.
[0107] It should be noted that the smartphone can determine the scanning triggering method based on information such as geographic location. For example, if it is determined to be in a fixed home scene or a fixed office location, the method described in this application can be used for scanning.
[0108] Based on the same technical concept, the embodiment of the present application also provides the following wireless access point rapid discovery device based on Wi-Fi and Bluetooth cooperation, which may include a module or unit corresponding to the method / operation / step / action of the STA or AP in the above method embodiment. The unit may be a hardware circuit, or software, or a combination of a hardware circuit and software.
[0109] Figure 7 A schematic diagram of the structure of a wireless access point rapid discovery device provided in an embodiment of the present application includes:
[0110] The first sending module 701 is used to send a detection request message to the first Wi-Fi working channel, wherein the detection request message includes one or more service set identifiers corresponding to the wireless access point and a request identifier corresponding to the one or more service set identifiers; wherein the request identifier is a random number, and different service set identifiers correspond to different request identifiers
[0111] A second sending module 702 is configured to stop sending the detection request message when receiving first information broadcast by the wireless access point in response to the detection request message through a first communication channel; wherein the first information includes at least one request identifier among the request identifiers corresponding to the one or more service set identifiers and a second Wi-Fi working channel identifier;
[0112] A determination module 703 is used to determine, according to the second Wi-Fi working channel identifier, a second Wi-Fi working channel when the electronic device is connected to the wireless access point;
[0113] The first connection module 704 is configured to determine, according to the at least one request identifier, to connect to the wireless access point via the second Wi-Fi working channel.
[0114] Figure 8 Another structural diagram of a wireless access point rapid discovery device provided in an embodiment of the present application includes:
[0115] A receiving module 801 is used to receive a detection request message sent by an electronic device through a first Wi-Fi working channel, wherein the detection request message includes one or more service set identifiers corresponding to a wireless access point and a request identifier corresponding to the one or more service set identifiers; wherein the request identifier is a random number, and different service set identifiers correspond to different request identifiers
[0116] A broadcast module 802, configured to broadcast first information on a first communication channel according to the received one or more service set identifiers, wherein the first information includes at least one request identifier among the request identifiers corresponding to the one or more service set identifiers and a second Wi-Fi working channel identifier;
[0117] The second connection module 803 is used to connect the electronic device via a second Wi-Fi working channel; wherein the second Wi-Fi working channel is determined according to a second Wi-Fi working channel identifier.
[0118] The embodiment of the present application provides an electronic device, which includes: a memory, a processor and a communication interface; the electronic device is used to perform the following Figure 5 The corresponding smart phone interacts with the Wi-Fi router in S502, S505 and S506.
[0119] The embodiment of the present application provides a wireless access point, which includes: a memory, a processor and a communication interface; the wireless access point is used to execute the following Figure 5 The corresponding smart phone interacts with the Wi-Fi router in S501, S503 and S504.
[0120] The present application embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, Figure 5 The corresponding steps of the smartphone interacting with the Wi-Fi router are performed.
[0121] Based on the same concept as the above method embodiment, the embodiment of the present application also provides a computer program product including instructions, when the computer program product is run on a computer, the computer executes the following Figure 5 The corresponding steps of the smartphone interacting with the Wi-Fi router.
[0122] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for quickly discovering a wireless access point, the method being applied to an electronic device including a first Wi-Fi module, the electronic device also including a first communication module, characterized in that: The method comprises: Sending a probe request message to the first Wi-Fi working channel, the probe request message including one or more service set identifiers corresponding to the wireless access point and a request identifier corresponding to the one or more service set identifiers; wherein the request identifier is a random number, and different service set identifiers correspond to different request identifiers; When receiving first information broadcasted by the wireless access point in response to the detection request message through a first communication channel, stopping sending the detection request message; wherein the first information includes at least one request identifier among the request identifiers corresponding to the one or more service set identifiers and a second Wi-Fi working channel identifier, and the first communication channel is a channel used when the first communication module of the electronic device communicates with the second communication module of the wireless access point; determining, according to the second Wi-Fi operating channel identifier, a second Wi-Fi operating channel when the electronic device is connected to the wireless access point; According to the at least one request identifier, it is determined to connect to the wireless access point via the second Wi-Fi working channel.
2. The method according to claim 1, characterized in that The detection request message further includes: a first identifier, and the first identifier is used to instruct the wireless access point to respond on the first communication channel.
3. The method according to claim 1 or 2, characterized in that: The first information also includes: a signal strength of a detection request message received by the wireless access point through the first Wi-Fi working channel; The method further comprises: The distance between the wireless access point and the electronic device is determined according to the signal strength of the detection request message received by the wireless access point through the first Wi-Fi working channel.
4. The method according to claim 3, characterized in that The first information also includes: a channel quality of a second Wi-Fi working channel corresponding to the second Wi-Fi working channel identifier; The determining, according to the second Wi-Fi working channel identifier, a second Wi-Fi working channel when the electronic device is connected to the wireless access point includes: The second Wi-Fi operating channel when the electronic device is connected to the wireless access point is determined according to the second Wi-Fi operating channel identifier, the distance between the wireless access point and the electronic device, and the channel quality of the second Wi-Fi operating channel corresponding to the second Wi-Fi operating channel identifier.
5. The method according to claim 1, 2 or 4, characterized in that: The first information also includes a basic service set identifier; or The method further comprises: Sending a basic service set identifier request to the wireless access point, and receiving a basic service set identifier fed back by the wireless access point; The connecting to the wireless access point through the second Wi-Fi working channel includes: A wireless access point corresponding to the basic service set identifier is connected via the second Wi-Fi working channel.
6. The method according to claim 3, characterized in that The first information also includes a basic service set identifier; or The method further comprises: Sending a basic service set identifier request to the wireless access point, and receiving a basic service set identifier fed back by the wireless access point; The connecting to the wireless access point through the second Wi-Fi working channel includes: A wireless access point corresponding to the basic service set identifier is connected via the second Wi-Fi working channel.
7. A method for quickly discovering a wireless access point, the method being applied to a wireless access point including a second Wi-Fi module, the wireless access point also including a second communication module, characterized in that: The method comprises: Receiving a detection request message sent by an electronic device through a first Wi-Fi working channel, the detection request message including one or more service set identifiers corresponding to a wireless access point and a request identifier corresponding to the one or more service set identifiers; wherein the request identifier is a random number, and different service set identifiers correspond to different request identifiers; broadcasting first information on a first communication channel according to the received one or more service set identifiers, the first information including at least one request identifier among the request identifiers corresponding to the one or more service set identifiers and a second Wi-Fi working channel identifier, the first communication channel being a channel used when a first communication module of the electronic device communicates with a second communication module of the wireless access point; The electronic device is connected via a second Wi-Fi working channel; wherein the second Wi-Fi working channel is determined according to a second Wi-Fi working channel identifier.
8. The method according to claim 7, characterized in that The detection request message further includes: a first identifier, and the first identifier is used to instruct the wireless access point to respond on the first communication channel.
9. The method according to claim 7 or 8, characterized in that: The broadcasting of the first information on the first communication channel according to the received one or more service set identifiers includes: The received one or more service set identifiers are compared with the service set identifier of the device itself, and if they are consistent, the first information is broadcasted on the first communication channel.
10. The method according to claim 7 or 8, characterized in that: After broadcasting the first information on the first communication channel, the method further includes: When the time for the wireless access point to broadcast the first information is less than or equal to the preset time threshold and the electronic device has been successfully connected to the wireless access point, stop broadcasting the first information; or When the time for the wireless access point to broadcast the first information is greater than a preset time threshold, the wireless access point stops broadcasting the first information.
11. The method according to claim 9, characterized in that After broadcasting the first information on the first communication channel, the method further includes: When the time for the wireless access point to broadcast the first information is less than or equal to the preset time threshold and the electronic device has been successfully connected to the wireless access point, stop broadcasting the first information; or When the time for the wireless access point to broadcast the first information is greater than a preset time threshold, the wireless access point stops broadcasting the first information.
12. A wireless access point rapid discovery device, characterized in that: include: A first sending module is configured to send a detection request message to a first Wi-Fi working channel, wherein the detection request message includes one or more service set identifiers corresponding to the wireless access point and a request identifier corresponding to the one or more service set identifiers; wherein the request identifier is a random number, and different service set identifiers correspond to different request identifiers; A second sending module, configured to stop sending the detection request message when receiving first information broadcast by the wireless access point in response to the detection request message through a first communication channel; wherein the first information includes at least one request identifier among the request identifiers corresponding to the one or more service set identifiers and a second Wi-Fi working channel identifier, and the first communication channel is a channel used when the first communication module of the electronic device communicates with the second communication module of the wireless access point; a determination module, configured to determine, according to the second Wi-Fi working channel identifier, a second Wi-Fi working channel when the electronic device is connected to the wireless access point; The first connection module is used to determine, according to the at least one request identifier, to connect to the wireless access point via the second Wi-Fi working channel.
13. A wireless access point rapid discovery device, characterized in that: include: A receiving module, configured to receive a detection request message sent by an electronic device through a first Wi-Fi working channel, wherein the detection request message includes one or more service set identifiers corresponding to a wireless access point and a request identifier corresponding to the one or more service set identifiers; wherein the request identifier is a random number, and different service set identifiers correspond to different request identifiers; a broadcast module, configured to broadcast first information on a first communication channel according to the received one or more service set identifiers, the first information including at least one request identifier among the request identifiers corresponding to the one or more service set identifiers and a second Wi-Fi working channel identifier, the first communication channel being a channel used when the first communication module of the electronic device communicates with the second communication module of the wireless access point; The second connection module is used to connect the electronic device via a second Wi-Fi working channel; wherein the second Wi-Fi working channel is determined according to a second Wi-Fi working channel identifier.
14. An electronic device, characterized in that: The electronic device comprises: a memory, a processor and a communication interface; The electronic device is used to execute the wireless access point rapid discovery method as described in any one of claims 1-6.
15. A wireless access point, characterized in that: The wireless access point includes: a memory, a processor and a communication interface; The wireless access point is used to execute the wireless access point rapid discovery method as described in any one of claims 7 to 11.
16. A computer program product comprising instructions, characterized in that When the computer program product runs on a computer, the method according to any one of claims 1 to 6 is executed by the computer; or the method according to any one of claims 7 to 11 is executed by the computer.
17. A computer-readable storage medium, characterized in that: The computer readable storage medium stores a computer program, and when the computer program is executed by the processor, The method according to any one of claims 1 to 6 is executed; or The method according to any one of claims 7 to 11 is performed.
Citation Information
Patent Citations
Network configuration method and device
CN106856609A
Network access method, device and system
CN108260186A
