CN111551778A - Mobile terminal power consumption debugging method and system and corresponding mobile terminal - Google Patents

Mobile terminal power consumption debugging method and system and corresponding mobile terminal Download PDF

Info

Publication number
CN111551778A
CN111551778A CN202010202258.5A CN202010202258A CN111551778A CN 111551778 A CN111551778 A CN 111551778A CN 202010202258 A CN202010202258 A CN 202010202258A CN 111551778 A CN111551778 A CN 111551778A
Authority
CN
China
Prior art keywords
mobile terminal
module
peripheral device
led lamp
power supply
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
CN202010202258.5A
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.)
Beijing Yuanxin Science and Technology Co Ltd
Original Assignee
Beijing Yuanxin Science and Technology 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 Beijing Yuanxin Science and Technology Co Ltd filed Critical Beijing Yuanxin Science and Technology Co Ltd
Priority to CN202010202258.5A priority Critical patent/CN111551778A/en
Publication of CN111551778A publication Critical patent/CN111551778A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • G01R19/16533Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values characterised by the application
    • G01R19/16538Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values characterised by the application in AC or DC supplies

Abstract

The application discloses a mobile terminal power consumption debugging method, a system and a corresponding mobile terminal, wherein the method comprises the following steps: responding to the system of the mobile terminal entering a sleep state, and reading the value of a power supply pin of a corresponding peripheral device of the mobile terminal; responding to the read value of the power supply pin of the peripheral device, and determining the color combination of the LED lamp corresponding to the read peripheral device according to the pre-established corresponding relation between the color combination of the LED lamp of the mobile terminal and the peripheral device; the LED lamp is illuminated according to the determined color combination. The present invention enables a simple determination of whether a peripheral device has actually been powered down after the system enters a sleep state, independent of hardware.

Description

Mobile terminal power consumption debugging method and system and corresponding mobile terminal
Technical Field
The application relates to the field of mobile terminal debugging, in particular to a mobile terminal power consumption debugging method and system and a corresponding mobile terminal.
Background
The power consumption problem is always one of the most important problems of the mobile terminal equipment, and any equipment needs to go through the stage of debugging the power consumption to reach the usable stage. The power consumption of the system is determined by the power consumption of the main chip and the used peripheral devices such as a Bluetooth module, a wireless communication module, a display module, a GPS (global positioning system), a modem module and the like.
For power consumption, debugging is generally performed by combining software and hardware. The mainstream terminal operating system is usually Linux as kernel. The Linux kernel has a relatively perfect autosleep mechanism, and the system is ensured to enter a sleep state under the condition of meeting the sleep condition. However, the conventional system does not determine whether the peripheral really performs the power-off operation in the sleep state. At this time, if the power consumption is found to be high, a hardware measurement method is required to measure the power supply pin of the peripheral device, which is usually GPIO (general purpose input/output) so as to find a problem. The existing scheme has the following defects: 1) lack of confirmation of the true power supply state of each module after sleeping; 2) debugging information is not output after the system is in sleep, and software is only wakened up and is difficult to debug through the software; 3) the dependence on hardware is serious, and tools such as an ammeter (universal meter) and the like are needed for measurement; 4) there are some pins that may not be measurable with the ammeter due to hardware wiring, etc.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a mobile terminal power consumption debugging method, a system and a corresponding mobile terminal, which can simply and conveniently determine whether a peripheral device is really powered off or not without depending on hardware after the system enters a sleep state.
According to a first aspect of the present invention, a power consumption debugging method for a mobile terminal is provided, the method comprising:
responding to the system of the mobile terminal entering a sleep state, and reading the value of a power supply pin of a corresponding peripheral device of the mobile terminal;
responding to the read value of the power supply pin of the peripheral device, and determining the color combination of the LED lamp corresponding to the read peripheral device according to the pre-established corresponding relation between the color combination of the LED lamp of the mobile terminal and the peripheral device;
the LED lamp is illuminated according to the determined color combination.
As an improvement of the method of the present invention, the method further comprises: and in response to the values of the power supply pins of the more than two peripheral devices being high, alternately lighting the LED lamps according to the determined more than two color combinations.
According to a second aspect of the present invention, there is provided a mobile terminal power consumption debugging system, comprising:
the reading module is used for responding to the sleep state of the system of the mobile terminal and reading the value of a power supply pin of a corresponding peripheral device of the mobile terminal;
the determining module is used for responding to the read value of the power supply pin of the peripheral device, and determining the color combination of the LED lamp corresponding to the read peripheral device according to the pre-established corresponding relation between the color combination of the LED lamp of the mobile terminal and the peripheral device;
and the lighting module is used for enabling the LED lamp to be lighted according to the determined color combination.
According to a third aspect of the present invention, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method according to the first aspect of the present invention.
According to a fourth aspect of the present invention, there is provided a mobile terminal comprising a processor, a memory and a computer program stored on the memory and operable on the processor, wherein the processor, when executing the computer program, implements the steps of the method according to the first aspect of the present invention.
The invention adds a module to be called when the system is in sleep, the module is used for reading the value of the peripheral power supply pin GPIO, if the value is high, the module is proved not to be powered off. Meanwhile, the state of the LED lamp is utilized to enable debugging personnel to more accurately and more intuitively know which peripheral devices are not powered off, so that corresponding processing is timely performed. The invention increases the debugging means under the condition that the system does not have log, and reduces the dependence on hardware.
Other features and advantages of the present invention will become more apparent from the detailed description of the embodiments of the present invention when taken in conjunction with the accompanying drawings.
Drawings
FIG. 1 is a flow chart of one embodiment of a method according to the present invention;
FIG. 2 is a block diagram of one embodiment of a system according to the present invention.
For the sake of clarity, the figures are schematic and simplified drawings, which only show details which are necessary for understanding the invention and other details are omitted.
Detailed Description
Embodiments and examples of the present invention will be described in detail below with reference to the accompanying drawings.
The scope of applicability of the present invention will become apparent from the detailed description given hereinafter. It should be understood, however, that the detailed description and the specific examples, while indicating preferred embodiments of the invention, are given by way of illustration only.
Fig. 1 is a flowchart illustrating a preferred embodiment of a power consumption debugging method of a mobile terminal according to the present invention.
In step S102, after the system of the mobile terminal enters the sleep state, the state of the power supply pin of the peripheral device may be obtained by reading the value of the general-purpose input/output register. If the read value is 0, the power supply pin is powered off, and if the read value is 1, the power supply pin is still powered on. The peripheral devices of the mobile terminal include, but are not limited to, a bluetooth module (bt), a wireless communication module (wlan), a display module (lcd), a positioning module (gps), a modem module (modem), a camera module (camera), a touch module (touch processing for a touch screen), and a sensor module (sensor).
In step S104, it is determined whether the read value of the power supply pin of the peripheral device is high or low. And if the value of the general input/output register corresponding to the power supply pin is 1, the value of the power supply pin is high. Otherwise, if the value of the general input/output register corresponding to the power supply pin is 0, the value of the power supply pin is low. If the read value of the power supply pin of the peripheral device is high, that is, the value of the general purpose input output register corresponding to the pin is 1, the process proceeds to step S106. And if the read value of the power supply pin of the peripheral device is low, the value of the power supply pin of the next peripheral device can be continuously read.
In step S106, according to the pre-established correspondence between the color combination of the LED lamp of the mobile terminal and the peripheral device, the color combination of the LED lamp corresponding to the read peripheral device is determined. For example, a mobile terminal generally has 2 LED lamps, each lamp has 4 basic states of off, red, green and blue, and the state combinations of the two lamps have 16 combinations, each combination can be used for corresponding to one peripheral device, for example, as shown in the following table:
LED1 LED2 corresponding peripheral equipment
Killing rice Killing rice Is normal
Blue color Killing rice bt does not turn off
Red colour Killing rice wlan no concern
Yellow colour Killing rice Camera does not shut down
Killing rice Blue color gps is not closed
Killing rice Red colour modem does not have a switch
Killing rice Yellow colour sensor is not closed
Blue color Blue color touch does not close
In step S108, the LED lamp is lit according to the determined color combination. And under the condition that the values of the power supply pins of more than two peripheral devices are high, the LED lamps can be alternately lightened according to the determined more than two color combinations. If the corresponding peripheral device is powered down or all the peripheral devices are powered down, the LED will not be lighted up correspondingly. Thus, no debugging information and current meter measurements are required to locate which module is not powered down.
Fig. 2 shows a block diagram of a preferred embodiment of a mobile terminal power consumption debugging system according to the present invention, the system of this embodiment comprising:
the reading module 202 is configured to read a value of a power supply pin of a corresponding peripheral device of the mobile terminal in response to the system of the mobile terminal entering a sleep state;
the determining module 204 is configured to determine, in response to the read value of the power supply pin of the peripheral device, a color combination of an LED lamp corresponding to the read peripheral device according to a pre-established correspondence between the color combination of the LED lamp of the mobile terminal and the peripheral device;
and an illumination module 206 for illuminating the LED lamp according to the determined color combination.
In an embodiment, the lighting module 206 is further configured to alternately light the LED lamps according to the determined two or more color combinations in response to the values of the power pins of the two or more peripheral devices being high.
In another embodiment, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method embodiment shown and described in connection with fig. 1 or other corresponding method embodiments, which are not described herein again.
In another embodiment, the present invention provides a mobile terminal, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the steps of the method embodiment shown and described in conjunction with fig. 1 or other corresponding method embodiments when executing the computer program, and details are not repeated herein.
The various embodiments described herein, or certain features, structures, or characteristics thereof, may be combined as suitable in one or more embodiments of the invention. Additionally, in some cases, the order of steps depicted in the flowcharts and/or in the pipelined process may be modified, as appropriate, and need not be performed exactly in the order depicted. In addition, various aspects of the invention may be implemented using software, hardware, firmware, or a combination thereof, and/or other computer implemented modules or devices that perform the described functions. Software implementations of the present invention may include executable code stored in a computer readable medium and executed by one or more processors. The computer-readable medium may include a computer hard drive, ROM, RAM, flash memory, portable computer storage media such as CD-ROM, DVD-ROM, flash drives, and/or other devices with a Universal Serial Bus (USB) interface, and/or any other suitable tangible or non-transitory computer-readable medium or computer memory on which executable code may be stored and executed by a processor. The present invention may be used in conjunction with any suitable operating system.
As used herein, the singular forms "a", "an" and "the" include plural references (i.e., have the meaning "at least one"), unless the context clearly dictates otherwise. It will be further understood that the terms "has," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and/or groups thereof. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
The foregoing describes some preferred embodiments of the present invention, but it should be emphasized that the invention is not limited to these embodiments, but can be implemented in other ways within the scope of the inventive subject matter. Various modifications and alterations of this invention will become apparent to those skilled in the art without departing from the spirit and scope of this invention.

Claims (8)

1. A power consumption debugging method of a mobile terminal is characterized by comprising the following steps:
responding to the system of the mobile terminal entering a sleep state, and reading the value of a power supply pin of a corresponding peripheral device of the mobile terminal;
responding to the read value of the power supply pin of the peripheral device, and determining the color combination of the LED lamp corresponding to the read peripheral device according to the pre-established corresponding relation between the color combination of the LED lamp of the mobile terminal and the peripheral device;
the LED lamp is illuminated according to the determined color combination.
2. The method of claim 1, further comprising:
and in response to the values of the power supply pins of the more than two peripheral devices being high, alternately lighting the LED lamps according to the determined more than two color combinations.
3. The method of claim 1, wherein the peripheral device comprises a bluetooth module, a wireless communication module, a display module, a camera module, a GPS module, a modem module, a sensor module, and/or a touch module.
4. A mobile terminal power consumption debugging system, characterized in that the system comprises:
the reading module is used for responding to the sleep state of the system of the mobile terminal and reading the value of a power supply pin of a corresponding peripheral device of the mobile terminal;
the determining module is used for responding to the read value of the power supply pin of the peripheral device, and determining the color combination of the LED lamp corresponding to the read peripheral device according to the pre-established corresponding relation between the color combination of the LED lamp of the mobile terminal and the peripheral device;
and the lighting module is used for enabling the LED lamp to be lighted according to the determined color combination.
5. The system of claim 4, wherein the lighting module is further configured to alternately light the LED lights according to the determined two or more color combinations in response to the values of the power pins of the two or more peripheral devices being high.
6. The system of claim 4, wherein the peripheral device comprises a Bluetooth module, a wireless communication module, a display module, a camera module, a positioning module, a modem module, a sensor module, and/or a touch module.
7. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as claimed in claim 1.
8. A mobile terminal comprising a processor, a memory and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method according to claim 1 when executing the computer program.
CN202010202258.5A 2020-03-20 2020-03-20 Mobile terminal power consumption debugging method and system and corresponding mobile terminal Pending CN111551778A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010202258.5A CN111551778A (en) 2020-03-20 2020-03-20 Mobile terminal power consumption debugging method and system and corresponding mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010202258.5A CN111551778A (en) 2020-03-20 2020-03-20 Mobile terminal power consumption debugging method and system and corresponding mobile terminal

Publications (1)

Publication Number Publication Date
CN111551778A true CN111551778A (en) 2020-08-18

Family

ID=71999937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010202258.5A Pending CN111551778A (en) 2020-03-20 2020-03-20 Mobile terminal power consumption debugging method and system and corresponding mobile terminal

Country Status (1)

Country Link
CN (1) CN111551778A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009284251A (en) * 2008-05-22 2009-12-03 Ntt Docomo Inc Mobile terminal and method for use in the mobile terminal
CN105554212A (en) * 2015-12-03 2016-05-04 上海斐讯数据通信技术有限公司 Electric leakage detection method of mobile terminal and mobile terminal of electric leakage detection method
CN106383268A (en) * 2016-08-24 2017-02-08 深圳普创天信科技发展有限公司 Mobile terminal power consumption test device and test method
US20170374188A1 (en) * 2016-06-23 2017-12-28 Microsoft Technology Licensing, Llc User Peripheral
CN107608854A (en) * 2017-09-07 2018-01-19 维沃移动通信有限公司 A kind of detection method and electronic equipment of quiescent current value
CN109407814A (en) * 2017-08-14 2019-03-01 成都鼎桥通信技术有限公司 The USB peripheral control method and device of mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009284251A (en) * 2008-05-22 2009-12-03 Ntt Docomo Inc Mobile terminal and method for use in the mobile terminal
CN105554212A (en) * 2015-12-03 2016-05-04 上海斐讯数据通信技术有限公司 Electric leakage detection method of mobile terminal and mobile terminal of electric leakage detection method
US20170374188A1 (en) * 2016-06-23 2017-12-28 Microsoft Technology Licensing, Llc User Peripheral
CN106383268A (en) * 2016-08-24 2017-02-08 深圳普创天信科技发展有限公司 Mobile terminal power consumption test device and test method
CN109407814A (en) * 2017-08-14 2019-03-01 成都鼎桥通信技术有限公司 The USB peripheral control method and device of mobile terminal
CN107608854A (en) * 2017-09-07 2018-01-19 维沃移动通信有限公司 A kind of detection method and electronic equipment of quiescent current value

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
魏龙: "《制冷与空调职业技能实训》", 29 February 2008 *

Similar Documents

Publication Publication Date Title
TWI531803B (en) Testing system of circuit board
KR20110133435A (en) Temperature measurement system for a light emitting diode(led) assembly
CN104572226A (en) Method and device for detecting mainboard starting abnormity
US20080148109A1 (en) Implicating multiple possible problematic components within a computer system using indicator light diagnostics
CN105206227B (en) LED lamp panel driving method and oil price board control card
US7782450B2 (en) Testing system and testing method for keyboard light of mobile phone
CN103313459A (en) Control device for indicating lamp
CN111551778A (en) Mobile terminal power consumption debugging method and system and corresponding mobile terminal
CN207764347U (en) Single chip testing device
TWI463149B (en) Measuring device
CN103940557A (en) Device for testing sealing performance of motor valve
CN2777869Y (en) Tester for holder circuit of cell phone
CN105607925B (en) Processor in-chip FLASH burning program method and programming system
CN109884554A (en) A kind of LED light automatic recognition system and method applied to production line
CN108919090A (en) Circuit board and booting adjustment method for the debugging that is switched on
CN116010141A (en) Method, device and medium for positioning starting abnormality of multipath server
CN201281741Y (en) Internal memory groove detector
CN205318401U (en) Portable hyperfrequency RFID reads ware
CN210119549U (en) LED lamp automatic identification system applied to production line
CN205157751U (en) LED pilot lamp tester based on CCD
CN205120380U (en) Fork truck is tester for instrument
CN203232464U (en) State indicating device of inspection system and inspection equipment therewith
CN212910157U (en) Building lighting system based on BIM
CN205689450U (en) Water pump vane detection device
CN108318831A (en) A method of passing through Debug card debugging server power supply

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20200818