Dormancy control method and apparatus, terminal, computer-readable storage medium

By controlling the sleep state of the positioning module according to the frequency of the application's positioning needs, the problem of high power consumption of the positioning module in smart terminals is solved, the standby time is extended, and the normal operation of the positioning application is ensured.

CN115002665BActive Publication Date: 2026-03-27BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

The positioning module of a smart terminal continuously performs positioning operations after receiving a positioning request initiated by an application, resulting in high power consumption and shortened standby time.

Method used

Based on the frequency of the application's positioning needs, determine whether to control the positioning module to enter sleep mode, and selectively reduce or maintain the wake-up state of the positioning module to optimize power consumption and positioning frequency.

Benefits of technology

By adjusting the sleep state of the positioning module, unnecessary positioning operations are reduced, the standby time of smart terminals is extended, and applications with high positioning frequency can obtain location information in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115002665B_ABST
    Figure CN115002665B_ABST
Patent Text Reader

Abstract

The present disclosure provides a hibernation control method and device, which can include determining a positioning request sent by an application, and determining whether to control a positioning module for positioning to enter a hibernation state according to at least a positioning requirement frequency of the application. Through the technical solution of the present disclosure, in the case that the terminal receives a positioning request sent by an application, the terminal can control the positioning module for positioning to enter a hibernation state only for part of the applications according to the behavior requirement frequency of the applications, reduce power consumption, and prolong standby time. For other applications, the positioning module for positioning can not be controlled to enter a hibernation state, so as to avoid the inability to provide the position information of the terminal for the applications in time and affect the function implementation of the applications.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the field of communication technology, and in particular, to a sleep control method, a sleep control apparatus, a terminal and a computer readable storage medium. BACKGROUND

[0002] At present, the positioning function has become a standard configuration of the intelligent terminal. After receiving the positioning request initiated by the application, the positioning module in the intelligent terminal for positioning will continuously perform the positioning operation. Since the power consumption of the positioning operation is high, frequently performing the positioning operation will increase the overall power consumption of the intelligent terminal and shorten the standby time of the intelligent terminal. SUMMARY

[0003] Therefore, the embodiments of the present disclosure provide a sleep control method, a sleep control apparatus, a terminal and a computer readable storage medium to control whether the positioning module for positioning enters the sleep state.

[0004] Specifically, the present disclosure realizes the following technical solutions:

[0005] According to a first aspect of the present disclosure, a sleep control method is provided, which is applied to a terminal and includes: determining a positioning request sent by an application; and judging whether to control a positioning module for positioning to enter a sleep state according to at least a positioning demand frequency of the application.

[0006] According to a second aspect of the present disclosure, a sleep control apparatus is provided, which is applied to a terminal and includes: a receiving module configured to determine a positioning request sent by an application; and a judging module configured to judge whether to control a positioning module for positioning to enter a sleep state according to at least a positioning demand frequency of the application.

[0007] According to a third aspect of the present disclosure, an electronic device is provided, which includes: a processor; and a memory for storing processor executable instructions; wherein the processor implements the method in the above-mentioned embodiments of the first aspect by running the executable instructions.

[0008] According to a fourth aspect of the present disclosure, a computer readable storage medium is provided, which stores computer instructions, and the instructions are executed by a processor to implement the steps of the method in the above-mentioned embodiments of the first aspect.

[0009] As can be seen from the technical solutions provided by the present disclosure, in the case that the terminal in the present disclosure receives the positioning request sent by the application, the terminal can judge whether to control the positioning module for positioning to enter the sleep state according to the positioning demand frequency of the application.

[0010] In a case that the terminal receives the positioning request sent by the application, the terminal can control the positioning module for positioning to enter the sleep state only for part of the applications according to the behavior demand frequency of the applications, reduce the power consumption, and prolong the standby time. For other applications, the positioning module for positioning can not be controlled to enter the sleep state, so as to avoid the situation that the terminal cannot provide the position information of the terminal for the applications in time and affect the function implementation of the applications. BRIEF DESCRIPTION OF DRAWINGS

[0011] The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate embodiments consistent with the present disclosure and, together with the description, further serve to explain the principles of the present disclosure.

[0012] Figure 1 is a schematic flow chart of a sleep control method according to an embodiment of the present disclosure;

[0013] Figure 2 is a schematic flow chart of another sleep control method according to an embodiment of the present disclosure;

[0014] Figure 3 is a schematic flow chart of another sleep control method according to an embodiment of the present disclosure;

[0015] Figure 4 is a schematic flow chart of another sleep control method according to an embodiment of the present disclosure;

[0016] Figure 5 is a schematic flow chart of another sleep control method according to an embodiment of the present disclosure;

[0017] Figure 6 is a schematic flow chart of another sleep control method according to an embodiment of the present disclosure;

[0018] Figure 7 is a schematic flow chart of another sleep control method according to an embodiment of the present disclosure;

[0019] Figure 8 is a schematic flow chart of another sleep control method according to an embodiment of the present disclosure;

[0020] Figure 9 is a schematic block diagram of a sleep control apparatus according to an embodiment of the present disclosure;

[0021] Figure 10 is a schematic block diagram of a terminal according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0022] The exemplary embodiments will be described in detail herein with reference to the attached drawings. The following description is made with reference to the accompanying drawings in which like reference numerals refer to like elements. The following description is made with reference to the accompanying drawings in which like reference numerals refer to like elements. The implementations described in the following exemplary embodiments are not meant to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0023] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the present disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0024] It will be understood that, although the terms first, second, third, etc. can be used herein to describe various information, these terms are not intended to denote a temporal or chronological order. Rather, these terms are used only as a shorthand notation to distinguish one item from another. For example, in the absence of a disclosure to the contrary, a first item can be termed a second item, and similarly, a second item can be termed a first item. Depending on the context, the word "if' as used herein can be interpreted to mean "when" or "in response to determining" or "in response to a determination."

[0025] Next, the embodiments of the present disclosure will be described in detail.

[0026] Figure 1 A schematic flow chart of a sleep control method according to an exemplary embodiment of the present disclosure is shown. As shown in Figure 1 The method can be applied to a terminal, which includes but is not limited to a mobile phone, a tablet computer, a wearable device, a sensor, an Internet of Things device, and the like electronic device. The terminal can communicate with a base station as a user equipment, which includes but is not limited to a 4G base station, a 5G base station, a 6G base station.

[0027] As shown in Figure 1 The sleep control method can include the following steps:

[0028] In step S101, a positioning request sent by an application is determined.

[0029] In step S102, it is determined whether to control a positioning module for positioning to enter a sleep state according to at least a positioning requirement frequency of the application.

[0030] In the related art, a sleep period is configured for a positioning module in a terminal for positioning, so that the terminal can control the positioning module to periodically sleep according to the configured sleep period in the case that a positioning request sent by an application is received, and the positioning operation does not need to be continuously performed, thereby reducing the positioning power consumption.

[0031] However, the positioning demand frequency of different applications can be different, and the positioning module for positioning is controlled to periodically sleep, so that the positioning is not performed during the sleep process, thereby reducing the positioning frequency. If the positioning module for positioning is controlled to periodically sleep without distinction for all applications, the application with a higher positioning demand frequency can not obtain the position information of the terminal according to the required frequency, thereby seriously affecting the function implementation of the application.

[0032] For example, in order to ensure that the navigation service is accurately provided for the user of the terminal, the navigation information needs to have relatively high real-time performance, so that the application for providing the navigation service in the terminal needs to continuously determine the position of the terminal at a relatively high frequency. If the positioning module for positioning is controlled to periodically sleep after the terminal receives the positioning request sent by the application for providing the navigation service for the user, the positioning module cannot perform the positioning function when in the sleep state, thereby failing to return the current position information of the terminal to the application. This makes the application for providing the navigation service fail to accurately provide the navigation service for the user with a faster position change in time, such as prompting the subsequent driving route, because the position information of the terminal cannot be obtained in time.

[0033] According to the embodiment, the terminal can determine whether the positioning module for positioning needs to enter the sleep state according to the positioning demand frequency of the application in the case that the positioning request sent by the application is received.

[0034] For example, the terminal can control the positioning module for positioning to enter the sleep state to reduce the power consumption and prolong the standby time in the case that the positioning request sent by the application with a lower positioning demand frequency is received, and can not control the positioning module for positioning to enter the sleep state to avoid failing to provide the position information of the terminal for the application with a higher positioning demand frequency in time, thereby affecting the function implementation of the application.

[0035] Figure 2 is a schematic flowchart of another sleep control method according to an embodiment of the present disclosure. As shown in Figure 2 based on the embodiment shown in Figure 1 The method further includes the following steps:

[0036] In step S201, a preset application list is obtained.

[0037] In step S202, if the application belongs to the preset application list, it is determined that the positioning requirement frequency of the application is less than or equal to the preset positioning frequency; if the application does not belong to the preset application list, it is determined that the positioning requirement frequency of the application is greater than the preset positioning frequency.

[0038] In an embodiment, the identification of the application with a lower positioning requirement frequency can be listed in the preset application list in advance according to the functional requirements of the application. For example, the map application usually initiates a positioning request to provide navigation for a user with high speed, and thus the positioning requirement frequency of the map application is high, and the map application does not need to be added to the preset application list. The food delivery application usually initiates a positioning request to prompt the delivery route of a rider to a buyer, and thus the positioning requirement frequency of the food delivery application is low, and the identification of the food delivery application can be added to the preset application list.

[0039] In an embodiment, after receiving the positioning request, the terminal can acquire the identification of the application sending the positioning request, and match the identification with the acquired to-be-matched identification contained in the preset application list, for example, determine whether the identification of the application sending the positioning request belongs to the preset application list. If it is determined that there is a to-be-matched identification in the preset application list that matches the identification, it can be determined that the application sending the positioning request belongs to the application with a lower positioning requirement frequency. If it is determined that there is no to-be-matched identification in the preset application list that matches the identification, it can be determined that the application sending the positioning request does not belong to the application with a lower positioning requirement frequency.

[0040] Figure 3 is a schematic flowchart of still another hibernation control method according to an embodiment of the present disclosure. As shown in Figure 3 determining whether to control the positioning module for positioning to enter the hibernation state according to at least the positioning requirement frequency of the application, comprises:

[0041] In step S301, if the positioning requirement frequency of the application is greater than the preset positioning frequency, the positioning module is controlled to be in the wake-up state.

[0042] In an embodiment, the terminal can only determine whether to control the positioning module for positioning to enter the hibernation state according to the positioning requirement frequency of the application. If it is determined that the positioning requirement frequency of the application sending the positioning request is greater than the preset positioning frequency, the positioning module for positioning can be controlled to be in the wake-up state, that is, the positioning module is not controlled to enter the hibernation state, so as to avoid that the positioning module cannot provide the position information of the terminal for the application with a higher positioning requirement frequency in time, and affect the functional implementation of the application.

[0043] In an embodiment, the positioning request is multiple, and the determining whether to control the positioning module for positioning to enter the hibernation state according to at least the positioning requirement frequency of the application comprises:

[0044] In a case where the positioning requirement frequency of any application sending the positioning request is greater than the preset positioning frequency, the terminal controls the positioning module to be in the wake-up state.

[0045] In one embodiment, the terminal can receive more than one positioning request sent by an application, for example, there can be multiple applications simultaneously sending positioning requests to the terminal. In this case, the terminal needs to determine whether to control the positioning module for positioning to enter the sleep state according to the positioning requirement frequency of the application of each positioning request.

[0046] When there is a case where the positioning requirement frequency of any application sending the positioning request is greater than the preset positioning frequency among the multiple applications sending the positioning request, if the positioning module for the positioning request is controlled to enter the sleep state, the positioning module will not be able to provide the terminal's location information to the application whose positioning requirement frequency is greater than the preset positioning frequency in time. Therefore, when there is a case where the positioning requirement frequency of any application sending the positioning request is greater than the preset positioning frequency among the multiple applications sending the positioning request, the terminal can control the positioning module to be in the wake-up state to avoid affecting the function implementation of the application whose positioning requirement frequency is greater than the preset positioning frequency.

[0047] Figure 4 is a schematic flowchart of another sleep control method according to an embodiment of the present disclosure. As shown in Figure 4 based on the embodiment shown in Figure 3 In a case where the positioning request is a global navigation satellite system positioning request, the method further includes:

[0048] In step S401, the quality of the positioning reference signal in the first positioning system is determined.

[0049] In step S402, in a case where the quality of the positioning reference signal in the first positioning system is greater than a preset quality, the terminal controls the positioning module to perform positioning according to the positioning reference signal in the first positioning system.

[0050] In step S403, in a case where the quality of the positioning reference signal in the first positioning system is less than or equal to the preset quality, the terminal controls the positioning module to perform positioning according to the positioning reference signal in the first positioning system and the second positioning system.

[0051] At present, more and more countries or regions deploy satellite positioning systems, and a terminal can receive positioning reference signals from satellites in multiple satellite positioning systems when performing global navigation satellite system positioning. In theory, only four satellites' positioning reference signals need to be acquired to achieve positioning, so in some cases, the terminal acquires excessive positioning reference signals, resulting in a large waste of resources.

[0052] According to the embodiment, in a case where the positioning request is a global navigation satellite system positioning request and the positioning requirement frequency of the application is greater than a preset positioning frequency, whether satellite signals of only part of positioning systems can be searched can be determined according to the quality of the positioning reference signals in the first positioning system only, so as to avoid obtaining positioning reference signals in all positioning systems, thereby causing resource waste.

[0053] In an embodiment, the first positioning system includes at least one of:

[0054] a global positioning system (GPS), a Beidou satellite navigation system, and a Galileo satellite navigation system.

[0055] The second positioning system includes at least one of:

[0056] a global satellite navigation system (GLONASS), a quasi-zenith satellite system (QZSS), and an Indian regional navigation satellite system (NAVIC).

[0057] In an embodiment, currently deployed satellite positioning systems can be divided into the first positioning system and the second positioning system. The first positioning system has relatively better positioning performance than the second positioning system. For example, compared with the second positioning system, the first positioning system has more on-orbit satellites, a wider coverage area, and more comprehensive supported frequency bands, and has higher positioning accuracy. Therefore, the position information calculated according to the positioning reference signals in the first positioning system is more accurate than the position information calculated according to the positioning reference signals in the second positioning system.

[0058] Therefore, in a case where the quality of the positioning reference signals in the first positioning system is greater than a preset quality, positioning can be performed according to only the positioning reference signals in the first positioning system, without obtaining the positioning reference signals in the second positioning system, so as to reduce power consumption of signal searching. In a case where the quality of the positioning reference signals in the first positioning system is less than the preset quality, positioning can still be performed according to all positioning systems (the first positioning system and the second positioning system), so as to avoid a large positioning error caused by poor quality of the positioning reference signals in the first positioning system.

[0059] In an embodiment, the signal quality includes a signal-to-noise ratio, and the determining of the quality of the positioning reference signals in the first positioning system includes: determining the signal-to-noise ratio of the positioning reference signals in the first positioning system; and determining an average signal-to-noise ratio of a preset number of positioning reference signals with the highest signal-to-noise ratio according to the signal-to-noise ratio of the positioning reference signals in the first positioning system.

[0060] In one embodiment, the terminal can periodically acquire the signal-to-noise ratio of the positioning reference signals of the visible satellites in the first positioning system. Since theoretically only four satellites' positioning reference signals need to be acquired to achieve positioning, the average signal-to-noise ratio of the four visible satellites with the largest signal-to-noise ratio of the positioning reference signals can be used to represent the signal quality of the first positioning system. The acquired average signal-to-noise ratio is compared with the preset signal-to-noise ratio threshold. If the average signal-to-noise ratio is greater than the preset threshold, it can be determined that the quality of the positioning reference signals in the first positioning system is greater than the preset quality. If the average signal-to-noise ratio is less than or equal to the preset threshold, it can be determined that the quality of the positioning reference signals in the first positioning system is less than or equal to the preset quality.

[0061] Of course, in addition to the above signal-to-noise ratio, the signal quality of the positioning reference signals can also include other parameters such as carrier-to-noise ratio, which can be set by those skilled in the art as needed, and the present disclosure does not limit this.

[0062] In one embodiment, the method further comprises:

[0063] In the case where the quality of the positioning reference signals in the first positioning system is greater than the preset quality, the satellites in the second positioning system are added to the satellite blacklist;

[0064] In the case where the quality of the positioning reference signals in the first positioning system is less than or equal to the preset quality, the satellites contained in the satellite blacklist are removed.

[0065] In one embodiment, the terminal can limit the positioning reference signals acquired by the positioning module for positioning by establishing a satellite blacklist. In the case where the quality of the positioning reference signals in the first positioning system is greater than the preset quality, the satellites in the second positioning system can be added to the satellite blacklist to prohibit the positioning module for positioning from acquiring the positioning reference signals from the satellites in the second positioning system. In the case where the quality of the positioning reference signals in the first positioning system is less than or equal to the preset quality, the satellites contained in the satellite blacklist can be removed so that the positioning module for positioning can acquire the positioning reference signals from the satellites in all positioning systems (the first positioning system and the second positioning system).

[0066] For example, the first positioning system includes the Global Positioning System (GPS), the Beidou satellite navigation system, and the Galileo satellite navigation system. The terminal can calculate the average signal-to-noise ratio of the four GPS satellites with the largest signal-to-noise ratio of the acquired positioning reference signals every 5 minutes avg , the average signal-to-noise ratio of the four Beidou satellites with the largest signal-to-noise ratio of the acquired positioning reference signals avg , and the average signal-to-noise ratio of the four Galileo satellites with the largest signal-to-noise ratio of the acquired positioning reference signals avg .

[0067] In GPS avg In case that the SNR of all GLONASS satellites is greater than the preset SNR threshold, all GLONASS satellites can be added to the satellite blacklist to prohibit the positioning module from acquiring positioning reference signals from the GLONASS satellites; in BDS avg In case that the SNR of all QZSS satellites is greater than the preset SNR threshold, all QZSS satellites can be added to the satellite blacklist to prohibit the positioning module from acquiring positioning reference signals from the QZSS satellites; in GAL avg In case that the SNR of all NAVIC satellites is greater than the preset SNR threshold, all NAVIC satellites can be added to the satellite blacklist to prohibit the positioning module from acquiring positioning reference signals from the NAVIC satellites; in GPS avg In case that the SNR of all GLONASS satellites is less than or equal to the preset SNR threshold, all satellites contained in the satellite blacklist can be removed to restore the acquisition of positioning reference signals in all positioning systems.

[0068] Figure 5 is a schematic flowchart of still another sleep control method according to an embodiment of the present disclosure. As shown in Figure 5 The step of judging whether to control the positioning module for positioning to enter the sleep state according to at least the positioning requirement frequency of the application includes:

[0069] In step S501, in case that the positioning requirement frequency of the application is less than or equal to a preset positioning frequency, the positioning module is controlled to enter the sleep state.

[0070] In one embodiment, the terminal can control the positioning module for positioning to enter the sleep state according to only the positioning requirement frequency of the application, in case that it is determined that the positioning requirement frequency of the application is low and the position information of the terminal does not need to be acquired in real time, so as to reduce the frequency of the positioning operation of the positioning module, reduce the power consumption, and prolong the standby time of the terminal.

[0071] Figure 6 is a schematic flowchart of still another sleep control method according to an embodiment of the present disclosure. As shown in Figure 6 The step of judging whether to control the positioning module for positioning to enter the sleep state according to at least the positioning requirement frequency of the application includes:

[0072] The step of judging whether to control the positioning module for positioning to enter the sleep state according to at least the positioning requirement frequency of the application and the request frequency of the positioning request includes:

[0073] The positioning requirement frequency of the application is the positioning frequency required by the application to realize its own function; and the request frequency of the positioning request is the positioning frequency actually requested by the application. For some applications, the positioning frequency requested by the application and the positioning frequency required by the application can not be consistent.

[0074] For example, an application can only need to acquire the terminal's location information once every 3 seconds to realize its function, i.e., the positioning requirement frequency of the application is once every 3 seconds. However, in the actual application process, the application can request to acquire the terminal's location information once every 1 second, i.e., the request frequency of the positioning request sent by the application is once every 1 second. In this case, the positioning requirement frequency of the application and the request frequency of the positioning request sent by the application are not the same, and therefore, in addition to the positioning requirement frequency of the application, the terminal also needs to determine whether to control the positioning module for positioning to enter the sleep state according to the request frequency of the positioning request sent by the application.

[0075] In one embodiment, the determining whether to control the positioning module to enter the sleep state according to the positioning requirement frequency of the application and the request frequency of the positioning request comprises:

[0076] controlling the positioning module to enter the sleep state in the case that the positioning requirement frequency of the application is less than or equal to a preset positioning frequency and the request frequency of the positioning request is greater than or equal to a preset request frequency;

[0077] controlling the positioning module to be in the wake-up state in the case that the positioning requirement frequency of the application is greater than the preset positioning frequency or the request frequency of the positioning request is less than the preset request frequency.

[0078] In one embodiment, in addition to the positioning requirement frequency of the application, the terminal can also determine whether to control the positioning module for positioning to enter the sleep state according to the actual request frequency of the application. After determining that the positioning requirement frequency of the application is less than or equal to the preset positioning frequency, the terminal can further determine whether the request frequency of the actual positioning request sent by the application is greater than or equal to the preset request frequency.

[0079] If it is determined that the request frequency of the actual positioning request sent by the application is greater than or equal to the preset request frequency after determining that the positioning requirement frequency of the application is less than or equal to the preset positioning frequency, the terminal can determine that the positioning frequency required by the application to realize its own function is low, and the actual positioning frequency requested by the application is high. This case can usually be due to the fact that the application developer can not consider the positioning requirement frequency of the application when setting the request frequency of the positioning request sent by the application, and therefore, the actual positioning frequency requested by the application is not necessary for the application, and the positioning module can not need to perform positioning according to the request frequency of the positioning request.

[0080] The terminal can control the positioning module for positioning to enter the sleep state, so that the positioning module only needs to perform positioning according to the lower positioning frequency and return the location information satisfying the positioning requirement frequency, thereby avoiding resource waste.

[0081] For example, when the terminal determines that the request frequency of the positioning request sent by an application is 1 time per second and the positioning demand frequency of the application is 1 time per 3 seconds, the terminal can control the positioning module for positioning to enter a sleep state periodically. Since the positioning module cannot perform positioning when in the sleep state, controlling the positioning module to enter the sleep state can reduce the frequency of positioning performed by the positioning module, so that the positioning module does not need to perform positioning 1 time per second according to the received positioning request. In addition, only the sleep duration of the positioning module needs to be controlled to ensure that the positioning module can perform positioning 1 time per 3 seconds, so that the positioning power consumption is reduced while the function implementation of the application is not affected.

[0082] If it is determined that the actual request frequency of the positioning request sent by the application is less than the preset request frequency after it is determined that the positioning demand frequency of the application is less than or equal to the preset positioning frequency, that is, the actual request frequency of the positioning request of the application with a lower positioning demand frequency is also lower. The positioning module performs positioning according to the request frequency of the received positioning request, which does not cause resource waste, and therefore does not need to be controlled to enter the sleep state.

[0083] Figure 7 is a schematic flowchart of another sleep control method according to an embodiment of the present disclosure. As shown in Figure 7 The control of the positioning module to enter the sleep state includes:

[0084] In step S701, the positioning module determines the position information of the terminal.

[0085] In step S702, after returning the position information to the application, the position information is cached and the positioning module is controlled to enter the sleep state according to a preset period.

[0086] In step S703, if the positioning module does not determine new position information, the application is controlled to call the cached position information.

[0087] In one embodiment, after the terminal successfully determines the position information of the terminal by using the positioning module for positioning and returns the position information to the application, the terminal can cache the position information and control the positioning module to enter the sleep state periodically.

[0088] In one embodiment, the preset period includes a first time interval and a second time interval, and the control of the positioning module to enter the sleep state according to the preset period includes: controlling the positioning module to enter the sleep state in the first time interval in the preset period, and controlling the positioning module to enter the wake-up state in the second time interval in the preset period.

[0089] The terminal can control the positioning module to periodically switch between the sleep state and the wake-up state. For any period, it can be divided into a first time interval and a second time interval. The terminal can control the positioning module to be in the sleep state in the first time interval of the period, and control the positioning module to switch from the sleep state to the wake-up state at the end time of the first time interval (the start time of the second time interval).

[0090] In one embodiment, the first time interval can be determined by a sleep timer, and the control of the positioning module to sleep according to the preset period includes:

[0091] starting the sleep timer;

[0092] controlling the positioning module to enter the sleep state before the sleep timer expires;

[0093] waking up the positioning module in the case where the sleep timer expires.

[0094] After the terminal first acquires the location information through the positioning module for positioning and returns the location information to the application, the terminal can cache the location information and start the sleep timer to control the positioning module to sleep for a preset time. During the period when the positioning module is in the sleep state and when the positioning module is just woken up and has not calculated new location information, the terminal can return the cached location information to the application. After the new location information is recalculated through the positioning module and returned to the application, the terminal can cache the new location information again, and restart the sleep timer to control the positioning module to sleep for a preset time again, and so on.

[0095] For example, the preset positioning frequency and the preset request frequency are both 1 time per second, and a certain application only needs to perform positioning 1 time per 3 seconds to achieve its intended function, i.e., the positioning demand frequency of the application is 1 time per 3 seconds, which is greater than the preset positioning frequency. However, the actual requested location update interval set by the developer is 1 second, i.e., the request frequency of the positioning request sent by the application can be 1 time per second, which is equal to the preset request frequency.

[0096] Then, after the terminal first acquires the location information through the positioning module for positioning and returns the location information to the application, the terminal can cache the location information and control the positioning module to sleep for 0.5 seconds. During the period when the positioning module sleeps for 0.5 seconds and the period when the positioning module is just woken up and has not calculated new location information after 0.5 seconds, the terminal can return the cached location information to the application. After the new location information is recalculated through the positioning module and returned to the application, the terminal can cache the new location information again, and control the positioning module to sleep for 0.5 seconds again, and so on.

[0097] Figure 8 is a schematic flow chart of still another dormancy control method according to an embodiment of the present disclosure. As shown in Figure 8 judging whether to control the positioning module for positioning to enter a dormant state according to at least the positioning requirement frequency of the application, comprises:

[0098] In step S801, it is judged whether to control the positioning module to enter a dormant state according to the positioning requirement frequency of the application and the positioning request type of the positioning request.

[0099] In one embodiment, the judging whether to control the positioning module to enter a dormant state according to the positioning requirement frequency of the application and the positioning request type of the positioning request comprises:

[0100] in the case that the positioning request is a GNSS (Global Navigation Satellite System) positioning request and the positioning requirement frequency of the application is less than or equal to a preset positioning frequency, the positioning module is controlled to enter a dormant state;

[0101] in the case that the positioning request is a network positioning request or the positioning requirement frequency of the application is greater than a preset positioning frequency, the positioning module is controlled to be in an awake state.

[0102] In one embodiment, the positioning module for positioning can be a GNSS (Global Navigation Satellite System) chip positioning module for realizing GNSS positioning only.

[0103] After receiving the positioning request sent by the application, the terminal can first determine the positioning request type of the positioning request. In the case that the positioning request type of the positioning request is determined to be a GNSS (Global Navigation Satellite System) positioning request, it is further judged whether to control the positioning module for positioning to enter a dormant state according to at least the positioning requirement frequency of the application. In the case that the positioning request type of the positioning request is determined to be a network positioning request, the positioning module can not be controlled.

[0104] As can be seen from the technical solutions provided by the present disclosure above, in the case that the terminal in the present disclosure receives the positioning request sent by the application, it can be judged according to the positioning requirement frequency of the application whether to control the positioning module for positioning to enter a dormant state.

[0105] In a case that the terminal receives a positioning request sent by an application with low positioning demand frequency, the terminal can control the positioning module for positioning to enter a sleep state, reduce power consumption, and prolong standby time. In a case that the terminal receives a positioning request sent by an application with high positioning demand frequency, the terminal can not control the positioning module for positioning to enter a sleep state, so as to avoid the inability to provide the terminal's location information for the application with high positioning demand frequency in time and affect the implementation of the application's function.

[0106] Corresponding to the foregoing embodiments of the sleep control method, the present disclosure also provides embodiments of a sleep control device.

[0107] Figure 9 FIG. 1 shows a schematic block diagram of a sleep control device according to an exemplary embodiment of the present disclosure. As shown in FIG. 1, the device can be a terminal or a device composed of modules in a terminal, and the terminal includes but is not limited to a mobile phone, a tablet computer, a wearable device, a sensor, an Internet of Things device, and the like. The terminal can communicate with a base station as a user equipment, and the base station includes but is not limited to a 4G base station, a 5G base station, and a 6G base station. Figure 9

[0108] As shown in FIG. 1, the sleep control device can include: Figure 9

[0109] The receiving module 901 is configured to determine a positioning request sent by an application.

[0110] The determining module 902 is configured to determine whether to control a positioning module for positioning to enter a sleep state according to at least the positioning demand frequency of the application.

[0111] Optionally, the device further includes:

[0112] The obtaining module is configured to obtain a preset application list.

[0113] The positioning frequency determining module is configured to determine that the positioning demand frequency of the application is less than or equal to a preset positioning frequency in a case that the application belongs to the preset application list, and determine that the positioning demand frequency of the application is greater than the preset positioning frequency in a case that the application does not belong to the preset application list.

[0114] Optionally, the determining module is configured to control the positioning module to be in an awake state in a case that the positioning demand frequency of the application is greater than the preset positioning frequency.

[0115] Optionally, in a case that the positioning request is a global navigation satellite system positioning request, the device further includes:

[0116] The quality determining module is configured to determine the quality of a positioning reference signal in a first positioning system.​​

[0117] The first positioning module is configured to control the positioning module to perform positioning according to the positioning reference signals in the first positioning system when the quality of the positioning reference signals in the first positioning system is greater than the preset quality.

[0118] The second positioning module is configured to control the positioning module to perform positioning according to the positioning reference signals in the first positioning system and the second positioning system when the quality of the positioning reference signals in the first positioning system is less than or equal to the preset quality.

[0119] Optionally, the apparatus further comprises:

[0120] The adding module is configured to add the satellite in the second positioning system to a satellite blacklist when the quality of the positioning reference signals in the first positioning system is greater than the preset quality.

[0121] The removing module is configured to remove the satellite contained in the satellite blacklist when the quality of the positioning reference signals in the first positioning system is less than or equal to the preset quality.

[0122] Optionally, the first positioning system comprises at least one of the following: a global positioning system (GPS), a Beidou satellite navigation system, and a Galileo satellite navigation system.

[0123] The second positioning system comprises at least one of the following: a global satellite navigation system (GLONASS), a quasi-zenith satellite system (QZSS), and an Indian regional navigation satellite system (NAVIC).

[0124] Optionally, the judging module is configured to control the positioning module to enter a sleep state when the positioning demand frequency of the application is less than or equal to a preset positioning frequency.

[0125] Optionally, the judging module is configured to judge whether to control the positioning module to enter a sleep state according to the positioning demand frequency of the application and the request frequency of the positioning request.

[0126] Optionally, the judging module is configured to control the positioning module to enter a sleep state when the positioning demand frequency of the application is less than or equal to a preset positioning frequency and the request frequency of the positioning request is greater than or equal to a preset request frequency, and control the positioning module to be in an awake state when the positioning demand frequency of the application is greater than the preset positioning frequency or the request frequency of the positioning request is less than the preset request frequency.

[0127] Optionally, the judging module is configured to: determine the position information of the terminal by the positioning module; after returning the position information to the application, cache the position information and control the positioning module to sleep according to a preset period; in the case that the positioning module does not determine new position information, control the application to call the cached position information.

[0128] Optionally, the judging module is configured to: start a sleep timer; before the sleep timer expires, control the positioning module to enter a sleep state; in the case that the sleep timer expires, wake up the positioning module.

[0129] Optionally, the judging module is configured to: determine whether to control the positioning module to enter a sleep state according to the positioning demand frequency of the application and the positioning request type of the positioning request.

[0130] Optionally, the judging module is configured to: in the case that the positioning request is a global navigation satellite system positioning request and the positioning demand frequency of the application is less than or equal to a preset positioning frequency, control the positioning module to enter a sleep state; in the case that the positioning request is a network positioning request or the positioning demand frequency of the application is greater than the preset positioning frequency, control the positioning module to be in a wake-up state.

[0131] Optionally, the positioning request is multiple, and the judging module is configured to: in the case that the positioning demand frequency of any application sending the positioning request is greater than a preset positioning frequency, control the positioning module to be in a wake-up state.

[0132] The implementation process of the functions and roles of each unit in the above device is specifically described in the implementation process of the corresponding steps in the above method, which will not be repeated here.

[0133] For the device embodiment, since it basically corresponds to the method embodiment, the relevant part can be referred to the part of the method embodiment. The device embodiments described above are only illustrative, and the units described as separate components can or can not be physically separated, and the components displayed as units can or can not be physical units, that is, they can be located in one place or distributed on multiple network units. According to the actual needs, part or all of the modules can be selected to achieve the purpose of the present disclosure. Those skilled in the art can understand and implement without creative labor.

[0134] Embodiments of the present disclosure also propose a terminal, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the sleep control method of any of the above embodiments.

[0135] Embodiments of the present disclosure also provide a computer readable storage medium having stored thereon a computer program, which, when executed by a processor, implements the steps of the hibernation control method according to any of the above embodiments.

[0136] Figure 10 is a schematic block diagram of a terminal 1000 according to embodiments of the present disclosure. The terminal 1000 can be, for example, a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.

[0137] Referring to Figure 10 The terminal 1000 can 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.

[0138] The processing component 1002 usually controls overall operations of the terminal 1000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1002 can include one or more processors 1020 to execute instructions to complete all or part of steps of the above methods. In addition, the processing component 1002 can include one or more modules to facilitate the interaction between the processing component 1002 and other components. For example, the processing component 1002 can include a multimedia module to facilitate the interaction between the multimedia component 1008 and the processing component 1002.

[0139] The memory 1004 is configured to store various types of data to support operations of the terminal 1000. Examples of these data include instructions for any application or method operating on the terminal 1000, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1004 can be implemented by any type of volatile or non-volatile storage devices 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 storage, flash memory, magnetic disk or optical disk.

[0140] The power supply component 1006 supplies electrical power for the various components of the terminal 1000. The power supply component 1006 can include a power supply management system, one or more power supplies, and other components associated with generating, managing and distributing power for the terminal 1000.

[0141] The multimedia component 1008 includes a screen to provide an output interface between the terminal 1000 and a user. In some embodiments, the screen can 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 an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide and a gesture on the touch panel. The touch sensor can not only sense a boundary of a touching or a sliding action, but also detect duration and intensity of the touching or sliding action. In some embodiments, the multimedia component 1008 includes a front camera and / or a rear camera. The front camera and / or the rear camera can receive external multimedia data when the terminal 1000 is in an operation mode, such as a shooting mode or a video mode. Each of the front and rear camera can be a fixed optical lens system or have a focal length and optical zooming capability.

[0142] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC) to receive an external audio signal when the terminal 1000 is in an operation mode, such as a call mode, a recording mode and a voice recognition mode. The received audio signal 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 to output audio signals.

[0143] The I / O interface 1012 provides an interface between the processing component 1002 and peripheral interface modules, which can be a keypad, a click wheel, buttons and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button and a lock button.

[0144] The sensor component 1014 includes one or more sensors to provide various state assessments for the terminal 1000. For example, the sensor component 1014 can detect an open / closed state of the terminal 1000, relative positioning of components, such as a display and a keypad of the terminal 1000, a change in position of the terminal 1000 or a component of the terminal 1000, presence or absence of user contact with the terminal 1000, an orientation or acceleration / deceleration of the terminal 1000, and a temperature change of the terminal 1000. The sensor component 1014 can include a proximity sensor to detect presence of an object within a proximity range of the terminal 1000 without any physical touch. The sensor component 1014 can further include a light sensor, such as a CMOS or CCD image sensor, to use in an imaging application. 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.

[0145] The communication component 1016 is configured to facilitate wired or wireless communication between the terminal 1000 and other devices. The terminal 1000 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G LTE, 5G NR, 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.

[0146] In an exemplary embodiment, the terminal 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, micro-controllers, microprocessors, or other electronic elements for performing the above-described methods.

[0147] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 1004 including instructions, is also provided, which can be executed by the processor 1020 of the terminal 1000 to complete the above-described methods. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage device, etc.

[0148] The above-described embodiments are merely possible implementations of the present disclosure, and are not used to limit the present disclosure. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the scope of the present disclosure.

Claims

1. A dormancy control method, characterized by, The method is suitable for a terminal, and comprises: determining a positioning request sent by an application; determining whether to control a positioning module for positioning to enter a sleep state according to at least a positioning requirement frequency of the application, wherein the positioning requirement frequency of the application is a positioning frequency required by the application to realize its own function; the step of determining whether to control the positioning module to enter the sleep state according to at least the positioning requirement frequency of the application comprises: in a case where the positioning requirement frequency of the application is less than or equal to a preset positioning frequency and a request frequency of the positioning request is greater than or equal to a preset request frequency, controlling the positioning module to enter the sleep state; in a case where the positioning requirement frequency of the application is greater than the preset positioning frequency or the request frequency of the positioning request is less than the preset request frequency, controlling the positioning module to be in an awake state.

2. The method of claim 1, wherein, The method further comprises: obtaining a preset application list; in a case where the application belongs to the preset application list, determining that the positioning requirement frequency of the application is less than or equal to the preset positioning frequency; in a case where the application does not belong to the preset application list, determining that the positioning requirement frequency of the application is greater than the preset positioning frequency.

3. The method of claim 1, wherein, in a case where the positioning request is a global navigation satellite system positioning request, the method further comprises: determining a quality of a positioning reference signal in a first positioning system; in a case where the quality of the positioning reference signal in the first positioning system is greater than a preset quality, controlling the positioning module to perform positioning according to the positioning reference signal in the first positioning system; in a case where the quality of the positioning reference signal in the first positioning system is less than or equal to the preset quality, controlling the positioning module to perform positioning according to the positioning reference signals in the first positioning system and a second positioning system.

4. The method of claim 1, wherein, in a case where the positioning request is a global navigation satellite system positioning request, the method further comprises: determining a quality of a positioning reference signal in a first positioning system; in a case where the quality of the positioning reference signal in the first positioning system is greater than a preset quality, adding a satellite in a second positioning system to a satellite blacklist; in a case where the quality of the positioning reference signal in the first positioning system is less than or equal to the preset quality, removing a satellite contained in the satellite blacklist.

5. The method according to claim 3 or 4, characterized in that, the first positioning system comprises at least one of the following: a global positioning system (GPS), a Beidou satellite navigation system, and a Galileo satellite navigation system; the second positioning system comprises at least one of the following: a global satellite navigation system (GLONASS), a quasi-zenith satellite system (QZSS), and an Indian regional navigation satellite system (NAVIC).

6. The method of claim 1, wherein, the step of controlling the positioning module to enter the sleep state comprises: determining position information of the terminal by the positioning module; after returning the position information to the application, caching the position information and controlling the positioning module to enter the sleep state according to a preset period; in a case where the positioning module does not determine new position information, controlling the application to call the cached position information.

7. The method of claim 1, wherein, in a case where the positioning request is multiple, the step of determining whether to control the positioning module to enter the sleep state according to at least the positioning requirement frequency of the application comprises: In a case where a positioning requirement frequency of any application sending the positioning request is greater than a preset positioning frequency, the positioning module is controlled to be in an awake state.

8. A dormancy control apparatus characterized by comprising: The device is suitable for a terminal, and the device comprises: a receiving module configured to determine a positioning request sent by an application; a judging module configured to judge whether to control a positioning module for positioning to enter a sleep state according to at least a positioning requirement frequency of the application, wherein the positioning requirement frequency of the application is a positioning frequency required by the application to realize its own function; the judging module is configured to, in a case where the positioning requirement frequency of the application is less than or equal to a preset positioning frequency and a request frequency of the positioning request is greater than or equal to a preset request frequency, control the positioning module to enter the sleep state; and in a case where the positioning requirement frequency of the application is greater than the preset positioning frequency or the request frequency of the positioning request is less than the preset request frequency, control the positioning module to be in the awake state.

9. The apparatus of claim 8, wherein, The device further comprises: an obtaining module configured to obtain a preset application list; a positioning frequency determining module configured to, in a case where the application belongs to the preset application list, determine that the positioning requirement frequency of the application is less than or equal to a preset positioning frequency, and in a case where the application does not belong to the preset application list, determine that the positioning requirement frequency of the application is greater than the preset positioning frequency.

10. The apparatus of claim 8, wherein, In a case where the positioning request is a global navigation satellite system positioning request, the device further comprises: a quality determining module configured to determine a quality of a positioning reference signal in a first positioning system; a first positioning module configured to, in a case where the quality of the positioning reference signal in the first positioning system is greater than a preset quality, control the positioning module to perform positioning according to the positioning reference signal in the first positioning system; a second positioning module configured to, in a case where the quality of the positioning reference signal in the first positioning system is less than or equal to the preset quality, control the positioning module to perform positioning according to the positioning reference signal in the first positioning system and a second positioning system.

11. The apparatus of claim 10, wherein, The device further comprises: an adding module configured to, in a case where the quality of the positioning reference signal in the first positioning system is greater than the preset quality, add a satellite in the second positioning system to a satellite blacklist; a removing module configured to, in a case where the quality of the positioning reference signal in the first positioning system is less than or equal to the preset quality, remove a satellite contained in the satellite blacklist.

12. The apparatus of claim 8, wherein, The judging module is configured to: determine position information of the terminal by the positioning module; after returning the position information to the application, cache the position information and control the positioning module to enter the sleep state according to a preset period; in a case where the positioning module does not determine new position information, control the application to call the cached position information.

13. A terminal, characterized by comprising: comprise: a processor; a memory for storing processor-executable instructions; wherein the processor implements the method of any one of claims 1-7 by running the executable instructions.

14. A computer readable storage medium having stored thereon computer instructions, wherein, The instructions, when executed by the processor, implement the steps of the method of any one of claims 1-7.

Citation Information

Patent Citations

  • Positioning method and apparatus based on mobile terminal

    CN106405595A

  • Positioning system performance optimization method and device, and mobile terminal

    CN106878945A