Connection method, device, storage medium and station of access point
By switching to sleep mode and sending broadcast frames using a pre-configured target channel when the access point is disconnected, the site can quickly establish a WiFi connection after detecting that the access point has been restored, thus solving the problems of high power consumption and slow response time and extending battery life.
Patent Information
- Application Number
- CN202310142118.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2043-02-21
AI Technical Summary
In IoT systems, the power consumption of a site is high when the access point is disconnected, and the response time for the site to establish a WiFi connection is slow when the access point is reconnected.
When the site detects that the access point is disconnected, it runs hibernation code, switches to hibernation mode, and periodically sends broadcast frames through a pre-configured target channel; if it receives a response frame from the access point within a preset time, it runs normal code, switches to normal mode, and establishes a WiFi connection.
It reduces the connection response time of the site without increasing standby power consumption, thus improving the battery life of the site and access point.
Smart Images

Figure CN116156435B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wireless communication, and in particular to a method, apparatus, storage medium, and station for hibernation and wake-up. Background Technology
[0002] In IoT systems, Wi-Fi communication is increasingly being used. A station and an access point (AP) maintain their connection with the server through a keep-alive mechanism. The station periodically sends keep-alive packets to the server while in sleep mode, and the server responds by sending a keep-alive response packet back to the station. If an access point loses connection, the station scans various channels to detect available access points. Since IoT stations and access points are typically battery-powered, frequent channel scanning increases power consumption and shortens the station's battery life. Furthermore, the station may not be able to reconnect to the access point promptly when it reconnects. Summary of the Invention
[0003] This application provides a method, apparatus, storage medium, and site for site hibernation and wake-up, which can solve the problems of high power consumption of the site when the access point is disconnected and slow response time for the site to establish a WiFi connection when the access point is reconnected in related technologies. The technical solution is as follows:
[0004] In a first aspect, embodiments of this application provide a connection method for an access point, the method comprising:
[0005] When an access point disconnection is detected, a sleep code is executed, and the system switches to sleep mode based on the sleep code.
[0006] Broadcast frames are periodically sent through a pre-configured target channel;
[0007] If a response frame is received from the access point via the target channel within a preset time period, normal code is executed, and the system switches to normal mode based on the normal code, and a WiFi connection is established with the access point.
[0008] In one possible design, the hibernation code is stored in a first memory, and the normal code is stored in a second memory.
[0009] In one possible design, the step of switching to normal mode based on the normal code and establishing a WiFi connection with the access point includes:
[0010] Based on the normal code, the main processor is instructed to power on, so that the main processor can establish a WiFi connection with the access point through the WiFi module.
[0011] One possible design also includes:
[0012] Configure the target channel for the access point and site.
[0013] One possible design also includes:
[0014] If no response frame is received from the access point within the preset time period, broadcast frames will continue to be sent periodically through the pre-configured target channel.
[0015] In one possible design, the broadcast frames are sent at 5-second intervals.
[0016] In one possible design, the preset duration is 3 to 5 milliseconds.
[0017] Secondly, embodiments of this application provide a connection device for an access point, the connection device for the access point comprising:
[0018] The detection unit is used to run sleep code when it detects that the access point has lost connection, and to switch to sleep mode based on the sleep code;
[0019] A transmitting unit is used to periodically transmit broadcast frames through a pre-configured target channel;
[0020] The connection unit is configured to, if it receives a response frame sent by the access point through the target channel within a preset time period, run normal code, switch to normal mode based on the normal code, and establish a WiFi connection with the access point.
[0021] Thirdly, this application provides a connection device for an access point, comprising:
[0022] The detection unit is used to run sleep code when it detects that the access point has lost connection, and to switch to sleep mode based on the sleep code;
[0023] A transmitting unit is used to periodically transmit broadcast frames through a pre-configured target channel;
[0024] The connection unit is configured to, if it receives a response frame sent by the access point through the target channel within a preset time period, run normal code, switch to normal mode based on the normal code, and establish a WiFi connection with the access point.
[0025] Fourthly, 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.
[0026] Fifthly, embodiments of this application provide a site that may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to execute the above-described method steps.
[0027] The beneficial effects of the technical solutions provided in some embodiments of this application include at least the following:
[0028] When the site detects a disconnection at the access point, it runs a sleep code to enter sleep mode and sends a broadcast frame through a pre-configured target channel. If a response frame from the access point is received through the target channel within a preset time, the site runs a normal code to deactivate the sleep state, enter normal mode, and establish a WiFi connection with the access point. Since both the access point and the site are battery powered, this application establishes a WiFi connection through a pre-configured target channel, which can reduce the site's connection response time without increasing the standby power consumption of the site and the access point, thus improving the battery life of the site and the access point. Attached Figure Description
[0029] 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.
[0030] Figure 1 This is an architecture diagram of the WiFi wireless communication system provided in the embodiments of this application;
[0031] Figure 2 This is an interactive schematic diagram of an access point connection method provided in an embodiment of this application;
[0032] Figure 3 This is a timing diagram of a site experiencing a disconnection at the access point, provided in an embodiment of this application.
[0033] Figure 4 This is a schematic diagram of the structure of a connection device for an access point provided in this application;
[0034] Figure 5 This is another structural schematic diagram of a connection device for an access point provided in this application. Detailed Implementation
[0035] 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.
[0036] refer to Figure 1 , Figure 1 This is a network architecture diagram of a wireless fidelity communication system. The system includes at least one station (stations 11-13), access point 21, and server 31. When a station establishes a WiFi connection with an access point, and detects a disconnection at the access point, it executes a sleep code and switches to sleep mode based on the sleep code; it periodically sends broadcast frames through a pre-configured target channel; if it receives a response frame from the access point via the target channel within a preset time, it executes a normal code, switches to normal mode based on the normal code, and establishes a WiFi connection with the access point.
[0037] 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.
[0038] The following will be combined with the appendix Figure 2 This application provides a detailed description of the access point connection method provided in the embodiments of this application. The access point connection method in the embodiments of this application can be... Figure 1 The site or access point in the middle.
[0039] Please see Figure 2 This is a flowchart illustrating a connection method for an access point provided in an embodiment of this application. Figure 2 As shown, site 11 includes a main control module 111 and a WiFi module 112. The main control module 111 mainly performs control functions, used to control various components in the site, and the WiFi module is used to transmit WiFi signals. The method described in this application may include the following steps:
[0040] S201. When an access point disconnection is detected, run the hibernation code and switch to hibernation mode.
[0041] Both the access point and the station are battery powered. Access point disconnections are typically caused by deliberate power-saving actions, such as when there has been no data transmission for an extended period. In normal mode, the station successfully establishes a WiFi connection with the access point and runs normal code, which is the complete program code built into the access point. When the station detects a power outage at the access point in normal mode, it runs hibernation code and disables normal code. After successfully running hibernation code, it switches from normal mode to hibernation mode.
[0042] In one possible embodiment, the method for a site to detect an access point disconnection can be as follows: the site measures the RSSI (Received Signal Strength Indicator) of the access point in real time, and calculates the RSSI change rate in real time based on the collected RSSI. For example, if the RSSI measured at time t1 is R1 and the RSSI measured at time T2 is R2, then the RSSI change rate is the absolute value of (R2-R1) / (t2-t1). Since the RSSI measured by the STA drops rapidly to zero after the AP suddenly disconnects, the RSSI change rate will suddenly increase. If the RSSI change rate is greater than the change rate threshold, which can be determined according to actual needs, the site detects that the access point has disconnected.
[0043] In another possible embodiment, the method for a site to detect an access point disconnection can be as follows: In normal mode, the site periodically sends heartbeat request packets to the access point. If no heartbeat response packet is received from the access point within a preset time period, the site detects that the access point is disconnected. The period for sending heartbeat request packets and the preset time period can be determined according to actual needs. For example, the site sends a heartbeat request packet to the access point every 1 second; if no heartbeat response packet is received from the access point within 5 milliseconds, the site detects that the access point is disconnected.
[0044] In another possible embodiment, the method for a site to detect an access point disconnection may be: when the site has not received a data packet from the access point for more than a preset duration, it is determined that the access point has disconnected. The preset duration can be determined according to actual needs, for example: the preset duration is 5 minutes, and the site determines that the access point has disconnected when it detects that it has not received a data packet from the access point for more than 5 minutes.
[0045] S202, periodically transmit broadcast frames through a pre-configured target channel.
[0046] The site runs a sleep code that handles the transmission of broadcast frames and the reception of response frames. This sleep code is lightweight compared to the normal code, resulting in lower power consumption. The site and access point are pre-configured with the same target channel. For example, the IEEE 802.11b / g protocol has 11 channels (channels 1 to 11), and the site and access point are pre-configured with channel 3 as the target channel. The site periodically transmits broadcast frames through the target channel. The transmission period can be determined based on actual needs. After the access point comes online, it scans the designated target channel, avoiding sequential scanning of all channels, thus reducing power consumption and extending battery life for battery-powered access points. For example, the site transmits a broadcast frame every 5 seconds to avoid excessively short intervals leading to high standby power consumption, while also avoiding excessively long intervals causing long response times for establishing a WiFi connection after the access point comes online.
[0047] S203. If a response frame is received from the access point within a preset time period, the normal code is run and then the normal mode is switched to establish a WiFi connection with the access point.
[0048] In this process, after a site sends a broadcast frame through the target channel, the access point, once online, can receive the broadcast frame through the target channel. In response to the broadcast frame, the access point sends a response frame back to the site through the target channel. If the site receives the response frame from the access point within a preset time period, the site detects the access point's online status, runs normal code, switches to normal mode, and simultaneously disables the sleep code. In normal mode, the site establishes a WiFi connection with the access point. The preset time period can be determined according to actual needs; for example, a preset time period between 3 and 5 milliseconds. After sending the broadcast frame, the site starts a timer. If a response frame is received from the access point before the timer reaches the preset time period, it indicates that the access point has successfully gone online. If no response frame is received by the timer reaches the preset time period, it indicates that the access point is still offline, and the site continues to periodically send broadcast frames through the target channel.
[0049] In some embodiments of this application, the sleep code and normal code are stored separately to reduce the standby power consumption of the station. The sleep code is stored in a first memory, and the normal code is stored in a second memory. Both the first and second memories are non-volatile memories. In sleep mode, the first memory is powered on and the second memory is powered off; in normal mode, the first memory is powered off and the second memory is powered on.
[0050] In some embodiments of this application, if no response frame is received from the access point within a preset time period, the sleep code continues to maintain the sleep mode.
[0051] In some embodiments of this application, the site has a built-in WiFi module and a main processor. In sleep mode, the WiFi module is responsible for sending broadcast frames and receiving response frames, while the main processor is powered off. In normal mode, the WiFi module instructs the main processor to power on, and then the main processor establishes a WiFi connection with the access point. Thus, in sleep mode, the site does not need to power on both the main processor and the WiFi module simultaneously, thereby further reducing standby power consumption.
[0052] See Figure 3 The timing diagram shown below illustrates the standby power consumption of the station in this application, using a specific example: Assuming the time interval for the station to send broadcast frames is 5 seconds, the time taken to send a broadcast frame is 10 milliseconds, and the average power consumption is 50 mA, then the duty cycle is 10 milliseconds / 5 seconds. The average power consumption per second in the first 5 seconds is calculated as follows:
[0053]
[0054] If the application scenario does not have strict requirements on the connection time after the access point is powered on, and the time interval for the station to send broadcast frames is set to 1 minute, then the time taken to wake up and send / receive broadcast frames once within 1 minute is also 10 milliseconds, the average power consumption is 50 mA, and the duty cycle is 10 milliseconds / 1 minute. The average power consumption per second for the first minute is calculated as follows:
[0055]
[0056] Therefore, the site described in this application can achieve microampere-level sleep power consumption, and can connect to the access point faster after the access point is powered on.
[0057] In summary, the beneficial effects of implementing the embodiments of this application include: when the site detects that the access point has lost connection, it runs sleep code and enters sleep mode, sends a broadcast frame through a pre-configured target channel, and if a response frame from the access point is received through the target channel within a preset time, it runs normal code to disable the sleep state, enters normal mode, and establishes a WiFi connection with the access point. Since both the access point and the site are powered by batteries, this application establishes a WiFi connection through a pre-configured target channel, which can reduce the connection response time of the site without increasing the standby power consumption of the site and the access point, thus improving the battery life of the site and the access point.
[0058] 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.
[0059] Please see Figure 4This illustration shows a schematic diagram of the connection device for an access point provided in an exemplary embodiment of this application. The device can be implemented as all or part of a terminal through software, hardware, or a combination of both. The connection device 4 for the access point (hereinafter referred to as device 4) includes: a detection unit 401, a transmission unit 402, and a connection unit 403.
[0060] The detection unit 401 is used to run sleep code when it detects that the access point has lost connection, and to switch to sleep mode based on the sleep code;
[0061] The transmitting unit 402 is used to periodically transmit broadcast frames through a pre-configured target channel;
[0062] The connection unit 403 is configured to, if it receives a response frame sent by the access point through the target channel within a preset time period, run normal code, switch to normal mode based on the normal code, and establish a WiFi connection with the access point.
[0063] In one possible implementation, the hibernation code is stored in a first memory, and the normal code is stored in a second memory.
[0064] In one possible implementation, the step of switching to normal mode based on the normal code and establishing a WiFi connection with the access point includes:
[0065] Based on the normal code, the main processor is instructed to power on, so that the main processor can establish a WiFi connection with the access point through the WiFi module.
[0066] In one possible implementation, it also includes:
[0067] The configuration unit is used to configure the target channel for access points and sites.
[0068] In one possible implementation, the sending unit 402 is further configured to:
[0069] If no response frame is received from the access point within the preset time period, broadcast frames will continue to be sent periodically through the pre-configured target channel.
[0070] In one possible implementation, the broadcast frames are sent at intervals of 5 seconds.
[0071] In one possible implementation, the preset duration is 3 to 5 milliseconds.
[0072] It should be noted that the device 4 provided in the above embodiments is only illustrated by the division of the above functional modules when executing the access point connection method. 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 functions described above. In addition, the touch operation response device and the touch operation response method embodiments provided in the above embodiments belong to the same concept, and the implementation process is detailed in the method embodiments, which will not be repeated here.
[0073] 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.
[0074] 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.
[0075] 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 access point connection method as described in the above embodiments.
[0076] See Figure 5 The diagram illustrates the structure of device 9 according to an embodiment of this application. Device 9 can be used to implement the connection method of the access point provided in the above embodiments. Device 9 can be... Figure 1 The site in [the context]. Specifically:
[0077] The device 9 includes a memory 920, a processor 980, and a WiFi module 990, which is the wireless module of this application.
[0078] The memory 920 can be used to store software programs and modules. The processor 980 executes various functional applications and data processing by running the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the terminal device (such as audio data, phone book, etc.). In addition, the memory 920 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 920 may also include a memory controller to provide access to the memory 920 for the processor 980 and the input unit 930.
[0079] The processor 980 is the control center of the terminal device. It connects various parts of the terminal device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 920, and utilizing data stored in the memory 920, it performs various functions and processes data of the terminal device, thereby providing overall monitoring of the terminal device. Optionally, the processor 980 may include one or more processing cores; wherein, the processor 980 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the aforementioned modem processor may also not be integrated into the processor 980.
[0080] WiFi is a short-range wireless transmission technology. Terminal devices using the WiFi module 990 can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access.
[0081] Specifically, in this embodiment, the device 9 includes a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors. The one or more programs include functions for executing... Figure 2 The connection method for the access point.
[0082] This application's embodiments and Figure 2 The method embodiments are based on the same concept and bring about the same technical effects. The specific process can be referred to the method. Figure 2 The method implementation examples are not described in detail here.
[0083] Optionally, device 9 also includes a display unit 940. The display unit 940 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the terminal device. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. The display unit 940 may include a display panel 941, which may optionally be configured as an LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or similar display. Further, a touch device 931 may cover the display panel 941. When the touch device 931 detects a touch operation on or near it, it transmits the information to the processor 980 to determine the type of touch event. Subsequently, the processor 980 provides corresponding visual output on the display panel 941 according to the type of touch event. Although in Figure 5In this embodiment, the touch device 931 and the display panel 941 are implemented as two separate components to realize input and output functions. However, in some embodiments, the touch device 931 and the display panel 941 can be integrated to realize input and output functions.
[0084] Optionally, device 9 further includes an input unit 930. The input unit 930 can be used to receive input numerical or character information, and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. Specifically, the input unit 930 may include a touch device 931 (e.g., a touchscreen, touchpad, or touch frame). The touch device 931, also called a touch display or touchpad, can collect user touch operations on or near it (e.g., operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch device 931), and drive the corresponding connected devices according to a pre-set program. Optionally, the touch device 931 may include a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, transmitting the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to the processor 980, and can receive and execute commands from the processor 980. In addition, various types of touch devices, such as resistive, capacitive, infrared, and surface acoustic wave, can be used to realize the touch device 931.
[0085] Optionally, the site may include RF (Radio Frequency) circuitry 910, a memory 920 including one or more computer-readable storage media, an input unit 930, a display unit 940, a sensor 950, an audio circuitry 960, a WiFi (Wireless Fidelity) module 960, a processor 980 including one or more processing cores, and a power supply 990, among other components. Those skilled in the art will understand that... Figure 5 The terminal device structure shown does not constitute a limitation on the terminal device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0086] The RF circuit 910 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and hands it over to one or more processors 980 for processing; additionally, it transmits uplink data to the base station. Typically, the RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, etc. Furthermore, the RF circuit 910 can also communicate wirelessly with networks and other devices. The wireless communication can use any communication standard or protocol, including but not limited to 3GPP (3rd Generation Partnership Project), 3GPP2, UMTS (Universal Mobile Telecommunications System), LTE (Long Term Evolution), LTE-A (LTE-Advanced), WiMAX (Worldwide Interoperability for Microwave Access), HSDPA (High Speed Downlink Packet Access), HSUPA (High Speed Uplink Packet Access), TDMA (Time Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), and GSM (Global System for Mobile Communications). Communication, Global System for Mobile Communications (GSM), email, SMS (Short Messaging Service), etc.
[0087] Optionally, the device 9 may also include at least one sensor 950, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 941 according to the ambient light level, and the proximity sensor can turn off the display panel 941 and / or backlight when the terminal device is moved to the ear. As a type of motion sensor, a gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the terminal device (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. Other sensors that may be configured on the terminal device, such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0088] Audio circuitry 960, speaker 961, and microphone 962 provide an audio interface between the user and the terminal device. Audio circuitry 960 converts received audio data into electrical signals, which are then transmitted to speaker 961, where they are converted into sound signals for output. Conversely, microphone 962 converts collected sound signals into electrical signals, which are received by audio circuitry 960, converted back into audio data, and then processed by processor 980 before being transmitted via RF circuitry 910 to, for example, another terminal device, or output to memory 920 for further processing. Audio circuitry 960 may also include an earphone jack to facilitate communication between peripheral headphones and the terminal device.
[0089] Optionally, the device 9 also includes a power supply 990 (such as a battery) to power the various components. The power supply can be logically connected to the processor 980 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 990 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0090] Optionally, the device 9 may also include a camera 991, a Bluetooth module, etc. The camera 991 is used to expose the surrounding environment to obtain frame images. In one embodiment, the camera 991 transmits the parameters of the exposed frame image to a processor 980 so that the processor 980 performs noise reduction, enhancement, and other processing on the frame image to generate an image that can be displayed to the user. In another optional embodiment, the camera 991 has a built-in image processor chip. This image processing chip can perform preliminary processing on the frame image and then transmit the processed data to the processor 980 so that the processor 980 can finally produce an image that can be displayed to the user. Furthermore, the number of cameras 991 can be one or multiple.
[0091] 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 (ROM), or random access memory (RAM), etc.
[0092] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Those skilled in the art will understand that implementing all or part of the processes of the above embodiments and making equivalent changes in accordance with the claims of this application are still within the scope of the invention.
Claims
1. A connection method of an access point, characterized by, The method is applied to a station, the station comprising a main processor and a WiFi module, and the method comprises: When detecting disconnection of an access point, running sleep code stored in a first memory and switching to a sleep mode based on the sleep code; in the sleep mode, the main processor processes a power-off state and the WiFi module is in an operating state; Periodically sending a broadcast frame through a target channel previously agreed with the access point; If a response frame sent by the access point through the target channel is received within a preset time length, running normal code stored in a second memory, switching to a normal mode based on the normal code, and establishing a WiFi connection with the access point based on the WiFi connection; in the normal mode, the main processor is powered on.
2. The method of claim 1, wherein, Further comprising: Configuring a target channel of the access point and the station.
3. The method of claim 2, wherein, Further comprising: If the response frame from the access point is not received within the preset time length, continuing to periodically send the broadcast frame through the preconfigured target channel.
4. The method of claim 3, wherein, The sending interval of the broadcast frame is 5 seconds.
5. The method according to claim 1 or 2 or 4, characterized in that, The preset time length is 3 milliseconds to 5 milliseconds.
6. A connection device of an access point, characterized by The method is applied to a station, the station comprising a main processor and a WiFi module, and the device comprises: A detection unit, configured to, when detecting disconnection of an access point, run sleep code stored in a first memory and switch to a sleep mode based on the sleep code; in the sleep mode, the main processor processes a power-off state and the WiFi module is in an operating state; A sending unit, configured to periodically send a broadcast frame through a target channel previously agreed with the access point; A connection unit, configured to, if a response frame sent by the access point through the target channel is received within a preset time length, run normal code stored in a second memory, switch to a normal mode based on the normal code, and establish a WiFi connection with the access point based on the WiFi connection; in the normal mode, the main processor is powered on.
7. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, the instructions being suitable for being loaded and executed by the processor and performing the method steps of any one of claims 1 to 4.
8. A station, comprising: The device comprises: A processor and a memory; wherein the memory stores a computer program, the computer program being suitable for being loaded and executed by the processor and performing the method steps of any one of claims 1 to 4.
Citation Information
Patent Citations
Wake-up method, station STA and access point AP
CN108064073A
Equipment control method and device, electronic equipment and storage medium
CN114155636A