Communication Method, Apparatus, Device, and Storage Medium
By dynamically adjusting the interval cycle and reception duration of beacon frames based on data availability, the method addresses excessive power consumption in terminal devices, ensuring efficient data requests while reducing power wastage.
Patent Information
- Application Number
- CN202210955126.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-10
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2042-08-10
AI Technical Summary
The terminal device frequently wakes up the program to request cache data during a wireless network connection, resulting in abnormal power consumption, especially ineffective power consumption loss when there is no data cache.
The terminal device dynamically adjusts the preset interval period and reception time of the reception identification information according to the data request result, including extending the interval period or shortening the reception time to reduce the power consumption loss of the radio frequency front end.
It effectively reduces the power loss of terminal equipment when powering on the RF front end, avoids power consumption abnormalities, and ensures the normal data request capability of the equipment.
Smart Images

Figure CN115334623B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of wireless communication technologies, and in particular, to a communication method, apparatus, device, and storage medium. Background Art
[0002] In the related art, after a terminal device connects to a wireless network, a wireless access point (AP) communicates with the terminal device by means of beacon frames. The terminal device powers on a signal receiving device on the terminal device (the signal receiving device is usually the radio frequency front end of the terminal device) at a fixed duration to receive the beacon frames sent by the wireless access point through the radio frequency front end, and determines whether there is buffered data in the wireless access point that needs to be sent to the terminal device according to the identification information in the received beacon frames. When it is determined that there is buffered data, the terminal device wakes up a specific program to request the buffered data from the wireless access point to obtain network data. Summary of the Invention
[0003] To overcome the problems in the related art, the present disclosure provides a communication method, apparatus, device, and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a communication method is provided, which is applied to a terminal device. The communication method includes:
[0005] Receiving identification information sent by a wireless access point according to a preset interval period, where the identification information is used to indicate whether there is buffered data in the wireless access point that needs to be sent to the terminal device;
[0006] When it is determined according to the identification information that there is buffered data in the wireless access point that needs to be sent to the terminal device, sending a data request to the wireless access point;
[0007] Adjusting the preset interval period and / or the receiving duration for receiving the identification information each time according to the data request result.
[0008] In an exemplary embodiment, the adjusting the preset interval period and / or the receiving duration for receiving the identification information each time according to the data request result includes:
[0009] When the data request result is that no buffered data is requested, extending the preset interval period based on a first preset policy; and / or,
[0010] When the data request result is that no buffered data is requested, shortening the receiving duration based on a second preset policy.
[0011] In an exemplary embodiment, the extending the preset interval period based on a first preset policy when the data request result is that no buffered data is requested includes:
[0012] Determine the number of times of continuously sending data requests to the wireless access point and not requesting data;
[0013] Determine the extended preset interval period according to the number of times information.
[0014] In an exemplary embodiment, the determining the extended preset interval period according to the number of times information includes:
[0015] Determine the extended initial interval period according to the number of times information;
[0016] If the initial interval period is less than the interval period threshold, determine the initial interval period as the extended preset interval period;
[0017] If the initial interval period is greater than or equal to the interval period threshold, determine the interval period threshold as the extended preset interval period.
[0018] In an exemplary embodiment, when the data request result is that no cached data is requested, shortening the receiving duration based on the second preset policy includes:
[0019] Determine the number of times of continuously sending data requests to the wireless access point and not requesting data;
[0020] Determine the shortened receiving duration according to the number of times information.
[0021] In an exemplary embodiment, the determining the shortened receiving duration according to the number of times information includes:
[0022] Determine the shortened initial receiving duration according to the number of times information;
[0023] If the initial receiving duration is greater than or equal to the receiving duration threshold, determine the initial receiving duration as the shortened receiving duration;
[0024] If the initial receiving duration is less than the receiving duration threshold, determine the receiving duration threshold as the shortened receiving duration.
[0025] In an exemplary embodiment, after adjusting the preset interval period and / or the receiving duration of each receiving of the identification information according to the data request result, the communication method further includes:
[0026] When data is requested, restore the preset interval period and the receiving duration to the values before adjustment.
[0027] According to a second aspect of the embodiments of the present disclosure, there is provided a communication device applied to a terminal device, the communication device includes:
[0028] A receiving module, configured to receive identification information sent by a wireless access point according to a preset interval period, where the identification information is used to indicate whether there is cached data in the wireless access point to be sent to the terminal device;
[0029] A sending module, configured to send a data request to the wireless access point when it is determined according to the identification information that there is cached data in the wireless access point to be sent to the terminal device;
[0030] An adjustment module, configured to adjust the preset interval period and / or the receiving duration for receiving the identification information each time according to the data request result.
[0031] In an exemplary embodiment, the adjustment module is further configured to:
[0032] When the data request result is that no cached data is requested, extend the preset interval period based on a first preset policy; and / or,
[0033] When the data request result is that no cached data is requested, shorten the receiving duration based on a second preset policy.
[0034] In an exemplary embodiment, the adjustment module is further configured to:
[0035] Determine the number of times of continuously sending a data request to the wireless access point and not requesting data;
[0036] Determine the extended preset interval period according to the number of times information.
[0037] In an exemplary embodiment, the adjustment module is further configured to:
[0038] Determine the extended initial interval period according to the number of times information;
[0039] If the initial interval period is less than the interval period threshold, determine the initial interval period as the extended preset interval period;
[0040] If the initial interval period is greater than or equal to the interval period threshold, determine the interval period threshold as the extended preset interval period.
[0041] In an exemplary embodiment, the adjustment module is further configured to:
[0042] Determine the number of times of continuously sending a data request to the wireless access point and not requesting data;
[0043] Determine the shortened receiving duration according to the number of times information.
[0044] In an exemplary embodiment, the adjustment module is further configured to:
[0045] Determine a shortened initial reception duration according to the number information;
[0046] If the initial reception duration is greater than or equal to a reception duration threshold, determine the initial reception duration as the shortened reception duration;
[0047] If the initial reception duration is less than the reception duration threshold, determine the reception duration threshold as the shortened reception duration.
[0048] In an exemplary embodiment, the communication device further includes:
[0049] A reset module configured to restore the preset interval period and the reception duration to the values before adjustment when data is requested.
[0050] According to a third aspect of the embodiments of the present disclosure, there is provided a communication device, including:
[0051] A processor;
[0052] A memory for storing processor-executable instructions;
[0053] Wherein, the processor is configured to execute the method described in the first aspect of the embodiments of the present disclosure.
[0054] According to a fourth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, which when the instructions in the storage medium are executed by a processor of a device, enables the device to execute the method described in the first aspect of the embodiments of the present disclosure.
[0055] Adopting the above method of the present disclosure has the following beneficial effects: It can dynamically adjust the preset interval period and / or the reception duration for the terminal device to receive identification information according to the data request result, thereby reducing the power consumption loss of the terminal device when the radio frequency front end is powered on when data is not requested, as well as the power consumption loss caused by frequent data requests, avoiding the abnormal power consumption of the terminal device, and maintaining the normal power-on frequency of the radio frequency front end when data is requested to ensure that the terminal device can normally perform data requests.
[0056] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present invention and used together with the specification to explain the principles of the present invention.
[0058] Figure 1 is a flowchart of a communication method shown according to an exemplary embodiment;
[0059] Figure 2 is a schematic diagram of a preset interval period and a reception duration for receiving identification information shown according to an exemplary embodiment;
[0060] Figure 3 is a schematic diagram of an extended preset interval period and a shortened reception duration shown according to an exemplary embodiment;
[0061] Figure 4 is a flowchart of a method for extending a preset interval period based on a first preset strategy shown according to an exemplary embodiment;
[0062] Figure 5 is a flowchart of a method for determining an extended preset interval period according to the number information in step S402 shown according to an exemplary embodiment;
[0063] Figure 6 is a flowchart of a method for shortening a reception duration based on a second preset strategy shown according to an exemplary embodiment;
[0064] Figure 7 is a flowchart of a method for determining a shortened reception duration according to the number information in step S602 shown according to an exemplary embodiment;
[0065] Figure 8 is a flowchart of a communication method shown according to an exemplary embodiment;
[0066] Figure 9 is a block diagram of a communication device shown according to an exemplary embodiment;
[0067] Figure 10 is a block diagram of a communication device shown according to an exemplary embodiment. Detailed Description of the Embodiment
[0068] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0069] In the related art, when an abnormality occurs in a wireless access point, an incorrect beacon frame may be sent to a terminal device. Even when there is no cached data to be sent to the terminal device, the identification information in the beacon frame indicates the existence of cached data. After receiving this identification information, the terminal device frequently wakes up a specific program, such as the fireware program in the wireless chip, to request cached data from the wireless access point, thereby increasing the power consumption of the terminal device and causing abnormal power consumption of the terminal device.
[0070] In an exemplary embodiment of the present disclosure, in order to overcome the problems in the related art, a communication method is provided, which is applied to a terminal device. The terminal device receives identification information sent by a wireless access point according to a preset interval period. The identification information is used to indicate whether there is cached data in the wireless access point to be sent to the terminal device. When the terminal device determines according to the identification information that there is cached data in the wireless access point to be sent to the terminal device, it sends a data request to the wireless access point, and adjusts the preset interval period and / or the reception duration of each reception of the identification information according to the data request result. It is possible to dynamically adjust the preset interval period and / or the reception duration of the terminal device for receiving the identification information according to the data request result, thereby reducing the power consumption loss when the radio frequency front end of the terminal device is powered on when no data is requested, and the power consumption loss caused by frequent data requests, avoiding the situation of abnormal power consumption of the terminal device, and maintaining the normal power-on frequency of the radio frequency front end when data is requested to ensure that the terminal device can normally perform data requests.
[0071] In an exemplary embodiment of the present disclosure, a communication method is provided, which is applied to a terminal device. The terminal device includes electronic devices with wireless communication functions such as mobile phones, tablets, and smart wearable devices. Figure 1 is a flowchart of a communication method shown according to an exemplary embodiment, as Figure 1 shown, the communication method includes the following steps:
[0072] Step S101, receiving identification information sent by a wireless access point according to a preset interval period, where the identification information is used to indicate whether there is cached data in the wireless access point to be sent to the terminal device;
[0073] Step S102, when it is determined according to the identification information that there is cached data in the wireless access point to be sent to the terminal device, sending a data request to the wireless access point;
[0074] Step S103, adjusting the preset interval period and / or the reception duration of each reception of the identification information according to the data request result.
[0075] In step S101, after the terminal device connects to the wireless network, the wireless access point communicates with the terminal device by sending beacon frames. The beacon frames include identification information TIM (Traffic Indication Map, data to-be-transmitted information), and the identification information TIM is used to indicate whether there is buffered data in the wireless access point to be sent to the terminal device. Exemplarily, when the association identifier (AID) corresponding to the current terminal device in the identification information is 1, it indicates that there is buffered data in the wireless access point to be sent to the current terminal device; when the association identifier corresponding to the current terminal device in the identification information is 0, it indicates that there is no buffered data in the wireless access point to be sent to the current terminal device. The terminal device powers on the radio frequency front end of the signal receiving device at a preset interval period and receives the beacon frame through the radio frequency front end to receive the identification information. The receiving duration of the identification information is a fixed preset duration.
[0076] The initial preset interval period and the initial receiving duration of receiving the identification information are both fixed durations in the existing protocol. Figure 2 is a schematic diagram of the preset interval period and the receiving duration of receiving the identification information shown according to an exemplary embodiment, as Figure 2 shown, the preset interval period is T1, and the receiving duration of receiving the identification information is T2.
[0077] In step S102, when the terminal device determines, according to the received identification information, that there is buffered data in the wireless access point to be sent to the terminal device, that is, when the AID corresponding to the current device in the identification information TIM in the beacon frame is 1, the terminal device wakes up a specific program in its own wireless chip to send a data request to the wireless access point. For example, it wakes up the firmware program of the wireless chip to send a PS-POLL (Power Save-Poll) to the wireless access point.
[0078] In step S103, after the wireless access point receives the data request, if there is no buffered data in the wireless access point to be sent to the terminal device, it will not send the buffered data to the terminal device. If there is buffered data in the wireless access point to be sent to the terminal device, it will send the buffered data to the terminal device according to the data request. The terminal device determines the interval period and the receiving duration of receiving the identification information according to the data request result. When the data request result is that the buffered data is requested, the preset interval period and the receiving duration of receiving the identification information are not adjusted; when the data request result is that the buffered data is not requested, the preset interval period and / or the receiving duration of receiving the identification information are adjusted, and the adjustment rule can be determined according to actual requirements.
[0079] In an exemplary embodiment of the present disclosure, the terminal device receives identification information sent by a wireless access point at a preset interval period. When it is determined that there is buffered data in the wireless access point to be sent to the terminal device according to the received identification information, a data request is sent to the wireless access point, and the preset interval period and / or the reception duration of receiving the identification information are adjusted according to the data request result, so that the preset interval period and / or the reception duration of the terminal device receiving the identification information can be dynamically adjusted according to the data request result. Since the radio frequency front end of the terminal device needs to be powered on when receiving the identification information, therefore, dynamically adjusting the preset interval period and / or the reception duration of receiving the identification information can reduce the power consumption loss of the terminal device when the radio frequency front end is powered on, thereby avoiding the abnormal power consumption of the terminal device.
[0080] In an exemplary embodiment, adjusting the preset interval period and / or the reception duration of receiving the identification information each time according to the data request result in step S103 includes the following three cases:
[0081] First, when the data request result is that no buffered data is requested, the preset interval period is extended based on a first preset policy.
[0082] Second, when the data request result is that no buffered data is requested, the reception duration is shortened based on a second preset policy.
[0083] Third, when the data request result is that no buffered data is requested, the preset interval period is extended based on a first preset policy, and at the same time the reception duration is shortened based on a second preset policy.
[0084] When the terminal device does not request buffered data, the preset interval period for receiving the identification information can be extended based on a first preset policy, the reception duration of receiving the identification information can be shortened based on a second preset policy, or the preset interval period can be extended based on a first preset policy and the reception duration can be shortened based on a second preset policy at the same time. The first preset policy and the second preset policy can be set according to actual needs.
[0085] It should be noted that when the terminal device does not request buffered data, the preset interval period and / or the reception duration can be adjusted immediately, or the preset interval period and / or the reception duration can be adjusted when the terminal device fails to request buffered data continuously for multiple times, or after adjusting the preset interval period and / or the reception duration and still not requesting buffered data, the preset interval period and / or the reception duration can be adjusted continuously. Figure 3 is a schematic diagram of the extended preset interval period and the shortened reception duration shown according to an exemplary embodiment, as Figure 3The extended preset interval periods shown are t11, t12, and t13 respectively, and the shortened receiving durations are t21, t22, t23, and t24 respectively, where t11 < t12 < t13 and t21 > t22 > t23 > t24.
[0086] In an exemplary embodiment, Figure 4 is a flowchart of a method for extending a preset interval period based on a first preset policy shown according to an exemplary embodiment, as Figure 4 shown, and includes the following steps:
[0087] Step S401, determining the number information of continuously sending data requests to a wireless access point and not requesting data;
[0088] Step S402, determining the extended preset interval period according to the number information.
[0089] When the terminal device sends a data request to the wireless access point according to the identification information and the request result is that no cached data is requested, record an abnormal identification information once. Determine the number of consecutive abnormal identification information, and determine the extended preset interval period according to the number. For example, according to the wireless network transmission traffic indication message (DTIM) period, determine that the preset interval period is DTIM. When the consecutive number is N times, the extended preset period is set to N * DTIM.
[0090] In an exemplary embodiment, Figure 5 is a flowchart of a method for determining the extended preset interval period according to the number information in step S402 shown according to an exemplary embodiment, as Figure 5 shown, and includes the following steps:
[0091] Step S501, determining the extended initial interval period according to the number information;
[0092] Step S502, if the initial interval period is less than the interval period threshold, determine the initial interval period as the extended preset interval period;
[0093] Step S503, if the initial interval period is greater than or equal to the interval period threshold, determine the interval period threshold as the extended preset interval period.
[0094] The extended preset interval period determined according to the number of times of continuously sending data requests to the wireless access point without obtaining data is the extended initial interval period. To ensure the normal connection between the terminal device and the wireless network, there is a maximum interval period threshold for the preset interval period of receiving identification information. When the interval period of receiving identification information is greater than the maximum interval period threshold, it will cause the terminal device to disconnect from the wireless network. After determining the extended initial interval period, if the initial interval period is less than the interval period threshold, the initial interval period is determined as the extended preset interval period; if the initial interval period is greater than or equal to the interval period threshold, the interval period threshold is determined as the extended preset interval period. Exemplarily, when the extended initial interval period is N*DTIM and the interval period threshold is MaxTime, the extended preset interval period is min(N*DTIM, MaxTime), that is, the smaller value between the extended initial interval period and the interval period threshold.
[0095] In an exemplary embodiment, Figure 6 is a flowchart of a method for shortening the reception duration based on a second preset policy shown according to an exemplary embodiment, as Figure 6 shown, and includes the following steps:
[0096] Step S601, determining the number information of continuously sending data requests to the wireless access point without obtaining data;
[0097] Step S602, determining the shortened reception duration according to the number information.
[0098] When the terminal device sends a data request to the wireless access point according to the identification information and the request result is that no cached data is obtained, one abnormal identification information is recorded. Determine the number of consecutive abnormal identification information, and determine the reception duration of the shortened received identification information according to the number. For example, when the reception duration of receiving the identification information is T2 and the consecutive number is N times, the shortened reception duration is T2 / N.
[0099] In an exemplary embodiment, Figure 7 is a flowchart of a method for determining the shortened reception duration according to the number information in step S602 shown according to an exemplary embodiment, as Figure 7 shown, and includes the following steps:
[0100] Step S701, determining the shortened initial reception duration according to the number information;
[0101] Step S702, if the initial reception duration is greater than or equal to the reception duration threshold, determining the initial reception duration as the shortened reception duration;
[0102] Step S703, if the initial reception duration is less than the reception duration threshold, then determine the reception duration threshold as the shortened reception duration.
[0103] The reception duration of the shortened reception identification information determined according to the number of times of continuously sending data requests to the wireless access point without successfully requesting data is the shortened initial reception duration. To ensure that the terminal device can receive the identification information normally, there is a minimum reception duration threshold for receiving the identification information. When the reception duration of the identification information is less than the minimum reception duration threshold, the terminal device cannot receive the identification information normally. After determining the shortened initial reception duration, if the initial reception duration is less than the reception duration threshold, then determine the reception duration threshold as the shortened reception duration; if the initial reception duration is greater than or equal to the reception duration threshold, then determine the initial reception duration as the shortened reception duration. Exemplarily, when the shortened initial reception duration is T2 / N and the reception duration threshold is MinTime, then the shortened reception duration is max(T2 / N, MinTime), that is, the larger value between the shortened initial reception duration and the reception duration threshold.
[0104] In an exemplary embodiment, after adjusting the preset interval period and / or the reception duration for each reception of the identification information according to the data request result, the communication method further includes: when data is successfully requested, restore the preset interval period and the reception duration to the values before adjustment.
[0105] When the terminal device sends a data request to the wireless access point and successfully requests data, it indicates that the wireless access point is in a normal state. At this time, restore the preset interval period and the reception duration for receiving the identification information to the values before adjustment. The restoration time can be immediately restored when sending a data request to the wireless access point and successfully requesting data, or restored when continuously sending data requests to the wireless access point multiple times and successfully requesting data.
[0106] In an exemplary embodiment of the present disclosure, a communication method is provided, which is applied to a terminal device. Figure 8 is a flowchart of a communication method shown according to an exemplary embodiment, as Figure 8 shown, the communication method includes the following steps:
[0107] Step S801, receive the identification information sent by the wireless access point according to the preset interval period;
[0108] wherein, the identification information is used to indicate whether there is cached data in the wireless access point to be sent to the terminal device.
[0109] Step S802, determine whether there is cached data in the wireless access point to be sent to the terminal device according to the identification information;
[0110] If yes, execute step S803; if no, execute step S801.
[0111] Step S803: Send a data request to the wireless access point.
[0112] Step S804: Determine whether data is requested successfully.
[0113] If data is requested successfully, execute step S801; if data is not requested successfully, execute step S805.
[0114] Step S805: Adjust the preset interval period and / or the receiving duration for each received identification information.
[0115] Extend the preset interval period based on the first preset policy, and / or shorten the receiving duration based on the second preset policy.
[0116] Step S806: When data is requested successfully, restore the preset interval period and the receiving duration to the values before adjustment.
[0117] In an exemplary embodiment of the present disclosure, a communication device is provided and applied to a terminal device. Figure 9 It is a block diagram of a communication device shown according to an exemplary embodiment, as Figure 9 shown. The communication device includes:
[0118] A receiving module 901, configured to receive identification information sent by the wireless access point according to a preset interval period, where the identification information is used to indicate whether there is cached data in the wireless access point to be sent to the terminal device;
[0119] A sending module 902, configured to send a data request to the wireless access point when it is determined according to the identification information that there is cached data in the wireless access point to be sent to the terminal device;
[0120] An adjustment module 903, configured to adjust the preset interval period and / or the receiving duration for each received identification information according to the data request result.
[0121] In an exemplary embodiment, the adjustment module 903 is further configured to:
[0122] When the data request result is that cached data is not requested successfully, extend the preset interval period based on the first preset policy; and / or
[0123] When the data request result is that cached data is not requested successfully, shorten the receiving duration based on the second preset policy.
[0124] In an exemplary embodiment, the adjustment module 903 is further configured to:
[0125] Determine the number of times of continuously sending data requests to the wireless access point without successfully requesting data;
[0126] Determine the extended preset interval period according to the number of times information.
[0127] In an exemplary embodiment, the adjustment module 903 is further configured to:
[0128] Determine the extended initial interval period according to the number of times information;
[0129] If the initial interval period is less than the interval period threshold, determine the initial interval period as the extended preset interval period;
[0130] If the initial interval period is greater than or equal to the interval period threshold, determine the interval period threshold as the extended preset interval period.
[0131] In an exemplary embodiment, the adjustment module 903 is further configured to:
[0132] Determine the number of times of continuously sending data requests to the wireless access point without successfully requesting data;
[0133] Determine the shortened receiving duration according to the number of times information.
[0134] In an exemplary embodiment, the adjustment module 903 is further configured to:
[0135] Determine the shortened initial receiving duration according to the number of times information;
[0136] If the initial receiving duration is greater than or equal to the receiving duration threshold, determine the initial receiving duration as the shortened receiving duration;
[0137] If the initial receiving duration is less than the receiving duration threshold, determine the receiving duration threshold as the shortened receiving duration.
[0138] In an exemplary embodiment, the communication device further includes:
[0139] A reset module 904, configured to restore the preset interval period and the receiving duration to the values before adjustment when data is successfully requested.
[0140] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.
[0141] When the communication device is a terminal device, Figure 10 It is a block diagram of a communication device 1000 shown according to an exemplary embodiment.
[0142] Referring to Figure 10 , device 1000 may include one or more of the following components: a processing component 1002, a memory 1004, a power supply component 1006, a multimedia component 1008, an audio component 1010, an input / output (I / O) interface 1012, a sensor component 1014, and a communication component 1016.
[0143] The processing component 1002 generally controls the overall operation of the device 1000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute instructions to complete all or part of the steps of the above methods. In addition, the processing component 1002 may include one or more modules to facilitate the interaction between the processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate the interaction between the multimedia component 1008 and the processing component 1002.
[0144] The memory 1004 is configured to store various types of data to support the operation of the device 1000. Examples of such data include instructions for any application or method operating on the device 1000, contact data, phone book data, messages, pictures, videos, etc. The memory 1004 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0145] The power supply component 1006 provides power to various components of the device 1000. The power supply component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1000.
[0146] The multimedia component 1008 includes a screen that provides an output interface between the device 1000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of the touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 1008 includes a front camera and / or a rear camera. When the device 1000 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0147] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC) that is configured to receive external audio signals when the device 1000 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, the audio component 1010 further includes a speaker for outputting audio signals.
[0148] The I / O interface 1012 provides an interface between the processing component 1002 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power button, and a lock button.
[0149] The sensor component 1014 includes one or more sensors for providing status assessments of various aspects of the device 1000. For example, the sensor component 1014 can detect the on / off state of the device 1000, the relative positioning of components, such as the display and keypad of the device 1000. The sensor component 1014 can also detect a change in the position of the device 1000 or a component of the device 1000, the presence or absence of user contact with the device 1000, the orientation or acceleration / deceleration of the device 1000, and the temperature change of the device 1000. The sensor component 1014 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 1014 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 1014 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0150] The communication component 1016 is configured to facilitate communication between the device 1000 and other devices in a wired or wireless manner. The device 1000 can access a communication standard-based wireless network, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0151] In an exemplary embodiment, the device 1000 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0152] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1004 including instructions, and the above instructions can be executed by a processor 1020 of the device 1000 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0153] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of the device, enables the device to execute a communication method, and the method includes any of the above methods.
[0154] Those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of the present invention and include known common knowledge or conventional technical means in the technical field not disclosed in this disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present invention are pointed out by the following claims.
[0155] It should be understood that the present invention is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.
Claims
1. A communication method, applied to a terminal device, characterized in that, The communication method includes: Receiving identification information sent by a wireless access point at a preset interval period, where the identification information is used to indicate whether there is buffered data in the wireless access point to be sent to the terminal device; When it is determined according to the identification information that there is buffered data in the wireless access point to be sent to the terminal device, sending a data request to the wireless access point; Adjusting the preset interval period and / or the receiving duration of receiving the identification information each time according to the data request result, and the adjusting the preset interval period and / or the receiving duration of receiving the identification information each time includes: extending the preset interval period, and / or, shortening the receiving duration; The adjusting the preset interval period and / or the receiving duration of receiving the identification information each time according to the data request result includes: When the data request result is that no buffered data is requested, determining the number of times of continuously sending data requests to the wireless access point and not requesting data; Adjusting the preset interval period and / or the receiving duration of receiving the identification information each time according to the number information.
2. The communication method according to claim 1, wherein The adjusting the preset interval period and / or the receiving duration of receiving the identification information each time according to the data request result includes: When the data request result is that no buffered data is requested, extending the preset interval period based on a first preset policy; and / or, When the data request result is that no buffered data is requested, shortening the receiving duration based on a second preset policy.
3. The communication method according to claim 2, wherein The extending the preset interval period based on a first preset policy when the data request result is that no buffered data is requested includes: Determining the extended preset interval period according to the number information.
4. The communication method according to claim 3, wherein The determining the extended preset interval period according to the number information includes: Determining the extended initial interval period according to the number information; If the initial interval period is less than the interval period threshold, determining the initial interval period as the extended preset interval period; If the initial interval period is greater than or equal to the interval period threshold, determining the interval period threshold as the extended preset interval period.
5. The communication method according to claim 2, wherein The shortening the receiving duration based on a second preset policy when the data request result is that no buffered data is requested includes: Determining the shortened receiving duration according to the number information.
6. The communication method according to claim 5, wherein The determining the shortened receiving duration according to the number information includes: Determining the shortened initial receiving duration according to the number information; If the initial receiving duration is greater than or equal to the receiving duration threshold, determining the initial receiving duration as the shortened receiving duration; If the initial receiving duration is less than the receiving duration threshold, determining the receiving duration threshold as the shortened receiving duration.
7. The communication method according to any one of claims 2 to 6, characterized in that After adjusting the preset interval period and / or the receiving duration of receiving the identification information each time according to the data request result, the communication method further includes: When data is requested, restoring the preset interval period and the receiving duration to the values before adjustment.
8. A communication device is applied to a terminal device, characterized in that, The communication device includes: A receiving module, configured to receive identification information sent by a wireless access point according to a preset interval period, where the identification information is used to indicate whether there is buffered data in the wireless access point to be sent to the terminal device; A sending module, configured to send a data request to the wireless access point when it is determined according to the identification information that there is buffered data in the wireless access point to be sent to the terminal device; An adjustment module, configured to adjust the preset interval period and / or the receiving duration for receiving the identification information each time according to the data request result, and the adjustment of the preset interval period and / or the receiving duration for receiving the identification information each time includes: extending the preset interval period, and / or shortening the receiving duration; The adjustment module is further configured to, when the data request result is that no buffered data is requested, determine the number of times of continuously sending data requests to the wireless access point and not requesting data; According to the number information, adjust the preset interval period and / or the receiving duration for receiving the identification information each time.
9. The communication device according to claim 8, wherein The adjustment module is further configured to: When the data request result is that no buffered data is requested, extend the preset interval period based on a first preset policy; and / or, When the data request result is that no buffered data is requested, shorten the receiving duration based on a second preset policy.
10. A communication device, characterized in that, It includes: A processor; A memory for storing instructions executable by the processor; Wherein, the processor is configured to execute the method according to any one of claims 1-7.
11. A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device, enabling the device to execute the method according to any one of claims 1-7.
Citation Information
Patent Citations
Method and apparatus for transceiving beacon in wireless lan system
CN104247302A
Method and apparatus for establishing connection between devices
CN104812094A
Downlink data cache indication method and device and downlink data acquisition method and device
CN112189329A
Equipment sleep control method and device
CN113741260A