CN103809727B - The power-saving processing method of a kind of mobile terminal, system and mobile terminal - Google Patents
The power-saving processing method of a kind of mobile terminal, system and mobile terminal Download PDFInfo
- Publication number
- CN103809727B CN103809727B CN201210459148.2A CN201210459148A CN103809727B CN 103809727 B CN103809727 B CN 103809727B CN 201210459148 A CN201210459148 A CN 201210459148A CN 103809727 B CN103809727 B CN 103809727B
- Authority
- CN
- China
- Prior art keywords
- baseband
- sleep
- subsystem
- module
- application
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
- Power Sources (AREA)
Abstract
本发明公开了一种移动终端的省电处理方法、系统和移动终端,该省电方法将基带子系统的任务优先于应用子系统的任务进行调度处理,保证了实时性要求高的基带子系统任务得到及时的处理,并且该方法在应用子系统没有任务就绪时,应用子系统处于休眠状态,在此基础上,若基带子系统也没有任务就绪,则使基带子系统也进入睡眠状态,从而降低了移动终端的功耗,延长了使用时间,并且由于虚拟操作系统的引入,实现了基带子系统和应用子系统的通信,而且通过一个处理器既可以完成基带子系统的操作也可以完成应用子系统的操作,降低了生产成本。
The invention discloses a mobile terminal power-saving processing method, system and mobile terminal. In the power-saving method, the tasks of the baseband subsystem are prioritized over the tasks of the application subsystem for scheduling processing, ensuring the baseband subsystem with high real-time requirements The task is processed in time, and in this method, when the application subsystem does not have a task ready, the application subsystem is in a dormant state. On this basis, if the baseband subsystem does not have a task ready, the baseband subsystem is also entered into a sleep state, thereby The power consumption of the mobile terminal is reduced, the use time is extended, and the communication between the baseband subsystem and the application subsystem is realized due to the introduction of the virtual operating system, and the operation of the baseband subsystem and the application can be completed through a processor Subsystem operation reduces production costs.
Description
技术领域technical field
本发明涉及通信技术领域,具体涉及一种移动终端的省电处理方法、系统和移动终端。The present invention relates to the field of communication technologies, and in particular to a mobile terminal power saving processing method, system and mobile terminal.
背景技术Background technique
近年来,随着移动通信技术的快速发展,移动通信终端的应用越来越广泛,功能也越来越强大,其功耗也越来越大。对于便携式移动终端而言,大多体积小,且依靠电池供电,而往往又被要求具有较长的待机和使用时间,这就对终端的系统功耗提出更高的要求,以求最大限度的达到省电的目的。In recent years, with the rapid development of mobile communication technology, mobile communication terminals are more and more widely used, their functions are becoming more and more powerful, and their power consumption is also increasing. For portable mobile terminals, most of them are small in size and rely on batteries for power supply, and are often required to have a long standby and use time, which puts forward higher requirements on the system power consumption of the terminal in order to maximize the The purpose of power saving.
终端通常包括通信处理器和应用处理器,通信处理器负责基带通信,应用处理器负责终端的应用软件处理,但这对硬件的要求较高,通信处理器的利用率也较低,相应地硬件成本增加。为了节约成本及降低功耗,终端通常会采用单CPU虚拟机方案,即在单一的通信处理器上,增加虚拟机机制,用于控制基带操作系统和应用操作系统,提供通信处理器的利用率,降低硬件成本。The terminal usually includes a communication processor and an application processor. The communication processor is responsible for the baseband communication, and the application processor is responsible for the application software processing of the terminal. However, this requires high hardware and the utilization rate of the communication processor is low. Increased costs. In order to save costs and reduce power consumption, the terminal usually adopts a single-CPU virtual machine solution, that is, a virtual machine mechanism is added to a single communication processor to control the baseband operating system and application operating system to improve the utilization of the communication processor. , reduce hardware cost.
设备的系统功耗主要由动态功耗和静态功耗两部分组成,要降低设备功耗,增加设备的待机和使用时间,一个重要的方面就是延长终端的睡眠时间,且睡眠时的功耗尽可能低,从而降低设备的动态功耗。The system power consumption of the device is mainly composed of dynamic power consumption and static power consumption. To reduce the power consumption of the device and increase the standby and use time of the device, an important aspect is to extend the sleep time of the terminal, and the power consumption during sleep should be as low as possible. may be low, thereby reducing the dynamic power consumption of the device.
在对现有单CPU虚拟机方法的研究和实践过程中,本发明的发明人发现,该方法只是简单地将终端划分为基带子系统和应用子系统两个部分,未明确两个系统之间的协作关系,从而导致硬件设备未得到充分有效利用,也不能在设备任务得到及时处理的基础上保证基带子系统尽可能进入睡眠,也不能保证睡眠时间尽可能长,从而使得移动终端的功耗比较大。During the research and practice of the existing single-CPU virtual machine method, the inventors of the present invention found that the method simply divides the terminal into two parts, the baseband subsystem and the application subsystem, and does not clarify the relationship between the two systems. As a result, the hardware equipment is not fully and effectively utilized, and the baseband subsystem cannot be guaranteed to sleep as much as possible on the basis of timely processing of equipment tasks, nor can it be guaranteed that the sleep time is as long as possible, thus making the power consumption of the mobile terminal bigger.
发明内容Contents of the invention
本发明实施例提供一种移动终端的省电处理方法、系统和移动终端,以期提高基带子系统和应用子系统之间的协作关系,尽可能使移动终端处于睡眠状态并使得睡眠时间尽可能长,从而降低移动终端的功耗,同时降低成本,提高硬件设备的利用率。Embodiments of the present invention provide a mobile terminal power-saving processing method, system and mobile terminal, in order to improve the cooperative relationship between the baseband subsystem and the application subsystem, and make the mobile terminal sleep as long as possible and make the sleep time as long as possible , so as to reduce the power consumption of the mobile terminal, reduce the cost, and improve the utilization rate of the hardware device.
第一方面,本发明实施例提供了一种移动终端的省电处理方法,包括:In a first aspect, an embodiment of the present invention provides a power saving processing method for a mobile terminal, including:
基带子系统监测自身是否有任务就绪,若有,则向处理器发送进行基带子系统任务调度处理的命令,若否,则通过虚拟操作系统监测应用子系统的状态;The baseband subsystem monitors whether it has a task ready, if so, sends a command to the processor to perform task scheduling of the baseband subsystem, if not, monitors the state of the application subsystem through the virtual operating system;
若监测到所述应用子系统为工作状态,则通过虚拟操作系统通知应用子系统进行应用子系统任务调度处理,由应用子系统向所述处理器发送进行应用子系统任务调度处理的命令,当所述处理器完成应用子系统任务调度后,所述处理器通过虚拟操作系统通知基带子系统继续进行基带子系统中是否有任务就绪;If it is detected that the application subsystem is in a working state, the virtual operating system will notify the application subsystem to perform task scheduling processing of the application subsystem, and the application subsystem will send an order to the processor to perform task scheduling processing of the application subsystem. After the processor completes the task scheduling of the application subsystem, the processor notifies the baseband subsystem through the virtual operating system whether there is a task ready in the baseband subsystem to continue;
若监测到所述应用子系统为休眠状态,则基带子系统查询自身的睡眠类型,并根据得到的睡眠类型和预设的睡眠条件判断基带子系统是否可以进入睡眠状态,若是,则基带子系统进入睡眠状态。If it is detected that the application subsystem is in a sleep state, the baseband subsystem queries its own sleep type, and judges whether the baseband subsystem can enter the sleep state according to the obtained sleep type and preset sleep conditions, and if so, the baseband subsystem Go to sleep.
在第一种可能的实现方式中,在基带子系统进入睡眠状态后,所述基带子系统监测是否有唤醒信号,若有,则进一步判断所述唤醒信号是否来自于外部设备,若是,则通过所述虚拟操作系统向所述应用子系统发送进入工作状态的信号,并且所述应用子系统向所述处理器发送进行应用子系统任务调度处理的命令,当所述处理器完成应用子系统任务调度后基带子系统继续监测自身是否有任务就绪;In the first possible implementation manner, after the baseband subsystem enters the sleep state, the baseband subsystem monitors whether there is a wake-up signal, and if so, further judges whether the wake-up signal comes from an external device, and if so, passes The virtual operating system sends a signal to the application subsystem to enter the working state, and the application subsystem sends a command to the processor to perform application subsystem task scheduling processing. When the processor completes the application subsystem task After scheduling, the baseband subsystem continues to monitor whether it has a task ready;
若所述唤醒信号不是来自于外部设备,则基带子系统继续监测自身是否有任务就绪。If the wake-up signal is not from an external device, the baseband subsystem continues to monitor whether it has a task ready.
在第二种可能的实现方式中,结合第一方面,或者结合第一方面的第一种可能的实现方式,所述基带子系统进行中断信号的监测,若监测到来自于自身的中断信号和来自于应用子系统的中断信号时,则基带子系统向处理器发送优先处理来自于基带子系统的中断信号的命令。In the second possible implementation manner, in combination with the first aspect, or in combination with the first possible implementation manner of the first aspect, the baseband subsystem monitors the interruption signal, and if it detects the interruption signal from itself and When an interrupt signal comes from the application subsystem, the baseband subsystem sends a command to the processor to prioritize processing the interrupt signal from the baseband subsystem.
在第三种可能的实现方式中,结合第一方面的第一种或者第二种可能的实现方式,所述基带子系统查询自身的睡眠类型具体包括,查询所述基带子系统的睡眠时间和约束类型,从而根据预设的睡眠时间、约束类型和睡眠类型之间的对应关系得到所述基带子系统的睡眠类型。In a third possible implementation manner, in combination with the first or second possible implementation manner of the first aspect, the querying the sleep type of the baseband subsystem itself specifically includes: querying the sleep time and Constraint type, so as to obtain the sleep type of the baseband subsystem according to the correspondence between preset sleep time, constraint type and sleep type.
结合第一方面的第三种可能的实现方式,若所述基带子系统的睡眠时间大于或者等于预设的睡眠时间,且约束类型为无约束,则睡眠类型为深睡眠类型;若基带子系统的睡眠时间小于预设的睡眠时间,且约束类型为有约束,则睡眠类型为浅睡眠类型。In combination with the third possible implementation of the first aspect, if the sleep time of the baseband subsystem is greater than or equal to the preset sleep time, and the constraint type is no constraint, then the sleep type is a deep sleep type; if the baseband subsystem The sleep time is less than the preset sleep time, and the constraint type is restricted, then the sleep type is light sleep type.
第二方面,本发明实施例还提供了一种移动终端的省电处理系统,包括基带模块、应用模块和虚拟机;In the second aspect, an embodiment of the present invention also provides a power-saving processing system for a mobile terminal, including a baseband module, an application module, and a virtual machine;
所述基带模块包括监测单元、第一判断单元;所述应用模块包括外部设备;并且,所述基带模块和应用模块共同包括一个处理单元;The baseband module includes a monitoring unit and a first judging unit; the application module includes external equipment; and, the baseband module and the application module together include a processing unit;
所述监测单元用于监测所述基带模块中是否有任务就绪,若有,则发送第一信号给所述处理单元,若否,则通过所述虚拟机监测所述应用模块的状态;若监测到所述应用模块为工作状态,则通过虚拟机发送第二信号给应用模块,若监测到所述应用模块为休眠状态,则发送第三信号给所述第一判断单元;The monitoring unit is used to monitor whether there is a task ready in the baseband module, if so, send the first signal to the processing unit, if not, monitor the state of the application module through the virtual machine; if monitoring When the application module is in the working state, a second signal is sent to the application module through the virtual machine, and if it is detected that the application module is in a dormant state, a third signal is sent to the first judging unit;
所述处理单元用于当接收到第一信号时,进行所述基带模块中的任务调度处理;The processing unit is configured to perform task scheduling processing in the baseband module when receiving the first signal;
所述应用模块用于当接收到第二信号时,控制所述处理单元对应用模块中的任务进行调度处理,并当所述处理单元完成应用模块中的任务调度后,通过所述虚拟机通知所述监测单元继续监测基带模块中是否有任务就绪;The application module is configured to, when receiving the second signal, control the processing unit to schedule tasks in the application module, and when the processing unit completes task scheduling in the application module, notify via the virtual machine The monitoring unit continues to monitor whether there is a task ready in the baseband module;
所述第一判断模块用于当接收到第三信号时,查询所述基带模块的睡眠类型,并根据得到的睡眠类型和预设的睡眠条件判断所述基带模块是否可以进入睡眠状态,若是,则发送第四信号给所述处理单元;The first judging module is used to query the sleep type of the baseband module when receiving the third signal, and judge whether the baseband module can enter the sleep state according to the obtained sleep type and preset sleep conditions, if so, then sending a fourth signal to the processing unit;
所述处理单元还用于当接收到第四信号时,控制所述基带模块进入睡眠状态。The processing unit is further configured to control the baseband module to enter a sleep state when receiving a fourth signal.
在第一种可能的实现方式中,所述基带模块中还包括第二判断单元;In a first possible implementation manner, the baseband module further includes a second judging unit;
所述监测单元还用于监测所述基带模块是否被唤醒,若是,则启动所述第二判断单元;The monitoring unit is also used to monitor whether the baseband module is awakened, and if so, start the second judging unit;
所述第二判断单元用于判断所述基带模块被唤醒是否为外部设备唤醒,若为外部设备唤醒,则通过所述虚拟机通知所述应用模块进行外部设备任务调度,并且所述应用模块在收到外部设备任务调度的通知后发送第五信号给所述处理单元,若不为外部设备唤醒,则所述第二判断单元发送第六信号给所述监测单元;The second judging unit is used to judge whether the wake-up of the baseband module is awakened by an external device, and if it is awakened by an external device, the virtual machine is used to notify the application module to perform external device task scheduling, and the application module is Sending a fifth signal to the processing unit after receiving the notification of the task scheduling of the external device, if it is not awakened by the external device, the second judging unit sends a sixth signal to the monitoring unit;
所述处理单元还用于当接收到第五信号时进行外部设备任务调度,并在处理单元完成外部设备任务调度后,应用模块通过所述虚拟机通知所述监测单元继续监测所述基带模块中是否有任务就绪;The processing unit is also configured to perform external device task scheduling when receiving the fifth signal, and after the processing unit completes the external device task scheduling, the application module notifies the monitoring unit to continue monitoring the baseband module through the virtual machine whether there is a task ready;
所述监测单元还用于当接收到第六信号时,监测所述基带模块中是否有任务就绪。The monitoring unit is further configured to monitor whether a task in the baseband module is ready when receiving the sixth signal.
第三方面,本发明实施例还提供了一种移动终端,该移动终端包括上述的任一种移动终端的省电处理系统。In a third aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes any power-saving processing system for a mobile terminal described above.
由上可见,本发明实施例采用优先进行基带子系统的任务检测,保证了实时性要求很高的基带侧子系统的任务得到了及时处理,应用子系统只有当有外部设备使用需求时,才处于工作状态,其它场景下一直处于休眠状态,仅保留基带子系统进行工作,保证了所有外部设备都处于关闭或者低功耗状态,并且在外部设备处于休眠状态且基带子系统无任务就绪时,基带子系统进入睡眠,进一步降低了移动终端的动态功耗,延长了使用时间,也即基带子系统的睡眠时间和睡眠时的功耗得以优化,另外,本发明实施例引入虚拟操作系统,为基带子系统和应用子系统提供了通信通道,同时本发明实施例通过一个处理器既可以完成基带子系统的操作也可以完成应用子系统的操作,降低了成本。It can be seen from the above that the embodiment of the present invention adopts the task detection of the baseband subsystem first, which ensures that the tasks of the baseband side subsystem with high real-time requirements are processed in a timely manner, and the application subsystem is only used when there is a demand for external equipment. In the working state, it is always in the dormant state in other scenarios, and only the baseband subsystem is kept for work, ensuring that all external devices are turned off or in a low power consumption state, and when the external devices are in the dormant state and the baseband subsystem is not ready for tasks, The baseband subsystem goes to sleep, which further reduces the dynamic power consumption of the mobile terminal and prolongs the use time, that is, the sleep time and power consumption of the baseband subsystem are optimized. In addition, the embodiment of the present invention introduces a virtual operating system to provide The baseband subsystem and the application subsystem provide a communication channel, and at the same time, the embodiment of the present invention can complete the operation of the baseband subsystem and the application subsystem through one processor, thereby reducing the cost.
附图说明Description of drawings
图1是本发明实施例提供的一种移动终端的省电处理方法基本流程示意图;FIG. 1 is a schematic flow diagram of a basic flow chart of a power saving processing method for a mobile terminal provided by an embodiment of the present invention;
图2是本发明实施例提供的另一种移动终端的省电处理方法基本流程示意图;FIG. 2 is a schematic flowchart of another power-saving processing method for a mobile terminal provided by an embodiment of the present invention;
图3是本发明实施例提供的一种移动终端的省电处理系统结构示意图;FIG. 3 is a schematic structural diagram of a power-saving processing system for a mobile terminal provided by an embodiment of the present invention;
图4是本发明实施例提供的另一种移动终端的省电处理系统结构示意图。FIG. 4 is a schematic structural diagram of another power-saving processing system for a mobile terminal provided by an embodiment of the present invention.
具体实施方式detailed description
本发明实施例提供一种移动终端的省电处理方法、系统和移动终端,以期提高基带子系统和应用子系统之间的协作关系,尽可能使移动终端进入睡眠以及使睡眠时间尽可能长,从而降低终端睡眠时的功耗,同时降低成本和提高设备的利用率。Embodiments of the present invention provide a power-saving processing method, system, and mobile terminal for a mobile terminal, in order to improve the cooperative relationship between the baseband subsystem and the application subsystem, and make the mobile terminal sleep as much as possible and make the sleep time as long as possible. Therefore, the power consumption of the terminal during sleep is reduced, while the cost is reduced and the utilization rate of the device is improved.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本发明实施例提供一种移动终端的省电处理方法,包括:An embodiment of the present invention provides a power saving processing method for a mobile terminal, including:
基带子系统监测自身是否有任务就绪,若有,则向处理器发送进行基带子系统任务调度处理的命令,若否,则通过虚拟操作系统监测应用子系统的状态;The baseband subsystem monitors whether it has a task ready, if so, sends a command to the processor to perform task scheduling of the baseband subsystem, if not, monitors the state of the application subsystem through the virtual operating system;
若监测到所述应用子系统为工作状态,则通过虚拟操作系统通知应用子系统进行应用子系统任务调度处理,由应用子系统向所述处理器发送进行应用子系统任务调度处理的命令,当所述处理器完成应用子系统任务调度后,所述处理器通过虚拟操作系统通知基带子系统继续进行基带子系统中是否有任务就绪;If it is detected that the application subsystem is in a working state, the virtual operating system will notify the application subsystem to perform task scheduling processing of the application subsystem, and the application subsystem will send an order to the processor to perform task scheduling processing of the application subsystem. After the processor completes the task scheduling of the application subsystem, the processor notifies the baseband subsystem through the virtual operating system whether there is a task ready in the baseband subsystem to continue;
若监测到所述应用子系统为休眠状态,则基带子系统查询自身的睡眠类型,并根据得到的睡眠类型和预设的睡眠条件判断基带子系统是否可以进入睡眠状态,若是,则基带子系统进入睡眠状态。If it is detected that the application subsystem is in a sleep state, the baseband subsystem queries its own sleep type, and judges whether the baseband subsystem can enter the sleep state according to the obtained sleep type and preset sleep conditions, and if so, the baseband subsystem Go to sleep.
进一步的,在基带子系统进入睡眠状态后,所述基带子系统监测是否有唤醒信号,若有,则进一步判断所述唤醒信号是否来自于外部设备,若是,则通过所述虚拟操作系统向所述应用子系统发送进入工作状态的信号,并且所述应用子系统向所述处理器发送进行应用子系统任务调度处理的命令,当所述处理器完成应用子系统任务调度后基带子系统继续监测自身是否有任务就绪;Further, after the baseband subsystem enters the sleep state, the baseband subsystem monitors whether there is a wake-up signal, and if so, further judges whether the wake-up signal comes from an external device, and if so, sends a message to the virtual operating system through the virtual operating system. The application subsystem sends a signal to enter the working state, and the application subsystem sends a command to the processor to perform task scheduling of the application subsystem. After the processor completes the task scheduling of the application subsystem, the baseband subsystem continues to monitor Whether it has a task ready;
若所述唤醒信号不是来自于外部设备,则基带子系统继续监测自身是否有任务就绪。If the wake-up signal is not from an external device, the baseband subsystem continues to monitor whether it has a task ready.
再进一步说,所述基带子系统还进行中断信号的检测,若监测到来自于自身的中断信号和来自于应用子系统的中断信号时,则基带子系统向处理器发送优先处理来自于基带子系统的中断信号的命令。Further speaking, the baseband subsystem also detects the interrupt signal. If the interrupt signal from itself and the interrupt signal from the application subsystem are detected, the baseband subsystem sends a priority processing request from the baseband subsystem to the processor. System interrupt signal command.
需要说明的是,在本发明实施例中基带子系统包括实时操作系统及运行其上的软硬件,应用子系统包括应用操作系统及运行其上的软硬件,实时操作系统作为主控系统,其控制基带子系统相关的外部设备和任务处理,同时负责基带子系统侧的设备以及基带子系统和应用子系统的共享设备的管理,应用操作系统作为从控系统,其控制应用子系统相关的中断和任务处理,同时负责应用子系统侧的设备管理;It should be noted that, in the embodiment of the present invention, the baseband subsystem includes a real-time operating system and the software and hardware running on it, and the application subsystem includes an application operating system and the software and hardware running on it, and the real-time operating system is used as the main control system. Control the external equipment and task processing related to the baseband subsystem, and be responsible for the management of the equipment on the baseband subsystem side and the shared equipment between the baseband subsystem and the application subsystem. The application operating system is used as a slave control system, which controls the interruption related to the application subsystem and task processing, and is also responsible for device management on the application subsystem side;
在本发明实施例中增加了虚拟操作系统,用于基带子系统中的实时操作系统和应用子系统中的应用操作系统之间的通信,并负责将已注册的中断发送给基带子系统或者应用子系统,为保证基带子系统的实时性,基带子系统的中断优先级高于应用子系统中断的优先级。In the embodiment of the present invention, a virtual operating system is added, which is used for communication between the real-time operating system in the baseband subsystem and the application operating system in the application subsystem, and is responsible for sending registered interrupts to the baseband subsystem or applications Subsystem, in order to ensure the real-time performance of the baseband subsystem, the interrupt priority of the baseband subsystem is higher than that of the application subsystem.
该虚拟操作系统使得处理器既可以用于基带子系统的任务调度,也可以用于应用子系统的任务调度,提高了处理器的利用率,从而降低了硬件成本;由上可见,本发明实施例提供的移动终端的省电处理方法优先由基带子系统监测自身是否有任务就绪,然后再监测应用子系统的状态,当应用子系统为工作状态时,说明外设有任务需要处理,此时,实时操作系统控制处理器进行外部设备的任务处理,当应用子系统为休眠状态时,基带子系统查询自身是否可以进入睡眠状态,当符合睡眠条件时,则基带子系统进入睡眠,降低了功耗,延长了移动终端的使用时间,另外,本发明实施例引入虚拟操作系统,为基带子系统和应用子系统提供了通信通道,同时本发明实施例只采用了一个处理器,降低了成本。The virtual operating system enables the processor to be used for both the task scheduling of the baseband subsystem and the task scheduling of the application subsystem, which improves the utilization rate of the processor and reduces the hardware cost; as can be seen from the above, the implementation of the present invention In the power-saving processing method of the mobile terminal provided in the example, the baseband subsystem first monitors whether there are tasks ready, and then monitors the status of the application subsystem. , the real-time operating system controls the processor to process tasks of external devices. When the application subsystem is in the sleep state, the baseband subsystem queries whether it can enter the sleep state. When the sleep condition is met, the baseband subsystem enters the sleep state, reducing the power In addition, the embodiment of the present invention introduces a virtual operating system to provide a communication channel for the baseband subsystem and the application subsystem. At the same time, the embodiment of the present invention only uses one processor, which reduces the cost.
本发明实施例提供另一种移动终端的省电处理方法,参见图1所示,包括:An embodiment of the present invention provides another power-saving processing method for a mobile terminal, as shown in FIG. 1 , including:
S101、基带子系统监测自身是否有任务就绪,若有,则进行步骤S102,若否,则进行步骤S103。S101. The baseband subsystem monitors whether it has a task ready, if yes, proceed to step S102, if not, proceed to step S103.
S102、基带子系统中的实时操作系统控制处理器对就绪的基带子系统任务进行调度处理;S102. The real-time operating system control processor in the baseband subsystem schedules and processes the ready baseband subsystem tasks;
需要说明的是,当处理器完成基带子系统的任务调度后,返回步骤S101,即基带子系统继续监测自身是否有任务就绪。It should be noted that, after the processor completes the task scheduling of the baseband subsystem, it returns to step S101, that is, the baseband subsystem continues to monitor whether it has any tasks ready.
S103、基带子系统通过虚拟操作系统监测应用子系统的状态;S103. The baseband subsystem monitors the state of the application subsystem through the virtual operating system;
其中,基带子系统中包括实时操作系统及运行其上的软硬件,应用子系统包括应用操作系统及运行其上的软硬件;Among them, the baseband subsystem includes a real-time operating system and the software and hardware running on it, and the application subsystem includes an application operating system and the software and hardware running on it;
实时操作系统将查询应用子系统状态的信号发送给虚拟操作系统,虚拟操作系统再将该信号发送给应用操作系统,应用操作系统接收到该信号后再将自身的状态通过虚拟操作系统返回给实时操作系统。The real-time operating system sends a signal to query the state of the application subsystem to the virtual operating system, and the virtual operating system then sends the signal to the application operating system. After receiving the signal, the application operating system returns its own state to the real-time system through the virtual operating system. operating system.
S104、判断基带子系统监测到的应用子系统状态是否为休眠状态,若否,则进行步骤S105,若是,则进行步骤S106。S104. Determine whether the state of the application subsystem monitored by the baseband subsystem is a dormant state, if not, proceed to step S105, and if yes, proceed to step S106.
S105、处理器进行应用子系统任务调度处理,并在处理器完成应用子系统任务调度处理后基带应用子系统继续监测自身是否有任务就绪;S105. The processor performs the task scheduling processing of the application subsystem, and after the processor completes the task scheduling processing of the application subsystem, the baseband application subsystem continues to monitor whether it has a task ready;
具体来说,基带子系统通过虚拟操作系统通知应用子系统进行任务调度处理,应用子系统再控制处理器进行应用子系统任务调度处理,并且在处理器完成应用子系统任务调度处理后,应用子系统将完成任务调度的信号通过虚拟操作系统传递给基带子系统,基带子系统接收到该信号后继续进行自身是否有任务就绪的监测。Specifically, the baseband subsystem notifies the application subsystem to perform task scheduling processing through the virtual operating system, and the application subsystem then controls the processor to perform application subsystem task scheduling processing, and after the processor completes the application subsystem task scheduling processing, the application subsystem The system transmits the signal of task scheduling completion to the baseband subsystem through the virtual operating system, and the baseband subsystem continues to monitor whether it has a task ready after receiving the signal.
S106、基带子系统查询自身的睡眠类型;S106. The baseband subsystem queries its own sleep type;
具体的,基带子系统查询自身的睡眠时间和约束类型,再根据预设的睡眠时间、约束类型和睡眠类型之间的对应关系得到自身的睡眠类型。Specifically, the baseband subsystem queries its own sleep time and constraint type, and then obtains its own sleep type according to the preset correspondence between the sleep time, constraint type, and sleep type.
S107、将得到的睡眠类型与预设的睡眠条件进行比较,若符合睡眠条件,则进行步骤S108,否不符合睡眠条件,则基带子系统控制处理器进行基带子系统任务调度处理。S107. Compare the obtained sleep type with the preset sleep condition. If the sleep condition is met, proceed to step S108. If not, the baseband subsystem control processor performs the baseband subsystem task scheduling process.
在本发明实施例中,具体的,在基带子系统中预先设定睡眠时间、约束类型和睡眠类型之间的对应关系,因此通过查询基带子系统的睡眠时间和约束类型可以得到睡眠类型;In the embodiment of the present invention, specifically, the corresponding relationship between sleep time, constraint type and sleep type is preset in the baseband subsystem, so the sleep type can be obtained by querying the sleep time and constraint type of the baseband subsystem;
若基带子系统的睡眠时间大于或者等于预设的睡眠时间,且约束类型为无约束,则睡眠类型为深睡眠类型,并且深睡眠类型对应可进入睡眠状态,此种情况下,只有外部设备请求或睡眠时间结束时,基带子系统可被唤醒;If the sleep time of the baseband subsystem is greater than or equal to the preset sleep time, and the constraint type is unconstrained, the sleep type is the deep sleep type, and the deep sleep type corresponds to the sleep state. In this case, only the external device requests or when the sleep time is over, the baseband subsystem can be woken up;
若基带子系统的睡眠时间小于预设的睡眠时间,且约束类型为有约束,则睡眠类型为浅睡眠类型,并且浅睡眠类型对应可进入睡眠状态,此种情况下,任何中断请求或睡眠时间结束时,基带子系统可被唤醒。If the sleep time of the baseband subsystem is less than the preset sleep time, and the constraint type is restricted, the sleep type is the light sleep type, and the light sleep type corresponds to the sleep state. In this case, any interrupt request or sleep time At the end, the baseband subsystem can be woken up.
S108、基带子系统通过配置进入睡眠状态。S108. The baseband subsystem enters a sleep state through configuration.
需要说明的是,在本发明实施例中基带子系统包括实时操作系统及运行其上的软硬件,应用子系统包括应用操作系统及运行其上的软硬件,实时操作系统作为主控系统,其控制基带子系统相关的外部设备和任务处理,同时负责基带子系统侧的设备以及基带子系统和应用子系统的共享设备的管理,应用操作系统作为从控系统,其控制应用子系统相关的中断和任务处理,同时负责应用子系统侧的设备管理;It should be noted that, in the embodiment of the present invention, the baseband subsystem includes a real-time operating system and the software and hardware running on it, and the application subsystem includes an application operating system and the software and hardware running on it, and the real-time operating system is used as the main control system. Control the external equipment and task processing related to the baseband subsystem, and be responsible for the management of the equipment on the baseband subsystem side and the shared equipment between the baseband subsystem and the application subsystem. The application operating system is used as a slave control system, which controls the interruption related to the application subsystem and task processing, and is also responsible for device management on the application subsystem side;
需要说明的是,在本发明实施例中,只有存在外部设备的使用请求时,应用子系统才处于工作状态,其它情况下,应用子系统都处于休眠状态,休眠状态下保证了所有外部设备都处于关闭或者低功耗状态,从而降低了移动终端的动态功耗,延迟了终端的使用时间。并且在本发明实施例中增加了虚拟操作系统,用于基带子系统中的基带操作系统和应用子系统中的应用操作系统之间的通信,并负责将已注册的中断发送给基带子系统或者应用子系统,为保证基带子系统的实时性,基带子系统的中断优先级高于应用子系统中断的优先级,该虚拟操作系统使得处理器既可以用于基带子系统的任务调度,也可以用于应用子系统的任务调度,提高了处理器的利用率,从而降低了硬件成本。It should be noted that, in the embodiment of the present invention, the application subsystem is in the working state only when there is a use request of the external device, and in other cases, the application subsystem is in the dormant state, which ensures that all external It is in an off or low power consumption state, thereby reducing the dynamic power consumption of the mobile terminal and delaying the use time of the terminal. And in the embodiment of the present invention, a virtual operating system is added, which is used for communication between the baseband operating system in the baseband subsystem and the application operating system in the application subsystem, and is responsible for sending registered interrupts to the baseband subsystem or For the application subsystem, in order to ensure the real-time performance of the baseband subsystem, the interrupt priority of the baseband subsystem is higher than that of the application subsystem. Task scheduling for application subsystems improves processor utilization, thereby reducing hardware costs.
由上可见,本发明实施例提供的移动终端的省电处理方法将基带子系统的任务优先于应用子系统的任务进行调度处理,保证了实时性要求高的基带子系统任务得到及时的处理,并且该方法在没有任务就绪时,应用子系统处于休眠状态,并且使基带子系统也进入睡眠状态,从而降低了移动终端的功耗,延长了使用时间,并且由于虚拟操作系统的引入,实现了基带子系统和应用子系统的通信,而且通过一个处理器既可以完成基带子系统的操作也可以完成应用子系统的操作,降低了生产成本。It can be seen from the above that the power-saving processing method of the mobile terminal provided by the embodiment of the present invention prioritizes the tasks of the baseband subsystem over the tasks of the application subsystem for scheduling processing, ensuring that the tasks of the baseband subsystem with high real-time requirements are processed in a timely manner. Moreover, in this method, when no task is ready, the application subsystem is in the sleep state, and the baseband subsystem is also in the sleep state, thereby reducing the power consumption of the mobile terminal and prolonging the use time, and due to the introduction of the virtual operating system, realizing The communication between the baseband subsystem and the application subsystem, and the operation of the baseband subsystem and the application subsystem can be completed through one processor, which reduces the production cost.
本发明实施例还提供一种移动终端的省电处理方法,该方法在上述实施例的基础上,还包括以下步骤:The embodiment of the present invention also provides a power-saving processing method for a mobile terminal. On the basis of the above-mentioned embodiments, the method further includes the following steps:
S109、基带子系统进行睡眠的同时监测是否有唤醒信号,若没有,则基带子系统继续睡眠,若有,则进行步骤S110。S109 , while the baseband subsystem is sleeping, it monitors whether there is a wake-up signal, if not, the baseband subsystem continues to sleep, and if so, proceeds to step S110 .
需要说明的是,在配置基带子系统进入睡眠后,基带子系统即处于睡眠状态,一旦基带子系统处于睡眠状态,基带子系统就会进行唤醒信号的监测。It should be noted that after the baseband subsystem is configured to go to sleep, the baseband subsystem is in the sleep state, and once the baseband subsystem is in the sleep state, the baseband subsystem will monitor the wake-up signal.
S110、判断收到的唤醒信号是否来自于外部设备,若否,进行步骤S102,若是,进行步骤S111。S110. Determine whether the received wake-up signal is from an external device, if not, go to step S102, and if yes, go to step S111.
S111、基带子系统通过虚拟操作系统向应用子系统发送进入工作状态的信号,应用子系统接收到进入工作状态的信号后,控制处理器进行应用子系统任务调度的处理。S111. The baseband subsystem sends a signal to the application subsystem to enter the working state through the virtual operating system. After receiving the signal to enter the working state, the application subsystem controls the processor to perform task scheduling of the application subsystem.
需要说明的是,在本发明实施例中,基带子系统在睡眠状态的时候,有可能被外部设备唤醒,有可能为自然唤醒,当为外部设备唤醒时,应用子系统进入工作状态,处理器进行应用子系统的任务处理,当为自然唤醒的时候,基带子系统进入工作状态,处理器进行基带子系统的任务处理。It should be noted that, in the embodiment of the present invention, when the baseband subsystem is in the sleep state, it may be awakened by an external device, and it may be naturally awakened. When the external device wakes up, the application subsystem enters the working state, and the processor The task processing of the application subsystem is carried out. When it is naturally awakened, the baseband subsystem enters the working state, and the processor performs the task processing of the baseband subsystem.
进一步的,基带子系统在进行步骤S101、S102、S103、S104、S105、S106、S107、S108、S109、S110、S111的同时,基带子系统还进行中断信号的监测,若同时监测到来自于自身的中断信号和来自于应用子系统的中断信号时,则基带子系统向处理器发送优先处理来自于基带子系统的中断信号的命令。Further, while the baseband subsystem is performing steps S101, S102, S103, S104, S105, S106, S107, S108, S109, S110, and S111, the baseband subsystem also monitors the interrupt signal. When the interrupt signal from the application subsystem and the interrupt signal from the application subsystem, the baseband subsystem sends a command to the processor to prioritize the interrupt signal from the baseband subsystem.
由上可见,本发明实施例提供的移动终端的省电处理方法在基带子系统处于休眠状态的同时监测是否有唤醒信号,并根据唤醒信号的来源进行相应的处理,提高了移动终端的实时性。It can be seen from the above that the power-saving processing method of the mobile terminal provided by the embodiment of the present invention monitors whether there is a wake-up signal while the baseband subsystem is in a dormant state, and performs corresponding processing according to the source of the wake-up signal, which improves the real-time performance of the mobile terminal .
本发明实施例还提供一种移动终端的省电处理系统,包括:An embodiment of the present invention also provides a power-saving processing system for a mobile terminal, including:
所述基带模块包括监测单元、第一判断单元;所述应用模块包括外部设备;并且,所述基带模块和应用模块共同包括一个处理单元;The baseband module includes a monitoring unit and a first judging unit; the application module includes external equipment; and, the baseband module and the application module together include a processing unit;
所述监测单元用于监测所述基带模块中是否有任务就绪,若有,则发送第一信号给所述处理单元,若否,则通过所述虚拟机监测所述应用模块的状态;若监测到所述应用模块为工作状态,则通过虚拟机发送第二信号给应用模块,若监测到所述应用模块为休眠状态,则发送第三信号给所述第一判断单元;The monitoring unit is used to monitor whether there is a task ready in the baseband module, if so, send the first signal to the processing unit, if not, monitor the state of the application module through the virtual machine; if monitoring When the application module is in the working state, a second signal is sent to the application module through the virtual machine, and if it is detected that the application module is in a dormant state, a third signal is sent to the first judging unit;
所述处理单元用于当接收到第一信号时,进行所述基带模块中的任务调度处理;The processing unit is configured to perform task scheduling processing in the baseband module when receiving the first signal;
所述应用模块用于当接收到第二信号时,控制所述处理单元对应用模块中的任务进行调度处理,并当所述处理单元完成应用模块中的任务调度后,通过所述虚拟机通知所述监测单元继续监测基带模块中是否有任务就绪;The application module is configured to, when receiving the second signal, control the processing unit to schedule tasks in the application module, and when the processing unit completes task scheduling in the application module, notify via the virtual machine The monitoring unit continues to monitor whether there is a task ready in the baseband module;
所述第一判断模块用于当接收到第三信号时,查询所述基带模块的睡眠类型,并根据得到的睡眠类型和预设的睡眠条件判断所述基带模块是否可以进入睡眠状态,若是,则发送第四信号给所述处理单元;The first judging module is used to query the sleep type of the baseband module when receiving the third signal, and judge whether the baseband module can enter the sleep state according to the obtained sleep type and preset sleep conditions, if so, then sending a fourth signal to the processing unit;
所述处理单元还用于当接收到第四信号时,控制所述基带模块进入睡眠状态。The processing unit is further configured to control the baseband module to enter a sleep state when receiving a fourth signal.
需要说明的是,在本发明实施提供的省电处理系统中以基带模块为主控模块,用于控制基带模块相关的外部设备和任务处理,同时负责基带模块侧的设备以及基带模块和应用模块的共享设备的管理,应用模块为从控模块,用于控制应用模块侧相关的中断和任务处理,同时负责应用模块侧的设备管理。It should be noted that in the power-saving processing system provided by the implementation of the present invention, the baseband module is the main control module, which is used to control the external equipment and task processing related to the baseband module, and is responsible for the equipment on the side of the baseband module, the baseband module and the application module. The management of the shared device, the application module is a slave control module, which is used to control the interrupt and task processing related to the application module side, and is also responsible for the device management on the application module side.
在本发明实施例中增加了虚拟机,用于基带模块中的实时操作系统和应用模块中的应用操作系统之间的通信,并负责将已注册的中断发送给基带模块或者应用模块,为保证基带模块的实时性,基带模块的中断优先级高于应用模块中断的优先级。该虚拟机使得处理单元既可以用于基带模块的任务调度,也可以用于应用模块的任务调度,提高了处理单元的利用率,从而降低了硬件成本。In the embodiment of the present invention, a virtual machine is added to communicate between the real-time operating system in the baseband module and the application operating system in the application module, and is responsible for sending registered interrupts to the baseband module or application module. The real-time performance of the baseband module, the interrupt priority of the baseband module is higher than that of the application module. The virtual machine enables the processing unit to be used not only for the task scheduling of the baseband module, but also for the task scheduling of the application module, which improves the utilization rate of the processing unit, thereby reducing the hardware cost.
由上可见,基带模块中的监测单元首先进行基带模块的任务监测,并由处理器进行基带模块的任务处理,保证了实时性要求高的基带模块中的任务得到及时处理,在处理完基带模块中的任务后再对应用模块的状态进行检测,并当应用模块处于工作状态时,由处理器进行应用模块的任务处理,当应用模块处于休眠状态时,基带模块对自身睡眠类型进行查询,当符合睡眠条件时,则基带模块进入睡眠状态,降低了功耗,延长了移动终端的使用时间,并且由于虚拟操作系统的引入,使得基带模块和应用模块之间得以通信,从而只需一个处理器就可以同时实现基带模块和应用模块的任务调度。It can be seen from the above that the monitoring unit in the baseband module first monitors the tasks of the baseband module, and the processor performs the task processing of the baseband module, which ensures that the tasks in the baseband module with high real-time requirements are processed in time. Then check the state of the application module, and when the application module is in the working state, the processor will process the task of the application module. When the application module is in the dormant state, the baseband module will query its own sleep type. When the sleep condition is met, the baseband module enters the sleep state, which reduces power consumption and prolongs the use time of the mobile terminal. Due to the introduction of the virtual operating system, the communication between the baseband module and the application module is enabled, so that only one processor is needed The task scheduling of the baseband module and the application module can be realized at the same time.
本发明实施例还提供另一种移动终端的省电处理系统,参见图3所示,包括:基带模块100、应用模块200和虚拟机300;The embodiment of the present invention also provides another power-saving processing system for a mobile terminal, as shown in FIG. 3 , including: a baseband module 100, an application module 200, and a virtual machine 300;
基带模块100包括监测单元110、第一判断单元120;应用模块200包括外部设备210,并且基带模块100和应用模块200还共同包括一个处理单元130;The baseband module 100 includes a monitoring unit 110 and a first judgment unit 120; the application module 200 includes an external device 210, and the baseband module 100 and the application module 200 also jointly include a processing unit 130;
监测单元110用于监测基带模块100中是否有任务就绪,若有,则发送第一信号给处理单元130,若否,则通过虚拟机300监测应用模块200的状态;The monitoring unit 110 is used to monitor whether there is a task ready in the baseband module 100, if so, send the first signal to the processing unit 130, if not, monitor the state of the application module 200 through the virtual machine 300;
若监测到应用模块200为工作状态,则发送第二信号给应用模块200,若监测到应用模块200为休眠状态,则发送第三信号给第一判断单元120;If it is detected that the application module 200 is in a working state, then send a second signal to the application module 200, and if it is detected that the application module 200 is in a dormant state, then send a third signal to the first judging unit 120;
处理单元130用于当接收到第一信号时,进行基带模块100中的任务调度处理;The processing unit 130 is configured to perform task scheduling processing in the baseband module 100 when the first signal is received;
应用模块200用于当接收到第二信号时,控制处理单元130对应用模块200中的任务进行调度处理,并当处理单元130完成应用模块200中的任务调度后,应用模块200通过虚拟机300通知监测单元110继续监测基带模块中是否有任务就绪;The application module 200 is configured to control the processing unit 130 to schedule the tasks in the application module 200 when receiving the second signal, and after the processing unit 130 completes the task scheduling in the application module 200, the application module 200 uses the virtual machine 300 Notify the monitoring unit 110 to continue monitoring whether there is a task ready in the baseband module;
第一判断模块120用于当接收到第三信号时,查询基带模块100的睡眠类型,并根据得到的睡眠类型和预设的睡眠条件判断基带模块100是否可以进入睡眠状态,若是,则发送第四信号给处理单元130;The first judging module 120 is used to inquire about the sleep type of the baseband module 100 when receiving the third signal, and judge whether the baseband module 100 can enter the sleep state according to the obtained sleep type and preset sleep conditions, and if so, send the first Four signals to the processing unit 130;
处理单元130还用于当接收到第四信号时,控制基带模块100进入睡眠状态。The processing unit 130 is further configured to control the baseband module 100 to enter the sleep state when receiving the fourth signal.
在本发明实施例中,基带模块100中预先设置了睡眠时间、约束类型和睡眠类型之间的对应关系,因此通过查询基带模块100的睡眠时间和约束类型可以得到睡眠类型,若基带模块的睡眠时间大于或者等于预设的睡眠时间,且约束类型为无约束,则睡眠类型为深睡眠,并且深睡眠类型对应可进入睡眠状态,此种情况下,只有外部设备请求或睡眠时间结束时,基带模块可被唤醒;若基带模块的睡眠时间小于预设的睡眠时间,且约束类型为有约束,则睡眠类型为浅睡眠类型,并且浅睡眠类型对应可进入睡眠状态,此种情况下,任何中断请求或睡眠时间结束时,基带模块可被唤醒。In the embodiment of the present invention, the corresponding relationship between sleep time, constraint type and sleep type is preset in the baseband module 100, so the sleep type can be obtained by querying the sleep time and constraint type of the baseband module 100, if the sleep time of the baseband module If the time is greater than or equal to the preset sleep time, and the constraint type is unconstrained, then the sleep type is deep sleep, and the deep sleep type corresponds to the sleep state. In this case, only when the external device requests or the sleep time ends, the baseband The module can be woken up; if the sleep time of the baseband module is less than the preset sleep time, and the constraint type is restricted, the sleep type is the light sleep type, and the light sleep type corresponds to the sleep state. In this case, any interruption The baseband module can be woken up on request or at the end of the sleep time.
本发明实施例中的监测单元110还用于监测中断信号,若监测到来自于基带模块100和应用模块200的中断信号,则监测单元110向处理单元130发送优先处理来自于基带模块100的中断信号的命令。The monitoring unit 110 in the embodiment of the present invention is also used to monitor the interrupt signal. If the interrupt signal from the baseband module 100 and the application module 200 is detected, the monitoring unit 110 sends a priority processing interrupt from the baseband module 100 to the processing unit 130. Signal command.
虚拟机300用于基带模块100和应用模块200之间的通信,并负责将已注册的中断发送给基带模块100或者应用模块200,为保证基带模块100的实时性,基带模块100的终端优先级高于应用模块200终端的优先级;虚拟机300使得处理单元130既可以用于基带模块100的任务调度,也可以用于应用模块200的任务调度,提供了处理单元130的利用率,从而减低了硬件成本。The virtual machine 300 is used for communication between the baseband module 100 and the application module 200, and is responsible for sending registered interrupts to the baseband module 100 or the application module 200. In order to ensure the real-time performance of the baseband module 100, the terminal priority of the baseband module 100 Higher than the priority of the application module 200 terminal; the virtual machine 300 enables the processing unit 130 to be used for the task scheduling of the baseband module 100 and the task scheduling of the application module 200, which provides the utilization rate of the processing unit 130, thereby reducing hardware cost.
需要说明的是,本发明实施例提供的移动终端的省电处理系统包括电源管理芯片、射频天线、同步动态存储器和快闪存储器,其中,电源管理芯片用于为处理单元、外设单元及其其它部件提供所需的电压;射频天线负责将处理单元的数据发送给网络侧,同时将从网络侧接受的数据传送给处理单元;同步动态存储器用于存储处理单元运行时的指令及数据,掉电时数据丢失;快闪存储器用于保存处理单元的可执行文件,掉电时数据不会丢失。It should be noted that the power-saving processing system of the mobile terminal provided by the embodiment of the present invention includes a power management chip, a radio frequency antenna, a synchronous dynamic memory, and a flash memory, wherein the power management chip is used for processing units, peripheral units and Other components provide the required voltage; the radio frequency antenna is responsible for sending the data of the processing unit to the network side, and at the same time transmits the data received from the network side to the processing unit; the synchronous dynamic memory is used to store the instructions and data of the processing unit when it is running. The data is lost when the power is turned off; the flash memory is used to save the executable file of the processing unit, and the data will not be lost when the power is turned off.
由上可见,本发明实施例提供的移动终端的省电处理系统中的基带模块作为主控模块,应用模块作为从控模块,基带模块中的监测单元优先对基带模块中的任务进行调度处理,满足了基带模块的高实时性,并且当监测模块监测到应用模块为休眠状态时,在基带模块符合预设的睡眠条件时,配置基带模块进入睡眠状态,从而降低了移动终端的功耗,延长了移动终端的使用时间,并且由于虚拟机的引入,实现了基带模块和应用模块的通信,从而使得一个处理单元既可以完成基带模块中的任务调度又可以完成应用模块中的任务调度,从而降低了成本。It can be seen from the above that the baseband module in the power-saving processing system of the mobile terminal provided by the embodiment of the present invention serves as the main control module, the application module serves as the slave control module, and the monitoring unit in the baseband module preferentially schedules and processes the tasks in the baseband module. It satisfies the high real-time performance of the baseband module, and when the monitoring module detects that the application module is in a sleep state, when the baseband module meets the preset sleep conditions, the baseband module is configured to enter the sleep state, thereby reducing the power consumption of the mobile terminal and extending the The use time of the mobile terminal is shortened, and the communication between the baseband module and the application module is realized due to the introduction of the virtual machine, so that one processing unit can complete the task scheduling in the baseband module and the task scheduling in the application module, thereby reducing the costs.
本发明实施例还提供另一种移动终端的省电处理系统,参见图4所示,该省电处理系统在上述实施例提供的省电处理系统的基础上,其基带模块100还包括第二判断单元140;The embodiment of the present invention also provides another power-saving processing system for a mobile terminal, as shown in FIG. judging unit 140;
监测单元110还用于监测基带模块100是否被唤醒,若是,则启动第二判断单元140;The monitoring unit 110 is also used to monitor whether the baseband module 100 is awakened, and if so, start the second judging unit 140;
第二判断单元140用于判断基带模块100被唤醒是否为外部设备210唤醒,若为外部设备210唤醒,则通过虚拟机300通知应用模块200进行任务调度,并且应用模块200在收到任务调度的通知后发送第五信号给处理单元130,若不为外部设备210唤醒,则所述第二判断单元140发送第六信号给监测单元110;The second judging unit 140 is used to judge whether the baseband module 100 is awakened by the external device 210. If it is awakened by the external device 210, the virtual machine 300 will notify the application module 200 to perform task scheduling, and the application module 200 will receive the task scheduling. After the notification, send a fifth signal to the processing unit 130, if it is not awakened by the external device 210, the second judging unit 140 sends a sixth signal to the monitoring unit 110;
处理单元103还用于当接收到第五信号时进行外部设备210的任务调度,并在处理单元103完成外部设备的任务调度后,应用模块200通过虚拟机300通知监测单元110继续监测基带模块100中是否有任务就绪;The processing unit 103 is also configured to perform task scheduling of the external device 210 when the fifth signal is received, and after the processing unit 103 completes the task scheduling of the external device, the application module 200 notifies the monitoring unit 110 through the virtual machine 300 to continue monitoring the baseband module 100 Whether there is a task ready in
监测单元110还用于当接收到第六信号时,监测基带模块100中是否有任务就绪。The monitoring unit 110 is further configured to monitor whether there is a task ready in the baseband module 100 when the sixth signal is received.
由上可见,本发明实施例提供的移动终端的省电处理系统中的基带模块作为主控模块,应用模块作为从控模块,基带模块中的监测单元优先对基带模块中的任务进行调度处理,满足了基带模块的高实时性,并且当监测模块监测到应用模块为休眠状态时,在基带模块符合预设的睡眠条件时,配置基带模块进入睡眠状态,从而降低了移动终端的功耗,延长了移动终端的使用时间,并且由于虚拟机的引入,实现了基带模块和应用模块的通信,从而使得一个处理单元既可以完成基带模块中的任务调度又可以完成应用模块中的任务调度,从而降低了成本。并且,本发明实施例提供的移动终端的省电处理系统中的监测单元在基带模块处于睡眠状态时还进行唤醒监测,并对唤醒类型不同进行相应处理,进一步提高了基带模块的实时性。It can be seen from the above that the baseband module in the power-saving processing system of the mobile terminal provided by the embodiment of the present invention serves as the main control module, the application module serves as the slave control module, and the monitoring unit in the baseband module preferentially schedules and processes the tasks in the baseband module. It satisfies the high real-time performance of the baseband module, and when the monitoring module detects that the application module is in a sleep state, when the baseband module meets the preset sleep conditions, the baseband module is configured to enter the sleep state, thereby reducing the power consumption of the mobile terminal and extending the The use time of the mobile terminal is shortened, and the communication between the baseband module and the application module is realized due to the introduction of the virtual machine, so that one processing unit can complete the task scheduling in the baseband module and the task scheduling in the application module, thereby reducing the costs. Moreover, the monitoring unit in the power-saving processing system of the mobile terminal provided by the embodiment of the present invention also performs wake-up monitoring when the baseband module is in a sleep state, and performs corresponding processing for different wake-up types, further improving the real-time performance of the baseband module.
本发明实施例还提供一种移动终端,该移动终端包括上述任一实施例所提供的移动终端的省电处理系统。An embodiment of the present invention further provides a mobile terminal, which includes the power-saving processing system for a mobile terminal provided in any of the foregoing embodiments.
由于该移动终端中的省电处理系统包括基带模块和应用模块,并且基带模块和应用模块共用一个处理单元,基带模块中包括监测单元、第一判断单元,应用模块包括外部设备,该监测单元首先进行基带模块的任务监测,并由处理器进行基带模块的任务处理,保证了实时性要求高的基带模块中的任务得到及时处理,在处理完基带模块中的任务后再对应用模块的状态进行检测,并当应用模块处于工作状态时,由处理器进行应用模块的任务处理,当应用模块处于休眠状态时,基带模块对自身睡眠类型进行查询,当符合睡眠条件时,则基带模块进入睡眠状态,降低了功耗,延长了移动终端的使用时间,并且由于虚拟操作系统的引入,使得基带模块和应用模块之间得以通信,从而只需一个处理器就可以同时实现基带模块和应用模块的任务调度。Since the power-saving processing system in the mobile terminal includes a baseband module and an application module, and the baseband module and the application module share a processing unit, the baseband module includes a monitoring unit and a first judging unit, and the application module includes an external device, the monitoring unit first The task monitoring of the baseband module is carried out, and the task processing of the baseband module is carried out by the processor, which ensures that the tasks in the baseband module with high real-time requirements are processed in time, and the status of the application module is checked after the tasks in the baseband module are processed. Detect, and when the application module is in the working state, the processor performs the task processing of the application module. When the application module is in the dormant state, the baseband module queries its own sleep type. When the sleep condition is met, the baseband module enters the sleep state , reduces power consumption, prolongs the use time of the mobile terminal, and due to the introduction of the virtual operating system, the communication between the baseband module and the application module is enabled, so that only one processor can realize the tasks of the baseband module and the application module at the same time scheduling.
因此,该省电处理系统使得移动终端尽可能地进入睡眠时间以及睡眠时间得到了尽可能的延长,从而移动终端的功耗得以降低,同时成本得以降低。Therefore, the power-saving processing system enables the mobile terminal to enter the sleep time as much as possible and extend the sleep time as much as possible, so that the power consumption of the mobile terminal is reduced, and the cost is reduced at the same time.
同时,在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。At the same time, in the above embodiments, the descriptions of each embodiment have their own emphases, and for the parts not described in detail in a certain embodiment, refer to the relevant descriptions of other embodiments.
以上对本发明实施例所提供的一种移动终端的省电处理方法、系统和移动终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A power-saving processing method, system, and mobile terminal for a mobile terminal provided by the embodiments of the present invention have been described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments It is only used to help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, The contents of this description should not be construed as limiting the present invention.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210459148.2A CN103809727B (en) | 2012-11-14 | 2012-11-14 | The power-saving processing method of a kind of mobile terminal, system and mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210459148.2A CN103809727B (en) | 2012-11-14 | 2012-11-14 | The power-saving processing method of a kind of mobile terminal, system and mobile terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103809727A CN103809727A (en) | 2014-05-21 |
| CN103809727B true CN103809727B (en) | 2016-12-21 |
Family
ID=50706624
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210459148.2A Active CN103809727B (en) | 2012-11-14 | 2012-11-14 | The power-saving processing method of a kind of mobile terminal, system and mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103809727B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10740142B2 (en) | 2014-11-20 | 2020-08-11 | Huawei Technologies Co., Ltd. | System and method for obtaining task trigger information by a baseband processor of an intelligent device and triggering a hosting task |
| CN105263182B (en) * | 2015-09-17 | 2019-01-04 | 小米科技有限责任公司 | Apparatus control method, device and terminal |
| CN107810488A (en) * | 2017-08-11 | 2018-03-16 | 深圳前海达闼云端智能科技有限公司 | A kind of method of state management of virtual machine, device and intelligent terminal |
| CN115167655A (en) * | 2022-06-30 | 2022-10-11 | 联想(北京)有限公司 | Information processing method, electronic equipment and computer readable storage medium |
| CN115664873B (en) * | 2022-10-14 | 2025-04-25 | 艾体威尔电子技术(北京)有限公司 | A low-power processing method for long-link IoT devices based on CAT1 communication |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1750692A (en) * | 2005-07-22 | 2006-03-22 | 杭州斯达康通讯有限公司 | Double mode communication terminal and its control method |
| CN1845624A (en) * | 2005-04-06 | 2006-10-11 | 大唐移动通信设备有限公司 | Standby processing method and device for mobile terminal |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090164821A1 (en) * | 2005-10-28 | 2009-06-25 | Nxp B.V. | Method and a system for controlling a sleep mode of a device in a wireless communications network or in a mobile point-to-point connection |
-
2012
- 2012-11-14 CN CN201210459148.2A patent/CN103809727B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1845624A (en) * | 2005-04-06 | 2006-10-11 | 大唐移动通信设备有限公司 | Standby processing method and device for mobile terminal |
| CN1750692A (en) * | 2005-07-22 | 2006-03-22 | 杭州斯达康通讯有限公司 | Double mode communication terminal and its control method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103809727A (en) | 2014-05-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101802753B (en) | Buffering techniques for power management | |
| US9069601B2 (en) | Method and apparatus for controlling task execution | |
| US10564708B2 (en) | Opportunistic waking of an application processor | |
| JP5773288B2 (en) | Wake-up method, hot-swap method, and device based on high-speed interchip HSIC interface | |
| EP3268842B1 (en) | Methods and systems for coordination of operating states amongst multiple socs within a computing device | |
| US20140281623A1 (en) | Wireless device including system-on-a-chip having low power consumption | |
| CN103809727B (en) | The power-saving processing method of a kind of mobile terminal, system and mobile terminal | |
| CN104756042B (en) | Device and method for controlling operation mode in wireless terminal | |
| JP2015043225A (en) | Power supply management method and device for network access module | |
| CN103857021B (en) | Method for controlling bluetooth device, bluetooth device and electronic device | |
| CN109976501A (en) | A kind of Low-power-consumptiocontrol control method, device, system and storage medium | |
| CN106547335A (en) | Energy consumption reduces method and mobile terminal | |
| US9612652B2 (en) | Controlling power consumption by power management link | |
| CN105487638B (en) | Electronic circuit system and method for reducing power consumption | |
| CN108777862B (en) | Bluetooth transmission method, Bluetooth controller and Bluetooth device | |
| CN109041188A (en) | Wireless terminal, wireless terminal power-saving method and device | |
| CN101827166A (en) | Low-current alarming circuit and intelligent mobile communication equipment with same | |
| TW201639313A (en) | Bluetooth device and method for controlling a Bluetooth device or a wireless device | |
| CN106063304A (en) | Systems and methods for messaging-based fine granularity system-on-a-chip power gating | |
| CN106851737B (en) | Method for sending uplink data and terminal equipment | |
| CN111352496A (en) | Low-power-consumption processing method combining single chip microcomputer and LoRa technology | |
| CN111246549B (en) | Method and device for providing node dormancy and wakeup time | |
| CN103106757B (en) | A kind of bluetooth is waken the method for pos machine up | |
| WO2014024175A2 (en) | Managing timers | |
| TW201338591A (en) | Method for power saving and communication apparatus using the same |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20170601 Address after: Nanping Street 400060 Chongqing Nan'an District Nancheng Road No. 199 left attached to the floor 403 Patentee after: Keen (Chongqing) Microelectronics Technology Co.,Ltd. Address before: 400065 Chongqing Nan'an District huangjuezhen pass Fort Park No. 1 Patentee before: CHONGQING CYIT COMMUNICATION TECHNOLOGIES Co.,Ltd. |
|
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20181105 Address after: 201203 Building 1, exhibition hall, 2288 lane, 2288 Chong, road, Zhangjiang hi tech park, Shanghai Patentee after: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd. Address before: 400060 Nanping Road 199, Nanping Street, Nan'an District, Chongqing, 403 Patentee before: Keen (Chongqing) Microelectronics Technology Co.,Ltd. |
|
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20190326 Address after: 361006 Xiamen Free Trade Pilot Area, Xiamen, Fujian Province, Unit X, 8th Floor, Unit 05, Building D, Xiamen International Shipping Center, 97 Xiangyu Road, Xiamen Section Patentee after: Xinxin Finance Leasing (Xiamen) Co.,Ltd. Address before: 201203 Building 1, exhibition hall, 2288 lane, 2288 Chong, road, Zhangjiang hi tech park, Shanghai Patentee before: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd. |
|
| TR01 | Transfer of patent right | ||
| EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20140521 Assignee: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd. Assignor: Xinxin Finance Leasing (Xiamen) Co.,Ltd. Contract record no.: X2021110000009 Denomination of invention: Power saving processing method, system and mobile terminal of mobile terminal Granted publication date: 20161221 License type: Exclusive License Record date: 20210317 |
|
| EE01 | Entry into force of recordation of patent licensing contract | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20221018 Address after: 201203 Shanghai city Zuchongzhi road Pudong New Area Zhangjiang hi tech park, Spreadtrum Center Building 1, Lane 2288 Patentee after: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd. Address before: 361006 Xiamen Free Trade Pilot Area, Xiamen, Fujian Province, Unit X, 8th Floor, Unit 05, Building D, Xiamen International Shipping Center, 97 Xiangyu Road, Xiamen Section Patentee before: Xinxin Finance Leasing (Xiamen) Co.,Ltd. |
|
| TR01 | Transfer of patent right |