Background technology
The stand-by time of mobile phone is the problem that each user is concerned about, also is the problem that each operator is concerned about.Therefore operator often requires equipment vendor that the detailed machine data for the treatment of is provided when mobile phone being made into the net test.In a single day and find the stand-by time problem, generally also can require equipment vendor's cost great strength to deal with problems.But because mobile phone place network environment is ever-changing, signal difference is very big, even user's usage also varies, so the stand-by time that at every turn is full of behind the electricity of each mobile phone is not a fixed value.Simultaneously, also almost forever less than theoretical value.This make the cell phone standby time determine very difficult.
In addition,, introduce the method for common several test stand-by times below, will recognize its difficulty even the test of theoretical value is also very difficult.
At first introduce the method that drops into special messenger's test: the hand dipping cell phone standby time.The tester is full of mobile phone when establishing machine by cable, picks up counting with timer.Till battery of mobile phone exhausts automatic shutdown.The test gained time is stand-by time
But because the power-saving technique of mobile phone is good at present, if generally do not make a phone call, stand-by time had at least more than 100 hours, even reached several weeks.Therefore artificial observation is unusual expend energy on up to running down of battery, and just in case do not note in running down of battery, do not write stand-by time down, then all that has been achieved is spoiled.
Therefore the problem of the method maximum is the testing cost height, and practical operation is failed easily.
And when opening and closing owing to handset transmitter, the power difference of consumption is very big, and then has influenced stand-by time.Therefore the stand-by time that causes for some backstages emissions phenomenon that shortens, this method can't be found its root.
In order to solve the problem of special messenger's method of testing, also, can in the short as far as possible time, finish test in order to shorten the testing time.Introduced second method, promptly removed battery of mobile phone, used stabilized voltage power supply to power to mobile phone.Like this, use ammeter monitoring a period of time (as far as possible comprising situations such as backstage emission), can calculate the average current of mobile phone.At last, according to the capacity of battery, can extrapolate the stand-by time of mobile phone divided by the electric weight of unit interval with total electric weight.This method is the way of at present the most common also standard.
But the greatest problem of this method is, during the low electricity shutdown of mobile phone, battery does not exhaust, and the time point of shutdown is that cell phone software calculates according to algorithm.This algorithm need guarantee that dump energy can allow mobile phone normally electric down, also can normally start when charging future.Stand-by time is untrue yet measures examination accurately in any case therefore calculate by formula.
And the length of mobile phone average current computing time of this method is not determined requirement, and in addition because the difference of network configuration, the interval and the number of times of backstage emission are uncertain, so the calculating of average current is very inaccurate.At least change a testing location, will be different because of the difference of network.Therefore the final stand-by time of calculating is very inaccurate yet.Can only be the theoretical value in certain place, it be just different to change a place.
Further because of the difference of network configuration, if the local testing time need be tested in the somewhere, this method need be carried to the locality to whole testers, and difficulty is bigger.Cause to realize basically.
In sum, exist in the prior art and can't accurately measure the cell phone standby time method, and method of measurement of the prior art can not be carried out easily in any place.
Embodiment
The embodiment of the invention provides the method for testing mobile terminal stand-by time.
Embodiment 1, and referring to Fig. 1, this method is specially:
Step 101: obtain portable terminal time started and preservation; Concrete acquisition methods can for, when mobile terminal-opening, obtain the available machine time of portable terminal time recording unit records;
Step 102: obtain portable terminal unused time and preservation; Concrete acquisition methods can for, when portable terminal shuts down, obtain the unused time of portable terminal time recording unit records;
Step 103: the content of described preservation is reported.
By above method with the portable terminal self record its stand-by time, the method with respect to prior art 1,2 makes that this stand-by time is more accurate so.But because portable terminal in use can carry out the emission of irregular backstage, foreground emission, will cause stand-by time multiple situation to occur so, for the reason of analyzing multiple situation appearance can be carried out following examples.
The emission of so-called backstage refers to, and portable terminal can be because reasons such as network registry transmit under idle condition, and this emission is sightless for the user, so be referred to as the backstage emission in the embodiment of the invention.And the foreground emission refers to the visible send action of user.
Embodiment 2, and referring to Fig. 2, this method is specially:
Step 201: obtain portable terminal time started and preservation; Concrete acquisition methods can for, when mobile terminal-opening, obtain the available machine time of portable terminal time recording unit records;
Step 202: obtain portable terminal foreground emission time started, transmitting power, portable terminal foreground emission concluding time and preservation; When portable terminal carries out foreground emission, the emission of end foreground, all obtain the corresponding time, and obtain the corresponding front platform transmission power level from the transmitting power unit of portable terminal from portable terminal time recording unit records;
Step 203: obtain portable terminal unused time and preservation; Concrete acquisition methods can for, when portable terminal shuts down, obtain the unused time of portable terminal time recording unit records;
Step 204: the content of described preservation is reported.
Because portable terminal can use in moving, so the transmitting power of portable terminal is constantly variation in this method.Therefore writing down the method for transmitting power and emission duration, should be record short-time average result, guarantees that (the power * time) of writing down can reflect the transient change of transmitting power.After that is to say backstage emission beginning, preserve transmitting power mean value in this time period every the time period of presetting.
The situation of carrying out backstage emission in test process has only been described among the embodiment 2, but since in test process operation be unpredictable, therefore also may carry out the foreground emission, therefore the situation as embodiment 3 also may appear, referring to Fig. 3:
Step 301: obtain portable terminal time started and preservation; Concrete acquisition methods can for, when mobile terminal-opening, obtain the available machine time of portable terminal time recording unit records;
Step 302: obtain portable terminal foreground emission time started, transmitting power, portable terminal foreground emission concluding time and preservation; And/or obtain the portable terminal backstage and launch time started, transmitting power, portable terminal backstage emission concluding time and preservation; When portable terminal carries out foreground emission, the emission of end foreground, all obtain the corresponding time, and obtain the corresponding front platform transmission power level from the transmitting power unit of portable terminal from portable terminal time recording unit records; When portable terminal carries out the backstage emission, when finishing the backstage emission, all uses portable terminal time recording unit records to obtain the corresponding time, and obtain the corresponding background transmission power level from the transmitting power unit of portable terminal;
Step 303: obtain portable terminal unused time and preservation; Concrete acquisition methods can for, when portable terminal shuts down, obtain the unused time of portable terminal time recording unit records;
Step 304: the content of described preservation is reported.
Because portable terminal can use in moving, so the transmitting power of portable terminal is constantly variation in this method.Therefore writing down the method for transmitting power and emission duration, should be record short-time average result, guarantees that (the power * time) of writing down can reflect the transient change of transmitting power.After that is to say the emission beginning of foreground emission or backstage, preserve transmitting power mean value in this time period every the time period of presetting.
From the principle, the stand-by time of portable terminal was influenced except transmitting, this enters sleep pattern and does not enter also can be influential.So-called sleep pattern is meant portable terminal under idle condition, because continual monitoring network signal also can cause power consumption higher; In order to reduce power consumption, portable terminal regularly enters the state of extremely low power dissipation, does not monitor network signal in during this period of time, and this design just is called sleep pattern.Sleep pattern exists only in idle condition, if portable terminal just can not enter sleep state when carrying out any operational order.Therefore, the stand-by time length of portable terminal and sleep pattern relation are very big.If, will cause the stand-by time of portable terminal to decline to a great extent so because the mobile terminal software design mistake causes portable terminal can't enter sleep pattern.For the ease of analyzing, addressing this problem, can increase the monitoring portable terminal does not enter sleep pattern and causes not entering sleep pattern under a stable condition reason.
Embodiment 4, referring to Fig. 4,
Step 401: obtain portable terminal time started and preservation;
Step 402: obtain the portable terminal foreground and launch time started, transmitting power, portable terminal foreground emission concluding time and preserve, obtain portable terminal backstage emission time started, transmitting power, portable terminal backstage emission concluding time and preservation; And/or further monitor portable terminal and whether surpass the preset gate limit value and do not enter sleep state yet, do not enter dormant time started and concluding time, cause not entering dormant state value and preserve if then obtain.Dormant time started and concluding time still are that the time record cell from portable terminal obtains, and obtain the time started when entering sleep state, obtain the concluding time when finishing sleep state.
Step 403: obtain portable terminal unused time and preservation;
Step 404: the content of described preservation is reported.
The method that among the embodiment 1 to embodiment 4 content of preserving is reported can for: the content of described storage is shown, or the content of described preservation is sent to control terminal, described control terminal can be computer equipment.That is to say can be on portable terminal design interface, the content of being preserved is shown to the user; Perhaps the content of preserving is sent to computer equipment by data wire, offers the user by computer equipment then and analyze, or analyze and analysis result is offered the user by certain algorithm.
Embodiment 5, and the embodiment of the invention also provides a kind of device of testing mobile terminal stand-by time, and this device comprises:
Time record cell 501 is used to obtain portable terminal time started and unused time;
Memory cell 502 is used to preserve described portable terminal time started and unused time;
Report unit 503, be used for the content of described preservation is reported.
The time record cell 501 of this device can be further used for obtaining portable terminal foreground emission time started, portable terminal foreground emission concluding time;
This device further comprises transmitting power unit 505, is used to obtain the foreground transmitting power;
Memory cell 502 can be further used for preserving described foreground emission time started, transmitting power, portable terminal foreground emission concluding time.
The time record cell 501 of this device can be further used for logical obtaining portable terminal backstage emission time started, portable terminal backstage emission concluding time;
Described transmitting power unit 505 is further used for obtaining the backstage transmitting power;
Memory cell 502 is further used for preserving described backstage emission time started, transmitting power, portable terminal backstage emission concluding time.
This device may further include: monitoring means 504 is used to monitor portable terminal and whether does not enter sleep state yet above the preset gate limit value;
Time record cell 501 can be further used for obtaining and not entering dormant time started and concluding time when portable terminal does not enter sleep state yet above the preset gate limit value; And record causes not entering dormant state value.
The above-described content that reports unit 503 with described preservation, this content can comprise time started, unused time, foreground emission time started, transmitting power, foreground emission concluding time or backstage emission time started, transmitting power, backstage emission concluding time, do not enter dormant time started and concluding time, cause not entering dormant state value reports and is specially: the content of described storage is shown, or the content of described preservation is sent to control terminal.
The embodiment of the invention is by obtaining the time started automatically in sum, the unused time, and described time started and unused time reported the user, be convenient to the stand-by time that the user recognizes portable terminal accurately; And owing to do not need manually to continue to detect, and obtain by the stand-by time that terminal self is carried out, avoided the calculating of theoretical value, also can when measuring, carry out the conversion in place, therefore the stand-by time of obtaining is more accurate.
And further write down contents such as backstage launch time, backstage transmitting power, foreground launch time, foreground transmitting power, the time that does not enter sleep pattern and reason, be convenient to the user and analyze the bigger reason of mobile terminal standby time error, the data that can be further provided with effect improve portable terminal.
More than method, the device of testing mobile terminal stand-by time provided by the present invention is described in detail, for one of ordinary skill in the art, thought according to the embodiment of the invention, part in specific embodiments and applications all can change, in sum, this description should not be construed as limitation of the present invention.