A method, ap, sta and wireless communication system for establishing a wireless connection
By sending beacon packets carrying the working channel identifier through the AP and starting RX window listening, combined with the STA's fast connection mode, the problem of long connection time between the STA and the AP after restarting is solved, and fast wireless connection is achieved.
Patent Information
- Application Number
- CN202411510795.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2044-10-28
Smart Images

Figure CN119364558B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wireless communication, and more particularly to a method for establishing a wireless connection, an access point (AP), a standby point (STA), and a wireless communication system. Background Technology
[0002] In the field of wireless communication, access points (APs), as battery-powered mobile devices, typically enter a low-power mode when transmitting relatively small amounts of data to improve energy efficiency and extend battery life. This mode achieves energy saving by reducing the frequency of AP activity and power consumption, and is particularly suitable for applications that rely on battery power and require long-term operation.
[0003] However, this energy-saving strategy faces a significant challenge in practical applications. When a station (STA) that communicates with the AP restarts due to special circumstances (such as a power outage restart or a temporary power shutdown for its own energy-saving needs), it will follow a preset communication protocol, sending connection requests one by one from 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 currently active frequencies, so its connection request may be sent to frequencies that the AP is not listening to.
[0004] To complicate matters further, the AP in low-power mode transmits beacon frames only on its currently active single frequency within a specific time window, during which time it opens its receive (RX) window to listen for connection requests from STAs. This means that the conditions for a STA to successfully send a connection request and have it received by the AP are extremely stringent: the request must be sent on its active frequency at the precise moment the AP wakes up and opens its RX window. This limitation significantly reduces the probability that a STA can quickly and effectively connect to the AP after a reboot, thus impacting the connection efficiency and user experience of the entire wireless communication system. Summary of the Invention
[0005] This application provides a method and apparatus for establishing a wireless connection, which can solve the problem of long time consumption in the prior art when establishing a wireless connection between the STA and the AP after restarting. The technical solution is as follows:
[0006] In a first aspect, embodiments of this application provide 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 AP sends a beacon packet using the first channel; if no, the AP sends a beacon packet using the currently used channel and the first channel; the beacon packet carries the channel identifier of the actual working channel.
[0009] After completing the transmission of the beacon packet, the AP opens an RX window and listens within the RX window.
[0010] After performing a restart operation, the STA determines whether to set a fast connection mode. If so, it sends connection requests 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 will listen 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 the actual working channel of the AP;
[0013] The STA sends a connection request on the actual operating channel of the AP;
[0014] When the AP receives a connection request from the STA within the open RX window, it returns a connection response to the STA, thereby establishing a wireless connection between the AP and the STA.
[0015] Secondly, embodiments of this application provide an AP, including:
[0016] The identification unit is used to identify whether the actual working channel is the preset first channel when the current DTIM interval arrives;
[0017] The sending unit is configured to send a beacon packet using the first channel if the condition is met; otherwise, 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.
[0018] A listening unit is used to open an RX window after completing the transmission of a beacon packet and to listen within the RX window. After performing a restart operation, the STA determines whether a fast connection mode is set. If so, it sequentially sends connection requests to various channels in a preset channel list. If no connection response based on the connection request is received from the AP, the STA listens on 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 the actual operating channel of the AP. The STA then sends a connection request on the actual operating channel of the AP.
[0019] The receiving unit is used to return a connection response to the STA when it receives a connection request from the STA in the open RX window, thereby establishing a wireless connection between the AP and the STA.
[0020] Thirdly, embodiments of this application provide a STA, including:
[0021] The determining unit is used to determine whether to set the fast connection mode after the restart operation is performed. If so, it sends connection requests to each channel in the preset channel list in turn.
[0022] A listening unit is configured to listen in the first channel if no connection response based on the connection request is received from the AP.
[0023] The parsing unit is used to receive a beacon packet from the AP within a preset time period through the first channel, and to parse the channel identifier carried in the beacon packet to obtain the actual working channel of the AP.
[0024] The transmitting unit is used to send a connection request on the actual operating channel of the AP; wherein, when the AP receives a connection request from the STA within the open RX window, it returns a connection response to the STA, thereby establishing a wireless connection between the AP and the STA.
[0025] Fourthly, embodiments of this application provide a wireless communication system, including:
[0026] The AP is used to identify whether the actual working channel is a preset first channel when the current DTIM interval arrives; if yes, it sends a beacon packet using the first channel; if no, it sends 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 the beacon packet is sent, an RX window is opened, and listening is performed in the RX window;
[0027] The STA, after performing a restart operation, determines whether a fast connection mode is set. If so, it sequentially sends connection requests to each channel in a preset channel list. If no connection response based on the connection request is received from the AP, the STA listens on 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 then sends a connection request on the actual working channel of the AP.
[0028] The AP is also configured to return a connection response to the STA when it receives a connection request from the STA within the open RX window, thereby establishing a wireless connection between the AP and the STA.
[0029] Fifthly, embodiments of this application provide a computer storage medium storing a plurality of instructions adapted for loading by a processor and executing the above-described method steps.
[0030] The beneficial effects of the technical solutions provided in some embodiments of this application include at least the following:
[0031] The AP can identify whether the actual operating channel is the preset first channel and select the channel to send beacon packets accordingly. This intelligent selection ensures that the beacon packets are sent on the channel that the STA is most likely to listen on, thereby increasing the probability of the STA receiving the beacon packets. Each beacon packet carries the channel identifier of the actual operating channel, allowing the STA to immediately obtain the AP's current operating channel information after receiving the beacon packet without performing additional channel scanning. After completing the transmission of the beacon packet, the AP opens an RX window to listen, preparing to receive connection requests from the STA. This mechanism reduces the AP's waiting time and improves the response speed of connection requests. After restarting, for APs in low-power mode, the STA will prioritize listening on the first channel, which further shortens the time for the STA to find the AP's actual operating channel. Once the STA receives the AP's beacon packet through the first channel and parses out the actual operating channel, it can immediately send a connection request on that channel. After receiving the connection request in the RX window, the AP will quickly return a connection response, thus achieving a fast wireless connection between the STA and the AP. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0033] Figure 1 This is a schematic diagram of the wireless communication system architecture provided in an embodiment of this application;
[0034] Figure 2 This is a flowchart illustrating the method for establishing a wireless connection provided in an embodiment of this application;
[0035] Figure 3 This is a timing diagram showing the interaction between the AP and STA provided in an embodiment of this application;
[0036] Figure 4 This is a schematic diagram of the access point structure provided in an embodiment of this application;
[0037] Figure 5 This is a schematic diagram of the site structure provided in the embodiments of this application;
[0038] Figure 6 This is a schematic diagram of the structure of a communication device provided in this application. Detailed Implementation
[0039] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0040] refer to Figure 1 , Figure 1 This is a network architecture diagram of a wireless communication system. The wireless communication system includes at least one STA site (site 11 to site 13) and AP access point 21.
[0041] In this application embodiment, the site can be a smartphone, tablet, gaming device, AR (Augmented Reality) device, car, data storage device, audio playback device, video playback device, laptop, desktop computing device, wearable device such as electronic watch, electronic glasses, electronic helmet, electronic bracelet, electronic necklace, electronic clothing, etc.
[0042] The following will be combined with the appendix Figure 2 The method for establishing a wireless connection provided in the embodiments of this application will be described in detail.
[0043] Please see Figure 2 This is a flowchart illustrating a method for establishing a wireless connection, as provided in an embodiment of this application. Figure 2 As shown, the method described in this application embodiment may include the following steps:
[0044] S201. When the DTIM interval arrives, the AP identifies whether the actual working channel is the preset first channel.
[0045] The DTIM interval occurs periodically, and its length can be set according to actual needs. The AP maintains an internal timer to track the remaining time of the DTIM interval. The DTIM interval is a time period in a wireless network used to indicate when multicast and broadcast messages can be sent. When a DTIM interval arrives, the AP's processor checks whether the currently used channel is the same as the preset first channel (e.g., the first channel number can be 1, 6, or 11, these channels have better communication performance in the 2.4GHz band).
[0046] S202. If yes, send a beacon packet using the first channel; if no, send a beacon packet using the currently used channel and the first channel.
[0047] The AP determines whether the actual operating channel is the first channel, and its processor generates one or more beacon packets. If the actual operating channel is the first channel, only one beacon packet is sent on that channel; if the actual operating channel is not the first channel, beacon packets are sent on both the actual operating channel and the first channel. The beacon packet contains basic AP information (such as SSID, supported speeds, security settings, etc.) and an identifier of the actual operating channel. The AP's wireless network interface then sends the generated beacon packet to the corresponding channel.
[0048] S203, the AP opens an RX window on the actual working channel and listens within the RX window.
[0049] Specifically, the AP's processor sets an RX window on the actual operating channel. This window is a time period during which the AP's wireless network interface is in receive mode, ready to receive data packets from the STA. During the RX window, the AP's wireless network interface continuously listens for data packets on the channel and prepares to process the received data packets.
[0050] After performing a reboot, S204 and STA determine whether a fast connection mode is set. If so, they send connection requests to each channel in the preset channel list in sequence.
[0051] The STA completes its reboot process, which may be due to reasons such as power outage, malfunction, network configuration restoration, or driver loading. The STA checks its configuration settings, particularly whether Fast Connect Mode is enabled. Fast Connect Mode is an optimization mechanism that allows the STA to reconnect to known APs more quickly after a reboot. If Fast Connect Mode is enabled, the STA will follow a specific connection procedure, including sending connection requests sequentially from a pre-defined list of channels.
[0052] S205. If no connection response based on the connection request is received from the AP, the STA will listen in the first channel.
[0053] In fast connection mode, the STA will attempt to send connection requests on each channel in a pre-defined channel list. If a connection request is sent on a channel but no connection response is received from the AP, the STA will move on to the next channel to continue trying. If the STA fails to connect successfully through any channel in the pre-defined channel list, it will switch to the first pre-defined channel to listen. During the listening period, if the STA receives a beacon packet from the AP within a pre-defined time, it will parse the packet to obtain the AP's actual operating channel.
[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 the actual working channel of the AP.
[0055] Within a preset time period, the STA's wireless network interface receives beacon packets sent by the AP on the first channel. The STA's processor parses the received beacon packets and extracts key information, including the identifier of the actual operating channel.
[0056] S207 and STA send connection requests on the actual operating channel of the AP.
[0057] Based on the parsed actual operating channel identifier, the STA's wireless network interface switches to the channel currently used by the AP. The STA's processor generates a connection request packet, which contains the STA's MAC address, the SSID of the requested connection, and other necessary connection parameters. The STA's wireless network interface then sends the connection request packet to the channel currently used by the AP.
[0058] When the AP receives a connection request from the STA in the open RX window, it returns a connection response to the STA, thus establishing a wireless connection between the AP and the STA.
[0059] During the RX window, the AP's wireless network interface receives connection request packets from the STA. The AP's processor verifies the validity of the connection request packets, including checking if the requested SSID matches the AP's SSID and verifying if the STA's MAC address is in the allowed list. If the connection request is valid, the AP's processor generates a connection response packet, which contains confirmation of the connection request and possible connection parameters (such as encryption keys, IP addresses, etc.). The AP's wireless network interface then sends the connection response packet to the STA. Upon receiving the connection response packet, the STA configures its wireless network interface according to the parameters, thereby establishing a wireless connection with the AP. At this point, the STA and AP can perform normal data transmission within the RX window.
[0060] For example, see Figure 3 The timing diagram shown illustrates the interaction between the STA and AP.
[0061] In the diagram, different colors represent the current operating frequency. Assume there are four frequency points in the list, and the AP is operating on channel 2. In the AP's low-power mode, after enabling the fast connection parameter, the AP will send beacon packets to the STA at regular intervals on the actual operating channel. It will also send a beacon packet carrying the AP's current channel information on channel 1 of the current frequency point list. If the AP is already on channel 1, it will not send a beacon packet repeatedly. After sending the beacon packet, the AP will open a receive window on the actual operating channel. After enabling the fast connection parameter, the STA will restart and wait to receive beacon packets on channel 1 of the current frequency point list. After receiving the beacon packet carrying the AP's current channel information, the STA will lock onto the AP's frequency point and send a connection request. Upon receiving the connection request, the AP will respond and successfully establish a connection with the STA.
[0062] In some embodiments of this application, it also includes:
[0063] Step a: In normal mode, when the AP detects that the battery level is lower than the power threshold, it sends a working state switching notification to the associated STA.
[0064] The access point (AP) is powered by a battery and includes a battery monitoring module. This module reads data from the battery power sensor or battery management system to obtain the current battery level in real time or periodically. The AP compares the monitored battery level with a preset power threshold. This threshold is typically set based on factors such as the AP's power consumption characteristics, battery capacity, and expected runtime. If the battery level falls below the threshold, the AP's processor generates a state transition notification. This message may include the AP's MAC address, a notification that it is about to enter low-power mode, and the remaining battery percentage. The AP broadcasts this state transition notification to all STAs (Stations) via the wireless network interface.
[0065] Step b: The associated STA receives the working state switching notification, updates the AP's working mode to low power mode, and sends a working state switching confirmation to the AP.
[0066] The STA's wireless network interface listens for broadcast messages from the AP and receives operating state switching notifications. The STA's processor parses the received notifications, extracting key information such as the AP's MAC address and the notification that it is about to enter low-power mode. Based on this information, the STA updates its internal record of the AP's operating mode, marking the AP as low-power. The STA generates an operating state switching confirmation message, which acknowledges the notification and confirms that the AP is about to enter low-power mode. Then, the STA sends the confirmation to the AP via the wireless network interface.
[0067] Step c: When the AP receives a working state switching confirmation generated by the associated STA based on the working state switching notification, it switches to low power mode.
[0068] The AP's wireless network interface receives a state transition confirmation from the STA. The AP's processor parses the confirmation, verifies if it originates from a known STA, and confirms that the message content matches the previously sent state transition notification. If the confirmation is valid, the AP's processor triggers a series of operations to switch to low-power mode, such as disabling unnecessary hardware components, reducing the processor clock frequency, and decreasing the transmit power of the wireless network interface.
[0069] In some embodiments of this application, when the STA does not receive a beacon packet from the AP within a preset time period through the first channel, it sequentially sends a connection request in a preset channel list.
[0070] If the STA fails to receive a beacon from the AP within a preset timeframe via the first channel, it will sequentially send connection requests through each channel in a preset channel list. This channel list may contain all channels the AP might use, or a subset based on historical data, network configuration, or a standard channel set. On each channel, the STA listens for a connection response from the AP after sending the connection request. The connection request includes the STA's identity information, connection parameters, and other necessary information so the AP can recognize and respond to it. Upon receiving the STA's connection request, the AP performs a series of verification and configuration operations, then returns a connection response to the STA. This response confirms the STA's access rights and includes necessary network configuration information. Once the STA receives this connection response, it considers a successful wireless connection with the AP established.
[0071] In some embodiments of this application, when the AP detects that the current battery level is greater than a power threshold, it remains in normal mode.
[0072] The access point (AP) periodically or as needed checks its battery level. This is typically done by reading the battery level sensor or querying the battery management system. To determine when to switch from normal mode to low-power mode, the AP presets a battery level threshold. This threshold is set based on factors such as the AP's battery capacity, expected lifespan, network requirements, and user preferences. When the AP detects that the current battery level is higher than the preset threshold, it continues to operate in normal mode. In normal mode, the AP performs full network functions, including sending beacon packets, processing connection requests, and forwarding data packets. Conversely, if the AP detects that the battery level is lower than the 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 switching from normal mode to low-power mode (or vice versa), the AP may notify other devices in the network (such as STAs) by sending specific network messages or updating its status information. This helps ensure that devices in the network are aware of the AP's current status and can make appropriate adjustments. In addition, STA allows users to set power thresholds, monitor AP battery level and mode status 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 this 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 optimal channel command 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 of the channel with the optimal channel quality and the channel switching time point. 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] The Access Point (AP) periodically or as needed detects the background noise level of its operating channel. This is typically done by measuring signal strength on the channel, analyzing spectrum usage, or using other noise detection techniques. To determine when a channel switch is necessary, the AP presets 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 its operating channel exceeds the preset noise threshold, it searches a list of channels and selects the one with the best channel quality. Channel quality may be evaluated based on various factors, such as signal-to-interference ratio (SIR), signal-to-noise ratio (SNR), throughput, and latency. Once the optimal channel is selected, the AP sends a channel switch notification to the STAs with established wireless connections. This notification includes the channel identifier (e.g., channel number) of the channel with the best quality and the channel switch time. The channel switch time refers to the specific time when both the AP and the STA agree to switch to the new channel. Upon receiving the channel switch notification, the STA switches its operating channel to the new channel indicated in the notification at the specified channel switch time. This typically involves reconfiguring the STA's wireless network interface to match the parameters of the new channel. After the channel switch is complete, the AP and STA need to ensure 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 embodiments of this application, the AP can identify whether the actual operating channel is a preset first channel and select the channel to send beacon packets accordingly. This intelligent selection ensures that the beacon packets are sent on the channel that the STA is most likely to listen to, thereby increasing the probability that the STA will receive the beacon packets. Each beacon packet carries the channel identifier of the actual operating channel, which allows the STA to immediately obtain the AP's current operating channel information after receiving the beacon packet without performing additional channel scanning. After completing the transmission of the beacon packet, the AP opens an RX window to listen, preparing to receive connection requests from the STA. This mechanism can reduce the AP's waiting time and improve the response speed of connection requests. After restarting, for APs in low-power mode, the STA will prioritize listening on the first channel, which further shortens the time for the STA to find the AP's actual operating channel. Once the STA receives the AP's beacon packet through the first channel and parses out the actual operating channel, it can immediately send a connection request on that channel. After receiving the connection request in the RX window, the AP will quickly return a connection response, thereby realizing a fast wireless connection between the STA and the AP.
[0076] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0077] Please see Figure 4 This diagram illustrates the structure of an access point provided in an exemplary embodiment of this application, hereinafter referred to as access point 4. Access point 4 includes: an identification unit 401, a sending unit 402, a listening 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 condition is met; otherwise, 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.
[0080] The listening unit 403 is used to open an RX window after completing the transmission of the beacon packet, and to listen within the RX window. After performing a restart operation, the STA determines whether a fast connection mode is set. If so, it sequentially sends connection requests to each channel in a preset channel list. If no connection response based on the connection request is received from the AP, the STA listens on 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 the actual operating channel of the AP. The STA then sends a connection request on the actual operating channel of the AP.
[0081] The receiving unit 404 is used to return a connection response to the STA when it receives a connection request from the STA in the open RX window, thereby establishing a wireless connection between the AP and the STA.
[0082] Please see Figure 5 This illustration shows a schematic diagram of the structure of a site provided in an exemplary embodiment of this application, hereinafter referred to as site 5. Site 5 includes: a determining unit 501, a listening unit 502, a parsing unit 503, and a sending unit 504.
[0083] The determining unit 501 is used to determine whether a fast connection mode is set after the restart operation is performed. If so, it sends connection requests in each channel in the preset channel list in sequence.
[0084] The monitoring unit 502 is configured to monitor the first channel if no connection response based on the connection request is received from the AP.
[0085] The parsing unit 503 is used to receive a beacon packet from the AP within a preset time period through the first channel, and to parse the channel identifier carried in the beacon packet to obtain the actual working channel of the AP.
[0086] The transmitting unit 504 is used to transmit a connection request on the actual operating channel of the AP; wherein, when the AP receives a connection request from the STA within the open 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 above embodiments of access point 4 and station 5, when executing the method for establishing a wireless connection, are only illustrative examples of the division of the above functional modules. In practical 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 embodiments of the method for establishing a wireless connection provided above belong to the same concept, and the implementation process is detailed in the method embodiments, which will not be repeated here.
[0088] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0089] This application also provides a computer storage medium that can store multiple instructions, which are adapted to be loaded and executed by a processor as described above. Figure 2 The method steps of the illustrated embodiment can be found in the following documentation for detailed execution. Figure 2 The specific details of the illustrated embodiments will not be elaborated here.
[0090] This application also provides a computer program product that stores at least one instruction, which is loaded and executed by the processor to implement the method for establishing a wireless connection as described in the above embodiments.
[0091] Please see Figure 6 The diagram below provides a structural schematic of a communication device according to an embodiment of this application. Figure 6 As shown, the communication device 600 is Figure 1 The access point or station may include: at least one processor 601, at least one wireless interface 604, memory 603, and at least one communication bus 602.
[0092] The communication bus 602 is used to enable communication between these components.
[0093] The wireless interface 604 may optionally include a standard Wi-Fi interface for communicating with external devices.
[0094] The processor 601 may include one or more processing cores. The processor 601 connects to various parts within the communication device 600 using various interfaces and lines, and performs 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 by calling data stored in the memory 603. Optionally, the processor 601 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 601 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display on the screen; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 601 and may be implemented as a separate chip.
[0095] The memory 603 may include random access memory (RAM) or read-only memory. Optionally, the memory 603 may include a non-transitory computer-readable storage medium. The memory 603 can be used to store instructions, programs, code, 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 touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 603 may also be at least one storage device located remotely from the aforementioned processor 601. Figure 6 As shown, the memory 603, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and application programs.
[0096] exist Figure 6 The processor 601 shown can be used to call the application program stored in the memory 603 and specifically execute, such as... Figure 2The method shown can be referred to for details. Figure 2 As shown, it will not be elaborated further here.
[0097] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory, or random access memory, etc.
[0098] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this 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 so, send a beacon packet using the first channel; If not, the AP uses the currently used channel and the first channel to send beacon packets; the beacon packets carry the channel identifier of the actual working channel; After completing the transmission of the beacon packet, the AP opens an RX window and listens within the RX window. After performing a reboot, the STA determines whether a fast connection mode is set. If so, it sends connection requests to 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 will listen 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 the actual working channel of the AP; The STA sends a connection request on the actual operating channel of the AP; When the AP receives a connection request from the STA within the open 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 level is lower 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 AP's working mode to low power mode, and sends the AP working state switching confirmation. When the AP receives a working state switching confirmation generated by the associated STA based on the working state switching notification, it switches to low power mode.
3. The method according to claim 2, characterized in that, Also includes: When the AP detects that the current battery level 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 searches the preset channel list again for the channel with the best channel quality and sends a channel switching notification to the STA that has established a wireless connection. The channel switching notification carries the channel identifier of the channel with the best channel quality and the channel switching time point. 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 within a preset time period via the first channel, it sequentially sends a connection request in each channel of the preset channel list. If a connection response is received from the AP in a certain channel, a wireless connection with the AP is established.
6. The method according to claim 1, characterized in that, The AP uses the first channel to send multiple beacon packets.
7. The method according to claim 1, characterized in that, The preset duration is 5 seconds, and the DTIM interval is 1 second.
8. An AP, characterized in that, include: The identification unit is used to identify whether the actual working channel is the preset first channel when the current DTIM interval arrives; A sending unit, configured to, if yes, send a beacon packet using the first channel; If not, send beacon packets using the currently used channel and the first channel; The beacon packet carries the channel identifier of the actual operating channel; The listening unit is used to open an RX window after completing the transmission of the beacon packet and to listen within the RX window. After performing a restart operation, the STA determines whether a fast connection mode is set. If so, it sequentially sends connection requests to each channel in a preset channel list. If no connection response based on the connection request is received from the AP, the STA listens on 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 the actual operating channel of the AP. The STA then sends a connection request on the actual operating channel of the AP. The receiving unit is used to return a connection response to the STA when it receives a connection request from the STA in the open RX window, thereby establishing a wireless connection between the AP and the STA.
9. A STA, characterized in that, include: The determining unit is used to determine whether to set the fast connection mode after the restart operation is performed. If so, it sends connection requests to each channel in the preset channel list in turn. The monitoring unit is used to monitor the first channel if no connection response based on the connection request is received from the AP. The parsing unit is used to receive a beacon packet from the AP within a preset time period through the first channel, and to parse the channel identifier carried in the beacon packet to obtain the actual working channel of the AP. The transmitting unit is used to send a connection request on the actual operating channel of the AP; wherein, when the AP receives a connection request from the STA within the open 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 so, send a beacon packet using the first channel; If not, a beacon packet is sent using the currently used channel and the first channel; the beacon packet carries the channel identifier of the actual working channel; after the beacon packet is sent, an RX window is opened, and listening is performed within the RX window; The STA is used to determine whether to set a fast connection mode after performing a restart operation. If so, it sends connection requests 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 will listen 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 the actual working channel of the AP; The STA sends a connection request on the actual operating channel of the AP; The AP is also configured to return a connection response to the STA when it receives a connection request from the STA within the open RX window, thereby establishing 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