Background technology
Along with the fast development of science and technology, mobile phone has become people's indispensable instrument of living.Wherein, the alarm of mobile phone, the service that the user that can be needs quarter-bell provides convenience.For example, the user can set the alarm clock function of mobile phone, makes alarm set time every day jingle bell, and needn't need be set the time as quarter-bell everyday.Or, when the user travels, utilize mobile phone to get final product reminder time, do not need additionally to carry general quarter-bell.And the time of general quarter-bell, the alarm of mobile phone did not have the problem of this error easily because of dead battery causes error.Yet this alarm must just can be enabled under the situation of mobile phone power-on, causes custom shutdown user's inconvenience, therefore, how also can carry out alarm when shutdown, has become one and has considered greatly.
In the known technology, also can carry out alarm when shutting down in order to make, mobile phone must be taked the shutdown of dormancy shutdown mode, makes it still can provide a spot of electric current to start for alarm when shutdown.So, also need electric consumption when causing mobile phone shutdown, shorten the stand-by time of mobile phone and the battery life of minimizing mobile phone greatly.
Because every problem of known technology, in order to take into account solution, the inventor proposes a kind of control system and method thereof based on the research and development of being engaged in portable communication device for many years and many practical experience, be applicable on the portable communication device, with as above-mentioned expectation one implementation and foundation
Summary of the invention
Because the problem that the stand-by time of known mobile phone shortens, the present invention utilizes a kind of control system and method thereof, makes the user of shutdown custom, the stand-by time that effectively prolongs its mobile phone.
Therefore, for reaching above-mentioned purpose,, be applicable to portable communication device just like mobile phone according to a kind of control system of the present invention.This control system comprises a quarter-bell processing unit, a storage element and a control unit at least.Wherein, the quarter-bell processing unit provides an alarm.Storage element stores a quarter-bell time and a quarter-bell state flags according to alarm.Control unit is used for when portable communication device is carried out an operation program, and identification quarter-bell state flags is to produce a behavior.
From the above, because of according to control method of the present invention, be applicable to portable communication device just like mobile phone.This method comprises the following step at least: a quarter-bell processing unit is set, so that an alarm to be provided.By a storage element,, store a quarter-bell time and a quarter-bell state flags according to alarm.This quarter-bell state flags can be an effective flag or an invalid flag.Utilize a control unit when portable communication device execution one is the operation program of a boot program or a shutdown programm, identification quarter-bell state flags is to produce a behavior.
For technical characterictic of the present invention and the effect reached are had further separate and be familiar with, with preferred embodiment and cooperate detailed explanation as after.
Embodiment
Hereinafter with reference to relevant drawings, security schema switched system and method thereof according to preferred embodiment of the present invention are described, wherein components identical will be illustrated with identical reference marks.
See also Fig. 1, Fig. 1 is the schematic diagram of disclosed control system.Among the figure, contain a control system 12 in the portable communication device 11, and control system interior 12 comprises a quarter-bell processing unit 13, a storage element 14 and a control unit 15.Wherein, quarter-bell processing unit 13 has an alarm 131.Storage element stores the quarter-bell state flags 1312 that the quarter-bell time 1311 and one can be effective flag or invalid flag according to alarm 131.Control unit is used for when portable communication device 11 execution one are the operation program 111 of a boot program 1111 or a shutdown programm 1112, and the quarter-bell state flags 1312 of identification storage element 14 is to produce a behavior 151.For instance, this behavior can comprise following several situation usually:
(a) when portable communication device is carried out boot program, control unit identification quarter-bell state flags is effective flag, promptly compare system time and quarter-bell time, when system time has surpassed the quarter-bell time, control unit to storage element quarter-bell state flags is set to invalid flag, and removes memory time.
(b) when portable communication device was carried out boot program, control unit identification quarter-bell state flags was effective flag, promptly compares system time and quarter-bell time, when system time does not surpass the quarter-bell time, then according to the quarter-bell time, a corresponding interrupt routine was set.When the quarter-bell time arrived and carries out interrupt routine, control unit was to storage element, and the quarter-bell state flags is set to invalid flag, and removed memory time.
(c) when portable communication device was carried out shutdown programm, control unit identification quarter-bell state flags was effective flag, carried out dormancy shutdown.
(d) when portable communication device was carried out shutdown programm, control unit identification quarter-bell state flags was invalid flag, carried out a shutdown fully.
In addition, the dormancy shutdown refers to that portable communication device provides a spot of electric current, start the required energy to supply with alarm, and shutdown means all energy of closing portable communication device fully.
See also Fig. 2, be the flow chart of disclosed control method, be applicable in the portable communication device just like mobile phone.This control method comprises the following step at least: by beginning expansion, a quarter-bell processing unit is set in portable communication device, and an alarm S21 is provided.By a storage element,, store a quarter-bell time and a quarter-bell state flags S22 according to alarm.Utilize a control unit when portable communication device is carried out an operation program, identification quarter-bell state flags is to produce a behavior S23.At last, finish whole flow process.
See also Fig. 3, be the flow chart that alarm is set of embodiments of the invention.Wherein comprise: by beginning expansion, the user starts alarm and the quarter-bell time is set, and the quarter-bell processing unit is the quarter-bell state flags S31 of effective flag according to the action generation one that the user starts alarm.The storage unit stores quarter-bell time reaches and is the quarter-bell state flags of effective flag, uses S32 for control system.Finish whole flow process.
See also Fig. 4, be the flow chart of the boot program of control system of the present invention.Wherein comprise at least: by beginning to launch portable communication device execution boot program S41.Whether control unit identification quarter-bell state flags is effective flag S42, if whether control unit comparison system time surpasses quarter-bell time S43, if a corresponding interrupt routine is set according to the quarter-bell time.When the quarter-bell time arrives, carry out interrupt routine S44, and when carrying out interrupt routine, control unit quarter-bell state flags is set to invalid flag, and removes S45 memory time, then, carry out normal boot-strap flow process S46.If control unit identification quarter-bell state flags is not to be effective flag, can carry out normal boot-strap flow process S46.If control unit comparison system time surpasses the quarter-bell time, then control unit quarter-bell state flags is set to invalid flag, and removes S45 memory time, carries out normal boot-strap flow process S46 again, finishes whole flow process.
Continued access sees also Fig. 5, is the flow chart of the shutdown programm of control system of the present invention.Wherein comprise at least: by beginning to launch portable communication device execution shutdown programm S51.Whether control unit identification quarter-bell state flags is effective flag S52, if S53 fully then shuts down.If not, then carry out the dormancy shutdown, wait for that alarm starts S54.Finish whole flow process.
The above only is an illustrative, but not is restricted person.Anyly do not break away from spirit of the present invention and category, and, all should be contained in the accompanying claim its equivalent modifications of carrying out or change.