Sleep control method, device and electronic equipment for baseband processor BP
By using the application processor (AP) to identify the caching mechanism and calculate the amount of data, the sleep state of the baseband processor (BP) is controlled, thus solving the problem of high power consumption caused by continuous operation of the baseband processor and achieving power saving.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-20
- Publication Date
- 2026-03-13
AI Technical Summary
The continuous operation of the baseband processor (BP) in electronic devices leads to high power consumption.
The application processor (AP) identifies whether the application scenario has a caching mechanism, calculates the amount of data that can be obtained, and sets the baseband processor (BP) to enter a sleep state based on the amount of data, thereby reducing its running time.
It effectively saves power consumption of electronic devices, reduces unnecessary running time of baseband processors, and lowers power consumption.
Smart Images

Figure CN115220565B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technology, and specifically relates to a sleep control method, device and electronic device for a baseband processor BP. Background Technology
[0002] In current technology, electronic devices contain two processors: an application processor (AP) and a baseband processor (BP). The operating system and applications run on the AP, while the electronic device's radio frequency (RF) communication control software (such as a modem) runs on the BP. Because RF control functions (signal modulation, encoding, RF shifting, etc.) are highly time-dependent, the RF functions are executed on the BP, which runs a real-time system.
[0003] Currently, network applications used by users can be divided into two main categories: one type of application requires a real-time network connection, where various user actions require immediate responses from the terminal and server, such as playing games and watching online videos; the other type of application does not require a constantly responding terminal and server. However, in current technology, when electronic devices use various network applications, the application continuously communicates with the electronic device's radio frequency communication control software (i.e., the access point (AP) constantly communicates with the backplane (BP)) to ensure normal application operation. But for applications that do not require a constantly responding terminal and server, the continuous operation of the BP leads to increased power consumption of the electronic device. Summary of the Invention
[0004] The purpose of this application is to provide a sleep control method, device, and electronic device for a baseband processor (BP), which can solve the problem of high power consumption in electronic devices caused by the continuous operation of the baseband processor (BP).
[0005] In a first aspect, embodiments of this application provide a sleep control method for a baseband processor (BP), comprising:
[0006] If it is determined that the scenario in which the currently running first application is located has a caching mechanism, the application processor AP calculates the first amount of data that the first application can obtain within a first time period; wherein, the first time period is the duration of a first time interval, and the baseband processor BP corresponding to the first application is in a running state within the first time interval;
[0007] Based on the first data volume, the BP corresponding to the first application is set to sleep state during the second time interval;
[0008] The start time of the second time interval is the end time of the first time interval, and the duration of the second time interval is related to the first data volume.
[0009] Secondly, embodiments of this application provide a sleep control device for a baseband processor (BP), applied to an application processor (AP), comprising:
[0010] The first calculation module is used to calculate the first amount of data that the first application can obtain within a first duration when it is determined that there is a caching mechanism in the scenario where the currently running first application is located; wherein, the first duration is the duration of a first time interval, and the baseband processor BP corresponding to the first application is in a running state within the first time interval.
[0011] The first setting module sets the BP corresponding to the first application to a sleep state within a second time interval based on the first data volume.
[0012] The start time of the second time interval is the end time of the first time interval, and the duration of the second time interval is related to the first data volume.
[0013] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0014] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0015] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0016] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0017] In this embodiment, when it is determined that a currently running first application has a caching mechanism, the application processor (AP) calculates the first amount of data that the first application can acquire within a first time period. The first time period is the duration of a first time interval, and the baseband processor (BP) corresponding to the first application is in a running state within the first time interval. Based on the first amount of data, the BP corresponding to the first application is set to a sleep state within a second time interval. The start time of the second time interval is the end time of the first time interval, and the duration of the second time interval is related to the first amount of data. That is, by identifying applications with caching mechanisms through the AP and reducing the running time of the BP during the operation of such applications, the power consumption of electronic devices is saved. Attached Figure Description
[0018] Figure 1 This is a flowchart of the sleep control method for a baseband processor BP provided in an embodiment of this application;
[0019] Figure 2 Schematic diagrams illustrating Examples 1 and 2 provided in the embodiments of this application;
[0020] Figure 3 This is a schematic diagram showing the structure of the sleep control device for the baseband processor BP provided in an embodiment of this application;
[0021] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0022] Figure 5 This is a second schematic diagram illustrating the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0023] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0024] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0025] The sleep control method for the baseband processor BP provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0026] like Figure 1 As shown in the figure, this application provides a sleep control method for a baseband processor (BP), including:
[0027] Step 101: If it is determined that the scenario in which the currently running first application is located has a caching mechanism, the application processor AP calculates the first amount of data that the first application can obtain within a first time period; wherein, the first time period is the duration of a first time interval, and the baseband processor BP corresponding to the first application is in a running state within the first time interval.
[0028] For example, when a user launches the first application, the AP identifies the application scenario and checks whether the current scenario requires caching; if the current scenario requires caching, it determines that the scenario in which the first application is located has a caching mechanism.
[0029] Optionally, the first data volume can be referred to as: the amount of data of the first application that the BP can obtain from the server within the first time period, or the amount of data of the first application that the BP can cache within the first time period.
[0030] Step 102: Based on the first data volume, set the BP corresponding to the first application to a sleep state within a second time interval; wherein the start time of the second time interval is the end time of the first time interval, and the duration of the second time interval is related to the first data volume. For example, ... Figure 2 As shown, the first time interval is [0, T1), so the first duration is t1; the second time interval is [T1, T2].
[0031] In this step, "the scenario in which the first application is located has a caching mechanism" can be understood as: the content corresponding to the first amount of data that can be cached within the first duration has a duration that can be used in the first application (referred to as the usable duration of the first amount of data) that is greater than the first time duration. Therefore, BP does not need to continuously perform caching work within the usable duration of the first amount of data, and thus the second time interval in which BP can sleep can be determined based on the first amount of data.
[0032] This application embodiment identifies applications that require caching mechanisms and reduces the runtime of the BP (Backend Processor) during the operation of such applications, thereby saving power consumption of electronic devices.
[0033] In at least one embodiment of this application, step 102 includes:
[0034] Based on the data consumption rate during the operation of the first application and the first data volume, the length of time during which the first data volume can be used in the first application is calculated to obtain a target time interval, wherein the start time of the target time interval is the end time of the first time interval, and the duration of the target time interval is equal to: the length of time during which the first data volume can be used in the first application minus the first duration.
[0035] At least a portion of the target time interval is determined as the second time interval, and the content of the BP in the second time interval is set to a sleep state;
[0036] The second time interval is located within the target time interval, and the start time of the second time interval is the start time of the target time interval.
[0037] For example, such as Figure 2 As shown, the first time interval is [0, T1), so the first duration is t1; the target time interval is [T1, T3], and the second time interval is [T1, T2].
[0038] As an optional embodiment, after obtaining the target time interval, the method further includes:
[0039] At least a portion of the target time interval is determined as the third time interval, and the BP is set to the running state within the third time interval;
[0040] The BP caches data for the first application within the third time interval; the end time of the third time interval is the end time of the target time interval, and the third time interval is the part of the target time interval excluding the second time interval.
[0041] In other words, to ensure the operation of the first application, the BP needs to enter running mode after a period of dormancy to continue performing data caching. Understandably, the electronic device needs to switch the BP to running mode to cache the data before all the initial data is used up, thus ensuring the first application can run smoothly.
[0042] Optionally, the duration of the third time interval is the time for the next data caching. Specifically, the third duration corresponding to the third time interval can be the same as or different from the first duration; electronic devices can customize the caching duration based on factors such as network conditions and temperature.
[0043] It should be noted that the first duration and third duration for different first applications can be the same or different, and no specific restrictions are made here.
[0044] As an optional embodiment, the first duration and / or the third duration are associated with at least one of the following:
[0045] The temperature of the electronic device;
[0046] The current network quality of the electronic device;
[0047] The category of the first application.
[0048] For example, if the first application is a video application, the first duration and the third duration are related to the temperature of the electronic device and / or the current network quality; as another example, if the first application is a text application such as a webpage, the first duration and the third duration are preset durations.
[0049] The first duration and / or the third duration can be referred to as the cache duration.
[0050] In this embodiment, the caching duration can be customized by the electronic device; the caching duration can vary depending on the application and the network environment. For example, the caching duration for the first cache of various applications can use a preset value (such as 30 seconds), while the caching duration for the second, third, and subsequent caches can be customized by the electronic device based on network quality and temperature.
[0051] Optionally, W = P * t = U * I * t; where W is the heat energy generated by the electronic device, P is the electrical power, U is the operating voltage of the electronic device, and I is the operating current of the electronic device. Since the current and voltage of the electronic device are constant during operation, the heat energy generated by the electronic device is directly proportional to the operating time t. The longer the operating time t, the more heat is generated, and the higher the temperature of the electronic device may be. Therefore, the AP can dynamically adjust the buffer time according to the temperature of the electronic device.
[0052] As an optional embodiment, when the BP caches the data of the first application within the third duration corresponding to the third time interval, the AP executes steps 101-102, that is, calculates the first amount of data that the first application can obtain within the third duration, and sets the BP corresponding to the first application to a sleep state within the second time interval based on the first amount of data; that is, the AP can control the BP to switch between a sleep state and a running state based on the calculated second time interval (the second time interval can be understood as the sleep time interval of the BP), thereby avoiding the BP from being in a running state all the time, thereby achieving the purpose of saving the power of electronic devices.
[0053] In at least one embodiment of this application, step 101 includes:
[0054] Determine the current data caching speed based on network quality;
[0055] Based on the current data caching speed and the first duration, calculate the first amount of data that the first application can acquire within the first duration.
[0056] For example, if the first duration is t1 and the current data caching speed is v1, then the first amount of data that the first application can acquire within the first duration is SUM = v1 * t1. If the data consumption speed during the operation of the first application is v2, then the time during which the first amount of data SUM can be used in the first application is t2, where t2 = SUM / v2. During the time interval t2-t1, the first application can still function normally even if the BP does not acquire data.
[0057] Furthermore, to ensure that the cached data for the next segment is prepared before the end of the "time period during which the first data volume can be used in the first application," this embodiment places the cache for the next segment before the end of the "time period during which the first data volume can be used in the first application." Therefore, the AP needs to determine the second time interval based on the target time interval and the third duration corresponding to the third time interval.
[0058] For example, such as Figure 2 As shown, the first time interval is [0, T1), so the first duration is t1; the target time interval is [T1, T3]; the second time interval is [T1, T2]; the third time interval is (T2, T3], and the duration of the third time interval is the third duration t3; the first data volume can be used for a period of time in the first application for a period of time of t2, and the second duration corresponding to the second time interval is T, so T = t2 - t1 - t3; that is, the second duration T is the duration for which BP can sleep.
[0059] To more clearly describe the sleep control method for the baseband processor BP provided in the embodiments of this application, two examples are given below.
[0060] Example 1
[0061] like Figure 2 As shown in the embodiment of this application, the flow of the BP sleep control method is as follows:
[0062] S101: When a user starts a network application, the AP identifies the current usage scenario of the application and checks whether the current scenario requires caching.
[0063] S102: If the application scenario currently requires a caching mechanism, the AP determines the network download speed as v1 based on the current network quality, and calculates the total amount of data that the application can obtain from the server within the caching time t1, SUM = v1 * t1, based on the current network download speed v1 and the custom caching time t1 (preset t1 = 30s).
[0064] S103: The rate at which the application consumes data per second while working in the current state is v2;
[0065] S104: Combining S102 and S103, the application obtains resources SUM during time period t1, and the application can use time period t2 = SUM / v2, corresponding to time point T3 (that is, the end time of time period t2 is time point T3).
[0066] To ensure the continuity of application operation, the next segment of data needs to be obtained before the data acquired in time period t1 is exhausted. This allows us to calculate the time point T1 when BP enters sleep and the time point T2 when it exits sleep (T2 = t2 - t3).
[0067] S105: BP can enter hibernation at time T1, and be woken up at time T2 after T (T = t2 - t1 - t3) to continue working;
[0068] S106: Cycle through S101-S105.
[0069] Example 2, assuming the first application is a video app
[0070] S201: The user opens the video app;
[0071] S202: Under good network conditions, video apps will cache video content to ensure smooth playback, such as... Figure 2 As shown, the video content within the time interval (0 to T3) can be cached within the time interval (0 to T1);
[0072] S203: Even if the video app is not connected to the internet between time point T1 and time point T3, the video app can still work normally. However, if the video content of the next stage cannot be cached before time point T3, the video app will have no content to play. Therefore, the video content of the next stage needs to be cached before time point T3.
[0073] Based on the download speed of video content on the electronic device and the consumption speed of video content by the video app, a reasonable caching time interval is calculated. The BP on the electronic device enters sleep mode at time T1 and is woken up to work again at time T2 (the value of T2 is equal to T3 minus the caching time value of the next segment t3).
[0074] S204: Electronic devices and video apps continuously execute S202 to S203.
[0075] In summary, in this embodiment of the application, the AP identifies applications with caching mechanisms and reduces the runtime of the BP during the operation of such applications, thereby achieving the goal of saving power consumption of electronic devices.
[0076] The sleep control method for a BP provided in this application can be executed by a sleep control device for the BP. This application uses the sleep control device of the BP executing the sleep control method as an example to illustrate the sleep control device for the BP provided in this application.
[0077] like Figure 3 As shown, this application embodiment also provides a sleep control device 300 for a baseband processor (BP), applied to an application processor (AP), comprising:
[0078] The calculation module 301 is used to calculate the first amount of data that the first application can obtain within a first duration when it is determined that there is a caching mechanism in the scenario where the currently running first application is located; wherein, the first duration is the duration of a first time interval, and the baseband processor BP corresponding to the first application is in a running state within the first time interval.
[0079] The determining module 302 is used to set the BP corresponding to the first application to a sleep state in the second time interval according to the first data volume;
[0080] The start time of the second time interval is the end time of the first time interval, and the duration of the second time interval is related to the first data volume.
[0081] As an optional embodiment, the setting module is further configured to:
[0082] Based on the data consumption rate during the operation of the first application and the first data volume, the length of time during which the first data volume can be used in the first application is calculated to obtain a target time interval, wherein the start time of the target time interval is the end time of the first time interval, and the duration of the target time interval is equal to: the length of time during which the first data volume can be used in the first application minus the first duration.
[0083] At least a portion of the target time interval is determined as the second time interval, and the content of the BP in the second time interval is set to a sleep state;
[0084] The second time interval is located within the target time interval, and the start time of the second time interval is the start time of the target time interval.
[0085] As an optional embodiment, the apparatus further includes:
[0086] The determination module is used to determine at least a portion of the target time interval as a third time interval, and to set the BP to a running state within the third time interval;
[0087] The BP caches data for the first application within the third time interval; the end time of the third time interval is the end time of the target time interval, and the third time interval is the part of the target time interval excluding the second time interval.
[0088] As an optional embodiment, the computing module is further configured to:
[0089] Determine the current data caching speed based on network quality;
[0090] Based on the current data caching speed and the first duration, calculate the first amount of data that the first application can acquire within the first duration.
[0091] As an optional embodiment, the duration of the first duration and / or the third time interval is associated with at least one of the following:
[0092] The temperature of the electronic device;
[0093] The current network quality of the electronic device;
[0094] The category of the first application.
[0095] In this embodiment of the application, the AP identifies applications with caching mechanisms and reduces the running time of the BP during the operation of such applications, thereby achieving the purpose of saving power consumption of electronic devices.
[0096] It should be noted that the sleep control device for the baseband processor BP provided in this application embodiment is a device capable of executing the above-described sleep control method for the baseband processor BP. Therefore, all embodiments of the above-described sleep control method for the baseband processor BP are applicable to this device and can achieve the same or similar beneficial effects.
[0097] The sleep control device for the baseband processor BP in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope of the device.
[0098] The sleep control device for the baseband processor BP in this embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this embodiment does not specifically limit the specific operating system.
[0099] The sleep control device for the baseband processor BP provided in this application embodiment can achieve... Figures 1 to 2 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0100] Optionally, such as Figure 4 As shown, this application embodiment also provides an electronic device 400, including a processor 401 and a memory 402. The memory 402 stores a program or instructions that can run on the processor 401. When the program or instructions are executed by the processor 401, they implement the various steps of the above-described embodiment of the sleep control method for the baseband processor BP and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0101] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0102] Figure 5 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0103] The electronic device 500 includes, but is not limited to, components such as: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, and processor 510.
[0104] Those skilled in the art will understand that the electronic device 500 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 510 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 5 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0105] The processor 510 is configured to, when it is determined that the scenario in which the currently running first application is located has a caching mechanism, calculate the first amount of data that the first application can obtain within a first duration; wherein the first duration is the duration of a first time interval, and the BP corresponding to the first application is in a running state within the first time interval; and based on the first amount of data, set the BP corresponding to the first application to a sleep state within a second time interval; wherein the start time of the second time interval is the end time of the first time interval, and the duration of the second time interval is related to the first amount of data.
[0106] In this embodiment of the application, the AP identifies applications with caching mechanisms and reduces the running time of the BP during the operation of such applications, thereby achieving the purpose of saving power consumption of electronic devices.
[0107] Optionally, the processor 510 is further configured to determine at least a portion of the target time interval as a third time interval, and set the BP to a running state within the third time interval;
[0108] The BP caches data for the first application within the third time interval; the end time of the third time interval is the end time of the target time interval, and the third time interval is the part of the target time interval excluding the second time interval.
[0109] In this embodiment of the application, the electronic device can control the BP to switch between running and sleeping states according to the calculated sleep time interval, so as to avoid the BP being in running state all the time, thereby achieving the purpose of saving power of the electronic device.
[0110] It should be understood that, in this embodiment, the input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042. The GPU 5041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 506 may include a display panel 5061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 507 includes at least one of a touch panel 5071 and other input devices 5072. The touch panel 5071 is also called a touch screen. The touch panel 5071 may include a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0111] The memory 509 can be used to store software programs and various data. The memory 509 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 509 may include volatile memory or non-volatile memory, or it may include both volatile and non-volatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 509 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0112] Processor 510 may include one or more processing units; optionally, processor 510 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 510.
[0113] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described baseband processor BP sleep control method embodiment and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0114] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0115] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described baseband processor BP sleep control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0116] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0117] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the sleep control method embodiment of the baseband processor BP described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0118] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0119] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0120] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A sleep control method of a baseband processor (BP), characterized by, Comprising: In a case where it is determined that a first application currently running has a cache mechanism, an application processor AP calculates a first data amount that the first application can acquire within a first time length; wherein the first time length is a duration of a first time interval, a baseband processor BP corresponding to the first application is in a running state within the first time interval; the first data amount is a data amount of the first application that the BP obtains from a server within the first time length, or a data amount of the first application that the BP can cache within the first time length; According to the first data amount, the BP corresponding to the first application is set to a sleep state within a second time interval; Wherein the starting time point of the second time interval is the ending time point of the first time interval, and the duration of the second time interval is associated with the first data amount.
2. The method of claim 1, wherein, The method further comprises: According to the data consumption speed in the running process of the first application and the first data amount, the time length of the first data amount that can be used in the first application is calculated to obtain a target time interval, wherein the starting time point of the target time interval is the ending time point of the first time interval, and the duration of the target time interval is equal to: the time length of the first data amount that can be used in the first application minus the first time length; At least part of the target time interval is determined as the second time interval, and the BP is set to a sleep state within the second time interval; Wherein the second time interval is located within the range of the target time interval, and the starting time point of the second time interval is the starting time point of the target time interval.
3. The method of claim 2, wherein, After obtaining the target time interval, the method further comprises: At least part of the target time interval is determined as a third time interval, and the BP is set to a running state within the third time interval; Wherein the BP performs data caching on the first application within the third time interval; the ending time point of the third time interval is the ending time point of the target time interval, and the third time interval is a part of the target time interval excluding the second time interval.
4. The method of claim 1, wherein, The AP calculates the first data amount that the first application can acquire within the first time length, comprising: According to the network quality, determine the current data caching speed; According to the current data caching speed and the first time length, calculate the first data amount that the first application can acquire within the first time length.
5. The method according to claim 1 or 3, characterized in that, The duration of the first time length and / or the third time interval is associated with at least one of the following: The temperature of the electronic device; The current network quality of the electronic device; The category of the first application.
6. A sleep control apparatus of a baseband processor (BP) applied to an application processor (AP), characterized in that, Comprising: The computing module is configured to, in a case where it is determined that the first application currently running has a cache mechanism, calculate a first data amount that the first application can obtain within a first time length, wherein the first time length is a duration of a first time interval, a base frequency processor (BP) corresponding to the first application is in a running state within the first time interval, and the first data amount is an amount of data of the first application that the BP obtains from a server within the first time length or an amount of data of the first application that the BP can cache within the first time length. The setting module is configured to, according to the first data amount, set the BP corresponding to the first application to a sleep state within a second time interval. The start time point of the second time interval is the end time point of the first time interval, and the duration of the second time interval is associated with the first data amount.
7. The apparatus of claim 6, wherein, The setting module is further configured to: calculate, according to a data consumption speed in a running process of the first application and the first data amount, a time length in which the first data amount can be used in the first application, to obtain a target time interval, wherein the start time point of the target time interval is the end time point of the first time interval, and the duration of the target time interval is equal to: the time length in which the first data amount can be used in the first application minus the first time length; determine at least part of the target time interval as the second time interval, and set the BP to the sleep state within the second time interval. The second time interval is within the range of the target time interval, and the start time point of the second time interval is the start time point of the target time interval.
8. The apparatus of claim 7, wherein, The apparatus further includes: a determining module configured to determine at least part of the target time interval as a third time interval, and set the BP to the running state within the third time interval. The BP performs data caching on the first application within the third time interval, the end time point of the third time interval is the end time point of the target time interval, and the third time interval is part of the target time interval excluding the second time interval.
9. The apparatus of claim 6, wherein, The computing module is further configured to: determine a current data caching speed according to network quality; and calculate the first data amount that the first application can obtain within the first time length according to the current data caching speed and the first time length.
10. The apparatus of claim 6 or 8, wherein, The duration of the first time length and / or the third time interval is associated with at least one of the following: a temperature of the electronic device; current network quality of the electronic device; a category of the first application.
Citation Information
Patent Citations
Multimedia data downloading method and electronic equipment
CN113497976A