CN105717409A - Electronic device electric leakage detection method and electronic device electric leakage detection system - Google Patents

Electronic device electric leakage detection method and electronic device electric leakage detection system Download PDF

Info

Publication number
CN105717409A
CN105717409A CN201610039020.9A CN201610039020A CN105717409A CN 105717409 A CN105717409 A CN 105717409A CN 201610039020 A CN201610039020 A CN 201610039020A CN 105717409 A CN105717409 A CN 105717409A
Authority
CN
China
Prior art keywords
electronic equipment
power consumption
leakage detection
electronic device
scene
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.)
Granted
Application number
CN201610039020.9A
Other languages
Chinese (zh)
Other versions
CN105717409B (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610039020.9A priority Critical patent/CN105717409B/en
Publication of CN105717409A publication Critical patent/CN105717409A/en
Application granted granted Critical
Publication of CN105717409B publication Critical patent/CN105717409B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Testing Of Short-Circuits, Discontinuities, Leakage, Or Incorrect Line Connections (AREA)

Abstract

The invention provides an electronic device electric leakage detection method and an electronic device electric leakage detection system. The electronic device electric leakage detection method is characterized in that current scene information of an electronic device can be acquired; the first actual power consumption of the electronic device on the current scene can be detected; the electric leakage detection threshold value on the current scene can be acquired according to the current scene information; whether the electric leakage of the electronic device occurs can be determined according to the first actual power consumption and the electric leakage detection threshold value on the current scene. The function of fast and convenient detection of the electric leakage of the electronic device can be provided, and the user experience can be improved.

Description

Electric leakage detection method and system for electronic equipment
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a method and a system for detecting leakage of an electronic device.
Background
With the development of smart phones, smart phones have more and more functions and consume more and more power. Therefore, the cruising of the mobile phone becomes an important factor for restricting the development of the smart phone. However, with the long-term use of the smart phone, the smart phone may have a failure in hardware and software, which results in a decrease in cruising ability. For example, the failure of the main board device and the bug of the software flow both cause the increase of the power consumption of the smart phone, which is not beneficial to the endurance of the smart phone.
Therefore, there is a need for a method and system for rapidly detecting whether an electronic device is electrically leaked.
Disclosure of Invention
The embodiment of the invention provides a leakage detection method and a leakage detection system which can quickly and conveniently detect whether electronic equipment leaks electricity or not, so that the electronic equipment can be quickly detected when a fault occurs.
The embodiment of the invention provides a leakage detection method of electronic equipment, which comprises the following steps:
acquiring current scene information of the electronic equipment;
detecting first actual power consumption of the electronic equipment in a current scene;
acquiring a leakage detection threshold value under the current scene according to the current scene information;
and judging whether the electronic equipment leaks electricity or not according to the first actual power consumption and the electric leakage detection threshold value in the current scene.
In the method for detecting leakage of electronic device of the present invention, after the step of determining whether the electronic device leaks current according to the first actual power consumption and the leakage detection threshold in the current scenario, the method further includes the following steps:
when the electronic equipment leaks electricity, restarting the electronic equipment;
restoring the electronic equipment to a scene before restarting;
detecting second actual power consumption of the electronic equipment in the current scene;
judging whether the electronic equipment leaks electricity according to the second actual power consumption and the electric leakage detection threshold value in the current scene;
if the current is leaked, judging that the hardware of the electronic equipment has a fault; otherwise, judging that the software of the electronic equipment has a fault.
In the method for detecting electric leakage of electronic device of the present invention, before the step of obtaining the electric leakage detection threshold value in the current scene according to the current scene information, the method further includes the following steps:
acquiring rated power consumption data of the electronic equipment in each scene;
and setting a leakage detection threshold value under each corresponding scene according to the rated power consumption data of the electronic equipment under each scene.
In the electric leakage detection method of an electronic device of the present invention, the step of obtaining current scene information of the electronic device includes:
detecting the current running state information of the electronic equipment to acquire current scene information; or presetting the current operating condition of the electronic equipment, and acquiring current scene information according to the operating condition.
In the electric leakage detection method of the electronic device of the present invention, the step of detecting the first actual power consumption of the electronic device in the current scenario includes the steps of:
under the current scene, reading the electric quantity of the electronic equipment twice and sequentially obtaining a first electric quantity value Q1 and a second electric quantity value Q2, wherein the two times of reading are separated by a preset time T;
and calculating the first actual power consumption W, wherein W is (Q1-Q2)/T.
The present invention also provides a leakage detecting system for an electronic device, comprising:
the scene information acquisition module is used for acquiring the current scene information of the electronic equipment;
the first power consumption detection module is used for detecting first actual power consumption of the electronic equipment in a current scene;
the electric leakage detection threshold value acquisition module is used for acquiring an electric leakage detection threshold value under the current scene according to the current scene information;
and the first electric leakage judging module is used for judging whether the electronic equipment leaks electricity according to the first actual power consumption and the electric leakage detection threshold value in the current scene.
In the leakage detection system of an electronic device according to the present invention, the leakage detection system further includes:
the restarting module is used for restarting the electronic equipment when the electric leakage judging module judges that the electronic equipment has electric leakage;
the scene recovery module is used for recovering the restarted electronic equipment to a scene before restarting;
the second power consumption detection module is used for detecting second actual power consumption of the electronic equipment in the current scene;
the second electric leakage judging module is used for judging whether the electronic equipment leaks electricity according to the electric leakage detection threshold value in the current scene;
and the fault type judging module is used for judging that hardware of the electronic equipment has faults when the second electric leakage judging module judges that the electronic equipment has electric leakage, and is used for judging that software of the electronic equipment has faults when the second electric leakage judging module judges that the electronic equipment has no electric leakage.
In the leakage detection system of an electronic device according to the present invention, the leakage detection system further includes:
the power consumption acquisition module is used for acquiring rated power consumption data of the electronic equipment in each scene;
and the leakage detection threshold setting module is used for setting the leakage detection threshold in each corresponding scene according to the rated power consumption data of the electronic equipment in each scene.
In the electric leakage detection system of the electronic device, the scene information acquisition module is used for detecting the current operating condition information of the electronic device to acquire the current scene information; or, the method is used for presetting the current operating condition of the electronic equipment and acquiring the current scene information according to the operating condition.
In the leakage detection system of an electronic device according to the present invention, the first power consumption detection module includes:
the electric quantity reading unit is used for reading the electric quantity of the electronic equipment twice in the current scene and sequentially obtaining a first electric quantity value Q1 and a second electric quantity value Q2, and the two times of reading are separated by preset time T;
and the power consumption calculation unit is used for calculating the first actual power consumption W, wherein W is (Q1-Q2)/T.
According to the electric leakage detection method of the electronic equipment, the current scene information of the electronic equipment is detected, the electric leakage detection threshold value corresponding to the current scene of the electronic equipment is obtained through inquiry, then the first actual power consumption under the current scene is detected, and finally the first actual power consumption is compared with the electric leakage detection threshold value, so that whether the electronic equipment leaks electricity or not can be automatically, quickly and conveniently detected, and the electric leakage detection method of the electronic equipment has the beneficial effect of improving user experience.
Drawings
Fig. 1 is a flowchart of a leakage detecting method of an electronic device according to a first preferred embodiment of the present invention;
fig. 2 is a flowchart of a leakage detecting method of an electronic device according to a second preferred embodiment of the present invention;
fig. 3 is a flowchart of a leakage detecting method for an electronic device according to a third preferred embodiment of the present invention;
fig. 4a is a structural diagram of a leakage detecting system of an electronic device according to a first preferred embodiment of the present invention;
fig. 4b is a structural diagram of a second preferred embodiment of the leakage detecting system of the electronic device of the present invention;
fig. 4c is a block diagram of a leakage detecting system of an electronic device according to a third preferred embodiment of the present invention.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present invention are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be taken as limiting the invention with regard to other embodiments that are not detailed herein.
In the description that follows, embodiments of the invention are described with reference to steps and symbols of operations performed by one or more computers, unless otherwise indicated. It will thus be appreciated that those steps and operations, which are referred to herein several times as being computer-executed, include being manipulated by a computer processing unit in the form of electronic signals representing data in a structured form. This manipulation transforms the data or maintains it at locations in the computer's memory system, which may reconfigure or otherwise alter the computer's operation in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the invention have been described in language specific to above, it is not intended to be limited to the specific details shown, since one skilled in the art will recognize that various steps and operations described below may be implemented in hardware.
Example one
Referring to fig. 1, fig. 1 is a flowchart illustrating a leakage detection method of an electronic device according to a first preferred embodiment of the present invention. The electronic device can be a smart phone, a tablet computer and the like. The electric leakage detection method of the electronic device of the preferred embodiment includes the following steps:
step S101, obtaining current scene information of the electronic equipment;
step S102, detecting first actual power consumption of the electronic equipment in a current scene;
step S103, acquiring a leakage detection threshold value in the current scene according to the current scene information;
and step S104, judging whether the electronic equipment leaks electricity according to the first actual power consumption and the electric leakage detection threshold value in the current scene.
The following describes in detail a specific flow of each step of the leakage detection method for an electronic device according to the preferred embodiment.
In step S101, the scene corresponding to the scene information may be a standby scene, a bright screen scene, a music playing scene, a video playing scene, a call scene, or the like. The current scene information of the electronic device may be acquired in various ways. The method comprises the following steps: detecting current operating condition information of the electronic equipment to acquire current scene information; for example, when it is detected that the electronic device is running a music player, it is determined that the current scene is a playing music scene. The second method comprises the following steps: presetting the current running state of the electronic equipment in advance, and acquiring current scene information according to the running state; for example, an operation instruction is preset in the electronic device, the electronic device operates according to the operation instruction, and current scene information is acquired from the operation instruction. For example, if power consumption in a video playing scene needs to be detected, a video playing instruction may be preset in the electronic device in advance, and then when a predetermined condition, such as a predetermined time, is met, the electronic device plays the video, and then performs actual power consumption detection.
In step S102, the step of detecting the first actual power consumption in the current scene specifically includes:
in the current scene, reading the electric quantity of the electronic equipment twice and sequentially obtaining a first electric quantity value Q1 and a second electric quantity value Q2, wherein the two times of reading are separated by a preset time T; and calculating to obtain first actual power consumption W, wherein W is (Q1-Q2)/T.
In step S103, a mapping table of scene information and leakage detection threshold values is stored in a storage area in the electronic device, and one leakage detection threshold value is stored in advance for each scene corresponding to each scene information. When the current scene information is read, inquiring a leakage detection threshold corresponding to the current scene information from a mapping table of a storage area according to the current scene information.
In step S104, the first actual power consumption is compared with the leakage detection threshold queried in step S103, and if the first actual power consumption is greater than or equal to the leakage detection threshold, it is determined that the electronic device is electrically leaked, and if the first actual power consumption is less than the leakage detection threshold, it is determined that the electronic device is not electrically leaked.
According to the electric leakage detection method of the electronic equipment, the current scene information of the electronic equipment is detected, the electric leakage detection threshold corresponding to the current scene of the electronic equipment is obtained through inquiry, then the first actual power consumption under the current scene is detected, and finally the first actual power consumption is compared with the electric leakage detection threshold, so that whether the electronic equipment leaks electricity or not can be quickly and conveniently detected, and the electric leakage detection method of the electronic equipment has the beneficial effect of improving user experience.
Example two
Referring to fig. 2, fig. 2 is a flowchart illustrating a leakage detection method for an electronic device according to a second preferred embodiment of the present invention.
The electric leakage detection method of the electronic device of the preferred embodiment includes the following steps:
step S201, obtaining rated power consumption data of the electronic equipment in each scene;
step S202, a leakage detection threshold value under each corresponding scene is set according to rated power consumption data of the electronic equipment under each scene.
Step S203, acquiring current scene information of the electronic equipment;
step S204, detecting first actual power consumption of the electronic equipment in the current scene;
step S205, obtaining a leakage detection threshold value under the current scene according to the current scene information;
step S206, whether the electronic equipment leaks electricity is judged according to the first actual power consumption and the electric leakage detection threshold value in the current scene.
The following describes in detail a specific flow of each step of the leakage detection method for an electronic device according to the preferred embodiment.
In step S201, each scene, for example, a standby scene, a bright screen scene, a music playing scene, a video playing scene, or a call scene, is preset in the electronic device. And then, respectively detecting rated power consumption data under each scene, and storing the scene information corresponding to the rated power consumption data of each scene in a storage area of the electronic equipment in a mapping table mode for inquiring and calling when needed. For example, the rated power consumption of the standby scene is W1, the rated power consumption of the bright screen scene is W2, the rated power consumption of the music scene is W3, the rated power consumption of the video scene is W4, and the rated power consumption of the call scene is W5.
In step S202, since the electronic device is actually used, the actual power consumption of the electronic device is often greater than the rated power consumption of the electronic device, for example, in a case of poor signal, the electronic device is often greater than the rated power consumption in order to continuously obtain the signal. Therefore, it is necessary to set a corresponding leakage detection threshold value according to each scene and its corresponding rated power consumption data, and store the leakage detection threshold value in the electronic device in the form of a mapping table. For example, the leakage detection threshold for the standby scene is W11, the leakage detection threshold for the bright screen scene is W12, the leakage detection threshold for the music scene is W13, the leakage detection threshold for the video scene is W14, and the leakage detection threshold for the call scene is W15.
In step S203, the scene corresponding to the scene information may be a standby scene, a bright screen scene, a music playing scene, a video playing scene, a call scene, or the like. The current scene information of the electronic device may be acquired in various ways. The method comprises the following steps: detecting current operating condition information of the electronic equipment to acquire current scene information; for example, when it is detected that the electronic device is running a music player, it is determined that the current scene is a playing music scene. The second method comprises the following steps: presetting the current running state of the electronic equipment in advance, and acquiring current scene information according to the running state; for example, an operation instruction is preset in the electronic device, the electronic device operates according to the operation instruction, and current scene information is acquired from the operation instruction. For example, if power consumption in a video playing scene needs to be detected, a video playing instruction may be preset in the electronic device in advance, and then when a predetermined condition, such as a predetermined time, is met, the electronic device plays the video, and then performs actual power consumption detection.
In step S204, the step of detecting the first actual power consumption in the current scene specifically includes:
in the current scene, reading the electric quantity of the electronic equipment twice and sequentially obtaining a first electric quantity value Q1 and a second electric quantity value Q2, wherein the two times of reading are separated by a preset time T; and calculating to obtain first actual power consumption W, wherein W is (Q1-Q2)/T.
In step S205, a mapping table of scene information and leakage detection threshold values is stored in a storage area in the electronic device, and one leakage detection threshold value is stored in advance for each scene corresponding to each scene information. And when the current scene information is read, inquiring a leakage detection threshold corresponding to the current scene information from the storage area according to the current scene information. Wherein, the leakage detection threshold W1x is the rated power consumption Wx + the offset W0 x; that is, W11 ═ W1+ W01, W12 ═ W1+ W02, W13 ═ W3+ W03, W14 ═ W4+ W04, and W15 ═ W5+ W05, where W0x is the offset in the corresponding scene, and x is 1,2,3,4, or 5. Wherein the offset W0x may be a fixed value measured through multiple tests. That is, as long as the current scene information is read, a fixed offset value can be obtained by looking up the table, and the calculation method has the advantages of high speed and relatively low accuracy.
Of course, it may also be a dynamic value that changes in real time according to the current environmental factors; therefore, the step S205 of obtaining the leakage detection threshold value in the current scene according to the current scene information includes the following steps:
and detecting a corresponding current environmental parameter and a corresponding offset calculation formula according to the current scene information, calculating a current offset according to the current environmental parameter and the offset calculation formula, and calculating a corresponding electric leakage detection threshold according to the calculated offset.
The offset W0x is the leakage detection threshold W1x is the current environmental parameter k/standard environmental parameter k0, where the standard environmental parameter k0 is the environmental parameter corresponding to the measurement of the rated power consumption data. For example, when the current scene is a bright screen scene or a playing video scene, k represents the current environment parameter as a brightness value, and k0 is the brightness value in the standard environment. When the current scene is a network scene or a call scene, the current environment parameter represented by k is the current signal strength value, and k0 is the signal strength value in the standard environment.
In step S206, the first actual power consumption is compared with the leakage detection threshold obtained in step S205, and if the first actual power consumption is greater than or equal to the leakage detection threshold, it is determined that the electronic device is electrically leaked, and if the first actual power consumption is less than the leakage detection threshold, it is determined that the electronic device is not electrically leaked.
EXAMPLE III
Referring to fig. 3, fig. 3 is a flowchart illustrating a leakage detecting method of an electronic device according to a third preferred embodiment of the present invention.
The electric leakage detection method of the electronic device of the preferred embodiment includes the following steps:
step S301, obtaining rated power consumption data of the electronic equipment in each scene;
step S302, a leakage detection threshold value under each corresponding scene is set according to rated power consumption data of the electronic equipment under each scene.
Step S303, acquiring current scene information of the electronic equipment;
step S304, detecting first actual power consumption in the current scene;
step S305, acquiring a leakage detection threshold value in the current scene according to the current scene information;
step S306, judging whether the electronic equipment leaks electricity according to the first actual power consumption and the electric leakage detection threshold value in the current scene.
Step S307, when the electronic equipment leaks electricity, restarting the electronic equipment;
step S308, restoring the electronic equipment to a scene before restarting;
step S309, detecting a second actual power consumption in the current scene;
step S310, judging whether the electronic equipment leaks electricity according to the second actual power consumption and the electric leakage detection threshold value in the current scene;
if the current is leaked, judging that the hardware of the electronic equipment has a fault; otherwise, judging that the software of the electronic equipment has a fault.
The following describes in detail a specific flow of each step of the leakage detection method for an electronic device according to the preferred embodiment. Step S301 to step S306 are the same as step S201 to step S206 in the second embodiment, and thus are not described again.
In step S307, when the determination result in step S306 is that the electronic device is electrically leaky, the electronic device first saves the current scene information and then restarts.
In step S308, the restarted electronic device is restored to the scene before restarting according to the scene information saved in step S307.
In step S309, the step of detecting the second actual power consumption in the current scenario specifically includes:
in the current scene, reading the electric quantity of the electronic equipment twice and sequentially obtaining a third electric quantity value Q3 and a fourth electric quantity value Q4, wherein the two times of reading are separated by a preset time T; and calculating to obtain a second actual power consumption W, wherein W is (Q3-Q4)/T.
In step S310, the second actual power consumption is compared with the leakage detection threshold obtained in step S305, and if the second actual power consumption is greater than or equal to the leakage detection threshold, it is determined that the electronic device has leakage, and the reason for the leakage is a hardware problem. And if the second actual power consumption is smaller than the leakage detection threshold, judging that the electronic equipment does not leak power at the moment, wherein the failure reason is software failure.
In the leakage detection method for the electronic device according to the preferred embodiment, when the leakage of the electronic device is determined, after the electronic device is controlled to restart and then the scene before the restart is recovered, whether the leakage of the electronic device is caused by a hardware fault or a software fault is determined by detecting whether the electronic device after the restart leaks electricity, and a suitable suggestion is given, so that the method has the beneficial effect of improving user experience.
Example four
Referring to fig. 4, fig. 4 is a schematic block diagram of a leakage detecting system of an electronic device according to a first preferred embodiment of the present invention.
The leakage detection system 400 of the electronic device in the preferred embodiment includes a scene information obtaining module 401, a first power consumption detecting module 402, a leakage detection threshold obtaining module 403, and a first leakage determining module 404.
The scene information obtaining module 401 is configured to obtain current scene information of the electronic device. The scene corresponding to the scene information may be a standby scene, a bright screen scene, a music playing scene, a video playing scene, a call scene, or the like. The current scene information of the electronic device may be acquired in various ways.
The scene information obtaining module 401 may be configured to detect current operating condition information of the electronic device to obtain current scene information; for example, the current operating condition information of the electronic equipment is detected to obtain current scene information; for example, it is detected that the electronic device is running a music player, and then it is determined that the current scene is a playing music scene. Or,
the scene information obtaining module 401 may also be configured to preset a current operating condition of the electronic device, and obtain current scene information according to the operating condition. Specifically, an operation instruction is preset in the electronic device, the electronic device operates according to the operation instruction, and current scene information is acquired according to the operation instruction. For example, if power consumption in a video scene needs to be detected, a video playing instruction may be preset in the electronic device in advance, and then when a predetermined condition, such as a predetermined time, is met, the electronic device performs video playing.
The first power consumption detection module 402 is configured to detect a first actual power consumption of the electronic device in a current scene; specifically, the first power consumption detection module 402 includes a power amount reading unit and a power consumption calculation unit. The electric quantity reading unit is used for reading the electric quantity of the electronic equipment twice in the current scene and sequentially obtaining a first electric quantity value Q1 and a second electric quantity value Q2, and the two times of reading are separated by a preset time T. The power consumption calculation unit is used for calculating and obtaining a first actual power consumption W, wherein W is (Q1-Q2)/T.
The leakage detection threshold obtaining module 403 is configured to obtain a leakage detection threshold in the current scene according to the current scene information. Specifically, a mapping relation table of scene information and a leakage detection threshold is stored in a storage area in the electronic device, and one scene corresponding to each scene information is pre-stored with a leakage detection threshold corresponding to the scene information. When the current scene information is read, the electric leakage detection threshold acquisition module 403 queries an electric leakage detection threshold corresponding to the current scene information from the storage area according to the current scene information.
The leakage determining module 404 is configured to determine whether the electronic device leaks electricity according to the first actual power consumption and a leakage detection threshold in the current scenario. Specifically, the leakage determining module 404 compares the first actual power consumption with the leakage detection threshold queried by the leakage detection threshold obtaining module 403, determines that the electronic device is electrically leaked if the first actual power consumption is greater than or equal to the leakage detection threshold, and determines that the electronic device is electrically leaked if the first actual power consumption is less than the leakage detection threshold.
The electric leakage detection system of the electronic device of the preferred embodiment obtains the electric leakage detection threshold corresponding to the current scene of the electronic device by detecting the current scene information of the electronic device and inquiring, then detects the first actual power consumption under the current scene, and finally compares the first actual power consumption with the electric leakage detection threshold, so that whether the electronic device leaks electricity can be quickly and conveniently detected, and the electric leakage detection system has the beneficial effect of improving user experience.
EXAMPLE five
Referring to fig. 4b, fig. 4b is a schematic block diagram of a leakage detecting system of an electronic device according to a second preferred embodiment of the present invention. On the basis of the fourth embodiment, in this embodiment, the leakage detecting system of the electronic device further includes: a power consumption acquisition module 405 and a leakage detection threshold setting module 406.
The power consumption obtaining module 405 is configured to obtain rated power consumption data of the electronic device in each scene. Each scene, for example, a standby scene, a bright screen scene, a music playing scene, a video playing scene, or a call scene, is preset in the electronic device. And then, respectively detecting rated power consumption data of each scene, and storing scene information of each scene corresponding to the rated power consumption data in the electronic equipment in a mapping table mode for calling when needed. For example, the rated power consumption of the standby scene is W1, the rated power consumption of the bright screen scene is W2, the rated power consumption of the music scene is W3, the rated power consumption of the video scene is W4, and the rated power consumption of the call scene is W5.
And a leakage detection threshold setting module 406, configured to set a leakage detection threshold in each corresponding scene according to the rated power consumption data of the electronic device in each scene. Because the actual power consumption of the electronic device is often greater than the rated power consumption of the electronic device in the actual using process, for example, in the case of poor signals, the actual power consumption of the electronic device is often greater than the rated power consumption in order to continuously acquire the signals. Therefore, the leakage detection threshold setting module 406 needs to set a corresponding leakage detection threshold according to each scene and its corresponding rated power consumption data, and store the leakage detection threshold in the electronic device in the form of a mapping table. For example, the leakage detection threshold for the standby scene is W11, the leakage detection threshold for the bright screen scene is W12, the leakage detection threshold for the music scene is W13, the leakage detection threshold for the video scene is W14, and the leakage detection threshold for the call scene is W15.
Wherein, the leakage detection threshold W1x is the rated power consumption Wx + the offset W0 x; that is, W11 ═ W1+ W01, W12 ═ W1+ W02, W13 ═ W3+ W03, W14 ═ W4+ W04, and W15 ═ W5+ W05, where W0x is the offset in the corresponding scene, and x is 1,2,3,4, or 5. Wherein the offset W0x may be a fixed value measured through multiple tests. That is, as long as the current scene information is read, a fixed offset value can be obtained by looking up the table, and the calculation method has the advantages of high speed and relatively low accuracy.
Of course, it may also be a dynamic value that changes in real time according to the current environmental factors; therefore, the electric leakage detection threshold obtaining module 403 may also be configured to detect a corresponding current environmental parameter and a corresponding offset calculation formula according to the current scene information, calculate a current offset according to the current environmental parameter and the offset calculation formula, and calculate a corresponding electric leakage detection threshold according to the calculated offset.
The offset W0x is the leakage detection threshold W1x is the current environmental parameter k/standard environmental parameter k0, where the standard environmental parameter k0 is the environmental parameter corresponding to the measurement of the rated power consumption data. For example, when the current scene is a bright screen scene or a playing video scene, k represents the current environment parameter as a brightness value, and k0 is the brightness value in the standard environment. When the current scene is a network scene or a call scene, the current environment parameter represented by k is the current signal strength value, and k0 is the signal strength value in the standard environment.
EXAMPLE six
Referring to fig. 4c, fig. 4c is a schematic block diagram of a leakage detecting system of an electronic device according to a third preferred embodiment of the present invention. On the basis of the fifth embodiment, in this embodiment, the leakage detecting system of the electronic device further includes a restarting module 407, a scene recovering module 408, a second power consumption detecting module 409, a second leakage determining module 410, and a fault type determining module 411.
The restarting module 407 is configured to restart the electronic device when the first leakage determining module 404 determines that the electronic device has a leakage; when the first leakage determining module 404 determines that the electronic device has leakage, the restarting module 407 controls the electronic device to store the current scene information, and then controls the electronic device to restart.
The scene restoration module 408 is configured to restore the restarted electronic device to a scene before restarting according to the scene information saved before restarting.
And a second power consumption detecting module 409, configured to detect a second actual power consumption in the current scene. Specifically, the second power consumption detecting module 409 reads the electric quantity of the electronic device twice in the current scenario, and obtains a third electric quantity value Q3 and a fourth electric quantity value Q4 in sequence, and the two times of reading are separated by a predetermined time T; and calculating to obtain a second actual power consumption W, wherein W is (Q3-Q4)/T.
The second leakage determining module 410 is configured to determine whether the electronic device leaks electricity according to the leakage detection threshold in the current scenario. Specifically, it compares the second actual power consumption with the leakage detection threshold queried by the leakage detection threshold acquisition module 403, and determines that the electronic device is leaking electricity if the second actual power consumption is greater than or equal to the leakage detection threshold. And if the second actual power consumption is smaller than the electric leakage detection threshold value, judging that the electronic equipment does not leak electricity at the moment.
And a failure type determination module, configured to determine that hardware of the electronic device fails when the second leakage determination module 410 determines that the electronic device leaks electricity, and determine that software of the electronic device fails when the second leakage determination module 410 determines that the electronic device does not leak electricity.
In the leakage detection system of an electronic device in the preferred embodiment, when the first leakage determination module 404 determines that the electronic device has leakage, the restart module 407 controls the electronic device to restart, and then after the scene recovery module 408 recovers the scene of the electronic device before restart, the second leakage determination module 410 detects whether the electronic device after restart has leakage, and further determines whether the electronic device has leakage due to a hardware fault or a software fault, so as to provide a suitable suggestion, which has a beneficial effect of improving user experience.
Various operations of embodiments are provided herein. In one embodiment, the one or more operations may constitute computer readable instructions stored on one or more computer readable media, which when executed by an electronic device, will cause the computing device to perform the operations. The order in which some or all of the operations are described should not be construed as to imply that these operations are necessarily order dependent. Those skilled in the art will appreciate alternative orderings having the benefit of this description. Moreover, it should be understood that not all operations are necessarily present in each embodiment provided herein.
Also, as used herein, the word "preferred" is intended to serve as an example, instance, or illustration. Any aspect or design described herein as "preferred" is not necessarily to be construed as advantageous over other aspects or designs. Rather, use of the word "preferred" is intended to present concepts in a concrete fashion. The term "or" as used in this application is intended to mean an inclusive "or" rather than an exclusive "or". That is, unless specified otherwise or clear from context, "X employs A or B" is intended to include either of the permutations as a matter of course. That is, if X employs A; b is used as X; or X employs both A and B, then "X employs A or B" is satisfied in any of the foregoing examples.
Also, although the disclosure has been shown and described with respect to one or more implementations, equivalent alterations and modifications will occur to others skilled in the art based upon a reading and understanding of this specification and the annexed drawings. The present disclosure includes all such modifications and alterations, and is limited only by the scope of the appended claims. In particular regard to the various functions performed by the above described components (e.g., elements, resources, etc.), the terms used to describe such components are intended to correspond, unless otherwise indicated, to any component which performs the specified function of the described component (e.g., that is functionally equivalent), even though not structurally equivalent to the disclosed structure which performs the function in the herein illustrated exemplary implementations of the disclosure. In addition, while a particular feature of the disclosure may have been disclosed with respect to only one of several implementations, such feature may be combined with one or more other features of the other implementations as may be desired and advantageous for a given or particular application. Furthermore, to the extent that the terms "includes," has, "" contains, "or variants thereof are used in either the detailed description or the claims, such terms are intended to be inclusive in a manner similar to the term" comprising.
Each functional unit in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium. The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Each apparatus or system described above may perform the method in the corresponding method embodiment.
In summary, although the present invention has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, therefore, the scope of the present invention shall be determined by the appended claims.

Claims (10)

1. A leakage detection method of an electronic device is characterized by comprising the following steps:
acquiring current scene information of the electronic equipment;
detecting first actual power consumption of the electronic equipment in a current scene;
acquiring a leakage detection threshold value under the current scene according to the current scene information;
and judging whether the electronic equipment leaks electricity or not according to the first actual power consumption and the electric leakage detection threshold value in the current scene.
2. The leakage detection method for an electronic device according to claim 1, further comprising, after the step of determining whether the electronic device leaks current according to the first actual power consumption and the leakage detection threshold in the current scenario, the steps of:
when the electronic equipment leaks electricity, restarting the electronic equipment;
restoring the electronic equipment to a scene before restarting;
detecting second actual power consumption of the electronic equipment in the current scene;
judging whether the electronic equipment leaks electricity according to the second actual power consumption and the electric leakage detection threshold value in the current scene;
if the current is leaked, judging that the hardware of the electronic equipment has a fault; otherwise, judging that the software of the electronic equipment has a fault.
3. The leakage detection method for an electronic device according to claim 1, further comprising, before the step of obtaining the leakage detection threshold in the current scene according to the current scene information, the steps of:
acquiring rated power consumption data of the electronic equipment in each scene;
and setting a leakage detection threshold value under each corresponding scene according to the rated power consumption data of the electronic equipment under each scene.
4. The leakage detection method for an electronic device according to claim 1, wherein the step of obtaining current scene information of the electronic device includes:
detecting the current running state information of the electronic equipment to acquire current scene information; or presetting the current operating condition of the electronic equipment, and acquiring current scene information according to the operating condition.
5. The leakage detection method for an electronic device according to claim 1, wherein the step of detecting the first actual power consumption of the electronic device under the current scene comprises the steps of:
under the current scene, reading the electric quantity of the electronic equipment twice and sequentially obtaining a first electric quantity value Q1 and a second electric quantity value Q2, wherein the two times of reading are separated by a preset time T;
and calculating the first actual power consumption W, wherein W is (Q1-Q2)/T.
6. An electrical leakage detection system for an electronic device, comprising:
the scene information acquisition module is used for acquiring the current scene information of the electronic equipment;
the first power consumption detection module is used for detecting first actual power consumption of the electronic equipment in a current scene;
the electric leakage detection threshold value acquisition module is used for acquiring an electric leakage detection threshold value under the current scene according to the current scene information;
and the first electric leakage judging module is used for judging whether the electronic equipment leaks electricity according to the first actual power consumption and the electric leakage detection threshold value in the current scene.
7. A leakage detection system for an electronic device according to claim 6, further comprising:
the restarting module is used for restarting the electronic equipment when the electric leakage judging module judges that the electronic equipment has electric leakage;
the scene recovery module is used for recovering the restarted electronic equipment to a scene before restarting;
the second power consumption detection module is used for detecting second actual power consumption of the electronic equipment in the current scene;
the second electric leakage judging module is used for judging whether the electronic equipment leaks electricity according to the electric leakage detection threshold value in the current scene;
and the fault type judging module is used for judging that hardware of the electronic equipment has faults when the second electric leakage judging module judges that the electronic equipment has electric leakage, and is used for judging that software of the electronic equipment has faults when the second electric leakage judging module judges that the electronic equipment has no electric leakage.
8. A leakage detection system for an electronic device according to claim 6, further comprising:
the power consumption acquisition module is used for acquiring rated power consumption data of the electronic equipment in each scene;
and the leakage detection threshold setting module is used for setting the leakage detection threshold in each corresponding scene according to the rated power consumption data of the electronic equipment in each scene.
9. The system according to claim 6, wherein the scene information acquiring module is configured to detect current operating condition information of the electronic device to acquire current scene information; or, the method is used for presetting the current operating condition of the electronic equipment and acquiring the current scene information according to the operating condition.
10. The electrical leakage detection system of the electronic device according to claim 6, wherein the first power consumption detection module comprises:
the electric quantity reading unit is used for reading the electric quantity of the electronic equipment twice in the current scene and sequentially obtaining a first electric quantity value Q1 and a second electric quantity value Q2, and the two times of reading are separated by preset time T;
and the power consumption calculation unit is used for calculating the first actual power consumption W, wherein W is (Q1-Q2)/T.
CN201610039020.9A 2016-01-20 2016-01-20 The electrical leakage detecting method and system of electronic equipment Active CN105717409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610039020.9A CN105717409B (en) 2016-01-20 2016-01-20 The electrical leakage detecting method and system of electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610039020.9A CN105717409B (en) 2016-01-20 2016-01-20 The electrical leakage detecting method and system of electronic equipment

Publications (2)

Publication Number Publication Date
CN105717409A true CN105717409A (en) 2016-06-29
CN105717409B CN105717409B (en) 2018-07-31

Family

ID=56147510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610039020.9A Active CN105717409B (en) 2016-01-20 2016-01-20 The electrical leakage detecting method and system of electronic equipment

Country Status (1)

Country Link
CN (1) CN105717409B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108072807A (en) * 2017-11-20 2018-05-25 安徽晓星能源科技有限公司 A kind of power quality wireless monitoring device
CN108594057A (en) * 2018-04-28 2018-09-28 上海与德通讯技术有限公司 The electrical leakage detecting method and electronic equipment of splicing ground heat pad
CN108872762A (en) * 2018-05-02 2018-11-23 Oppo广东移动通信有限公司 Electronic equipment electrical leakage detecting method, device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1948974A (en) * 2005-10-13 2007-04-18 松下电器产业株式会社 Semiconductor integrated circuit device and electronic equipment
CN101036063A (en) * 2004-10-12 2007-09-12 爱德万测试株式会社 Test device, test method, electronic device, and device manufacturing method
US20110279938A1 (en) * 2007-02-15 2011-11-17 Advanced Micro Devices, Inc. Dynamic leakage control using selective back-biasing
CN202994949U (en) * 2012-11-07 2013-06-12 方火炳 Electricity leakage alarm device for electric vehicle
CN103176091A (en) * 2011-12-21 2013-06-26 深圳富泰宏精密工业有限公司 System and method for electric leakage detection of electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101036063A (en) * 2004-10-12 2007-09-12 爱德万测试株式会社 Test device, test method, electronic device, and device manufacturing method
CN1948974A (en) * 2005-10-13 2007-04-18 松下电器产业株式会社 Semiconductor integrated circuit device and electronic equipment
US20110279938A1 (en) * 2007-02-15 2011-11-17 Advanced Micro Devices, Inc. Dynamic leakage control using selective back-biasing
CN103176091A (en) * 2011-12-21 2013-06-26 深圳富泰宏精密工业有限公司 System and method for electric leakage detection of electronic device
CN202994949U (en) * 2012-11-07 2013-06-12 方火炳 Electricity leakage alarm device for electric vehicle

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108072807A (en) * 2017-11-20 2018-05-25 安徽晓星能源科技有限公司 A kind of power quality wireless monitoring device
CN108594057A (en) * 2018-04-28 2018-09-28 上海与德通讯技术有限公司 The electrical leakage detecting method and electronic equipment of splicing ground heat pad
CN108872762A (en) * 2018-05-02 2018-11-23 Oppo广东移动通信有限公司 Electronic equipment electrical leakage detecting method, device, electronic equipment and storage medium
CN108872762B (en) * 2018-05-02 2021-02-02 Oppo广东移动通信有限公司 Electronic equipment leakage detection method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105717409B (en) 2018-07-31

Similar Documents

Publication Publication Date Title
US9317413B2 (en) Testing device and testing method thereof
KR101623415B1 (en) Drawing method, apparatus, and terminal
US8769504B2 (en) Method and apparatus for dynamically instrumenting a program
CN105717409B (en) The electrical leakage detecting method and system of electronic equipment
CN110046497B (en) Function hook realization method, device and storage medium
CN107370877B (en) Application program pushing method and device, storage medium and electronic equipment
US20140368438A1 (en) Test system and method for testing keys of virtual keypad
CN104268472A (en) Method and device for restoring address of function modified by third party dynamic link library
CN105988805A (en) Management method for application programs and mobile terminal
CN116256661B (en) Battery fault detection method, device, electronic equipment and storage medium
CN112133357A (en) eMMC testing method and device
CN109684213B (en) Test method, test device and storage medium
CN115686961A (en) Processor testing method and device and electronic equipment
US20240152439A1 (en) Detection Method and Electronic Device
CN111581096A (en) Automatic testing method for android system terminal equipment
CN106980402B (en) Method and device for judging reset calibration and terminal
CN110941549B (en) Memory leak detection method, device, medium and electronic equipment
CN105653343A (en) Software display method and device and electronic equipment
CN109495190B (en) Envelope compression point determination method and related equipment
CN106708705B (en) Terminal background process monitoring method and system
CN115576737A (en) Abnormality detection method, abnormality detection device, electronic apparatus, and storage medium
CN114420190A (en) EMMC loss degree detection method and device, electronic equipment and storage medium
CN108958929B (en) Method and device for applying algorithm library, storage medium and electronic equipment
CN111858317B (en) Memory leakage detection method and device
CN113051184B (en) Data reading method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: Guangdong Opel Mobile Communications Co., Ltd.