CN102929763A - Method and apparatus for monitoring software state through energy consumption of mobile phone - Google Patents

Method and apparatus for monitoring software state through energy consumption of mobile phone Download PDF

Info

Publication number
CN102929763A
CN102929763A CN2012103682982A CN201210368298A CN102929763A CN 102929763 A CN102929763 A CN 102929763A CN 2012103682982 A CN2012103682982 A CN 2012103682982A CN 201210368298 A CN201210368298 A CN 201210368298A CN 102929763 A CN102929763 A CN 102929763A
Authority
CN
China
Prior art keywords
mobile phone
energy consumption
storage unit
battery
processing unit
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
CN2012103682982A
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN2012103682982A priority Critical patent/CN102929763A/en
Publication of CN102929763A publication Critical patent/CN102929763A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Telephone Function (AREA)
  • Tests Of Electric Status Of Batteries (AREA)

Abstract

The invention discloses a method and an apparatus for monitoring software state through energy consumption of a mobile phone. The apparatus comprises a resistor and two amplifiers, wherein the resistor is arranged in a power circuit of the mobile phone and in series connection with a battery of the mobile phone; and the amplifiers are connected with two ends of the resistor in a manner that the polarities are opposite and are used for measuring and amplifying voltage on the resistor according to a preset time interval when the battery is charged and discharged, and the outputs of the amplifiers are respectively connected to corresponding data input pins of a processing unit to count current values and output the current values into a storage unit so as to sequentially store each current value. According to the method and the apparatus for monitoring the software state through the energy consumption of the mobile phone, as the resistor is in series connection with the battery of the mobile phone when the mobile phone is charged and discharged and the amplifies for collecting signals are arranged on the resistor, the condition for monitoring a software state through the energy consumption of the mobile phone is implemented, and the implementation manner has little influence on the mobile phone and precise in measurement.

Description

A kind of method and device by mobile phone energy consumption monitoring application state
Technical field
The present invention relates to a kind of test device for mobile phone and method, in particular a kind of device and method of the mobile phone application state being realized test.
Background technology
In the mobile phone of the prior art, since the handset processes ability a little less than, software running process thereon is easy to occur torpor, even in the show state of mobile phone even without any difference, but in fact, may move some program in backstage or the internal memory always, in time not stop and emptying internal memory.In such cases, mobile phone just can't enter dormant state, often can cause its operation energy consumption larger, and the mobile phone flying power reduces in the situation of same battery of mobile phone; Simultaneously because the software in the mobile phone is in torpor, also can cause other programs can't start-up and operation.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The object of the present invention is to provide a kind of method and device by mobile phone energy consumption monitoring application state, by the energy consumption monitoring to mobile phone, mainly is the energy consumption monitoring to CPU, can realize the software that moves in the mobile phone is detected.
Technical scheme of the present invention is as follows:
A kind of method by mobile phone energy consumption monitoring application state arranges a resistance that is connected in series with battery of mobile phone in the power circuit of mobile phone; And comprise following software performing step:
A, when the battery charging and discharging, measure this ohmically voltage according to predetermined time interval, and amplified by two amplifiers that are connected to the opposite connection of these resistance two ends and polarity;
B, calculate current value by a processing unit, and current value is stored in the storage unit successively, and the circulation storage, and whether unusual according to threshold decision mobile phone energy consumption in described computing machine.
Described method, wherein, described storage unit is an EEPROM.
Described method, wherein, described storage unit adopts the 24C512 chip.
Described method, wherein, described current value data communication device cross a serial ports or USB interface be transferred to for detection of computing machine.
Described method, wherein, described processing unit adopts the 16F876A chip.
A kind of device by mobile phone energy consumption monitoring application state wherein, comprises in the power circuit that is arranged on mobile phone and is connected in series a resistance with battery of mobile phone; Be connected with these resistance two ends, and opposite two amplifiers that connect of polarity, be used for when the battery charging and discharging, measuring this ohmically voltage according to predetermined time interval, and amplify; The output of described amplifier is connected respectively on the pin of processing unit corresponding data input, is used for calculating current value, and outputs in the storage unit, is used for storing successively each current value.
Described device, wherein, described storage unit adopts EEPROM.
Described device, wherein, described storage unit adopts the 24C512 chip.
Described device, wherein, described processing unit also is connected with serial ports or a USB interface for data transmission.
Described device, wherein, described processing unit adopts the 16F876A chip
A kind of method and device by mobile phone energy consumption monitoring application state provided by the present invention, owing to adopted a resistance of when cell-phone charging and discharge, connecting with battery of mobile phone, and be provided with the amplifier of collection signal at this resistance, and by corresponding its measurement data of storage unit circulation storage, realized the situation by adversary's function consumption condition monitoring software operation state, and its implementation is little on the impact of mobile phone, measures accurately.
Description of drawings
Fig. 1 is the device preferred embodiment circuit theory diagrams that the present invention passes through mobile phone energy consumption monitoring application state.
Fig. 2 is the method flow synoptic diagram that the present invention passes through mobile phone energy consumption monitoring application state.
Figure 3 shows that the experiment connection diagram of apparatus of the present invention and outside.
Embodiment
Below preferred embodiment of the present invention is described in detail.
A kind of method by mobile phone energy consumption monitoring application state provided by the present invention, it realizes by software program, and is arranged in the circuitry, as shown in Figure 1, to form a brand-new testing circuit instrument.This testing circuit instrument is provided with two input ends 110, be connected in battery of mobile phone and the charging circuit by wire, be connected with these two input ends and be set to a resistance R 1, therefore, two ends in this resistance R 1 connect, and opposite polarity two amplifier U3.2 and the U4.1 of being connected with, the output of these two amplifiers is input on different pin RA1/AN1, the RA2/AN2/VREF-of processing unit U2.Described processing unit U2 connects a serial ports or USB interface U11, and a storage unit U1, also is provided with simultaneously chip U5 and the U6 of display driver; Other are the peripheral circuit of processing unit, do not repeat them here.
The inventive method and circuit arrangement, the malfunction that also can be used for monitoring hardware, but the malfunction of hardware generally is permanent problem, that research and development department is easy to realize monitoring in the prior art to its monitoring, therefore be not the peculiar in improvements of the inventive method and circuit arrangement, but when the monitoring of software problem, can monitor simultaneously hardware problem.
The inventive method in the described testing circuit of the invention described above, also arranges and comprises following software performing step as shown in Figure 2:
A, when the battery charging and discharging, measure this ohmically voltage according to predetermined time interval, and amplify by being connected to opposite two amplifiers that connect of these resistance two ends and polarity, because what cell phone apparatus adopted is direct current, therefore two amplifiers opposite current just in time when charging and discharging in the inventive method, one of them amplifier work is worked, another is opposite with the polarity of amplifier because of current polarity, is in cut-off state; Described predetermined time interval can be set to 0.01 second-2 seconds according to actual needs, and monitors continuously and record.
Signal after B, this amplifier will amplify is input in the processing unit, calculates the current value of whole mobile phone energy consumption by this processing unit, and the current value that calculates is stored in the storage unit successively, and this storage unit store full after the circulation storage.For in time data being derived, can before the data of paying close attention to are capped, in time data be exported to the computing machine for statistical treatment and calculating.
Of the present invention by in the circuit arrangement of mobile phone energy consumption monitoring application state, as shown in Figure 1, this circuit is included in a resistance R 1 that is connected in series with battery of mobile phone that arranges in the power circuit of mobile phone, see also shown in Figure 3 with the annexation of outside, apparatus of the present invention can form a checkout equipment 210 independently, in this checkout equipment 210, be provided with circuit arrangement as shown in Figure 1, and the joint pin 211 of resistance R 1 is connected in the charge-discharge circuit of battery of mobile phone.Be connected with these resistance R 1 two ends and polarity is connected with two amplifiers on the contrary, its objective is as when the charging current that detects described mobile phone and the discharge current, adapt to the situation of current opposite in direction.Magnitude of voltage with described resistance R 1 two ends one of in described two amplifiers is amplified, because polarity is opposite, and another amplifier cut-off.This amplifier is input to magnitude of voltage among the one processing unit U2, the battery power consumption data of mobile phone when the battery charging and discharging are recorded, add up and process, circuit arrangement of the present invention is by the voltage on this resistance R 1 of obtaining according to predetermined time interval, and carry out computing, be saved among the storage unit U1.The output of described amplifier is connected respectively on the pin of this processing unit U2 corresponding data input, be used for calculating described cell phone apparatus as the current value of a load loss according to this ohmically magnitude of voltage, and output among the storage unit U1, be used for storing successively the current value of variant time point.
In the method and device preferred embodiment by mobile phone energy consumption monitoring application state of the present invention, experiment annexation figure as shown in Figure 3, be provided with circuit as shown in Figure 1 in the described checkout equipment 210, be connected to outside battery of mobile phone 220 and false battery 230 by joint pin 211, battery of mobile phone 220 be connected battery 230 and can connect conversely, thereby the process of analogue mobile phone charging and discharging.Described checkout equipment 210 itself has power supply to be used for the work of circuit; And be provided with display device 240 and corresponding functional switch, in order to be adjusted in the parameters of demonstration screen display by functional switch.So can monitor the energy consumption of battery, and can pass through a serial ports or USB interface, data are in time exported to personal computer for statistical computation and processing, can carry out statistical computation and tabulation by this personal computer, and provide the judgement conclusion, and for example setting in advance threshold value, energy consumption continues to surpass this threshold value after the schedule time, it is undesirable namely to be judged as this mobile phone, needs research and development department to be readjusted.
Storage unit U1 of the present invention can but be not limited to adopt EEPROM, 24C512 chip particularly.Described processing unit U2 also is connected with serial ports or a USB interface that is used for data transmission, be used for carrying out interface communication with outer computer, described processing unit U2 can but be not limited to adopt the 16F876A chip.
Should be understood that, for those of ordinary skills, can be improved according to the above description or conversion, and all these improvement and conversion all should belong to the protection domain of claims of the present invention.

Claims (10)

1. the method by mobile phone energy consumption monitoring application state arranges a resistance that is connected in series with battery of mobile phone in the power circuit of mobile phone; And comprise following software performing step:
A, when the battery charging and discharging, measure this ohmically voltage according to predetermined time interval, and amplified by two amplifiers that are connected to the opposite connection of these resistance two ends and polarity;
B, calculate current value by a processing unit, and current value is stored in the storage unit successively, and the circulation storage.
2. method according to claim 1 is characterized in that, described storage unit is an EEPROM.
3. method according to claim 2 is characterized in that, described storage unit adopts the 24C512 chip.
4. method according to claim 1 is characterized in that, described current value data communication device cross a serial ports or USB interface be transferred to for detection of computing machine, and whether unusual according to threshold decision mobile phone energy consumption in described computing machine.
5. method according to claim 1 is characterized in that, described processing unit adopts the 16F876A chip.
6. the device by mobile phone energy consumption monitoring application state is characterized in that, comprises in the power circuit that is arranged on mobile phone and is connected in series a resistance with battery of mobile phone; Be connected with these resistance two ends, and opposite two amplifiers that connect of polarity, be used for when the battery charging and discharging, measuring this ohmically voltage according to predetermined time interval, and amplify; The output of described amplifier is connected respectively on the pin of processing unit corresponding data input, is used for calculating current value, and outputs in the storage unit, is used for storing successively each current value.
7. device according to claim 5 is characterized in that, described storage unit adopts EEPROM.
8. device according to claim 6 is characterized in that, described storage unit adopts the 24C512 chip.
9. device according to claim 5 is characterized in that, described processing unit also is connected with serial ports or a USB interface for data transmission.
10. device according to claim 5 is characterized in that, described processing unit adopts the 16F876A chip.
CN2012103682982A 2012-09-28 2012-09-28 Method and apparatus for monitoring software state through energy consumption of mobile phone Pending CN102929763A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012103682982A CN102929763A (en) 2012-09-28 2012-09-28 Method and apparatus for monitoring software state through energy consumption of mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012103682982A CN102929763A (en) 2012-09-28 2012-09-28 Method and apparatus for monitoring software state through energy consumption of mobile phone

Publications (1)

Publication Number Publication Date
CN102929763A true CN102929763A (en) 2013-02-13

Family

ID=47644567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012103682982A Pending CN102929763A (en) 2012-09-28 2012-09-28 Method and apparatus for monitoring software state through energy consumption of mobile phone

Country Status (1)

Country Link
CN (1) CN102929763A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005523A (en) * 2015-01-23 2015-10-28 深圳市利路亚电子科技有限公司 Amperage based method and apparatus for monitoring computer software operation
CN105445540A (en) * 2015-12-15 2016-03-30 惠州Tcl移动通信有限公司 Mobile terminal real-time power consumption testing system, testing device, and testing method
CN106771541A (en) * 2016-12-28 2017-05-31 深圳众思科技有限公司 Current test method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1971302A (en) * 2005-11-24 2007-05-30 比亚迪股份有限公司 Inverter of voltage polarity, detecting circuit and method of charge and discharge current of battery
CN101106281A (en) * 2007-06-15 2008-01-16 *** An intelligent digital battery
CN102053228A (en) * 2010-11-26 2011-05-11 东莞洲亮通讯科技有限公司 Battery electric quantity management system and monitoring method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1971302A (en) * 2005-11-24 2007-05-30 比亚迪股份有限公司 Inverter of voltage polarity, detecting circuit and method of charge and discharge current of battery
CN101106281A (en) * 2007-06-15 2008-01-16 *** An intelligent digital battery
CN102053228A (en) * 2010-11-26 2011-05-11 东莞洲亮通讯科技有限公司 Battery electric quantity management system and monitoring method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005523A (en) * 2015-01-23 2015-10-28 深圳市利路亚电子科技有限公司 Amperage based method and apparatus for monitoring computer software operation
CN105005523B (en) * 2015-01-23 2018-07-24 深圳市利路亚电子科技有限公司 Computer software operational monitoring method and device based on the magnitude of current
CN105445540A (en) * 2015-12-15 2016-03-30 惠州Tcl移动通信有限公司 Mobile terminal real-time power consumption testing system, testing device, and testing method
CN106771541A (en) * 2016-12-28 2017-05-31 深圳众思科技有限公司 Current test method and electronic equipment

Similar Documents

Publication Publication Date Title
WO2015196641A1 (en) Battery charging method and device, and computer storage medium
CN104280686A (en) Storage battery residual electric quantity detection method
WO2011086536A4 (en) System and method for automated gun shot measuring
CN206573635U (en) A kind of mobile terminal, power consumption test terminal and power consumption test system
CN102929763A (en) Method and apparatus for monitoring software state through energy consumption of mobile phone
WO2018040778A1 (en) Internal resistance detection device and detection method for storage battery, and storage battery state monitoring system
CN203502567U (en) Charge and discharge testing device for power lithium battery pack
CN101587972B (en) Double cell control method
CN102098368A (en) Mobile phone
CN202906503U (en) Control device for mobile power supply and mobile charging power supply
CN106911161A (en) Battery protection system and guard method
CN204349531U (en) A kind of portable power source
US20200381786A1 (en) Terminal device and method for detecting lithium separation of a battery
CN202421280U (en) Current detecting device
CN102420899B (en) Device and method for automatically switching working state of Bluetooth terminal equipment according to working state of mainframe
CN104393653B (en) A kind of electric automobile charging pile mobile terminal based on 4G communication
CN111540965A (en) Battery voltage balancing method and device and battery management system
CN104502846A (en) Storage battery overload performance detection apparatus
CN105280970B (en) The charging method and mobile terminal of a kind of mobile terminal
US20220285957A1 (en) Cell Fault Detection in Batteries with Parallel Cells
CN204155097U (en) Analog signal voltage acquisition circuit
CN103837573A (en) Cotton moisture tester
CN204330989U (en) A kind of accumulator overload performance pick-up unit
CN203250026U (en) A highly-integrated GPS locator
CN206930932U (en) A kind of process checking gauge

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130213