CN101198131A - Electricity-saving control method and system for mobile terminal - Google Patents

Electricity-saving control method and system for mobile terminal Download PDF

Info

Publication number
CN101198131A
CN101198131A CNA200810055839XA CN200810055839A CN101198131A CN 101198131 A CN101198131 A CN 101198131A CN A200810055839X A CNA200810055839X A CN A200810055839XA CN 200810055839 A CN200810055839 A CN 200810055839A CN 101198131 A CN101198131 A CN 101198131A
Authority
CN
China
Prior art keywords
energy
saving mode
portable terminal
economize
task
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.)
Pending
Application number
CNA200810055839XA
Other languages
Chinese (zh)
Inventor
方新耀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CNA200810055839XA priority Critical patent/CN101198131A/en
Publication of CN101198131A publication Critical patent/CN101198131A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a power save control method of a movable terminal. The method comprises the following steps that: the start of the power save mode task process is run in a lowest priority task query way, when the power save condition is inquired, the movable terminal enters the power save mode; the exit of the power save mode process is run in a function transfer way, when the power save exit condition is inquired, the power save mode of the movable terminal exits. Accordingly, the invention also provides a power save control system of the movable terminal. The invention controls the power save of the movable terminal through software, adopts the characteristics of an operating system in the movable terminal and has the adaptivity. Therefore, the power save control of the invention not only does not reduce the running speed of the system but also saves the resources of hardware and software, which realizes the optimization of the power save of the movable terminal.

Description

A kind of power-saving control method of portable terminal and system
Technical field
The present invention relates to the portable terminal technology in the communication field, relate in particular to a kind of power-saving control method and system of portable terminal.
Background technology
Along with the development of the communication technology and social demand, (Personal Handyphone System PHS) waits portable terminal to spread to huge numbers of families for mobile phone, personal hand-held phone.At present the function of portable terminal become increasingly abundant colorful, for example jumbotron, video playback, music etc., on the other hand, these functions have also consumed a lot of electric weight of portable terminal, cause the stand-by time of portable terminal to reduce very naturally.And for often going on business and busy job market personage, because they must keep in touch with the external world whenever and wherever possible, if the stand-by time of portable terminal is too short, then can uses to equipment and bring very big inconvenience.
Therefore, how realizing the long-time standby of portable terminal, reduce standby current, prolong battery useful life, is a key issue in the mobile terminal design.Common way is the state by all tasks of hardware timer poll, if all tasks all are idle, just allows to enter energy-saving mode.The defective of such processing method is the waste software and hardware resources, and hardware Interrupt Process can be interrupted the operation of normal tasks, the reduction system running speed.
In summary, the power-saving technique of existing portable terminal obviously exists inconvenience and defective, so be necessary to be improved on reality is used.
Summary of the invention
At above-mentioned defective, the object of the present invention is to provide a kind of power-saving control method and system of portable terminal, it not only can not reduce system running speed, and can save software and hardware resources.
To achieve these goals, the invention provides a kind of power-saving control method of portable terminal, described method comprises:
Start the energy-saving mode task step,,, make this portable terminal enter energy-saving mode when inquiring when satisfying the economize on electricity condition with the operation of lowest priority task inquiry mode;
Withdraw from the energy-saving mode step, move, satisfy when withdrawing from the economize on electricity condition, this portable terminal is withdrawed from energy-saving mode when inquiring in the function call mode.
According to power-saving control method of the present invention, enter energy-saving mode in the described startup energy-saving mode task step after, the cpu clock source of portable terminal is switched to auxilliary clock from master clock;
Described withdraw from withdraw from energy-saving mode in the energy-saving mode step after, the cpu clock source of described portable terminal is switched to master clock from auxilliary clock.
According to power-saving control method of the present invention, in described startup energy-saving mode task step, just enter energy-saving mode when satisfying following three kinds of economize on electricity conditions simultaneously, wherein:
First kind of economize on electricity condition, all tasks all are in idle condition in the described portable terminal, and do not have interrupt handling routine in operation;
Second kind of economize on electricity condition, the human-computer interface module of described portable terminal allows to enter energy-saving mode;
The third economize on electricity condition, described portable terminal is in the shutdown charged state, perhaps is in the stand-by period of looking between the net for twice, and perhaps the protocol stack of this portable terminal allows to enter energy-saving mode.
According to power-saving control method of the present invention, described first kind of economize on electricity condition is satisfied when this energy-saving mode task step operation;
Described second kind of economize on electricity condition is provided with second marker bit by described human-computer interface module, reads when inquiring about for described energy-saving mode task step; And/or
Described the third economize on electricity condition is judged status of mobile terminal by described human-computer interface module, and by described protocol stack the 3rd marker bit is set, and reads when inquiring about for described energy-saving mode task step.
According to power-saving control method of the present invention, in the described startup energy-saving mode task step, this human-computer interface module is judged when meeting the following conditions simultaneously, and just this second marker bit is set to allow to enter energy-saving mode, otherwise is set to not allow to enter energy-saving mode:
The bell sound is not being play; The microphone power amplifier is closed; The receiver power amplifier is closed; The time of button had surpassed the scheduled time apart from last time; The receiver path is not opened; Backlight is not opened; Described human-computer interface module does not start software timer, and perhaps in all current software timers that started, the current nearest software timer of time-out time distance is greater than the scheduled time; The burning device does not insert.
According to power-saving control method of the present invention, in the described startup energy-saving mode task step, this protocol stack only when described portable terminal is in holding state or does not have service state, just allows to enter energy-saving mode; And described protocol stack all is provided with the 3rd marker bit in L1 layer protocol task and L3 layer protocol task, when described protocol stack is judged when meeting the following conditions simultaneously, just the 3rd marker bit is set to allow to enter energy-saving mode, otherwise is set to not allow to enter energy-saving mode:
Described L1 layer protocol task is in holding state; Described L3 layer protocol task is being waited for reception message.
According to power-saving control method of the present invention, described withdrawing from the energy-saving mode step will be withdrawed from energy-saving mode, need satisfy following one of the economize on electricity condition that withdraws from least:
First kind is withdrawed from the economize on electricity condition, and after the L1 protocol layer task of described portable terminal entered energy-saving mode, paging receiving message was interrupted in the timing that predetermined period takes place;
Second kind is withdrawed from the economize on electricity condition, and described portable terminal is by button;
The third withdraws from the economize on electricity condition, and software timer is overtime in the human-computer interface module of described portable terminal;
The 4th kind is withdrawed from the economize on electricity condition, and it is overtime that described portable terminal is used to write down the hardware timer of energy-saving mode duration;
The 5th kind is withdrawed from the economize on electricity condition, and described portable terminal has charger to insert;
The 6th kind is withdrawed from the economize on electricity condition, and described portable terminal has the burning line to insert;
The 7th kind is withdrawed from the economize on electricity condition, described mobile terminal playing bell sound.
According to power-saving control method of the present invention, after entering energy-saving mode in the described startup energy-saving mode task step, the operation of carrying out also comprises: described portable terminal starts at least one hardware timer, it is used for minute book time energy-saving mode duration, so that withdraw from after this energy-saving mode the time for the human-computer interface module compensation software timer of portable terminal; The peripheral circuit of turning-off mobile terminal; And/or, close the crystal oscillating circuit of described master clock;
Described withdraw from withdraw from energy-saving mode in the energy-saving mode step after, the operation of execution also comprises: the crystal oscillating circuit of opening described master clock; Delay predetermined time waits for that the crystal oscillating circuit of described master clock starts to the stable clock signal can be provided; Open the peripheral circuit of described portable terminal; Calculate the duration of this energy-saving mode; And/or, notify described software timer to carry out time bias and handle.
According to power-saving control method of the present invention, described startup energy-saving mode task step runs on the backstage of this portable terminal, and calls each other with each hardware driving, task of timer and/or the protocol stack of described portable terminal, can carry out direct control to hardware simultaneously;
Described each hardware driving, task of timer and/or the protocol stack that withdraws from energy-saving mode step and described portable terminal calls each other.
The present invention also provides a kind of electricity-saving control system of portable terminal, and described system includes:
Start the energy-saving mode task module, be used for,, make this portable terminal enter energy-saving mode when inquiring when satisfying the economize on electricity condition with the operation of lowest priority task inquiry mode;
Withdraw from the energy-saving mode module, be used for moving, satisfy when withdrawing from the economize on electricity condition, this portable terminal is withdrawed from energy-saving mode when inquiring in the function call mode.
The present invention comes the portable terminal control of economizing on electricity by software, the energy-saving mode task adopts the operation of lowest priority task inquiry mode, withdrawing from the energy-saving mode task then moves in the function call mode, utilize the characteristic of operating system in the portable terminal, has adaptivity, when taking turns to the lowest priority task execution, illustrate that other tasks all are idle, therefore can enter energy-saving mode.The switching of the primary/secondary clock of preferred employing control realizes the switch of energy-saving mode, reaches the purpose of stand-by energy-saving.Whereby, economize on electricity control of the present invention not only can not reduce system running speed, and can save software and hardware resources, has realized the optimization of portable terminal economize on electricity.
Description of drawings
Fig. 1 is the structural representation of the electricity-saving control system of portable terminal provided by the invention;
Fig. 2 is a system saving electricity mode state transition graph of the present invention;
Fig. 3 is the flow chart of the power-saving control method of portable terminal provided by the invention;
Fig. 4 is an energy-saving mode mission flow diagram of the present invention;
Fig. 5 is a protocol layer energy-saving mode state transition diagram of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Basic thought of the present invention is: the present invention comes the portable terminal control of economizing on electricity by software, the energy-saving mode task adopts the operation of lowest priority task inquiry mode, being responsible for when appropriate, machine makes portable terminal enter energy-saving mode (Battery Save, BS), to reduce standby current, reach the purpose of prolongs standby time.Withdraw from the energy-saving mode task and then move, when particular event takes place, be responsible for portable terminal is withdrawed from energy-saving mode, to guarantee the realization of each normal function of terminal in the function call mode.
Fig. 1 shows the structure of the electricity-saving control system of portable terminal of the present invention, and this electricity-saving control system 10 is applied in the portable terminals such as mobile phone, PHS, and it comprises energy-saving mode task module 11 at least and withdraw from energy-saving mode module 12, wherein:
Described energy-saving mode task module 11 is used for the operation of lowest priority task inquiry mode, and responsible portable terminal enters the operation of energy-saving mode; When inquiring when satisfying the economize on electricity condition, make this portable terminal enter energy-saving mode.Described energy-saving mode task module 11 runs on the backstage of whole mobile terminal system, and calls each other with each hardware driving, task of timer and/or the protocol stack of described portable terminal, can carry out direct control to hardware simultaneously.The running status of the whole portable terminal of described energy-saving mode task module 11 monitoring is responsible for making portable terminal enter energy-saving mode on suitable opportunity, to reduce standby current, reaches the purpose of prolongs standby time.Importantly, utilize the characteristic of operating system in the portable terminal,, illustrate that other tasks all are idle, therefore can enter energy-saving mode when taking turns to when carrying out as the energy-saving mode task of lowest priority task.
The described energy-saving mode module 12 that withdraws from is used for moving in the function call mode, satisfies when withdrawing from the economize on electricity condition when inquiring, and particular events such as button, the broadcast of bell sound for example take place, and this portable terminal is withdrawed from energy-saving mode.Described each hardware driving, task of timer and/or the protocol stack that withdraws from energy-saving mode module 12 and described portable terminal calls each other, and the hardware driving here includes but not limited to keyboard drive, accessory drive, bell sound broadcast driving etc.Withdraw from energy-saving mode module 12 and can be used to be controlled at and in time withdraw from after being strayed into energy-saving mode, also can in the energy-saving mode task, also can call energy-saving mode and withdraw from task.Described withdraw from energy-saving mode module 12 portable terminal withdrawed from energy-saving mode rapidly after, can guarantee the realization of the various normal functions of terminal.
In addition, for guaranteeing the stability of whole mobile terminal system, the present invention preferably adopts Controlled CPU (central processing unit) operational mode to economize on electricity, and the switching of controlling primary/secondary clock realizes the switch of energy-saving mode, reaches the purpose of stand-by energy-saving.Energy-saving mode of the present invention preferably adopts the cpu clock source is switched to auxilliary clock from master clock, closes the crystal oscillating circuit of master clock simultaneously.Like this, after portable terminal entered energy-saving mode, CPU will slowly operation under auxilliary clock, and all with master clock as the peripheral circuit in clock source all with out of service.The energy-saving mode that withdraws from of the present invention preferably adopts the cpu clock source is switched to master clock from auxilliary clock, and the crystal oscillating circuit with described master clock reopens simultaneously, so that recover normal condition.
Described electricity-saving control system 10 also comprises human-computer interface module 13 and protocol stack 14.Described energy-saving mode task module 11 will enter energy-saving mode, and described portable terminal must satisfy three kinds of economize on electricity conditions simultaneously, and with reference to shown in Figure 2, this economize on electricity condition comprises:
Economize on electricity condition (1), all tasks all are in idle condition in the described portable terminal, and do not have interrupt handling routine in operation;
Economize on electricity condition (2), the human-computer interface module 13 of described portable terminal allows to enter energy-saving mode;
Economize on electricity condition (3), described portable terminal is in the shutdown charged state, perhaps is in the stand-by period of looking between the net for twice, as waits for 100 seconds, and perhaps the protocol stack 14 of this portable terminal allows to enter other states of energy-saving mode.
In order to guarantee to satisfy described economize on electricity condition (1), the energy-saving mode task design is become a lowest priority task, this energy-saving mode task module 11 carries out cycle criterion in task, be scheduled when operation in this energy-saving mode task, guaranteed to satisfy at this moment described economize on electricity condition (1) by the scheduling mode of operating system.
Described economize on electricity condition (2) is provided with second marker bit by described human-computer interface module 13, reads when inquiring about for described energy-saving mode task module 11; And/or
Described economize on electricity condition (3) is judged status of mobile terminal by described human-computer interface module 13, and by described protocol stack 14 the 3rd marker bit is set, and reads when inquiring about for described energy-saving mode task module 11.
The described energy-saving mode module 12 that withdraws from will withdraw from energy-saving mode and need satisfy the economize on electricity condition that withdraws from, and the described economize on electricity condition that withdraws from is some particular events, as long as following arbitrary particular event takes place, then withdraws from energy-saving mode:
Incident (1), after L1 protocol layer (physical layer) task of described portable terminal entered energy-saving mode, paging receiving message was interrupted in the timing that predetermined period takes place, and this predetermined period for example is 1.2 seconds.
Incident (2), described portable terminal is by user key-press;
Incident (3), at least one software timer is overtime in the human-computer interface module 13 of described portable terminal;
It is overtime that incident (4), described portable terminal are used to write down the hardware timer of energy-saving mode duration;
Incident (5), described portable terminal have charger to insert;
Incident (6), described portable terminal have the burning line to insert;
Incident (7), described mobile terminal playing bell sound.
Except described incident (3), portable terminal all had corresponding Interrupt Process function when other incidents took place, and only needed to call the function that withdraws from energy-saving mode module 12 at Interrupt Process function entrance place and got final product; And human-computer interface module 13 certain software timer then need call the function that withdraws from the energy-saving mode task when overtime in the incident (3) in task of timer.
Fig. 3 shows the flow process of the power-saving control method of portable terminal of the present invention, and it realizes that by electricity-saving control system 10 shown in Figure 1 the method comprising the steps of has:
Step S301, the energy-saving mode task step.It is with the operation of lowest priority task inquiry mode, and responsible portable terminal enters the operation of energy-saving mode.When inquiring when satisfying the economize on electricity condition, make this portable terminal enter energy-saving mode.This energy-saving mode task step is realized by energy-saving mode task module 11.Described economize on electricity condition is as indicated above, need satisfy economize on electricity condition (1)~(3) simultaneously and can enter energy-saving mode.After entering energy-saving mode in the described energy-saving mode task step, the cpu clock source of portable terminal is switched to auxilliary clock from master clock.In addition, described energy-saving mode task step runs on the backstage of this portable terminal, and calls each other by each hardware driving, task of timer and/or the protocol stack of energy-saving mode task module 11 with described portable terminal, can carry out direct control to hardware simultaneously.
Particularly, after described step S301 entered energy-saving mode, the operation of execution comprised:
1, portable terminal starts at least one hardware timer, is used for minute book time energy-saving mode duration, so that withdraw from the time that energy-saving mode supplies human-computer interface module 13 compensation software timers later on;
2, the cpu clock source is switched to auxilliary clock from master clock;
3, close the crystal oscillating circuit of master clock; And/or
4, close peripheral circuit by the portable terminal of VXO.
Step S302 withdraws from the energy-saving mode step.It operates in portable terminal everywhere in the function call mode, satisfies when withdrawing from the economize on electricity condition when inquiring, and is responsible for this portable terminal is withdrawed from energy-saving mode.The described energy-saving mode step that withdraws from realizes by withdrawing from energy-saving mode module 12.The described economize on electricity condition that withdraws from is particular event (1)~(7) mentioned above, as long as any incident has taken place, then withdraws from the energy-saving mode step this portable terminal is withdrawed from energy-saving mode, to recover the normal operation of portable terminal.Described withdraw from withdraw from energy-saving mode in the energy-saving mode step after, the cpu clock source of described portable terminal is switched to master clock from auxilliary clock.In addition, the described energy-saving mode step that withdraws from is called each other by each hardware driving, task of timer and/or the protocol stack that withdraws from energy-saving mode module 12 and described portable terminal.
Particularly, after described step S302 withdrawed from energy-saving mode, the operation of execution comprised:
1, opens the crystal oscillating circuit of described master clock;
2, delay predetermined time, for example the N millisecond waits for that the crystal oscillating circuit of described master clock starts to the stable clock signal can be provided;
3, the cpu clock source is switched to master clock from auxilliary clock;
4, open the peripheral circuit of portable terminal;
5, calculate the duration of this energy-saving mode; And/or
6, the notice software timer carries out the time bias processing.
Fig. 4 is an energy-saving mode mission flow diagram of the present invention, and it is realized by electricity-saving control system 10 shown in Figure 1, comprises that step has:
Step S401, electricity-saving control system 10 judge whether to allow to enter energy-saving mode, if allow then execution in step S402, otherwise execution in step S403.As indicated above, need satisfy economize on electricity condition (1)~(3) simultaneously, the energy-saving mode task module 11 of electricity-saving control system 10 can make portable terminal enter energy-saving mode; The described economize on electricity condition that withdraws from is particular event (1)~(7) mentioned above, as long as any incident has taken place, then electricity-saving control system 10 withdraws from energy-saving mode module 12 and just this portable terminal can be withdrawed from energy-saving mode.
Step S402, energy-saving mode task module 11 make this portable terminal enter energy-saving mode, and the cpu clock source of portable terminal is switched to auxilliary clock from master clock.Turn back to step S401 then, Control Circulation is judged to economize on electricity.
Step S403 withdraws from energy-saving mode module 12 this portable terminal is withdrawed from energy-saving mode, and the cpu clock source of described portable terminal is switched to master clock from auxilliary clock.Turn back to step S401 then, Control Circulation is judged to economize on electricity.
Economize on electricity condition of the present invention (2) is provided with second marker bit by human-computer interface module 13, reads when inquiring about for described energy-saving mode task module 11.This human-computer interface module 13 is judged when meeting the following conditions simultaneously, and just this second marker bit is set to allow to enter energy-saving mode, otherwise is set to not allow to enter energy-saving mode:
If 1 does not have the bell sound to play, then allow to enter energy-saving mode, otherwise do not allow to enter energy-saving mode;
If 2 microphones (SPEAKER) power amplifier is closed, then allow to enter energy-saving mode, otherwise do not allow to enter energy-saving mode;
If 3 receivers (RECEIVER) power amplifier is closed, then allow to enter energy-saving mode, otherwise do not allow to enter energy-saving mode;
If 4 apart from last time button time surpassed the scheduled time, for example 1 second, then allow to enter energy-saving mode, otherwise do not allow to enter energy-saving mode;
If 5 receiver paths are not opened, then allow to enter energy-saving mode, otherwise do not allow to enter energy-saving mode;
If 6 backlights are not opened, then allow to enter energy-saving mode, otherwise do not allow to enter energy-saving mode;
If the software timer that 7 current human-computer interface module 13 have not started, or in the middle of human-computer interface module 13 all current software timers that started, the present nearest timer of time-out time distance is greater than the scheduled time, M millisecond for example, then allow to enter energy-saving mode, otherwise do not allow to enter energy-saving mode;
If 8 burning devices do not insert, allow to enter energy-saving mode, otherwise do not allow to enter energy-saving mode.Described burning device is applied to the situation that portable terminal is PHS, if portable terminal is that mobile phone does not then have this condition.
Fig. 5 is a protocol layer energy-saving mode state transition diagram of the present invention, and the major state of this protocol layer has five state S0~state S4, wherein:
State S0, expression is in open state.
State S1, expression is in does not have service, can not find the state of net.
State S2, expression is in standby and does not have service state, and promptly registration failure enters holding state.
State S3, expression is in standby and service state is arranged, and promptly succeeding in registration enters holding state.
State S4, expression is in talking state.
For state S0:
A1) if look for net failure or synchronization failure, then change state S1 over to, and allow to enter energy-saving mode;
A2) if look for net successfully and synchronous successfully but registration failure then changes state S2 over to, and allow to enter energy-saving mode;
A3) if look for and net successfully and synchronous success and succeeding in registration, then change state S3 over to, and allow to enter energy-saving mode.
For state S1:
B1) if timer expiry (for example 10 seconds) causes looking for again net, and look for net failure or synchronization failure, then keep this state S1, withdraw from energy-saving mode after, allow to enter again energy-saving mode;
B2) if timer expiry (for example 10 seconds) causes looking for again net, and look for net successfully and synchronous successfully but registration failure then changes state S2 over to, and after withdrawing from energy-saving mode, allow to enter again energy-saving mode;
B3) if timer expiry (for example 10 seconds) causes looking for again net, and look for and net successfully and synchronous success and succeeding in registration, then change state S3 over to, withdraw from energy-saving mode after, allow to enter again energy-saving mode.
For shape body S2:
C1) if timer expiry (for example 100 seconds) causes re-registering, look for net failure or synchronization failure behind the registration failure, then change state S1 over to, withdraw from energy-saving mode after, allow to enter again energy-saving mode;
C2) if timer expiry (for example 100 seconds) causes re-registering, look for net successfully and synchronous successfully but registration failure then keeps this state S2, withdraw from energy-saving mode after, allow to enter again energy-saving mode;
C3) if timer expiry (for example 100 seconds) causes re-registering, and look for and net successfully and synchronous success and succeeding in registration, then change state S3 over to, withdraw from energy-saving mode after, allow to enter again energy-saving mode.
For state S3:
D1) failure causes looking for again net if CCH receives (control channel), and looks for net failure or synchronization failure, then changes state S1 over to, withdraw from energy-saving mode after, allow to enter again energy-saving mode;
D2), and look for and net successfully and successfully synchronous but registration failure then changes state S2 over to if CCH takes defeat and causes looking for again net, withdraw from energy-saving mode after, allow to enter again energy-saving mode;
D3) if CCH takes defeat and causes looking for again net, and look for and net successfully and synchronous success and succeeding in registration, then keep this state S3, withdraw from energy-saving mode after, allow to enter again energy-saving mode;
D4) if portable terminal as caller or the called call flow that enters, then changes state S4 over to, and withdraws from energy-saving mode.
For state S4:
E1) if chain rupture takes place, and look for again and netting successfully and success synchronously, then change state S3 over to, allow to enter energy-saving mode.
For agreement, this protocol stack 14 only enters holding state or does not have service state and just allows to enter energy-saving mode, and described protocol stack 14 all is provided with the 3rd marker bit mentioned above in L1 layer protocol task and L3 layer (network layer) agreement task, reads during for 11 inquiries of energy-saving mode task module.What state the current protocol layer of the common decision of these tasks is in, when these tasks all are in when allowing to enter the state of energy-saving mode, described protocol stack 14 just the 3rd marker bit is set to allow to enter energy-saving mode, otherwise is set to not allow to enter energy-saving mode:
1) if L3 layer protocol task when waiting for reception message, is provided with L3 layer protocol task for allowing to enter energy-saving mode; And, then be set to not allow to enter energy-saving mode if after receiving message.
2) if L1 layer protocol task is in the economize on electricity holding state, L1 layer protocol task then is set for allowing to enter energy-saving mode; Otherwise (for example be in the caller state, be in called state, standby occur and receive wrong, the low base station shifting state etc. that needs of standby incoming level) is set to not allow to enter energy-saving mode.
In summary, the present invention comes the portable terminal control of economizing on electricity by software, the energy-saving mode task adopts the operation of lowest priority task inquiry mode, withdrawing from the energy-saving mode task then moves in the function call mode, utilize the characteristic of operating system in the portable terminal, have adaptivity, when taking turns to the lowest priority task execution, illustrate that other tasks all are idle, therefore can enter energy-saving mode.The preferred switch that adopts the switching realization energy-saving mode of the primary/secondary clock of control is to reach the purpose of stand-by energy-saving.Whereby, economize on electricity control of the present invention not only can not reduce system running speed, and can save software and hardware resources.In addition, under similarity condition, the present invention will be faster than prior art in the speed that enters energy-saving mode, and time of energy-saving mode also more than prior art, thereby realized the optimization of portable terminal economize on electricity.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (10)

1. the power-saving control method of a portable terminal is characterized in that, described method comprises:
Start the energy-saving mode task step,,, make this portable terminal enter energy-saving mode when inquiring when satisfying the economize on electricity condition with the operation of lowest priority task inquiry mode;
Withdraw from the energy-saving mode step, move, satisfy when withdrawing from the economize on electricity condition, this portable terminal is withdrawed from energy-saving mode when inquiring in the function call mode.
2. power-saving control method according to claim 1 is characterized in that, enter energy-saving mode in the described startup energy-saving mode task step after, the cpu clock source of portable terminal is switched to auxilliary clock from master clock;
Described withdraw from withdraw from energy-saving mode in the energy-saving mode step after, the cpu clock source of described portable terminal is switched to master clock from auxilliary clock.
3. power-saving control method according to claim 2 is characterized in that, in described startup energy-saving mode task step, just enters energy-saving mode when satisfying following three kinds of economize on electricity conditions simultaneously, wherein:
First kind of economize on electricity condition, all tasks all are in idle condition in the described portable terminal, and do not have interrupt handling routine in operation;
Second kind of economize on electricity condition, the human-computer interface module of described portable terminal allows to enter energy-saving mode;
The third economize on electricity condition, described portable terminal is in the shutdown charged state, perhaps is in the stand-by period of looking between the net for twice, and perhaps the protocol stack of this portable terminal allows to enter energy-saving mode.
4. power-saving control method according to claim 3 is characterized in that,
Described first kind of economize on electricity condition is satisfied when this energy-saving mode task step operation;
Described second kind of economize on electricity condition is provided with second marker bit by described human-computer interface module, reads when inquiring about for described energy-saving mode task step; And/or
Described the third economize on electricity condition is judged status of mobile terminal by described human-computer interface module, and by described protocol stack the 3rd marker bit is set, and reads when inquiring about for described energy-saving mode task step.
5. power-saving control method according to claim 4, it is characterized in that, in the described startup energy-saving mode task step, this human-computer interface module is judged when meeting the following conditions simultaneously, just this second marker bit is set to allow to enter energy-saving mode, otherwise is set to not allow to enter energy-saving mode:
The bell sound is not being play; The microphone power amplifier is closed; The receiver power amplifier is closed; The time of button had surpassed the scheduled time apart from last time; The receiver path is not opened; Backlight is not opened; Described human-computer interface module does not start software timer, and perhaps in all current software timers that started, the current nearest software timer of time-out time distance is greater than the scheduled time; The burning device does not insert.
6. power-saving control method according to claim 4 is characterized in that, in the described startup energy-saving mode task step, this protocol stack only when described portable terminal is in holding state or does not have service state, just allows to enter energy-saving mode; And described protocol stack all is provided with the 3rd marker bit in L1 layer protocol task and L3 layer protocol task, when described protocol stack is judged when meeting the following conditions simultaneously, just the 3rd marker bit is set to allow to enter energy-saving mode, otherwise is set to not allow to enter energy-saving mode:
Described L1 layer protocol task is in holding state; Described L3 layer protocol task is being waited for reception message.
7. power-saving control method according to claim 2 is characterized in that, described withdrawing from the energy-saving mode step will be withdrawed from energy-saving mode, need satisfy following one of the economize on electricity condition that withdraws from least:
First kind is withdrawed from the economize on electricity condition, and after the L1 protocol layer task of described portable terminal entered energy-saving mode, paging receiving message was interrupted in the timing that predetermined period takes place;
Second kind is withdrawed from the economize on electricity condition, and described portable terminal is by button;
The third withdraws from the economize on electricity condition, and software timer is overtime in the human-computer interface module of described portable terminal;
The 4th kind is withdrawed from the economize on electricity condition, and it is overtime that described portable terminal is used to write down the hardware timer of energy-saving mode duration;
The 5th kind is withdrawed from the economize on electricity condition, and described portable terminal has charger to insert;
The 6th kind is withdrawed from the economize on electricity condition, and described portable terminal has the burning line to insert;
The 7th kind is withdrawed from the economize on electricity condition, described mobile terminal playing bell sound.
8. power-saving control method according to claim 2, it is characterized in that, after entering energy-saving mode in the described startup energy-saving mode task step, the operation of carrying out also comprises: described portable terminal starts at least one hardware timer, it is used for minute book time energy-saving mode duration, so that withdraw from after this energy-saving mode the time for the human-computer interface module compensation software timer of portable terminal; The peripheral circuit of turning-off mobile terminal; And/or, close the crystal oscillating circuit of described master clock;
Described withdraw from withdraw from energy-saving mode in the energy-saving mode step after, the operation of execution also comprises: the crystal oscillating circuit of opening described master clock; Delay predetermined time waits for that the crystal oscillating circuit of described master clock starts to the stable clock signal can be provided; Open the peripheral circuit of described portable terminal; Calculate the duration of this energy-saving mode; And/or, notify described software timer to carry out time bias and handle.
9. power-saving control method according to claim 2, it is characterized in that, described startup energy-saving mode task step runs on the backstage of this portable terminal, and calls each other with each hardware driving, task of timer and/or the protocol stack of described portable terminal, can carry out direct control to hardware simultaneously;
Described each hardware driving, task of timer and/or the protocol stack that withdraws from energy-saving mode step and described portable terminal calls each other.
10. the electricity-saving control system of a realization such as each method of claim 1~9 is characterized in that described system includes:
Start the energy-saving mode task module, be used for,, make this portable terminal enter energy-saving mode when inquiring when satisfying the economize on electricity condition with the operation of lowest priority task inquiry mode;
Withdraw from the energy-saving mode module, be used for moving, satisfy when withdrawing from the economize on electricity condition, this portable terminal is withdrawed from energy-saving mode when inquiring in the function call mode.
CNA200810055839XA 2008-01-09 2008-01-09 Electricity-saving control method and system for mobile terminal Pending CN101198131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA200810055839XA CN101198131A (en) 2008-01-09 2008-01-09 Electricity-saving control method and system for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA200810055839XA CN101198131A (en) 2008-01-09 2008-01-09 Electricity-saving control method and system for mobile terminal

Publications (1)

Publication Number Publication Date
CN101198131A true CN101198131A (en) 2008-06-11

Family

ID=39548215

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA200810055839XA Pending CN101198131A (en) 2008-01-09 2008-01-09 Electricity-saving control method and system for mobile terminal

Country Status (1)

Country Link
CN (1) CN101198131A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101951453A (en) * 2009-07-09 2011-01-19 佳能株式会社 Messaging device and control method thereof with battery saving mode
CN103260224A (en) * 2012-02-17 2013-08-21 中兴通讯股份有限公司 Mobile terminal and method for achieving refreshing of charging animation during charging
CN101673216B (en) * 2008-09-09 2016-03-30 联想(北京)有限公司 Closing application program method and apparatus
WO2016110011A1 (en) * 2015-01-08 2016-07-14 中兴通讯股份有限公司 Terminal, power saving method thereof, storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101673216B (en) * 2008-09-09 2016-03-30 联想(北京)有限公司 Closing application program method and apparatus
CN101951453A (en) * 2009-07-09 2011-01-19 佳能株式会社 Messaging device and control method thereof with battery saving mode
CN101951453B (en) * 2009-07-09 2013-06-12 佳能株式会社 Information processing apparatus having power saving mode, and control method therefor
CN103260224A (en) * 2012-02-17 2013-08-21 中兴通讯股份有限公司 Mobile terminal and method for achieving refreshing of charging animation during charging
CN103260224B (en) * 2012-02-17 2017-04-05 中兴通讯股份有限公司 A kind of mobile terminal and its method for realizing refresh charge animation during charging
WO2016110011A1 (en) * 2015-01-08 2016-07-14 中兴通讯股份有限公司 Terminal, power saving method thereof, storage medium

Similar Documents

Publication Publication Date Title
RU2269208C2 (en) Method and device for storing power in integrated electronic device, containing personal digital assistant and wireless phone
CN1202683C (en) Communication function control method of mobile telephone
US20100077234A1 (en) Control of awake time in mobile device
CN101094475B (en) Method and mobile terminal for monitoring seek channel
CN101577764A (en) Terminal power-saving method and device
CN101859261A (en) Control method and control equipment for releasing memory
US20100208724A1 (en) Power Savings For Network Telephones
CN101938570A (en) Mobile terminal
CN101102573A (en) Mobile terminal, method for controlling mobile telephone terminal, and mobile telephone terminal
CN101645979A (en) Method, system and mobile terminal for switching working modes of mobile terminal
CN101335786A (en) Silencing system and method
US20130322316A1 (en) Wireless communication apparatus and wireless communication method
US8792827B2 (en) Short range wireless communication apparatus
CN101198131A (en) Electricity-saving control method and system for mobile terminal
CN103118420A (en) Mobile hot pot waking-up handling method and device using the same
JP4561986B2 (en) Wireless terminal
CN107132905A (en) Terminal communication control method and terminal
WO2009149612A1 (en) Backlight control method for electronic display device
CN101226669B (en) Anti-theft auxiliary device
CN1741644A (en) Method for realizing time slicing to automatic switching optimal dial network mode on dual-mode mobile telephone
CN101631169B (en) Portable electronic device
CN100479601C (en) Electric saving method of mobile communication equipment
WO2015176403A1 (en) Fast dormancy starting method and terminal
CN201252622Y (en) Silent system
CN101252723A (en) Method for realizing PTT on mobile phone

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20080611