Summary of the invention
Technical matters to be solved by this invention, be to provide a kind of embedded electronic device and method thereof with electricity-saving function, with the battery update mode that the solves traditional embedded electronic device problem of power consumption too, the present invention is the state that determines whether upgrading battery in the mode of judging battery electric quantity, and reduce the number of times of waken system, to alleviate the electric quantity consumption of battery.
In order to solve the problems of the technologies described above, according to a kind of scheme of the present invention, provide a kind of embedded electronic device with electricity-saving function, this embedded electronic device is obtained the power supply supply by battery, and this device comprises: arithmetic system and microprocessor.Wherein arithmetic system is as the arithmetic core of embedded electronic device, and has the feature operation of battery saving mode; And microprocessor is in order to detecting the electric quantity change of battery, and when the electric weight of this battery reached at least one caution electric weight, the output look-at-me was given this arithmetic system.Therefore when arithmetic system during in the feature operation that enters into battery saving mode, and after receiving look-at-me, then arithmetic system can be by the state of charge that wakes and upgrade battery in the battery saving mode up.
In the above-mentioned embedded electronic device with electricity-saving function, this microprocessor can be by continuing or detecting the electric quantity change of this battery to obtain the instant electric weight of this battery at interval.
In the above-mentioned embedded electronic device with electricity-saving function, when this microprocessor can reach this caution electric weight at the electric weight of this battery, export the instant electric weight of this battery and give this arithmetic system.
In the above-mentioned embedded electronic device with electricity-saving function, this arithmetic system can be upgraded the state of charge of this battery according to the instant electric weight of this battery that receives.
In the above-mentioned embedded electronic device with electricity-saving function, this arithmetic system can enter into the operation of this battery saving mode after the state of charge of this battery is finished in renewal.
In order to solve the problems of the technologies described above, according to another kind of scheme of the present invention, a kind of electricity saving method of embedded electronic device is provided, embedded electronic device is obtained the power supply supply by battery, and this method comprises: provide the arithmetic system of the feature operation with battery saving mode to be used as the arithmetic core of embedded electronic device; Provide in order to detect microprocessor that this battery electric quantity changes to embedded electronic device; And when arithmetic system enters into the feature operation of battery saving mode, and when the electric weight of battery reaches at least one caution electric weight, give arithmetic system by microprocessor output look-at-me; Arithmetic system is according to the look-at-me that receives afterwards, and wakes and upgrade the state of charge of this battery from battery saving mode up.
In the electricity saving method of above-mentioned embedded electronic device, this microprocessor can be by continuing or detecting the electric quantity change of this battery to obtain the instant electric weight of this battery at interval.
In the electricity saving method of above-mentioned embedded electronic device, when this microprocessor can reach this caution electric weight at the electric weight of this battery, export the instant electric weight of this battery and give this arithmetic system.
In the electricity saving method of above-mentioned embedded electronic device, this arithmetic system can be upgraded the state of charge of this battery according to the instant electric weight of this battery that receives.
In the electricity saving method of above-mentioned embedded electronic device, this arithmetic system can enter into the operation of this battery saving mode after the state of charge of this battery is finished in renewal.
Therefore by above-mentioned embodiment, the present invention only has when battery electric quantity equals to warn electric weight, just can upgrade the state of battery, so can allow the number of times of renewal battery status of embedded electronic device obviously reduce, and can reach the state that upgrades battery equally really, and allow the power-on time of battery prolong, to reach power saving effect.Under the range operation, the number of times that the present invention upgrades battery electric quantity obviously is less than classic method at one time.
Above general introduction and ensuing detailed description and accompanying drawing all are to reach mode, means and the effect that predetermined purpose is taked in order to further specify the present invention.And relevant other purposes of the present invention and advantage will be set forth in follow-up explanation and accompanying drawing.
Embodiment
The invention provides a kind of embedded electronic device with electricity-saving function operation, after the part of this indication electricity-saving function operation is meant that embedded electronic device is entering the battery saving mode operation, can upgrade the state of charge of battery that embedded electronic device uses by a kind of mode of more power saving, to reach the effect that in renewal process, can reduce battery power consumption.
Next see also Fig. 3, it is the functional block diagram of the embedded electronic device of the preferred embodiment of the present invention.The described embedded electronic device 2 of present embodiment refers to a kind of device of obtaining the power supply supply by battery 24, for example can be laptop, personal digital assistant, portable navigation equipment ... Deng, only be used to illustrate and still can comprise the electronic installation of other kinds at this said apparatus.Embedded electronic device 2 mainly comprises arithmetic system 20 and microprocessor 22.Wherein arithmetic system 20 is the arithmetic core of embedded electronic device 2, and provide required feature operation relatively according to different types of embedded electronic device 2, and this arithmetic system 20 provides the feature operation of battery saving mode at least, this battery saving mode only keeps embedded electronic device 2 necessity when carrying out power supply supply, as the power supply that wakes the required interlock circuit part of battery saving mode operation up promptly kept supply, and remaining circuit is partly then cut off the power supply or only powers with minimum power modes.
Part as for microprocessor 22 then is coupled between arithmetic system 20 and the battery 24, microprocessor 22 mainly is the electric quantity change that is used for detecting battery 24, and can after enter battery saving mode, embedded electronic device 2 wake embedded electronic device 2 up in a kind of mode of more power saving and upgrade with the electric weight that carries out battery 24.The mode of upgrading battery electric quantity in view of tradition is promptly the embedded electronic device in the battery saving mode 2 to be given wake operation every one period set time, but this kind mode is because of carrying out the quicker consumption that too much wake-up times has caused battery 24 electric weight.Therefore the microprocessor 22 of present embodiment only has when battery 24 electric weight reach specific electric weight, just can the electric weight that embedded electronic device 2 be waken up to carry out battery 24 be upgraded.
The arithmetic system 20 of aforementioned present embodiment can be considered the combination of central processing unit and operating system, and the required feature operation of embedded electronic device 2 is finished in the function service of calculation process that provides by central processing unit and operating system; And microprocessor 22 can be implemented by the single-chip microprocessor.Yet doing explanation at this embodiment to arithmetic system 20 and microprocessor 22 only is in order to illustrate further technical characterstic of the present invention; be not in order to limit the scope of the invention; all present technique field personnel are expected is equal to embodiment, all drops in the protection spirit of the present invention.
Consult Fig. 3 again, microprocessor 22 detect with continuation or at interval the property detection learn the instant state of charge that battery 24 is present, and the instant state of charge of this battery and microprocessor 22 inner default at least one group of caution electric weight compared, and only when comparison result equates, be the instant electric weight of battery 24 when equaling to warn electric weight, microprocessor 22 promptly can notify embedded electronic device 2 to need wake up and need to upgrade the state of charge of battery 24 from battery saving mode.
Next illustrate further the state of charge how embedded electronic device 2 was waken up and upgraded battery 24, when microprocessor 22 detections learn that battery 24 electric weight equal to warn electric weight, the information (Information) of microprocessor 22 output look-at-mes (Interrupt) and battery 24 present electric weight is given arithmetic system 20, make arithmetic system 20 from battery saving mode, to be waken up, and upgrade the state of charge of battery 24 according to the information of receiving the present electric weight of battery according to the look-at-me of receiving.
Then please continue to consult Fig. 4, and cooperate simultaneously with reference to figure 3, Fig. 4 is the process flow diagram of electricity saving method of the embedded electronic device of the preferred embodiment of the present invention, and execution in step is as follows:
At first, make embedded electronic device 2 enter the feature operation of battery saving mode (as step S401), for example embedded electronic device 2 promptly enters battery saving mode automatically in a period of time inoperation and also or directly the mode of operation of embedded electronic device 2 is switched to battery saving mode;
Next detect the instant electric weight (as step S403) of battery 24 by microprocessor 22 to obtain current battery;
According to the testing result of step S403, microprocessor 22 judges whether the instant electric weight of battery 24 equals to warn electric weight (as step S405) afterwards;
And be judged as when being as step S405, then microprocessor 22 output look-at-mes are given arithmetic system 20 (as step S407);
Arithmetic system 20 promptly can be waken up (as step S409) according to the look-at-me of receiving from battery saving mode afterwards, and obtains the instant electric weight of battery 24 by microprocessor 22;
Then, arithmetic system 20 promptly can be upgraded the state of battery 24 according to the instant electric weight that receives battery 24, get back to step S401 afterwards so that embedded electronic device 2 enters battery saving mode once again, and repeat the execution of abovementioned steps, break away from by the manual operation mode till battery saving mode gets back to the normal operation pattern up to embedded electronic device 2.
Abovementioned steps S405 then gets back to step S403 and continues to carry out when being judged as not.
Judge among the abovementioned steps S405 that the caution electric weight that uses defaults in the microprocessor 22, and microprocessor 22 can be preset the different caution electric weight of many groups, as long as, all can be learnt and upgrade the state of battery 24 by arithmetic system 20 so that the electric quantity change of battery 24 under different time meets these caution electric weight one of them.Therefore can be really the variation of battery electric quantity be reflected by renewal by the described method of present embodiment, and have preferable power saving effect in this renewal process.
Then please continue to consult Fig. 5, Fig. 5 is used for illustrating the comparison synoptic diagram that adopts classic method and adopt the battery that method is upgraded of present embodiment.Vbat among Fig. 5 is the electric weight of battery 24, and Control A is traditional embedded electronic device working control signal of (as shown in Figure 1), and control B is the working control signal of the embedded electronic device of present embodiment.And on behalf of embedded electronic device, above-mentioned control A and control B when high level state be operated under the normal operation, and on behalf of embedded electronic device, control A and control B when low level state be operated under the battery saving mode.From Fig. 5 can learn classic method be every one period set time just with system wake-up, to upgrade the state of battery, shown in the control signal of controlA; The described new method of present embodiment then only just needs waken system when battery electric quantity is 3.9V, 3.7V, 3.6V, to upgrade the state of battery, shown in the control signal of control B.Therefore relatively, classic method is far more than the method that present embodiment provided, and in other words, present embodiment has less update times, thereby preferable power saving effect is arranged from update times.
The present illustrates according to shown in Figure 5 doing, supposing the system is operated in the about 300mA of power consumption under the normal operation, and the power consumption that system leaves unused under battery saving mode is about 100mA, now the system with two embedded electronic devices illustrates as an example, and uses the new method of traditional aging method and present embodiment to upgrade the state of battery respectively.Wherein per 2 seconds waken systems of classic method once, and system finishes the state that upgrades battery and needs 1 second; And the new method of present embodiment has only the state that just need upgrade battery when battery is reduced to 3.9V, 3.7V, these three kinds of voltages of 3.6V, and system finishes the state that upgrades battery and equally needs 1 second.Suppose that in addition these two employed battery behaviors of system are all identical, therefore according to battery shown in Figure 5 after discharge 1 hour, battery electric quantity will be reduced to 3.6V from filling full state, and will be therefore new, the total power consumption difference of aging method after 1 hour is as follows:
Aging method: 3600/ (2+1) * (100 * 2+300 * 1)=600000 (mA/s)/3600=166.67 (mA/hr);
New method: (3600-3) * 100+300 * 3=360600 (mA/s)/3600=100.17 (mA/hr);
166.67-100.17=66.5(mA/hr);
Therefore can know from aforementioned result of calculation and learn new, aging method difference at total power consumption, the new method of present embodiment can be saved total electric quantity consumption of about 66.5 (mA/hr) with respect to traditional aging method, that is to say that present embodiment can reach the power saving of 39.9% (66.5/166.67=39.9), obviously the new method of present embodiment has preferable power saving effect.
In sum, the present invention discloses a kind of the mode that just can notify the system wake-up in the battery saving mode and upgrade the electric weight of battery when battery electric quantity equals specific caution electric weight, this kind update mode need meet that this condition that battery electric quantity equals specific caution electric weight just carried out, further the invention belongs to a kind of of not timing update mode, compare with the traditional update method that belongs to the mode of regularly upgrading, significant different technical characteristics is arranged.Therefore at one time under the range operation, the number of times that the present invention upgrades battery electric quantity obviously is less than classic method, so the present invention has preferable power saving effect, and is prolonged the power-on time of battery.
Yet above disclosed accompanying drawing and explanation only are embodiments of the invention, all those skilled in the art be when can doing other all improvement according to above-mentioned explanation, and these change and still belong in the claim that invention spirit and claim of the present invention limited.