Method for establishing wireless connection, AP, STA and wireless communication system

Through the AP at the DTIM interval and select the channel for sending the Beacon package, and open the RX window after completing the Beacon package sending, solve the problem that the Wireless connection time with AP is established with the AP after STA restart, and realize the STA and APs. Fast wireless connection between them.

CN119364558AActive Publication Date: 2025-01-24ZHUHAI HUGE IC CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411510795.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-01-24
Estimated Expiration
2044-10-28

AI Technical Summary

Technical Problem

In the prior art, it takes a long time to establish a wireless connection with the AP after the STA restarts. It is mainly because the AP is in a low-power mode and only listens to the connection requests within a specific time window, making it difficult for the STA to send the connection requests at a suitable time.

Method used

When the current DTIM interval is coming, the identification of the actual working channel is the first letter of the first letter, and select the channel of the Beacon package based on the recognition results. Beacon bag carrys the channel logo of the actual working channel. The AP opens the RX window after completing the BEACON package sending. After the STA restarts, it is determined whether to set the fast connection mode. If it is, sends a connection request in order in the preset channel list. Work channel.

Benefits of technology

Through intelligent selection of channels sent by the Beacon package and carrying channel logo, the probability and accuracy of the STA receiving Beacon package is improved, the time for the STA to find the AP actual work channel, improve the response speed of the connection request, realize the STA and APs Quick wireless connection between the intercourse.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119364558A_ABST
    Figure CN119364558A_ABST
Patent Text Reader

Abstract

The invention discloses a method for establishing wireless connection, an AP, an STA and a wireless communication system, and relates to the field of wireless communication. According to the technical scheme provided by the invention, after the STA is restarted, for the AP in the low-power-consumption mode, the STA preferentially monitors in the first channel, so that the time for the STA to find the actual working channel of the AP is further shortened. Once the STA receives the beacon packet of the AP through the first channel and analyzes the actual working channel, the STA can immediately send a connection request on the channel. And after receiving the connection request in the RX window, the AP quickly returns a connection response, so that quick wireless connection between the STA and the AP is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communications, and in particular to a method for establishing a wireless connection, an AP, a STA, and a wireless communication system. Background Art

[0002] In the field of wireless communications, access points (APs) are battery-powered mobile devices that usually enter low-power mode to improve energy efficiency and extend battery life when the amount of data transmitted is small. This mode achieves energy saving by reducing the activity frequency and power consumption of the AP, and is particularly suitable for application scenarios that rely on battery power and need to run for a long time.

[0003] However, this energy-saving strategy faces a significant challenge in practical applications. When a station (STA), a normally powered device that communicates with an AP, restarts due to special conditions (such as power failure or temporary power off for its own energy-saving needs), it will follow the preset communication protocol and send connection requests one by one in its currently configured frequency list until it receives a connection response from the AP and establishes a connection. During this process, the STA does not have specific information about the AP's current active frequency, so its connection request may be sent to a frequency that the AP is not monitoring.

[0004] To make matters more complicated, an AP in low-power mode only sends beacon frames on its currently active single frequency within a specific time window, and opens a receive (RX) window during this period to listen for connection requests from STAs. This means that the conditions for a STA to successfully send a connection request and be received by the AP are extremely demanding: the request must be sent on its active frequency at the precise moment when the AP wakes up and opens the RX window. This limitation greatly reduces the probability that a STA can quickly and effectively connect to an AP after restarting, thus affecting the connection efficiency and user experience of the entire wireless communication system. Summary of the invention

[0005] The embodiment of the present application provides a method and device for establishing a wireless connection, which can solve the problem in the prior art that it takes a long time for a STA to establish a wireless connection with an AP after restarting. The technical solution is as follows:

[0006] In a first aspect, an embodiment of the present application provides a method for establishing a wireless connection, the method comprising:

[0007] When the current DTIM interval arrives, the AP identifies whether the actual working channel is the preset first channel;

[0008] If yes, the beacon packet is sent using the first channel; if no, the AP sends the beacon packet using the currently used channel and the first channel; the beacon packet carries the channel identifier of the actual working channel;

[0009] The AP opens an RX window after completing the sending of the beacon packet, and monitors within the RX window;

[0010] After executing the restart operation, the STA determines whether to set the fast connection mode, and if so, sends a connection request in each channel in the preset channel list in sequence;

[0011] If no connection response based on the connection request is received from the AP, the STA monitors in the first channel;

[0012] If the STA receives a beacon packet from the AP through the first channel within a preset time period, the STA parses the channel identifier carried in the beacon packet to obtain an actual working channel of the AP;

[0013] The STA sends a connection request on the actual working channel of the AP;

[0014] When the AP receives a connection request from the STA within the opened RX window, it returns a connection response to the STA, thereby establishing a wireless connection between the AP and the STA.

[0015] In a second aspect, an embodiment of the present application provides an AP, including:

[0016] An identification unit, used for identifying whether the actual working channel is the preset first channel when the current DTIM interval arrives;

[0017] a sending unit, configured to send a beacon packet using the first channel if the answer is yes; and to send a beacon packet using the currently used channel and the first channel if the answer is no; the beacon packet carries a channel identifier of an actual working channel;

[0018] A monitoring unit, configured to open an RX window after completing the sending of a beacon packet, and to monitor in the RX window; wherein, after executing the restart operation, the STA determines whether to set the fast connection mode, and if so, sends a connection request in each channel in a preset channel list in sequence; if no connection response based on the connection request is received from the AP, the STA monitors in the first channel; if the STA receives a beacon packet from the AP through the first channel within a preset time length, the STA parses the channel identifier carried in the beacon packet to obtain the actual working channel of the AP; the STA sends a connection request on the actual working channel of the AP;

[0019] The receiving unit is used to return a connection response to the STA when receiving a connection request from the STA within the opened RX window, so as to establish a wireless connection between the AP and the STA.

[0020] In a third aspect, an embodiment of the present application provides a STA, including:

[0021] a determination unit, configured to determine whether to set a quick connection mode after executing the restart operation, and if yes, to send a connection request in each channel in a preset channel list in sequence;

[0022] a monitoring unit, configured to monitor, by the STA, the first channel if no connection response based on the connection request is received from the AP;

[0023] A parsing unit, configured to receive a beacon packet from the AP through the first channel within a preset time period, and parse the channel identifier carried in the beacon packet to obtain an actual working channel of the AP;

[0024] A sending unit is used to send a connection request on the actual working channel of the AP; wherein, when the AP receives a connection request from the STA within the opened RX window, it returns a connection response to the STA, thereby establishing a wireless connection between the AP and the STA.

[0025] In a fourth aspect, an embodiment of the present application provides a wireless communication system, including:

[0026] The AP is used to identify whether the actual working channel is the preset first channel when the current DTIM interval arrives; if yes, send a beacon packet using the first channel; if not, send a beacon packet using the currently used channel and the first channel; the beacon packet carries the channel identifier of the actual working channel; after completing the sending of the beacon packet, open an RX window and monitor in the RX window;

[0027] The STA is used to determine whether to set the fast connection mode after performing the restart operation, and if so, send a connection request in each channel in a preset channel list in sequence; if no connection response based on the connection request is received from the AP, the STA monitors in the first channel; if the STA receives a beacon packet from the AP through the first channel within a preset time, the STA parses the channel identifier carried in the beacon packet to obtain the actual working channel of the AP; the STA sends a connection request on the actual working channel of the AP;

[0028] The AP is further configured to return a connection response to the STA when receiving a connection request from the STA within the opened RX window, so as to establish a wireless connection between the AP and the STA.

[0029] In a fifth aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.

[0030] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:

[0031] The AP can identify whether the actual working channel is the preset first channel, and select the channel to send the beacon packet accordingly. This intelligent selection ensures that the beacon packet can be sent on the channel that the STA is most likely to monitor, thereby increasing the probability that the STA receives the beacon packet. Each beacon packet carries the channel identifier of the actual working channel, which enables the STA to immediately obtain the current working channel information of the AP after receiving the beacon packet without the need for additional channel scanning. After the AP completes the transmission of the beacon packet, it will open an RX window for monitoring in preparation for receiving the connection request from the STA. This mechanism can reduce the waiting time of the AP and improve the response speed of the connection request. After the STA restarts, for the AP in low power mode, the STA will give priority to monitoring on the first channel, which further shortens the time it takes for the STA to find the actual working channel of the AP. Once the STA receives the beacon packet from the AP through the first channel and parses the actual working channel, it can immediately send a connection request on the channel. After receiving the connection request within the RX window, the AP will quickly return a connection response, thereby achieving a fast wireless connection between the STA and the AP. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] 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.

[0033] Figure 1 is a schematic diagram of the wireless communication system architecture provided by an embodiment of the present application;

[0034] Figure 2 is a flowchart of a method for establishing a wireless connection provided in an embodiment of the present application;

[0035] Figure 3 is a timing diagram of the interaction between the AP and the STA provided in the embodiment of the present application;

[0036] Figure 4 is a schematic diagram of the structure of an access point provided in an embodiment of the present application;

[0037] Figure 5 is a schematic diagram of the structure of a site provided in an embodiment of the present application;

[0038] Figure 6 It is a structural diagram of a communication device provided by the present application. DETAILED DESCRIPTION

[0039] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0040] refer to Figure 1 , Figure 1 The wireless communication system includes at least one STA site (site 11 to site 13) and an AP access point 21.

[0041] Among them, the site in the embodiment of the present application can be a smart phone, a tablet computer, a gaming device, an AR (Augmented Reality) device, a car, a data storage device, an audio playback device, a video playback device, a notebook, a desktop computing device, a wearable device such as an electronic watch, an electronic glasses, an electronic helmet, an electronic bracelet, an electronic necklace, electronic clothing and other devices.

[0042] The following will be combined with the attached Figure 2 , a method for establishing a wireless connection provided in an embodiment of the present application is introduced in detail.

[0043] See also Figure 2 , which is a flow chart of a method for establishing a wireless connection according to an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps:

[0044] S201. When a DTIM interval arrives, the AP identifies whether the actual working channel is a preset first channel.

[0045] The DTIM interval occurs periodically, and the length of the DTIM interval can be set according to actual needs. The AP maintains a timer inside to track the remaining time of the DTIM interval. The DTIM interval is a time period used in a wireless network to indicate when multicast and broadcast messages can be sent. When the DTIM interval arrives, the AP's processor checks whether the channel currently in use is the same as the preset first channel (for example, the first channel can be numbered 1, 6, or 11, which have better communication performance in the 2.4GHz band).

[0046] S202: If yes, use the first channel to send the beacon packet; if no, use the currently used channel and the first channel to send the beacon packet.

[0047] The AP determines whether the actual working channel is the first channel, and the AP processor generates one or more beacon packets. If the actual working channel is the first channel, only one beacon packet is sent on the channel; if the actual working channel is not the first channel, the beacon packet is sent on both the actual working channel and the first channel. The beacon packet contains basic information of the AP (such as SSID, supported rates, security settings, etc.) and the identifier of the actual working channel. The wireless network interface of the AP sends the generated beacon packet to the corresponding channel.

[0048] S203: The AP opens an RX window on the actual working channel and monitors in the RX window.

[0049] The AP processor sets an RX window on the actual working channel. The window is a time period during which the AP's wireless network interface will be in a receiving state, ready to receive data packets from STAs. During the RX window, the AP's wireless network interface continuously monitors data packets on the channel and is ready to process received data packets.

[0050] S204 . After executing the restart operation, the STA determines whether to set the fast connection mode. If yes, it sends a connection request in each channel in the preset channel list in sequence.

[0051] Among them, the STA completes its restart process. The reasons for the restart may include: power outage, failure, restoring network configuration, loading drivers, etc. The STA checks its configuration settings, especially whether the fast connection mode is enabled. The fast connection mode is an optimization mechanism that allows the STA to reconnect to a known AP more quickly after a restart. If the fast connection mode is enabled, the STA will follow a specific connection process, including sending connection requests in sequence in a preset channel list.

[0052] S205: If no connection response based on the connection request is received from the AP, the STA monitors in the first channel.

[0053] If the STA is in fast connection mode, it will try to send a connection request on each channel in the preset channel list order. If a connection request is sent on a channel but no connection response is received from the AP, the STA will switch to the next channel to continue trying. If the STA fails to successfully connect through any channel in the preset channel list, it will switch to the preset first channel for monitoring. During the monitoring period, if the STA receives a beacon packet from the AP within the preset duration, it will parse the packet to obtain the actual working channel of the AP.

[0054] S206: If a beacon packet sent by the AP using the first channel is received within a preset time period, the STA parses the channel identifier carried in the beacon packet to obtain an actual working channel of the AP.

[0055] In the preset time period, the wireless network interface of the STA receives the beacon packet sent from the AP on the first channel. The processor of the STA parses the received beacon packet and extracts key information therein: the identifier of the actual working channel.

[0056] S207: The STA sends a connection request on the actual working channel of the AP.

[0057] Among them, according to the actual working channel identifier obtained by parsing, the wireless network interface of the STA switches to the channel currently used by the AP. The processor of the STA generates a connection request data packet, which contains the MAC address of the STA, the SSID requested for connection, and other necessary connection parameters. The wireless network interface of the STA sends the connection request data packet to the channel currently used by the AP.

[0058] S208. When the AP receives a connection request from the STA in the opened RX window, the AP returns a connection response to the STA, thereby establishing a wireless connection between the AP and the STA.

[0059] Among them, during the RX window, the wireless network interface of the AP receives a connection request data packet from the STA. The processor of the AP verifies the validity of the connection request data packet, including checking whether the requested SSID matches the SSID of the AP, verifying whether the MAC address of the STA is in the allowed list, etc. If the connection request is valid, the processor of the AP generates a connection response data packet, which contains a confirmation of the connection request and possible connection parameters (such as encryption keys, IP addresses, etc.). Then, the wireless network interface of the AP sends the connection response data packet to the STA. After receiving the connection response data packet, the STA configures its wireless network interface according to the parameters therein, thereby establishing a wireless connection with the AP. At this point, the STA and the AP can perform normal data transmission within the RX window.

[0060] For example, see Figure 3 The timing diagram of the interaction between STA and AP is shown.

[0061] Different colors in the figure represent the current working frequency. Assume that there are four frequencies in the frequency list and the AP works on channel 2. In the AP low power mode, after the AP enables the fast connection parameters, it will send beacon packets to the STA at intervals on the actual working channel and also send a beacon packet carrying the AP's current channel information on channel 1 in the current frequency list. If the AP is in channel 1, it will not send beacons repeatedly. After sending the beacon packet, the AP will open a receiving window on the actual working channel. After the STA enables the fast connection parameters, the restarted STA will wait for the beacon packet on channel 1 in the current frequency list. After receiving the beacon packet carrying the AP's current channel information, the STA locks the frequency to the AP's frequency and sends a connection request. After receiving the connection request, the AP responds and successfully establishes a connection with the STA.

[0062] In some embodiments of the present application, it also includes:

[0063] Step a: In normal mode, when the AP detects that the battery power is less than the power threshold, it sends a working state switching notification to the associated STA.

[0064] The AP is powered by a battery, and contains a battery power monitoring module inside the AP. This module obtains the current battery power in real time or periodically by reading the data of the battery power sensor or the battery management system. The AP compares the monitored battery power with a preset power threshold. This threshold is usually set based on factors such as the power consumption characteristics of the AP, the battery capacity, and the expected operating time. If the battery power is lower than the threshold, the AP's processor will generate a working state switching notification, which may include the AP's MAC address, a notification of entering low power mode, and the remaining power percentage. The AP broadcasts the working state switching notification to all STAs through the wireless network interface.

[0065] Step b: The associated STA receives the working state switching notification, updates the working mode of the AP to the low power consumption mode, and sends the working state switching confirmation to the AP.

[0066] Among them, the wireless network interface of the STA listens to the broadcast message from the AP and receives the working state switching notification. The processor of the STA parses the received working state switching notification and extracts key information, such as the MAC address of the AP and the notification of entering the low power mode. Based on the parsed information, the STA updates its internal record of the AP working mode and marks the AP as low power mode. The STA generates a working state switching confirmation, which contains the confirmation of the working state switching notification and the understanding that the AP is about to enter the low power mode. Then, the STA sends the working state switching confirmation to the AP through the wireless network interface.

[0067] Step c: When the AP receives the working state switching confirmation generated by the associated STA based on the working state switching notification, it switches to the low power consumption mode.

[0068] Among them, the wireless network interface of the AP receives the working state switching confirmation from the STA. The processor of the AP parses the working state switching confirmation, verifies whether it comes from a known STA, and confirms whether the message content is consistent with the working state switching notification sent previously. If the working state switching confirmation is valid, the processor of the AP triggers a series of operations to switch to low power mode, such as shutting down unnecessary hardware components, reducing the processor clock frequency, reducing the transmission power of the wireless network interface, etc.

[0069] In some embodiments of the present application, when the STA does not receive a beacon packet from the AP through the first channel within a preset time period, it sends a connection request in sequence in a preset channel list.

[0070] Among them, if the STA does not receive the AP's beacon through the first channel within the preset time, the STA will send a connection request in sequence according to each channel in the preset channel list. The channel list may contain all channels that the AP may use, or a subset based on historical data, network configuration, or a standard channel set. In each channel, the STA will listen to whether a connection response is received from the AP after sending a connection request. The connection request contains the necessary information such as the STA's identity information and connection parameters so that the AP can identify and respond to the connection request. After receiving the STA's connection request, the AP will perform a series of verification and configuration operations, and then return a connection response to the STA. The connection response confirms the STA's access authority and contains the necessary network configuration information. Once the STA receives this connection response, it is considered that a wireless connection with the AP has been successfully established.

[0071] In some embodiments of the present application, when the AP detects that the current battery power is greater than the power threshold, it remains in the normal mode.

[0072] The AP detects its battery charge periodically or as needed. This is usually done by reading a battery charge sensor or querying the status of a battery management system. To determine when to switch from normal mode to low power mode, the AP presets a charge threshold. This threshold is set based on factors such as the AP's battery capacity, expected service life, network requirements, and user preferences. When the AP detects that the current battery charge is greater than the preset charge threshold, it continues to operate in normal mode. In normal mode, the AP performs full network functions, including sending beacon packets, processing connection requests, forwarding data packets, etc. Conversely, if the AP detects that the battery charge is below the charge threshold, it may switch to low power mode to extend battery life. In low power mode, the AP may reduce the frequency of sending beacon packets, limit network functions, or take other energy-saving measures. Before the AP switches from normal mode to low power mode (or vice versa), it may notify other devices in the network (such as STA) by sending specific network messages or updating its status information. This helps ensure that devices in the network can understand the current status of the AP in a timely manner and make corresponding adjustments. In addition, STA allows users to set power thresholds, monitor the battery power and mode status of the AP through a specific configuration interface or management tool, and adjust these settings as needed to optimize network performance and battery life.

[0073] In some embodiments of the present application, when the AP detects that the background noise of the actual working channel is greater than the noise threshold, it re-queries the channel with the best channel instruction in the preset channel list, and sends a channel switching notification to the STA that establishes a wireless connection. The channel switching notification carries the channel identifier and channel switching time point of the channel with the best channel quality. The channel switching notification is used to instruct the STA to switch the actual working channel to the channel indicated by the channel identifier at the channel switching time point.

[0074] Among them, the AP will detect the background noise level of the actual working channel regularly or as needed. This is usually achieved by measuring the signal strength on the channel, analyzing the spectrum usage, or using other noise detection technologies. In order to determine when it is necessary to switch channels, the AP will preset a noise threshold. This threshold is set based on factors such as network requirements, channel quality standards, and user preferences. When the AP detects that the background noise of the actual working channel is greater than the preset noise threshold, it will query and select the channel with the best channel quality in the preset channel list. Channel quality may be evaluated based on a variety of factors, such as signal-to-interference ratio (SIR), signal-to-noise ratio (SNR), throughput, delay, etc. Once the optimal channel is selected, the AP will send a channel switching notification to the STA that has established a wireless connection. This notification contains the channel identifier (such as the channel number) of the channel with the best channel quality and the channel switching time point. The channel switching time point refers to the specific time when both the AP and the STA agree to switch to the new channel. After receiving the channel switching notification, the STA will switch its actual working channel to the new channel indicated in the notification at the specified channel switching time point. This usually involves reconfiguring the wireless network interface of the STA to match the parameters of the new channel. After the channel switch is complete, the AP and STA need to ensure that they have successfully synchronized to the new channel and verify that the connection is still valid. This may require sending additional synchronization messages or performing connection tests.

[0075] In an embodiment of the present application, the AP can identify whether the actual working channel is the preset first channel, and select the channel for sending the beacon packet accordingly. This intelligent selection ensures that the beacon packet can be sent on the channel that the STA is most likely to monitor, thereby increasing the probability that the STA receives the beacon packet. Each beacon packet carries the channel identifier of the actual working channel, which enables the STA to immediately obtain the current working channel information of the AP after receiving the beacon packet without performing additional channel scanning. After the AP completes the transmission of the beacon packet, it will open an RX window for monitoring to prepare to receive the connection request from the STA. This mechanism can reduce the waiting time of the AP and improve the response speed of the connection request. After the STA restarts, for the AP in low power mode, the STA will give priority to monitoring on the first channel, which further shortens the time for the STA to find the actual working channel of the AP. Once the STA receives the beacon packet of the AP through the first channel and parses the actual working channel, it can immediately send a connection request on the channel. After the AP receives the connection request in the RX window, it will quickly return a connection response, thereby realizing a fast wireless connection between the STA and the AP.

[0076] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0077] See also Figure 4 , which shows a schematic diagram of the structure of an access point provided by an exemplary embodiment of the present application, hereinafter referred to as access point 4. Access point 4 includes: an identification unit 401, a sending unit 402, a monitoring unit 403, and a receiving unit 404.

[0078] The identification unit 401 is used to identify whether the actual working channel is the preset first channel when the current DTIM interval arrives;

[0079] The sending unit 402 is configured to send a beacon packet using the first channel if the answer is yes; and send a beacon packet using the currently used channel and the first channel if the answer is no; the beacon packet carries a channel identifier of an actual working channel;

[0080] The monitoring unit 403 is used to open an RX window after completing the sending of the beacon packet, and to monitor in the RX window; wherein, after performing the restart operation, the STA determines whether to set the fast connection mode, and if so, sends a connection request in each channel in the preset channel list in sequence; if no connection response based on the connection request is received from the AP, the STA monitors in the first channel; if the STA receives a beacon packet from the AP through the first channel within a preset time length, the STA parses the channel identifier carried in the beacon packet to obtain the actual working channel of the AP; the STA sends a connection request on the actual working channel of the AP;

[0081] The receiving unit 404 is configured to return a connection response to the STA when receiving a connection request from the STA within the opened RX window, so as to establish a wireless connection between the AP and the STA.

[0082] See also Figure 5 , which shows a schematic diagram of the structure of a site provided by an exemplary embodiment of the present application, hereinafter referred to as site 5. Site 5 includes: a determining unit 501, a monitoring unit 502, a parsing unit 503, and a sending unit 504.

[0083] The determining unit 501 is used to determine whether to set the quick connection mode after performing the restart operation, and if yes, send a connection request in each channel in the preset channel list in sequence;

[0084] A monitoring unit 502, configured to monitor, by the STA, the first channel if no connection response based on the connection request is received from the AP;

[0085] A parsing unit 503, configured to receive a beacon packet from the AP through the first channel within a preset time period, and parse the channel identifier carried in the beacon packet to obtain an actual working channel of the AP;

[0086] The sending unit 504 is used to send a connection request on the actual working channel of the AP; wherein, when the AP receives a connection request from the STA within the opened RX window, it returns a connection response to the STA, thereby establishing a wireless connection between the AP and the STA.

[0087] It should be noted that the access point 4 and the station 5 provided in the above embodiment only use the division of the above functional modules as an example when executing the method for establishing a wireless connection. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the above functions. In addition, the method for establishing a wireless connection provided in the above embodiment belongs to the same concept, and its implementation process is detailed in the method embodiment, which will not be repeated here.

[0088] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0089] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 2 The method steps of the embodiment shown in the figure can be found in the specific implementation process. Figure 2 The specific description of the illustrated embodiment will not be repeated here.

[0090] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the method for establishing a wireless connection as described in the above embodiments.

[0091] See also Figure 6 , is a schematic diagram of the structure of a communication device provided in an embodiment of the present application. Figure 6 As shown, the communication device 600 is Figure 1 The access point or station in may include: at least one processor 601, at least one wireless interface 604, a memory 603, and at least one communication bus 602.

[0092] The communication bus 602 is used to realize the connection and communication between these components.

[0093] The wireless interface 604 may optionally include a standard WI-FI interface for communicating with external devices.

[0094] Among them, the processor 601 may include one or more processing cores. The processor 601 uses various interfaces and lines to connect the various parts of the entire communication device 600, and executes various functions and processes data of the communication device 600 by running or executing instructions, programs, code sets or instruction sets stored in the memory 603, and calling data stored in the memory 603. Optionally, the processor 601 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 601 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 601, and it can be implemented separately through a chip.

[0095] Among them, the memory 603 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 603 includes a non-transitory computer-readable storage medium. The memory 603 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 603 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 603 may optionally be at least one storage device located away from the aforementioned processor 601. As Figure 6 As shown, the memory 603 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program.

[0096] exist Figure 6 The processor 601 shown can be used to call the application program stored in the memory 603 and specifically execute the following Figure 2The specific process can be referred to Figure 2 As shown, no further description is given here.

[0097] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0098] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A method for establishing a wireless connection, characterized in that: include: When the current DTIM interval arrives, the AP identifies whether the actual working channel is the preset first channel; If yes, send a beacon packet using the first channel; If not, the AP sends a beacon packet using the currently used channel and the first channel; the beacon packet carries a channel identifier of the actual working channel; The AP opens an RX window after completing the sending of the beacon packet, and monitors within the RX window; After executing the restart operation, the STA determines whether to set the fast connection mode, and if so, sends a connection request in each channel in the preset channel list in sequence; If no connection response based on the connection request is received from the AP, the STA monitors in the first channel; If the STA receives a beacon packet from the AP through the first channel within a preset time period, the STA parses the channel identifier carried in the beacon packet to obtain an actual working channel of the AP; The STA sends a connection request on the actual working channel of the AP; When the AP receives a connection request from the STA within the opened RX window, it returns a connection response to the STA, thereby establishing a wireless connection between the AP and the STA.

2. The method according to claim 1, characterized in that Also includes: In normal mode, when the AP detects that the battery power is less than the power threshold, it sends a working state switching notification to the associated STA; The associated STA receives the working state switching notification, updates the working mode of the AP to a low power consumption mode, and sends a working state switching confirmation to the AP; When the AP receives a working state switching confirmation generated by the associated STA based on the working state switching notification, the AP switches to the low power consumption mode.

3. The method according to claim 2, characterized in that Also includes: When the AP detects that the current battery power is greater than the power threshold, it remains in normal mode.

4. The method according to claim 1, characterized in that: Also includes: When the AP detects that the background noise of the actual working channel is greater than the noise threshold, it re-queries the channel with the best channel quality in the preset channel list, and sends a channel switching notification to the STA that has established a wireless connection. The channel switching notification carries the channel identifier and channel switching time point of the channel with the best channel quality. The channel switching notification is used to instruct the STA to switch the actual working channel to the channel indicated by the channel identifier at the channel switching time point.

5. The method according to claim 1, characterized in that Also includes: If the STA does not receive a beacon packet from the AP through the first channel within a preset time period, it sends a connection request in each channel in the preset channel list in turn. If a connection response from the AP is received in a certain channel, a wireless connection with the AP is established.

6. The method according to claim 1, characterized in that The AP sends a plurality of beacon packets using a first channel.

7. The method according to claim 1, characterized in that The default duration is 5 seconds and the length of the DTIM interval is 1 second.

8. An AP, characterized in that: include: An identification unit, used for identifying whether the actual working channel is the preset first channel when the current DTIM interval arrives; a sending unit, configured to send a beacon packet using the first channel if the answer is yes; If not, sending a beacon packet using the currently used channel and the first channel; The beacon packet carries the channel identifier of the actual working channel; A monitoring unit, configured to open an RX window after completing the sending of a beacon packet, and to monitor in the RX window; wherein, after executing the restart operation, the STA determines whether to set the fast connection mode, and if so, sends a connection request in each channel in a preset channel list in sequence; if no connection response based on the connection request is received from the AP, the STA monitors in the first channel; if the STA receives a beacon packet from the AP through the first channel within a preset time length, the STA parses the channel identifier carried in the beacon packet to obtain the actual working channel of the AP; the STA sends a connection request on the actual working channel of the AP; The receiving unit is used to return a connection response to the STA when receiving a connection request from the STA within the opened RX window, so as to establish a wireless connection between the AP and the STA.

9. A STA, characterized in that: include: a determination unit, configured to determine whether to set a quick connection mode after executing the restart operation, and if yes, to send a connection request in each channel in a preset channel list in sequence; a monitoring unit, configured to monitor, by the STA, the first channel if no connection response based on the connection request is received from the AP; A parsing unit, configured to receive a beacon packet from the AP through the first channel within a preset time period, and parse the channel identifier carried in the beacon packet to obtain an actual working channel of the AP; A sending unit is used to send a connection request on the actual working channel of the AP; wherein, when the AP receives a connection request from the STA within the opened RX window, it returns a connection response to the STA, thereby establishing a wireless connection between the AP and the STA.

10. A wireless communication system, characterized in that: include: AP and STA; The AP is used to identify whether the actual working channel is the preset first channel when the current DTIM interval arrives; If yes, send a beacon packet using the first channel; If not, sending a beacon packet using the currently used channel and the first channel; the beacon packet carries the channel identifier of the actual working channel; after completing the sending of the beacon packet, opening an RX window, and monitoring in the RX window; The STA is used to determine whether to set the fast connection mode after performing the restart operation, and if yes, send a connection request in each channel in the preset channel list in sequence; If no connection response based on the connection request is received from the AP, the STA monitors in the first channel; If the STA receives a beacon packet from the AP through the first channel within a preset time period, the STA parses the channel identifier carried in the beacon packet to obtain an actual working channel of the AP; The STA sends a connection request on the actual working channel of the AP; The AP is further configured to return a connection response to the STA when receiving a connection request from the STA within the opened RX window, so as to establish a wireless connection between the AP and the STA.

Citation Information

Patent Citations

  • Access point control method and device, storage medium and access point

    CN118158783A

  • Communication terminal and computer-readable storage medium

    US20080254841A1