Message period adjustment method and device, electronic equipment and storage medium

By dynamically adjusting the message reception cycle in the sleep state, combining the number of accesses and application information, the contradiction between power savings in the sleep state and data real-time is solved, and the balance between power consumption and real-time is achieved. .

CN119212053APending Publication Date: 2024-12-27VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411374459.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In the prior art, when the electronic device is connected to an access point, the message reception period in the sleep state is set too long or too short, which makes it difficult to balance power savings and data real-time data, affecting the power consumption and data transmission efficiency of the device.

Method used

By obtaining the number of access points of electronic equipment access access points and application information of the background running application, the message reception period is dynamically adjusted to ensure a balance between real-time data transmission and power consumption.

Benefits of technology

It realizes the real-time performance of data transmission while reducing the power consumption of electronic devices, and avoids the poor real-time performance caused by excessively long reception period and large power consumption caused by excessively short reception period.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119212053A_ABST
    Figure CN119212053A_ABST
Patent Text Reader

Abstract

The invention discloses a message period adjustment method and device, electronic equipment and a storage medium, and belongs to the technical field of communication. The method comprises the steps that under the condition that the electronic equipment is in a dormant state, reference information is acquired, and the reference information comprises at least one of the following items: the access number of APs accessed by the electronic equipment and application information of application programs running in the background of the electronic equipment; and adjusting a message receiving period of the electronic device based on the reference information, the message receiving period being a period of receiving a DTIM from the AP, and the DTIM being used for waking up the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a message period adjustment method, device, electronic device and storage medium. Background Art

[0002] Currently, when an electronic device is connected to an access point (AP) and is in sleep mode, the AP can periodically send a beacon frame containing a delayed transmission indication message (DTIM) to notify the electronic device that the AP has cached data. The electronic device is awakened and notifies the AP to send the data.

[0003] In the related art, an electronic device can set a receiving cycle and periodically receive beacon frames sent by an AP device through the receiving cycle. When the received beacon frame contains DTIM, the electronic device can determine that the AP has cached data. At this time, the electronic device can change from a dormant state to a working state and notify the AP to send the data.

[0004] However, in the above method, since the period for the electronic device to receive the DTIM beacon frame is set in advance, setting a longer receiving period can allow the electronic device to sleep for a longer time, thereby saving power, but will reduce the ability to transmit data in real time; setting a shorter receiving period helps to transmit data in a timely manner, but the electronic device must be awakened frequently, resulting in increased power consumption. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a message period adjustment method, device, electronic device and storage medium, which can reduce the power consumption of electronic equipment while ensuring the real-time performance of data transmission.

[0006] In the first aspect, an embodiment of the present application provides a message cycle adjustment method, which includes: when an electronic device is in a sleep state, obtaining reference information, the reference information including at least one of the following: the number of accesses of the electronic device to an AP, application information of an application running in the background of the electronic device; based on the reference information, adjusting the message receiving cycle of the electronic device, the message receiving cycle being a period for receiving a delayed transmission indication message DTIM from the AP, and the DTIM being used to wake up the electronic device.

[0007] In a second aspect, an embodiment of the present application provides a message cycle adjustment device, which includes: an acquisition module and an adjustment module. The acquisition module is used to acquire reference information when the electronic device is in a dormant state, and the reference information includes at least one of the following: the number of accesses of the electronic device to an AP, and application information of an application running in the background of the electronic device. The adjustment module is used to adjust the message receiving cycle of the electronic device based on the reference information acquired by the acquisition module, and the message receiving cycle is a cycle for receiving a delayed transmission indication message DTIM from the AP, and the DTIM is used to wake up the electronic device.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0012] In some embodiments of the present application, when the electronic device is in a dormant state, the period of receiving the DTIM from the AP can be adjusted by at least one of the number of accesses to the AP and the application information of the application running in the background of the electronic device. In this solution, when the electronic device is in a dormant state, the period of receiving the DTIM can be dynamically adjusted according to at least one of the number of accesses to the AP and the application information of the application running in the background. That is, by judging the number of electronic devices connected to the AP, the period of receiving the DTIM is dynamically adjusted to avoid too many electronic devices connected to the AP, and when sending data in sequence, it takes a long time to receive the data, thereby ensuring the real-time performance of data transmission; and according to the delay requirements in the application information, the period of receiving the DTIM can be dynamically adjusted to avoid the large power consumption caused by too short a receiving period, thereby reducing power consumption. In this way, a balance is found between the real-time performance of data transmission and power consumption through the information of the number of accesses to the AP and the application information of the application running in the background, thereby saving power consumption and ensuring the real-time performance of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 is a flowchart of a message cycle adjustment method provided by some embodiments of the present application;

[0014] Figure 2 is a flowchart of a message cycle adjustment method provided by some embodiments of the present application;

[0015] Figure 3 is a flowchart of a message cycle adjustment method provided by some embodiments of the present application;

[0016] Figure 4 is a flowchart of a message cycle adjustment method provided by some embodiments of the present application;

[0017] Figure 5 is a flowchart of a message cycle adjustment method provided by some embodiments of the present application;

[0018] Figure 6 is a flowchart of a message cycle adjustment method provided by some embodiments of the present application;

[0019] Figure 7 is a flowchart of a message cycle adjustment method provided by some embodiments of the present application;

[0020] Figure 8 is a flowchart of a message cycle adjustment method provided by some embodiments of the present application;

[0021] Fig. 9 is a flowchart of a message cycle adjustment method provided by some embodiments of the present application;

[0022] Fig.10 is a flowchart of a message cycle adjustment method provided by some embodiments of the present application;

[0023] Fig.11 is a structural schematic diagram of a message cycle adjustment device provided in some embodiments of the present application;

[0024] Fig.12 is a schematic diagram of the structure of an electronic device provided by some embodiments of the present application;

[0025] Fig.13 It is a schematic diagram of the structure of an electronic device provided in some embodiments of the present application. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0027] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0028] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".

[0029] The professional terms involved in this application are explained below.

[0030] AP: It is a wireless switch used in wireless networks and is also the core of wireless networks. AP is the access point for mobile computer users to enter the wired network. It is mainly used in broadband homes, inside buildings and inside parks, and can cover tens to hundreds of meters. It not only includes simple wireless access points, but also wireless routers. For example, AP can be a general term for devices such as wireless gateways or wireless bridges.

[0031] Traffic Indication Message (TIM): used to instruct the AP to cache data for electronic devices in sleep mode. The AP can set the first bit of the TIM to 0 to indicate that a broadcast or multicast frame is cached by the AP. DTIM is a special type of TIM.

[0032] DTIM Interval: It is an important parameter in the Wireless Local Area Network (WLAN). It is used to configure the interval between the AP Beacon frames that carry DTIM. DTIM indicates that there is data of electronic devices temporarily stored at the AP. The default DTIM Interval is set to 1, that is, each Beacon carries DTIM information.

[0033] Beacon frame: It is a periodic frame used to announce the existence and status of the network in the wireless LAN. It contains fields such as version, frame type, frame subtype, etc., and implements different functions such as power management, retry and sorting through the frame control field.

[0034] Beacon Interval: The transmission period of Beacon frames. The AP can send Beacon frames at regular intervals. The default value specified by the 802.11 standard is 100 time units (TU) 1TU = 1024us. The Beacon frame is used to notify WLAN network services and synchronize information with electronic devices. The Beacon frame can carry DTIM.

[0035] Arithmetic sequence: Arithmetic sequence is a common type of sequence. If the difference between each term and the previous term of a sequence from the second term onwards is equal to the same constant, this sequence is called an arithmetic sequence, and this constant is called the common difference of the arithmetic sequence, which is usually represented by the letter d.

[0036] The message period adjustment method, device, electronic device storage medium and program product provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0037] The message cycle adjustment method, device, electronic device, and storage medium provided in the embodiments of the present application can be applied to the message receiving scenario when the electronic device is in a dormant state. For example, when the electronic device is in a dormant state, a chat application receives a message, when the electronic device is in a dormant state, a text message application receives a message, or when the electronic device is in a dormant state, a browser application receives a message.

[0038] Scenario 1, taking the scenario where a chat application receives a message when an electronic device is in a dormant state as an example, electronic device 1 is in a dormant state, and the chat application of electronic device 1 is running in the background. At this time, if electronic device 2 sends a chat message to electronic device 1, the chat message first reaches the AP through the network for cache, and the AP will send a beacon frame containing DTIM to electronic device 1 at the next DTIMInterval. When electronic device 1 receives the beacon frame containing DTIM, it is awakened and notifies the AP to send the chat message, so that the chat application in electronic device 1 can receive the message.

[0039] Scenario 2, when the electronic device is in a dormant state, the browser application receives a message as an example. When the electronic device 1 is in a dormant state, the browser application of the electronic device 1 is running in the background. At this time, if the server sends a content push message to the browser application, the content push message first reaches the AP through the network for cache, and the AP will send a beacon frame containing DTIM to the electronic device 1 at the next DTIM Interval. When the electronic device 1 receives the beacon frame containing DTIM, it is awakened and notifies the AP to send the content push message. In this way, the browser application in the electronic device 1 can receive the content push message.

[0040] The execution subject of the message cycle adjustment method provided in the embodiment of the present application may be a message cycle adjustment device, and the message cycle adjustment device may be an electronic device, or a functional module in an electronic device. The technical solution provided in the embodiment of the present application is described below using an electronic device as an example.

[0041] The present application embodiment provides a message cycle adjustment method, Figure 1 FIG. 1 is a flow chart of a message cycle adjustment method provided by an embodiment of the present application. Figure 1 As shown, the message cycle adjustment method provided in the embodiment of the present application may include the following steps 201 and 202.

[0042] Step 201: When the electronic device is in a dormant state, the electronic device obtains reference information.

[0043] In some embodiments of the present application, the above-mentioned reference information includes at least one of the following: the number of electronic devices accessing the AP, and application information of an application program running in the background of the electronic device.

[0044] In some embodiments of the present application, the above-mentioned sleep state means that when the electronic device has not been used for a period of time, it will automatically enter a low power consumption mode to save battery power.

[0045] In some embodiments of the present application, when the electronic device detects that no user input is received within a preset time period, the electronic device can automatically enter a sleep state.

[0046] In some embodiments of the present application, the above-mentioned preset duration may be preset by the electronic device; or customized by the user.

[0047] For example, if the electronic device does not receive any user input within 30 seconds, the electronic device may automatically enter a sleep state.

[0048] Also exemplarily, the user can click and input on the application icon of the setting application so that the electronic device displays the setting application interface, which includes a sleep mode identifier; the user can click on the sleep mode identifier so that the electronic device can display the sleep mode editing interface, which includes three time controls, each time control is used to indicate that the electronic device enters a sleep state after the user has not operated the electronic device for a time corresponding to the time control; the three time controls are a 1-minute time control, a 5-minute time control, and a 10-minute time control, respectively, and the user can input into the 5-minute time control so that the electronic device can enter a sleep state after the user has not operated the electronic device for 5 minutes.

[0049] In some embodiments of the present application, the above-mentioned application information may include at least one of the following: application name, application delay requirement, application type, etc.

[0050] In some embodiments of the present application, when the electronic device is in a sleep state, the electronic device can detect an application program running in the background to obtain application information of the application program running in the background.

[0051] Exemplarily, when the electronic device is in a sleep state and a chat application is running in the background, and when the electronic device receives a beacon frame sent by an AP, the reference information can be obtained.

[0052] Exemplarily, when the electronic device is in a sleep state and a browser application is running in the background, and when the electronic device receives a beacon frame sent by an AP, the reference information can be obtained.

[0053] In some embodiments of the present application, the above-mentioned reference information includes the number of electronic devices accessing the AP.

[0054] For example, in combination Figure 1 ,like Figure 2 As shown, the above step 201 can be specifically implemented through the following step 201a.

[0055] Step 201a: When the electronic device is in a dormant state and receives a beacon frame from an AP within a first cycle, the electronic device determines the number of accesses that matches the network type of the WiFi to which the electronic device is connected as reference information.

[0056] In some embodiments of the present application, the first period is any period in the default receiving period of DTIM.

[0057] In some embodiments of the present application, the default receiving period of the DTIM is set in advance by the electronic device.

[0058] Exemplarily, the default receiving period may be that the electronic device receives a beacon frame from the AP every 1000 us (0.00001 s).

[0059] In some embodiments of the present application, the beacon frame may be a beacon frame including a DTIM or a beacon frame not including a DTIM.

[0060] In some embodiments of the present application, the electronic device can determine the network type through the connected WiFi.

[0061] Exemplarily, the attribute information of WiFi usually includes the network type, so the electronic device can determine the network type through the attribute information of WiFi.

[0062] In some embodiments of the present application, the above network type may be any one of a home network type and a local area network type.

[0063] Exemplarily, when the network type is a home network type, the access number of the electronic device to the AP is 5, and the access number of the electronic device to the AP matches the home network type.

[0064] Exemplarily, when the network type is a local area network type, the access number of the electronic device to the AP is 20, and the access number of the electronic device to the AP matches the local area network type.

[0065] Exemplarily, when the electronic device is in a sleep state and a chat application is running in the background, and the electronic device receives a beacon frame sent by the AP within the first period, the reference information can be obtained in the above manner.

[0066] Exemplarily, when the electronic device is in a sleep state and a browser application is running in the background, and the electronic device receives a beacon frame sent by the AP within a first period, the reference information can be obtained.

[0067] In some embodiments of the present application, the electronic device can obtain the number of electronic devices accessing the AP, and thus can dynamically adjust the message receiving period of the electronic device according to the number of electronic devices accessing the AP, so as to achieve a balance between the real-time performance of data transmission and power consumption, avoiding poor real-time performance of data transmission due to too long a receiving period and high power consumption due to too short a receiving period; in this way, the power consumption of the electronic device is saved while the real-time performance of data transmission is also guaranteed.

[0068] In some embodiments of the present application, the above-mentioned reference information includes the number of electronic devices accessing the access point AP.

[0069] Exemplarily, the above step 201 can be specifically implemented through the following steps 201b to 201d.

[0070] Step 201b: When the electronic device is in a sleep state and receives a beacon frame from an AP within a first period, the electronic device sends a first message to the AP.

[0071] In some embodiments of the present application, the first period is any period in the default receiving period of DTIM.

[0072] In some embodiments of the present application, the first message is used to instruct the AP to send an access quantity to the electronic device.

[0073] In some embodiments of the present application, the electronic device may send the first message to the AP via WiFi connected to the AP.

[0074] Step 201c: The electronic device receives a second message sent by the AP.

[0075] In some embodiments of the present application, the second message carries the access quantity.

[0076] In some embodiments of the present application, the electronic device may receive the second message sent by the AP via WiFi connected to the AP.

[0077] For example, the electronic device may send a first message to the AP via WiFi, and the first message is used to instruct the AP to send the number of electronic devices connected to the AP to the electronic device. Then, after receiving the first message, the AP may send a second message to the electronic device, and the second message includes the number of electronic devices connected to the AP. Finally, after receiving the second message, the electronic device may determine the number of electronic devices connected to the AP through the second message.

[0078] Step 201d: The electronic device determines the second message as reference information.

[0079] In some embodiments of the present application, after receiving the second message, the electronic device may parse the second message to obtain the above-mentioned reference information from the second message.

[0080] Exemplarily, the electronic device may parse the second message through a decoder to obtain the reference information from the second message.

[0081] Exemplarily, the above decoder may be a data decoder.

[0082] Exemplarily, when an electronic device is in a sleep state and a chat application is running in the background, and the electronic device receives a beacon frame sent by an AP within a first cycle, the electronic device can send a first message to the AP to instruct the AP to send the maximum number of electronic devices connected to the AP to the electronic device; then, receive a second message sent by the AP, which carries the above number, and determine the maximum number of electronic devices connected to the AP through the second message.

[0083] Exemplarily, when an electronic device is in a sleep state and a browser application is running in the background, and the electronic device receives a beacon frame sent by an AP within a first cycle, the electronic device can send a first message to the AP to instruct the AP to send the maximum number of electronic devices connected to the AP to the electronic device; then, receive a second message sent by the AP, which carries the above number, and determine the maximum number of electronic devices connected to the AP through the second message.

[0084] In some embodiments of the present application, the electronic device can obtain the number of electronic devices accessing the AP, and thus can dynamically adjust the message receiving period of the electronic device according to the number of electronic devices accessing the AP, so as to achieve a balance between the real-time performance of data transmission and power consumption, avoiding poor real-time performance of data transmission due to too long a receiving period and high power consumption due to too short a receiving period; in this way, the power consumption of the electronic device is saved while the real-time performance of data transmission is also guaranteed.

[0085] Step 202: The electronic device adjusts a message receiving cycle of the electronic device based on the reference information.

[0086] In some embodiments of the present application, the message receiving period is a period for receiving a DTIM from an AP, and the DTIM is used to wake up the electronic device.

[0087] In some embodiments of the present application, the DTIM may be carried in a beacon frame sent by the AP.

[0088] In some embodiments of the present application, after being awakened, the electronic device may notify the AP so that the AP may send the cached data to the electronic device.

[0089] Exemplarily, after being awakened, the electronic device may send a third message to the AP, where the third message is used to notify the AP that the electronic device is in working state; after receiving the third message, the AP may send the cached data to the electronic device.

[0090] In some embodiments of the present application, when the electronic device does not receive a beacon frame from the AP within a first period, the electronic device may not perform the operation of adjusting the message reception period until the electronic device receives a beacon frame from the AP within a default reception period, and then the electronic device may adjust the message reception period of the electronic device based on the reference information.

[0091] For example, when electronic device 1 is in a dormant state, the chat application of electronic device 1 is running in the background. At this time, if electronic device 2 sends a chat message to electronic device 1, the chat message first reaches the AP through the network for buffering, and the AP sends a beacon frame containing DTIM to electronic device 1 at the next DTIM Interval. When electronic device 1 receives the beacon frame containing DTIM, it is awakened and notifies the AP to send the chat message, and based on the reference information, increases or decreases the message receiving cycle of the electronic device, so that the chat application in electronic device 1 can receive the message through the adjusted message receiving cycle.

[0092] Exemplarily, when electronic device 1 is in a dormant state, the browser application of electronic device 1 is running in the background. At this time, if the server sends a content push message to the browser application, the content push message first reaches the AP through the network for caching, and the AP sends a beacon frame containing DTIM to electronic device 1 at the next DTIM Interval. When electronic device 1 receives the beacon frame containing DTIM, it is awakened and notifies AP to send the content push message, and based on the reference information, increases or decreases the message receiving cycle of the electronic device, so that the browser application in electronic device 1 can receive the message through the adjusted message receiving cycle.

[0093] In the cycle adjustment method provided in the embodiment of the present application, when the electronic device is in a dormant state, the cycle of the electronic device receiving the DTIM from the AP can be adjusted by at least one of the number of accesses to the AP and the application information of the application running in the background of the electronic device. In this scheme, when the electronic device is in a dormant state, the cycle of receiving the DTIM can be dynamically adjusted according to at least one of the number of accesses to the AP and the application information of the application running in the background. That is, by judging the number of electronic devices connected to the AP, the cycle of receiving the DTIM is dynamically adjusted to avoid too many electronic devices connected to the AP, and when sending data in sequence, it takes a long time to receive the data, thereby ensuring the real-time performance of data transmission; and according to the delay requirements in the application information, the cycle of receiving the DTIM can be dynamically adjusted to avoid the large power consumption caused by too short a receiving cycle, thereby reducing power consumption. In this way, a balance is found between the real-time performance of data transmission and power consumption through the information of the number of accesses to the AP and the application information of the application running in the background, thereby saving power consumption and ensuring the real-time performance of data transmission.

[0094] In some embodiments of the present application, Figure 1 ,like Figure 3 As shown, the above step 202 can be specifically implemented through the following step 202a or step 202b.

[0095] Step 202a: When the access quantity is less than or equal to the access quantity threshold, the electronic device increases the message receiving cycle of the electronic device.

[0096] In some embodiments of the present application, the above-mentioned access quantity threshold may be determined based on the network type.

[0097] In some embodiments of the present application, the above network type may be a home network type or a local area network type.

[0098] Exemplarily, when the network type is a home network, the access quantity threshold is 0-5, where 0 is the lower limit of the access quantity threshold and 5 is the upper limit of the access quantity threshold.

[0099] It should be noted that since the number of electronic devices connected to an AP in a home network environment usually does not exceed 5, the electronic devices can assume by default that environmental interference is smaller in a home network environment, and thus the electronic devices can automatically increase the message receiving period of the electronic devices after the first period.

[0100] It can be understood that the above-mentioned small environmental interference means that the AP receives data sent by other electronic devices to different electronic devices at the same time. At this time, the AP needs to send data to different electronic devices in turn through different sending cycles. Since the number of electronic devices connected to the AP is small, the time for the AP to send data to different electronic devices is very short, which can be basically completed within 5us, which has little impact on the real-time performance of data received by the electronic devices.

[0101] In some embodiments of the present application, the above-mentioned message receiving period can be adjusted to a maximum of 0.00009s. If the message receiving period is set too large, when the electronic device cannot receive the beacon frame containing DTIM sent by the AP for a long time, the electronic device will think that the AP has a fault and will automatically disconnect from the AP, resulting in packet loss.

[0102] In some embodiments of the present application, when the electronic device determines that the number of accesses is less than or equal to the number of accesses, it can assume that the environmental interference in the current network environment is small, so that the message receiving cycle of the electronic device can be automatically increased. In other words, the electronic device can automatically adjust the message receiving cycle to a receiving cycle that can meet its own usage needs according to the network type of the currently connected WiFi, so as to save the power consumption of the electronic device while ensuring the real-time performance of data transmission.

[0103] In some embodiments of the present application, Figure 3 ,like Figure 4 As shown, the above step 202a can be specifically implemented through the following step 202a1.

[0104] Step 202a1: When the access number is less than or equal to the access number threshold, the electronic device adjusts the interval using the first arithmetic progression as a period to increase the message receiving period of the electronic device.

[0105] In some embodiments of the present application, the first arithmetic progression is an increasing arithmetic progression.

[0106] In some embodiments of the present application, the period adjustment interval is a tolerance of the first arithmetic progression.

[0107] In some embodiments of the present application, the tolerance may range from 2.5 us to 3 us, that is, 2.5 us is the minimum period adjustment interval, and 3 us is the maximum period adjustment interval.

[0108] Exemplarily, the first arithmetic progression may be 1, 3, 6, 9, where the common difference is 3.

[0109] Exemplarily, taking the period adjustment interval of 3us as an example, when the electronic device determines that the current network type is a home network type and the electronic device receives a beacon frame from the AP within the first period, the electronic device can increase the first period from 0.00001s to 0.00003s, and then the electronic device can subsequently receive the beacon frame containing DTIM from the AP with a period of 0.00003s.

[0110] In some embodiments of the present application, when the electronic device receives a beacon frame including a DTIM from an AP through an increased message receiving period, the electronic device may increase the message receiving period again through a period adjustment interval.

[0111] Exemplarily, when the electronic device determines that the current network type is a home network type and the electronic device receives a beacon frame containing DTIM from the AP within a period of 0.00003s, the electronic device can increase the first period from 0.00003s to 0.00006s, and then the electronic device can subsequently receive beacon frames containing DTIM from the AP with a period of 0.00006s.

[0112] In some embodiments of the present application, when the electronic device receives a beacon frame including a DTIM from an AP by adjusting the message receiving period again, the electronic device may adjust the message receiving period again by periodically adjusting the interval.

[0113] Exemplarily, when the electronic device determines that the current network type is a home network type and the electronic device receives a beacon frame containing DTIM from the AP within a period of 0.00006s, the electronic device can further increase the first period from 0.00006s to 0.00009s, and then the electronic device can subsequently receive beacon frames containing DTIM from the AP with a period of 0.00009s.

[0114] In some embodiments of the present application, when the electronic device receives a beacon frame including a DTIM from the AP by adjusting the message receiving period again, the electronic device may maintain the current message receiving period, that is, maintain the message receiving period of 0.00009s.

[0115] It should be noted that the above-mentioned current message receiving cycle is the message receiving cycle currently being used by the electronic device.

[0116] In some embodiments of the present application, after the electronic device receives a beacon frame containing DTIM from the AP, the electronic device can use an arithmetic progression to sequentially increase the message receiving period, so that while ensuring good real-time data transmission, the electronic device will not be frequently awakened, thereby reducing the power consumption of the electronic device.

[0117] Step 202b: When the access quantity is greater than the access quantity threshold, the electronic device reduces the message receiving cycle of the electronic device.

[0118] In some embodiments of the present application, the electronic device may reduce the message receiving period of the electronic device according to an arithmetic progression.

[0119] It should be noted that the minimum adjustable message receiving period is 0.00001s. If the message receiving period is set too small, the electronic device will be frequently awakened, resulting in increased power consumption of the electronic device.

[0120] In some embodiments of the present application, when the access quantity is greater than the access quantity threshold, the electronic device may determine that the network type of the current network is a local area network type.

[0121] Exemplarily, the LAN network type is a network type in which the number of electronic devices connected to the AP device is greater than or equal to 20.

[0122] Exemplarily, the above-mentioned local area network type may also be referred to as a public network type.

[0123] It should be noted that, since the number of electronic devices connected to the AP under the public network type usually exceeds 20, the electronic devices can assume that the environmental interference is greater under the public network type, and the electronic devices can automatically reduce the message receiving cycle of the electronic devices.

[0124] It can be understood that the above-mentioned large environmental interference means that the AP receives data sent by other electronic devices to different electronic devices at the same time. At this time, the AP needs to send data to different electronic devices in turn through different sending cycles. Since there are a large number of electronic devices connected to the AP, the time it takes for the AP to send data to different electronic devices is relatively long, which can basically be completed within 100us. This has a great impact on the real-time performance of data received by the electronic devices.

[0125] In some embodiments of the present application, when the electronic device determines that the number of accesses is greater than the number of accesses, it may assume that the environmental interference in the current network environment is large, thereby automatically reducing the message receiving cycle of the electronic device. In other words, the electronic device may automatically adjust the message receiving cycle to a receiving cycle that can meet its own usage needs according to the current network environment, so as to ensure the real-time performance of data transmission.

[0126] In some embodiments of the present application, Figure 4 ,like Figure 5 As shown, the above step 202b can be specifically implemented through the following step 202b1.

[0127] Step 202b1: When the number of accesses is greater than the access number threshold, the electronic device adjusts the interval in a second arithmetic progression manner to reduce the message receiving period of the electronic device.

[0128] In some embodiments of the present application, the second arithmetic progression is a decreasing arithmetic progression.

[0129] In some embodiments of the present application, the period adjustment interval is a tolerance of the second arithmetic progression.

[0130] In some embodiments of the present application, the tolerance may range from 2.5 us to 3 us, that is, 2.5 us is the minimum period adjustment interval, and 3 us is the maximum period adjustment interval.

[0131] Exemplarily, the second arithmetic progression may be 9, 6, 3, 1, where the common difference is 3.

[0132] Exemplarily, taking the period adjustment interval of 3us as an example and the first period of 0.00009s as an example, when the electronic device determines that the current network type is a public network type and the electronic device receives a beacon frame from the AP within the first period, the electronic device can reduce the first period from 0.00009s to 0.00006s, and then the electronic device can subsequently receive the beacon frame containing DTIM from the AP with a period of 0.00006s.

[0133] In some embodiments of the present application, when the electronic device fails to receive the beacon frame containing the DTIM from the AP through the reduced message receiving period, the electronic device may further reduce the message receiving period by adjusting the periodic interval.

[0134] Exemplarily, when the electronic device determines that the current network type is a public network type and the electronic device has not received a beacon frame containing DTIM from the AP within a period of 0.00006s, the electronic device can reduce the first period from 0.00006s to 0.00003s again, and then the electronic device can subsequently receive a beacon frame containing DTIM from the AP with a period of 0.00003s.

[0135] In some embodiments of the present application, when the electronic device fails to receive a beacon frame including a DTIM from the AP through the message receiving period that has been reduced again, the electronic device may further reduce the message receiving period by periodically adjusting the interval.

[0136] Exemplarily, when the electronic device determines that the current network type is a public network type and the electronic device has not received a beacon frame containing DTIM from the AP within a period of 0.00003s, the electronic device can further reduce the first period from 0.00003s to 0.00001s, and then the electronic device can subsequently receive a beacon frame containing DTIM from the AP with a period of 0.00001s.

[0137] In some embodiments of the present application, when the electronic device does not receive a beacon frame containing a DTIM from the AP through the message receiving period that has been reduced again, the electronic device may maintain the current message receiving period, that is, maintain the message receiving period of 0.00001s.

[0138] In some embodiments of the present application, after the electronic device fails to receive a beacon frame containing a DTIM from the AP through the adjusted message receiving period, the electronic device may sequentially decrease the message receiving period in an arithmetic progression to ensure real-time data transmission.

[0139] In some embodiments of the present application, the above-mentioned reference information includes application information of application programs running in the background of the electronic device, and the application information includes application type and application quantity.

[0140] For example, in combination Figure 1 ,like Figure 6 As shown, the above step 202 can be specifically implemented through the following step 301 or step 302 or step 303.

[0141] Step 301: When a first type of application is running in the background of an electronic device, the electronic device adjusts a default DTIM receiving period of the electronic device to a second message receiving period.

[0142] In some embodiments of the present application, the second message receiving period is a message receiving period associated with the first type of application.

[0143] In some embodiments of the present application, the above-mentioned first type application may be one or more.

[0144] In some embodiments of the present application, the electronic device may include at least one type of application, and each type of application is associated with a message reception delay time threshold, that is, different types of applications are associated with different message reception delay time thresholds. The at least one type of application is associated with three message reception delay time thresholds, namely, a high message reception delay time threshold, a medium message reception delay time threshold, and a low message reception delay time threshold.

[0145] Exemplarily, the value range of the above-mentioned high message reception delay time threshold can be 0.0001S to 0.001S, wherein 0.0001S is the lower limit of the high message reception delay time threshold, and 0.001S is the upper limit of the high message reception delay time threshold; the value range of the above-mentioned medium message reception delay time threshold can be 0.0002S to 0.002S, wherein 0.0002S is the lower limit of the medium message reception delay time threshold, and 0.002S is the upper limit of the medium message reception delay time threshold; the value range of the above-mentioned low message reception delay time threshold can be 0.0005S to 0.005S, wherein 0.0005S is the lower limit of the medium message reception delay time threshold, and 0.005S is the upper limit of the medium message reception delay time threshold.

[0146] In some embodiments of the present application, the above-mentioned first type of application is an application corresponding to a high message reception delay duration threshold.

[0147] Exemplarily, the first type of application may be any one of the following: a chat application, a shopping application, a financial management application or a financial application.

[0148] In some embodiments of the present application, the above-mentioned reception delay duration threshold is a network delay threshold for the application to receive data.

[0149] It can be understood that the lower the reception delay time threshold is, the shorter the delay time for the electronic device to receive data is.

[0150] In some embodiments of the present application, when the electronic device determines that a first type of application is running in the background, the electronic device can directly determine the second message receiving period based on the correspondence between the first type of application and the second message receiving period, and adjust the default receiving period of DTIM to the second message receiving period.

[0151] Exemplarily, taking the second message receiving period corresponding to the chat application as 0.00001s as an example, when the electronic device determines that the application running in the background is the chat application, the electronic device can directly adjust the default receiving period of DTIM to 0.00001s.

[0152] Exemplarily, taking the second message receiving period corresponding to the financial management application as 0.00001s, when the electronic device determines that the application running in the background is the financial management application, the electronic device can directly adjust the default receiving period of DTIM to 0.00001s.

[0153] Step 302: When the second type of application is running in the background of the electronic device, the electronic device adjusts the default DTIM receiving period of the electronic device to a third message receiving period.

[0154] In some embodiments of the present application, the third message receiving cycle is a message receiving cycle associated with the second type of application.

[0155] In some embodiments of the present application, the second type of application mentioned above may be one or more.

[0156] Exemplarily, the second type of application is an application corresponding to the message receiving delay time threshold, such as a mailbox application, a browser application or a news application.

[0157] In some embodiments of the present application, when the electronic device determines that a second type of application is running in the background, the electronic device can directly determine the third message receiving period based on the correspondence between the second application and the third message receiving period, and adjust the default receiving period of DTIM to the third message receiving period.

[0158] Exemplarily, taking the second message receiving period corresponding to the mailbox application as 0.00006s, when the electronic device determines that the application running in the background is the mailbox application, the electronic device can directly adjust the default receiving period of DTIM to 0.00006s.

[0159] For example, taking the second message receiving period corresponding to the news application as 0.00006s, when the electronic device determines that the application running in the background is the news application, the electronic device can directly adjust the default receiving period of DTIM to 0.00006s.

[0160] In some embodiments of the present application, when the applications running in the background of the electronic device include first type applications and second type applications, the electronic device can adjust the default receiving period of DTIM to the second message receiving period to ensure the real-time performance of the electronic device in receiving data.

[0161] That is to say, applications with high message reception delay time thresholds are usually the most important applications for users, involving user privacy or property safety. Therefore, when the applications running in the background include first-type applications and second-type applications, in order to ensure that the user's own interests are not harmed, the electronic device can adjust the default reception period of DTIM to the message reception period corresponding to the first-type application, that is, 0.00001s.

[0162] Step 303: When no application is running in the background of the electronic device, the electronic device adjusts the default DTIM receiving period of the electronic device to the fourth message receiving period.

[0163] In some embodiments of the present application, the message reception delay time threshold of the above-mentioned first type of application is lower than the message reception delay time threshold of the above-mentioned second type of application; the above-mentioned second message reception period is greater than the above-mentioned third message reception period; the above-mentioned fourth message reception period is greater than the above-mentioned second message reception period.

[0164] In some embodiments of the present application, the fourth message receiving period is the maximum message receiving period set in the electronic device, that is, 0.00009s.

[0165] It is understandable that when the electronic device does not run any application in the background, it means that the electronic device is completely idle. At this time, the electronic device can adjust the default receiving period of DTIM to the maximum message receiving period to save power consumption of the electronic device.

[0166] In some embodiments of the present application, when an application corresponding to a low message reception delay duration threshold (such as an album application, a camera application, or a settings application) is run in the background of an electronic device, the electronic device adjusts the default reception period of the electronic device's DTIM to a fourth message reception period.

[0167] For example, taking the message receiving period corresponding to the photo album application as 0.00009s, when the electronic device determines that the application running in the background is the photo album application, the electronic device can directly adjust the default receiving period of DTIM to 0.00009s.

[0168] For example, taking the message receiving period corresponding to the camera application as 0.00009s, when the electronic device determines that the application running in the background is the camera application, the electronic device can directly adjust the default receiving period of DTIM to 0.00009s.

[0169] In some embodiments of the present application, when the electronic device does not run any application in the background, the electronic device can make a comprehensive judgment based on the above access quantity to determine the most appropriate message receiving cycle.

[0170] Exemplarily, when no application is running in the background of the electronic device and the current network environment is a home network type, the electronic device may adjust the default receiving period of the DTIM to the fourth message receiving period.

[0171] As another example, when no application is running in the background of the electronic device and the current network environment is a public network type, the electronic device can adjust the default receiving period of DTIM to the second message receiving period to ensure that when there is an application running in the foreground of the electronic device, the application running in the foreground can receive data immediately.

[0172] In some embodiments of the present application, the electronic device may determine different message reception cycles based on a message reception delay duration threshold of an application running in the background, thereby improving the flexibility of the electronic device in determining the message reception cycle.

[0173] In some embodiments of the present application, Figure 1 ,like Figure 7 As shown, before the above step 201, the period adjustment method provided in the embodiment of the present application also includes the following steps 401 and 402.

[0174] Step 401: The electronic device obtains a message reception delay time threshold of at least one application in the electronic device.

[0175] In some embodiments of the present application, the message reception delay time threshold of the at least one application mentioned above can be stored in the installation package of the at least one application mentioned above. In this way, the electronic device can obtain the message reception delay time threshold of each application in the at least one application by parsing the installation package of the at least one application.

[0176] In some embodiments of the present application, the message reception delay time threshold of the at least one application mentioned above can be stored in an Extensible Markup Language (XML) document, which includes the application identifier of each application in the at least one application and the message reception delay time threshold corresponding to each application.

[0177] In some embodiments of the present application, the above application identifier may be any of the following: application name, application icon, or application ID number, etc. The specific identifier may be determined according to actual usage requirements, and the embodiments of the present application do not limit the identifier.

[0178] Exemplarily, the content of the above XML document can be: chat application, delay time threshold: 0.00001S; shopping application, delay time threshold: 0.00001S; financial application, delay time threshold: 0.00001S; financial application, delay time threshold: 0.00001S; email application, delay time threshold: 0.00005S; browser application, delay time threshold: 0.00005S; news application, delay time threshold: 0.00005S; album application, delay time threshold: 0.00010S; calendar application, delay time threshold: 0.00010S; camera application, delay time threshold: 0.00010S.

[0179] Step 402: The electronic device determines M message receiving periods associated with a message receiving delay duration threshold of at least one application as M message receiving periods of DTIM.

[0180] In some embodiments of the present application, different message reception delay duration thresholds are associated with different message reception cycles, and M is a positive integer.

[0181] In some embodiments of the present application, the association between the message reception delay duration threshold of at least one application and the M message reception cycles is preset in advance.

[0182] In some embodiments of the present application, the electronic device may determine three message reception cycles through the above three message reception delay time thresholds.

[0183] Exemplarily, when the message reception delay time threshold is the high message reception delay time threshold, the message reception period of DTIM is 0.00009s; when the message reception delay time threshold is the medium message reception delay time threshold, the message reception period of DTIM is 0.00006s; when the message reception delay time threshold is the low message reception delay time threshold, the message reception period of DTIM is 0.00001s.

[0184] In some embodiments of the present application, when the number of applications corresponding to a high message reception delay time threshold is one, the number of applications corresponding to a medium-high message reception delay time threshold is one, and the number of applications corresponding to a low-high message reception delay time threshold is one, the number of at least one application may be equal to the number of M message reception cycles, that is, three applications correspond to three message reception cycles, and one application corresponds to one message reception cycle.

[0185] In some embodiments of the present application, when the number of applications corresponding to a high message reception delay time threshold is multiple, the number of applications corresponding to a medium message reception delay time threshold is multiple, and the number of applications corresponding to a low message reception delay time threshold is multiple, the number of at least one application may be greater than the number of M message reception cycles.

[0186] Exemplarily, when the number of applications corresponding to a high message reception delay time threshold is 5, the number of applications corresponding to a medium message reception delay time threshold is 4, and the number of applications corresponding to a low message reception delay time threshold is 3, 5 applications with high message reception delay time thresholds correspond to one message reception cycle, 4 applications with medium message reception delay time thresholds correspond to one message reception cycle, and 3 applications with low message reception delay time thresholds correspond to one message reception cycle.

[0187] In some embodiments of the present application, the electronic device may obtain a message reception delay time threshold of at least one application in the electronic device before entering a sleep state, and determine M message reception cycles of the DTIM based on the message reception delay time threshold of at least one application. Thus, after the electronic device enters a sleep state, different message reception cycles can be associated with application programs with different message reception delay time thresholds, and the message reception cycle that meets the use requirements of the electronic device can be directly determined.

[0188] In this way, the electronic device can set in advance the association of different message receiving delay time thresholds with applications, so that after the electronic device enters the sleep state, the electronic device can directly determine the message receiving cycle that meets the use needs of the electronic device based on the association relationship, thereby improving the flexibility of the electronic device in determining the message receiving cycle.

[0189] In some embodiments of the present application, Figure 1 ,like Figure 8 As shown, after the above step 202, the period adjustment method provided in the embodiment of the present application further includes the following step 501.

[0190] Step 501: If the electronic device does not receive a DTIM within the adjusted message receiving period, the electronic device uses a second arithmetic progression as a period adjustment interval to reduce the message receiving period of the electronic device.

[0191] In some embodiments of the present application, the second arithmetic progression is a decreasing arithmetic progression.

[0192] In some embodiments of the present application, when the current network type of the electronic device is a home network type, if the electronic device does not receive the DTIM within the adjusted message receiving period, the electronic device adjusts the period interval using a second arithmetic progression to reduce the message receiving period of the electronic device.

[0193] For example, taking the adjusted message receiving period as 0.00006s, if the electronic device does not receive the DTIM within the message receiving period of 0.00006s, the electronic device may adjust the message receiving period of 0.00006s to 0.00003s.

[0194] Further, if the electronic device still does not receive the DTIM within the message receiving period of 0.00003s, the electronic device may adjust the message receiving period from 0.00003s to 0.00001s until the electronic device receives the DTIM.

[0195] It should be noted that since the message receiving cycle 0.00001s is the minimum message receiving cycle, after the electronic device adjusts the message receiving cycle to 0.00001s, it will not reduce the message receiving cycle, but maintain the message receiving cycle of 0.00001s until the DTIM is received.

[0196] In some embodiments of the present application, if the electronic device does not receive the DTIM within the adjusted message receiving period based on the application information of the background application, the electronic device adjusts the interval as a period using a second arithmetic progression to reduce the message receiving period of the electronic device.

[0197] Exemplarily, taking the adjusted message receiving period as 0.00009s as an example, within the message receiving period of 0.00009s, if the electronic device does not receive the DTIM, the electronic device may adjust the message receiving period of 0.00009s to 0.00006s.

[0198] Further, if the electronic device still does not receive the DTIM within the message receiving period of 0.00006s, the electronic device may adjust the message receiving period from 0.00006s to 0.00003s until the electronic device receives the DTIM.

[0199] In some embodiments of the present application, if the electronic device does not receive the DTIM within the adjusted message receiving period, the electronic device can automatically reduce the message receiving period of the electronic device to ensure that the electronic device can receive the DTIM, thereby ensuring the real-time nature of the electronic device receiving data.

[0200] The following is a specific example to illustrate the implementation process of the period adjustment method provided in the embodiment of the present application.

[0201] Example 1: Taking the example of an electronic device dynamically adjusting a message receiving cycle based on the number of electronic devices accessing an access point AP, as follows: Fig. 9 As shown, the period adjustment method provided in the embodiment of the present application includes the following steps 20 to 28.

[0202] Step 20: The electronic device is connected to the AP.

[0203] Step 21: The electronic device sets a default message receiving period of 0.00001s.

[0204] Step 22: The electronic device is in a dormant state and periodically receives a beacon frame containing a DTIM according to a default message receiving cycle.

[0205] Step 23: The electronic device detects whether a beacon frame including a DTIM is successfully received within a default message receiving period.

[0206] In some embodiments of the present application, within a default message reception period, if an electronic device receives a beacon frame including a DTIM, it can be considered that the electronic device has successfully received the beacon frame including the DTIM.

[0207] Alternatively, if the electronic device does not receive a beacon frame including the DTIM within the default message receiving cycle, it can be considered that the electronic device has not successfully received the beacon frame including the DTIM.

[0208] In some embodiments of the present application, when the electronic device successfully receives a beacon frame containing DTIM within the default message reception period, the electronic device may execute the following step 24; or, when the electronic device fails to successfully receive a beacon frame containing DTIM within the default message reception period, the electronic device may execute the above step 22.

[0209] Step 24: The electronic device adjusts the default message receiving period to 0.00003s.

[0210] Step 25: The electronic device continues to periodically receive beacon frames including DTIM according to the message receiving period 0.00003s.

[0211] Step 26: The electronic device detects whether the beacon frame including the DTIM is successfully received within the message receiving period 0.00003s.

[0212] In some embodiments of the present application, when the electronic device successfully receives a beacon frame containing DTIM within 0.00003s of the message reception cycle, the following step 27 may be executed; or, when the electronic device fails to successfully receive a beacon frame containing DTIM within 0.00003s of the message reception cycle, the following step 28 may be executed.

[0213] Step 27: The electronic device adjusts the message receiving period from 0.00003s to 0.00006s.

[0214] In some embodiments of the present application, the message receiving period in some embodiments of the present application is adjusted to a maximum of 0.00009s.

[0215] Step 28: The electronic device adjusts the message receiving period from 0.00003s to 0.00001s, and continues to periodically receive beacon frames including DTIM with the message receiving period of 0.00001s.

[0216] Example 2: Taking the electronic device adjusting the message receiving cycle based on application information as an example, Fig.10 As shown, the period adjustment method provided in the embodiment of the present application includes the following steps 30 to 34.

[0217] Step 30: The electronic device is connected to the AP.

[0218] Step 31: The electronic device sets a default message receiving period to 0.00001s.

[0219] After the above step 31, the electronic device may execute the following step 32, step 33 or step 34.

[0220] Step 32: When the electronic device is in a dormant state and no application is running in the background of the electronic device, the electronic device adjusts the default message receiving period to 0.00009s.

[0221] Step 33: When the electronic device is in a sleep state and a first type of application is running in the background of the electronic device, the electronic device adjusts the default message receiving period to 0.00006s.

[0222] Step 34: When the electronic device is in a sleep state and a second type of application is running in the background of the electronic device, the electronic device adjusts the default message receiving period to 0.00001s.

[0223] The above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or, under the premise that there is no contradiction, can also be executed in combination with each other. The specific implementation can be determined according to actual usage requirements, and the embodiments of the present application do not limit this.

[0224] It should be noted that the message cycle adjustment method provided in the embodiment of the present application can be executed by a message cycle adjustment device. In some embodiments of the present application, the message cycle adjustment device executing the message cycle adjustment method is taken as an example to illustrate the message cycle adjustment device provided in the embodiment of the present application.

[0225] Fig.11 A possible structural diagram of a message cycle adjustment device involved in some embodiments of the present application is shown. Fig.11 As shown, the message cycle adjustment device 70 may include: an acquisition module 71 and an adjustment module 72 .

[0226] The acquisition module 71 is used to acquire reference information when the electronic device is in a dormant state, and the reference information includes at least one of the following: the number of electronic devices accessing access points AP, and application information of applications running in the background of the electronic device. The adjustment module 72 is used to adjust the message receiving cycle of the electronic device based on the reference information acquired by the acquisition module 71, and the message receiving cycle is the cycle for receiving the delayed transmission indication message DTIM from the AP, and the DTIM is used to wake up the electronic device.

[0227] In a possible implementation, the reference information includes the number of accesses of the electronic device to the access point AP. The period adjustment device 70 provided in the embodiment of the present application also includes a determination module. The determination module 71 is used to determine the number of accesses matching the network type of the WiFi to which the electronic device is connected as reference information when a beacon frame is received from the AP within a first period, wherein the first period is any period in the default reception period of the DTIM.

[0228] In a possible implementation, the reference information includes the number of electronic devices accessing the access point AP. The message period adjustment device 70 provided in the embodiment of the present application also includes a sending module, a receiving module and a determining module. The sending module is used to send a first message to the AP when a beacon frame is received from the AP within a first period, and the first message is used to instruct the AP to send the number of accesses to the electronic device. The receiving module is used to receive a second message sent by the AP, and the second message carries the number of accesses. The determining module is used to determine the second message as reference information; wherein the first period is any period in the default receiving period of the DTIM.

[0229] In a possible implementation, the adjustment module 72 is specifically used to increase the message receiving cycle of the electronic device when the access number is less than or equal to the access number threshold; or, when the access number is greater than the access number threshold, reduce the message receiving cycle of the electronic device.

[0230] In a possible implementation, the adjustment module 72 is specifically configured to increase the message receiving period of the electronic device by adjusting the interval using the first arithmetic sequence as a period; wherein the first arithmetic sequence is an increasing arithmetic sequence.

[0231] In a possible implementation, the adjustment module 72 is specifically configured to adjust the message receiving period of the electronic device by taking the second arithmetic sequence as a period adjustment interval; wherein the second arithmetic sequence is a decreasing arithmetic sequence.

[0232] In a possible implementation, the reference information includes application information of applications running in the background of the electronic device, and the application information includes application type and application quantity. The adjustment module 72 is specifically used to adjust the default reception period of the DTIM of the electronic device to a second message reception period when a first type of application is running in the background of the electronic device, and the second message reception period is a message reception period associated with the first type of application; when a second type of application is running in the background of the electronic device, the default reception period of the DTIM of the electronic device is adjusted to a third message reception period, and the third message reception period is a message reception period associated with the second type of application; when no application is running in the background of the electronic device, the default reception period of the DTIM of the electronic device is adjusted to a fourth message reception period; wherein the message reception delay time threshold of the first type of application is lower than the message reception delay time threshold of the second type of application; the second message reception period is greater than the third message reception period; and the fourth message reception period is greater than the second message reception period.

[0233] In a possible implementation, the message cycle adjustment device 70 provided in the embodiment of the present application further includes: a determination module. The acquisition module is also used to acquire the message reception delay duration threshold of at least one application in the electronic device before acquiring the reference information when the electronic device is in a dormant state. The determination module is used to determine the M message reception cycles associated with the message reception delay duration threshold of at least one application as the M message reception cycles of DTIM, where M is a positive integer; wherein different message reception delay duration thresholds are associated with different message reception cycles.

[0234] In a possible implementation, the adjustment module 72 is further used to adjust the message receiving period of the electronic device based on the reference information, and if the electronic device does not receive the DTIM during the adjusted message receiving period, reduce the message receiving period of the electronic device by using a second arithmetic progression as the period adjustment interval.

[0235] The embodiment of the present application provides a message period adjustment device, which can dynamically adjust the period of receiving DTIM according to at least one of the access number of AP and the application information of the application running in the background when the message period adjustment device is in a dormant state. That is to say, by judging the number of period adjustment devices connected to the AP, the period of receiving DTIM is dynamically adjusted to avoid too many period adjustment devices connected to the AP, which takes a long time to receive data when sending data in sequence, thereby ensuring the real-time performance of data transmission; and according to the delay requirements in the application information, the period of receiving DTIM can be dynamically adjusted to avoid high power consumption caused by too short a receiving period, thereby reducing power consumption. In this way, a balance is found between the real-time performance of data transmission and power consumption through the access number information of the AP and the application information of the application running in the background, thereby saving power consumption and ensuring the real-time performance of data transmission.

[0236] In some embodiments of the present application, the message cycle adjustment device can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than the terminal. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a palmtop computer, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiments of the present application are not specifically limited.

[0237] In some embodiments of the present application, the message cycle adjustment device may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.

[0238] The message cycle adjustment device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.

[0239] Alternatively, if Fig.12As shown, an embodiment of the present application further provides an electronic device 90, including a processor 91 and a memory 92, wherein the memory 92 stores programs or instructions that can be executed on the processor 91, and when the program or instructions are executed by the processor 91, the various steps of the above-mentioned period adjustment method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0240] It should be noted that the electronic devices in some embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0241] Fig.13 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0242] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.

[0243] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.13 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0244] Among them, the processor 110 is used to obtain reference information when the electronic device is in a sleep state, and the reference information includes at least one of the following: the number of accesses of the electronic device to the AP, and the application information of the application running in the background of the electronic device; and based on the reference information, adjust the message receiving period of the electronic device, and the message receiving period is the period for receiving the delayed transmission indication message DTIM from the AP, and the DTIM is used to wake up the electronic device.

[0245] In some embodiments of the present application, the above-mentioned reference information includes the access number of the electronic device accessing the access point AP; the above-mentioned processor 110 is specifically used to determine the access number matching the network type of the WiFi to which the electronic device is connected as the reference information when a beacon frame is received from the AP within a first period, wherein the first period is any period in the default receiving period of the DTIM.

[0246] In some embodiments of the present application, the above-mentioned reference information includes the access number of the electronic device accessing the access point AP; the above-mentioned processor 110 is specifically used to send a first message to the AP when a beacon frame is received from the AP within a first period, and the first message is used to instruct the AP to send the access number to the electronic device; receive a second message sent by the AP, and the second message carries the access number; determine the second message as reference information; wherein the first period is any period in the default receiving period of the DTIM.

[0247] In some embodiments of the present application, the above-mentioned processor 110 is specifically used to increase the message receiving cycle of the electronic device when the access number is less than or equal to the access number threshold; or, when the access number is greater than the access number threshold, reduce the message receiving cycle of the electronic device.

[0248] In some embodiments of the present application, the processor 110 is specifically configured to increase the message receiving period of the electronic device by adjusting the interval using a first arithmetic sequence as a period; wherein the first arithmetic sequence is an increasing arithmetic sequence.

[0249] In some embodiments of the present application, the processor 110 is specifically configured to reduce the message receiving period of the electronic device by adjusting the interval in a periodic manner using a second arithmetic progression; wherein the second arithmetic progression is a decreasing arithmetic progression.

[0250] In some embodiments of the present application, the above-mentioned reference information includes application information of applications running in the background of the electronic device, and the application information includes application type and number of applications; the above-mentioned processor 110 is specifically used to adjust the default receiving period of the DTIM of the electronic device to a second message receiving period when a first type of application is running in the background of the electronic device, and the second message receiving period is a message receiving period associated with the first type of application; when a second type of application is running in the background of the electronic device, the default receiving period of the DTIM of the electronic device is adjusted to a third message receiving period, and the third message receiving period is a message receiving period associated with the second type of application; when no application is running in the background of the electronic device, the default receiving period of the DTIM of the electronic device is adjusted to a fourth message receiving period; wherein, the message reception delay duration threshold of the first type of application is lower than the delay requirement of the second type of application; the second message receiving period is greater than the third message receiving period; and the fourth message receiving period is greater than the second message receiving period.

[0251] In some embodiments of the present application, the processor 110 is further used to obtain a message reception delay time threshold of at least one application in the electronic device before obtaining reference information when the electronic device is in a sleep state; determine the M message reception cycles associated with the message reception delay time threshold of at least one application as the M message reception cycles of DTIM, where M is a positive integer; wherein different message reception delay time thresholds are associated with different message reception cycles.

[0252] In some embodiments of the present application, the processor 110 is further used to adjust the message receiving period of the electronic device based on the reference information, and then, if the electronic device does not receive the DTIM within the adjusted message receiving period, reduce the message receiving period of the electronic device; wherein the second arithmetic progression is a decreasing arithmetic progression.

[0253] The embodiment of the present application provides an electronic device, which can dynamically adjust the period of receiving DTIM according to at least one of the number of accesses to the AP and the application information of the application running in the background when the electronic device is in a dormant state. That is, by judging the number of electronic devices connected to the AP, the period of receiving DTIM is dynamically adjusted to avoid too many electronic devices connected to the AP, which takes a long time to receive the data when sending data in sequence, thereby ensuring the real-time performance of data transmission; and the period of receiving DTIM can be dynamically adjusted according to the delay requirements in the application information, thereby avoiding high power consumption caused by too short a receiving period, thereby reducing power consumption. In this way, a balance is found between the real-time performance of data transmission and power consumption through the information of the number of accesses to the AP and the application information of the application running in the background, thereby saving power consumption and ensuring the real-time performance of data transmission.

[0254] The electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0255] The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, they will not be described again here.

[0256] It should be understood that in some embodiments of the present application, the input unit 104 may include a graphics processor (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0257] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in some embodiments of the present application includes but is not limited to these and any other suitable types of memory.

[0258] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.

[0259] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0260] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0261] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0262] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0263] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned message cycle adjustment method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0264] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0265] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0266] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A message cycle adjustment method, characterized in that: The method comprises: When the electronic device is in a dormant state, obtaining reference information, the reference information including at least one of the following: the number of electronic devices accessing access points AP, and application information of an application program running in the background of the electronic device; Based on the reference information, a message receiving period of the electronic device is adjusted, where the message receiving period is a period for receiving a delayed transmission indication message DTIM from an AP, and the DTIM is used to wake up the electronic device.

2. The method according to claim 1, characterized in that The reference information includes the number of electronic devices accessing the access point AP; The obtaining of reference information includes: In the case where a beacon frame is received from the AP within the first period, determining the number of accesses matching the network type of the wireless fidelity WiFi connected to the electronic device as reference information; The first period is any period in the default receiving period of DTIM.

3. The method according to claim 1, characterized in that The reference information includes the number of electronic devices accessing the access point AP; The obtaining of reference information includes: When a beacon frame is received from the AP within a first period, sending a first message to the AP, where the first message is used to instruct the AP to send the access quantity to the electronic device; receiving a second message sent by the AP, where the second message carries an access quantity; determining the second message as reference information; The first period is any period in the default receiving period of DTIM.

4. The method according to claim 1, characterized in that: The adjusting the message receiving cycle of the electronic device based on the reference information includes: When the access quantity is less than or equal to the access quantity threshold, increasing the message receiving cycle of the electronic device; When the access quantity is greater than the access quantity threshold, the message receiving cycle of the electronic device is reduced.

5. The method according to claim 4, characterized in that The step of increasing the message receiving cycle of the electronic device comprises: Using the first arithmetic progression as a period adjustment interval, increasing the message receiving period of the electronic device; Wherein, the first arithmetic progression is an increasing arithmetic progression.

6. The method according to claim 4, characterized in that The step of reducing the message receiving cycle of the electronic device includes: Using the second arithmetic progression as the period adjustment interval, the message receiving period of the electronic device is reduced; Wherein, the second arithmetic progression is a decreasing arithmetic progression.

7. The method according to claim 1, characterized in that The reference information includes application information of application programs running in the background of the electronic device, and the application information includes application type and application quantity; The adjusting the message receiving cycle of the electronic device based on the reference information includes: In the case where the electronic device runs a first type of application in the background, adjusting the default DTIM receiving period of the electronic device to a second message receiving period, where the second message receiving period is a message receiving period associated with the first type of application; In the case where the second type of application is running in the background of the electronic device, adjusting the default receiving period of the DTIM of the electronic device to a third message receiving period, where the third message receiving period is a message receiving period associated with the second type of application; When no application is running in the background of the electronic device, adjusting the default receiving period of the DTIM of the electronic device to a fourth message receiving period; Among them, the message reception delay duration threshold of the first type of application is lower than the message reception delay duration threshold of the second type of application; the second message reception period is greater than the third message reception period; and the fourth message reception period is greater than the second message reception period.

8. The method according to claim 7, characterized in that When the electronic device is in a dormant state, before obtaining the reference information, the method further includes: Obtaining a message receiving delay time threshold of at least one application in the electronic device; Determine M message receiving periods associated with the message receiving delay duration threshold of the at least one application as M message receiving periods of DTIM, where M is a positive integer; Different message receiving delay time thresholds are associated with different message receiving cycles.

9. The method according to claim 1, characterized in that: After adjusting the message receiving cycle of the electronic device based on the reference information, the method further includes: In the adjusted message receiving period, if the electronic device does not receive the DTIM, the message receiving period of the electronic device is reduced by using the second arithmetic progression as the period adjustment interval; Wherein, the second arithmetic progression is a decreasing arithmetic progression.

10. A message cycle adjustment device, characterized in that: The message cycle adjustment device comprises: An acquisition module, configured to acquire reference information when the electronic device is in a dormant state, the reference information comprising at least one of the following: the number of electronic devices accessing access points AP, and application information of an application program running in the background of the electronic device; The adjustment module is used to adjust the message receiving period of the electronic device based on the reference information obtained by the acquisition module, wherein the message receiving period is a period for receiving a delayed transmission indication message DTIM from an AP, and the DTIM is used to wake up the electronic device.

11. The device according to claim 10, characterized in that The reference information includes the number of electronic devices accessing the access point AP; the message cycle adjustment device also includes a determination module; The determining module is configured to determine, when receiving a beacon frame from the AP within a first period, the number of accesses matching the network type of the wireless fidelity WiFi connected to the electronic device as reference information; The first period is any period in the default receiving period of DTIM.

12. The device according to claim 10, characterized in that The reference information includes the number of electronic devices accessing the access point AP; the message cycle adjustment device also includes a sending module, a receiving module and a determining module; The sending module is used to send a first message to the AP when a beacon frame is received from the AP within a first period, wherein the first message is used to instruct the AP to send the access quantity to the electronic device; The receiving module is used to receive a second message sent by the AP, where the second message carries the access quantity; The determining module is used to determine the second message as reference information; The first period is any period in the default receiving period of DTIM.

13. The device according to claim 10, characterized in that The adjustment module is specifically configured to increase the message receiving cycle of the electronic device when the access number is less than or equal to the access number threshold; When the access quantity is greater than the access quantity threshold, the message receiving cycle of the electronic device is reduced.

14. The device according to claim 13, characterized in that The adjustment module is specifically used to increase the message receiving period of the electronic device by taking the first arithmetic progression as the period adjustment interval; Wherein, the first arithmetic progression is an increasing arithmetic progression.

15. The device according to claim 13, characterized in that The adjustment module is specifically used to adjust the interval by taking the second arithmetic progression as the period to reduce the message receiving period of the electronic device; Wherein, the second arithmetic progression is a decreasing arithmetic progression.

16. The device according to claim 10, characterized in that The reference information includes application information of application programs running in the background of the electronic device, and the application information includes application type and application quantity; The adjustment module is specifically used to adjust the default DTIM receiving period of the electronic device to a second message receiving period when the first type of application is running in the background of the electronic device, and the second message receiving period is a message receiving period associated with the first type of application; In the case where the second type of application is running in the background of the electronic device, adjusting the default receiving period of the DTIM of the electronic device to a third message receiving period, where the third message receiving period is a message receiving period associated with the second type of application; When no application is running in the background of the electronic device, adjusting the default receiving period of the DTIM of the electronic device to a fourth message receiving period; Among them, the message reception delay duration threshold of the first type of application is lower than the message reception delay duration threshold of the second type of application; the second message reception period is greater than the third message reception period; and the fourth message reception period is greater than the second message reception period.

17. The device according to claim 16, characterized in that The message cycle adjustment device also includes: a determination module; The acquisition module is further configured to acquire, when the electronic device is in a dormant state, a message reception delay time threshold of at least one application in the electronic device before acquiring the reference information; The determination module is used to determine M message receiving periods associated with the message receiving delay duration threshold of the at least one application as M message receiving periods of DTIM, where M is a positive integer; Different message receiving delay time thresholds are associated with different message receiving cycles.

18. The device according to any one of claims 10, characterized in that The adjustment module is further configured to, after adjusting the message receiving period of the electronic device based on the reference information, reduce the message receiving period of the electronic device by using a second arithmetic progression as a period adjustment interval if the electronic device does not receive the DTIM within the adjusted message receiving period; Wherein, the second arithmetic progression is a decreasing arithmetic progression.

19. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the period adjustment method as claimed in any one of claims 1 to 9.

20. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the period adjustment method according to any one of claims 1 to 9 are implemented.