WO2020088650A1 - Application processor awakening method and device applied to mobile terminal - Google Patents

Application processor awakening method and device applied to mobile terminal Download PDF

Info

Publication number
WO2020088650A1
WO2020088650A1 PCT/CN2019/115020 CN2019115020W WO2020088650A1 WO 2020088650 A1 WO2020088650 A1 WO 2020088650A1 CN 2019115020 W CN2019115020 W CN 2019115020W WO 2020088650 A1 WO2020088650 A1 WO 2020088650A1
Authority
WO
WIPO (PCT)
Prior art keywords
instruction
cell
time
reported
mobile terminal
Prior art date
Application number
PCT/CN2019/115020
Other languages
French (fr)
Chinese (zh)
Inventor
林大伟
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201811545062.5A external-priority patent/CN111132282B/en
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP23190717.1A priority Critical patent/EP4373170A1/en
Priority to JP2021520340A priority patent/JP7207838B2/en
Priority to EP19877702.1A priority patent/EP3852445B1/en
Publication of WO2020088650A1 publication Critical patent/WO2020088650A1/en
Priority to US17/241,313 priority patent/US11907041B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the field of communication technology, and in particular, to an application processor wake-up method and device applied to a mobile terminal.
  • the application processor provided in the mobile terminal usually enters the sleep state. Compared with the application processor in the awake state, the power consumption of the application processor in the sleep state is lower, which can reduce the power consumption of the mobile terminal and prolong the use time of the mobile terminal.
  • the serving cell frequently sends cell handover instructions to the mobile terminal, and each time the mobile terminal receives a cell handover instruction, it needs to wake up the application processor so that the application processor executes according to the cell handover instruction
  • the cell switching operation causes the application processor to be woken up frequently.
  • an embodiment of the present application discloses a method and device for awakening an application processor applied to a mobile terminal.
  • an embodiment of the present application provides an application processor wake-up method applied to a mobile terminal, including:
  • the mobile terminal Detect whether the mobile terminal is in a preset first state, where the first state is any one or more of the following states: screen off, non-charging, speed less than a preset first threshold, and service The state where the handover speed of the cell is less than the preset second threshold;
  • the instruction to be reported is reported to the application processor to wake up the application processor.
  • the mobile terminal each time the mobile terminal obtains the instruction to be reported, it immediately reports the instruction to be reported to the application processor, so that the application processor frequently obtains the instruction and is frequently awakened.
  • the instruction to be reported is reported to the application processor only when the instruction to be reported with a priority greater than the preset priority is obtained, thereby reducing the number of instructions to the application processor and further reducing The number of times the application processor obtains instructions can prevent the application processor from being woken up frequently, and solves the problems in the prior art.
  • the embodiment of the present application reduces the number of times the application processor is woken up, compared with the prior art, the time during which the application processor is in the sleep state is extended, and therefore, the use time of the mobile terminal can also be extended.
  • the method further includes:
  • the instruction to be reported is reported to the application processor to wake up the application processor.
  • the acquiring the instruction to be reported that needs to be reported to the application processor includes:
  • the target time update instruction is the time update instruction whose reception time is closest to the current time.
  • the time reporting instruction is the instruction to be reported.
  • each time the mobile terminal receives the time update instruction it reports the time update instruction to the application processor to wake up the application processor and enable the application processor to perform the time update operation.
  • the solution disclosed in the embodiment of the present application does not immediately report to the application processor after acquiring the time update instruction, but caches the time update instruction.
  • the time update instruction When the mobile terminal meets the preset trigger condition, based on the latest received The time update instruction generates a corresponding time report instruction, and uses the time report instruction as the instruction to be reported. Therefore, compared with the prior art, the solution disclosed in the embodiments of the present application reduces the number of times and the number of instructions reported to the application processor, and further reduces the number of times the application processor is woken up, thereby avoiding the application processor from being Wake up frequently.
  • the acquiring the instruction to be reported that needs to be reported to the application processor includes:
  • the mobile terminal after receiving the measurement request issued by the serving cell, the mobile terminal measures the channel quality of each cell.
  • the channel quality of the cell whose cell priority is not lower than the preset first priority threshold is measured, thereby reducing the workload of the mobile terminal in measuring the channel quality and improving the measurement efficiency of the channel quality.
  • the acquiring the instruction to be reported that needs to be reported to the application processor includes:
  • the buffer time of the cell switching instruction is determined based on the duration of the mobile terminal in the first state and the following formula:
  • T1 (t0) represents the buffer time of the cell switching instruction
  • t0 represents the length of time that the mobile terminal is in the first state
  • T1, T2, T11 and t1 represent the preset length of time
  • is the preset The value of is a positive number less than 1;
  • the cell switching instruction with the latest acquisition time is the command to be reported.
  • the solution disclosed in the embodiments of the present application can reduce the number of times of reporting the cell switching instruction, thereby reducing the number of times the application processor is woken up and avoiding frequent wakeup of the application processor.
  • the acquiring the instruction to be reported that needs to be reported to the application processor includes:
  • the second target cell When detecting that the mobile terminal is in a network idle state, measuring the channel quality of a second target cell, the second target cell being a cell whose cell priority is not lower than a preset second priority threshold;
  • a cell reselection instruction is generated, and the cell reselection instruction is the instruction to be reported.
  • the acquiring the instruction to be reported that needs to be reported to the application processor includes:
  • the second target cell When detecting that the mobile terminal is in a network idle state, measuring the channel quality of a second target cell, the second target cell being a cell whose cell priority is not lower than a preset second priority threshold;
  • a cell reselection instruction is generated
  • the buffer time of the cell reselection instruction is determined based on the duration of the mobile terminal in the first state and the following formula:
  • T2 (t0) represents the buffer time of the cell reselection instruction
  • t0 represents the length of time that the mobile terminal is in the first state
  • T3, T4, T12 and t2 represent the preset length of time
  • is the The set constant is a positive number less than 1;
  • the cache time After the cache time is reached, it is determined that, among the at least one cell reselection instruction cached, the cell switching instruction with the latest acquisition time is the instruction to be reported.
  • the solution disclosed in the embodiment of the present application can reduce the number of times of reporting the cell reselection instruction, thereby reducing the number of times the application processor is woken up and avoiding frequent wakeup of the application processor.
  • the instruction to be reported is an instruction whose number of acquisitions in a target time period is greater than a preset number of times.
  • the method further includes:
  • the third threshold is determined based on the duration of the mobile terminal in the first state and the following formula:
  • T3 (t0) represents the third threshold
  • t0 represents the length of time that the mobile terminal is in the first state
  • T5 , T6, T13, and t3 respectively represent a preset time length
  • is a preset constant Its value is a positive number less than 1.
  • the reporting the instruction to be reported to the application processor includes:
  • an embodiment of the present application provides an application processor wake-up device applied to a mobile terminal, including:
  • a state detection module for detecting whether the mobile terminal is in a preset first state, where the first state is any one or more of the following states: the screen is off, non-charging, and the speed is less than the preset
  • the first threshold value of and the handover speed of the serving cell is less than the preset second threshold value;
  • An obtaining module configured to obtain the instruction to be reported to the application processor and the priority of the instruction to be reported after determining that the mobile terminal is in the preset first state
  • the instruction reporting module is used to report the instruction to be reported to the application processor when the priority of the instruction to be reported is greater than the preset priority, so as to wake up the application processor.
  • the instruction reporting module is further configured to, after acquiring the instruction to be reported to the application processor and the priority of the instruction to be reported, If the difference between the current time and the time when the instruction to be reported to the application processor was last reported is greater than a third threshold, the instruction to be reported is reported to the application processor to wake up the application processor.
  • the acquisition module includes:
  • An instruction receiving unit configured to receive at least one time update instruction, and record the time of receiving the time update instruction after each time the time update instruction is received;
  • a time difference obtaining unit configured to obtain a time difference between the current time and the reception time of a target time update instruction when the mobile terminal meets a preset trigger condition, the target time update instruction being the time when the reception time is closest to the current time An update instruction, when the mobile terminal lights up and / or charges, the mobile terminal meets the preset trigger condition;
  • the time reporting instruction acquiring unit is configured to acquire the sum of the time difference and the time included in the target time update instruction, and generate a time reporting instruction including the sum, the time reporting instruction is the instruction to be reported.
  • the acquisition module includes:
  • a first measurement unit configured to measure the channel quality of the first target cell after receiving the measurement request issued by the serving cell, and report the channel quality of the first target cell to the serving cell, the first target cell It is a cell whose cell priority is not lower than the preset first priority threshold;
  • the first instruction obtaining unit is configured to obtain a cell switching instruction generated by the serving cell based on a preset cell switching rule and the channel quality of the first target cell, and the cell switching instruction is the command to be reported.
  • the acquisition module includes:
  • a second measurement unit configured to measure the channel quality of the first target cell after receiving the measurement request issued by the serving cell, and report the channel quality of the first target cell to the serving cell, the first target cell It is a cell whose cell priority is not lower than the preset first priority threshold;
  • a first instruction cache unit configured to obtain a cell switching instruction generated by the serving cell based on a preset cell switching rule and the channel quality of the first target cell, and cache the cell switching instruction;
  • the first buffer time determining unit is configured to determine the buffer time of the cell switching instruction based on the duration of the mobile terminal in the first state and the following formula:
  • T1 (t0) represents the buffer time of the cell switching instruction
  • t0 represents the length of time that the mobile terminal is in the first state
  • T1, T2, T11 and t1 represent the preset length of time
  • is the preset The value of is a positive number less than 1;
  • the first instruction determination unit is configured to determine, after reaching the buffer time, at least one buffered cell switching instruction in the buffer, the cell switching instruction with the latest acquisition time is the instruction to be reported.
  • the acquisition module includes:
  • the third measurement unit is configured to measure the channel quality of the second target cell when it is detected that the mobile terminal is in a network idle state, the second target cell being a cell with a priority not lower than a preset second priority threshold Of the community
  • the first instruction generating unit is configured to generate a cell reselection instruction when it is determined that cell reselection is required based on the channel quality of the second target cell and a preset cell reselection rule, and the cell reselection instruction is Describe the report instruction.
  • the acquisition module includes:
  • a fourth measurement unit configured to measure the channel quality of the second target cell when it is detected that the mobile terminal is in a network idle state, the second target cell being a cell with a priority not lower than a preset second priority threshold Of the community
  • a second instruction generating unit configured to generate a cell reselection instruction when it is determined that cell reselection is required based on the channel quality of the second target cell and preset cell reselection rules
  • the second buffer time determining unit is configured to determine the buffer time of the cell reselection instruction based on the duration of the mobile terminal in the first state and the following formula:
  • T2 (t0) represents the buffer time of the cell reselection instruction
  • t0 represents the length of time that the mobile terminal is in the first state
  • T3, T4, T12 and t2 represent the preset length of time
  • is the The set constant is a positive number less than 1;
  • the second instruction determination unit is configured to determine, after reaching the cache time, at least one cache cell reselection instruction that the cell switching instruction with the latest acquisition time is the instruction to be reported.
  • the instruction to be reported is an instruction whose number of acquisitions in a target time period is greater than a preset number of times.
  • the third threshold determination module
  • the third threshold determination module is used to determine the third threshold based on the duration of the mobile terminal in the first state and the following formula after the acquiring the instruction to be reported to the application processor:
  • T3 (t0) represents the third threshold
  • t0 represents the length of time that the mobile terminal is in the first state
  • T5 , T6, T13, and t3 respectively represent a preset time length
  • is a preset constant Its value is a positive number less than 1.
  • the instruction reporting module includes:
  • the time comparison unit is used to compare the acquisition time of each instruction to be reported of the same type when there are more than two instructions of the same type to be reported;
  • the instruction reporting unit is configured to report to the application processor the instruction to be reported with the latest acquisition time among the instructions to be reported of the same type.
  • an embodiment of the present application provides a mobile terminal, including:
  • a memory a processor, and a computer program stored on the memory and executable on the processor.
  • the processor executes the computer program, the method according to the first aspect is implemented.
  • a computer-readable medium includes instructions, which when executed on a computer, cause the computer to perform the method as described in the first aspect.
  • An embodiment of the present application discloses an application processor wake-up method and device applied to a mobile terminal.
  • this method first, it is detected whether the mobile terminal is in a preset first state; after determining that the mobile terminal is in a preset first state, Obtain the instruction to be reported, and obtain the priority of the instruction to be reported; when an instruction to be reported that has a priority greater than a preset priority is obtained, report the instruction to be reported to the application processor to wake up the application process To enable the application processor to perform the corresponding operation.
  • the mobile terminal each time the mobile terminal obtains the instruction to be reported, it immediately reports the instruction to be reported to the application processor, so that the application processor frequently obtains the instruction and is frequently awakened.
  • the instruction to be reported is reported to the application processor only when the instruction to be reported with a priority greater than the preset priority is obtained, thereby reducing the number of instructions to the application processor and further reducing The number of times the application processor obtains instructions can prevent the application processor from being woken up frequently, and solves the problems in the prior art.
  • the embodiment of the present application reduces the number of times the application processor is woken up, compared with the prior art, the time during which the application processor is in the sleep state is extended, and therefore, the use time of the mobile terminal can also be extended.
  • FIG. 1 is a schematic diagram of a working process of an application processor wake-up method applied to a mobile terminal disclosed in an embodiment of the present application;
  • FIG. 2 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a workflow of detecting whether a mobile terminal is in a preset first state in an application processor wake-up method disclosed in an embodiment of the present application;
  • FIG. 4 is a schematic diagram of a work flow for obtaining an instruction to be reported in an application processor wake-up method for a mobile terminal disclosed in an embodiment of the present application;
  • FIG. 5 is a schematic diagram of an application scenario of an application processor wake-up method applied to a mobile terminal disclosed in an embodiment of the present application;
  • FIG. 6 is a schematic diagram of another workflow of obtaining an instruction to be reported in the application processor wake-up method for mobile terminals disclosed in the embodiments of the present application;
  • FIG. 7 is a schematic diagram of another workflow of obtaining an instruction to be reported in an application processor wake-up method for a mobile terminal disclosed in an embodiment of the present application;
  • FIG. 8 is a schematic diagram of a correspondence relationship between a buffer time of a cell switching instruction and a duration in which the mobile terminal is in the first state in the application processor wake-up method applied to a mobile terminal disclosed in an embodiment of the present application;
  • FIG. 9 is a schematic diagram of another workflow of obtaining an instruction to be reported in an application processor wake-up method for a mobile terminal disclosed in an embodiment of the present application;
  • FIG. 10 is a schematic diagram of another workflow of obtaining an instruction to be reported in an application processor wake-up method for a mobile terminal disclosed in an embodiment of the present application;
  • FIG. 11 is a schematic diagram of the correspondence between the third threshold and the length of time when the mobile terminal is in the first state in the application processor wake-up method for mobile terminals disclosed in the embodiments of the present application;
  • FIG. 12 is a schematic structural diagram of an application processor wake-up device applied to a mobile terminal disclosed in an embodiment of the present application
  • FIG. 13 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of yet another mobile terminal disclosed in an embodiment of the present application.
  • the embodiments of the present application disclose a method and device for awakening the application processor in the mobile terminal.
  • the application processor wake-up method disclosed in the embodiments of the present application applied to a mobile terminal includes the following steps:
  • Step S11 Detect whether the mobile terminal is in a preset first state.
  • the first state is any one or more of the following states: the screen is off, non-charging, the speed is less than the preset first threshold, and the handover speed of the serving cell is less than the preset second The status of the threshold.
  • the first state is preset, and when the mobile terminal is in the first state, the application processor wake-up method applied to the mobile terminal disclosed in the embodiment of the present application is executed, so as to reduce the number of application processor wake-ups.
  • the first state is any one or a combination of the following states: off-screen, non-charging, the speed is less than the preset first threshold, and the handover speed of the serving cell is less than the preset second threshold.
  • a state may be set when the mobile terminal is off-screen, non-charging, and the speed of the mobile terminal is less than the preset first threshold and the handover speed of the serving cell is less than the preset second threshold At this time, the mobile terminal is in the first state.
  • Step S12 After determining that the mobile terminal is in the preset first state, obtain the instruction to be reported to the application processor and the priority of the instruction to be reported.
  • the mobile terminal can obtain multiple types of instructions. For example, after the mobile terminal establishes a network connection, each cell will issue a time update instruction to the mobile terminal, and the time update instruction is loaded with time so that the mobile terminal can update its own time; in addition, the mobile terminal can also receive the service cell Issued cell switching instructions, etc. In the embodiment of the present application, the corresponding instruction to be reported can be obtained accordingly.
  • the mobile terminal can also obtain other types of instructions.
  • the instructions may also be used as instructions to be reported.
  • a network abnormality may sometimes occur in a serving cell or a neighboring cell.
  • a confirmation return instruction is frequently issued to the mobile terminal, so that the application processor in the mobile terminal generates a corresponding response after receiving the confirmation return instruction. Confirm the feedback information, and then transmit the confirmation feedback information to the serving cell or the neighboring cell; in addition, when the mobile terminal performs data transmission with the serving cell, it needs to establish a data link with the serving cell in order to perform data through the data link Transmission, but in some cases, for example, the network signal of the serving cell is weak, which will cause the data link establishment to be unsuccessful, and the serving cell will issue a link establishment failure instruction to the mobile terminal; in addition, after the mobile terminal determines the serving cell, The registration of the serving cell is usually required, but in some cases, the registration request of the mobile terminal cannot be transmitted to the serving cell, or the registration confirmation information issued by the serving cell cannot be transmitted to the mobile terminal, resulting in the mobile terminal registration failure.
  • the mobile terminal will generate a network registration failure instruction.
  • the confirmation return instruction, the link establishment failure instruction and the network registration failure instruction often need to be reported to the application processor so that the application processor can perform the corresponding operation.
  • the confirmation The return instruction, the link establishment failure instruction and the network registration failure instruction are to be reported.
  • corresponding priorities are set in advance for different types of instructions to be reported, that is, the correspondence between various types of instructions to be reported and priorities is set.
  • the priority of the instruction to be reported can be determined according to the type of the instruction to be reported. Among them, for the instruction to be reported that needs to be processed as soon as possible, the corresponding priority is usually higher, and for the instruction to be reported that does not need to be processed as soon as possible, the corresponding priority is usually lower.
  • the instruction to be reported may include various types of instructions, for example, a time reporting instruction for causing the mobile terminal to update the time, a cell switching instruction for performing cell handover, and a cell reselection instruction for cell reselection.
  • the service cell or the neighboring cell sometimes has a network abnormality, so that the confirmation return instruction is frequently issued to the mobile terminal, so that the application processor in the mobile terminal generates corresponding confirmation feedback information after receiving the confirmation return instruction, and then When the confirmation feedback information and the like are transmitted to the serving cell or the neighboring cell, the confirmation return instruction is also an instruction to be reported.
  • a table may be set in advance to represent the correspondence between different types of commands to be reported and the priority of the commands, and the mobile terminal may store the table so that the mobile terminal can obtain the command to be reported based on the table To determine the priority of the obtained instruction to be reported.
  • the form may be in the following form:
  • Step S13 When the priority of the instruction to be reported is greater than a preset priority, report the instruction to be reported to the application processor to wake up the application processor.
  • the obtained instruction to be reported includes the instruction to be reported whose priority is greater than the preset priority, it may be considered that the reporting condition is satisfied, so that the instruction to be reported is reported to the application processor.
  • the order of reporting may be determined according to the acquisition time of each instruction to be reported, in this case, according to the order of acquisition time of each instruction to be reported In order, report each instruction to be reported in turn. Or, in this step, the order of reporting may also be determined according to the priority of each instruction to be reported. In this case, the instruction to be reported with higher priority is preferentially reported according to the priority of each instruction to be reported.
  • An embodiment of the present application discloses an application processor wake-up method applied to a mobile terminal.
  • this method first, it is detected whether the mobile terminal is in a preset first state; after determining that the mobile terminal is in a preset first state, the need is acquired
  • the mobile terminal each time the mobile terminal obtains the instruction to be reported, it immediately reports the instruction to be reported to the application processor, so that the application processor frequently obtains the instruction and is frequently awakened.
  • the instruction to be reported is reported to the application processor only when the instruction to be reported with a priority greater than the preset priority is obtained, thereby reducing the number of instructions to the application processor and further reducing The number of times the application processor obtains instructions can prevent the application processor from being woken up frequently, and solves the problems in the prior art.
  • the embodiment of the present application reduces the number of times the application processor is woken up, compared with the prior art, the time during which the application processor is in the sleep state is extended, and therefore, the use time of the mobile terminal can also be extended.
  • an application processor is provided, and other components capable of data transmission with the application processor, such as a modem, are also provided.
  • the method disclosed in the embodiments of the present application can be executed by other devices provided in the mobile terminal. For example, it can be executed by a modem.
  • the modem when the application processor is in the sleep state, the modem can obtain the instruction to be reported, and when it is determined that the reporting condition is satisfied, report the instruction to be reported to the application processor.
  • the structural schematic diagram of the mobile terminal may be as shown in FIG. 2. Referring to FIG. 2, an application processor and a modem are provided in the mobile terminal, where the modem may perform the method disclosed in the embodiments of the present application to obtain the instruction to be reported , And report the pending instruction to the application processor.
  • the instruction to be reported is reported to the application processor to wake up the application processor.
  • the difference between the current time and the last time to report the instruction to the application processor is the time from the current time to the last report. If the time is greater than the third threshold, the above steps will be processed to the application To report the command.
  • the multiple to-be-reported instructions that need to be reported include all the to-be-reported instructions obtained during the period from the last report to the current time.
  • detecting whether the mobile terminal is in a preset first state is any one or more of the following states: the screen is off, non-charging, speed The state is less than the preset first threshold and the handover speed of the serving cell is less than the preset second threshold. If it is set that the mobile terminal is in the state of being simultaneously off screen, non-charging, the speed is less than the preset first threshold, and the switching speed of the serving cell is less than the preset second threshold, the mobile terminal is in the first state, then, in order to elaborate How to detect whether the mobile terminal is in a preset first state, as a refinement of the method of FIG. 1, this application discloses another embodiment.
  • detecting whether the mobile terminal is in a preset first state as described in step S11 may include the following steps:
  • Step S21 When the mobile terminal is in a screen-off and non-charging state, obtain a moving speed of the mobile terminal.
  • a speed measuring device is built in the mobile terminal in advance, and the speed of the mobile terminal can be determined by the speed measuring device.
  • the speed measuring device may be an acceleration sensor.
  • the speed measuring device may also be another type of device, which is not limited in the embodiments of the present application.
  • Step S22 When the moving speed of the mobile terminal is less than the preset first threshold, detect whether the handover speed of the serving cell is less than the preset second threshold.
  • step S23 if the handover speed of the serving cell is less than the preset second threshold, the operation of step S23 is performed, otherwise, the operation of step S24 is performed.
  • the mobile terminal After registering to the serving cell, the mobile terminal can acquire cell information of the serving cell, such as cell ID, and can distinguish different cells by using the cell information.
  • the moving speed of the mobile terminal When the moving speed of the mobile terminal is less than the preset first threshold, it indicates that the moving speed of the mobile terminal is small, but in this case, the mobile terminal may also undergo a large change in geographic location. For example, when a user of a mobile terminal rides a high-speed rail, although the mobile terminal moves at a slower speed, the geographical location still changes significantly. Therefore, it can be further detected whether the mobile terminal is in a stationary state through the switching speed of the serving cell.
  • Step S23 When the handover speed of the serving cell is less than a preset second threshold, it is determined that the mobile terminal is in a preset first state.
  • the mobile terminal When the moving speed of the mobile terminal is less than the preset speed threshold, and the handover speed of the serving cell is less than the preset handover speed threshold, the mobile terminal may be considered to be in a stationary state. Further, it is determined that the mobile terminal is in the preset One state.
  • Step S24 When the handover speed of the serving cell is not less than a preset second threshold, it is determined that the mobile terminal is not in a preset first state.
  • the handover speed of the serving cell is not less than the preset second threshold, it indicates that the mobile terminal moves within a relatively large geographic range. In this case, it is considered that the mobile terminal is not in the preset first state.
  • the mobile terminal it is possible to determine whether the mobile terminal is in a stationary state based on a speed measuring device built in the mobile terminal and the switching speed of the serving cell, so as to further detect whether the mobile terminal is in a preset first state.
  • GPS global positioning system
  • the power consumption of the mobile terminal can be reduced, and it is not limited by whether the GPS is turned off.
  • the operation of obtaining the instruction to be reported is disclosed.
  • the instruction to be reported can be obtained in various ways.
  • the instruction to be reported is obtained according to the time update instruction.
  • the serving cell of the mobile terminal often transmits a time update instruction to the mobile terminal, and the time update instruction is loaded with time so that the mobile terminal can update its own time according to the time.
  • the serving cell transmits a time update instruction to the mobile terminal.
  • 3GPP 3rd Generation Partnership Project
  • a mobile terminal is switched from a Long Term Evolution (LTE) to a Global Mobile Communication System (Global System for For Mobile Communications, GSM )
  • GSM Global System for For Mobile Communications
  • the service cell corresponding to the GSM network will transmit the time update instruction to the mobile terminal.
  • the service cell corresponding to the LTE network will also transmit the time update instruction to the mobile terminal.
  • the obtaining of the instruction to be reported to the application processor includes the following steps:
  • Step S31 Receive at least one time update instruction, and record the time of receiving the time update instruction after each time the time update instruction is received.
  • the serving cell and the neighboring cell of the mobile terminal will issue a time update instruction to the mobile terminal, and the time update instruction is loaded with time.
  • Step S32 When the mobile terminal meets the preset trigger condition, obtain a time difference between the current time and the reception time of the target time update instruction, where the target time update instruction is the time update instruction whose reception time is closest to the current time.
  • the mobile terminal when the mobile terminal is bright and / or charged, the mobile terminal meets the preset trigger condition. That is to say, when the mobile terminal is bright and / or charged, it is considered that the mobile terminal meets the preset trigger condition. In this case, the time difference between the current time and the reception time is acquired.
  • a time statistics device such as a clock register, is usually provided, through which the time difference between the current time and the reception time of the time update instruction can be obtained.
  • the time statistical device is a clock register
  • the time difference can be determined according to the crystal frequency of the clock register.
  • the time difference may also be obtained in other ways, which is not limited in the embodiments of the present application.
  • Step S33 Obtain the sum of the time difference and the time included in the target time update instruction, and generate a time reporting instruction including the sum, the time reporting instruction is the instruction to be reported.
  • the sum of the time difference and the time included in the target time update instruction is the result of the addition of the time difference and the time included in the target time update instruction.
  • the cached other time update instruction can also be deleted, and the cache is no longer cached to save storage space.
  • each time the mobile terminal receives the time update instruction it reports the time update instruction to the application processor to wake up the application processor and enable the application processor to perform the time update operation.
  • the solution disclosed in the embodiment of the present application through the operations from step S31 to step S33, after the time update instruction is obtained, it is not immediately reported to the application processor, but the time update instruction is cached.
  • the mobile terminal meets the preset trigger In the condition, based on the latest time update instruction received, a corresponding time report instruction is generated, and the time report instruction is used as the instruction to be reported. Therefore, compared with the prior art, the solution disclosed in the embodiments of the present application reduces the number of times and the number of instructions reported to the application processor, and further reduces the number of times the application processor is woken up, thereby avoiding the application processor from being Wake up frequently.
  • mobile terminals are often located where overlapping cells are located, that is, there are often multiple cells around the mobile terminal.
  • the mobile terminal may frequently undergo cell switching, resulting in frequent components (such as modems) in the mobile terminal.
  • Received time update instruction For example, referring to the schematic diagram of the application scenario shown in FIG. 5, the mobile terminal is in a cell covered by cell A, cell B, and cell C. In this case, as the signal strength of each cell fluctuates, the mobile terminal may frequently undergo cell switching To receive the time update instruction multiple times.
  • each time a component in a mobile terminal obtains a time update instruction issued by a cell, it reports to the application processor, causing the application processor to be frequently awakened.
  • the instructions of the present application can greatly reduce the number and number of instructions reported to the application processor, and effectively prevent the application processor from being frequently awakened.
  • the corresponding instruction to be reported can also be obtained according to the cell switching instruction.
  • the obtaining of the instruction to be reported to the application processor includes the following steps:
  • Step S41 After receiving the measurement request issued by the serving cell, measure the channel quality of the first target cell, and report the channel quality of the first target cell to the serving cell, where the first target cell is a cell priority Cells not lower than the preset first priority threshold.
  • the network status of the mobile terminal's serving cell sometimes changes, and the serving cell sends a measurement request to the mobile terminal after its own network status changes, so that the mobile terminal tests the surrounding cells (ie, serving cell and neighboring cells) Channel quality.
  • the serving cell can also obtain the priority of each cell and transmit the priority of each cell to the mobile terminal, so that the mobile terminal can determine the priority of each cell.
  • the mobile terminal after receiving the measurement request issued by the serving cell, the mobile terminal selects the cell in which the cell priority is higher than the first priority threshold as the first target cell, then measures the channel quality of the first target cell, and then The serving cell feeds back the channel quality of the first target cell.
  • Step S42 Obtain a cell switching instruction generated by the serving cell based on a preset cell switching rule and the channel quality of the first target cell, where the cell switching instruction is the command to be reported.
  • the serving cell After receiving the channel quality of the first target cell, the serving cell determines whether the mobile terminal needs to perform cell switching according to the channel quality of the first target cell and preset cell switching rules, and determines whether the mobile terminal needs to perform In the case of cell switching, a cell switching instruction is generated, and the cell switching instruction is issued to the mobile terminal, so that the mobile terminal obtains the cell switching instruction. In this step, the cell switching instruction is used as an instruction to be reported.
  • the cell switching rules can take many forms, for example, the cell switching rules can be determined by the network power of each cell, that is, the mobile terminal is switched to a cell with a higher network power; or, the network load of each cell determines that the mobile terminal is to be switched To the current cell with a lower network load; the cell switching rule is determined by the cell priority. In this case, the mobile terminal obtains the priority of each cell and switches to the cell with a higher priority.
  • the cell switching rule may also be in other forms, which is not limited in this embodiment of the present application.
  • the mobile terminal after receiving the measurement request issued by the serving cell, the mobile terminal measures the channel quality of each cell.
  • the embodiments disclosed in steps S41 to S42 only the channel quality of the cell whose cell priority is not lower than the preset first priority threshold is measured, thereby reducing the workload of the mobile terminal in measuring channel quality and improving Channel efficiency measurement efficiency.
  • the cell switching instruction after the cell switching instruction is obtained, the cell switching instruction may be cached, and after a period of time, the command to be reported is determined according to the cached cell switching instruction.
  • the obtaining of the instruction to be reported to the application processor includes the following steps:
  • Step S51 After receiving the measurement request issued by the serving cell, measure the channel quality of the first target cell, and report the channel quality of the first target cell to the serving cell, where the first target cell is a cell priority Cells not lower than the preset first priority threshold.
  • step S51 is the same as the specific operation process of step S41, and they can be referred to each other, and will not be repeated here.
  • Step S52 Acquire a cell switching instruction generated by the serving cell based on a preset cell switching rule and the channel quality of the first target cell, and cache the cell switching instruction.
  • Step S53 Determine the buffer time of the cell switching instruction based on the duration of the mobile terminal in the first state and the following formula:
  • T1 (t0) represents the buffer time of the cell switching instruction
  • t0 represents the length of time that the mobile terminal is in the first state
  • T1, T2, T11 and t1 represent the preset length of time
  • is the preset
  • the constant is a positive number less than 1.
  • Step S54 After the buffer time is reached, it is determined that, among the at least one buffered cell switching instruction, the cell switching instruction with the latest acquisition time is the command to be reported.
  • the mobile terminal can obtain one or more cell switching instructions.
  • this cell switching instruction is the latest cell switching instruction, that is, the cell switching instruction is a command to be reported. If multiple cell switching instructions are received, The cell handover instruction with the latest acquisition time is selected as the instruction to be reported.
  • the solution disclosed in the embodiments of the present application can reduce the number of times of reporting the cell switching instruction, thereby reducing the number of times the application processor is woken up and avoiding frequent wakeup of the application processor.
  • the cached other cell switching instruction can also be deleted, and the cache is no longer cached to save storage space.
  • the buffer time of the cell switching instruction is determined by formula (1).
  • is a preset constant, and its value is usually a positive number less than 1, for example, it can be set to 0.7
  • T11 is the buffer time
  • the initial value of, the specific duration can be preset according to actual application requirements. According to this formula, if the duration of the mobile terminal in the first state is less than the preset time length T1, the corresponding cache time is T11.
  • the cache time is equal to the initial value of the cache time; if the mobile terminal is in the first state The duration of a state is not less than the preset time length T1, and not greater than the preset time length T2, then the corresponding buffer time is t1 * ⁇ + T11; if the mobile terminal is in the first state, the duration is greater than the preset time length T2, the corresponding cache time is t1 + T11.
  • the correspondence relationship between the buffer time of the cell switching instruction and the duration of the mobile terminal in the first state can be shown in FIG. 8, in FIG. 8, the abscissa represents the duration of the mobile terminal in the first state, and the ordinate represents Cache time.
  • the longer the mobile terminal is in the first state the longer the buffering time of the cell switching instruction.
  • the instruction to be reported is obtained according to the cell switching instruction.
  • the corresponding instruction to be reported can also be obtained according to the cell reselection instruction.
  • the obtaining of the instruction to be reported to the application processor includes the following steps:
  • Step S61 When it is detected that the mobile terminal is in a network idle state, the channel quality of the second target cell is measured, and the second target cell is a cell whose cell priority is not lower than a preset second priority threshold.
  • the mobile terminal If it is detected that the mobile terminal is in the network idle state, the mobile terminal usually actively measures the channel quality of each cell, and determines whether the cell needs to be reselected according to the measured channel quality, and generates a corresponding cell if reselection is required. Reselect the instruction.
  • the cell priority of each cell is queried, the cell in which the cell priority is higher than the second priority threshold is used as the second target cell, and the second target cell is measured Channel quality.
  • Step S62 When it is determined that cell reselection needs to be performed based on the channel quality of the second target cell and preset cell reselection rules, a cell reselection instruction is generated, and the cell reselection instruction is the instruction to be reported.
  • the cell reselection rules may be in various forms.
  • the cell reselection rules are determined by the network operator. In this case, the operator who sets the mobile terminal to serve the cell before reselection is the first operator.
  • the reselected cell is a cell supported by the first operator; or, determined by the signal strength of each cell, in this case, the reselected cell is determined to be the cell with the strongest signal strength.
  • the cell reselection rule may also be in other forms, which is not limited in this embodiment of the present application.
  • the channel quality of each cell is measured.
  • steps S61 to S62 only the channel quality of the cell whose cell priority is not lower than the preset second priority threshold is measured, thereby reducing the workload of measuring channel quality and improving the channel quality. Measuring efficiency.
  • the cell reselection instruction may be cached, and after a period of time, the command to be reported is determined according to the cached cell reselection instruction.
  • the obtaining of the instruction to be reported to the application processor includes the following steps:
  • Step S71 When it is detected that the mobile terminal is in a network idle state, measure the channel quality of a second target cell, the second target cell being a cell whose cell priority is not lower than a preset second priority threshold.
  • step S71 is the same as the specific operation process of step S61, and can be referred to each other, which will not be repeated here.
  • Step S72 When it is determined that cell reselection needs to be performed based on the channel quality of the second target cell and a preset cell reselection rule, a cell reselection instruction is generated.
  • Step S73 Determine the buffer time of the cell reselection instruction based on the duration of the mobile terminal in the first state and the following formula:
  • T2 (t0) represents the buffer time of the cell reselection instruction
  • t0 represents the length of time that the mobile terminal is in the first state
  • T3, T4, T12 and t2 represent the preset length of time
  • is the The set constant is a positive number less than 1.
  • the correspondence between the duration of the mobile terminal in the first state and the buffer time of the cell reselection instruction is preset.
  • the mobile terminal obtains the cell reselection instruction through step S72 That is, the duration at which the mobile terminal is in the first state at the current moment can be determined, and then the buffer time of the cell reselection instruction is determined based on the corresponding relationship.
  • Step S74 After the cache time is reached, it is determined that, among the at least one cache cell reselection instruction, the cell switching instruction with the latest acquisition time is the instruction to be reported.
  • the mobile terminal may generate one or more cell reselection instructions. If the mobile terminal generates only one cell reselection instruction, this cell reselection instruction is the latest cell reselection instruction, that is, the cell reselection instruction is a command to be reported. If multiple cell reselection instructions are received For the selection instruction, the cell reselection instruction with the latest acquisition time is selected as the instruction to be reported.
  • the solution disclosed in the embodiments of the present application can reduce the number of times of reporting the cell reselection instruction, thereby reducing the number of times the application processor is woken up and avoiding frequent wakeup of the application processor.
  • the cached other cell reselection instruction can also be deleted, and the cache is no longer cached to save storage space.
  • the buffer time of the cell reselection instruction is determined by formula (2).
  • is a preset constant, and its value is usually a positive number less than 1, for example, it can be set to 0.7 and T12 is cache
  • T12 is cache
  • the initial value of time and its specific duration can be preset according to the actual application requirements. According to this formula, if the duration of the mobile terminal in the first state is less than the preset time length T3, the corresponding cache time is T12.
  • the cache time is equal to the initial value of the cache time; if the mobile terminal is in the first state The duration of a state is not less than the preset time length T3, and not greater than the preset time length T4, then the corresponding cache time is t2 * ⁇ + T12; if the mobile terminal is in the first state, the duration is greater than the preset time length T4, the corresponding cache time is t2 + T12.
  • the longer the mobile terminal is in the first state the longer the buffering time of the cell switching instruction.
  • a network abnormality may sometimes occur in a serving cell or a neighboring cell.
  • a confirmation return instruction is frequently issued to the mobile terminal, so that the application processor in the mobile terminal generates a corresponding response after receiving the confirmation return instruction. Confirm the feedback information, and then transmit the confirmation feedback information to the serving cell or the neighboring cell; in addition, when the mobile terminal performs data transmission with the serving cell, it needs to establish a data link with the serving cell in order to perform data through the data link Transmission, but in some cases, for example, the network signal of the serving cell is weak, which will cause the data link establishment to be unsuccessful, and the serving cell will issue a link establishment failure instruction to the mobile terminal; in addition, after the mobile terminal determines the serving cell, The registration of the serving cell is usually required, but in some cases, the registration request of the mobile terminal cannot be transmitted to the serving cell, or the registration confirmation information issued by the serving cell cannot be transmitted to the mobile terminal, resulting in the mobile terminal registration failure.
  • the mobile terminal will generate a network registration failure instruction.
  • the confirmation return instruction, the link establishment failure instruction and the network registration failure instruction often need to be reported to the application processor so that the application processor can perform the corresponding operation.
  • the application processor can perform the corresponding operation.
  • there are other types of instructions that need to be reported to the application processor which is not limited in this embodiment of the present application.
  • the instruction to be reported is an instruction whose acquisition times are greater than a preset number in the target time period to avoid frequent wake-up of the application processor caused by the acquired instructions .
  • the number of acquisitions in the target time period is greater than the preset number, it indicates that the instruction is acquired more frequently. In this case, in order to avoid frequent wakeup of the application processor, it may be used as an instruction to be reported.
  • the third threshold can be obtained in various ways.
  • the third threshold can be preset as a fixed time value.
  • the third threshold may also be obtained according to the length of time the mobile terminal is in the first state.
  • the application processor wake-up method disclosed in the embodiments of the present application after obtaining the instruction to be reported to the application processor, further includes the following steps:
  • the third threshold is determined based on the duration of the mobile terminal in the first state and the following formula:
  • T3 (t0) represents the third threshold
  • t0 represents the length of time the mobile terminal is in the first state
  • T5 , T6, T13 and t3 respectively represent the preset time length
  • is a preset constant
  • Its value is a positive number less than 1.
  • is a preset constant, and its value is usually a positive number less than 1, for example, it can be set to 0.7.
  • T13 is the initial value of the third threshold, and its specific duration may be preset according to actual application requirements. According to the formula, if the duration of the mobile terminal in the first state is less than the preset time length T5, the corresponding third threshold is T13; if the duration of the mobile terminal in the first state is not less than the preset time length T5, and If it is not greater than the preset time length T6, the corresponding third threshold is t3 * ⁇ + T13; if the duration of the mobile terminal in the first state is greater than the preset time length T6, the corresponding third threshold is t3 + T13.
  • a schematic diagram of the correspondence between the third threshold and the duration when the mobile terminal is in the first state may be as shown in FIG. 11. It can be seen from the above formula and FIG. 11 that in the embodiment of the present application, the longer the duration of the mobile terminal in the first state, the larger the third threshold, and accordingly, the fewer the number of times the instruction is reported to the application processor, thereby further Reduce the number of times the application processor is woken up.
  • the reporting of the instruction to be reported to the application processor includes:
  • the instruction to be reported is divided according to the type of the instruction to be reported, the instructions of the same type to be reported are divided into the same group, and the latest in each group is obtained Instructions to be reported, in this case, only various types of instructions to be reported need to be reported to the application processor, and the instruction to be reported obtained at the latest can reduce the number of instructions reported to the application processor. In this case, after being awakened, the application processor only needs to execute the latest instruction to be reported in each group of instructions to be reported, which reduces the operations performed by the application processor.
  • an application processor wake-up device applied to a mobile terminal is also disclosed.
  • the application processor wake-up device applied to the mobile terminal includes a state detection module 110, an acquisition module 120, and an instruction reporting module 130.
  • the state detection module 110 is configured to detect whether the mobile terminal is in a preset first state, where the first state is any one or more of the following states: the screen is off, non-charging A state where the speed is less than the preset first threshold and the handover speed of the serving cell is less than the preset second threshold.
  • the first state is any one or a combination of the following states: off-screen, non-charging, the speed is less than the preset first threshold, and the handover speed of the serving cell is less than the preset second threshold.
  • a state may be set when the mobile terminal is off-screen, non-charging, and the speed of the mobile terminal is less than the preset first threshold and the handover speed of the serving cell is less than the preset second threshold At this time, the mobile terminal is in the first state.
  • the obtaining module 120 is configured to obtain the instruction to be reported and the priority of the instruction to be reported to the application processor after determining that the mobile terminal is in the preset first state.
  • corresponding priorities are set in advance for different types of instructions to be reported, that is, the correspondence between various types of instructions to be reported and priorities is set.
  • the priority of the instruction to be reported can be determined according to the type of the instruction to be reported. Among them, for the instruction to be reported that needs to be processed as soon as possible, the corresponding priority is usually higher, and for the instruction to be reported that does not need to be processed as soon as possible, the corresponding priority is usually lower.
  • the instruction reporting module 130 is configured to report the instruction to be reported to the application processor when the priority of the instruction to be reported is greater than a preset priority, so as to wake up the application processor.
  • the obtained instruction to be reported includes the instruction to be reported whose priority is greater than the preset priority, it may be considered that the reporting condition is satisfied, so that the instruction to be reported is reported to the application processor.
  • the mobile terminal each time the mobile terminal obtains the instruction to be reported, it immediately reports the instruction to be reported to the application processor, so that the application processor frequently obtains the instruction and is frequently awakened.
  • the instruction to be reported is reported to the application processor only when the instruction to be reported with a priority greater than the preset priority is obtained, thereby reducing the number of instructions to the application processor and further reducing The number of times the application processor obtains instructions can prevent the application processor from being woken up frequently, and solves the problems in the prior art.
  • the embodiment of the present application reduces the number of times the application processor is woken up, compared with the prior art, the time during which the application processor is in the sleep state is extended, and therefore, the use time of the mobile terminal can also be extended.
  • the instruction reporting module is further used to obtain the instruction to be reported to the application processor and the priority of the instruction to be reported After the level, if the difference between the current time and the time when the instruction to be reported to the application processor was last reported is greater than a third threshold, the instruction to be reported is reported to the application processor to wake up the application processor.
  • the operation of obtaining the instruction to be reported is disclosed.
  • the instruction to be reported can be obtained in various ways.
  • the instruction to be reported is obtained according to the time update instruction.
  • the serving cell of the mobile terminal often transmits a time update instruction to the mobile terminal, and the time update instruction is loaded with time so that the mobile terminal can update its own time according to the time.
  • the serving cell transmits a time update instruction to the mobile terminal.
  • the acquisition module includes:
  • An instruction receiving unit configured to receive at least one time update instruction, and record the time of receiving the time update instruction after each time the time update instruction is received;
  • a time difference obtaining unit configured to obtain a time difference between the current time and the reception time of a target time update instruction when the mobile terminal meets a preset trigger condition, the target time update instruction being the time when the reception time is closest to the current time An update instruction, when the mobile terminal lights up and / or charges, the mobile terminal meets the preset trigger condition;
  • the time reporting instruction acquiring unit is configured to acquire the sum of the time difference and the time included in the target time update instruction, and generate a time reporting instruction including the sum, the time reporting instruction is the instruction to be reported.
  • each time the mobile terminal receives the time update instruction it reports the time update instruction to the application processor to wake up the application processor and enable the application processor to perform the time update operation.
  • the time update instruction is obtained, it is not immediately reported to the application processor, but the time update instruction is cached.
  • the Time update instruction When the mobile terminal meets the preset trigger condition, the Time update instruction, generate the corresponding time report instruction, and use the time report instruction as the instruction to be reported. Therefore, compared with the prior art, the solution disclosed in the embodiments of the present application reduces the number of times and the number of instructions reported to the application processor, and further reduces the number of times the application processor is woken up, thereby avoiding the application processor from being Wake up frequently.
  • the acquisition module includes:
  • a first measurement unit configured to measure the channel quality of the first target cell after receiving the measurement request issued by the serving cell, and report the channel quality of the first target cell to the serving cell, the first target cell It is a cell whose cell priority is not lower than the preset first priority threshold;
  • the first instruction obtaining unit is configured to obtain a cell switching instruction generated by the serving cell based on a preset cell switching rule and the channel quality of the first target cell, and the cell switching instruction is the command to be reported.
  • the mobile terminal after receiving the measurement request issued by the serving cell, the mobile terminal measures the channel quality of each cell.
  • the channel quality of the cell whose cell priority is not lower than the preset first priority threshold is measured, thereby reducing the workload of the mobile terminal in measuring the channel quality and improving the measurement efficiency of the channel quality .
  • the cell switching instruction after the cell switching instruction is obtained, the cell switching instruction may be cached, and after a period of time, the command to be reported is determined according to the cached cell switching instruction.
  • the acquisition module includes:
  • a second measurement unit configured to measure the channel quality of the first target cell after receiving the measurement request issued by the serving cell, and report the channel quality of the first target cell to the serving cell, the first target cell It is a cell whose cell priority is not lower than the preset first priority threshold;
  • a first instruction cache unit configured to obtain a cell switching instruction generated by the serving cell based on a preset cell switching rule and the channel quality of the first target cell, and cache the cell switching instruction;
  • the first buffer time determining unit is configured to determine the buffer time of the cell switching instruction based on the duration of the mobile terminal in the first state and the following formula:
  • T1 (t0) represents the buffer time of the cell switching instruction
  • t0 represents the length of time that the mobile terminal is in the first state
  • T1, T2, T11 and t1 represent the preset length of time
  • is the preset The value of is a positive number less than 1;
  • the first instruction determining unit is configured to determine, after reaching the buffer time, at least one buffered cell switching instruction in the buffer, and the latest cell switching instruction is the to-be-reported instruction.
  • the solution disclosed in the embodiments of the present application can reduce the number of times of reporting the cell switching instruction, thereby reducing the number of times the application processor is woken up and avoiding frequent wakeup of the application processor.
  • the acquisition module includes:
  • the third measurement unit is configured to measure the channel quality of the second target cell when it is detected that the mobile terminal is in a network idle state, the second target cell being a cell with a priority not lower than a preset second priority threshold Of the community
  • the first instruction generating unit is configured to generate a cell reselection instruction when it is determined that cell reselection is required based on the channel quality of the second target cell and a preset cell reselection rule, and the cell reselection instruction is Describe the report instruction.
  • the channel quality of each cell is measured.
  • only the channel quality of the cell whose cell priority is not lower than the preset second priority threshold is measured, thereby reducing the workload of measuring channel quality and improving the measurement efficiency of channel quality.
  • the cell reselection instruction may be cached, and after a period of time, the command to be reported is determined according to the cached cell reselection instruction.
  • the acquisition module includes:
  • a fourth measurement unit configured to measure the channel quality of the second target cell when it is detected that the mobile terminal is in a network idle state, the second target cell being a cell with a priority not lower than a preset second priority threshold Of the community
  • a second instruction generating unit configured to generate a cell reselection instruction when it is determined that cell reselection is required based on the channel quality of the second target cell and preset cell reselection rules
  • the second buffer time determining unit is configured to determine the buffer time of the cell reselection instruction based on the duration of the mobile terminal in the first state and the following formula:
  • T2 (t0) represents the buffer time of the cell reselection instruction
  • t0 represents the length of time that the mobile terminal is in the first state
  • T3, T4, T12 and t2 represent the preset length of time
  • is the The set constant is a positive number less than 1;
  • the second instruction determination unit is configured to determine, after reaching the cache time, at least one cache cell reselection instruction that the cell switching instruction with the latest acquisition time is the instruction to be reported.
  • the solution disclosed in the embodiments of the present application can reduce the number of times of reporting the cell reselection instruction, thereby reducing the number of times the application processor is woken up and avoiding frequent wakeup of the application processor.
  • the instruction to be reported is an instruction whose number of acquisitions in the target time period is greater than a preset number of times. If the number of acquisitions in the target time period is greater than the preset number, it indicates that the instruction is obtained more frequently. In this case, in order to avoid frequent wakeup of the application processor, it can be used as an instruction to be reported.
  • the third threshold can be obtained in various ways.
  • the third threshold can be preset as a fixed time value.
  • the third threshold may also be obtained according to the length of time the mobile terminal is in the first state.
  • the embodiments of the present application further include:
  • the third threshold determination module
  • the third threshold determination module is used to determine the third threshold based on the duration of the mobile terminal in the first state and the following formula after the acquiring the instruction to be reported to the application processor:
  • T3 (t0) represents the third threshold
  • t0 represents the length of time the mobile terminal is in the first state
  • T5 , T6, T13 and t3 respectively represent the preset time length
  • is a preset constant
  • Its value is a positive number less than 1.
  • a schematic diagram of the correspondence between the third threshold and the duration when the mobile terminal is in the first state may be as shown in FIG. 11. It can be seen from the above formula and FIG. 11 that in the embodiment of the present application, the longer the duration of the mobile terminal in the first state, the larger the third threshold, and accordingly, the fewer the number of times the instruction is reported to the application processor, thereby further Reduce the number of times the application processor is woken up.
  • the instruction reporting module includes:
  • the time comparison unit is used to compare the acquisition time of each instruction to be reported of the same type when there are more than two instructions of the same type to be reported;
  • the instruction reporting unit is configured to report to the application processor the instruction to be reported with the latest acquisition time among the instructions to be reported of the same type.
  • the instruction to be reported is divided according to the type of the instruction to be reported, the instructions of the same type to be reported are divided into the same group, and the latest in each group is obtained Instructions to be reported, in this case, only various types of instructions to be reported need to be reported to the application processor, and the instruction to be reported obtained at the latest can reduce the number of instructions reported to the application processor. In this case, after being awakened, the application processor only needs to execute the latest instruction to be reported in each group of instructions to be reported, which reduces the operations performed by the application processor.
  • a mobile terminal may include a mobile phone, a phone watch, and other terminal devices capable of performing communication services.
  • the mobile terminal includes: a memory, a processor 200, and a computer program stored on the memory and executable on the processor.
  • the transceiver 100 may be included, and the memory may include a random access memory 300, a read-only memory 400, and a bus 500.
  • the processor 200 is respectively coupled to the receiver 100, the random access memory 300, and the read-only memory 400 through the bus 500.
  • the processor executes the computer program, it implements the mobile terminal disclosed in the above embodiments of the present application. Part or all of the steps of the application processor wake-up method, that is, the implementation of the application processor wake-up method shown in FIGS. 1, 3 to 4, 6 to 7, and 9 to 10 as shown in FIGS. 9 to 10 Or all steps.
  • the processor 200 is a module with processing functions other than an application processor in the mobile terminal, and the module can transmit instructions to the application processor.
  • the processor 200 may be a modem connected to the application processor.
  • the basic input and output system solidified in the memory or the bootloader boot system in the embedded system is used to start the system and guide the mobile terminal into a normal operating state.
  • the application program and the operating system are run in the memory, so that the processor performs the following operations:
  • the mobile terminal Detect whether the mobile terminal is in a preset first state, where the first state is any one or more of the following states: screen off, non-charging, speed less than a preset first threshold, and service The state where the handover speed of the cell is less than the preset second threshold;
  • the instruction to be reported is reported to the application processor to wake up the application processor.
  • the mobile terminal of the embodiment of the present invention may correspond to the mobile terminals in the embodiments corresponding to the above-mentioned FIG. 1, FIG. 3 to FIG. 4, FIG. 6 to FIG. 7, and FIG. 9 to FIG. 1.
  • I will not repeat them here.
  • the storage medium in any device can be a magnetic disk, optical disk, read-only memory (English: read-only memory, referred to as: ROM) or random storage memory (English: random access memory, referred to as RAM) .
  • the processor may be a module with processing functions other than the application processor in the mobile terminal, and the module can transmit instructions to the application processor.
  • the processor 200 may be a modem connected to the application processor.
  • the processor may further include a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
  • the PLD may be a complex programmable logic device (complex programmable logic device (CPLD), a field programmable logic gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL), or any combination thereof.
  • the memory may include volatile memory (volatile memory), such as random-access memory (RAM); the memory may also include non-volatile memory (non-volatile memory), such as read-only memory (read-only) memory, ROM), flash memory (flash memory), hard disk (HDD) or solid-state drive (SSD); the memory may also include a combination of the above types of memory.
  • volatile memory volatile memory
  • non-volatile memory non-volatile memory
  • read-only memory read-only memory
  • ROM read-only memory
  • flash memory flash memory
  • HDD hard disk
  • SSD solid-state drive
  • the memory may also include a combination of the above types of memory.
  • this embodiment may also be based on a network device implemented by a general physical server combined with network function virtualization (NFV) technology, which is a virtual network device (eg, virtual host, virtual router) Or virtual switch).
  • the virtual network device may be a virtual machine (English: Virtual Machine, VM), and the virtual machine is deployed on a hardware device (for example, a physical server).
  • a virtual machine refers to a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment.
  • Embodiments of the present invention relate to a network selection method applied to a mobile terminal.
  • the mobile terminal may include a mobile phone, a telephone watch, and other terminal devices capable of performing communication services.
  • FIG. 14 is a block diagram of a partial structure of a mobile phone 1400 related to an embodiment of the present invention.
  • the mobile phone 1400 includes an RF (Radio Frequency) circuit 1410, a memory 1420, other input devices 1430, a display 1440, a sensor 1450, an audio circuit 1460, an I / O subsystem 1470, a processor 1480, and a power supply 1490 and other components.
  • RF Radio Frequency
  • the structure of the mobile phone shown in FIG. 14 does not constitute a limitation on the mobile phone, and may include more or fewer components than the illustration, or combine certain components, or split certain components, or Different parts arrangement.
  • the display screen 1440 belongs to a user interface (UI, User Interface), and the mobile phone 1400 may include a user interface that is less than illustrated or less.
  • UI User Interface
  • the RF circuit 1410 can be used to receive and send signals during the sending and receiving of information or during a call.
  • the downstream information of the base station can be received and processed by the processor 1480; in addition, the designed uplink data can also be sent to the base station.
  • RF circuits include but are not limited to antennas, at least one amplifier, transceiver, coupler, LNA (Low Noise Amplifier, low noise amplifier), duplexer, and so on.
  • the RF circuit 1410 can also communicate with the network and other devices through wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access (Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (Wideband Code Multiple Division Access, WCDMA), (Long Term Evolution Evolution, LTE), email, short message service (Short Messaging Service, SMS), etc.
  • GSM Global System of Mobile
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution Evolution
  • SMS Short Messaging Service
  • the memory 1420 may be used to store software programs and modules.
  • the processor 1480 executes various functional applications and data processing of the mobile phone 1400 by running the software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required by at least one function (such as a sound playback function, an image playback function, etc.), etc .; the storage data area may store Data created according to the use of the mobile phone 1400 (such as audio data, phone book, etc.), etc.
  • the memory 1420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • Other input devices 1430 may be used to receive inputted numeric or character information, and generate key signal inputs related to user settings and function control of the mobile phone 1400.
  • other input devices 1430 may include but are not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and light mice (light mice are touch sensitive that do not display visual output Surface, or an extension of a touch-sensitive surface formed by a touch screen, etc.).
  • the other input device 1430 is connected to the other input device controller 1471 of the I / O subsystem 1470, and performs signal interaction with the processor 1480 under the control of the other device input controller 1471.
  • the display screen 1440 can be used to display information input by the user or provided to the user, and various menus of the mobile phone 1400, and can also accept user input.
  • the specific display 1440 may include a display panel 1441 and a touch panel 1442.
  • the display panel 1441 can be configured in the form of an LCD (Liquid Crystal), an OLED (Organic Light-Emitting Diode, organic light emitting diode), etc. to configure the display panel 1441.
  • the touch panel 1442 also known as a touch screen, touch-sensitive screen, etc., can collect user contact or non-contact operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.
  • the touch panel 1442 may include a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation and posture, and detects the signal brought by the touch operation, and transmits the signal to the touch controller;
  • the touch controller receives the touch information from the touch detection device and converts it into a processor capable of The processed information is sent to the processor 1480, and can receive the command sent by the processor 1480 and execute it.
  • the touch panel 1442 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves, or the touch panel 1442 may be implemented using any technology developed in the future.
  • the touch panel 1442 can cover the display panel 1441, and the user can display on the display panel 1441 according to the content displayed by the display panel 1441 (the display content includes but is not limited to a soft keyboard, a virtual mouse, a virtual key, an icon, etc.) Operate on or near the covered touch panel 1442. After detecting the operation on or near the touch panel 1442, the touch panel 1442 transmits it to the processor 1480 through the I / O subsystem 1470 to determine the user input.
  • the input provides a corresponding visual output on the display panel 1441 through the I / O subsystem 1470.
  • the touch panel 1442 and the display panel 1441 are two separate components to realize the input and input functions of the mobile phone 1400, in some embodiments, the touch panel 1442 and the display panel 1441 may be integrated And realize the input and output functions of the mobile phone 1400.
  • the mobile phone 1400 may further include at least one sensor 1450, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1441 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1441 when the mobile phone 1400 moves to the ear / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when at rest, and can be used to identify mobile phone gesture applications (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.
  • other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. can be configured here. Repeat again.
  • the audio circuit 1460, the speaker 1461, and the microphone 1462 can provide an audio interface between the user and the mobile phone 1400.
  • the audio circuit 1460 can transmit the received audio data converted signal to the speaker 1461, which is converted into a sound signal output by the speaker 1461; on the other hand, the microphone 1462 converts the collected sound signal into a signal, which is received by the audio circuit 1460 Convert to audio data, and then output the audio data to the RF circuit 1408 to send to, for example, another mobile phone, or output the audio data to the memory 1420 for further processing.
  • the I / O subsystem 1470 is used to control input and output external devices, and may include other device input controllers 1471, sensor controllers 1472, and display controllers 1473.
  • one or more other input control device controllers 1471 receive signals from other input devices 1430 and / or send signals to other input devices 1430, which may include physical buttons (press buttons, rocker buttons, etc.) , Dial, slide switch, joystick, click wheel, light mouse (light mouse is a touch-sensitive surface that does not display visual output, or an extension of a touch-sensitive surface formed by a touch screen). It is worth noting that the other input control device controller 1471 can be connected to any one or more of the above devices.
  • the display controller 1473 in the I / O subsystem 1470 receives signals from the display screen 1440 and / or sends signals to the display screen 1440. After the display screen 1440 detects the user input, the display controller 1473 converts the detected user input into interaction with the user interface object displayed on the display screen 1440, that is, realizes human-computer interaction.
  • the sensor controller 1472 may receive signals from one or more sensors 1450 and / or send signals to one or more sensors 1450.
  • the processor 1480 is the control center of the mobile phone 1400, and uses various interfaces and lines to connect the various parts of the entire mobile phone, by running or executing the software programs and / or modules stored in the memory 1420, and calling the data stored in the memory 1420, Perform various functions and process data of the mobile phone 1400, so as to perform overall monitoring of the mobile phone.
  • the processor 1480 may include one or more processing units; preferably, the processor 1480 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, and application programs, etc.
  • the modem processor mainly handles wireless communication. It can be understood that, the foregoing modem processor may not be integrated into the processor 1480.
  • the modem processor can implement the implementations corresponding to FIG. 1, FIG. 3 to FIG. 4, FIG. 6 to FIG. 7, and FIG. 9 to FIG. 10.
  • the mobile phone 1400 further includes a power supply 1490 (such as a battery) that supplies power to various components.
  • a power supply 1490 (such as a battery) that supplies power to various components.
  • the power supply can be logically connected to the processor 1480 through the power management system, so as to realize functions such as charging, discharging, and power consumption management through the power management system.
  • the mobile phone 1400 may further include a camera, a Bluetooth module, etc., which will not be repeated here.
  • an embodiment of the present application further provides a computer-readable medium, where the computer-readable medium includes instructions, and when the computer-readable medium runs on a computer, the computer implementation includes FIGS. To FIG. 4, FIG. 6 to FIG. 7, and FIG. 9 to FIG. 10 provide some or all steps of the application processor wake-up method applied to the mobile terminal.
  • the storage medium in any device can be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, abbreviation: ROM) or a random storage memory (English: random access memory, abbreviation: RAM), etc.
  • the various illustrative logic units and circuits described in the embodiments of the present application may be implemented by a general-purpose processor, a digital signal processor, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices. Discrete gate or transistor logic, discrete hardware components, or any combination of the above are designed to implement or operate the described functions.
  • the general-purpose processor may be a microprocessor, and optionally, the general-purpose processor may also be any conventional processor, controller, microcontroller, or state machine.
  • the processor may also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, multiple microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration achieve.
  • the steps of the method or algorithm described in the embodiments of the present application may be directly embedded in hardware, a software unit executed by a processor, or a combination of both.
  • the software unit may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium in the art.
  • the storage medium may be connected to the processor, so that the processor can read information from the storage medium and can write information to the storage medium.
  • the storage medium may also be integrated into the processor.
  • the processor and the storage medium may be provided in the ASIC, and the ASIC may be provided in the UE.
  • the processor and the storage medium may also be provided in different components in the UE.
  • the size of the sequence number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not be used for the embodiments of this application.
  • the implementation process constitutes no limitation.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be from a website site, computer, server or data center Transmit to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device including a server, a data center, and the like integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, Solid State Disk (SSD)) or the like.
  • a magnetic medium for example, a floppy disk, a hard disk, a magnetic tape
  • an optical medium for example, a DVD
  • a semiconductor medium for example, Solid State Disk (SSD)
  • the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform.
  • the technical solutions in the embodiments of the present invention can be embodied in the form of software products in essence or part of contributions to the existing technology, and the computer software products can be stored in a storage medium, such as ROM / RAM , Magnetic disks, optical disks, etc., including several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or some parts of the embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

Disclosed in embodiments of the present application are an application processor awakening method and device applied to a mobile terminal. The method comprises: first detecting whether the mobile terminal is in a preset first state; when it is determined that the mobile terminal is in the preset first state, obtaining an instruction to be reported that needs to be reported to an application processor and the priority of the instruction to be reported; and if the priority of the instruction to be reported is greater than a preset priority, reporting the instruction to be reported to the application processor to awaken the application processor, so that the application processor executes a corresponding operation. By means of the solution of the embodiments of the present application, when an instruction to be reported having a priority greater than a preset priority is obtained, the instruction to be reported is reported to the application processor; thus, the number of times instructions are reported to the application processor is reduced, so that the number of times the application processor obtains instructions is reduced, thereby preventing the application processor from being frequently awakened, and solving the problem existing in the prior art.

Description

一种应用于移动终端的应用处理器唤醒方法及装置Application processor wake-up method and device applied to mobile terminal
本申请要求在2018年11月1日提交中国国家知识产权局、申请号为201811296192.X、发明名称为“一种应用于移动终端的应用处理器唤醒方法”的中国专利申请的优先权,和2018年12月17日提交中国国家知识产权局、申请号为201811545062.5、发明名称为“一种应用于移动终端的应用处理器唤醒方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application submitted to the State Intellectual Property Office of China on November 1, 2018 with the application number 201811296192.X and the invention titled "A Wake Method for Application Processors Applied to Mobile Terminals", and The priority of the Chinese patent application submitted to the State Intellectual Property Office of China on December 17, 2018 with the application number 201811545062.5 and the invention titled "A method and device for waking up the application processor of mobile terminals", the entire content of which is cited by reference Incorporated in this application.
技术领域Technical field
本申请涉及通信技术领域,特别是涉及一种应用于移动终端的应用处理器唤醒方法及装置。The present application relates to the field of communication technology, and in particular, to an application processor wake-up method and device applied to a mobile terminal.
背景技术Background technique
随着通信技术的发展,移动终端的功能日益丰富,在用户的日常生活和工作中起着重要的作用。With the development of communication technology, the functions of mobile terminals are becoming more and more abundant, playing an important role in the daily life and work of users.
为了延长移动终端的使用时间,当较长时间未接收到用户的操作时,移动终端内设置的应用处理器通常进入休眠状态。与唤醒状态的应用处理器相比,进入休眠状态的应用处理器耗电量较低,从而能够减少移动终端的耗电量,延长移动终端的使用时间。In order to extend the usage time of the mobile terminal, when the user's operation is not received for a long time, the application processor provided in the mobile terminal usually enters the sleep state. Compared with the application processor in the awake state, the power consumption of the application processor in the sleep state is lower, which can reduce the power consumption of the mobile terminal and prolong the use time of the mobile terminal.
但是,发明人在本申请的研究过程中发现,应用处理器在进入休眠状态之后,移动终端中设置的其他器件(例如调制解调器)有时仍会获取各种指令,并将指令传输至应用处理器,以使应用处理器频繁获取指令,并执行该指令所对应的操作,从而导致休眠状态的应用处理器被频繁唤醒,再次进入高耗电的状态。例如,若发生网络震荡,服务小区会频繁向移动终端发送小区切换指令,而移动终端每次在接收到小区切换指令后,都需要唤醒应用处理器,以使应用处理器根据该小区切换指令执行小区切换操作,从而导致应用处理器被频繁唤醒。However, the inventor found in the research process of this application that after the application processor enters the sleep state, other devices (such as a modem) provided in the mobile terminal sometimes still obtain various instructions and transmit the instructions to the application processor, In this way, the application processor frequently obtains instructions and executes the operations corresponding to the instructions, thereby causing the application processor in the dormant state to be frequently awakened and enter the state of high power consumption again. For example, in the event of a network shock, the serving cell frequently sends cell handover instructions to the mobile terminal, and each time the mobile terminal receives a cell handover instruction, it needs to wake up the application processor so that the application processor executes according to the cell handover instruction The cell switching operation causes the application processor to be woken up frequently.
发明内容Summary of the invention
为了解决现有技术中,移动终端中处于休眠状态的应用处理器由于频繁获取指令,导致被频繁唤醒的问题,本申请实施例公开一种应用于移动终端的应用处理器唤醒方法及装置。In order to solve the problem that the application processor in the mobile terminal in the sleep state in the prior art is frequently awakened due to frequent acquisition of instructions, an embodiment of the present application discloses a method and device for awakening an application processor applied to a mobile terminal.
第一方面,本申请实施例提供一种应用于移动终端的应用处理器唤醒方法,包括:In a first aspect, an embodiment of the present application provides an application processor wake-up method applied to a mobile terminal, including:
检测移动终端是否处于预设的第一状态,所述第一状态为所述移动终端处于以下状态中的任一项或者多项:灭屏、非充电、速度小于预设的第一阈值以及服务小区的切换速度小于预设的第二阈值的状态;Detect whether the mobile terminal is in a preset first state, where the first state is any one or more of the following states: screen off, non-charging, speed less than a preset first threshold, and service The state where the handover speed of the cell is less than the preset second threshold;
在确定所述移动终端处于所述预设的第一状态之后,获取需要上报至应用处理器的待上报指令以及所述待上报指令的优先级;After determining that the mobile terminal is in the preset first state, obtain the instruction to be reported and the priority of the instruction to be reported to the application processor;
当所述待上报指令的优先级大于预设优先级时,向所述应用处理器上报所述待上报指令,以唤醒所述应用处理器。When the priority of the instruction to be reported is greater than the preset priority, the instruction to be reported is reported to the application processor to wake up the application processor.
现有技术中,移动终端每次在获取待上报指令后,都会立即将待上报指令上报至应用处理器,使应用处理器频繁获取到指令,从而被频繁唤醒。而通过本申请实施例的方案,当获取到优先级大于预设优先级的待上报指令时,才向应用处理器上报待上报指令,从而减少了向应用处理器上报指令的次数,进一步减少了应用处理器获取指令的次数,能够避免应用处理器被频繁唤醒,解决了现有技术中所存在的问题。In the prior art, each time the mobile terminal obtains the instruction to be reported, it immediately reports the instruction to be reported to the application processor, so that the application processor frequently obtains the instruction and is frequently awakened. According to the solution of the embodiment of the present application, the instruction to be reported is reported to the application processor only when the instruction to be reported with a priority greater than the preset priority is obtained, thereby reducing the number of instructions to the application processor and further reducing The number of times the application processor obtains instructions can prevent the application processor from being woken up frequently, and solves the problems in the prior art.
进一步的,由于本申请实施例减少了应用处理器被唤醒的次数,相对于现有技术来说,延长了应用处理器处于休眠状态的时间,因此,还能够延长移动终端的使用时长。Further, because the embodiment of the present application reduces the number of times the application processor is woken up, compared with the prior art, the time during which the application processor is in the sleep state is extended, and therefore, the use time of the mobile terminal can also be extended.
结合第一方面,在第一方面第一种可能的实现方式中,在获取需要上报至应用处理器的待上报指令以及所述待上报指令的优先级之后,还包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, after acquiring the instruction to be reported to the application processor and the priority of the instruction to be reported, the method further includes:
如果当前时间与上一次向所述应用处理器上报待上报指令的时间之差大于第三阈值,向所述应用处理器上报所述待上报指令,以唤醒所述应用处理器。If the difference between the current time and the time when the instruction to be reported to the application processor was last reported is greater than a third threshold, the instruction to be reported is reported to the application processor to wake up the application processor.
结合第一方面,在第一方面第二种可能的实现方式中,所述获取需要上报至应用处理器的待上报指令,包括:With reference to the first aspect, in a second possible implementation manner of the first aspect, the acquiring the instruction to be reported that needs to be reported to the application processor includes:
接收至少一条时间更新指令,并在每次接收到所述时间更新指令之后,记录所述时间更新指令的接收时间;Receiving at least one time update instruction, and recording the time of receiving the time update instruction after each time the time update instruction is received;
当所述移动终端满足预设的触发条件时,获取当前时间与目标时间更新指令的接收时间之间的时间差,所述目标时间更新指令为接收时间最接近当前时间的时间更新指令,当所述移动终端亮屏和/或充电时,所述移动终端满足所述预设的触发条件;When the mobile terminal satisfies the preset trigger condition, the time difference between the current time and the reception time of the target time update instruction is obtained. The target time update instruction is the time update instruction whose reception time is closest to the current time. When the mobile terminal lights up and / or charges, the mobile terminal meets the preset trigger condition;
获取所述时间差与所述目标时间更新指令中包含的时间的和,并生成包含所述和的时间上报指令,所述时间上报指令为所述待上报指令。Obtaining a sum of the time difference and the time included in the target time update instruction, and generating a time reporting instruction including the sum, the time reporting instruction is the instruction to be reported.
在现有技术中,移动终端每次在接收到时间更新指令之后,就将时间更新指令上报至应用处理器,以唤醒应用处理器,使应用处理器执行时间更新的操作。In the prior art, each time the mobile terminal receives the time update instruction, it reports the time update instruction to the application processor to wake up the application processor and enable the application processor to perform the time update operation.
而本申请实施例公开的方案,在获取时间更新指令之后,并未立即上报至应用处理器,而是缓存该时间更新指令,当移动终端满足预设的触发条件时,基于最晚接收到的时间更新指令,生成相应的时间上报指令,将时间上报指令作为待上报指令。因此,相对于现有技术来说,本申请实施例公开的方案减少了向应用处理器上报指令的次数和上报指令的数量,进一步减少了应用处理器被唤醒的次数,从而避免应用处理器被频繁唤醒。The solution disclosed in the embodiment of the present application does not immediately report to the application processor after acquiring the time update instruction, but caches the time update instruction. When the mobile terminal meets the preset trigger condition, based on the latest received The time update instruction generates a corresponding time report instruction, and uses the time report instruction as the instruction to be reported. Therefore, compared with the prior art, the solution disclosed in the embodiments of the present application reduces the number of times and the number of instructions reported to the application processor, and further reduces the number of times the application processor is woken up, thereby avoiding the application processor from being Wake up frequently.
结合第一方面,在第一方面第三种可能的实现方式中,所述获取需要上报至应用处理器的待上报指令包括:With reference to the first aspect, in a third possible implementation manner of the first aspect, the acquiring the instruction to be reported that needs to be reported to the application processor includes:
在接收服务小区下发的测量请求之后,测量第一目标小区的信道质量,并向所述服务小区上报所述第一目标小区的信道质量,所述第一目标小区为小区优先级不低于预设的第一优先级门限的小区;After receiving the measurement request issued by the serving cell, measure the channel quality of the first target cell and report the channel quality of the first target cell to the serving cell, where the priority of the first target cell is not less than A cell with a preset first priority threshold;
获取所述服务小区基于预设的小区切换规则和所述第一目标小区的信道质量生成的小区切换指令,所述小区切换指令为所述待上报指令。Obtain a cell switching instruction generated by the serving cell based on a preset cell switching rule and the channel quality of the first target cell, and the cell switching instruction is the command to be reported.
在现有技术中,在接收到服务小区下发的测量请求之后,移动终端会测量各个小区的信道质量。而本实施例中,只测量小区优先级不低于预设的第一优先级门限的小区的信道质量,从而减少了移动终端在测量信道质量时的工作量,提高了信道质量的测量效率。In the prior art, after receiving the measurement request issued by the serving cell, the mobile terminal measures the channel quality of each cell. In this embodiment, only the channel quality of the cell whose cell priority is not lower than the preset first priority threshold is measured, thereby reducing the workload of the mobile terminal in measuring the channel quality and improving the measurement efficiency of the channel quality.
结合第一方面,在第一方面第四种可能的实现方式中,所述获取需要上报至应用处理器的待上报指令包括:With reference to the first aspect, in a fourth possible implementation manner of the first aspect, the acquiring the instruction to be reported that needs to be reported to the application processor includes:
在接收服务小区下发的测量请求之后,测量第一目标小区的信道质量,并向所述服务小区上报所述第一目标小区的信道质量,所述第一目标小区为小区优先级不低于预设的第一优先级门限的小区;After receiving the measurement request issued by the serving cell, measure the channel quality of the first target cell and report the channel quality of the first target cell to the serving cell, where the priority of the first target cell is not less than A cell with a preset first priority threshold;
获取所述服务小区基于预设的小区切换规则和所述第一目标小区的信道质量生成的小区切换指令,并缓存所述小区切换指令;Acquiring a cell switching instruction generated by the serving cell based on a preset cell switching rule and the channel quality of the first target cell, and buffering the cell switching instruction;
基于所述移动终端处于所述第一状态的时长和以下公式,确定所述小区切换指令的缓存时间:The buffer time of the cell switching instruction is determined based on the duration of the mobile terminal in the first state and the following formula:
Figure PCTCN2019115020-appb-000001
Figure PCTCN2019115020-appb-000001
其中,T1(t0)表示所述小区切换指令的缓存时间,t0表示所述移动终端处于所述第一状态的时长,T1、T2、T11和t1分别表示预设的时间长度,α为预设的常数,其取值为小于1的正数;Where T1 (t0) represents the buffer time of the cell switching instruction, t0 represents the length of time that the mobile terminal is in the first state, T1, T2, T11 and t1 represent the preset length of time, and α is the preset The value of is a positive number less than 1;
在到达所述缓存时间之后,确定缓存的至少一条小区切换指令中,获取时间最晚的小区切换指令为所述待上报指令。After the buffer time is reached, it is determined that, among the at least one buffered cell switching instruction, the cell switching instruction with the latest acquisition time is the command to be reported.
现有技术中,在接收到小区切换指令之后,会立刻上报至应用处理器。而本申请实施例中,在获取到小区切换指令之后,缓存所述小区切换指令,并在缓存时间之后,将缓存的各个小区切换指令中,获取时间最晚的小区切换指令作为待上报指令。因此,与现有技术相比,本申请实施例公开的方案能够减少小区切换指令的上报次数,从而减少应用处理器被唤醒的次数,避免应用处理器被频繁唤醒。In the prior art, after receiving the cell switching instruction, it will be reported to the application processor immediately. In the embodiment of the present application, after the cell switching instruction is obtained, the cell switching instruction is cached, and after the buffering time, among the cached cell switching instructions, the latest cell switching instruction is acquired as the command to be reported. Therefore, compared with the prior art, the solution disclosed in the embodiments of the present application can reduce the number of times of reporting the cell switching instruction, thereby reducing the number of times the application processor is woken up and avoiding frequent wakeup of the application processor.
结合第一方面,在第一方面第五种可能的实现方式中,所述获取需要上报至应用处理器的待上报指令包括:With reference to the first aspect, in a fifth possible implementation manner of the first aspect, the acquiring the instruction to be reported that needs to be reported to the application processor includes:
当检测到所述移动终端处于网络空闲状态时,测量第二目标小区的信道质量,所述第二目标小区为小区优先级不低于预设的第二优先级门限的小区;When detecting that the mobile terminal is in a network idle state, measuring the channel quality of a second target cell, the second target cell being a cell whose cell priority is not lower than a preset second priority threshold;
当基于所述第二目标小区的信道质量和预设的小区重选规则,确定需要进行小区重选时,生成小区重选指令,所述小区重选指令为所述待上报指令。When it is determined that cell reselection needs to be performed based on the channel quality of the second target cell and preset cell reselection rules, a cell reselection instruction is generated, and the cell reselection instruction is the instruction to be reported.
在现有技术中,当检测到所述移动终端处于网络空闲状态时,会测量各个小区的信道质量。而本实施例中,只测量小区优先级不低于预设的第二优先级门限的小区的信道质量,从而减少了测量信道质量的工作量,提高了信道质量的测量效率。结合第一方面,在第一方面第六种可能的实现方式中,所述获取需要上报至应用处理器的待上报指令包括:In the prior art, when it is detected that the mobile terminal is in a network idle state, the channel quality of each cell is measured. In this embodiment, only the channel quality of the cell whose cell priority is not lower than the preset second priority threshold is measured, thereby reducing the workload of measuring channel quality and improving the measurement efficiency of channel quality. With reference to the first aspect, in a sixth possible implementation manner of the first aspect, the acquiring the instruction to be reported that needs to be reported to the application processor includes:
当检测到所述移动终端处于网络空闲状态时,测量第二目标小区的信道质量,所述第二目标小区为小区优先级不低于预设的第二优先级门限的小区;When detecting that the mobile terminal is in a network idle state, measuring the channel quality of a second target cell, the second target cell being a cell whose cell priority is not lower than a preset second priority threshold;
当基于所述第二目标小区的信道质量和预设的小区重选规则,确定需要进行小区重选时,生成小区重选指令;When it is determined that cell reselection is required based on the channel quality of the second target cell and preset cell reselection rules, a cell reselection instruction is generated;
基于所述移动终端处于所述第一状态的时长和以下公式,确定所述小区重选指令的缓存时间:The buffer time of the cell reselection instruction is determined based on the duration of the mobile terminal in the first state and the following formula:
Figure PCTCN2019115020-appb-000002
Figure PCTCN2019115020-appb-000002
其中,T2(t0)表示所述小区重选指令的缓存时间,t0表示所述移动终端处于所述第一状态的时长,T3、T4、T12和t2分别表示预设的时间长度,β为预设的常数,其取值为小于1的正数;Where T2 (t0) represents the buffer time of the cell reselection instruction, t0 represents the length of time that the mobile terminal is in the first state, T3, T4, T12 and t2 represent the preset length of time, and β is the The set constant is a positive number less than 1;
在到达所述缓存时间之后,确定缓存的至少一条小区重选指令中,获取时间最晚的小区切换指令为所述待上报指令。After the cache time is reached, it is determined that, among the at least one cell reselection instruction cached, the cell switching instruction with the latest acquisition time is the instruction to be reported.
现有技术中,在获取小区重选指令之后,会立刻上报至应用处理器。而本申请实施例中,在获取到小区重选指令之后,缓存所述小区重选指令,并在到达缓存时间之后,将缓存的各个小区重选指令中,获取时间最晚的小区重选指令作为待上报指令。因此,与现有技术相比, 本申请实施例公开的方案能够减少小区重选指令的上报次数,从而减少应用处理器被唤醒的次数,避免应用处理器被频繁唤醒。In the prior art, after obtaining the cell reselection instruction, it will be reported to the application processor immediately. However, in the embodiment of the present application, after the cell reselection instruction is obtained, the cell reselection instruction is cached, and after the cache time is reached, among the cached cell reselection instructions, the latest cell reselection instruction is obtained As an instruction to be reported. Therefore, compared with the prior art, the solution disclosed in the embodiment of the present application can reduce the number of times of reporting the cell reselection instruction, thereby reducing the number of times the application processor is woken up and avoiding frequent wakeup of the application processor.
结合第一方面,在第一方面第七种可能的实现方式中,所述待上报指令为目标时间段内的获取次数大于预设次数的指令。With reference to the first aspect, in a seventh possible implementation manner of the first aspect, the instruction to be reported is an instruction whose number of acquisitions in a target time period is greater than a preset number of times.
结合第一方面,结合第一方面第一种可能的实现方式,结合第一方面第二种可能的实现方式,结合第一方面第三种可能的实现方式,结合第一方面第四种可能的实现方式,结合第一方面第五种可能的实现方式,结合第一方面第六种可能的实现方式,结合第一方面第七种可能的实现方式,在第一方面第八种可能的实现方式中,在所述获取需要上报至应用处理器的待上报指令之后,还包括:With reference to the first aspect, with the first possible implementation of the first aspect, with the second possible implementation of the first aspect, with the third possible implementation of the first aspect, with the fourth possible implementation of the first aspect Implementation, in combination with the fifth possible implementation in the first aspect, the sixth possible implementation in the first aspect, and the seventh possible implementation in the first aspect, the eighth possible implementation in the first aspect In the following, after the acquiring the instruction to be reported that needs to be reported to the application processor, the method further includes:
基于所述移动终端处于所述第一状态的时长和以下公式,确定所述第三阈值:The third threshold is determined based on the duration of the mobile terminal in the first state and the following formula:
Figure PCTCN2019115020-appb-000003
Figure PCTCN2019115020-appb-000003
其中,T3(t0)表示所述第三阈值,t0表示所述移动终端处于所述第一状态的时长,T5 T6、T13和t3分别表示预设的时间长度,δ为预设的常数,其取值为小于1的正数。 Where T3 (t0) represents the third threshold, t0 represents the length of time that the mobile terminal is in the first state, T5 , T6, T13, and t3 respectively represent a preset time length, and δ is a preset constant Its value is a positive number less than 1.
结合第一方面,结合第一方面第一种可能的实现方式,结合第一方面第二种可能的实现方式,结合第一方面第三种可能的实现方式,结合第一方面第四种可能的实现方式,结合第一方面第五种可能的实现方式,结合第一方面第六种可能的实现方式,结合第一方面第七种可能的实现方式,结合第一方面第八种可能的实现方式,在第一方面第九种可能的实现方式中,所述向所述应用处理器上报所述待上报指令包括:With reference to the first aspect, with the first possible implementation of the first aspect, with the second possible implementation of the first aspect, with the third possible implementation of the first aspect, with the fourth possible implementation of the first aspect Implementation methods, combined with the fifth possible implementation manner of the first aspect, combined with the sixth possible implementation manner of the first aspect, combined with the seventh possible implementation manner of the first aspect, and combined with the eighth possible implementation manner of the first aspect In a ninth possible implementation manner of the first aspect, the reporting the instruction to be reported to the application processor includes:
当同一类型的待上报指令为两条以上时,比较同一类型的各条待上报指令的获取时间;When there are more than two instructions of the same type to be reported, compare the acquisition time of each instruction of the same type to be reported;
向所述应用处理器上报同一类型的各条待上报指令中获取时间最晚的待上报指令。Reporting the instruction to be reported with the latest acquisition time among each instruction to be reported of the same type to the application processor.
在向应用处理器上报所述待上报指令之前,根据待上报指令的类型对待上报指令进行划分,将同一类型的待上报指令被划分为同一组,上报每组中最晚获取到的待上报指令,这种情况下,只需向应用处理器上报各种类型的待上报指令中,最晚获取到的待上报指令,减少了向应用处理器上报的指令数量。这种情况下,应用处理器在被唤醒后,只需执行每组待上报指令中最晚获取到的待上报指令,减少了应用处理器执行的操作。Before reporting the instruction to be reported to the application processor, divide the instruction to be reported according to the type of the instruction to be reported, divide the instruction to be reported of the same type into the same group, and report the instruction to be reported obtained in each group at the latest In this case, only various types of instructions to be reported need to be reported to the application processor, and the instruction to be reported obtained at the latest can reduce the number of instructions reported to the application processor. In this case, after being awakened, the application processor only needs to execute the latest instruction to be reported in each group of instructions to be reported, which reduces the operations performed by the application processor.
第二方面,本申请实施例提供一种应用于移动终端的应用处理器唤醒装置,包括:In a second aspect, an embodiment of the present application provides an application processor wake-up device applied to a mobile terminal, including:
状态检测模块,用于检测移动终端是否处于预设的第一状态,所述第一状态为所述移动终端处于以下状态中的任一项或者多项:灭屏、非充电、速度小于预设的第一阈值以及服务小区的切换速度小于预设的第二阈值的状态;A state detection module for detecting whether the mobile terminal is in a preset first state, where the first state is any one or more of the following states: the screen is off, non-charging, and the speed is less than the preset The first threshold value of and the handover speed of the serving cell is less than the preset second threshold value;
获取模块,用于在确定所述移动终端处于所述预设的第一状态之后,获取需要上报至应用处理器的待上报指令以及所述待上报指令的优先级;An obtaining module, configured to obtain the instruction to be reported to the application processor and the priority of the instruction to be reported after determining that the mobile terminal is in the preset first state;
指令上报模块,用于当所述待上报指令的优先级大于预设优先级时,向所述应用处理器上报所述待上报指令,以唤醒所述应用处理器。The instruction reporting module is used to report the instruction to be reported to the application processor when the priority of the instruction to be reported is greater than the preset priority, so as to wake up the application processor.
结合第二方面,在第一方面第一种可能的实现方式中,所述指令上报模块还用于,在获取需要上报至应用处理器的待上报指令以及所述待上报指令的优先级之后,如果当前时间与上一次向所述应用处理器上报待上报指令的时间之差大于第三阈值,向所述应用处理器上报所述待上报指令,以唤醒所述应用处理器。With reference to the second aspect, in a first possible implementation manner of the first aspect, the instruction reporting module is further configured to, after acquiring the instruction to be reported to the application processor and the priority of the instruction to be reported, If the difference between the current time and the time when the instruction to be reported to the application processor was last reported is greater than a third threshold, the instruction to be reported is reported to the application processor to wake up the application processor.
结合第二方面,在第一方面第二种可能的实现方式中,所述获取模块包括:With reference to the second aspect, in a second possible implementation manner of the first aspect, the acquisition module includes:
指令接收单元,用于接收至少一条时间更新指令,并在每次接收到所述时间更新指令之后,记录所述时间更新指令的接收时间;An instruction receiving unit, configured to receive at least one time update instruction, and record the time of receiving the time update instruction after each time the time update instruction is received;
时间差获取单元,用于当所述移动终端满足预设的触发条件时,获取当前时间与目标时间更新指令的接收时间之间的时间差,所述目标时间更新指令为接收时间最接近当前时间的时间更新指令,当所述移动终端亮屏和/或充电时,所述移动终端满足所述预设的触发条件;A time difference obtaining unit, configured to obtain a time difference between the current time and the reception time of a target time update instruction when the mobile terminal meets a preset trigger condition, the target time update instruction being the time when the reception time is closest to the current time An update instruction, when the mobile terminal lights up and / or charges, the mobile terminal meets the preset trigger condition;
时间上报指令获取单元,用于获取所述时间差与所述目标时间更新指令中包含的时间的和,并生成包含所述和的时间上报指令,所述时间上报指令为所述待上报指令。The time reporting instruction acquiring unit is configured to acquire the sum of the time difference and the time included in the target time update instruction, and generate a time reporting instruction including the sum, the time reporting instruction is the instruction to be reported.
结合第二方面,在第一方面第三种可能的实现方式中,所述获取模块包括:With reference to the second aspect, in a third possible implementation manner of the first aspect, the acquisition module includes:
第一测量单元,用于在接收服务小区下发的测量请求之后,测量第一目标小区的信道质量,并向所述服务小区上报所述第一目标小区的信道质量,所述第一目标小区为小区优先级不低于预设的第一优先级门限的小区;A first measurement unit, configured to measure the channel quality of the first target cell after receiving the measurement request issued by the serving cell, and report the channel quality of the first target cell to the serving cell, the first target cell It is a cell whose cell priority is not lower than the preset first priority threshold;
第一指令获取单元,用于获取所述服务小区基于预设的小区切换规则和所述第一目标小区的信道质量生成的小区切换指令,所述小区切换指令为所述待上报指令。The first instruction obtaining unit is configured to obtain a cell switching instruction generated by the serving cell based on a preset cell switching rule and the channel quality of the first target cell, and the cell switching instruction is the command to be reported.
结合第二方面,在第一方面第四种可能的实现方式中,所述获取模块包括:With reference to the second aspect, in a fourth possible implementation manner of the first aspect, the acquisition module includes:
第二测量单元,用于在接收服务小区下发的测量请求之后,测量第一目标小区的信道质量,并向所述服务小区上报所述第一目标小区的信道质量,所述第一目标小区为小区优先级不低于预设的第一优先级门限的小区;A second measurement unit, configured to measure the channel quality of the first target cell after receiving the measurement request issued by the serving cell, and report the channel quality of the first target cell to the serving cell, the first target cell It is a cell whose cell priority is not lower than the preset first priority threshold;
第一指令缓存单元,用于获取所述服务小区基于预设的小区切换规则和所述第一目标小区的信道质量生成的小区切换指令,并缓存所述小区切换指令;A first instruction cache unit, configured to obtain a cell switching instruction generated by the serving cell based on a preset cell switching rule and the channel quality of the first target cell, and cache the cell switching instruction;
第一缓存时间确定单元,用于基于所述移动终端处于所述第一状态的时长和以下公式,确定所述小区切换指令的缓存时间:The first buffer time determining unit is configured to determine the buffer time of the cell switching instruction based on the duration of the mobile terminal in the first state and the following formula:
Figure PCTCN2019115020-appb-000004
Figure PCTCN2019115020-appb-000004
其中,T1(t0)表示所述小区切换指令的缓存时间,t0表示所述移动终端处于所述第一状态的时长,T1、T2、T11和t1分别表示预设的时间长度,α为预设的常数,其取值为小于1的正数;Where T1 (t0) represents the buffer time of the cell switching instruction, t0 represents the length of time that the mobile terminal is in the first state, T1, T2, T11 and t1 represent the preset length of time, and α is the preset The value of is a positive number less than 1;
第一指令确定单元,用于在到达所述缓存时间之后,确定缓存的至少一条小区切换指令中,获取时间最晚的小区切换指令为所述待上报指令。The first instruction determination unit is configured to determine, after reaching the buffer time, at least one buffered cell switching instruction in the buffer, the cell switching instruction with the latest acquisition time is the instruction to be reported.
结合第二方面,在第一方面第五种可能的实现方式中,所述获取模块包括:With reference to the second aspect, in a fifth possible implementation manner of the first aspect, the acquisition module includes:
第三测量单元,用于当检测到所述移动终端处于网络空闲状态时,测量第二目标小区的信道质量,所述第二目标小区为小区优先级不低于预设的第二优先级门限的小区;The third measurement unit is configured to measure the channel quality of the second target cell when it is detected that the mobile terminal is in a network idle state, the second target cell being a cell with a priority not lower than a preset second priority threshold Of the community
第一指令生成单元,用于当基于所述第二目标小区的信道质量和预设的小区重选规则,确定需要进行小区重选时,生成小区重选指令,所述小区重选指令为所述待上报指令。The first instruction generating unit is configured to generate a cell reselection instruction when it is determined that cell reselection is required based on the channel quality of the second target cell and a preset cell reselection rule, and the cell reselection instruction is Describe the report instruction.
结合第二方面,在第一方面第六种可能的实现方式中,所述获取模块包括:With reference to the second aspect, in a sixth possible implementation manner of the first aspect, the acquisition module includes:
第四测量单元,用于当检测到所述移动终端处于网络空闲状态时,测量第二目标小区的信道质量,所述第二目标小区为小区优先级不低于预设的第二优先级门限的小区;A fourth measurement unit, configured to measure the channel quality of the second target cell when it is detected that the mobile terminal is in a network idle state, the second target cell being a cell with a priority not lower than a preset second priority threshold Of the community
第二指令生成单元,用于当基于所述第二目标小区的信道质量和预设的小区重选规则,确定需要进行小区重选时,生成小区重选指令;A second instruction generating unit, configured to generate a cell reselection instruction when it is determined that cell reselection is required based on the channel quality of the second target cell and preset cell reselection rules;
第二缓存时间确定单元,用于基于所述移动终端处于所述第一状态的时长和以下公式,确定所述小区重选指令的缓存时间:The second buffer time determining unit is configured to determine the buffer time of the cell reselection instruction based on the duration of the mobile terminal in the first state and the following formula:
Figure PCTCN2019115020-appb-000005
Figure PCTCN2019115020-appb-000005
其中,T2(t0)表示所述小区重选指令的缓存时间,t0表示所述移动终端处于所述第一状态的时长,T3、T4、T12和t2分别表示预设的时间长度,β为预设的常数,其取值为小于1的正数;Where T2 (t0) represents the buffer time of the cell reselection instruction, t0 represents the length of time that the mobile terminal is in the first state, T3, T4, T12 and t2 represent the preset length of time, and β is the The set constant is a positive number less than 1;
第二指令确定单元,用于在到达所述缓存时间之后,确定缓存的至少一条小区重选指令中,获取时间最晚的小区切换指令为所述待上报指令。The second instruction determination unit is configured to determine, after reaching the cache time, at least one cache cell reselection instruction that the cell switching instruction with the latest acquisition time is the instruction to be reported.
结合第二方面,在第一方面第七种可能的实现方式中,所述待上报指令为目标时间段内的获取次数大于预设次数的指令。With reference to the second aspect, in a seventh possible implementation manner of the first aspect, the instruction to be reported is an instruction whose number of acquisitions in a target time period is greater than a preset number of times.
结合第二方面,结合第二方面第一种可能的实现方式,结合第二方面第二种可能的实现方式,结合第二方面第三种可能的实现方式,结合第二方面第四种可能的实现方式,结合第二方面第五种可能的实现方式,结合第二方面第六种可能的实现方式,结合第二方面第七种可能的实现方式,在第二方面第八种可能的实现方式中,还包括:With reference to the second aspect, with the first possible implementation of the second aspect, with the second possible implementation of the second aspect, with the third possible implementation of the second aspect, with the fourth possible implementation of the second aspect Implementation, combining the fifth possible implementation of the second aspect, the sixth possible implementation of the second aspect, and the seventh possible implementation of the second aspect, the eighth possible implementation of the second aspect In it, it also includes:
第三阈值确定模块;The third threshold determination module;
所述第三阈值确定模块用于在所述获取需要上报至应用处理器的待上报指令之后,基于所述移动终端处于所述第一状态的时长和以下公式,确定所述第三阈值:The third threshold determination module is used to determine the third threshold based on the duration of the mobile terminal in the first state and the following formula after the acquiring the instruction to be reported to the application processor:
Figure PCTCN2019115020-appb-000006
Figure PCTCN2019115020-appb-000006
其中,T3(t0)表示所述第三阈值,t0表示所述移动终端处于所述第一状态的时长,T5 T6、T13和t3分别表示预设的时间长度,δ为预设的常数,其取值为小于1的正数。 Where T3 (t0) represents the third threshold, t0 represents the length of time that the mobile terminal is in the first state, T5 , T6, T13, and t3 respectively represent a preset time length, and δ is a preset constant Its value is a positive number less than 1.
结合第二方面,结合第二方面第一种可能的实现方式,结合第二方面第二种可能的实现方式,结合第二方面第三种可能的实现方式,结合第二方面第四种可能的实现方式,结合第二方面第五种可能的实现方式,结合第二方面第六种可能的实现方式,结合第二方面第七种可能的实现方式,结合第二方面第八种可能的实现方式,在第二方面第九种可能的实现方式中,所述指令上报模块包括:With reference to the second aspect, with the first possible implementation of the second aspect, with the second possible implementation of the second aspect, with the third possible implementation of the second aspect, with the fourth possible implementation of the second aspect Implementation, combining the fifth possible implementation of the second aspect, the sixth possible implementation of the second aspect, the seventh possible implementation of the second aspect, and the eighth possible implementation of the second aspect In a ninth possible implementation manner of the second aspect, the instruction reporting module includes:
时间比较单元,用于当同一类型的待上报指令为两条以上时,比较同一类型的各条待上报指令的获取时间;The time comparison unit is used to compare the acquisition time of each instruction to be reported of the same type when there are more than two instructions of the same type to be reported;
指令上报单元,用于向所述应用处理器上报同一类型的各条待上报指令中获取时间最晚的待上报指令。The instruction reporting unit is configured to report to the application processor the instruction to be reported with the latest acquisition time among the instructions to be reported of the same type.
第三方面,本申请实施例提供一种移动终端,包括:In a third aspect, an embodiment of the present application provides a mobile terminal, including:
存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如第一方面所述的方法。A memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the method according to the first aspect is implemented.
第四方面,一种计算机可读介质,包括指令,当其在计算机上运行时,使得计算机执行如第一方面所述的方法。In a fourth aspect, a computer-readable medium includes instructions, which when executed on a computer, cause the computer to perform the method as described in the first aspect.
本申请实施例公开一种应用于移动终端的应用处理器唤醒方法及装置,该方法中,首先检测移动终端是否处于预设的第一状态;在确定移动终端处于预设的第一状态之后,获取待上报指令,以及获取该待上报指令的优先级;当获取到优先级大于预设优先级的待上报指令 时,向所述应用处理器上报所述待上报指令,以唤醒所述应用处理器,从而使应用处理器执行相应的操作。An embodiment of the present application discloses an application processor wake-up method and device applied to a mobile terminal. In this method, first, it is detected whether the mobile terminal is in a preset first state; after determining that the mobile terminal is in a preset first state, Obtain the instruction to be reported, and obtain the priority of the instruction to be reported; when an instruction to be reported that has a priority greater than a preset priority is obtained, report the instruction to be reported to the application processor to wake up the application process To enable the application processor to perform the corresponding operation.
现有技术中,移动终端每次在获取待上报指令后,都会立即将待上报指令上报至应用处理器,使应用处理器频繁获取到指令,从而被频繁唤醒。而通过本申请实施例的方案,当获取到优先级大于预设优先级的待上报指令时,才向应用处理器上报待上报指令,从而减少了向应用处理器上报指令的次数,进一步减少了应用处理器获取指令的次数,能够避免应用处理器被频繁唤醒,解决了现有技术中所存在的问题。In the prior art, each time the mobile terminal obtains the instruction to be reported, it immediately reports the instruction to be reported to the application processor, so that the application processor frequently obtains the instruction and is frequently awakened. According to the solution of the embodiment of the present application, the instruction to be reported is reported to the application processor only when the instruction to be reported with a priority greater than the preset priority is obtained, thereby reducing the number of instructions to the application processor and further reducing The number of times the application processor obtains instructions can prevent the application processor from being woken up frequently, and solves the problems in the prior art.
进一步的,由于本申请实施例减少了应用处理器被唤醒的次数,相对于现有技术来说,延长了应用处理器处于休眠状态的时间,因此,还能够延长移动终端的使用时长。Further, because the embodiment of the present application reduces the number of times the application processor is woken up, compared with the prior art, the time during which the application processor is in the sleep state is extended, and therefore, the use time of the mobile terminal can also be extended.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本申请的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solution of the present application, the following will briefly introduce the drawings that need to be used in the embodiments. Obviously, for those of ordinary skill in the art, without paying creative labor, Other drawings can also be obtained from these drawings.
图1为本申请实施例公开的一种应用于移动终端的应用处理器唤醒方法的工作流程示意图;FIG. 1 is a schematic diagram of a working process of an application processor wake-up method applied to a mobile terminal disclosed in an embodiment of the present application;
图2为本申请实施例公开的一种移动终端的结构示意图;2 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application;
图3为本申请实施例公开的一种应用于移动终端的应用处理器唤醒方法中,检测移动终端是否处于预设的第一状态的工作流程示意图;FIG. 3 is a schematic diagram of a workflow of detecting whether a mobile terminal is in a preset first state in an application processor wake-up method disclosed in an embodiment of the present application;
图4为本申请实施例公开的应用于移动终端的应用处理器唤醒方法中,一种获取待上报指令的工作流程示意图;FIG. 4 is a schematic diagram of a work flow for obtaining an instruction to be reported in an application processor wake-up method for a mobile terminal disclosed in an embodiment of the present application; FIG.
图5为本申请实施例公开的一种应用于移动终端的应用处理器唤醒方法的应用场景示意图;5 is a schematic diagram of an application scenario of an application processor wake-up method applied to a mobile terminal disclosed in an embodiment of the present application;
图6为本申请实施例公开的应用于移动终端的应用处理器唤醒方法中,又一种获取待上报指令的工作流程示意图;FIG. 6 is a schematic diagram of another workflow of obtaining an instruction to be reported in the application processor wake-up method for mobile terminals disclosed in the embodiments of the present application; FIG.
图7为本申请实施例公开的应用于移动终端的应用处理器唤醒方法中,又一种获取待上报指令的工作流程示意图;7 is a schematic diagram of another workflow of obtaining an instruction to be reported in an application processor wake-up method for a mobile terminal disclosed in an embodiment of the present application;
图8为本申请实施例公开的应用于移动终端的应用处理器唤醒方法中,小区切换指令的缓存时间与移动终端处于第一状态的时长的对应关系示意图;8 is a schematic diagram of a correspondence relationship between a buffer time of a cell switching instruction and a duration in which the mobile terminal is in the first state in the application processor wake-up method applied to a mobile terminal disclosed in an embodiment of the present application;
图9为本申请实施例公开的应用于移动终端的应用处理器唤醒方法中,又一种获取待上报指令的工作流程示意图;9 is a schematic diagram of another workflow of obtaining an instruction to be reported in an application processor wake-up method for a mobile terminal disclosed in an embodiment of the present application;
图10为本申请实施例公开的应用于移动终端的应用处理器唤醒方法中,又一种获取待上报指令的工作流程示意图;10 is a schematic diagram of another workflow of obtaining an instruction to be reported in an application processor wake-up method for a mobile terminal disclosed in an embodiment of the present application;
图11为本申请实施例公开的应用于移动终端的应用处理器唤醒方法中,第三阈值与移动终端处于第一状态的时长的对应关系示意图;FIG. 11 is a schematic diagram of the correspondence between the third threshold and the length of time when the mobile terminal is in the first state in the application processor wake-up method for mobile terminals disclosed in the embodiments of the present application;
图12为本申请实施例公开的一种应用于移动终端的应用处理器唤醒装置的结构示意图;12 is a schematic structural diagram of an application processor wake-up device applied to a mobile terminal disclosed in an embodiment of the present application;
图13为本申请实施例公开的一种移动终端的结构示意图;13 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application;
图14为本申请实施例公开的又一种移动终端的结构示意图。14 is a schematic structural diagram of yet another mobile terminal disclosed in an embodiment of the present application.
具体实施方式detailed description
为了解决现有技术中,移动终端中处于休眠状态的应用处理器由于频繁获取指令,导致 被频繁唤醒的问题,本申请实施例公开一种应用于移动终端的应用处理器唤醒方法及装置。In order to solve the problem that the application processor in the sleep state in the mobile terminal is frequently awakened due to frequent instruction acquisition in the prior art, the embodiments of the present application disclose a method and device for awakening the application processor in the mobile terminal.
参见图1所示的工作流程示意图,本申请实施例公开的应用于移动终端的应用处理器唤醒方法包括以下步骤:Referring to the schematic diagram of the working process shown in FIG. 1, the application processor wake-up method disclosed in the embodiments of the present application applied to a mobile terminal includes the following steps:
步骤S11、检测移动终端是否处于预设的第一状态。Step S11: Detect whether the mobile terminal is in a preset first state.
其中,所述第一状态为所述移动终端处于以下状态中的任一项或者多项:灭屏、非充电、速度小于预设的第一阈值以及服务小区的切换速度小于预设的第二阈值的状态。Wherein, the first state is any one or more of the following states: the screen is off, non-charging, the speed is less than the preset first threshold, and the handover speed of the serving cell is less than the preset second The status of the threshold.
本申请实施例中,预先设定第一状态,当移动终端处于第一状态时,则执行本申请实施例公开的应用于移动终端的应用处理器唤醒方法,以便减少应用处理器的唤醒次数。In the embodiment of the present application, the first state is preset, and when the mobile terminal is in the first state, the application processor wake-up method applied to the mobile terminal disclosed in the embodiment of the present application is executed, so as to reduce the number of application processor wake-ups.
其中,第一状态为以下状态中任一种或多种的组合:灭屏、非充电、速度小于预设的第一阈值以及服务小区的切换速度小于预设的第二阈值的状态。例如,在其中一种实现方式中,可设定当移动终端处于灭屏、非充电,并且移动终端的速度小于预设的第一阈值以及服务小区的切换速度小于预设的第二阈值的状态时,移动终端处于第一状态,这种状态下,表明该移动终端在当前并未被用户使用,而且,由于移动终端未被充电,为了减少移动终端的耗电量,因此,无需频繁唤醒应用处理器,而是使应用处理器保持在休眠状态。The first state is any one or a combination of the following states: off-screen, non-charging, the speed is less than the preset first threshold, and the handover speed of the serving cell is less than the preset second threshold. For example, in one of the implementation manners, a state may be set when the mobile terminal is off-screen, non-charging, and the speed of the mobile terminal is less than the preset first threshold and the handover speed of the serving cell is less than the preset second threshold At this time, the mobile terminal is in the first state. In this state, it indicates that the mobile terminal is not currently used by the user, and because the mobile terminal is not charged, in order to reduce the power consumption of the mobile terminal, there is no need to frequently wake up the application The processor, instead, keeps the application processor in a sleep state.
步骤S12、在确定所述移动终端处于所述预设的第一状态之后,获取需要上报至应用处理器的待上报指令以及所述待上报指令的优先级。Step S12: After determining that the mobile terminal is in the preset first state, obtain the instruction to be reported to the application processor and the priority of the instruction to be reported.
其中,移动终端能够获取多种类型的指令。例如,在移动终端建立网络连接之后,各个小区会向移动终端下发时间更新指令,该时间更新指令中加载有时间,以便移动终端更新自身的时间;另外,移动终端还能够接收到服务小区下发的小区切换指令等。在本申请实施例中,可据此获取相应的待上报指令。Among them, the mobile terminal can obtain multiple types of instructions. For example, after the mobile terminal establishes a network connection, each cell will issue a time update instruction to the mobile terminal, and the time update instruction is loaded with time so that the mobile terminal can update its own time; in addition, the mobile terminal can also receive the service cell Issued cell switching instructions, etc. In the embodiment of the present application, the corresponding instruction to be reported can be obtained accordingly.
另外,移动终端还能够获取其他类型的指令,在本申请实施例中,也可将该指令作为待上报指令。In addition, the mobile terminal can also obtain other types of instructions. In the embodiment of the present application, the instructions may also be used as instructions to be reported.
例如,服务小区或相邻小区有时会出现网络异常,这种情况下,会向移动终端频繁下发确认返回指令,以便移动终端中的应用处理器在接收到该确认返回指令之后,生成相应的确认反馈信息,再向服务小区或相邻小区传输该确认反馈信息;另外,移动终端在与服务小区进行数据传输时,需要与服务小区之间建立数据链路,以便通过该数据链路进行数据传输,但是有些情况下,例如服务小区的网络信号较弱,会导致该数据链路建立不成功,服务小区会向移动终端下发链路建立失败指令;另外,移动终端在确定服务小区之后,通常需要进行服务小区的注册,但有些情况下,移动终端的注册请求无法传输至服务小区,或者服务小区下发的注册确认信息无法传输至移动终端,从而导致移动终端注册失败,这种情况下,移动终端会生成网络注册失败指令。其中,确认返回指令、链路建立失败指令和网络注册失败指令,往往需要上报至应用处理器,以便应用处理器执行相应的操作,这种情况下,在本申请实施例中,还可以将确认返回指令、链路建立失败指令和网络注册失败指令作为待上报指令。For example, a network abnormality may sometimes occur in a serving cell or a neighboring cell. In this case, a confirmation return instruction is frequently issued to the mobile terminal, so that the application processor in the mobile terminal generates a corresponding response after receiving the confirmation return instruction. Confirm the feedback information, and then transmit the confirmation feedback information to the serving cell or the neighboring cell; in addition, when the mobile terminal performs data transmission with the serving cell, it needs to establish a data link with the serving cell in order to perform data through the data link Transmission, but in some cases, for example, the network signal of the serving cell is weak, which will cause the data link establishment to be unsuccessful, and the serving cell will issue a link establishment failure instruction to the mobile terminal; in addition, after the mobile terminal determines the serving cell, The registration of the serving cell is usually required, but in some cases, the registration request of the mobile terminal cannot be transmitted to the serving cell, or the registration confirmation information issued by the serving cell cannot be transmitted to the mobile terminal, resulting in the mobile terminal registration failure. In this case , The mobile terminal will generate a network registration failure instruction. Among them, the confirmation return instruction, the link establishment failure instruction and the network registration failure instruction often need to be reported to the application processor so that the application processor can perform the corresponding operation. In this case, in the embodiment of the present application, the confirmation The return instruction, the link establishment failure instruction and the network registration failure instruction are to be reported.
本申请实施例中,预先为不同类型的待上报指令设置相应优先级,即设置各类型的待上报指令与优先级之间的对应关系。这种情况下,在获取待上报指令之后,即可根据该待上报指令的类型,确定该待上报指令的优先级。其中,对于需要尽快处理的待上报指令,其对应的优先级通常较高,而对于不需要尽快处理的待上报指令,则其对应的优先级通常较低。In the embodiment of the present application, corresponding priorities are set in advance for different types of instructions to be reported, that is, the correspondence between various types of instructions to be reported and priorities is set. In this case, after obtaining the instruction to be reported, the priority of the instruction to be reported can be determined according to the type of the instruction to be reported. Among them, for the instruction to be reported that needs to be processed as soon as possible, the corresponding priority is usually higher, and for the instruction to be reported that does not need to be processed as soon as possible, the corresponding priority is usually lower.
待上报指令可包括多种类型的指令,例如,用于使移动终端更新时间的时间上报指令、用于进行小区切换的小区切换指令和用于小区重选的小区重选指令。另外,服务小区或相邻小区有时会出现网络异常,从而向移动终端频繁下发确认返回指令,以便移动终端中的应用处理器在接收到该确认返回指令之后,生成相应的确认反馈信息,再向服务小区或相邻小区 传输该确认反馈信息等,则确认返回指令也为待上报指令。这种情况下,可预先设置表格,通过表格表征不同类型的待上报指令与指令的优先级之间对应关系,并由移动终端存储该表格,以便移动终端在获取待上报指令之后,根据该表格,确定获取的待上报指令的优先级。The instruction to be reported may include various types of instructions, for example, a time reporting instruction for causing the mobile terminal to update the time, a cell switching instruction for performing cell handover, and a cell reselection instruction for cell reselection. In addition, the service cell or the neighboring cell sometimes has a network abnormality, so that the confirmation return instruction is frequently issued to the mobile terminal, so that the application processor in the mobile terminal generates corresponding confirmation feedback information after receiving the confirmation return instruction, and then When the confirmation feedback information and the like are transmitted to the serving cell or the neighboring cell, the confirmation return instruction is also an instruction to be reported. In this case, a table may be set in advance to represent the correspondence between different types of commands to be reported and the priority of the commands, and the mobile terminal may store the table so that the mobile terminal can obtain the command to be reported based on the table To determine the priority of the obtained instruction to be reported.
若小区切换指令的优先级为最高的优先级,小区重选指令的优先级低于小区切换指令,确认返回指令的优先级低于所述小区重选指令,而时间上报指令的优先级低于所述确认返回指令,则该表格可以为以下形式:If the priority of the cell switching instruction is the highest priority, the priority of the cell reselection instruction is lower than the cell switching instruction, confirm that the priority of the return instruction is lower than the cell reselection instruction, and the priority of the time reporting instruction is lower than The confirmation return instruction, the form may be in the following form:
指令名称Command name 指令的优先级Instruction priority
小区切换指令Cell switching instruction 11
小区重选指令Cell reselection instruction 22
确认返回指令Confirm return instruction 33
时间上报指令Time reporting instructions 44
当然,还可以通过其他形式设置各类型的待上报指令与指令的优先级之间的对应关系,本申请实施例对此不做限定。Of course, the correspondence between various types of instructions to be reported and the priority of the instructions can also be set in other forms, which is not limited in the embodiments of the present application.
步骤S13、当所述待上报指令的优先级大于预设优先级时,向所述应用处理器上报所述待上报指令,以唤醒所述应用处理器。Step S13: When the priority of the instruction to be reported is greater than a preset priority, report the instruction to be reported to the application processor to wake up the application processor.
本申请实施例中,若获取到的待上报指令中,包含优先级大于预设优先级的待上报指令,则可认为满足上报条件,从而向应用处理器上报所述待上报指令。In the embodiment of the present application, if the obtained instruction to be reported includes the instruction to be reported whose priority is greater than the preset priority, it may be considered that the reporting condition is satisfied, so that the instruction to be reported is reported to the application processor.
另外,当获取到优先级大于预设优先级的待上报指令时,有可能还获取到了其他优先级较低的待上报指令。这种情况下,还可以同时上报其他优先级较低的待上报指令。In addition, when an instruction to be reported with a priority greater than a preset priority is obtained, it is possible to obtain other instructions to be reported with a lower priority. In this case, you can also report other commands with lower priority to be reported at the same time.
进一步的,若需要向应用处理器上报多条待上报指令,该步骤中,可根据各条待上报指令的获取时间确定上报顺序,这种情况下,根据各条待上报指令的获取时间的先后顺序,依次上报各条待上报指令。或者,该步骤中,还可根据各条待上报指令的优先级确定上报顺序,这种情况下,根据各条待上报指令的优先级的高低,优先上报优先级较高的待上报指令。Further, if multiple instructions to be reported need to be reported to the application processor, in this step, the order of reporting may be determined according to the acquisition time of each instruction to be reported, in this case, according to the order of acquisition time of each instruction to be reported In order, report each instruction to be reported in turn. Or, in this step, the order of reporting may also be determined according to the priority of each instruction to be reported. In this case, the instruction to be reported with higher priority is preferentially reported according to the priority of each instruction to be reported.
本申请实施例公开一种应用于移动终端的应用处理器唤醒方法,该方法中,首先检测移动终端是否处于预设的第一状态;在确定移动终端处于预设的第一状态之后,获取需要上报至应用处理器的待上报指令以及所述待上报指令的优先级;当所述待上报指令的优先级大于预设优先级时,向所述应用处理器上报所述待上报指令,以唤醒所述应用处理器,从而使应用处理器执行相应的操作。An embodiment of the present application discloses an application processor wake-up method applied to a mobile terminal. In this method, first, it is detected whether the mobile terminal is in a preset first state; after determining that the mobile terminal is in a preset first state, the need is acquired The instruction to be reported to the application processor and the priority of the instruction to be reported; when the priority of the instruction to be reported is greater than the preset priority, report the instruction to be reported to the application processor to wake up The application processor, so that the application processor performs corresponding operations.
现有技术中,移动终端每次在获取待上报指令后,都会立即将待上报指令上报至应用处理器,使应用处理器频繁获取到指令,从而被频繁唤醒。而通过本申请实施例的方案,当获取到优先级大于预设优先级的待上报指令时,才向应用处理器上报待上报指令,从而减少了向应用处理器上报指令的次数,进一步减少了应用处理器获取指令的次数,能够避免应用处理器被频繁唤醒,解决了现有技术中所存在的问题。In the prior art, each time the mobile terminal obtains the instruction to be reported, it immediately reports the instruction to be reported to the application processor, so that the application processor frequently obtains the instruction and is frequently awakened. According to the solution of the embodiment of the present application, the instruction to be reported is reported to the application processor only when the instruction to be reported with a priority greater than the preset priority is obtained, thereby reducing the number of instructions to the application processor and further reducing The number of times the application processor obtains instructions can prevent the application processor from being woken up frequently, and solves the problems in the prior art.
进一步的,由于本申请实施例减少了应用处理器被唤醒的次数,相对于现有技术来说,延长了应用处理器处于休眠状态的时间,因此,还能够延长移动终端的使用时长。Further, because the embodiment of the present application reduces the number of times the application processor is woken up, compared with the prior art, the time during which the application processor is in the sleep state is extended, and therefore, the use time of the mobile terminal can also be extended.
在移动终端中,设置有应用处理器,并且还设置有其他能够与应用处理器进行数据传输的部件,例如调制解调器。本申请实施例公开的方法,即可由移动终端内设置的其他器件执行。例如,可由调制解调器执行,这种情况下,当应用处理器处于休眠状态时,调制解调器能够获取待上报指令,并在确定满足上报条件时,向应用处理器上报该待上报指令。这种情况下,移动终端的结构示意图可如图2所示,参见图2,在移动终端中设置有应用处理器和调制解调器,其中,调制解调器可执行本申请实施例公开的方法,获取待上报指令,并向应用处理器上报待上报指令。In the mobile terminal, an application processor is provided, and other components capable of data transmission with the application processor, such as a modem, are also provided. The method disclosed in the embodiments of the present application can be executed by other devices provided in the mobile terminal. For example, it can be executed by a modem. In this case, when the application processor is in the sleep state, the modem can obtain the instruction to be reported, and when it is determined that the reporting condition is satisfied, report the instruction to be reported to the application processor. In this case, the structural schematic diagram of the mobile terminal may be as shown in FIG. 2. Referring to FIG. 2, an application processor and a modem are provided in the mobile terminal, where the modem may perform the method disclosed in the embodiments of the present application to obtain the instruction to be reported , And report the pending instruction to the application processor.
当然,还可以由移动终端内设置的其他部件执行本申请实施例公开的方法,本申请对此不作限定。Of course, the method disclosed in the embodiments of the present application may also be executed by other components provided in the mobile terminal, which is not limited in this application.
另外,在本申请实施例中,在获取需要上报至应用处理器的待上报指令以及所述待上报指令的优先级之后,还包括以下步骤:In addition, in the embodiment of the present application, after obtaining the instruction to be reported to the application processor and the priority of the instruction to be reported, the following steps are further included:
如果当前时间与上一次向所述应用处理器上报待上报指令的时间之差大于第三阈值,向所述应用处理器上报所述待上报指令,以唤醒所述应用处理器。If the difference between the current time and the time when the instruction to be reported to the application processor was last reported is greater than a third threshold, the instruction to be reported is reported to the application processor to wake up the application processor.
其中,当前时间与上一次向所述应用处理器上报待上报指令的时间之差,即为当前时间距离上一次上报的时间,若该时间大于第三阈值,则通过上述步骤,会向应用处理器进行指令上报。这种情况下,需要上报的多条待上报指令中,则包含从上一次上报之后到当前时刻这段时间内,所获取到的各条待上报指令。Among them, the difference between the current time and the last time to report the instruction to the application processor is the time from the current time to the last report. If the time is greater than the third threshold, the above steps will be processed to the application To report the command. In this case, the multiple to-be-reported instructions that need to be reported include all the to-be-reported instructions obtained during the period from the last report to the current time.
另外,在本申请实施例中,需要检测移动终端是否处于预设的第一状态,而第一状态为所述移动终端处于以下状态中的任一项或者多项:灭屏、非充电、速度小于预设的第一阈值以及服务小区的切换速度小于预设的第二阈值的状态。若设定移动终端同时处于灭屏、非充电、速度小于预设的第一阈值以及服务小区的切换速度小于预设的第二阈值的状态时,移动终端处于第一状态,那么,为了详细阐述如何检测移动终端是否处于预设的第一状态,作为图1方法的细化,本申请公开另一实施例。在该实施例中,如图3所示,步骤S11中所述检测移动终端是否处于预设的第一状态,可包括以下步骤:In addition, in the embodiment of the present application, it is necessary to detect whether the mobile terminal is in a preset first state, and the first state is any one or more of the following states: the screen is off, non-charging, speed The state is less than the preset first threshold and the handover speed of the serving cell is less than the preset second threshold. If it is set that the mobile terminal is in the state of being simultaneously off screen, non-charging, the speed is less than the preset first threshold, and the switching speed of the serving cell is less than the preset second threshold, the mobile terminal is in the first state, then, in order to elaborate How to detect whether the mobile terminal is in a preset first state, as a refinement of the method of FIG. 1, this application discloses another embodiment. In this embodiment, as shown in FIG. 3, detecting whether the mobile terminal is in a preset first state as described in step S11 may include the following steps:
步骤S21、当所述移动终端处于灭屏,以及非充电的状态时,获取所述移动终端的移动速度。Step S21: When the mobile terminal is in a screen-off and non-charging state, obtain a moving speed of the mobile terminal.
本申请实施例中,预先在移动终端内置有测速装置,通过该测速装置,能够确定移动终端的移动速度。In the embodiment of the present application, a speed measuring device is built in the mobile terminal in advance, and the speed of the mobile terminal can be determined by the speed measuring device.
其中,该测速装置可以为加速度传感器,当然,该测速装置也可以其他类型的装置,本申请实施例对此不做限定。The speed measuring device may be an acceleration sensor. Of course, the speed measuring device may also be another type of device, which is not limited in the embodiments of the present application.
步骤S22、当所述移动终端的移动速度小于预设的第一阈值时,检测服务小区的切换速度是否小于预设的第二阈值。Step S22: When the moving speed of the mobile terminal is less than the preset first threshold, detect whether the handover speed of the serving cell is less than the preset second threshold.
其中,若服务小区的切换速度小于预设的第二阈值,则执行步骤S23的操作,否则,则执行步骤S24的操作。Wherein, if the handover speed of the serving cell is less than the preset second threshold, the operation of step S23 is performed, otherwise, the operation of step S24 is performed.
移动终端在注册至服务小区之后,能够获取服务小区的小区信息,例如小区ID,通过小区信息能够区分不同小区。这种情况下,通常根据小区信息在单位时间内的变化,确定服务小区的切换速度。具体的,服务小区的切换速度=移动终端在单位时间内切换的服务小区的数量/单位时间。After registering to the serving cell, the mobile terminal can acquire cell information of the serving cell, such as cell ID, and can distinguish different cells by using the cell information. In this case, the handover speed of the serving cell is usually determined according to the change of cell information in a unit time. Specifically, the handover speed of the serving cell = the number of serving cells handed over by the mobile terminal per unit time / unit time.
当所述移动终端的移动速度小于预设的第一阈值时,表明移动终端的移动速度较小,但是,这种情况下,移动终端也有可能在地理位置上发生较大变化。例如,移动终端的用户在乘坐高铁时,虽然移动终端的移动速度较小,但仍然在地理位置上发生较大变化。因此,可进一步通过服务小区的切换速度,检测移动终端是否处于静止状态。When the moving speed of the mobile terminal is less than the preset first threshold, it indicates that the moving speed of the mobile terminal is small, but in this case, the mobile terminal may also undergo a large change in geographic location. For example, when a user of a mobile terminal rides a high-speed rail, although the mobile terminal moves at a slower speed, the geographical location still changes significantly. Therefore, it can be further detected whether the mobile terminal is in a stationary state through the switching speed of the serving cell.
步骤S23、当所述服务小区的切换速度小于预设的第二阈值时,确定所述移动终端处于预设的第一状态。Step S23: When the handover speed of the serving cell is less than a preset second threshold, it is determined that the mobile terminal is in a preset first state.
当所述移动终端的移动速度小于预设的速度阈值,并且服务小区的切换速度小于预设的切换速度阈值时,则可认为移动终端处于静止状态,进一步的,确定移动终端处于预设的第一状态。When the moving speed of the mobile terminal is less than the preset speed threshold, and the handover speed of the serving cell is less than the preset handover speed threshold, the mobile terminal may be considered to be in a stationary state. Further, it is determined that the mobile terminal is in the preset One state.
步骤S24、当所述服务小区的切换速度不小于预设的第二阈值时,确定所述移动终端未 处于预设的第一状态。Step S24: When the handover speed of the serving cell is not less than a preset second threshold, it is determined that the mobile terminal is not in a preset first state.
若所述服务小区的切换速度不小于预设的第二阈值,则表明移动终端在较大的地理范围内移动,这种情况下,则认为移动终端并未处于预设的第一状态。If the handover speed of the serving cell is not less than the preset second threshold, it indicates that the mobile terminal moves within a relatively large geographic range. In this case, it is considered that the mobile terminal is not in the preset first state.
本申请实施例中,能够基于移动终端内置的测速装置,以及服务小区的切换速度,确定移动终端是否处于静止状态,以便进一步据此检测移动终端是否处于预设的第一状态。In the embodiment of the present application, it is possible to determine whether the mobile terminal is in a stationary state based on a speed measuring device built in the mobile terminal and the switching speed of the serving cell, so as to further detect whether the mobile terminal is in a preset first state.
另外,在现有技术中,通常通过在移动终端中内置的全球定位系统(global positioning system,GPS)确定移动终端是否处于静止状态。但是,GPS的耗电量较高,并且,有时用户会关闭移动终端的GPS功能,导致无法根据GPS确定移动终端是否静止。In addition, in the prior art, whether a mobile terminal is in a stationary state is generally determined by a global positioning system (GPS) built into the mobile terminal. However, the power consumption of GPS is relatively high, and sometimes the user turns off the GPS function of the mobile terminal, which makes it impossible to determine whether the mobile terminal is stationary based on the GPS.
而本申请实施例中,在检测移动终端是否处于静止状态时,不再应用GPS,而是基于移动终端内置的测速装置和服务小区的切换速度,确定移动终端是否处于静止状态。因此,与现有技术相比,能够减少移动终端的耗电,并且不会受到GPS是否关闭的限制。In the embodiment of the present application, when detecting whether the mobile terminal is in a stationary state, GPS is no longer applied, but whether the mobile terminal is in a stationary state is determined based on the speed measurement device built in the mobile terminal and the switching speed of the serving cell. Therefore, compared with the prior art, the power consumption of the mobile terminal can be reduced, and it is not limited by whether the GPS is turned off.
另外,本申请实施例中,公开获取待上报指令的操作。根据待上报指令的类型,可通过多种方式获取待上报指令。In addition, in the embodiments of the present application, the operation of obtaining the instruction to be reported is disclosed. Depending on the type of instruction to be reported, the instruction to be reported can be obtained in various ways.
在其中一种方式中,根据时间更新指令获取待上报指令。移动终端的服务小区往往会向移动终端传输时间更新指令,该时间更新指令中加载有时间,以便移动终端根据该时间进行自身时间的更新。其中,通常在移动终端发生网络切换之后,服务小区向移动终端传输时间更新指令。例如,根据第三代合作伙伴计划(3rd generation partnership project,3GPP)协议的规定可知,若移动终端由长期演进网络(Long Term Evolution,LTE)切换至全球移动通信系统(Global System For Mobile Communications,GSM)网络之后,GSM网络对应的服务小区会向移动终端传输时间更新指令,相应的,若移动终端由GSM网络切换至LTE网络之后,LTE网络对应的服务小区也会向移动终端传输时间更新指令。In one of the modes, the instruction to be reported is obtained according to the time update instruction. The serving cell of the mobile terminal often transmits a time update instruction to the mobile terminal, and the time update instruction is loaded with time so that the mobile terminal can update its own time according to the time. Among them, generally, after the network switching of the mobile terminal occurs, the serving cell transmits a time update instruction to the mobile terminal. For example, according to the provisions of the 3rd Generation Partnership Project (3GPP) protocol, if a mobile terminal is switched from a Long Term Evolution (LTE) to a Global Mobile Communication System (Global System for For Mobile Communications, GSM ) After the network, the service cell corresponding to the GSM network will transmit the time update instruction to the mobile terminal. Correspondingly, if the mobile terminal is switched from the GSM network to the LTE network, the service cell corresponding to the LTE network will also transmit the time update instruction to the mobile terminal.
本申请实施例中,在接收到时间更新指令后,会根据时间更新指令获取相应的时间上报指令,并将时间上报指令作为一种待上报指令。这种情况下,参见图4所示的工作流程示意图,所述获取需要上报至应用处理器的待上报指令包括以下步骤:In the embodiment of the present application, after receiving the time update instruction, the corresponding time report instruction will be obtained according to the time update instruction, and the time report instruction will be used as a kind of instruction to be reported. In this case, referring to the schematic diagram of the work flow shown in FIG. 4, the obtaining of the instruction to be reported to the application processor includes the following steps:
步骤S31、接收至少一条时间更新指令,并在每次接收到所述时间更新指令之后,记录所述时间更新指令的接收时间。Step S31: Receive at least one time update instruction, and record the time of receiving the time update instruction after each time the time update instruction is received.
在移动终端建立网络连接之后,移动终端的服务小区和相邻小区会向移动终端下发时间更新指令,该时间更新指令中加载有时间。After the mobile terminal establishes a network connection, the serving cell and the neighboring cell of the mobile terminal will issue a time update instruction to the mobile terminal, and the time update instruction is loaded with time.
步骤S32、当所述移动终端满足预设的触发条件时,获取当前时间与目标时间更新指令的接收时间之间的时间差,所述目标时间更新指令为接收时间最接近当前时间的时间更新指令。Step S32: When the mobile terminal meets the preset trigger condition, obtain a time difference between the current time and the reception time of the target time update instruction, where the target time update instruction is the time update instruction whose reception time is closest to the current time.
其中,当所述移动终端亮屏和/或充电时,所述移动终端满足所述预设的触发条件。也就是说,当移动终端亮屏和/或被充电时,则认为移动终端满足预设的触发条件,这种情况下,再获取当前时间与接收时间之间的时间差。Wherein, when the mobile terminal is bright and / or charged, the mobile terminal meets the preset trigger condition. That is to say, when the mobile terminal is bright and / or charged, it is considered that the mobile terminal meets the preset trigger condition. In this case, the time difference between the current time and the reception time is acquired.
在移动终端中,通常设置有时间统计器件,例如时钟寄存器等,通过该时间统计器件,即可获取当前时间与时间更新指令的接收时间之间的时间差。其中,若该时间统计器件为时钟寄存器,可根据该时钟寄存器的晶振频率,确定所述时间差。当然,对于不同的时间统计器件,也可通过其他方式获取时间差,本申请实施例对此不做限定。In a mobile terminal, a time statistics device, such as a clock register, is usually provided, through which the time difference between the current time and the reception time of the time update instruction can be obtained. Wherein, if the time statistical device is a clock register, the time difference can be determined according to the crystal frequency of the clock register. Of course, for different time statistics devices, the time difference may also be obtained in other ways, which is not limited in the embodiments of the present application.
步骤S33、获取所述时间差与所述目标时间更新指令中包含的时间的和,并生成包含所述和的时间上报指令,所述时间上报指令为所述待上报指令。Step S33: Obtain the sum of the time difference and the time included in the target time update instruction, and generate a time reporting instruction including the sum, the time reporting instruction is the instruction to be reported.
其中,所述时间差与所述目标时间更新指令中包含的时间的和,即为所述时间差与所述 目标时间更新指令中包含的时间的相加结果。设定小区传输至移动终端的目标时间更新指令中包含的时间为t0,而当前时间与目标时间更新指令的接收时间之间的时间差为△t,则生成的时间上报指令中所包含的时间为t,则t=t0+△t。The sum of the time difference and the time included in the target time update instruction is the result of the addition of the time difference and the time included in the target time update instruction. Set the time included in the target time update command transmitted by the cell to the mobile terminal as t0, and the time difference between the current time and the target time update command reception time is △ t, then the time included in the generated time reporting command is t, then t = t0 + △ t.
进一步的,在确定目标时间更新指令之后,还可以将缓存的其他时间更新指令删除,不再进行缓存,以节省存储空间。Further, after the target time update instruction is determined, the cached other time update instruction can also be deleted, and the cache is no longer cached to save storage space.
在现有技术中,移动终端每次在接收到时间更新指令之后,就将时间更新指令上报至应用处理器,以唤醒应用处理器,使应用处理器执行时间更新的操作。In the prior art, each time the mobile terminal receives the time update instruction, it reports the time update instruction to the application processor to wake up the application processor and enable the application processor to perform the time update operation.
而本申请实施例公开的方案,通过步骤S31至步骤S33的操作,在获取时间更新指令之后,并未立即上报至应用处理器,而是缓存该时间更新指令,当移动终端满足预设的触发条件时,基于最晚接收到的时间更新指令,生成相应的时间上报指令,将时间上报指令作为待上报指令。因此,相对于现有技术来说,本申请实施例公开的方案减少了向应用处理器上报指令的次数和上报指令的数量,进一步减少了应用处理器被唤醒的次数,从而避免应用处理器被频繁唤醒。In the solution disclosed in the embodiment of the present application, through the operations from step S31 to step S33, after the time update instruction is obtained, it is not immediately reported to the application processor, but the time update instruction is cached. When the mobile terminal meets the preset trigger In the condition, based on the latest time update instruction received, a corresponding time report instruction is generated, and the time report instruction is used as the instruction to be reported. Therefore, compared with the prior art, the solution disclosed in the embodiments of the present application reduces the number of times and the number of instructions reported to the application processor, and further reduces the number of times the application processor is woken up, thereby avoiding the application processor from being Wake up frequently.
特别的,移动终端经常处于重叠小区所在的位置,即移动终端周边往往存在多个小区,这种情况下,移动终端可能会频繁的出现小区切换,从而导致移动终端中的部件(例如调制解调器)频繁接收到时间更新指令。例如,参见图5所示的应用场景示意图,该移动终端处于小区A、小区B和小区C覆盖的小区,这种情况下,随着各个小区信号强度的波动,移动终端可能会频繁出现小区切换,从而多次接收到时间更新指令。在现有技术中,移动终端中的部件每次在获取小区下发的时间更新指令之后,就向应用处理器上报,导致应用处理器被频繁唤醒。而采用本申请实施例公开的方案,在接收到时间更新指令之后,将其进行缓存,并当移动终端满足预设的触发条件时,生成相应的时间上报指令,向应用处理器上报该时间上报指令,相对于现有技术来说,通过本申请的方案,能够大幅度减少向应用处理器上报指令的次数和数量,有效避免应用处理器被频繁唤醒。In particular, mobile terminals are often located where overlapping cells are located, that is, there are often multiple cells around the mobile terminal. In this case, the mobile terminal may frequently undergo cell switching, resulting in frequent components (such as modems) in the mobile terminal. Received time update instruction. For example, referring to the schematic diagram of the application scenario shown in FIG. 5, the mobile terminal is in a cell covered by cell A, cell B, and cell C. In this case, as the signal strength of each cell fluctuates, the mobile terminal may frequently undergo cell switching To receive the time update instruction multiple times. In the prior art, each time a component in a mobile terminal obtains a time update instruction issued by a cell, it reports to the application processor, causing the application processor to be frequently awakened. With the solution disclosed in the embodiment of the present application, after receiving the time update instruction, it is cached, and when the mobile terminal meets the preset trigger condition, a corresponding time report instruction is generated and the time report is reported to the application processor Compared with the prior art, the instructions of the present application can greatly reduce the number and number of instructions reported to the application processor, and effectively prevent the application processor from being frequently awakened.
在另一种方式中,还可根据小区切换指令获取相应的待上报指令。这种情况下,参见图6所示的工作流程示意图,所述获取需要上报至应用处理器的待上报指令包括以下步骤:In another way, the corresponding instruction to be reported can also be obtained according to the cell switching instruction. In this case, referring to the schematic diagram of the work flow shown in FIG. 6, the obtaining of the instruction to be reported to the application processor includes the following steps:
步骤S41、在接收服务小区下发的测量请求之后,测量第一目标小区的信道质量,并向所述服务小区上报所述第一目标小区的信道质量,所述第一目标小区为小区优先级不低于预设的第一优先级门限的小区。Step S41: After receiving the measurement request issued by the serving cell, measure the channel quality of the first target cell, and report the channel quality of the first target cell to the serving cell, where the first target cell is a cell priority Cells not lower than the preset first priority threshold.
移动终端的服务小区的网络状态有时会发生变化,而服务小区在自身网络状态发生变化之后,会向移动终端下发测量请求,以使移动终端测试周边各个小区(即服务小区和相邻小区)的信道质量。另外,服务小区还能够获取各个小区的优先级,并将各个小区的优先级传输至移动终端,从而使移动终端能够确定各个小区的优先级。The network status of the mobile terminal's serving cell sometimes changes, and the serving cell sends a measurement request to the mobile terminal after its own network status changes, so that the mobile terminal tests the surrounding cells (ie, serving cell and neighboring cells) Channel quality. In addition, the serving cell can also obtain the priority of each cell and transmit the priority of each cell to the mobile terminal, so that the mobile terminal can determine the priority of each cell.
该步骤中,移动终端在接收到服务小区下发的测量请求之后,将其中小区优先级高于第一优先级门限的小区作为第一目标小区,然后测量第一目标小区的信道质量,再向服务小区反馈所述第一目标小区的信道质量。In this step, after receiving the measurement request issued by the serving cell, the mobile terminal selects the cell in which the cell priority is higher than the first priority threshold as the first target cell, then measures the channel quality of the first target cell, and then The serving cell feeds back the channel quality of the first target cell.
步骤S42、获取所述服务小区基于预设的小区切换规则和所述第一目标小区的信道质量生成的小区切换指令,所述小区切换指令为所述待上报指令。Step S42: Obtain a cell switching instruction generated by the serving cell based on a preset cell switching rule and the channel quality of the first target cell, where the cell switching instruction is the command to be reported.
服务小区在接收所述第一目标小区的信道质量之后,会根据所述第一目标小区的信道质量以及预设的小区切换规则,确定移动终端是否需要进行小区切换,并在确定移动终端需要进行小区切换的情况下,生成小区切换指令,并将所述小区切换指令下发至移动终端,以使移动终端获取所述小区切换指令。该步骤中,将该小区切换指令作为待上报指令。After receiving the channel quality of the first target cell, the serving cell determines whether the mobile terminal needs to perform cell switching according to the channel quality of the first target cell and preset cell switching rules, and determines whether the mobile terminal needs to perform In the case of cell switching, a cell switching instruction is generated, and the cell switching instruction is issued to the mobile terminal, so that the mobile terminal obtains the cell switching instruction. In this step, the cell switching instruction is used as an instruction to be reported.
其中,小区切换规则可为多种形式,例如,小区切换规则可由各个小区的网络功率决定,即将移动终端切换至网络功率较高的小区;或者,由各个小区的网络负荷决定,即将移动终端切换至当前的网络负荷较低的小区;小区切换规则由小区优先级决定,这种情况下,移动终端获取各个小区的优先级,并切换至优先级较高的小区。当然,小区切换规则还可以为其他形式,本申请实施例对此不做限定。Among them, the cell switching rules can take many forms, for example, the cell switching rules can be determined by the network power of each cell, that is, the mobile terminal is switched to a cell with a higher network power; or, the network load of each cell determines that the mobile terminal is to be switched To the current cell with a lower network load; the cell switching rule is determined by the cell priority. In this case, the mobile terminal obtains the priority of each cell and switches to the cell with a higher priority. Of course, the cell switching rule may also be in other forms, which is not limited in this embodiment of the present application.
在现有技术中,在接收到服务小区下发的测量请求之后,移动终端会测量各个小区的信道质量。而步骤S41至步骤S42所公开的实施例中,只测量小区优先级不低于预设的第一优先级门限的小区的信道质量,从而减少了移动终端在测量信道质量时的工作量,提高了信道质量的测量效率。In the prior art, after receiving the measurement request issued by the serving cell, the mobile terminal measures the channel quality of each cell. In the embodiments disclosed in steps S41 to S42, only the channel quality of the cell whose cell priority is not lower than the preset first priority threshold is measured, thereby reducing the workload of the mobile terminal in measuring channel quality and improving Channel efficiency measurement efficiency.
或者,在本申请另一实施例中,在获取到小区切换指令之后,还可以缓存所述小区切换指令,并在缓存一段时间后,再根据缓存的所述小区切换指令确定待上报指令。这种情况下,参见图7所示的工作流程示意图,所述获取需要上报至应用处理器的待上报指令包括以下步骤:Alternatively, in another embodiment of the present application, after the cell switching instruction is obtained, the cell switching instruction may be cached, and after a period of time, the command to be reported is determined according to the cached cell switching instruction. In this case, referring to the schematic diagram of the work flow shown in FIG. 7, the obtaining of the instruction to be reported to the application processor includes the following steps:
步骤S51、在接收服务小区下发的测量请求之后,测量第一目标小区的信道质量,并向所述服务小区上报所述第一目标小区的信道质量,所述第一目标小区为小区优先级不低于预设的第一优先级门限的小区。Step S51: After receiving the measurement request issued by the serving cell, measure the channel quality of the first target cell, and report the channel quality of the first target cell to the serving cell, where the first target cell is a cell priority Cells not lower than the preset first priority threshold.
其中,步骤S51的具体操作过程与步骤S41的具体操作过程相同,可相互参照,此处不再赘述。The specific operation process of step S51 is the same as the specific operation process of step S41, and they can be referred to each other, and will not be repeated here.
步骤S52、获取所述服务小区基于预设的小区切换规则和所述第一目标小区的信道质量生成的小区切换指令,并缓存所述小区切换指令。Step S52: Acquire a cell switching instruction generated by the serving cell based on a preset cell switching rule and the channel quality of the first target cell, and cache the cell switching instruction.
步骤S53、基于所述移动终端处于所述第一状态的时长和以下公式,确定所述小区切换指令的缓存时间:Step S53: Determine the buffer time of the cell switching instruction based on the duration of the mobile terminal in the first state and the following formula:
Figure PCTCN2019115020-appb-000007
Figure PCTCN2019115020-appb-000007
其中,T1(t0)表示所述小区切换指令的缓存时间,t0表示所述移动终端处于所述第一状态的时长,T1、T2、T11和t1分别表示预设的时间长度,α为预设的常数,其取值为小于1的正数。Where T1 (t0) represents the buffer time of the cell switching instruction, t0 represents the length of time that the mobile terminal is in the first state, T1, T2, T11 and t1 represent the preset length of time, and α is the preset The constant is a positive number less than 1.
步骤S54、在到达所述缓存时间之后,确定缓存的至少一条小区切换指令中,获取时间最晚的小区切换指令为所述待上报指令。Step S54: After the buffer time is reached, it is determined that, among the at least one buffered cell switching instruction, the cell switching instruction with the latest acquisition time is the command to be reported.
在缓存的过程中,移动终端可获取一条或多条小区切换指令。其中,若移动终端只接收到一条小区切换指令,则这一条小区切换指令即为获取时间最晚的小区切换指令,即该小区切换指令为待上报指令,若接收到多条小区切换指令,则选择获取时间最晚的小区切换指令作为待上报指令。During the buffering process, the mobile terminal can obtain one or more cell switching instructions. Wherein, if the mobile terminal receives only one cell switching instruction, this cell switching instruction is the latest cell switching instruction, that is, the cell switching instruction is a command to be reported. If multiple cell switching instructions are received, The cell handover instruction with the latest acquisition time is selected as the instruction to be reported.
现有技术中,在接收到小区切换指令之后,会立刻上报至应用处理器。而本申请实施例中,在获取到小区切换指令之后,缓存所述小区切换指令,并在缓存时间之后,将缓存的各个小区切换指令中,获取时间最晚的小区切换指令作为待上报指令。因此,与现有技术相比,本申请实施例公开的方案能够减少小区切换指令的上报次数,从而减少应用处理器被唤醒的次数,避免应用处理器被频繁唤醒。In the prior art, after receiving the cell switching instruction, it will be reported to the application processor immediately. In the embodiment of the present application, after the cell switching instruction is obtained, the cell switching instruction is cached, and after the buffering time, among the cached cell switching instructions, the latest cell switching instruction is acquired as the command to be reported. Therefore, compared with the prior art, the solution disclosed in the embodiments of the present application can reduce the number of times of reporting the cell switching instruction, thereby reducing the number of times the application processor is woken up and avoiding frequent wakeup of the application processor.
进一步的,在确定待上报指令之后,还可以将缓存的其他小区切换指令删除,不再进行缓存,以节省存储空间。Further, after the instruction to be reported is determined, the cached other cell switching instruction can also be deleted, and the cache is no longer cached to save storage space.
其中,小区切换指令的缓存时间由公式(1)确定,在公式(1)中,α为预设的常数,其取值通常为小于1的正数,例如可设置为0.7,T11为缓存时间的初始值,其具体时长可根据实际应用需求预先设定。通过该公式可知,若移动终端处于第一状态的时长小于预设的时间长度T1,则对应的缓存时间为T11,这种情况下,缓存时间与缓存时间的初始值相等;若移动终端处于第一状态的时长不小于预设的时间长度T1,并且不大于预设的时间长度T2,则对应的缓存时间为t1*α+T11;若移动终端处于第一状态的时长大于预设的时间长度T2,则对应的缓存时间为t1+T11。The buffer time of the cell switching instruction is determined by formula (1). In formula (1), α is a preset constant, and its value is usually a positive number less than 1, for example, it can be set to 0.7, and T11 is the buffer time The initial value of, the specific duration can be preset according to actual application requirements. According to this formula, if the duration of the mobile terminal in the first state is less than the preset time length T1, the corresponding cache time is T11. In this case, the cache time is equal to the initial value of the cache time; if the mobile terminal is in the first state The duration of a state is not less than the preset time length T1, and not greater than the preset time length T2, then the corresponding buffer time is t1 * α + T11; if the mobile terminal is in the first state, the duration is greater than the preset time length T2, the corresponding cache time is t1 + T11.
这种情况下,小区切换指令的缓存时间与移动终端处于第一状态的时长的对应关系可如图8所示,在图8中,横坐标表示移动终端处于第一状态的时长,纵坐标表示缓存时间。In this case, the correspondence relationship between the buffer time of the cell switching instruction and the duration of the mobile terminal in the first state can be shown in FIG. 8, in FIG. 8, the abscissa represents the duration of the mobile terminal in the first state, and the ordinate represents Cache time.
根据上述公式以及图8可知,本申请实施例中,移动终端处于第一状态的时长越长,则小区切换指令的缓存时间越长。According to the above formula and FIG. 8, in the embodiment of the present application, the longer the mobile terminal is in the first state, the longer the buffering time of the cell switching instruction.
在上述实施例中,根据小区切换指令获取待上报指令。另外,还可以根据小区重选指令获取相应的待上报指令。这种情况下,参见图9所示的工作流程示意图,所述获取需要上报至应用处理器的待上报指令包括以下步骤:In the above embodiment, the instruction to be reported is obtained according to the cell switching instruction. In addition, the corresponding instruction to be reported can also be obtained according to the cell reselection instruction. In this case, referring to the schematic diagram of the workflow shown in FIG. 9, the obtaining of the instruction to be reported to the application processor includes the following steps:
步骤S61、当检测到所述移动终端处于网络空闲状态时,测量第二目标小区的信道质量,所述第二目标小区为小区优先级不低于预设的第二优先级门限的小区。Step S61: When it is detected that the mobile terminal is in a network idle state, the channel quality of the second target cell is measured, and the second target cell is a cell whose cell priority is not lower than a preset second priority threshold.
若检测到移动终端处于网络空闲状态,移动终端通常会主动测量各个小区的信道质量,并根据测量得到的信道质量确定是否需要重选小区,并在需要进行重选的情况下,生成相应的小区重选指令。If it is detected that the mobile terminal is in the network idle state, the mobile terminal usually actively measures the channel quality of each cell, and determines whether the cell needs to be reselected according to the measured channel quality, and generates a corresponding cell if reselection is required. Reselect the instruction.
该步骤中,当确定移动终端处于网络空闲状态时,会查询各个小区的小区优先级,将其中小区优先级高于第二优先级门限的小区作为第二目标小区,并测量第二目标小区的信道质量。In this step, when it is determined that the mobile terminal is in the network idle state, the cell priority of each cell is queried, the cell in which the cell priority is higher than the second priority threshold is used as the second target cell, and the second target cell is measured Channel quality.
步骤S62、当基于所述第二目标小区的信道质量和预设的小区重选规则,确定需要进行小区重选时,生成小区重选指令,所述小区重选指令为所述待上报指令。Step S62: When it is determined that cell reselection needs to be performed based on the channel quality of the second target cell and preset cell reselection rules, a cell reselection instruction is generated, and the cell reselection instruction is the instruction to be reported.
其中,小区重选规则可为多种形式,例如,小区重选规则各由网络运营商决定,这种情况下,设定移动终端在进行重选前的服务小区的运营商为第一运营商,则重选的小区为第一运营商所支持的小区;或者,由各个小区的信号强度决定,这种情况下,确定重选的小区为信号强度最强的小区。当前,小区重选规则还可以为其他形式,本申请实施例对此不做限定。The cell reselection rules may be in various forms. For example, the cell reselection rules are determined by the network operator. In this case, the operator who sets the mobile terminal to serve the cell before reselection is the first operator. , The reselected cell is a cell supported by the first operator; or, determined by the signal strength of each cell, in this case, the reselected cell is determined to be the cell with the strongest signal strength. Currently, the cell reselection rule may also be in other forms, which is not limited in this embodiment of the present application.
在现有技术中,当检测到所述移动终端处于网络空闲状态时,会测量各个小区的信道质量。而步骤S61至步骤S62所公开的实施例中,只测量小区优先级不低于预设的第二优先级门限的小区的信道质量,从而减少了测量信道质量的工作量,提高了信道质量的测量效率。In the prior art, when it is detected that the mobile terminal is in a network idle state, the channel quality of each cell is measured. In the embodiments disclosed in steps S61 to S62, only the channel quality of the cell whose cell priority is not lower than the preset second priority threshold is measured, thereby reducing the workload of measuring channel quality and improving the channel quality. Measuring efficiency.
或者,在本申请另一实施例中,在获取到小区重选指令之后,还可以缓存所述小区重选指令,并在缓存一段时间后,再根据缓存的小区重选指令确定待上报指令。这种情况下,参见图10所示的工作流程示意图,所述获取需要上报至应用处理器的待上报指令包括以下步骤:Alternatively, in another embodiment of the present application, after the cell reselection instruction is obtained, the cell reselection instruction may be cached, and after a period of time, the command to be reported is determined according to the cached cell reselection instruction. In this case, referring to the schematic diagram of the work flow shown in FIG. 10, the obtaining of the instruction to be reported to the application processor includes the following steps:
步骤S71、当检测到所述移动终端处于网络空闲状态时,测量第二目标小区的信道质量,所述第二目标小区为小区优先级不低于预设的第二优先级门限的小区。Step S71: When it is detected that the mobile terminal is in a network idle state, measure the channel quality of a second target cell, the second target cell being a cell whose cell priority is not lower than a preset second priority threshold.
其中,步骤S71的具体操作过程与步骤S61的具体操作过程相同,可相互参照,此处不再赘述。Wherein, the specific operation process of step S71 is the same as the specific operation process of step S61, and can be referred to each other, which will not be repeated here.
步骤S72、当基于所述第二目标小区的信道质量和预设的小区重选规则,确定需要进行小区重选时,生成小区重选指令。Step S72: When it is determined that cell reselection needs to be performed based on the channel quality of the second target cell and a preset cell reselection rule, a cell reselection instruction is generated.
步骤S73、基于所述移动终端处于所述第一状态的时长和以下公式,确定所述小区重选指令的缓存时间:Step S73: Determine the buffer time of the cell reselection instruction based on the duration of the mobile terminal in the first state and the following formula:
Figure PCTCN2019115020-appb-000008
Figure PCTCN2019115020-appb-000008
其中,T2(t0)表示所述小区重选指令的缓存时间,t0表示所述移动终端处于所述第一状态的时长,T3、T4、T12和t2分别表示预设的时间长度,β为预设的常数,其取值为小于1的正数。Where T2 (t0) represents the buffer time of the cell reselection instruction, t0 represents the length of time that the mobile terminal is in the first state, T3, T4, T12 and t2 represent the preset length of time, and β is the The set constant is a positive number less than 1.
本申请实施例中,预先设定了移动终端处于第一状态的时长与小区重选指令的缓存时间间的对应关系,这种情况下,移动终端在通过步骤S72获取到小区重选指令后,即可确定在当前时刻下,移动终端处于第一状态的时长,再基于所述对应关系,确定小区重选指令的缓存时间。In the embodiment of the present application, the correspondence between the duration of the mobile terminal in the first state and the buffer time of the cell reselection instruction is preset. In this case, after the mobile terminal obtains the cell reselection instruction through step S72, That is, the duration at which the mobile terminal is in the first state at the current moment can be determined, and then the buffer time of the cell reselection instruction is determined based on the corresponding relationship.
步骤S74、在到达所述缓存时间之后,确定缓存的至少一条小区重选指令中,获取时间最晚的小区切换指令为所述待上报指令。Step S74: After the cache time is reached, it is determined that, among the at least one cache cell reselection instruction, the cell switching instruction with the latest acquisition time is the instruction to be reported.
在缓存的过程中,移动终端可生成一条或多条小区重选指令。其中,若移动终端只生成一条小区重选指令,则这一条小区重选指令即为获取时间最晚的小区重选指令,即该小区重选指令为待上报指令,若接收到多条小区重选指令,则选择获取时间最晚的小区重选指令作为待上报指令。During the buffering process, the mobile terminal may generate one or more cell reselection instructions. If the mobile terminal generates only one cell reselection instruction, this cell reselection instruction is the latest cell reselection instruction, that is, the cell reselection instruction is a command to be reported. If multiple cell reselection instructions are received For the selection instruction, the cell reselection instruction with the latest acquisition time is selected as the instruction to be reported.
现有技术中,在获取小区重选指令之后,会立刻上报至应用处理器。而本申请实施例中,在获取到小区重选指令之后,缓存所述小区重选指令,并在到达缓存时间之后,将缓存的各个小区重选指令中,获取时间最晚的小区重选指令作为待上报指令。因此,与现有技术相比,本申请实施例公开的方案能够减少小区重选指令的上报次数,从而减少应用处理器被唤醒的次数,避免应用处理器被频繁唤醒。In the prior art, after obtaining the cell reselection instruction, it will be reported to the application processor immediately. However, in the embodiment of the present application, after the cell reselection instruction is obtained, the cell reselection instruction is cached, and after the cache time is reached, among the cached cell reselection instructions, the latest cell reselection instruction is obtained As an instruction to be reported. Therefore, compared with the prior art, the solution disclosed in the embodiments of the present application can reduce the number of times of reporting the cell reselection instruction, thereby reducing the number of times the application processor is woken up and avoiding frequent wakeup of the application processor.
进一步的,在确定待上报指令之后,还可以将缓存的其他小区重选指令删除,不再进行缓存,以节省存储空间。Further, after the instruction to be reported is determined, the cached other cell reselection instruction can also be deleted, and the cache is no longer cached to save storage space.
其中,小区重选指令的缓存时间由公式(2)确定,在公式(2)中,β为预设的常数,其取值通常为小于1的正数,例如可设置为0.7,T12为缓存时间的初始值,其具体时长可根据实际应用需求预先设定。通过该公式可知,若移动终端处于第一状态的时长小于预设的时间长度T3,则对应的缓存时间为T12,这种情况下,缓存时间与缓存时间的初始值相等;若移动终端处于第一状态的时长不小于预设的时间长度T3,并且不大于预设的时间长度T4,则对应的缓存时间为t2*β+T12;若移动终端处于第一状态的时长大于预设的时间长度T4,则对应的缓存时间为t2+T12。The buffer time of the cell reselection instruction is determined by formula (2). In formula (2), β is a preset constant, and its value is usually a positive number less than 1, for example, it can be set to 0.7 and T12 is cache The initial value of time and its specific duration can be preset according to the actual application requirements. According to this formula, if the duration of the mobile terminal in the first state is less than the preset time length T3, the corresponding cache time is T12. In this case, the cache time is equal to the initial value of the cache time; if the mobile terminal is in the first state The duration of a state is not less than the preset time length T3, and not greater than the preset time length T4, then the corresponding cache time is t2 * β + T12; if the mobile terminal is in the first state, the duration is greater than the preset time length T4, the corresponding cache time is t2 + T12.
根据上述公式可知,本申请实施例中,移动终端处于第一状态的时长越长,则小区切换指令的缓存时间越长。According to the above formula, in the embodiment of the present application, the longer the mobile terminal is in the first state, the longer the buffering time of the cell switching instruction.
另外,当移动终端处于第一状态时,除了时间更新指令、小区切换指令和小区重选指令以外,还能够获取到其他类型的需要向应用处理器上报的指令。In addition, when the mobile terminal is in the first state, in addition to the time update instruction, the cell handover instruction, and the cell reselection instruction, other types of instructions that need to be reported to the application processor can be obtained.
例如,服务小区或相邻小区有时会出现网络异常,这种情况下,会向移动终端频繁下发确认返回指令,以便移动终端中的应用处理器在接收到该确认返回指令之后,生成相应的确认反馈信息,再向服务小区或相邻小区传输该确认反馈信息;另外,移动终端在与服务小区进行数据传输时,需要与服务小区之间建立数据链路,以便通过该数据链路进行数据传输,但是有些情况下,例如服务小区的网络信号较弱,会导致该数据链路建立不成功,服务小区 会向移动终端下发链路建立失败指令;另外,移动终端在确定服务小区之后,通常需要进行服务小区的注册,但有些情况下,移动终端的注册请求无法传输至服务小区,或者服务小区下发的注册确认信息无法传输至移动终端,从而导致移动终端注册失败,这种情况下,移动终端会生成网络注册失败指令。其中,确认返回指令、链路建立失败指令和网络注册失败指令,往往需要上报至应用处理器,以便应用处理器执行相应的操作。当然,还存在其他类型的需要向应用处理器上报的指令,本申请实施例对此不做限定。For example, a network abnormality may sometimes occur in a serving cell or a neighboring cell. In this case, a confirmation return instruction is frequently issued to the mobile terminal, so that the application processor in the mobile terminal generates a corresponding response after receiving the confirmation return instruction. Confirm the feedback information, and then transmit the confirmation feedback information to the serving cell or the neighboring cell; in addition, when the mobile terminal performs data transmission with the serving cell, it needs to establish a data link with the serving cell in order to perform data through the data link Transmission, but in some cases, for example, the network signal of the serving cell is weak, which will cause the data link establishment to be unsuccessful, and the serving cell will issue a link establishment failure instruction to the mobile terminal; in addition, after the mobile terminal determines the serving cell, The registration of the serving cell is usually required, but in some cases, the registration request of the mobile terminal cannot be transmitted to the serving cell, or the registration confirmation information issued by the serving cell cannot be transmitted to the mobile terminal, resulting in the mobile terminal registration failure. In this case , The mobile terminal will generate a network registration failure instruction. Among them, the confirmation return instruction, the link establishment failure instruction and the network registration failure instruction often need to be reported to the application processor so that the application processor can perform the corresponding operation. Of course, there are other types of instructions that need to be reported to the application processor, which is not limited in this embodiment of the present application.
这种情况下,在本申请实施例中,还可以设定,所述待上报指令为目标时间段内的获取次数大于预设次数的指令,以避免获取到的指令造成应用处理器的频繁唤醒。In this case, in the embodiment of the present application, it may also be set that the instruction to be reported is an instruction whose acquisition times are greater than a preset number in the target time period to avoid frequent wake-up of the application processor caused by the acquired instructions .
若目标时间段内的获取次数大于预设次数,则表明该指令的获取较为频繁,这种情况下,为了避免应用处理器被频繁唤醒,可将其作为待上报指令。If the number of acquisitions in the target time period is greater than the preset number, it indicates that the instruction is acquired more frequently. In this case, in order to avoid frequent wakeup of the application processor, it may be used as an instruction to be reported.
进一步的,在本申请实施例中,在获取待上报指令之后,还需要根据第三阈值,确定是否需要进行上报。其中,所述第三阈值可通过多种方式获取,在其中一种方式中,所述第三阈值可预先设定为一个固定的时间值。在另外一种方式中,还可以根据移动终端处于第一状态的时长,获取第三阈值。这种情况下,本申请实施例公开的应用于移动终端的应用处理器唤醒方法,在获取需要上报至应用处理器的待上报指令之后,还包括以下步骤:Further, in the embodiment of the present application, after obtaining the instruction to be reported, it is necessary to determine whether to report according to the third threshold. Wherein, the third threshold can be obtained in various ways. In one of the ways, the third threshold can be preset as a fixed time value. In another way, the third threshold may also be obtained according to the length of time the mobile terminal is in the first state. In this case, the application processor wake-up method disclosed in the embodiments of the present application, after obtaining the instruction to be reported to the application processor, further includes the following steps:
基于所述移动终端处于所述第一状态的时长和以下公式,确定所述第三阈值:The third threshold is determined based on the duration of the mobile terminal in the first state and the following formula:
Figure PCTCN2019115020-appb-000009
Figure PCTCN2019115020-appb-000009
其中,T3(t0)表示所述第三阈值,t0表示所述移动终端处于所述第一状态的时长,T5 T6、T13和t3分别表示预设的时间长度,δ为预设的常数,其取值为小于1的正数。 Where T3 (t0) represents the third threshold, t0 represents the length of time the mobile terminal is in the first state, T5 , T6, T13 and t3 respectively represent the preset time length, and δ is a preset constant, Its value is a positive number less than 1.
上述公式中,δ为预设的常数,其取值通常为小于1的正数,例如可设置为0.7。T13为第三阈值的初始值,其具体时长可根据实际应用需求预先设定。通过该公式可知,若移动终端处于第一状态的时长小于预设的时间长度T5,则对应的第三阈值为T13;若移动终端处于第一状态的时长不小于预设的时间长度T5,并且不大于预设的时间长度T6,则对应的第三阈值为t3*δ+T13;若移动终端处于第一状态的时长大于预设的时间长度T6,则对应的第三阈值为t3+T13。In the above formula, δ is a preset constant, and its value is usually a positive number less than 1, for example, it can be set to 0.7. T13 is the initial value of the third threshold, and its specific duration may be preset according to actual application requirements. According to the formula, if the duration of the mobile terminal in the first state is less than the preset time length T5, the corresponding third threshold is T13; if the duration of the mobile terminal in the first state is not less than the preset time length T5, and If it is not greater than the preset time length T6, the corresponding third threshold is t3 * δ + T13; if the duration of the mobile terminal in the first state is greater than the preset time length T6, the corresponding third threshold is t3 + T13.
其中,第三阈值与移动终端处于第一状态的时长的对应关系示意图可如图11所示。根据上述公式和图11可以看出,本申请实施例中,移动终端处于第一状态的时长越长,则第三阈值越大,相应的,向应用处理器上报指令的次数越少,从而进一步减少应用处理器被唤醒的次数。A schematic diagram of the correspondence between the third threshold and the duration when the mobile terminal is in the first state may be as shown in FIG. 11. It can be seen from the above formula and FIG. 11 that in the embodiment of the present application, the longer the duration of the mobile terminal in the first state, the larger the third threshold, and accordingly, the fewer the number of times the instruction is reported to the application processor, thereby further Reduce the number of times the application processor is woken up.
进一步的,在本申请实施例公开的应用于移动终端的应用处理器唤醒方法中,所述向所述应用处理器上报所述待上报指令,包括:Further, in the method for waking up an application processor applied to a mobile terminal disclosed in an embodiment of the present application, the reporting of the instruction to be reported to the application processor includes:
当同一类型的待上报指令为两条以上时,比较同一类型的各条待上报指令的获取时间;When there are more than two instructions of the same type to be reported, compare the acquisition time of each instruction of the same type to be reported;
向所述应用处理器上报同一类型的各条待上报指令中获取时间最晚的待上报指令。Reporting the instruction to be reported with the latest acquisition time among each instruction to be reported of the same type to the application processor.
通过上述步骤,在向应用处理器上报所述待上报指令之前,根据待上报指令的类型对待上报指令进行划分,将同一类型的待上报指令被划分为同一组,上报每组中最晚获取到的待上报指令,这种情况下,只需向应用处理器上报各种类型的待上报指令中,最晚获取到的待上报指令,减少了向应用处理器上报的指令数量。这种情况下,应用处理器在被唤醒后,只需执行每组待上报指令中最晚获取到的待上报指令,减少了应用处理器执行的操作。Through the above steps, before reporting the instruction to be reported to the application processor, the instruction to be reported is divided according to the type of the instruction to be reported, the instructions of the same type to be reported are divided into the same group, and the latest in each group is obtained Instructions to be reported, in this case, only various types of instructions to be reported need to be reported to the application processor, and the instruction to be reported obtained at the latest can reduce the number of instructions reported to the application processor. In this case, after being awakened, the application processor only needs to execute the latest instruction to be reported in each group of instructions to be reported, which reduces the operations performed by the application processor.
相应的,在本申请另一实施例中,还公开一种应用于移动终端的应用处理器唤醒装置。参见图12所示的结构示意图,所述应用于移动终端的应用处理器唤醒装置包括:状态检测模块110、获取模块120和指令上报模块130。Correspondingly, in another embodiment of the present application, an application processor wake-up device applied to a mobile terminal is also disclosed. Referring to the schematic structural diagram shown in FIG. 12, the application processor wake-up device applied to the mobile terminal includes a state detection module 110, an acquisition module 120, and an instruction reporting module 130.
其中,所述状态检测模块110,用于检测移动终端是否处于预设的第一状态,所述第一状态为所述移动终端处于以下状态中的任一项或者多项:灭屏、非充电、速度小于预设的第一阈值以及服务小区的切换速度小于预设的第二阈值的状态。The state detection module 110 is configured to detect whether the mobile terminal is in a preset first state, where the first state is any one or more of the following states: the screen is off, non-charging A state where the speed is less than the preset first threshold and the handover speed of the serving cell is less than the preset second threshold.
其中,第一状态为以下状态中任一种或多种的组合:灭屏、非充电、速度小于预设的第一阈值以及服务小区的切换速度小于预设的第二阈值的状态。例如,在其中一种实现方式中,可设定当移动终端处于灭屏、非充电,并且移动终端的速度小于预设的第一阈值以及服务小区的切换速度小于预设的第二阈值的状态时,移动终端处于第一状态,这种状态下,表明该移动终端在当前并未被用户使用,而且,由于移动终端未被充电,为了减少移动终端的耗电量,因此,无需频繁唤醒应用处理器,而是使应用处理器保持在休眠状态。The first state is any one or a combination of the following states: off-screen, non-charging, the speed is less than the preset first threshold, and the handover speed of the serving cell is less than the preset second threshold. For example, in one of the implementation manners, a state may be set when the mobile terminal is off-screen, non-charging, and the speed of the mobile terminal is less than the preset first threshold and the handover speed of the serving cell is less than the preset second threshold At this time, the mobile terminal is in the first state. In this state, it indicates that the mobile terminal is not currently used by the user, and because the mobile terminal is not charged, in order to reduce the power consumption of the mobile terminal, there is no need to frequently wake up the application The processor, instead, keeps the application processor in a sleep state.
所述获取模块120,用于在确定所述移动终端处于所述预设的第一状态之后,获取需要上报至应用处理器的待上报指令以及所述待上报指令的优先级。The obtaining module 120 is configured to obtain the instruction to be reported and the priority of the instruction to be reported to the application processor after determining that the mobile terminal is in the preset first state.
本申请实施例中,预先为不同类型的待上报指令设置相应优先级,即设置各类型的待上报指令与优先级之间的对应关系。这种情况下,在获取待上报指令之后,即可根据该待上报指令的类型,确定该待上报指令的优先级。其中,对于需要尽快处理的待上报指令,其对应的优先级通常较高,而对于不需要尽快处理的待上报指令,则其对应的优先级通常较低。In the embodiment of the present application, corresponding priorities are set in advance for different types of instructions to be reported, that is, the correspondence between various types of instructions to be reported and priorities is set. In this case, after obtaining the instruction to be reported, the priority of the instruction to be reported can be determined according to the type of the instruction to be reported. Among them, for the instruction to be reported that needs to be processed as soon as possible, the corresponding priority is usually higher, and for the instruction to be reported that does not need to be processed as soon as possible, the corresponding priority is usually lower.
所述指令上报模块130,用于当所述待上报指令的优先级大于预设优先级时,向所述应用处理器上报所述待上报指令,以唤醒所述应用处理器。The instruction reporting module 130 is configured to report the instruction to be reported to the application processor when the priority of the instruction to be reported is greater than a preset priority, so as to wake up the application processor.
本申请实施例中,若获取到的待上报指令中,包含优先级大于预设优先级的待上报指令,则可认为满足上报条件,从而向应用处理器上报所述待上报指令。In the embodiment of the present application, if the obtained instruction to be reported includes the instruction to be reported whose priority is greater than the preset priority, it may be considered that the reporting condition is satisfied, so that the instruction to be reported is reported to the application processor.
现有技术中,移动终端每次在获取待上报指令后,都会立即将待上报指令上报至应用处理器,使应用处理器频繁获取到指令,从而被频繁唤醒。而通过本申请实施例的方案,当获取到优先级大于预设优先级的待上报指令时,才向应用处理器上报待上报指令,从而减少了向应用处理器上报指令的次数,进一步减少了应用处理器获取指令的次数,能够避免应用处理器被频繁唤醒,解决了现有技术中所存在的问题。In the prior art, each time the mobile terminal obtains the instruction to be reported, it immediately reports the instruction to be reported to the application processor, so that the application processor frequently obtains the instruction and is frequently awakened. According to the solution of the embodiment of the present application, the instruction to be reported is reported to the application processor only when the instruction to be reported with a priority greater than the preset priority is obtained, thereby reducing the number of instructions to the application processor and further reducing The number of times the application processor obtains instructions can prevent the application processor from being woken up frequently, and solves the problems in the prior art.
进一步的,由于本申请实施例减少了应用处理器被唤醒的次数,相对于现有技术来说,延长了应用处理器处于休眠状态的时间,因此,还能够延长移动终端的使用时长。Further, because the embodiment of the present application reduces the number of times the application processor is woken up, compared with the prior art, the time during which the application processor is in the sleep state is extended, and therefore, the use time of the mobile terminal can also be extended.
另外,在本申请实施例公开的应用于移动终端的应用处理器唤醒装置中,所述指令上报模块还用于,在获取需要上报至应用处理器的待上报指令以及所述待上报指令的优先级之后,如果当前时间与上一次向所述应用处理器上报待上报指令的时间之差大于第三阈值,向所述应用处理器上报所述待上报指令,以唤醒所述应用处理器。In addition, in the application processor wake-up device for mobile terminals disclosed in the embodiments of the present application, the instruction reporting module is further used to obtain the instruction to be reported to the application processor and the priority of the instruction to be reported After the level, if the difference between the current time and the time when the instruction to be reported to the application processor was last reported is greater than a third threshold, the instruction to be reported is reported to the application processor to wake up the application processor.
本申请实施例中,公开获取待上报指令的操作。根据待上报指令的类型,可通过多种方式获取待上报指令。In the embodiment of the present application, the operation of obtaining the instruction to be reported is disclosed. Depending on the type of instruction to be reported, the instruction to be reported can be obtained in various ways.
在其中一种方式中,根据时间更新指令获取待上报指令。移动终端的服务小区往往会向移动终端传输时间更新指令,该时间更新指令中加载有时间,以便移动终端根据该时间进行自身时间的更新。其中,通常在移动终端发生网络切换之后,服务小区向移动终端传输时间更新指令。In one of the modes, the instruction to be reported is obtained according to the time update instruction. The serving cell of the mobile terminal often transmits a time update instruction to the mobile terminal, and the time update instruction is loaded with time so that the mobile terminal can update its own time according to the time. Among them, generally, after the network switching of the mobile terminal occurs, the serving cell transmits a time update instruction to the mobile terminal.
本申请实施例中,在接收到时间更新指令后,会根据时间更新指令获取相应的时间上报指令,并将时间上报指令作为一种待上报指令。这种情况下,所述获取模块包括:In the embodiment of the present application, after receiving the time update instruction, the corresponding time report instruction will be obtained according to the time update instruction, and the time report instruction will be used as a kind of instruction to be reported. In this case, the acquisition module includes:
指令接收单元,用于接收至少一条时间更新指令,并在每次接收到所述时间更新指令之后,记录所述时间更新指令的接收时间;An instruction receiving unit, configured to receive at least one time update instruction, and record the time of receiving the time update instruction after each time the time update instruction is received;
时间差获取单元,用于当所述移动终端满足预设的触发条件时,获取当前时间与目标时间更新指令的接收时间之间的时间差,所述目标时间更新指令为接收时间最接近当前时间的时间更新指令,当所述移动终端亮屏和/或充电时,所述移动终端满足所述预设的触发条件;A time difference obtaining unit, configured to obtain a time difference between the current time and the reception time of a target time update instruction when the mobile terminal meets a preset trigger condition, the target time update instruction being the time when the reception time is closest to the current time An update instruction, when the mobile terminal lights up and / or charges, the mobile terminal meets the preset trigger condition;
时间上报指令获取单元,用于获取所述时间差与所述目标时间更新指令中包含的时间的和,并生成包含所述和的时间上报指令,所述时间上报指令为所述待上报指令。The time reporting instruction acquiring unit is configured to acquire the sum of the time difference and the time included in the target time update instruction, and generate a time reporting instruction including the sum, the time reporting instruction is the instruction to be reported.
在现有技术中,移动终端每次在接收到时间更新指令之后,就将时间更新指令上报至应用处理器,以唤醒应用处理器,使应用处理器执行时间更新的操作。而本申请实施例的上述方案中,在获取时间更新指令之后,并未立即上报至应用处理器,而是缓存该时间更新指令,当移动终端满足预设的触发条件时,基于最晚接收到的时间更新指令,生成相应的时间上报指令,将时间上报指令作为待上报指令。因此,相对于现有技术来说,本申请实施例公开的方案减少了向应用处理器上报指令的次数和上报指令的数量,进一步减少了应用处理器被唤醒的次数,从而避免应用处理器被频繁唤醒。In the prior art, each time the mobile terminal receives the time update instruction, it reports the time update instruction to the application processor to wake up the application processor and enable the application processor to perform the time update operation. In the above solution of the embodiment of the present application, after the time update instruction is obtained, it is not immediately reported to the application processor, but the time update instruction is cached. When the mobile terminal meets the preset trigger condition, the Time update instruction, generate the corresponding time report instruction, and use the time report instruction as the instruction to be reported. Therefore, compared with the prior art, the solution disclosed in the embodiments of the present application reduces the number of times and the number of instructions reported to the application processor, and further reduces the number of times the application processor is woken up, thereby avoiding the application processor from being Wake up frequently.
另外,还可根据小区切换指令获取相应的待上报指令。这种情况下,在本申请实施例公开的应用于移动终端的应用处理器唤醒装置,所述获取模块包括:In addition, the corresponding instruction to be reported can also be obtained according to the cell switching instruction. In this case, in the application processor wake-up device for mobile terminals disclosed in the embodiments of the present application, the acquisition module includes:
第一测量单元,用于在接收服务小区下发的测量请求之后,测量第一目标小区的信道质量,并向所述服务小区上报所述第一目标小区的信道质量,所述第一目标小区为小区优先级不低于预设的第一优先级门限的小区;A first measurement unit, configured to measure the channel quality of the first target cell after receiving the measurement request issued by the serving cell, and report the channel quality of the first target cell to the serving cell, the first target cell It is a cell whose cell priority is not lower than the preset first priority threshold;
第一指令获取单元,用于获取所述服务小区基于预设的小区切换规则和所述第一目标小区的信道质量生成的小区切换指令,所述小区切换指令为所述待上报指令。The first instruction obtaining unit is configured to obtain a cell switching instruction generated by the serving cell based on a preset cell switching rule and the channel quality of the first target cell, and the cell switching instruction is the command to be reported.
在现有技术中,在接收到服务小区下发的测量请求之后,移动终端会测量各个小区的信道质量。而本申请实施例中,只测量小区优先级不低于预设的第一优先级门限的小区的信道质量,从而减少了移动终端在测量信道质量时的工作量,提高了信道质量的测量效率。In the prior art, after receiving the measurement request issued by the serving cell, the mobile terminal measures the channel quality of each cell. However, in the embodiment of the present application, only the channel quality of the cell whose cell priority is not lower than the preset first priority threshold is measured, thereby reducing the workload of the mobile terminal in measuring the channel quality and improving the measurement efficiency of the channel quality .
在本申请另一实施例中,在获取到小区切换指令之后,还可以缓存所述小区切换指令,并在缓存一段时间后,再根据缓存的所述小区切换指令确定待上报指令。这种情况下,所述获取模块包括:In another embodiment of the present application, after the cell switching instruction is obtained, the cell switching instruction may be cached, and after a period of time, the command to be reported is determined according to the cached cell switching instruction. In this case, the acquisition module includes:
第二测量单元,用于在接收服务小区下发的测量请求之后,测量第一目标小区的信道质量,并向所述服务小区上报所述第一目标小区的信道质量,所述第一目标小区为小区优先级不低于预设的第一优先级门限的小区;A second measurement unit, configured to measure the channel quality of the first target cell after receiving the measurement request issued by the serving cell, and report the channel quality of the first target cell to the serving cell, the first target cell It is a cell whose cell priority is not lower than the preset first priority threshold;
第一指令缓存单元,用于获取所述服务小区基于预设的小区切换规则和所述第一目标小区的信道质量生成的小区切换指令,并缓存所述小区切换指令;A first instruction cache unit, configured to obtain a cell switching instruction generated by the serving cell based on a preset cell switching rule and the channel quality of the first target cell, and cache the cell switching instruction;
第一缓存时间确定单元,用于基于所述移动终端处于所述第一状态的时长和以下公式,确定所述小区切换指令的缓存时间:The first buffer time determining unit is configured to determine the buffer time of the cell switching instruction based on the duration of the mobile terminal in the first state and the following formula:
Figure PCTCN2019115020-appb-000010
Figure PCTCN2019115020-appb-000010
其中,T1(t0)表示所述小区切换指令的缓存时间,t0表示所述移动终端处于所述第一状态的时长,T1、T2、T11和t1分别表示预设的时间长度,α为预设的常数,其取值为小于1的正数;Where T1 (t0) represents the buffer time of the cell switching instruction, t0 represents the length of time that the mobile terminal is in the first state, T1, T2, T11 and t1 represent the preset length of time, and α is the preset The value of is a positive number less than 1;
第一指令确定单元,用于在到达所述缓存时间之后,确定缓存的至少一条小区切换指令 中,获取时间最晚的小区切换指令为所述待上报指令。The first instruction determining unit is configured to determine, after reaching the buffer time, at least one buffered cell switching instruction in the buffer, and the latest cell switching instruction is the to-be-reported instruction.
现有技术中,在接收到小区切换指令之后,会立刻上报至应用处理器。而本申请实施例中,在获取到小区切换指令之后,缓存所述小区切换指令,并在缓存时间之后,将缓存的各个小区切换指令中,获取时间最晚的小区切换指令作为待上报指令。因此,与现有技术相比,本申请实施例公开的方案能够减少小区切换指令的上报次数,从而减少应用处理器被唤醒的次数,避免应用处理器被频繁唤醒。In the prior art, after receiving the cell switching instruction, it will be reported to the application processor immediately. In the embodiment of the present application, after the cell switching instruction is obtained, the cell switching instruction is cached, and after the buffering time, among the cached cell switching instructions, the latest cell switching instruction is acquired as the command to be reported. Therefore, compared with the prior art, the solution disclosed in the embodiments of the present application can reduce the number of times of reporting the cell switching instruction, thereby reducing the number of times the application processor is woken up and avoiding frequent wakeup of the application processor.
另外,还可以根据小区重选指令获取相应的待上报指令。这种情况下,所述获取模块包括:In addition, the corresponding instruction to be reported can also be obtained according to the cell reselection instruction. In this case, the acquisition module includes:
第三测量单元,用于当检测到所述移动终端处于网络空闲状态时,测量第二目标小区的信道质量,所述第二目标小区为小区优先级不低于预设的第二优先级门限的小区;The third measurement unit is configured to measure the channel quality of the second target cell when it is detected that the mobile terminal is in a network idle state, the second target cell being a cell with a priority not lower than a preset second priority threshold Of the community
第一指令生成单元,用于当基于所述第二目标小区的信道质量和预设的小区重选规则,确定需要进行小区重选时,生成小区重选指令,所述小区重选指令为所述待上报指令。The first instruction generating unit is configured to generate a cell reselection instruction when it is determined that cell reselection is required based on the channel quality of the second target cell and a preset cell reselection rule, and the cell reselection instruction is Describe the report instruction.
在现有技术中,当检测到所述移动终端处于网络空闲状态时,会测量各个小区的信道质量。而本申请实施例中,只测量小区优先级不低于预设的第二优先级门限的小区的信道质量,从而减少了测量信道质量的工作量,提高了信道质量的测量效率。In the prior art, when it is detected that the mobile terminal is in a network idle state, the channel quality of each cell is measured. However, in the embodiment of the present application, only the channel quality of the cell whose cell priority is not lower than the preset second priority threshold is measured, thereby reducing the workload of measuring channel quality and improving the measurement efficiency of channel quality.
或者,在本申请另一实施例中,在获取到小区重选指令之后,还可以缓存所述小区重选指令,并在缓存一段时间后,再根据缓存的小区重选指令确定待上报指令。这种情况下,所述获取模块包括:Alternatively, in another embodiment of the present application, after the cell reselection instruction is obtained, the cell reselection instruction may be cached, and after a period of time, the command to be reported is determined according to the cached cell reselection instruction. In this case, the acquisition module includes:
第四测量单元,用于当检测到所述移动终端处于网络空闲状态时,测量第二目标小区的信道质量,所述第二目标小区为小区优先级不低于预设的第二优先级门限的小区;A fourth measurement unit, configured to measure the channel quality of the second target cell when it is detected that the mobile terminal is in a network idle state, the second target cell being a cell with a priority not lower than a preset second priority threshold Of the community
第二指令生成单元,用于当基于所述第二目标小区的信道质量和预设的小区重选规则,确定需要进行小区重选时,生成小区重选指令;A second instruction generating unit, configured to generate a cell reselection instruction when it is determined that cell reselection is required based on the channel quality of the second target cell and preset cell reselection rules;
第二缓存时间确定单元,用于基于所述移动终端处于所述第一状态的时长和以下公式,确定所述小区重选指令的缓存时间:The second buffer time determining unit is configured to determine the buffer time of the cell reselection instruction based on the duration of the mobile terminal in the first state and the following formula:
Figure PCTCN2019115020-appb-000011
Figure PCTCN2019115020-appb-000011
其中,T2(t0)表示所述小区重选指令的缓存时间,t0表示所述移动终端处于所述第一状态的时长,T3、T4、T12和t2分别表示预设的时间长度,β为预设的常数,其取值为小于1的正数;Where T2 (t0) represents the buffer time of the cell reselection instruction, t0 represents the length of time that the mobile terminal is in the first state, T3, T4, T12 and t2 represent the preset length of time, and β is the The set constant is a positive number less than 1;
第二指令确定单元,用于在到达所述缓存时间之后,确定缓存的至少一条小区重选指令中,获取时间最晚的小区切换指令为所述待上报指令。The second instruction determination unit is configured to determine, after reaching the cache time, at least one cache cell reselection instruction that the cell switching instruction with the latest acquisition time is the instruction to be reported.
现有技术中,在获取小区重选指令之后,会立刻上报至应用处理器。而本申请实施例中,在获取到小区重选指令之后,缓存所述小区重选指令,并在到达缓存时间之后,将缓存的各个小区重选指令中,获取时间最晚的小区重选指令作为待上报指令。因此,与现有技术相比,本申请实施例公开的方案能够减少小区重选指令的上报次数,从而减少应用处理器被唤醒的次数,避免应用处理器被频繁唤醒。In the prior art, after obtaining the cell reselection instruction, it will be reported to the application processor immediately. However, in the embodiment of the present application, after the cell reselection instruction is obtained, the cell reselection instruction is cached, and after the cache time is reached, among the cached cell reselection instructions, the latest cell reselection instruction is obtained As an instruction to be reported. Therefore, compared with the prior art, the solution disclosed in the embodiments of the present application can reduce the number of times of reporting the cell reselection instruction, thereby reducing the number of times the application processor is woken up and avoiding frequent wakeup of the application processor.
另外,当移动终端处于第一状态时,除了时间更新指令、小区切换指令和小区重选指令以外,还能够获取到其他类型的需要向应用处理器上报的指令。In addition, when the mobile terminal is in the first state, in addition to the time update instruction, the cell handover instruction, and the cell reselection instruction, other types of instructions that need to be reported to the application processor can be obtained.
这种情况下,在本申请实施例中,还可以设定,所述待上报指令为目标时间段内的获取次数大于预设次数的指令。若目标时间段内的获取次数大于预设次数,则表明该指令的获取 较为频繁,这种情况下,为了避免应用处理器被频繁唤醒,可将其作为待上报指令。In this case, in the embodiment of the present application, it may also be set that the instruction to be reported is an instruction whose number of acquisitions in the target time period is greater than a preset number of times. If the number of acquisitions in the target time period is greater than the preset number, it indicates that the instruction is obtained more frequently. In this case, in order to avoid frequent wakeup of the application processor, it can be used as an instruction to be reported.
进一步的,在本申请实施例中,在获取待上报指令之后,还需要根据第三阈值,确定是否需要进行上报。其中,所述第三阈值可通过多种方式获取,在其中一种方式中,所述第三阈值可预先设定为一个固定的时间值。在另外一种方式中,还可以根据移动终端处于第一状态的时长,获取第三阈值。这种情况下,本申请实施例中,还包括:Further, in the embodiment of the present application, after obtaining the instruction to be reported, it is necessary to determine whether to report according to the third threshold. Wherein, the third threshold can be obtained in various ways. In one of the ways, the third threshold can be preset as a fixed time value. In another way, the third threshold may also be obtained according to the length of time the mobile terminal is in the first state. In this case, the embodiments of the present application further include:
第三阈值确定模块;The third threshold determination module;
所述第三阈值确定模块用于在所述获取需要上报至应用处理器的待上报指令之后,基于所述移动终端处于所述第一状态的时长和以下公式,确定所述第三阈值:The third threshold determination module is used to determine the third threshold based on the duration of the mobile terminal in the first state and the following formula after the acquiring the instruction to be reported to the application processor:
Figure PCTCN2019115020-appb-000012
Figure PCTCN2019115020-appb-000012
其中,T3(t0)表示所述第三阈值,t0表示所述移动终端处于所述第一状态的时长,T5 T6、T13和t3分别表示预设的时间长度,δ为预设的常数,其取值为小于1的正数。 Where T3 (t0) represents the third threshold, t0 represents the length of time the mobile terminal is in the first state, T5 , T6, T13 and t3 respectively represent the preset time length, and δ is a preset constant, Its value is a positive number less than 1.
其中,第三阈值与移动终端处于第一状态的时长的对应关系示意图可如图11所示。根据上述公式和图11可以看出,本申请实施例中,移动终端处于第一状态的时长越长,则第三阈值越大,相应的,向应用处理器上报指令的次数越少,从而进一步减少应用处理器被唤醒的次数。A schematic diagram of the correspondence between the third threshold and the duration when the mobile terminal is in the first state may be as shown in FIG. 11. It can be seen from the above formula and FIG. 11 that in the embodiment of the present application, the longer the duration of the mobile terminal in the first state, the larger the third threshold, and accordingly, the fewer the number of times the instruction is reported to the application processor, thereby further Reduce the number of times the application processor is woken up.
进一步的,在本申请实施例公开的应用于移动终端的应用处理器唤醒装置中,所述指令上报模块包括:Further, in the application processor wake-up device for mobile terminals disclosed in the embodiments of the present application, the instruction reporting module includes:
时间比较单元,用于当同一类型的待上报指令为两条以上时,比较同一类型的各条待上报指令的获取时间;The time comparison unit is used to compare the acquisition time of each instruction to be reported of the same type when there are more than two instructions of the same type to be reported;
指令上报单元,用于向所述应用处理器上报同一类型的各条待上报指令中获取时间最晚的待上报指令。The instruction reporting unit is configured to report to the application processor the instruction to be reported with the latest acquisition time among the instructions to be reported of the same type.
通过上述方案,在向应用处理器上报所述待上报指令之前,根据待上报指令的类型对待上报指令进行划分,将同一类型的待上报指令被划分为同一组,上报每组中最晚获取到的待上报指令,这种情况下,只需向应用处理器上报各种类型的待上报指令中,最晚获取到的待上报指令,减少了向应用处理器上报的指令数量。这种情况下,应用处理器在被唤醒后,只需执行每组待上报指令中最晚获取到的待上报指令,减少了应用处理器执行的操作。Through the above solution, before reporting the instruction to be reported to the application processor, the instruction to be reported is divided according to the type of the instruction to be reported, the instructions of the same type to be reported are divided into the same group, and the latest in each group is obtained Instructions to be reported, in this case, only various types of instructions to be reported need to be reported to the application processor, and the instruction to be reported obtained at the latest can reduce the number of instructions reported to the application processor. In this case, after being awakened, the application processor only needs to execute the latest instruction to be reported in each group of instructions to be reported, which reduces the operations performed by the application processor.
在本申请另一实施例中,还公开一种移动终端,所述移动终端可以包括手机和电话手表等能够进行通信业务的终端设备。其中,参见图13所示的结构示意图,该移动终端包括:存储器、处理器200及存储在存储器上并可在处理器上运行的计算机程序。进一步的,还可以包括收发器100,存储器可包括随机存取存储器300、只读存储器400以及总线500。其中,处理器200通过总线500分别耦接收发器100、随机存取存储器300以及只读存储器400,所述处理器执行所述计算机程序时,实现本申请上述实施例公开的应用于移动终端的应用处理器唤醒方法的部分或全部步骤,即实现如图1,图3至图4,图6至图7,以及图9至图10所示的应用于移动终端的应用处理器唤醒方法的部分或全部步骤。In another embodiment of the present application, a mobile terminal is also disclosed. The mobile terminal may include a mobile phone, a phone watch, and other terminal devices capable of performing communication services. Wherein, referring to the schematic structural diagram shown in FIG. 13, the mobile terminal includes: a memory, a processor 200, and a computer program stored on the memory and executable on the processor. Further, the transceiver 100 may be included, and the memory may include a random access memory 300, a read-only memory 400, and a bus 500. The processor 200 is respectively coupled to the receiver 100, the random access memory 300, and the read-only memory 400 through the bus 500. When the processor executes the computer program, it implements the mobile terminal disclosed in the above embodiments of the present application. Part or all of the steps of the application processor wake-up method, that is, the implementation of the application processor wake-up method shown in FIGS. 1, 3 to 4, 6 to 7, and 9 to 10 as shown in FIGS. 9 to 10 Or all steps.
另外,所述处理器200为移动终端中除应用处理器以外,其他具有处理功能的模块,并且,该模块能够向应用处理器传输指令。例如,所述处理器200可以为与应用处理器相连接的调制解调器。In addition, the processor 200 is a module with processing functions other than an application processor in the mobile terminal, and the module can transmit instructions to the application processor. For example, the processor 200 may be a modem connected to the application processor.
其中,当需要运行移动终端时,通过固化在存储器中的基本输入输出系统或者嵌入式系统中的bootloader引导系统进行启动,引导移动终端进入正常运行状态。在移动终端进入正常运行状态后,在存储器中运行应用程序和操作系统,使得所述处理器执行以下操作:Among them, when the mobile terminal needs to be operated, the basic input and output system solidified in the memory or the bootloader boot system in the embedded system is used to start the system and guide the mobile terminal into a normal operating state. After the mobile terminal enters the normal operating state, the application program and the operating system are run in the memory, so that the processor performs the following operations:
检测移动终端是否处于预设的第一状态,所述第一状态为所述移动终端处于以下状态中的任一项或者多项:灭屏、非充电、速度小于预设的第一阈值以及服务小区的切换速度小于预设的第二阈值的状态;Detect whether the mobile terminal is in a preset first state, where the first state is any one or more of the following states: screen off, non-charging, speed less than a preset first threshold, and service The state where the handover speed of the cell is less than the preset second threshold;
在确定所述移动终端处于所述预设的第一状态之后,获取需要上报至应用处理器的待上报指令以及所述待上报指令的优先级;After determining that the mobile terminal is in the preset first state, obtain the instruction to be reported and the priority of the instruction to be reported to the application processor;
当所述待上报指令的优先级大于预设优先级时,向所述应用处理器上报所述待上报指令,以唤醒所述应用处理器。When the priority of the instruction to be reported is greater than the preset priority, the instruction to be reported is reported to the application processor to wake up the application processor.
本发明实施例的移动终端可对应于上述图1,图3至图4,图6至图7,以及图9至图10所对应的实施例中的移动终端,并且,该移动终端可以实现图1,图3至图4,图6至图7,以及图9至图10所对应的实施例中的移动终端所具有的功能和/或所实施的各种步骤和方法。为了简洁,在此不再赘述。The mobile terminal of the embodiment of the present invention may correspond to the mobile terminals in the embodiments corresponding to the above-mentioned FIG. 1, FIG. 3 to FIG. 4, FIG. 6 to FIG. 7, and FIG. 9 to FIG. 1. The functions and / or various steps and methods implemented by the mobile terminal in the embodiments corresponding to FIGS. 3 to 4, 6 to 7, and 9 to 10. For brevity, I will not repeat them here.
其中,任意设备中的存储介质均可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。Among them, the storage medium in any device can be a magnetic disk, optical disk, read-only memory (English: read-only memory, referred to as: ROM) or random storage memory (English: random access memory, referred to as RAM) .
处理器可以为移动终端中除应用处理器以外,其他具有处理功能的模块,并且,该模块能够向应用处理器传输指令。例如,所述处理器200可以为与应用处理器相连接的调制解调器。。处理器还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。存储器可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器还可以包括上述种类的存储器的组合。The processor may be a module with processing functions other than the application processor in the mobile terminal, and the module can transmit instructions to the application processor. For example, the processor 200 may be a modem connected to the application processor. . The processor may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD may be a complex programmable logic device (complex programmable logic device (CPLD), a field programmable logic gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL), or any combination thereof. The memory may include volatile memory (volatile memory), such as random-access memory (RAM); the memory may also include non-volatile memory (non-volatile memory), such as read-only memory (read-only) memory, ROM), flash memory (flash memory), hard disk (HDD) or solid-state drive (SSD); the memory may also include a combination of the above types of memory.
需要说明的是,本实施例也可以基于通用的物理服务器结合网络功能虚拟化(英文:Network Function Virtualization,NFV)技术实现的网络设备,该网络设备为虚拟网络设备(如,虚拟主机、虚拟路由器或虚拟交换机)。所述虚拟网络设备可以是虚拟机(英文:Virtual Machine,VM),所述虚拟机部署在硬件设备上(例如,物理服务器)。虚拟机指通过软件模拟的具有完整硬件系统功能的、运行在一个完全隔离环境中的完整计算机系统。本领域技术人员通过阅读本申请,即可在通用物理服务器上虚拟出具有上述功能的多个网络设备。此处不再赘述。It should be noted that this embodiment may also be based on a network device implemented by a general physical server combined with network function virtualization (NFV) technology, which is a virtual network device (eg, virtual host, virtual router) Or virtual switch). The virtual network device may be a virtual machine (English: Virtual Machine, VM), and the virtual machine is deployed on a hardware device (for example, a physical server). A virtual machine refers to a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment. By reading this application, a person skilled in the art can virtualize multiple network devices with the above-mentioned functions on a general physical server. I won't repeat them here.
本发明实施例涉及一种应用于移动终端的选网方法,所述移动终端可以包括手机和电话手表等能够进行通信业务的终端设备。Embodiments of the present invention relate to a network selection method applied to a mobile terminal. The mobile terminal may include a mobile phone, a telephone watch, and other terminal devices capable of performing communication services.
以移动终端为手机为例,图14示出的是与本发明实施例相关的手机1400的部分结构的框图。参考图14,手机1400包括、RF(Radio Frequency,射频)电路1410、存储器1420、其他输入设备1430、显示屏1440、传感器1450、音频电路1460、I/O子系统1470、处理器1480、以及电源1490等部件。本领域技术人员可以理解,图14中示出的手机结构并不构成 对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。本领领域技术人员可以理解显示屏1440属于用户界面(UI,User Interface),且手机1400可以包括比图示或者更少的用户界面。Taking the mobile terminal as a mobile phone as an example, FIG. 14 is a block diagram of a partial structure of a mobile phone 1400 related to an embodiment of the present invention. 14, the mobile phone 1400 includes an RF (Radio Frequency) circuit 1410, a memory 1420, other input devices 1430, a display 1440, a sensor 1450, an audio circuit 1460, an I / O subsystem 1470, a processor 1480, and a power supply 1490 and other components. Those skilled in the art may understand that the structure of the mobile phone shown in FIG. 14 does not constitute a limitation on the mobile phone, and may include more or fewer components than the illustration, or combine certain components, or split certain components, or Different parts arrangement. Those skilled in the art can understand that the display screen 1440 belongs to a user interface (UI, User Interface), and the mobile phone 1400 may include a user interface that is less than illustrated or less.
下面结合图14对手机1400的各个构成部件进行具体的介绍:The following describes each component of the mobile phone 1400 in detail with reference to FIG. 14:
RF电路1410可用于收发信息或通话过程中,信号的接收和发送,特别地,可将基站的下行信息接收后,给处理器1480处理;另外,还可将设计上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,RF电路1410还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、(Long长期演进Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 1410 can be used to receive and send signals during the sending and receiving of information or during a call. In particular, the downstream information of the base station can be received and processed by the processor 1480; in addition, the designed uplink data can also be sent to the base station. Generally, RF circuits include but are not limited to antennas, at least one amplifier, transceiver, coupler, LNA (Low Noise Amplifier, low noise amplifier), duplexer, and so on. In addition, the RF circuit 1410 can also communicate with the network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access (Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (Wideband Code Multiple Division Access, WCDMA), (Long Term Evolution Evolution, LTE), email, short message service (Short Messaging Service, SMS), etc.
存储器1420可用于存储软件程序以及模块,处理器1480通过运行存储在存储器120的软件程序以及模块,从而执行手机1400的各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图象播放功能等)等;存储数据区可存储根据手机1400的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1420 may be used to store software programs and modules. The processor 1480 executes various functional applications and data processing of the mobile phone 1400 by running the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required by at least one function (such as a sound playback function, an image playback function, etc.), etc .; the storage data area may store Data created according to the use of the mobile phone 1400 (such as audio data, phone book, etc.), etc. In addition, the memory 1420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
其他输入设备1430可用于接收输入的数字或字符信息,以及生成与手机1400的用户设置以及功能控制有关的键信号输入。具体地,其他输入设备1430可包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆、光鼠(光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸)等中的一种或多种。其他输入设备1430与I/O子系统1470的其他输入设备控制器1471相连接,在其他设备输入控制器1471的控制下与处理器1480进行信号交互。 Other input devices 1430 may be used to receive inputted numeric or character information, and generate key signal inputs related to user settings and function control of the mobile phone 1400. Specifically, other input devices 1430 may include but are not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and light mice (light mice are touch sensitive that do not display visual output Surface, or an extension of a touch-sensitive surface formed by a touch screen, etc.). The other input device 1430 is connected to the other input device controller 1471 of the I / O subsystem 1470, and performs signal interaction with the processor 1480 under the control of the other device input controller 1471.
显示屏1440可用于显示由用户输入的信息或提供给用户的信息以及手机1400的各种菜单,还可以接受用户输入。具体的显示屏1440可包括显示面板1441,以及触控面板1442。其中显示面板1441可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板1441。触控面板1442,也称为触摸屏、触敏屏等,可收集用户在其上或附近的接触或者非接触操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1442上或在触控面板1442附近的操作,也可以包括体感操作;该操作包括单点控制操作、多点控制操作等操作类型),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板1442可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位、姿势,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成处理器能够处理的信息,再送给处理器1480,并能接收处理器1480发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1442,也可以采用未来发展的任何技术实现触控面板1442。进一步的,触控面板1442可覆盖显示面板1441,用户可以根据显示面板1441显示的内容(该显示内容包括但不限于,软键盘、虚拟鼠标、虚拟按键、图标等等),在显示面板1441上覆盖的触控面板1442上或者附近进行操作,触控面板1442 检测到在其上或附近的操作后,通过I/O子系统1470传送给处理器1480以确定用户输入,随后处理器1480根据用户输入通过I/O子系统1470在显示面板1441上提供相应的视觉输出。虽然在图12中,触控面板1442与显示面板1441是作为两个独立的部件来实现手机1400的输入和输入功能,但是在某些实施例中,可以将触控面板1442与显示面板1441集成而实现手机1400的输入和输出功能。The display screen 1440 can be used to display information input by the user or provided to the user, and various menus of the mobile phone 1400, and can also accept user input. The specific display 1440 may include a display panel 1441 and a touch panel 1442. The display panel 1441 can be configured in the form of an LCD (Liquid Crystal), an OLED (Organic Light-Emitting Diode, organic light emitting diode), etc. to configure the display panel 1441. The touch panel 1442, also known as a touch screen, touch-sensitive screen, etc., can collect user contact or non-contact operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc. on the touch panel 1442 Or operations near the touch panel 1442 may also include somatosensory operations; the operations include single-point control operations, multi-point control operations and other operation types), and drive the corresponding connection device according to a preset program. Optionally, the touch panel 1442 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation and posture, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device and converts it into a processor capable of The processed information is sent to the processor 1480, and can receive the command sent by the processor 1480 and execute it. In addition, the touch panel 1442 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves, or the touch panel 1442 may be implemented using any technology developed in the future. Further, the touch panel 1442 can cover the display panel 1441, and the user can display on the display panel 1441 according to the content displayed by the display panel 1441 (the display content includes but is not limited to a soft keyboard, a virtual mouse, a virtual key, an icon, etc.) Operate on or near the covered touch panel 1442. After detecting the operation on or near the touch panel 1442, the touch panel 1442 transmits it to the processor 1480 through the I / O subsystem 1470 to determine the user input. The input provides a corresponding visual output on the display panel 1441 through the I / O subsystem 1470. Although in FIG. 12, the touch panel 1442 and the display panel 1441 are two separate components to realize the input and input functions of the mobile phone 1400, in some embodiments, the touch panel 1442 and the display panel 1441 may be integrated And realize the input and output functions of the mobile phone 1400.
手机1400还可包括至少一种传感器1450,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1441的亮度,接近传感器可在手机1400移动到耳边时,关闭显示面板1441和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机1400还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile phone 1400 may further include at least one sensor 1450, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1441 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1441 when the mobile phone 1400 moves to the ear / Or backlight. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when at rest, and can be used to identify mobile phone gesture applications (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc. As for the mobile phone 1400, other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. can be configured here. Repeat again.
音频电路1460、扬声器1461,麦克风1462可提供用户与手机1400之间的音频接口。音频电路1460可将接收到的音频数据转换后的信号,传输到扬声器1461,由扬声器1461转换为声音信号输出;另一方面,麦克风1462将收集的声音信号转换为信号,由音频电路1460接收后转换为音频数据,再将音频数据输出至RF电路1408以发送给比如另一手机,或者将音频数据输出至存储器1420以便进一步处理。The audio circuit 1460, the speaker 1461, and the microphone 1462 can provide an audio interface between the user and the mobile phone 1400. The audio circuit 1460 can transmit the received audio data converted signal to the speaker 1461, which is converted into a sound signal output by the speaker 1461; on the other hand, the microphone 1462 converts the collected sound signal into a signal, which is received by the audio circuit 1460 Convert to audio data, and then output the audio data to the RF circuit 1408 to send to, for example, another mobile phone, or output the audio data to the memory 1420 for further processing.
I/O子系统1470用来控制输入输出的外部设备,可以包括其他设备输入控制器1471、传感器控制器1472、显示控制器1473。可选的,一个或多个其他输入控制设备控制器1471从其他输入设备1430接收信号和/或者向其他输入设备1430发送信号,其他输入设备1430可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮、光鼠(光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸)。值得说明的是,其他输入控制设备控制器1471可以与任一个或者多个上述设备连接。所述I/O子系统1470中的显示控制器1473从显示屏1440接收信号和/或者向显示屏1440发送信号。显示屏1440检测到用户输入后,显示控制器1473将检测到的用户输入转换为与显示在显示屏1440上的用户界面对象的交互,即实现人机交互。传感器控制器1472可以从一个或者多个传感器1450接收信号和/或者向一个或者多个传感器1450发送信号。The I / O subsystem 1470 is used to control input and output external devices, and may include other device input controllers 1471, sensor controllers 1472, and display controllers 1473. Optionally, one or more other input control device controllers 1471 receive signals from other input devices 1430 and / or send signals to other input devices 1430, which may include physical buttons (press buttons, rocker buttons, etc.) , Dial, slide switch, joystick, click wheel, light mouse (light mouse is a touch-sensitive surface that does not display visual output, or an extension of a touch-sensitive surface formed by a touch screen). It is worth noting that the other input control device controller 1471 can be connected to any one or more of the above devices. The display controller 1473 in the I / O subsystem 1470 receives signals from the display screen 1440 and / or sends signals to the display screen 1440. After the display screen 1440 detects the user input, the display controller 1473 converts the detected user input into interaction with the user interface object displayed on the display screen 1440, that is, realizes human-computer interaction. The sensor controller 1472 may receive signals from one or more sensors 1450 and / or send signals to one or more sensors 1450.
处理器1480是手机1400的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1420内的软件程序和/或模块,以及调用存储在存储器1420内的数据,执行手机1400的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器1480可包括一个或多个处理单元;优选的,处理器1480可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1480中。The processor 1480 is the control center of the mobile phone 1400, and uses various interfaces and lines to connect the various parts of the entire mobile phone, by running or executing the software programs and / or modules stored in the memory 1420, and calling the data stored in the memory 1420, Perform various functions and process data of the mobile phone 1400, so as to perform overall monitoring of the mobile phone. Optionally, the processor 1480 may include one or more processing units; preferably, the processor 1480 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, and application programs, etc. The modem processor mainly handles wireless communication. It can be understood that, the foregoing modem processor may not be integrated into the processor 1480.
其中,当处理器1480集成应用处理器和调制解调处理器时,调制解调处理器可实现图1,图3至图4,图6至图7,以及图9至图10所对应的实施例中的功能和/或执行所对应的实施例中的各种步骤和方法,并且向应用处理器上报指令。Among them, when the processor 1480 integrates the application processor and the modem processor, the modem processor can implement the implementations corresponding to FIG. 1, FIG. 3 to FIG. 4, FIG. 6 to FIG. 7, and FIG. 9 to FIG. 10. The functions in the example and / or perform various steps and methods in the corresponding embodiment, and report the instructions to the application processor.
手机1400还包括给各个部件供电的电源1490(比如电池),优选的,电源可以通过电源管理系统与处理器1480逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。The mobile phone 1400 further includes a power supply 1490 (such as a battery) that supplies power to various components. Preferably, the power supply can be logically connected to the processor 1480 through the power management system, so as to realize functions such as charging, discharging, and power consumption management through the power management system.
尽管未示出,手机1400还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone 1400 may further include a camera, a Bluetooth module, etc., which will not be repeated here.
具体实现中,本申请实施例还提供一种计算机可读介质,其中,所述计算机可读介质包括指令,当所述计算机可读介质在计算机上运行时,使得计算机实施包括图1,图3至图4,图6至图7,以及图9至图10提供的应用于移动终端的应用处理器唤醒方法的部分或全部步骤。任意设备中的存储介质均可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。In a specific implementation, an embodiment of the present application further provides a computer-readable medium, where the computer-readable medium includes instructions, and when the computer-readable medium runs on a computer, the computer implementation includes FIGS. To FIG. 4, FIG. 6 to FIG. 7, and FIG. 9 to FIG. 10 provide some or all steps of the application processor wake-up method applied to the mobile terminal. The storage medium in any device can be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, abbreviation: ROM) or a random storage memory (English: random access memory, abbreviation: RAM), etc.
本领域技术任何还可以了解到本申请实施例列出的各种说明性逻辑块(illustrative logical block)和步骤(step)可以通过电子硬件、电脑软件,或两者的结合进行实现。这样的功能是通过硬件还是软件来实现取决于特定的应用和整个系统的设计要求。本领域技术人员可以对于每种特定的应用,可以使用各种方法实现所述的功能,但这种实现不应被理解为超出本申请实施例保护的范围。Those skilled in the art can also understand that the various illustrative logical blocks and steps listed in the embodiments of the present application can be implemented by electronic hardware, computer software, or a combination of the two. Whether such a function is implemented by hardware or software depends on the specific application and the design requirements of the entire system. A person skilled in the art may use various methods to implement the described functions for each specific application, but such implementation should not be understood as going beyond the protection scope of the embodiments of the present application.
本申请实施例中所描述的各种说明性的逻辑单元和电路可以通过通用处理器,数字信号处理器,专用集成电路(ASIC),现场可编程门阵列(FPGA)或其它可编程逻辑装置,离散门或晶体管逻辑,离散硬件部件,或上述任何组合的设计来实现或操作所描述的功能。通用处理器可以为微处理器,可选地,该通用处理器也可以为任何传统的处理器、控制器、微控制器或状态机。处理器也可以通过计算装置的组合来实现,例如数字信号处理器和微处理器,多个微处理器,一个或多个微处理器联合一个数字信号处理器核,或任何其它类似的配置来实现。The various illustrative logic units and circuits described in the embodiments of the present application may be implemented by a general-purpose processor, a digital signal processor, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices. Discrete gate or transistor logic, discrete hardware components, or any combination of the above are designed to implement or operate the described functions. The general-purpose processor may be a microprocessor, and optionally, the general-purpose processor may also be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, multiple microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration achieve.
本申请实施例中所描述的方法或算法的步骤可以直接嵌入硬件、处理器执行的软件单元、或者这两者的结合。软件单元可以存储于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动磁盘、CD-ROM或本领域中其它任意形式的存储媒介中。示例性地,存储媒介可以与处理器连接,以使得处理器可以从存储媒介中读取信息,并可以向存储媒介存写信息。可选地,存储媒介还可以集成到处理器中。处理器和存储媒介可以设置于ASIC中,ASIC可以设置于UE中。可选地,处理器和存储媒介也可以设置于UE中的不同的部件中。The steps of the method or algorithm described in the embodiments of the present application may be directly embedded in hardware, a software unit executed by a processor, or a combination of both. The software unit may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium in the art. Illustratively, the storage medium may be connected to the processor, so that the processor can read information from the storage medium and can write information to the storage medium. Alternatively, the storage medium may also be integrated into the processor. The processor and the storage medium may be provided in the ASIC, and the ASIC may be provided in the UE. Optionally, the processor and the storage medium may also be provided in different components in the UE.
应理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that in various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not be used for the embodiments of this application. The implementation process constitutes no limitation.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be from a website site, computer, server or data center Transmit to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device including a server, a data center, and the like integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, Solid State Disk (SSD)) or the like.
本说明书的各个部分均采用递进的方式进行描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点介绍的都是与其他实施例不同之处。尤其,对于装置和系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例部分的说明即可。Each part of this specification is described in a progressive manner. The same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。Although the preferred embodiments of the present application have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic inventive concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solutions in the embodiments of the present invention can be embodied in the form of software products in essence or part of contributions to the existing technology, and the computer software products can be stored in a storage medium, such as ROM / RAM , Magnetic disks, optical disks, etc., including several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or some parts of the embodiments.
本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于……实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。The same or similar parts between the embodiments in this specification can be referred to each other. In particular, for the embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant parts, please refer to the description in the method embodiment.
以上所述的本发明实施方式并不构成对本发明保护范围的限定。The above-mentioned embodiments of the present invention do not constitute a limitation on the protection scope of the present invention.

Claims (22)

  1. 一种应用于移动终端的应用处理器唤醒方法,其特征在于,包括:An application processor wake-up method applied to a mobile terminal, which is characterized in that it includes:
    检测移动终端是否处于预设的第一状态,所述第一状态为所述移动终端处于以下状态中的任一项或者多项:灭屏、非充电、速度小于预设的第一阈值以及服务小区的切换速度小于预设的第二阈值的状态;Detect whether the mobile terminal is in a preset first state, where the first state is any one or more of the following states: screen off, non-charging, speed less than a preset first threshold, and service The state where the handover speed of the cell is less than the preset second threshold;
    在确定所述移动终端处于所述预设的第一状态之后,获取需要上报至应用处理器的待上报指令以及所述待上报指令的优先级;After determining that the mobile terminal is in the preset first state, obtain the instruction to be reported and the priority of the instruction to be reported to the application processor;
    当所述待上报指令的优先级大于预设优先级时,向所述应用处理器上报所述待上报指令,以唤醒所述应用处理器。When the priority of the instruction to be reported is greater than the preset priority, the instruction to be reported is reported to the application processor to wake up the application processor.
  2. 根据权利要求1所述的应用于移动终端的应用处理器唤醒方法,其特征在于,在获取需要上报至应用处理器的待上报指令以及所述待上报指令的优先级之后,还包括:The method for waking up an application processor of a mobile terminal according to claim 1, wherein after acquiring the instruction to be reported to the application processor and the priority of the instruction to be reported, the method further comprises:
    如果当前时间与上一次向所述应用处理器上报待上报指令的时间之差大于第三阈值,向所述应用处理器上报所述待上报指令,以唤醒所述应用处理器。If the difference between the current time and the time when the instruction to be reported to the application processor was last reported is greater than a third threshold, the instruction to be reported is reported to the application processor to wake up the application processor.
  3. 根据权利要求1所述的应用于移动终端的应用处理器唤醒方法,其特征在于,所述获取需要上报至应用处理器的待上报指令,包括:The method for waking up an application processor of a mobile terminal according to claim 1, wherein the acquiring the instruction to be reported that needs to be reported to the application processor includes:
    接收至少一条时间更新指令,并在每次接收到所述时间更新指令之后,记录所述时间更新指令的接收时间;Receiving at least one time update instruction, and recording the time of receiving the time update instruction after each time the time update instruction is received;
    当所述移动终端满足预设的触发条件时,获取当前时间与目标时间更新指令的接收时间之间的时间差,所述目标时间更新指令为接收时间最接近当前时间的时间更新指令,当所述移动终端亮屏和/或充电时,所述移动终端满足所述预设的触发条件;When the mobile terminal satisfies the preset trigger condition, the time difference between the current time and the reception time of the target time update instruction is obtained. The target time update instruction is the time update instruction whose reception time is closest to the current time. When the mobile terminal lights up and / or charges, the mobile terminal meets the preset trigger condition;
    获取所述时间差与所述目标时间更新指令中包含的时间的和,并生成包含所述和的时间上报指令,所述时间上报指令为所述待上报指令。Obtaining a sum of the time difference and the time included in the target time update instruction, and generating a time reporting instruction including the sum, the time reporting instruction is the instruction to be reported.
  4. 根据权利要求1所述的应用于移动终端的应用处理器唤醒方法,其特征在于,所述获取需要上报至应用处理器的待上报指令包括:The method for waking up an application processor of a mobile terminal according to claim 1, wherein the acquiring the instruction to be reported to the application processor includes:
    在接收服务小区下发的测量请求之后,测量第一目标小区的信道质量,并向所述服务小区上报所述第一目标小区的信道质量,所述第一目标小区为小区优先级不低于预设的第一优先级门限的小区;After receiving the measurement request issued by the serving cell, measure the channel quality of the first target cell and report the channel quality of the first target cell to the serving cell, where the priority of the first target cell is not less than A cell with a preset first priority threshold;
    获取所述服务小区基于预设的小区切换规则和所述第一目标小区的信道质量生成的小区切换指令,所述小区切换指令为所述待上报指令。Obtain a cell switching instruction generated by the serving cell based on a preset cell switching rule and the channel quality of the first target cell, and the cell switching instruction is the command to be reported.
  5. 根据权利要求1所述的应用于移动终端的应用处理器唤醒方法,其特征在于,所述获取需要上报至应用处理器的待上报指令包括:The method for waking up an application processor of a mobile terminal according to claim 1, wherein the acquiring the instruction to be reported to the application processor includes:
    在接收服务小区下发的测量请求之后,测量第一目标小区的信道质量,并向所述服务小区上报所述第一目标小区的信道质量,所述第一目标小区为小区优先级不低于预设的第一优先级门限的小区;After receiving the measurement request issued by the serving cell, measure the channel quality of the first target cell and report the channel quality of the first target cell to the serving cell, where the priority of the first target cell is not less than A cell with a preset first priority threshold;
    获取所述服务小区基于预设的小区切换规则和所述第一目标小区的信道质量生成的小区切换指令,并缓存所述小区切换指令;Acquiring a cell switching instruction generated by the serving cell based on a preset cell switching rule and the channel quality of the first target cell, and buffering the cell switching instruction;
    基于所述移动终端处于所述第一状态的时长和以下公式,确定所述小区切换指令的缓存时间:The buffer time of the cell switching instruction is determined based on the duration of the mobile terminal in the first state and the following formula:
    Figure PCTCN2019115020-appb-100001
    Figure PCTCN2019115020-appb-100001
    其中,T1(t0)表示所述小区切换指令的缓存时间,t0表示所述移动终端处于所述第一状态的时长,T1、T2、T11和t1分别表示预设的时间长度,α为预设的常数,其取值为小于1的正数;Where T1 (t0) represents the buffer time of the cell switching instruction, t0 represents the length of time that the mobile terminal is in the first state, T1, T2, T11 and t1 represent the preset length of time, and α is the preset The value of is a positive number less than 1;
    在到达所述缓存时间之后,确定缓存的至少一条小区切换指令中,获取时间最晚的小区切换指令为所述待上报指令。After the buffer time is reached, it is determined that, among the at least one buffered cell switching instruction, the cell switching instruction with the latest acquisition time is the command to be reported.
  6. 根据权利要求1所述的应用于移动终端的应用处理器唤醒方法,其特征在于,所述获取需要上报至应用处理器的待上报指令包括:The method for waking up an application processor of a mobile terminal according to claim 1, wherein the acquiring the instruction to be reported to the application processor includes:
    当检测到所述移动终端处于网络空闲状态时,测量第二目标小区的信道质量,所述第二目标小区为小区优先级不低于预设的第二优先级门限的小区;When detecting that the mobile terminal is in a network idle state, measuring the channel quality of a second target cell, the second target cell being a cell whose cell priority is not lower than a preset second priority threshold;
    当基于所述第二目标小区的信道质量和预设的小区重选规则,确定需要进行小区重选时,生成小区重选指令,所述小区重选指令为所述待上报指令。When it is determined that cell reselection needs to be performed based on the channel quality of the second target cell and preset cell reselection rules, a cell reselection instruction is generated, and the cell reselection instruction is the instruction to be reported.
  7. 根据权利要求1所述的应用于移动终端的应用处理器唤醒方法,其特征在于,所述获取需要上报至应用处理器的待上报指令包括:The method for waking up an application processor of a mobile terminal according to claim 1, wherein the acquiring the instruction to be reported to the application processor includes:
    当检测到所述移动终端处于网络空闲状态时,测量第二目标小区的信道质量,所述第二目标小区为小区优先级不低于预设的第二优先级门限的小区;When detecting that the mobile terminal is in a network idle state, measuring the channel quality of a second target cell, the second target cell being a cell whose cell priority is not lower than a preset second priority threshold;
    当基于所述第二目标小区的信道质量和预设的小区重选规则,确定需要进行小区重选时,生成小区重选指令;When it is determined that cell reselection is required based on the channel quality of the second target cell and preset cell reselection rules, a cell reselection instruction is generated;
    基于所述移动终端处于所述第一状态的时长和以下公式,确定所述小区重选指令的缓存时间:The buffer time of the cell reselection instruction is determined based on the duration of the mobile terminal in the first state and the following formula:
    Figure PCTCN2019115020-appb-100002
    Figure PCTCN2019115020-appb-100002
    其中,T2(t0)表示所述小区重选指令的缓存时间,t0表示所述移动终端处于所述第一状态的时长,T3、T4、T12和t2分别表示预设的时间长度,β为预设的常数,其取值为小于1的正数;Where T2 (t0) represents the buffer time of the cell reselection instruction, t0 represents the length of time that the mobile terminal is in the first state, T3, T4, T12 and t2 represent the preset length of time, and β is the The set constant is a positive number less than 1;
    在到达所述缓存时间之后,确定缓存的至少一条小区重选指令中,获取时间最晚的小区切换指令为所述待上报指令。After the cache time is reached, it is determined that, among the at least one cell reselection instruction cached, the cell switching instruction with the latest acquisition time is the instruction to be reported.
  8. 根据权利要求1所述的应用于移动终端的应用处理器唤醒方法,其特征在于,The application processor wake-up method of a mobile terminal according to claim 1, wherein:
    所述待上报指令为目标时间段内的获取次数大于预设次数的指令。The instruction to be reported is an instruction whose number of acquisitions in the target time period is greater than a preset number of times.
  9. 根据权利要求1至8任一项所述的应用于移动终端的应用处理器唤醒方法,其特征在于,在所述获取需要上报至应用处理器的待上报指令之后,还包括:The application processor wake-up method for a mobile terminal according to any one of claims 1 to 8, characterized in that after the acquiring the instruction to be reported that needs to be reported to the application processor, the method further includes:
    基于所述移动终端处于所述第一状态的时长和以下公式,确定所述第三阈值:The third threshold is determined based on the duration of the mobile terminal in the first state and the following formula:
    Figure PCTCN2019115020-appb-100003
    Figure PCTCN2019115020-appb-100003
    其中,T3(t0)表示所述第三阈值,t0表示所述移动终端处于所述第一状态的时长,T5 T6、T13和t3分别表示预设的时间长度,δ为预设的常数,其取值为小于1的正数。 Where T3 (t0) represents the third threshold, t0 represents the length of time that the mobile terminal is in the first state, T5 , T6, T13, and t3 respectively represent a preset time length, and δ is a preset constant, Its value is a positive number less than 1.
  10. 根据权利要求1至9任一项所述的应用于移动终端的应用处理器唤醒方法,其特征在于,所述向所述应用处理器上报所述待上报指令包括:The application processor wake-up method for a mobile terminal according to any one of claims 1 to 9, wherein the reporting of the instruction to be reported to the application processor includes:
    当同一类型的待上报指令为两条以上时,比较同一类型的各条待上报指令的获取时间;When there are more than two instructions of the same type to be reported, compare the acquisition time of each instruction of the same type to be reported;
    向所述应用处理器上报同一类型的各条待上报指令中获取时间最晚的待上报指令。Reporting the instruction to be reported with the latest acquisition time among each instruction to be reported of the same type to the application processor.
  11. 一种应用于移动终端的应用处理器唤醒装置,其特征在于,包括:An application processor wake-up device applied to a mobile terminal is characterized in that it includes:
    状态检测模块,用于检测移动终端是否处于预设的第一状态,所述第一状态为所述移动终端处于以下状态中的任一项或者多项:灭屏、非充电、速度小于预设的第一阈值以及服务小区的切换速度小于预设的第二阈值的状态;A state detection module for detecting whether the mobile terminal is in a preset first state, where the first state is any one or more of the following states: the screen is off, non-charging, and the speed is less than the preset The first threshold value of and the handover speed of the serving cell is less than the preset second threshold value;
    获取模块,用于在确定所述移动终端处于所述预设的第一状态之后,获取需要上报至应用处理器的待上报指令以及所述待上报指令的优先级;An obtaining module, configured to obtain the instruction to be reported to the application processor and the priority of the instruction to be reported after determining that the mobile terminal is in the preset first state;
    指令上报模块,用于当所述待上报指令的优先级大于预设优先级时,向所述应用处理器上报所述待上报指令,以唤醒所述应用处理器。The instruction reporting module is used to report the instruction to be reported to the application processor when the priority of the instruction to be reported is greater than the preset priority, so as to wake up the application processor.
  12. 根据权利要求11所述的应用于移动终端的应用处理器唤醒装置,其特征在于,The application processor wake-up device for mobile terminals according to claim 11, wherein:
    所述指令上报模块还用于,在获取需要上报至应用处理器的待上报指令以及所述待上报指令的优先级之后,如果当前时间与上一次向所述应用处理器上报待上报指令的时间之差大于第三阈值,向所述应用处理器上报所述待上报指令,以唤醒所述应用处理器。The instruction reporting module is further used to obtain the instruction to be reported to the application processor and the priority of the instruction to be reported, if the current time and the last time to report the instruction to the application processor are reported If the difference is greater than the third threshold, report the instruction to be reported to the application processor to wake up the application processor.
  13. 根据权利要求11所述的应用于移动终端的应用处理器唤醒装置,其特征在于,所述获取模块包括:The application processor wake-up device for mobile terminals according to claim 11, wherein the acquisition module comprises:
    指令接收单元,用于接收至少一条时间更新指令,并在每次接收到所述时间更新指令之后,记录所述时间更新指令的接收时间;An instruction receiving unit, configured to receive at least one time update instruction, and record the time of receiving the time update instruction after each time the time update instruction is received;
    时间差获取单元,用于当所述移动终端满足预设的触发条件时,获取当前时间与目标时间更新指令的接收时间之间的时间差,所述目标时间更新指令为接收时间最接近当前时间的时间更新指令,当所述移动终端亮屏和/或充电时,所述移动终端满足所述预设的触发条件;A time difference obtaining unit, configured to obtain a time difference between the current time and the reception time of a target time update instruction when the mobile terminal meets a preset trigger condition, the target time update instruction being the time when the reception time is closest to the current time An update instruction, when the mobile terminal lights up and / or charges, the mobile terminal meets the preset trigger condition;
    时间上报指令获取单元,用于获取所述时间差与所述目标时间更新指令中包含的时间的和,并生成包含所述和的时间上报指令,所述时间上报指令为所述待上报指令。The time reporting instruction acquiring unit is configured to acquire the sum of the time difference and the time included in the target time update instruction, and generate a time reporting instruction including the sum, the time reporting instruction is the instruction to be reported.
  14. 根据权利要求11所述的应用于移动终端的应用处理器唤醒装置,其特征在于,所述获取模块包括:The application processor wake-up device for mobile terminals according to claim 11, wherein the acquisition module comprises:
    第一测量单元,用于在接收服务小区下发的测量请求之后,测量第一目标小区的信道质量,并向所述服务小区上报所述第一目标小区的信道质量,所述第一目标小区为小区优先级 不低于预设的第一优先级门限的小区;A first measurement unit, configured to measure the channel quality of the first target cell after receiving the measurement request issued by the serving cell, and report the channel quality of the first target cell to the serving cell, the first target cell It is a cell whose cell priority is not lower than the preset first priority threshold;
    第一指令获取单元,用于获取所述服务小区基于预设的小区切换规则和所述第一目标小区的信道质量生成的小区切换指令,所述小区切换指令为所述待上报指令。The first instruction obtaining unit is configured to obtain a cell switching instruction generated by the serving cell based on a preset cell switching rule and the channel quality of the first target cell, and the cell switching instruction is the command to be reported.
  15. 根据权利要求11所述的应用于移动终端的应用处理器唤醒装置,其特征在于,所述获取模块包括:The application processor wake-up device for mobile terminals according to claim 11, wherein the acquisition module comprises:
    第二测量单元,用于在接收服务小区下发的测量请求之后,测量第一目标小区的信道质量,并向所述服务小区上报所述第一目标小区的信道质量,所述第一目标小区为小区优先级不低于预设的第一优先级门限的小区;A second measurement unit, configured to measure the channel quality of the first target cell after receiving the measurement request issued by the serving cell, and report the channel quality of the first target cell to the serving cell, the first target cell It is a cell whose cell priority is not lower than the preset first priority threshold;
    第一指令缓存单元,用于获取所述服务小区基于预设的小区切换规则和所述第一目标小区的信道质量生成的小区切换指令,并缓存所述小区切换指令;A first instruction cache unit, configured to obtain a cell switching instruction generated by the serving cell based on a preset cell switching rule and the channel quality of the first target cell, and cache the cell switching instruction;
    第一缓存时间确定单元,用于基于所述移动终端处于所述第一状态的时长和以下公式,确定所述小区切换指令的缓存时间:The first buffer time determining unit is configured to determine the buffer time of the cell switching instruction based on the duration of the mobile terminal in the first state and the following formula:
    Figure PCTCN2019115020-appb-100004
    Figure PCTCN2019115020-appb-100004
    其中,T1(t0)表示所述小区切换指令的缓存时间,t0表示所述移动终端处于所述第一状态的时长,T1、T2、T11和t1分别表示预设的时间长度,α为预设的常数,其取值为小于1的正数;Where T1 (t0) represents the buffer time of the cell switching instruction, t0 represents the length of time that the mobile terminal is in the first state, T1, T2, T11 and t1 represent the preset length of time, and α is the preset The value of is a positive number less than 1;
    第一指令确定单元,用于在到达所述缓存时间之后,确定缓存的至少一条小区切换指令中,获取时间最晚的小区切换指令为所述待上报指令。The first instruction determination unit is configured to determine, after reaching the buffer time, at least one buffered cell switching instruction in the buffer, the cell switching instruction with the latest acquisition time is the instruction to be reported.
  16. 根据权利要求11所述的应用于移动终端的应用处理器唤醒装置,其特征在于,所述获取模块包括:The application processor wake-up device for mobile terminals according to claim 11, wherein the acquisition module comprises:
    第三测量单元,用于当检测到所述移动终端处于网络空闲状态时,测量第二目标小区的信道质量,所述第二目标小区为小区优先级不低于预设的第二优先级门限的小区;The third measurement unit is configured to measure the channel quality of the second target cell when it is detected that the mobile terminal is in a network idle state, the second target cell being a cell with a priority not lower than a preset second priority threshold Of the community
    第一指令生成单元,用于当基于所述第二目标小区的信道质量和预设的小区重选规则,确定需要进行小区重选时,生成小区重选指令,所述小区重选指令为所述待上报指令。The first instruction generating unit is configured to generate a cell reselection instruction when it is determined that cell reselection is required based on the channel quality of the second target cell and a preset cell reselection rule, and the cell reselection instruction is Describe the report instruction.
  17. 根据权利要求11所述的应用于移动终端的应用处理器唤醒装置,其特征在于,所述获取模块包括:The application processor wake-up device for mobile terminals according to claim 11, wherein the acquisition module comprises:
    第四测量单元,用于当检测到所述移动终端处于网络空闲状态时,测量第二目标小区的信道质量,所述第二目标小区为小区优先级不低于预设的第二优先级门限的小区;A fourth measurement unit, configured to measure the channel quality of the second target cell when it is detected that the mobile terminal is in a network idle state, the second target cell being a cell with a priority not lower than a preset second priority threshold Of the community
    第二指令生成单元,用于当基于所述第二目标小区的信道质量和预设的小区重选规则,确定需要进行小区重选时,生成小区重选指令;A second instruction generating unit, configured to generate a cell reselection instruction when it is determined that cell reselection is required based on the channel quality of the second target cell and preset cell reselection rules;
    第二缓存时间确定单元,用于基于所述移动终端处于所述第一状态的时长和以下公式,确定所述小区重选指令的缓存时间:The second buffer time determining unit is configured to determine the buffer time of the cell reselection instruction based on the duration of the mobile terminal in the first state and the following formula:
    Figure PCTCN2019115020-appb-100005
    Figure PCTCN2019115020-appb-100005
    其中,T2(t0)表示所述小区重选指令的缓存时间,t0表示所述移动终端处于所述第一状态的时长,T3、T4、T12和t2分别表示预设的时间长度,β为预设的常数,其取值为小于1的正数;Where T2 (t0) represents the buffer time of the cell reselection instruction, t0 represents the length of time that the mobile terminal is in the first state, T3, T4, T12 and t2 represent the preset length of time, and β is the The set constant is a positive number less than 1;
    第二指令确定单元,用于在到达所述缓存时间之后,确定缓存的至少一条小区重选指令中,获取时间最晚的小区切换指令为所述待上报指令。The second instruction determination unit is configured to determine, after reaching the cache time, at least one cache cell reselection instruction that the cell switching instruction with the latest acquisition time is the instruction to be reported.
  18. 根据权利要求11所述的应用于移动终端的应用处理器唤醒装置,其特征在于,The application processor wake-up device for mobile terminals according to claim 11, wherein:
    所述待上报指令为目标时间段内的获取次数大于预设次数的指令。The instruction to be reported is an instruction whose number of acquisitions in the target time period is greater than a preset number of times.
  19. 根据权利要求11至18任一项所述的应用于移动终端的应用处理器唤醒装置,其特征在于,还包括:The application processor wake-up device for mobile terminals according to any one of claims 11 to 18, further comprising:
    第三阈值确定模块;The third threshold determination module;
    所述第三阈值确定模块用于在所述获取需要上报至应用处理器的待上报指令之后,基于所述移动终端处于所述第一状态的时长和以下公式,确定所述第三阈值:The third threshold determination module is used to determine the third threshold based on the duration of the mobile terminal in the first state and the following formula after the acquiring the instruction to be reported to the application processor:
    Figure PCTCN2019115020-appb-100006
    Figure PCTCN2019115020-appb-100006
    其中,T3(t0)表示所述第三阈值,t0表示所述移动终端处于所述第一状态的时长,T5 T6、T13和t3分别表示预设的时间长度,δ为预设的常数,其取值为小于1的正数。 Where T3 (t0) represents the third threshold, t0 represents the length of time that the mobile terminal is in the first state, T5 , T6, T13, and t3 respectively represent a preset time length, and δ is a preset constant Its value is a positive number less than 1.
  20. 根据权利要求11至19任一项所述的应用于移动终端的应用处理器唤醒装置,其特征在于,所述指令上报模块包括:The application processor wake-up device for mobile terminals according to any one of claims 11 to 19, wherein the instruction reporting module includes:
    时间比较单元,用于当同一类型的待上报指令为两条以上时,比较同一类型的各条待上报指令的获取时间;The time comparison unit is used to compare the acquisition time of each instruction to be reported of the same type when there are more than two instructions of the same type to be reported;
    指令上报单元,用于向所述应用处理器上报同一类型的各条待上报指令中获取时间最晚的待上报指令。The instruction reporting unit is configured to report to the application processor the instruction to be reported with the latest acquisition time among the instructions to be reported of the same type.
  21. 一种移动终端,其特征在于,包括:A mobile terminal is characterized by comprising:
    存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如权利要求1至10中任一项所述的方法。A memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the method according to any one of claims 1 to 10 is implemented.
  22. 一种计算机可读介质,其特征在于,包括指令,当其在计算机上运行时,使得计算机执行如权利要求1至10中任意一项所述的方法。A computer-readable medium, characterized by comprising instructions which, when run on a computer, cause the computer to perform the method according to any one of claims 1 to 10.
PCT/CN2019/115020 2018-11-01 2019-11-01 Application processor awakening method and device applied to mobile terminal WO2020088650A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP23190717.1A EP4373170A1 (en) 2018-11-01 2019-11-01 Application processor wakeup method and apparatus applied to mobile terminal
JP2021520340A JP7207838B2 (en) 2018-11-01 2019-11-01 Application processor wake-up method applied to mobile terminal, mobile terminal and computer program
EP19877702.1A EP3852445B1 (en) 2018-11-01 2019-11-01 Application processor awakening method and device applied to mobile terminal
US17/241,313 US11907041B2 (en) 2018-11-01 2021-04-27 Application processor wakeup method and apparatus applied to mobile terminal

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201811296192.X 2018-11-01
CN201811296192 2018-11-01
CN201811545062.5A CN111132282B (en) 2018-11-01 2018-12-17 Application processor awakening method and device applied to mobile terminal
CN201811545062.5 2018-12-17

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/241,313 Continuation US11907041B2 (en) 2018-11-01 2021-04-27 Application processor wakeup method and apparatus applied to mobile terminal

Publications (1)

Publication Number Publication Date
WO2020088650A1 true WO2020088650A1 (en) 2020-05-07

Family

ID=70462414

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/115020 WO2020088650A1 (en) 2018-11-01 2019-11-01 Application processor awakening method and device applied to mobile terminal

Country Status (1)

Country Link
WO (1) WO2020088650A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113438687A (en) * 2021-06-23 2021-09-24 中国联合网络通信集团有限公司 Base station awakening method, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103313296A (en) * 2012-03-12 2013-09-18 美国博通公司 Application processor wake-up suppression
CN103828446A (en) * 2013-10-11 2014-05-28 华为终端有限公司 Method for processing data, modem and temrinal
CN104808766A (en) * 2015-03-31 2015-07-29 深圳市金立通信设备有限公司 Terminal
CN104808767A (en) * 2015-03-31 2015-07-29 深圳市金立通信设备有限公司 Terminal control method
CN106060907A (en) * 2016-05-25 2016-10-26 深圳天珑无线科技有限公司 Positioning module control method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103313296A (en) * 2012-03-12 2013-09-18 美国博通公司 Application processor wake-up suppression
CN103828446A (en) * 2013-10-11 2014-05-28 华为终端有限公司 Method for processing data, modem and temrinal
CN104808766A (en) * 2015-03-31 2015-07-29 深圳市金立通信设备有限公司 Terminal
CN104808767A (en) * 2015-03-31 2015-07-29 深圳市金立通信设备有限公司 Terminal control method
CN106060907A (en) * 2016-05-25 2016-10-26 深圳天珑无线科技有限公司 Positioning module control method and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3852445A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113438687A (en) * 2021-06-23 2021-09-24 中国联合网络通信集团有限公司 Base station awakening method, device and equipment
CN113438687B (en) * 2021-06-23 2022-10-11 中国联合网络通信集团有限公司 Base station awakening method, device and equipment

Similar Documents

Publication Publication Date Title
US11089551B2 (en) Method for power saving control and related products
US10444822B2 (en) Method for managing central processing unit and related products
JP6487044B2 (en) Power management method and power management apparatus for user equipment
WO2018032581A1 (en) Method and apparatus for application program control
WO2017206902A1 (en) Application control method and related device
WO2014090202A1 (en) Power control method and apparatus and terminal
WO2015081664A1 (en) Method, apparatus, device and system for controlling wireless network to be switched on/off
JP2020537213A (en) Methods for reducing terminal power consumption, and terminals
CN107438999A (en) Method into battery saving mode, the method, device and mobile terminal for exiting battery saving mode
US20150127278A1 (en) Method and device for ascertaining required charging time
WO2017156754A1 (en) Terminal device and method for processing positioning information for terminal device
WO2020088650A1 (en) Application processor awakening method and device applied to mobile terminal
WO2017206903A1 (en) Application control method and related device
CN115985323B (en) Voice wakeup method and device, electronic equipment and readable storage medium
US11907041B2 (en) Application processor wakeup method and apparatus applied to mobile terminal
CN103034319B (en) A kind of the method for display and control, control device and terminal are carried out to terminal
CN111966206B (en) Power saving control method and device for fingerprint sensor and mobile terminal
CN112433694B (en) Light intensity adjusting method and device, storage medium and mobile terminal
CN111091777B (en) Charging time debugging method and device
CN110891304B (en) gPS power consumption control method for mobile terminal
CN108958599B (en) Production line mode terminal bright screen control method and related product
CN107003902B (en) Method, device and equipment for process management
CN117112045A (en) Application program starting method and device, electronic equipment and storage medium
CN115079623A (en) Control method and device of microcontroller chip and storage medium
CN117908987A (en) Function service control method and device, storage medium and computer equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19877702

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021520340

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2019877702

Country of ref document: EP

Effective date: 20210414

NENP Non-entry into the national phase

Ref country code: DE