Embodiments of this application relate to the wireless communication field, and in particular, to a wireless fidelity (Wi-Fi) communication method and apparatus.
In an internet of things (IoT), a station connected to the IoT may periodically transition from a sleep state to an awake state. A station in the sleep state does not send a packet to an access point in the IoT, and does not receive a packet from the access point. When the station is in the sleep state, the access point may buffer a packet for the station. A station in the awake state may receive a beacon packet periodically sent by the access point. The beacon packet may be used to indicate whether the access point stores a buffered packet of the station. If the access point stores the buffered packet of the station, the station receives the buffered packet from the access point. If the access point does not store the buffered packet of the station, the station enters the sleep state.
A wakeup periodicity of the station is preconfigured. In other words, the station always transitions from the sleep state to the awake state based on the preconfigured wakeup periodicity. However, there is high power consumption when the access point does not send the buffered packet to the station for a long time periodicity, and the station still transitions from the sleep state to the awake state based on the preconfigured wakeup periodicity.
Embodiments of this application provide a Wi-Fi communication method and apparatus. A station may adjust a wakeup periodicity based on a detection result, to reduce power consumption of the station.
To achieve the foregoing objective, the following technical solutions are used in embodiments of this application.
According to a first aspect, an embodiment of this application provides a Wi-Fi communication method. The method is applied to a station, and the method includes: obtaining detection information, where the detection information includes at least one first time point, and the first time point is a start time point at which an access point actually sends a beacon packet to the station for one time; obtaining a low power consumption parameter based on the detection information and a first time interval, where the first time interval is a preconfigured time interval at which the access point sends the beacon packet to the station, the low power consumption parameter includes an actual wakeup periodicity of the station and an actual receive window length within which the station receives the beacon packet, or the low power consumption parameter includes an actual wakeup periodicity of the station, and the actual wakeup periodicity of the station is greater than a preconfigured wakeup periodicity of the station; and receiving the beacon packet from the access point based on the low power consumption parameter.
In the method provided in the first aspect, the station may obtain the detection information, obtain the low power consumption parameter based on the detection information and the first time interval, and receive the beacon packet from the access point based on the low power consumption parameter. In this way, the station adjusts the actual wakeup periodicity of the station based on the detected at least one first time point and the first time interval, so that the actual wakeup periodicity of the station is greater than or equal to the preconfigured wakeup periodicity of the station, to reduce power consumption of the station.
With reference to the first aspect, in a first possible implementation, the obtaining a low power consumption parameter based on the detection information and a first time interval includes: determining at least one second time point in a one-to-one correspondence with the at least one first time point based on a start time point at which the access point sends the beacon packet to the station at the first time interval at a previous time and the first time interval, where one second time point is a start time point at which the access point sends the beacon packet to the station at the first time interval for one time; and obtaining the low power consumption parameter based on the detection information, the at least one second time point, and the preconfigured wakeup periodicity of the station, where the preconfigured wakeup periodicity of the station is the same as the first time interval. In the method, the station may calculate the at least one second time point in the one-to-one correspondence with the at least one first time point, and obtain the low power consumption parameter based on the detection information, the at least one second time point, and the preconfigured wakeup periodicity of the station, so that the actual wakeup periodicity of the station is greater than or equal to the preconfigured wakeup periodicity of the station, to reduce power consumption of the station.
With reference to the first possible implementation of the first aspect, in a second possible implementation, the low power consumption parameter includes the actual wakeup periodicity of the station and the actual receive window length within which the station receives the beacon packet; and the obtaining the low power consumption parameter based on the detection information, the at least one second time point, and the preconfigured wakeup periodicity of the station includes: obtaining at least one first offset, where each first offset is an offset of a first time point relative to a second time point corresponding to the first time point; and obtaining the low power consumption parameter based on the at least one first offset and the preconfigured wakeup periodicity of the station, where there is a correspondence between the first offset and the actual wakeup periodicity of the station. In the method, the station may adjust the actual wakeup periodicity of the station based on the detected at least one first time point and the first time interval. When the first offset is large, the actual wakeup periodicity of the station is small, and power consumption of the station is large; and when the first offset is small, the actual wakeup periodicity of the station is large, and the power consumption of the station is small. Therefore, the station may adjust the actual wakeup periodicity of the station based on a detection result, so that the station has a minimum power consumption when a success rate of receiving the beacon packet by the station is ensured. In addition, the station may further determine the actual receive window length within which the station receives the beacon packet, to improve the success rate of receiving the beacon packet by the station.
With reference to the first possible implementation of the first aspect, in a third possible implementation, the low power consumption parameter includes the actual wakeup periodicity of the station; and the obtaining the low power consumption parameter based on the detection information, the at least one second time point, and the preconfigured wakeup periodicity of the station includes: obtaining at least one first offset, where each first offset is an offset of a first time point relative to a second time point corresponding to the first time point; obtaining an expected wakeup periodicity of the station based on the at least one first offset and the preconfigured wakeup periodicity of the station, where there is a correspondence between the expected wakeup periodicity of the station and the first offset; and performing a composite operation on the expected wakeup periodicity of the station and the first time interval, to obtain the low power consumption parameter. In the method, the station may obtain the expected wakeup periodicity of the station based on the detected at least one first time point and the first time interval, and calculate the actual wakeup periodicity of the station based on the expected wakeup periodicity of the station. When the first offset is large, the expected wakeup periodicity of the station is small, the actual wakeup periodicity that is of the station and that is obtained based on the expected wakeup periodicity of the station is also small, and power consumption of the station is large; and when the first offset is small, the expected wakeup periodicity of the station is large, the actual wakeup periodicity that is of the station and that is obtained based on the expected wakeup periodicity of the station is large, and the power consumption of the station is small. Therefore, the station may adjust the actual wakeup periodicity of the station based on a detection result, so that the station has a minimum power consumption when a success rate of receiving the beacon packet by the station is ensured.
With reference to the first possible implementation of the first aspect, in a fourth possible implementation, the detection information further includes at least one third time point, one third time point is a start time point at which the access point actually sends a response packet to the station for one time, one third time point corresponds to one fourth time point, and the fourth time point is a start time point at which the station indicates the access point to send the response packet to the station. In the method, the station may further adjust the actual wakeup periodicity of the station based on the start time point at which the access point actually sends the response packet to the station and the start time point at which the station indicates the access point to send the response packet to the station.
With reference to the fourth possible implementation of the first aspect, in a fifth possible implementation, the low power consumption parameter includes the actual wakeup periodicity of the station and the actual receive window length within which the station receives the beacon packet; and the obtaining the low power consumption parameter based on the detection information, the at least one second time point, and the preconfigured wakeup periodicity of the station includes: obtaining at least one first offset, where each first offset is an offset of a first time point relative to a second time point corresponding to the first time point; obtaining at least one second offset, where each second offset is an offset of a third time point relative to a fourth time point corresponding to the third time point; and obtaining the low power consumption parameter based on the at least one first offset, the at least one second offset, and the preconfigured wakeup periodicity of the station, where there is a correspondence among the first offset, the second offset, and the actual wakeup periodicity of the station. In the method, the station may adjust the actual wakeup periodicity of the station based on the detected at least one first time point, the at least one third time point, at least one fourth time point at which the station performs an indication, and the first time interval. When the first offset and the second offset are large, the actual wakeup periodicity of the station is small, and power consumption of the station is large; and when the first offset and the second offset are small, the actual wakeup periodicity of the station is large, and the power consumption of the station is small. Therefore, the station may adjust the actual wakeup periodicity of the station based on a detection result, so that the station has a minimum power consumption when a success rate of receiving the beacon packet by the station is ensured. In addition, the station may further determine the actual receive window length within which the station receives the beacon packet, to improve the success rate of receiving the beacon packet by the station.
With reference to the fourth possible implementation of the first aspect, in a sixth possible implementation, the low power consumption parameter includes the actual wakeup periodicity of the station; and the obtaining the low power consumption parameter based on the detection information, the at least one second time point, and the preconfigured wakeup periodicity of the station includes: obtaining at least one first offset, where each first offset is an offset of a first time point relative to a second time point corresponding to the first time point; obtaining at least one second offset, where each second offset is an offset of a third time point relative to a fourth time point corresponding to the third time point; obtaining an expected wakeup periodicity of the station based on the at least one first offset, the at least one second offset, and the preconfigured wakeup periodicity of the station, where there is a correspondence among the first offset, the second offset, and the expected wakeup periodicity of the station; and performing a composite operation on the expected wakeup periodicity of the station and the first time interval, to obtain the low power consumption parameter. In the method, the station may obtain the expected wakeup periodicity of the station based on the detected at least one first time point, the detected at least one third time point, and the first time interval, and calculate the actual wakeup periodicity of the station based on the expected wakeup periodicity of the station. When the first offset and the second offset are large, the expected wakeup periodicity of the station is small, the actual wakeup periodicity that is of the station and that is obtained based on the expected wakeup periodicity of the station is also small, and power consumption of the station is large; and when the first offset and the second offset are small, the expected wakeup periodicity of the station is large, the actual wakeup periodicity that is of the station and that is obtained based on the expected wakeup periodicity of the station is large, and the power consumption of the station is small. Therefore, the station may adjust the actual wakeup periodicity of the station based on a detection result, so that the station has a minimum power consumption when a success rate of receiving the beacon packet by the station is ensured.
According to a second aspect, an embodiment of this application provides a communication apparatus. The communication apparatus includes a transceiver unit and a processing unit. The transceiver unit is configured to obtain detection information. The detection information includes at least one first time point, and the first time point is a start time point at which an access point actually sends a beacon packet to the communication apparatus for one time. The processing unit is configured to obtain a low power consumption parameter based on the detection information and a first time interval. The first time interval is a preconfigured time interval at which the access point sends the beacon packet to the communication apparatus, the low power consumption parameter includes an actual wakeup periodicity of the communication apparatus and an actual receive window length within which the communication apparatus receives the beacon packet, or the low power consumption parameter includes an actual wakeup periodicity of the communication apparatus, and the actual wakeup periodicity of the communication apparatus is greater than a preconfigured wakeup periodicity of the communication apparatus. The processing unit is further configured to receive the beacon packet from the access point based on the low power consumption parameter.
With reference to the second aspect, in a first possible implementation, the processing unit is specifically configured to determine at least one second time point in a one-to-one correspondence with the at least one first time point based on a start time point at which the access point sends the beacon packet to the communication apparatus at the first time interval at a previous time and the first time interval. One second time point is a start time point at which the access point sends the beacon packet to the communication apparatus at the first time interval for one time. The processing unit is further specifically configured to obtain the low power consumption parameter based on the detection information, the at least one second time point, and the preconfigured wakeup periodicity of the communication apparatus. The preconfigured wakeup periodicity of the communication apparatus is the same as the first time interval.
With reference to the first possible implementation of the second aspect, in a second possible implementation, the low power consumption parameter includes the actual wakeup periodicity of the communication apparatus and the actual receive window length within which the communication apparatus receives the beacon packet. The processing unit is specifically configured to obtain at least one first offset. Each first offset is an offset of a first time point relative to a second time point corresponding to the first time point. The processing unit is further specifically configured to obtain the low power consumption parameter based on the at least one first offset and the preconfigured wakeup periodicity of the communication apparatus. There is a correspondence between the first offset and the actual wakeup periodicity of the communication apparatus.
With reference to the first possible implementation of the second aspect, in a third possible implementation, the low power consumption parameter includes the actual wakeup periodicity of the communication apparatus. The processing unit is specifically configured to obtain at least one first offset. Each first offset is an offset of a first time point relative to a second time point corresponding to the first time point. The processing unit is further specifically configured to obtain an expected wakeup periodicity of the communication apparatus based on the at least one first offset and the preconfigured wakeup periodicity of the communication apparatus. There is a correspondence between the expected wakeup periodicity of the communication apparatus and the first offset. The processing unit is further specifically configured to perform a composite operation on the expected wakeup periodicity of the communication apparatus and the first time interval, to obtain the low power consumption parameter.
With reference to the first possible implementation of the second aspect, in a fourth possible implementation, the detection information further includes at least one third time point, one third time point is a start time point at which the access point actually sends a response packet to the communication apparatus for one time, one third time point corresponds to one fourth time point, and the fourth time point is a start time point at which the communication apparatus indicates the access point to send the response packet to the communication apparatus.
With reference to the fourth possible implementation of the second aspect, in a fifth possible implementation, the low power consumption parameter includes the actual wakeup periodicity of the communication apparatus and the actual receive window length within which the communication apparatus receives the beacon packet. The processing unit is specifically configured to obtain at least one first offset. Each first offset is an offset of a first time point relative to a second time point corresponding to the first time point. The processing unit is further specifically configured to obtain at least one second offset, where each second offset is an offset of a third time point relative to a fourth time point corresponding to the third time point. The processing unit is further specifically configured to obtain the low power consumption parameter based on the at least one first offset, the at least one second offset, and the preconfigured wakeup periodicity of the communication apparatus. There is a correspondence among the first offset, the second offset, and the actual wakeup periodicity of the communication apparatus.
With reference to the fourth possible implementation of the second aspect, in a sixth possible implementation, the low power consumption parameter includes the actual wakeup periodicity of the communication apparatus. The processing unit is specifically configured to obtain at least one first offset. Each first offset is an offset of a first time point relative to a second time point corresponding to the first time point. The processing unit is further specifically configured to obtain at least one second offset. Each second offset is an offset of a third time point relative to a fourth time point corresponding to the third time point. The processing unit is further specifically configured to obtain an expected wakeup periodicity of the communication apparatus based on the at least one first offset, the at least one second offset, and the preconfigured wakeup periodicity of the communication apparatus. There is a correspondence among the first offset, the second offset, and the expected wakeup periodicity of the communication apparatus. The processing unit is further specifically configured to perform a composite operation on the expected wakeup periodicity of the communication apparatus and the first time interval, to obtain the low power consumption parameter.
According to a third aspect, an embodiment of this application provides a communication apparatus, including a processor. The processor is coupled to a memory, and the memory is configured to store a program or instructions. When the program or the instructions are executed by the processor, the apparatus is enabled to implement the method in any one of the first aspect or the possible implementations of the first aspect.
According to a fourth aspect, an embodiment of this application provides a communication apparatus. The apparatus is configured to implement the method in any one of the first aspect or the possible implementations of the first aspect.
According to a fifth aspect, an embodiment of this application provides a computer-readable medium. The computer-readable medium stores a computer program or instructions. When the computer program or instructions are executed, a computer is enabled to perform the method in any one of the first aspect or the possible implementations of the first aspect.
According to a sixth aspect, an embodiment of this application provides a computer program product. The computer program product includes computer program code. When the computer program code is run on a computer, the computer is enabled to perform the method in any one of the first aspect or the possible implementations of the first aspect.
According to a seventh aspect, an embodiment of this application provides a chip, including a processor. The processor is coupled to a memory, and the memory is configured to store a program or instructions. When the program or the instructions are executed by the processor, the chip is enabled to implement the method in any one of the first aspect or the possible implementations of the first aspect.
It can be understood that any communication apparatus, the chip, the computer-readable medium, the computer program product, or the like that is provided above is used to perform a corresponding method provided above. Therefore, for a beneficial effect that can be achieved by the any communication apparatus, the chip, the computer-readable medium, the computer program product, or the like that is provided above, refer to beneficial effects in the corresponding method. Details are not described herein again.
The following describes the implementations of embodiments of this application in detail with reference to the accompanying drawings.
A method provided in embodiments of this application may be applied to a Wi-Fi system. The following describes the method provided in embodiments of this application only by using a communication system 10 shown in
The access point in
A station in
In this application, the station may be a station in an IoT system. An IoT is an important component of future information technology development. A main technical feature of the IoT is that an object is connected to a network by using a communication technology, to implement an intelligent network in which human-machine interconnection and object-object interconnection are implemented. The station in this application may be a terminal device in machine type communication (MTC).
The communication system 10 shown in
Optionally, each network element in
For example, each network element in
The processor 201 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to control execution of programs in the solutions in this application.
The communication line 202 may include a path used to transfer information between the foregoing components, for example, a bus.
The communication interface 204 may be any apparatus of a transceiver type, and is configured to communicate with another device or a communication network, for example, an Ethernet interface, a radio access network (RAN) interface, or a wireless local area network (WLAN) interface.
For example, the memory 203 may be a read-only memory (ROM) or another type of static storage device that can store static information and instructions, or a random access memory (RAM) or another type of dynamic storage device that can store information and instructions, or may be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or another optical disk storage, an optical disc storage (including a compact disc, a laser disc, an optical disc, a digital versatile disc, a Blu-ray disc, or the like), a disk storage medium or another magnetic storage device, or any other medium that can be used to carry or store expected program code in a form of instructions or a data structure and that can be accessed by a computer. However, the memory 203 is not limited thereto. The memory may exist independently, and is connected to the processor through the communication line 202. Alternatively, the memory may be integrated with the processor. The memory provided in this embodiment of this application may be usually non-volatile. The memory 203 is configured to store computer-executable instructions for performing the solutions in this application, and the processor 201 controls execution. The processor 201 is configured to execute the computer execution instructions stored in the memory 203, to implement the method provided in embodiments of this application.
Optionally, computer-executable instructions in this embodiment of this application may also be referred to as application program code. This is not specifically limited in this embodiment of this application.
During a specific implementation, in an embodiment, the processor 201 may include one or more CPUs, for example, a CPU 0 and a CPU 1 in
In a specific implementation, in an embodiment, the communication apparatus 200 may include a plurality of processors such as the processor 201 and a processor 207 in
In a specific implementation, in an embodiment, the communication apparatus 200 may further include an output device 205 and an input device 206. The output device 205 communicates with the processor 201, and may display information in a plurality of manners. For example, the output device 205 may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device 206 communicates with the processor 201, and may receive user input in a plurality of manners. For example, the input device 206 may be a mouse, a keyboard, a touchscreen device, or a sensor device.
With reference to
It should be noted that names of messages between network elements, names of parameters in the messages, or the like in the following embodiments of this application are merely examples, and there may be other names during a specific implementation. This is not specifically limited in embodiments of this application.
It can be understood that, in embodiments of this application, the station may perform some or all of the steps in embodiments of this application. These steps are merely examples. In embodiments of this application, another step or variations of various steps may be performed. In addition, the steps may be performed in different sequences presented in embodiments of this application, and not all the steps in embodiments of this application may be performed.
Step 301: A station obtains detection information.
The station may be any station in the station 102 to the station 104 shown in
Optionally, the station is in an awake state.
The detection information may include at least one first time point. The first time point is a start time point at which an access point actually sends a beacon packet to the station for one time.
The access point may be the access point 101 shown in
Optionally, before step 301, the station obtains a first time interval. The first time interval is a preset time interval at which the access point sends the beacon packet to the station. The first time interval is preset or stored in the access point. When the station accesses the access point for a first time, the access point sends, to the station, a packet indicating the first time interval.
The packet indicating the first time interval includes the first time interval; or the packet indicating the first time interval includes a third time interval and a first count. The first time interval is a product of the third time interval and the first count. For example, if the third time interval included in the packet indicating the first time interval is 100 milliseconds (ms), and the first count is 3, the first time interval is 300 ms.
It can be understood that, when the station accesses the access point for the first time, the access point indicates, to the station, that the beacon packet is broadcast every first time interval. Therefore, the station may also wake up every first time interval, and receive the beacon packet from the access point, to detect whether the access point has a buffered packet of the station. However, in an actual application, due to a reason such as performance of the access point, the access point may not broadcast the beacon packet at the first time interval. Therefore, if the station still wakes up every first time interval, it is possible that the station cannot receive the beacon packet from the access point. Consequently, whether the access point has the buffered packet of the station cannot be detected. In order that the station may receive the beacon packet from the access point each time the station wakes up, the station may detect, in the awake state, a time interval, namely, a second time interval, at which the access point actually sends the beacon packet to the station.
A relationship between the second time interval and the first time interval may be shown in
Optionally, a process in which the station obtains the detection information is as follows: When the station is in the awake state, the station sends the detection packet to the access point for one or more times, and triggers the access point to communicate with the station in a low power consumption mode, so that the station learns of a capability of the access point to send the beacon packet, and obtains the detection information based on the capability of the access point to send the beacon packet. That the access point communicates with the station in the low power consumption mode can be understood as follows: After receiving indication information, from the station, indicating that the station is to transition to the sleep state, the access point buffers a packet for the station, and periodically broadcasts the beacon packet; and sends the buffered packet of the station to the station when receiving indication information, from the station, indicating that the station is to transition to the awake state.
For example, the station in the awake state sends a first detection packet to the access point. The first detection packet is used to indicate that the station is to transition to the sleep state. Actually, the station is still in the awake state. The station receives the beacon packet from the access point, and obtains the first time point. To improve accuracy of a subsequently obtained low power consumption parameter, the foregoing step may be repeatedly performed, so that the station obtains a plurality of first time points.
The beacon packet includes the first time point. After receiving the beacon packet, the station obtains the first time point. Alternatively, the station stores a delay between a time point at which the station receives a packet from the access point and a time point at which the access point sends the packet. After receiving the beacon packet, the station obtains the first time point based on a time point at which the beacon packet is received and the delay. For example, as shown in
Further, optionally, the detection information further includes at least one third time point. The third time point is a start time point at which the access point actually sends a response packet to the station for one time. The response packet is a packet sent by the access point based on an indication of the station. One third time point corresponds to one fourth time point, and the fourth time point is a start time point at which the station indicates the access point to send the response packet to the station.
For example, the station in the awake state sends a second detection packet to the access point. The second detection packet is used to indicate that the station is to transition to the sleep state and indicate the fourth time point. Actually, the station is still in the awake state. The station receives the beacon packet and the response packet from the access point, and obtains the first time point and the third time point. To improve accuracy of a subsequently obtained low power consumption parameter, the foregoing step may be repeatedly performed, so that the station obtains a plurality of first time points and a plurality of third time points.
For a process in which the station obtains the first time point, refer to the description in the foregoing example. Details are not described again.
It can be understood that, the station indicates the access point to send the response packet to the station at the fourth time point. However, in an actual application, due to a reason such as performance of the access point, the access point may not send the response packet at the fourth time point, but send the response packet at the third time point.
The response packet includes the third time point. After receiving the response packet, the station obtains the third time point. Alternatively, the station stores the delay between the time point at which the station receives the packet from the access point and the time point at which the access point sends the packet. After receiving the response packet, the station obtains the third time point based on a time point at which the response packet is received and the delay.
For example, the station in the awake state may alternatively send the first detection packet and the second detection packet to the access point alternately, so that the station obtains the at least one first time point and the at least one third time point.
Optionally, the station obtains the detection information when being connected to the access point for a first time; or any application in the station triggers the station to obtain the detection information. For example, when a WeChat application in the station needs to adjust a wakeup periodicity of the station, the WeChat application in the station triggers the station to obtain the detection information. Alternatively, a higher layer of the station triggers the station to obtain the detection information. For example, an application layer of the station triggers the station to obtain the detection information.
Step 302: The station obtains the low power consumption parameter based on the detection information and the first time interval.
The low power consumption parameter may include an actual wakeup periodicity of the station and an actual receive window length within which the station receives the beacon packet, or the low power consumption parameter may include an actual wakeup periodicity of the station. The actual wakeup periodicity of the station is greater than or equal to a preconfigured wakeup periodicity of the station. The actual receive window length within which the station receives the beacon packet indicates a time length within which the station is actually in the awake state.
Optionally, the obtaining the low power consumption parameter based on the detection information and the first time interval includes: determining at least one second time point in a one-to-one correspondence with the at least one first time point based on a start time point at which the access point sends the beacon packet to the station at the first time interval at a previous time and the first time interval; and obtaining the low power consumption parameter based on the detection information, the at least one second time point, and the preconfigured wakeup periodicity of the station. The preconfigured wakeup periodicity of the station is the same as the first time interval. One second time point is a start time point at which the access point sends the beacon packet to the station at the first time interval for one time.
When the low power consumption parameter includes the actual wakeup periodicity of the station and the actual receive window length within which the station receives the beacon packet, for a specific process in which the station obtains the low power consumption parameter based on the detection information and the first time interval, refer to the following method shown in
Step 303: The station receives the beacon packet from the access point based on the low power consumption parameter.
For example, the low power consumption parameter includes the actual wakeup periodicity of the station and the actual receive window length within which the station receives the beacon packet. The station transitions from the sleep state to the awake state based on the actual wakeup periodicity of the station, and transitions from the awake state to the sleep state after the actual receive window length within which the station receives the beacon packet.
For example, the low power consumption parameter includes the actual wakeup periodicity of the station. The station transitions from the sleep state to the awake state based on the actual wakeup periodicity of the station.
In the method shown in
Further, optionally, as shown in
Step 3021: The station determines at least one second time point in a one-to-one correspondence with the at least one first time point based on a start time point at which the access point sends the beacon packet to the station at the first time interval at a previous time and the first time interval.
One second time point is a start time point at which the access point sends the beacon packet to the station at the second time interval for one time.
Optionally, if there is one second time point, the station determines that a sum of a time point at which the access point sends the beacon packet to the station at the first time interval at the previous time and the first time interval is the second time point. A first time point corresponding to the second time point is a time point at which the access point actually sends the beacon packet to the station for a first time after the access point actually sends the beacon packet to the station at a previous time. For example, the first time interval and the second time interval shown in
Optionally, if there are a plurality of second time points, the station determines that a sum of the time point at which the access point sends the beacon packet to the station at the first time interval at the previous time and the first time interval is a 1st second time point. A 1st first time point corresponding to the 1st second time point is a time point at which the access point sends the beacon packet to the station for a first time after the access point sends the beacon packet to the station at a previous time. The station determines that a sum of the 1st second time point and the first time interval is a 2nd second time point. A 2nd first time point corresponding to the 2nd second time point is a time point at which the access point sends the beacon packet to the station for a first time after the 1st first time. The station determines that a sum of the 2nd second time point and the first time interval is a 3rd second time point. A 3rd first time point corresponding to the 3rd second time point is a time point at which the access point sends the beacon packet to the station for a first time after the 2nd first time, and so on.
Step 3022: The station obtains at least one first offset.
Each first offset is an offset of a first time point relative to a second time point corresponding to the first time point. For example, the detection information includes two first time points, a 1st first time point corresponds to a 1st second time point, and a 2nd first time point corresponds to a 2nd second time point. In step 3022, the station obtains two first offsets. A 1st first offset is an offset of the 1st first time point relative to the 1st second time point, and a 2nd first offset is an offset of the 2nd first time point relative to the 2nd second time point.
Optionally, the first offset includes a first pre-positioned offset or a first post-positioned offset. When the first time point is less than or equal to the second time point, the first offset includes the first pre-positioned offset. When the first time point is greater than or equal to the second time point, the first offset includes the first post-positioned offset.
Step 3023: The station obtains the low power consumption parameter based on the at least one first offset and a preconfigured wakeup periodicity of the station.
The preconfigured wakeup periodicity of the station is obtained based on the first time interval. For example, the preconfigured wakeup periodicity of the station is the same as the first time interval.
Optionally, there is a correspondence between the first offset and an actual wakeup periodicity of the station. The actual wakeup periodicity is an integer multiple of the preconfigured wakeup periodicity.
It can be understood that a larger first offset indicates a larger offset between the second time interval and the first time interval. In other words, poorer performance of the access point leads to a smaller actual wakeup periodicity of the station. A smaller first offset indicates a smaller offset between the second time interval and the first time interval. In other words, better performance of the access point leads to a larger actual wakeup periodicity of the station.
For example, a correspondence between the first offset and the actual wakeup periodicity of the station may be shown in Table 1, and the preconfigured wakeup periodicity is 100 ms. In Table 1, when the first offset is greater than or equal to A and less than B, the actual wakeup periodicity of the station is 500 ms; when the first offset is greater than or equal to B and less than C, the actual wakeup periodicity of the station is 400 ms; when the first offset is greater than or equal to C and less than D, the actual wakeup periodicity of the station is 300 ms; and when the first offset is greater than or equal to D and less than or equal to E, the actual wakeup periodicity of the station is 200 ms. Herein, A < B < C < D < E.
It should be noted that, Table 1 merely shows an example of the correspondence between the first offset and the actual wakeup periodicity of the station. The correspondence between the first offset and the actual wakeup periodicity of the station may alternatively be in another form. This is not limited.
It can be understood that, when the station obtains two or more first offsets, the station may first obtain an average value of the two or more first offsets, a largest value of the two or more first offsets, a smallest value of the two or more first offsets, or the like, use the average value of the two or more first offsets, the largest value of the two or more first offsets, the smallest value of the two or more first offsets, or the like as the first offset, and determine the actual wakeup periodicity of the station based on the correspondence between the first offset and the actual wakeup periodicity of the station.
Optionally, the actual receive window length within which the station receives the beacon packet may be greater than or equal to a sum of a first optimized pre-positioned offset and a first optimized post-positioned offset.
The first optimized pre-positioned offset may be a largest offset in at least one first pre-positioned offset; or the first optimized pre-positioned offset may be a smallest offset in at least one first pre-positioned offset; or the first optimized pre-positioned offset may be an average value of at least one first pre-positioned offset.
The first optimized post-positioned offset may be a largest offset in at least one first post-positioned offset; or the first optimized post-positioned offset may be a smallest offset in at least one first post-positioned offset; or the first optimized post-positioned offset may be an average value of at least one first post-positioned offset.
It can be understood that, to improve a success rate of receiving the beacon packet by the station, the station may wake up before a wakeup moment in the actual wakeup periodicity of the station. For example, the station wakes up at a moment that is a first reserved offset earlier than the wakeup moment in the actual wakeup periodicity of the station. The first reserved offset is greater than or equal to the first optimized pre-positioned offset. For example, if the actual wakeup periodicity of the station is 100 ms, the first reserved offset is 1 ms, and the wakeup moment of the station in the actual wakeup periodicity of the station is a 100th ms, a 200th ms, a 300th ms, ..., to improve the success rate of receiving the beacon packet by the station, the station may wake up at a 99th ms, a 199th ms, a 299th ms, ....
For example, the first offset shown in Table 2 is used as an example. Herein, -indicates a pre-positioned offset, and + indicates a post-positioned offset. If the first optimized pre-positioned offset is the largest offset in the at least one first pre-positioned offset, and the first optimized post-positioned offset is the largest offset in the at least one first post-positioned offset, in Table 2, the first optimized pre-positioned offset is 6.45 ms, and the first optimized post-positioned offset is 8.33 ms. Therefore, the actual receive window length within which the station receives the beacon packet is greater than or equal to 14.78 ms, and the first reserved offset is greater than or equal to 6.45 ms.
Optionally, the actual receive window length within which the station receives the beacon packet is greater than or equal to a first optimized pre-positioned offset.
The first optimized pre-positioned offset may be a largest offset in at least one first pre-positioned offset; or the first optimized pre-positioned offset may be a smallest offset in at least one first pre-positioned offset; or the first optimized pre-positioned offset may be an average value of at least one first pre-positioned offset.
It can be understood that, to improve a success rate of receiving the beacon packet by the station, the station may wake up before a wakeup moment in the actual wakeup periodicity of the station. For example, the station wakes up at a moment that is a second reserved offset earlier than the wakeup moment in the actual wakeup periodicity of the station. The second reserved offset is greater than or equal to the first optimized pre-positioned offset.
Optionally, the actual receive window length within which the station receives the beacon packet is greater than or equal to a first optimized post-positioned offset.
The first optimized post-positioned offset may be a largest offset in at least one first post-positioned offset; or the first optimized post-positioned offset may be a smallest offset in at least one first post-positioned offset; or the first optimized post-positioned offset may be an average value of at least one first post-positioned offset.
It can be understood that, to improve a success rate of receiving the beacon packet by the station, the station may wake up before a wakeup moment in the actual wakeup periodicity of the station. For example, the station wakes up at a moment that is a third reserved offset earlier than the wakeup moment in the actual wakeup periodicity of the station. For example, the station may wake up at a moment that is 1.6 ms earlier than the wakeup moment in the actual wakeup periodicity of the station.
In the method shown in
Further, optionally, as shown in
Step 3024: The station determines at least one second time point in a one-to-one correspondence with the at least one first time point based on a start time point at which the access point sends the beacon packet to the station at the first time interval at a previous time and the first time interval.
Step 3025: The station obtains at least one first offset.
For specific descriptions of step 3024 and step 3025, refer to corresponding descriptions of step 3021 and step 3022. Details are not described again.
Step 3026: The station obtains at least one second offset.
Each second offset is an offset of a third time point relative to a fourth time point corresponding to the third time point.
Optionally, the second offset includes a second pre-positioned offset or a second post-positioned offset. When the third time point is less than or equal to the fourth time point, the second offset includes the second pre-positioned offset. When the third time point is greater than or equal to the fourth time point, the second offset includes the second post-positioned offset.
Step 3027: The station obtains the low power consumption parameter based on the at least one first offset, the at least one second offset, and a preconfigured wakeup periodicity of the station.
The preconfigured wakeup periodicity of the station is obtained based on the first time interval. For example, the preconfigured wakeup periodicity of the station is the same as the first time interval.
Optionally, there is a correspondence among the first offset, the second offset, and an actual wakeup periodicity of the station. The actual wakeup periodicity is an integer multiple of the preconfigured wakeup periodicity.
It can be understood that a larger first offset and a larger second offset indicate a larger offset between the second time interval and the first time interval. In other words, poorer performance of the access point leads to a smaller actual wakeup periodicity of the station. A smaller first offset and a smaller second offset indicate a smaller offset between the second time interval and the first time interval. In other words, better performance of the access point leads to a larger actual wakeup periodicity of the station.
For example, the correspondence among the first offset, the second offset, and the actual wakeup periodicity of the station may be shown in Table 3, and the preconfigured wakeup periodicity is 100 ms. In Table 3, when the first offset is greater than or equal to A and less than B, and the second offset is greater than or equal to F and less than G, the actual wakeup periodicity of the station is 500 ms; when the first offset is greater than or equal to B and less than C, and the second offset is greater than or equal to G and less than H, the actual wakeup periodicity of the station is 400 ms; when the first offset is greater than or equal to C and less than D, and the second offset is greater than or equal to H and less than I, the actual wakeup periodicity of the station is 300 ms; and when the first offset is greater than or equal to D and less than or equal to E, and the second offset is greater than or equal to I and less than or equal to J, the actual wakeup periodicity of the station is 200 ms. Herein, A < B < C < D < E, and F < G < H < I < J.
It should be noted that, Table 3 merely shows an example of the correspondence among the first offset, the second offset, and the actual wakeup periodicity of the station. The correspondence among the first offset, the second offset, and the actual wakeup periodicity of the station may alternatively be in another form. This is not limited.
It can be understood that, when the station obtains two or more first offsets and two or more second offsets, the station may first obtain an average value of the two or more first offsets, a largest value of the two or more first offsets, a smallest value of the two or more first offsets, or the like, and an average value of the two or more second offsets, a largest value of the two or more second offsets, a smallest value of the two or more second offsets, or the like; use the average value of the two or more first offsets, the largest value of the two or more first offsets, the smallest value of the two or more first offsets, or the like as the first offset; use the average value of the two or more second offsets, the largest value of the two or more second offsets, the smallest value of the two or more second offsets, or the like as the second offset; and determine the actual wakeup periodicity of the station based on the first offset, the second offset, and the correspondence among the first offset, the second offset, and the actual wakeup periodicity of the station.
Optionally, the actual receive window length within which the station receives the beacon packet is greater than or equal to a sum of a largest value of the first optimized pre-positioned offset and the second optimized pre-positioned offset and a largest value of the first optimized post-positioned offset and the second optimized post-positioned offset.
For descriptions of the first optimized pre-positioned offset and the first optimized post-positioned offset, refer to the descriptions of step 3023. Details are not described again.
The second optimized pre-positioned offset may be a largest offset in at least one second pre-positioned offset; or the second optimized pre-positioned offset may be a smallest offset in at least one second pre-positioned offset; or the second optimized pre-positioned offset may be an average value of at least one second pre-positioned offset.
The second optimized post-positioned offset may be a largest offset in at least one second post-positioned offset; or the second optimized post-positioned offset may be a smallest offset in at least one second post-positioned offset; or the second optimized post-positioned offset may be an average value of at least one second post-positioned offset.
It can be understood that, to improve a success rate of receiving the beacon packet by the station, the station may wake up before a wakeup moment in the actual wakeup periodicity of the station. For example, the station wakes up at a moment that is a fourth reserved offset earlier than the wakeup moment in the actual wakeup periodicity of the station. The fourth reserved offset is greater than or equal to the largest value of the first optimized pre-positioned offset and the second optimized pre-positioned offset.
For example, the first offset and the second offset shown in Table 4 are used as examples. Herein, - represents a pre-positioned offset, and + represents a post-positioned offset. If the first optimized pre-positioned offset is a largest offset in at least one first pre-positioned offset, the first optimized post-positioned offset is a largest offset in at least one first post-positioned offset, the second optimized pre-positioned offset is a largest offset in at least one second pre-positioned offset, and the second optimized post-positioned offset is a largest offset in at least one second post-positioned offset, in Table 4, the first optimized pre-positioned offset is 6.45 ms, the first optimized post-positioned offset is 8.33 ms, the second optimized pre-positioned offset is 6.56 ms, and the second optimized post-positioned offset is 7.23. Therefore, the actual receive window length within which the station receives the beacon packet is greater than or equal to 14.89 ms (6.56 ms + 8.33 ms), and the fourth reserved offset is greater than or equal to 6.56 ms.
Optionally, the actual receive window length within which the station receives the beacon packet is greater than or equal to a largest value of the first optimized pre-positioned offset and the second optimized pre-positioned offset.
For a specific description of the first optimized pre-positioned offset, refer to the descriptions of step 3023. Details are not described again.
The second optimized pre-positioned offset may be a largest offset in at least one second pre-positioned offset; or the second optimized pre-positioned offset may be a smallest offset in at least one second pre-positioned offset; or the second optimized pre-positioned offset may be an average value of at least one second pre-positioned offset.
It can be understood that, to improve a success rate of receiving the beacon packet by the station, the station may wake up before a wakeup moment in the actual wakeup periodicity of the station. For example, the station wakes up at a moment that is a fifth reserved offset earlier than the wakeup moment in the actual wakeup periodicity of the station. The fifth reserved offset is greater than or equal to the largest value of the first optimized pre-positioned offset and the second optimized pre-positioned offset.
Optionally, the actual receive window length within which the station receives the beacon packet is greater than or equal to a largest value of the first optimized post-positioned offset and the second optimized post-positioned offset.
For a specific description of the first optimized post-positioned offset, refer to the descriptions of step 3023. Details are not described again.
The second optimized post-positioned offset may be a largest offset in at least one second post-positioned offset; or the second optimized post-positioned offset may be a smallest offset in at least one second post-positioned offset; or the second optimized post-positioned offset may be an average value of at least one second post-positioned offset.
It can be understood that, to improve a success rate of receiving the beacon packet by the station, the station may wake up before a wakeup moment in the actual wakeup periodicity of the station. For example, the station may wake up at a moment that is 1.6 ms earlier than the wakeup moment in the actual wakeup periodicity of the station.
In the method shown in
Further, optionally, as shown in
Step 302a: The station determines at least one second time point in a one-to-one correspondence with the at least one first time point based on a start time point at which the access point sends the beacon packet to the station at the first time interval at a previous time and the first time interval.
Step 302b: The station obtains at least one first offset.
For specific descriptions of step 302a and step 302b, refer to corresponding descriptions of step 3021 and step 3022. Details are not described again.
Step 302c: The station obtains an expected wakeup periodicity of the station based on the at least one first offset and a preconfigured wakeup periodicity of the station.
There is a correspondence between the expected wakeup periodicity of the station and the first offset. The expected wakeup periodicity of the station is greater than or equal to the preconfigured wakeup periodicity. For the correspondence between the expected wakeup periodicity of the station and the first offset, refer to a correspondence between the actual wakeup periodicity of the station and the first offset. Details are not described.
It can be understood that a larger first offset indicates a larger offset between the second time interval and the first time interval. In other words, poorer performance of the access point leads to a smaller expected wakeup periodicity of the station. A smaller first offset indicates a smaller offset between the second time interval and the first time interval. In other words, better performance of the access point leads to a larger expected wakeup periodicity of the station.
In addition to the method shown in step 302a to step 302c, when the detection information includes a plurality of first time points, the station may calculate a difference between every two adjacent first time points in the plurality of first time points, namely, a third offset; and the station obtains the expected wakeup periodicity of the station based on the third offset and the preconfigured wakeup periodicity.
It can be understood that, a larger difference between a largest third offset and a smallest third offset in a plurality of third offsets calculated by the station indicates a more unstable time interval at which the access point sends the beacon packet to the station. In other words, poorer performance of the access point leads to a smaller expected wakeup periodicity of the station. A smaller difference between the largest third offset and the smallest third offset indicates a more stable time interval at which the access point sends the beacon packet to the station. In other words, better performance of the access point leads to a larger expected wakeup periodicity of the station.
Optionally, there is a correspondence between the expected wakeup periodicity of the station and a difference between the largest third offset and the smallest third offset, and the expected wakeup periodicity of the station is greater than or equal to the preconfigured wakeup periodicity. For example, the correspondence between the expected wakeup periodicity of the station and the difference between the largest third offset and the smallest third offset may be shown in Table 5. In Table 5, when the difference between the largest third offset and the smallest third offset is greater than or equal to a and less than b, the expected wakeup periodicity of the station is 500 ms; when the difference between the largest third offset and the smallest third offset is greater than or equal to b and less than c, the expected wakeup periodicity of the station is 400 ms; when the difference between the largest third offset and the smallest third offset is greater than or equal to c and less than d, the expected wakeup periodicity of the station is 300 ms; and when the difference between the largest third offset and the smallest third offset is greater than or equal to d and less than or equal to e, the expected wakeup periodicity of the station is 200 ms. Herein, a < b < c < d < e.
It should be noted that, Table 5 merely shows an example of the correspondence between the expected wakeup periodicity of the station and the difference between the largest third offset and the smallest third offset. The correspondence between the expected wakeup periodicity of the station and the difference between the largest third offset and the smallest third offset may alternatively be in another form. This is not limited.
It should be noted that the expected wakeup periodicity of the station may alternatively be set by a user based on a requirement.
Step 302d: The station performs a composite operation on the expected wakeup periodicity of the station and the first time interval, to obtain the low power consumption parameter.
The low power consumption parameter includes the actual wakeup periodicity of the station.
Optionally,
Herein, T is the actual wakeup periodicity of the station, t1 is the expected wakeup periodicity of the station, t2 is the first time interval, and is a rounding down symbol. For example, t1 is 1000 ms, and t2 is 300 ms. T is 900 ms.
In the method shown in
Further, optionally, as shown in
Step 302e: The station determines at least one second time point in a one-to-one correspondence with the at least one first time point based on a start time point at which the access point sends the beacon packet to the station at the first time interval at a previous time and the first time interval.
Step 302f: The station obtains at least one first offset.
Step 302g: The station obtains at least one second offset.
For specific descriptions of step 302e and step 302g, refer to corresponding descriptions of step 3024 and step 3026. Details are not described again.
Step 302h: The station obtains an expected wakeup periodicity of the station based on the at least one first offset, the at least one second offset, and a preconfigured wakeup periodicity of the station.
Optionally, there is a correspondence between the first offset, the second offset, and the expected wakeup periodicity of the station. The expected wakeup periodicity of the station is greater than or equal to the preconfigured wakeup periodicity. For the correspondence between the first offset, the second offset, and the expected wakeup periodicity of the station, refer to a correspondence between the first offset, the second offset, and the actual wakeup periodicity of the station. Details are not described.
It can be understood that a larger first offset and a larger second offset indicate poor performance of the access point. Therefore, the expected wakeup periodicity of the station is smaller. A smaller first offset and a smaller second offset indicate good performance of the access point. Therefore, the expected wakeup periodicity of the station is larger.
In addition to the method shown in step 302e to step 302h, when the detection information includes a plurality of first time points and a plurality of third time points, the station may calculate a difference between every two adjacent first time points in the plurality of first time points, namely, a third offset, and calculate a difference between every two adjacent third time points in the plurality of third time points, namely, a fourth offset. The station obtains the expected wakeup periodicity of the station based on the third offset, the fourth offset, and the preconfigured wakeup periodicity.
It can be understood that, in a plurality of third offsets and a plurality of fourth offsets calculated by the station, a larger difference between a largest third offset and a smallest third offset and a larger difference between a largest fourth offset and a smallest fourth offset indicate a more unstable time interval at which the access point sends the beacon packet to the station. In other words, poorer performance of the access point leads to a smaller expected wakeup periodicity of the station. A smaller difference between the largest third offset and the smallest third offset and a smaller difference between the largest fourth offset and the smallest fourth offset indicate a more stable time interval at which the access point sends the beacon packet to the station. In other words, better performance of the access point leads to a larger expected wakeup periodicity of the station.
Optionally, there is a correspondence among a difference between the largest third offset and the smallest third offset, a difference between the largest fourth offset and the smallest fourth offset, and the expected wakeup periodicity of the station. For example, the correspondence among the difference between the largest third offset and the smallest third offset, the difference between the largest fourth offset and the smallest fourth offset, and the expected wakeup periodicity of the station may be shown in Table 6. In Table 6, when the difference between the largest third offset and the smallest third offset is greater than or equal to a and less than b, and the difference between the largest fourth offset and the smallest fourth offset is greater than or equal to f and less than g, the expected wakeup periodicity of the station is 500 ms; when the difference between the largest third offset and the smallest third offset is greater than or equal to b and less than c, and the difference between the largest fourth offset and the smallest fourth offset is greater than or equal to g and less than h, the expected wakeup periodicity of the station is 400 ms; when the difference between the largest third offset and the smallest third offset is greater than or equal to c and less than d, and the difference between the largest fourth offset and the smallest fourth offset is greater than or equal to h and less than i, the expected wakeup periodicity of the station is 300 ms; and when the difference between the largest third offset and the smallest third offset is greater than or equal to d and less than or equal to e, and the difference between the largest fourth offset and the smallest fourth offset is greater than or equal to i and less than or equal to j, the expected wakeup periodicity of the station is 200 ms. Herein, a < b < c < d < e, and f < g < h < i < j.
It should be noted that, Table 6 merely shows an example of the correspondence among the difference between the largest third offset and the smallest third offset, the difference between the largest fourth offset and the smallest fourth offset, and the expected wakeup periodicity of the station. The correspondence among the difference between the largest third offset and the smallest third offset, the difference between the largest fourth offset and the smallest fourth offset, and the expected wakeup periodicity of the station may alternatively be in another form. This is not limited.
It should be noted that the expected wakeup periodicity of the station may alternatively be set by a user based on a requirement.
Step 302i: The station performs a composite operation on the expected wakeup periodicity of the station and the first time interval, to obtain the low power consumption parameter.
For a description of step 302i, refer to the corresponding description of step 302d. Details are not described again.
In the method shown in
It can be understood that, to achieve the foregoing functions, the station, or the like includes a corresponding hardware structure and/or software module for implementing each function. A person skilled in the art should be easily aware that, in combination with units and algorithm operations of the examples described in embodiments disclosed in this specification, this application can be implemented by hardware or a combination of hardware and computer software. Whether a function is performed by hardware or hardware driven by computer software depends on a particular application and a design constraint of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of this application.
In embodiments of this application, the station may be divided into functional modules based on the foregoing method examples. For example, each functional module may be obtained through division for a corresponding function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module. It should be noted that, in embodiments of this application, division into the modules is an example and is merely logical function division, and may be other division in an actual implementation.
For example, when functional modules are obtained through division in an integrated manner,
In a possible implementation, the communication apparatus shown in
The transceiver unit 1001 is configured to obtain detection information. The detection information includes at least one first time point, and the first time point is a start time point at which an access point actually sends a beacon packet to the communication apparatus for one time.
The processing unit 1002 is configured to obtain a low power consumption parameter based on the detection information and a first time interval. The first time interval is a preconfigured time interval at which the access point sends the beacon packet to the communication apparatus, the low power consumption parameter includes an actual wakeup periodicity of the communication apparatus and an actual receive window length within which the communication apparatus receives the beacon packet, or the low power consumption parameter includes an actual wakeup periodicity of the communication apparatus, and the actual wakeup periodicity of the communication apparatus is greater than a preconfigured wakeup periodicity of the communication apparatus.
The processing unit 1002 is further configured to receive the beacon packet from the access point based on the low power consumption parameter.
Optionally, the processing unit 1002 is specifically configured to determine at least one second time point in a one-to-one correspondence with the at least one first time point based on a start time point at which the access point sends the beacon packet to the communication apparatus at the first time interval at a previous time and the first time interval. One second time point is a start time point at which the access point sends the beacon packet to the communication apparatus at the first time interval for one time. The processing unit 1002 is further specifically configured to obtain the low power consumption parameter based on the detection information, the at least one second time point, and the preconfigured wakeup periodicity of the communication apparatus. The preconfigured wakeup periodicity of the communication apparatus is the same as the first time interval.
Optionally, the low power consumption parameter includes the actual wakeup periodicity of the communication apparatus and the actual receive window length within which the communication apparatus receives the beacon packet. The processing unit 1002 is specifically configured to obtain at least one first offset. Each first offset is an offset of a first time point relative to a second time point corresponding to the first time point. The processing unit 1002 is further specifically configured to obtain the low power consumption parameter based on the at least one first offset and the preconfigured wakeup periodicity of the communication apparatus. There is a correspondence between the first offset and the actual wakeup periodicity of the communication apparatus.
Optionally, the low power consumption parameter includes the actual wakeup periodicity of the communication apparatus. The processing unit 1002 is specifically configured to obtain at least one first offset. Each first offset is an offset of a first time point relative to a second time point corresponding to the first time point. The processing unit 1002 is further specifically configured to obtain an expected wakeup periodicity of the communication apparatus based on the at least one first offset and the preconfigured wakeup periodicity of the communication apparatus. There is a correspondence between the expected wakeup periodicity of the communication apparatus and the first offset. The processing unit 1002 is further specifically configured to perform a composite operation on the expected wakeup periodicity of the communication apparatus and the first time interval, to obtain the low power consumption parameter.
Optionally, the detection information further includes at least one third time point, one third time point is a start time point at which the access point actually sends a response packet to the communication apparatus for one time, one third time point corresponds to one fourth time point, and the fourth time point is a start time point at which the communication apparatus indicates the access point to send the response packet to the communication apparatus.
Optionally, the low power consumption parameter includes the actual wakeup periodicity of the communication apparatus and the actual receive window length within which the communication apparatus receives the beacon packet. The processing unit 1002 is specifically configured to obtain at least one first offset. Each first offset is an offset of a first time point relative to a second time point corresponding to the first time point. The processing unit 1002 is further specifically configured to obtain at least one second offset. Each second offset is an offset of a third time point relative to a fourth time point corresponding to the third time point. The processing unit 1002 is further specifically configured to obtain the low power consumption parameter based on the at least one first offset, the at least one second offset, and the preconfigured wakeup periodicity of the communication apparatus. There is a correspondence among the first offset, the second offset, and the actual wakeup periodicity of the communication apparatus.
Optionally, the low power consumption parameter includes the actual wakeup periodicity of the communication apparatus. The processing unit 1002 is specifically configured to obtain at least one first offset. Each first offset is an offset of a first time point relative to a second time point corresponding to the first time point. The processing unit 1002 is further specifically configured to obtain at least one second offset. Each second offset is an offset of a third time point relative to a fourth time point corresponding to the third time point. The processing unit 1002 is further specifically configured to obtain an expected wakeup periodicity of the communication apparatus based on the at least one first offset, the at least one second offset, and the preconfigured wakeup periodicity of the communication apparatus. There is a correspondence among the first offset, the second offset, and the expected wakeup periodicity of the communication apparatus. The processing unit 1002 is further specifically configured to perform a composite operation on the expected wakeup periodicity of the communication apparatus and the first time interval, to obtain the low power consumption parameter.
All related content of the operations in the foregoing method embodiments may be cited in function descriptions of the corresponding functional modules. Details are not described herein again.
In this embodiment, the communication apparatus is presented in a form of functional modules obtained through division in an integrated manner. The “module” herein may be a specific ASIC, a circuit, a processor and a memory that execute one or more software or firmware programs, an integrated logic circuit, and/or another component that can provide the foregoing functions. In a simple embodiment, a person skilled in the art may figure out that the communication apparatus may be in a form shown in
For example, the processor 201 in
For example, functions/implementation processes of the transceiver unit 1001 and the processing unit 1002 in
Because the communication apparatus provided in this embodiment may perform the Wi-Fi communication method, for technical effects that can be obtained by the communication apparatus, refer to the foregoing method embodiment. Details are not described herein again.
Based on the foregoing descriptions of the implementations, a person skilled in the art may clearly understand that for the purpose of convenient and brief descriptions, division into the foregoing functional modules is merely used as an example for descriptions. During an actual application, the foregoing functions can be allocated to different functional modules for implementation based on a requirement, in other words, an inner structure of an apparatus is divided into different functional modules to implement all or a part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatuses and methods may be implemented in other manners. For example, the described apparatus embodiments are merely examples. For example, division into the modules or units is merely logical function division, and may be other division during an actual implementation. For example, a plurality of units or components may be combined or may be integrated into another apparatus, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electrical, mechanical, or another form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one or more physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected based on an actual requirement to achieve the objectives of the solutions of embodiments.
In addition, functional units in embodiments of this application may be integrated into one processing unit, each of the units may exist alone physically, or two or more units may be integrated into one unit. The integrated unit may be implemented in a form of hardware, or may be implemented in a form of a software functional unit.
When the integrated unit is implemented in a form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a readable storage medium. Based on such understanding, the technical solutions of embodiments of this application essentially, or the part contributing to the conventional technology, or all or some of the technical solutions may be implemented in a form of a software product. The software product is stored in a storage medium and includes several instructions for instructing a device (which may be a single-chip microcomputer, a chip, or the like) or a processor to perform all or some of steps of methods in embodiments of this application. The foregoing storage medium includes any medium that can store program code, such as a USB flash drive, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disc.
The foregoing descriptions are only specific implementations of this application, but are not intended to limit the protection scope of this application. Any variation or replacement within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.
This application is a continuation of International Application No. PCT/CN2020/085990, filed on Apr. 21, 2020, the disclosure of which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2020/085990 | Apr 2020 | US |
Child | 17969885 | US |