A kind of mobile terminal and power consumption information display method thereof and device
[technical field]
The present invention relates to field of mobile terminals, particularly relate to a kind of mobile terminal and power consumption information display method thereof and device.
[background technology]
Along with constantly popularizing of mobile terminal, the requirement of user to mobile terminal function is more and more higher, such as mobile terminal is mobile phone.
In use mobile terminal process, the use of power supply is the problem that user compares care, such as is the stand-by time of mobile terminal.
In prior art, the dump energy of mobile terminal being prompted to user, has been the technology of a comparative maturity, and user can judge whether charge to mobile terminal or change battery etc. by dump energy.
But, be only that dump energy is shown to user in prior art, such as dump energy accounts for the number percent of total electricity.User can not grasp mobile terminal power consumption information in the course of the work intuitively, such as power consumption electric current etc.
The power consumption test of prior art utilizes power lead and external precision voltage source to power to mobile terminal, is then arranged at by mobile terminal and specifically tests scene, and read the power consumption electric current of concrete numerical value as mobile terminal of precision voltage source.Obviously, because external precision voltage source carries inconvenience, therefore the test of this power consumption electric current generally needs to complete in laboratory.
To sum up, in prior art, there is following technical matters: user wants to obtain the information such as the power consumption electric current of mobile terminal, necessarily has special testing apparatus, and complete in specific place, operating process is more loaded down with trivial details, inefficiency, reduces the experience sense of user to mobile terminal.
[summary of the invention]
One object of the present invention is the power consumption information display device providing a kind of mobile terminal, be intended to solve user in prior art and want to obtain the information such as the power consumption electric current of mobile terminal, necessarily there is special testing apparatus, and complete in specific place, operating process is more loaded down with trivial details, the technical matters of inefficiency.
For solving the problems of the technologies described above, the present invention constructs a kind of power consumption information display device of mobile terminal, described mobile terminal comprises power supply and multiple power consumption module, described power consumption module comprises the input interface connecting described positive source and the output interface being connected described power cathode, and the power consumption information display device of described mobile terminal comprises:
Test resistance, it comprises first end and the second end, and described first end connects the output interface of described power consumption module, and described second end connects described power cathode;
Power consumption information generating module, it connects first end and second end of described test resistance, for obtaining the magnitude of voltage of described test resistance, and generates the power consumption information of described mobile terminal according to the magnitude of voltage obtained;
Display module, for the power consumption information displaying described power consumption information generating module generated.
In the power consumption information display device of mobile terminal of the present invention, the power consumption information of described mobile terminal comprises current power consumption current value.
In the power consumption information display device of mobile terminal of the present invention, described power consumption information generating module specifically comprises:
First voltage acquisition module, for obtaining the magnitude of voltage of described test resistance;
First electric current generation module, for the magnitude of voltage obtained according to described first voltage acquisition module, in conjunction with the resistance value of described test resistance, calculates and generates described current power consumption current value.
In the power consumption information display device of mobile terminal of the present invention, described power consumption information generating module specifically comprises:
Second voltage acquisition module, for obtaining the magnitude of voltage of described test resistance;
Fiducial value memory module, for prestoring the first current value, the second current value and the 3rd current value, and the first magnitude of voltage, the second magnitude of voltage and third voltage value; Wherein, described first magnitude of voltage is described mobile terminal when inputting the first current value, the magnitude of voltage of described test resistance; Described second magnitude of voltage is described mobile terminal when inputting the second current value, the magnitude of voltage of described test resistance; When described third voltage value is described mobile terminal input the 3rd current value, the magnitude of voltage of described test resistance;
Judge module, for after described first voltage acquisition module obtains the magnitude of voltage of described test resistance, compares this magnitude of voltage and described first magnitude of voltage, the second magnitude of voltage and third voltage value, judges belonging to this magnitude of voltage interval;
Second electric current generation module, also for described test resistance magnitude of voltage belonging to interval between described first magnitude of voltage and described second magnitude of voltage time, generate described current power consumption current value according to described first magnitude of voltage, the second magnitude of voltage, the first current value, the second current value; And, when described test resistance magnitude of voltage belonging to interval between described second magnitude of voltage and described third voltage value time, generate described current power consumption current value according to described second magnitude of voltage, third voltage value, the second current value, the 3rd current value.
In the power consumption information display device of mobile terminal of the present invention, the resistance value of described test resistance is 0.02 ohm.
Another object of the present invention is to provide a kind of mobile terminal, be intended to solve user in prior art and want to obtain the information such as the power consumption electric current of mobile terminal, necessarily have special testing apparatus, and complete in specific place, operating process is more loaded down with trivial details, the technical matters of inefficiency.
For solving the problems of the technologies described above, the present invention constructs a kind of mobile terminal, described mobile terminal comprises the power consumption information display device of a mobile terminal, described mobile terminal comprises power supply and multiple power consumption module, described power consumption module comprises the input interface connecting described positive source and the output interface being connected described power cathode, and the power consumption information display device of described mobile terminal comprises:
Test resistance, it comprises first end and the second end, and described first end connects the output interface of described power consumption module, and described second end connects described power cathode;
Power consumption information generating module, it connects first end and second end of described test resistance, for obtaining the magnitude of voltage of described test resistance, and generates the power consumption information of described mobile terminal according to the magnitude of voltage obtained;
Display module, for the power consumption information displaying described power consumption information generating module generated.
Another object of the present invention is the power consumption information display method providing a kind of mobile terminal, be intended to solve user in prior art and want to obtain the information such as the power consumption electric current of mobile terminal, necessarily there is special testing apparatus, and complete in specific place, operating process is more loaded down with trivial details, the technical matters of inefficiency.
For solving the problems of the technologies described above, the present invention constructs a kind of power consumption information display method of mobile terminal, said method comprising the steps of:
There is provided mobile terminal, described mobile terminal comprises power supply and multiple power consumption module, and described power consumption module comprises the input interface connecting described positive source and the output interface being connected described power cathode;
To connect between the output interface and described power cathode of described power consumption module a test resistance;
Obtain the magnitude of voltage of described test resistance, and generate the power consumption information of described mobile terminal according to the magnitude of voltage obtained;
By the power consumption information displaying generated.
In the power consumption information display method of mobile terminal of the present invention, the power consumption information of described mobile terminal comprises current power consumption current value.
In the power consumption information display method of mobile terminal of the present invention, obtain the magnitude of voltage of described test resistance, and specifically comprise according to the step that the magnitude of voltage obtained generates the power consumption information of described mobile terminal:
Obtain the magnitude of voltage of described test resistance;
According to the magnitude of voltage of described acquisition, in conjunction with the resistance value of described test resistance, calculate and generate described current power consumption current value.
In the power consumption information display method of mobile terminal of the present invention, obtain the magnitude of voltage of described test resistance, and specifically comprise according to the step that the magnitude of voltage obtained generates the power consumption information of described mobile terminal:
Prestore the first current value, the second current value and the 3rd current value, and the first magnitude of voltage, the second magnitude of voltage and third voltage value; Wherein, described first magnitude of voltage is described mobile terminal when inputting the first current value, the magnitude of voltage of described test resistance; Described second magnitude of voltage is described mobile terminal when inputting the second current value, the magnitude of voltage of described test resistance; When described third voltage value is described mobile terminal input the 3rd current value, the magnitude of voltage of described test resistance;
Obtain the magnitude of voltage of described test resistance at block after, this magnitude of voltage and described first magnitude of voltage, the second magnitude of voltage and third voltage value are compared, judge belonging to this magnitude of voltage interval;
When described test resistance magnitude of voltage belonging to interval between described first magnitude of voltage and described second magnitude of voltage time, generate described current power consumption current value according to described first magnitude of voltage, the second magnitude of voltage, the first current value, the second current value, and
When described test resistance magnitude of voltage belonging to interval between described second magnitude of voltage and described third voltage value time, generate described current power consumption current value according to described second magnitude of voltage, third voltage value, the second current value, the 3rd current value.
The present invention is relative to prior art, by a test resistance of connecting between the power consumption module and power cathode of mobile terminal, when the power consumption electric current needing acquisition mobile terminal current, the magnitude of voltage of test resistance is obtained by built-in power consumption information generating module, and generate current power consumption current value according to the magnitude of voltage obtained, obviously, the present invention gets final product the power consumption information such as the current power consumption current value of the real-time described mobile terminal of acquisition without the need to carrying special testing apparatus, acquisition process is succinct, efficiency is high, drastically increases the experience sense of user to mobile terminal.
For foregoing of the present invention can be become apparent, preferred embodiment cited below particularly, and coordinate institute's accompanying drawings, be described in detail below:
[accompanying drawing explanation]
Fig. 1 is the preferred embodiment theory diagram of the power consumption information display device of mobile terminal in the present invention;
Fig. 2 is the first preferred embodiment theory diagram of power consumption information generating module in the present invention;
Fig. 3 is the second preferred embodiment theory diagram of power consumption information generating module in the present invention;
Fig. 4 is the schematic flow sheet of the preferred embodiment of the power consumption information display method of mobile terminal in the present invention.
[embodiment]
The explanation of following embodiment is graphic with reference to what add, can in order to the specific embodiment implemented in order to illustrate the present invention.
Fig. 1 is the power consumption information display device of the mobile terminal of mobile terminal in the present invention and the theory diagram of mobile terminal.
Described mobile terminal comprises power supply 11 and multiple power consumption module 12,13 ... 1n, for power consumption module 12, described power consumption module 12 comprises the input interface 121 connecting described power supply 11 positive pole and the output interface 122 being connected described power supply 11 negative pole.
The power consumption information display device 20 of described mobile terminal comprises test resistance 21, power consumption information generating module 22 and display module 23.
Wherein, test resistance 21 comprises first end 211 and the second end 212, and described first end 211 connects the output interface of described power consumption module, and described second end 212 connects the negative pole of described power supply 11.When described power supply 11 is powered to described mobile terminal, the electric current of described mobile terminal will flow back to the ground pin (figure does not indicate) of described power supply 11 via described test resistance 21.
In the present invention, the resistance value of described test resistance 21 is preferably 0.02 ohm, when the resistance value of described test resistance 21 is 0.02 ohm, namely the voltage obtaining described test resistance 21 is guaranteed, can also avoid owing to described test resistance 21 consuming the excessive problem causing power supply to waste of useless power, described test resistance 21 can also be avoided to produce problem that excessive voltage drop causes described power consumption module instability, the resistance value of certain described test resistance 21 also can be other value, does not enumerate herein.
Described power consumption information generating module 22 connects first end 211 and second end 212 of described test resistance 21, and described display module 23 connects described power consumption information generating module 22.
Wherein, described power consumption information generating module 22 for obtaining the magnitude of voltage of described test resistance, and generates the power consumption information of described mobile terminal in conjunction with the resistance value of described test resistance, the charge value of described power supply; The power consumption information displaying of described display module 23 for described power consumption information generating module 22 is generated.
Preferably, the power consumption information of described mobile terminal comprises current power consumption current value, can certainly be other power consumption information, not enumerate herein.
Refer to Fig. 2, Fig. 2 is the first preferred embodiment theory diagram of power consumption information generating module 22 in the present invention.Described power consumption information generating module 22 specifically comprises the first voltage acquisition module 221 and the first electric current generation module 222.
Wherein, described first voltage acquisition module 221 is for obtaining the magnitude of voltage of described test resistance 21; The magnitude of voltage of described first electric current generation module 222 for obtaining according to described first voltage acquisition module 221, in conjunction with the resistance value of described test resistance 21, calculate and generate current power consumption current value, computing formula is I
0=V
0/ R
0.Wherein, V
0for the magnitude of voltage of described test resistance 21, R
0for the resistance value of described test resistance 21, I
0for power consumption current value.
Refer to Fig. 3, Fig. 3 is the second preferred embodiment theory diagram of power consumption information generating module 22 in the present invention, and described power consumption information generating module 22 specifically comprises the second voltage acquisition module 221, second electric current generation module 222, fiducial value memory module 223 and judge module 224.
Described fiducial value memory module 223 is for prestoring the first current value I
1, the second current value I
2with the 3rd current value I
3, and the first magnitude of voltage V
1, the second magnitude of voltage V
2with third voltage value V
3; Wherein, described first magnitude of voltage V
1for described mobile terminal inputs the first current value I
1time (i.e. big current), the magnitude of voltage of described test resistance 21; Described second magnitude of voltage V
2for described mobile terminal inputs the second current value I
2time (namely electric current), the magnitude of voltage of described test resistance 21; Described third voltage value V
3for described mobile terminal input the 3rd current value I
3time (i.e. small area analysis), the magnitude of voltage of described test resistance 21.
In specific implementation process, mobile terminal can be connected to a high-precision reometer, and by general purpose interface bus (General-Purpose Interface Bus, GPIB) interface is connected to computer, described mobile terminal is by USB (universal serial bus) (Universal Serial BUS, USB) or serial ports be connected to computer, to obtain above-mentioned each current value and magnitude of voltage, and the result of acquisition is stored in mobile terminal internal storage, in view of being mature technology, no longer describe in detail herein.
Described second voltage acquisition module 221 is for obtaining the magnitude of voltage of described test resistance 21, and described judge module 224 is for obtaining the magnitude of voltage V of described test resistance 21 at described second voltage acquisition module 221
0after, by this magnitude of voltage V
0with described first magnitude of voltage V
1, the second magnitude of voltage V
2with third voltage value V
3compare, judge this magnitude of voltage V
0affiliated interval.
As the magnitude of voltage V of described test resistance 21
0at described first magnitude of voltage V
1with described second magnitude of voltage V
2between time, described second electric current generation module 222 is according to described first magnitude of voltage V
1, the second magnitude of voltage V
1, the first current value I
1, the second current value I
2generate current power consumption current value I
0; Concrete formula is:
I
0=I
1+(I
2-I
1)×(V
0-V
1)/(V
2-V
0);
As the magnitude of voltage V of described test resistance 21
0at described second magnitude of voltage V
2with described third voltage value V
3between time, described second electric current generation module 222 is according to described second magnitude of voltage V
2, third voltage value V
3, the second current value I
2, the 3rd current value I
3generate current power consumption current value I
0; Concrete formula is:
I
0=I
2+(I
3-I
2)×(V
0-V
2)/(V
3-V
0)。
In specific implementation process, described mobile terminal also comprises a timer (not shown), start to generate power consumption information in described power consumption information generating module 22, and when being shown by described display module 23, described timer starts timing, when timer arrives the time of setting, for example 5 seconds, described power consumption information generating module 22 stopped generating power consumption information, and described display module 23 stops display, by arranging this timer, the electricity of described power supply 11 can be saved.
The present invention by connecting a test resistance 21 between the power consumption module and power supply 11 negative pole of mobile terminal, when the power consumption electric current needing acquisition mobile terminal current, obtained the magnitude of voltage of test resistance 21 by built-in power consumption information generating module 22, and generate current power consumption current value according to the magnitude of voltage obtained.Obviously, the present invention gets final product the power consumption information such as the current power consumption current value of the real-time described mobile terminal of acquisition without the need to carrying special testing apparatus, and acquisition process is succinct, and efficiency is high, drastically increases the experience sense of user to mobile terminal.
The present invention also provides a kind of mobile terminal, and described mobile terminal comprises the power consumption information display device of mobile terminal provided by the invention, in view of this device is described later in detail above, repeats no more herein.
Refer to Fig. 4, Fig. 4 is the schematic flow sheet of the power consumption information display method of mobile terminal in the present invention.
In step S401, there is provided mobile terminal, described mobile terminal comprises power supply and multiple power consumption module, and described power consumption module comprises the input interface connecting described positive source and the output interface being connected described power cathode, specifically refer to Fig. 1, repeat no more herein.
In step S402, a test resistance of connecting between the output interface and described power cathode of described power consumption module.
Preferably, the resistance value of described test resistance is 0.02 ohm, can certainly be other resistance value, not enumerate herein.
In step S403, obtain the magnitude of voltage of described test resistance, and generate the power consumption information of described mobile terminal according to the magnitude of voltage obtained.
Preferably, the power consumption information of described mobile terminal comprises current power consumption current value.
In specific implementation process, according to the magnitude of voltage of described test resistance, in conjunction with the resistance value of described test resistance, can calculate and generate current positive power consumption current value.
Also according to the magnitude of voltage of described test resistance, and can generate current power consumption current value according to the computing formula pre-set, this computation process specifically describes as follows:
Prestore the first current value, the second current value and the 3rd current value, and the first magnitude of voltage, the second magnitude of voltage and third voltage value; Wherein, described first magnitude of voltage is described mobile terminal when inputting the first current value, the magnitude of voltage of described test resistance; Described second magnitude of voltage is described mobile terminal when inputting the second current value, the magnitude of voltage of described test resistance; When described third voltage value is described mobile terminal input the 3rd current value, the magnitude of voltage of described test resistance.
After the magnitude of voltage obtaining described test resistance, this magnitude of voltage and described first magnitude of voltage, the second magnitude of voltage and third voltage value are compared, judge belonging to this magnitude of voltage interval.
When described test resistance magnitude of voltage belonging to interval between described first magnitude of voltage and described second magnitude of voltage time, generate current power consumption current value according to described first magnitude of voltage, the second magnitude of voltage, the first current value, the second current value; When described test resistance magnitude of voltage belonging to interval between described second magnitude of voltage and described third voltage value time, current power consumption current value is generated according to described second magnitude of voltage, third voltage value, the second current value, the 3rd current value, detailed description about above-mentioned computation process refers to above, repeats no more herein.
In step s 404, the power consumption information displaying will generated.
The present invention gets final product the power consumption information such as the current power consumption current value of the real-time described mobile terminal of acquisition without the need to carrying special testing apparatus, and acquisition process is succinct, and efficiency is high, drastically increases the experience sense of user to mobile terminal.
In sum; although the present invention discloses as above with preferred embodiment; but above preferred embodiment is also not used to limit the present invention; those of ordinary skill in the art; without departing from the spirit and scope of the present invention; all can do various change and retouching, the scope that therefore protection scope of the present invention defines with claim is as the criterion.