CN105717409B - The electrical leakage detecting method and system of electronic equipment - Google Patents

The electrical leakage detecting method and system of electronic equipment Download PDF

Info

Publication number
CN105717409B
CN105717409B CN201610039020.9A CN201610039020A CN105717409B CN 105717409 B CN105717409 B CN 105717409B CN 201610039020 A CN201610039020 A CN 201610039020A CN 105717409 B CN105717409 B CN 105717409B
Authority
CN
China
Prior art keywords
electronic equipment
scene
detection
current
current 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.)
Active
Application number
CN201610039020.9A
Other languages
Chinese (zh)
Other versions
CN105717409A (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 present invention provides the electrical leakage detecting method of a kind of electronic equipment and systems, and this approach includes the following steps:Obtain the current scene information of the electronic equipment;Detect first actual power loss of the electronic equipment under current scene;The detection of electrical leakage threshold value under current scene is obtained according to the current scene information;Whether leaked electricity according to electronic equipment described in the detection of electrical leakage threshold decision under first actual power loss and the current scene.The present invention has the function of realizing that quickly and conveniently detection surveys whether electronic equipment leaks electricity, and has the advantageous effect for improving user experience.

Description

The electrical leakage detecting method and system of electronic equipment
Technical field
The present invention relates to electronic device fields, more particularly to the electrical leakage detecting method and system of a kind of electronic equipment.
Background technology
With the development of smart mobile phone, the function of smart mobile phone is more and more, and power consumption is also getting faster.To which mobile phone is continuous Boat becomes a key factor for restricting smart mobile phone development.However, with the long-time service of smart mobile phone, in hardware and It is likely to will produce failure on software, so as to cause the decline of cruising ability.For example, failure and the software flow of mainboard device The loophole of journey can all cause smart mobile phone power consumption to increase, and be unfavorable for the continuation of the journey of smart mobile phone.
Therefore, the prior art is defective, there is an urgent need for it is a kind of can quickly detect method that whether electronic equipment leaks electricity and System.
Invention content
The embodiment of the present invention, which provides, a kind of can quickly and easily detect the electrical leakage detecting method whether electronic equipment leaks electricity And system, so that electronic equipment can detected rapidly when generating failure.
The embodiment of the present invention provides the electrical leakage detecting method of a kind of electronic equipment, includes the following steps:
Obtain the current scene information of the electronic equipment;
Detect first actual power loss of the electronic equipment under current scene;
The detection of electrical leakage threshold value under current scene is obtained according to the current scene information;
According to electronic equipment described in the detection of electrical leakage threshold decision under first actual power loss and the current scene Whether leak electricity.
In the electrical leakage detecting method of electronic equipment of the present invention, it is described according to first actual power loss and Further include following step after the step of whether electronic equipment described in the detection of electrical leakage threshold decision under the current scene leaks electricity Suddenly:
When the electronic equipment leaks electricity, the electronic equipment is restarted;
The electronic equipment is restored to the scene before restarting;
Detect second actual power loss of the electronic equipment under current scene;
According to electronic equipment described in the detection of electrical leakage threshold decision under second actual power loss and the current scene Whether leak electricity;
If electric leakage, judge that the hardware of the electronic equipment breaks down;Conversely, then judging the software of the electronic equipment It breaks down.
In the electrical leakage detecting method of electronic equipment of the present invention, obtained according to the current scene information described It is further comprising the steps of before the step of detection of electrical leakage threshold value under current scene:
Obtain rated disspation data of the electronic equipment under each scene;
According to the electric leakage inspection under each corresponding scene of rated disspation data setting of the electronic equipment under each scene Survey threshold value.
In the electrical leakage detecting method of electronic equipment of the present invention, the current scene for obtaining the electronic equipment The step of information includes:
The current health information of the electronic equipment is detected to obtain current scene information;Alternatively, presetting the electricity The current operation conditions of sub- equipment, and current scene information is obtained according to the operation conditions.
In the electrical leakage detecting method of electronic equipment of the present invention, the detection electronics is arranged in current scene Under the first actual power loss the step of include the following steps:
Under current scene, reads the electricity of the electronic equipment twice and obtain the first charge value Q1 and second successively Charge value Q2, and twi-read interval predetermined time T;
The first actual power loss W is calculated, wherein W=(Q1-Q2)/T.
The present invention also provides the current leakage detection systems of a kind of electronic equipment, including:
Scene information acquisition module, the current scene information for obtaining the electronic equipment;
First consumption detection module, for detecting first actual power loss of the electronic equipment under current scene;
Detection of electrical leakage threshold value acquisition module, for obtaining the detection of electrical leakage under current scene according to the current scene information Threshold value;
First electric leakage judgment module, for according to the detection of electrical leakage under first actual power loss and the current scene Whether electronic equipment described in threshold decision leaks electricity.
In the current leakage detection system of electronic equipment of the present invention, further include:
Restart module, is set for restarting the electronics when the electric leakage judgment module judges the electronic equipment electric leakage It is standby;
Scene recovery module is restored to the scene before restarting for the electronic equipment after restarting;
Second consumption detection module, for detecting second actual power loss of the electronic equipment under current scene;
Second electric leakage judgment module, for according to electronic equipment described in the detection of electrical leakage threshold decision under the current scene Whether leak electricity;
Fault type judgment module, for when the second electric leakage judgment module judges the electronic equipment electric leakage, sentencing The hardware of the fixed electronic equipment breaks down, and for judging the electronic equipment not when the second electric leakage judgment module When electric leakage, judge that the software of the electronic equipment breaks down.
In the current leakage detection system of electronic equipment of the present invention, further include:
Power consumption acquisition module, for obtaining rated disspation data of the electronic equipment under each scene;
Detection of electrical leakage threshold setting module, it is each according to rated disspation data setting of the electronic equipment under each scene Detection of electrical leakage threshold value under a corresponding scene.
In the current leakage detection system of electronic equipment of the present invention, the scene information acquisition module is for detecting institute The current health information of electronic equipment is stated to obtain current scene information;Alternatively, current for presetting the electronic equipment Operation conditions, and according to the operation conditions obtain current scene information.
In the current leakage detection system of electronic equipment of the present invention, the first consumption detection module includes:
Electricity reading unit, under current scene, the electricity of electronic equipment described in twi-read simultaneously obtains the successively One charge value Q1 and the second charge value Q2, and twi-read interval predetermined time T;
Power consumption calculation unit, for the first actual power loss W to be calculated, wherein W=(Q1-Q2)/T.
The electrical leakage detecting method of the electronic equipment of the present invention is by detecting the current scene information of electronic equipment and by looking into Inquiry obtains the detection of electrical leakage threshold value that the electronic equipment corresponds to the current scene, then detects the first practical work(under current scene Consumption, is compared finally by by first actual power loss with detection of electrical leakage threshold value, so as to realize automatically, quickly and easily Detection surveys whether electronic equipment leaks electricity, and has the advantageous effect for improving user experience.
Description of the drawings
Fig. 1 is the flow chart of the first preferred embodiment of the electrical leakage detecting method of the electronic equipment of the present invention;
Fig. 2 is the flow chart of the second preferred embodiment of the electrical leakage detecting method of the electronic equipment of the present invention;
Fig. 3 is the flow chart of the third preferred embodiment of the electrical leakage detecting method of the electronic equipment of the present invention;
Fig. 4 a are the structure chart of the first preferred embodiment of the current leakage detection system of the electronic equipment of the present invention;
Fig. 4 b are the structure chart of the second preferred embodiment of the current leakage detection system of the electronic equipment of the present invention;
Fig. 4 c are the structure chart of the third preferred embodiment of the current leakage detection system of the electronic equipment of the present invention.
Specific implementation mode
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the present invention is to implement one It is illustrated in computing environment appropriate.The following description be based on illustrated by the specific embodiment of the invention, should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
In the following description, specific embodiments of the present invention will be referred to by the operation performed by one or multi-section computer The step of and symbol illustrate, unless otherwise stating clearly.Therefore, these steps and operation be will appreciate that, carried for several times wherein having Include by representing with the computer disposal list of the electronic signal of the data in a structuring pattern to be executed by computer Member is manipulated.At this manipulation transforms data or the position being maintained in the memory system of the computer, it can match again It sets or in addition changes the running of the computer in a manner familiar to those skilled in the art.The data knot that the data are maintained Structure is the provider location of the memory, has the specific feature defined in the data format.But the principle of the invention is with above-mentioned Word illustrates, is not represented as a kind of limitation, those skilled in the art will appreciate that plurality of step as described below and Operation also may be implemented in hardware.
Embodiment one
Fig. 1 is please referred to, Fig. 1 is the stream of the first preferred embodiment of the electrical leakage detecting method of a kind of electronic equipment of the present invention Cheng Tu.The electronic equipment can be smart mobile phone, tablet computer etc..The electrical leakage detecting method of the electronic equipment of this preferred embodiment Include the following steps:
Step S101 obtains the current scene information of electronic equipment;
Step S102 detects first actual power loss of the electronic equipment under current scene;
Step S103 obtains the detection of electrical leakage threshold value under current scene according to current scene information;
Step S104, according to the detection of electrical leakage threshold decision electronic equipment under the first actual power loss and current scene whether Electric leakage.
The following detailed description of the detailed process of each step of the electrical leakage detecting method of the electronic equipment of this preferred embodiment.
In step S101, the corresponding scene of scene information can be standby scene, bright screen scene, play music scenario, Play video scene or call scene etc..Various ways may be used in the current scene information for obtaining electronic equipment.Method one:Inspection The current health information of electronic equipment is surveyed to obtain current scene information;For example, detecting that the electronic equipment is currently running When music player, judgement current scene is broadcasting music scenario.Method two:The current operation shape of the preset in advance electronic equipment Condition, and current scene information is obtained according to operation conditions;For example, presetting an operating instruction, electronic equipment in the electronic equipment It is run according to the operating instruction, and obtains current scene information from the operating instruction.For example, playing video if necessary to detection Power consumption under scene can preset the instruction of video playing in the electronic device in advance, then when meeting predetermined condition Such as when the predetermined time, electronic equipment carries out video playing, then carries out actual power loss detection again.
In step s 102, the step of detecting the first actual power loss under the current scene specifically includes:
It should read the electricity of the electronic equipment under current scene twice and obtain the first charge value Q1 and second successively Charge value Q2, and twi-read interval predetermined time T;The first actual power loss W is calculated, wherein W=(Q1-Q2)/T.
In step s 103, the storage region in electronic equipment is stored with the mapping of scene information and detection of electrical leakage threshold value Relation table, the corresponding scene of each scene information is all pre-saved to be corresponding to it there are one detection of electrical leakage threshold value.Work as reading When to current scene information, inquired and the current scene information pair from the mapping table of storage region according to the current scene information The detection of electrical leakage threshold value answered.
In step S104, the first actual power loss is compared with the detection of electrical leakage threshold value inquired in step S103, If the first actual power loss is greater than or equal to the detection of electrical leakage threshold value, judge that the electronic equipment leaks electricity, the first actual power loss is small When detection of electrical leakage threshold value, the electronic equipment leakproof is judged.
The electrical leakage detecting method of the electronic equipment of this preferred embodiment is by detecting the current scene information of electronic equipment simultaneously The detection of electrical leakage threshold value that the electronic equipment corresponds to the current scene is obtained by inquiry, then first under detection current scene is real Border power consumption is compared finally by by first actual power loss with detection of electrical leakage threshold value, so as to realize quickly and easily Detection surveys whether electronic equipment leaks electricity, and has the advantageous effect for improving user experience.
Embodiment two
Fig. 2 is please referred to, Fig. 2 is the stream of the second preferred embodiment of the electrical leakage detecting method of a kind of electronic equipment of the present invention Cheng Tu.
The electrical leakage detecting method of the electronic equipment of this preferred embodiment includes the following steps:
Step S201 obtains rated disspation data of the electronic equipment under each scene;
Step S202, according under each corresponding scene of rated disspation data setting of the electronic equipment under each scene Detection of electrical leakage threshold value.
Step S203 obtains the current scene information of electronic equipment;
Step S204 detects first actual power loss of the electronic equipment under current scene;
Step S205 obtains the detection of electrical leakage threshold value under current scene according to current scene information;
Step S206, according to the detection of electrical leakage threshold decision electronic equipment under the first actual power loss and current scene whether Electric leakage.
The following detailed description of the detailed process of each step of the electrical leakage detecting method of the electronic equipment of this preferred embodiment.
In step s 201, each scene is pre-set out respectively in the electronic device, for example, standby scene, Liang Pingchang Scape plays music scenario, plays video scene or scene etc. of conversing.Then, the rated disspation under each scene is detected respectively Data, and the scene information of each scene is corresponded into rated disspation data and is stored in depositing for electronic equipment in a manner of mapping table In storage area domain, query calls when for needing.Such as the rated disspation of standby scene is W1, the rated disspation of bright screen scene is W2, the rated disspation for playing music scenario are W3, and broadcasting video scene rated disspation is W4, and call scene rated disspation is W5.
In step S202, in the actual use process due to electronic equipment, actual power loss is often more than its volume Determine power consumption, for example, in the case of dtr signal, electronic equipment in order to constantly obtain signal, actual power loss commonly greater than Rated disspation.Therefore, it is necessary to according to each scene and the corresponding detection of electrical leakage threshold value of its corresponding rated disspation data setting, And it is preserved in the electronic device in the form of mapping table.For example, the detection of electrical leakage threshold value of standby scene is W11, Liang Pingchang The detection of electrical leakage threshold value of scape is W12, and the detection of electrical leakage threshold value for playing music scenario is W13, plays the detection of electrical leakage of video scene Threshold value is W14, and the detection of electrical leakage threshold value for scene of conversing is W15.
In step S203, the corresponding scene of scene information can be standby scene, bright screen scene, play music scenario, Play video scene or call scene etc..Various ways may be used in the current scene information for obtaining electronic equipment.Method one:Inspection The current health information of electronic equipment is surveyed to obtain current scene information;For example, detecting that the electronic equipment is currently running When music player, judgement current scene is broadcasting music scenario.Method two:The current operation shape of the preset in advance electronic equipment Condition, and current scene information is obtained according to operation conditions;For example, presetting an operating instruction, electronic equipment in the electronic equipment It is run according to the operating instruction, and obtains current scene information from the operating instruction.For example, playing video if necessary to detection Power consumption under scene can preset the instruction of video playing in the electronic device in advance, then when meeting predetermined condition Such as when the predetermined time, electronic equipment carries out video playing, then carries out actual power loss detection again.
In step S204, the step of detecting the first actual power loss under the current scene, specifically includes:
It should read the electricity of the electronic equipment under current scene twice and obtain the first charge value Q1 and second successively Charge value Q2, and twi-read interval predetermined time T;The first actual power loss W is calculated, wherein W=(Q1-Q2)/T.
In step S205, the storage region in electronic equipment is stored with the mapping of scene information and detection of electrical leakage threshold value Relation table, the corresponding scene of each scene information is all pre-saved to be corresponding to it there are one detection of electrical leakage threshold value.Work as reading When to current scene information, electric leakage corresponding with the current scene information is inquired from storage region according to the current scene information and is examined Survey threshold value.Wherein, detection of electrical leakage threshold value W1x=rated disspations Wx+ offsets W0x;It that is to say W11=W1+W01, W12=W1+ W02, W13=W3+W03, W14=W4+W04, W15=W5+W05, wherein W0x is the offset under corresponding scene, and x=1, 2,3,4 or 5.Wherein offset W0x can be by test of many times and the fixed value measured.It is read currently as long as that is to say Scene information, you can it tables look-up to obtain a fixed offset value, is certainly that speed is fast using this calculation benefit, disadvantage It is that accuracy is relatively low.
Certainly, it can also be the dynamic value that real-time change is carried out according to current environment factor;Therefore, step S205 roots The detection of electrical leakage threshold value under current scene is obtained according to current scene information to include the following steps:
Corresponding current environmental parameter and corresponding offset calculation formula are detected according to current scene information, according to Current environmental parameter and offset calculation formula calculates current offset, and is calculated according to calculated offset Corresponding detection of electrical leakage threshold value.
Wherein, offset W0x=detection of electrical leakage threshold value W1x* current environments parameter k/ standard environment parameter k0, Plays Environmental parameter k0 is to refer to the corresponding environmental parameter when measuring rated disspation data.For example, when current scene is bright screen scene Or when playing video scene, the current environment parameter that k is represented is brightness value, and k0 is the brightness value under standard environment.When current When scene is online scene or call scene, the current environment parameter that k is represented is current signal strength value, and k0 is standard ring Signal strength values under border.
In step S206, the first actual power loss is compared with the detection of electrical leakage threshold value obtained in step S205, such as When the first actual power loss of fruit is greater than or equal to the detection of electrical leakage threshold value, judge that the electronic equipment leaks electricity, the first actual power loss is less than When detection of electrical leakage threshold value, the electronic equipment leakproof is judged.
Embodiment three
Fig. 3 is please referred to, Fig. 3 is the stream of the third preferred embodiment of the electrical leakage detecting method of a kind of electronic equipment of the present invention Cheng Tu.
The electrical leakage detecting method of the electronic equipment of this preferred embodiment includes the following steps:
Step S301 obtains rated disspation data of the electronic equipment under each scene;
Step S302, according under each corresponding scene of rated disspation data setting of the electronic equipment under each scene Detection of electrical leakage threshold value.
Step S303 obtains the current scene information of electronic equipment;
Step S304 detects the first actual power loss under current scene;
Step S305 obtains the detection of electrical leakage threshold value under current scene according to current scene information;
Step S306, according to the detection of electrical leakage threshold decision electronic equipment under the first actual power loss and current scene whether Electric leakage.
Step S307 restarts the electronic equipment when the electronic equipment leaks electricity;
The electronic equipment is restored to the scene before restarting by step S308;
Step S309 detects the second actual power loss under current scene;
Step S310, according to the detection of electrical leakage threshold decision under second actual power loss and the current scene Whether electronic equipment leaks electricity;
If electric leakage, judge that the hardware of the electronic equipment breaks down;Conversely, then judging the software of the electronic equipment It breaks down.
The following detailed description of the detailed process of each step of the electrical leakage detecting method of the electronic equipment of this preferred embodiment.Its In, step S301- steps S306 is identical as step S201- steps S206 in embodiment two, therefore does not repeat.
In step S307, when the judging result of step S306 is that electronic equipment leaks electricity, electronic equipment preserves first works as Preceding scene information, then restarts.
In step S308, according to the scene information preserved in step S307, the electronic equipment after restarting is restored to weight Scene before opening.
In step S309, the step of detecting the second actual power loss under the current scene, specifically includes:
It should read the electricity of the electronic equipment under current scene twice and obtain third charge value Q3 and the 4th successively Charge value Q4, and twi-read interval predetermined time T;The second actual power loss W is calculated, wherein W=(Q3-Q4)/T.
In step S310, the second actual power loss is compared with the detection of electrical leakage threshold value obtained in step S305, such as When the second actual power loss of fruit is greater than or equal to the detection of electrical leakage threshold value, judge that the electronic equipment leaks electricity, and reason of leaking electricity is hardware Problem.If the second actual power loss is less than detection of electrical leakage threshold value, judge that electronic equipment leakproof at this time, failure cause are Software fault.
The electrical leakage detecting method of the electronic equipment of this preferred embodiment was by the way that when judging electronic equipment electric leakage, control should After electronic equipment restarts the scene before then restoring to restart, whether the electronic equipment after being restarted by detection leaks electricity, and then judges It is and then to provide suitable suggestion due to hardware fault or software fault to go out electronic equipment electric leakage, has and improves user's body The advantageous effect tested.
Example IV
Fig. 4 is please referred to, Fig. 4 is the original of the first preferred embodiment of the current leakage detection system of a kind of electronic equipment of the present invention Manage block diagram.
The current leakage detection system 400 of electronic equipment in this preferred embodiment, including scene information acquisition module 401, One consumption detection module 402, the electric leakage judgment module 404 of detection of electrical leakage threshold value acquisition module 403 and first.
Wherein, scene information acquisition module 401 is used to obtain the current scene information of electronic equipment.Scene information is corresponding Scene can be standby scene, bright screen scene, plays music scenario, play video scene or scene etc. of conversing.Electronics is obtained to set Various ways may be used in standby current scene information.
Scene information acquisition module 401 can be used for detecting the current health information of electronic equipment and work as front court to obtain Scape information;For example, detecting the current health information of electronic equipment to obtain current scene information;For example, detecting the electricity Sub- equipment is currently running music player, then judges current scene to play music scenario.Alternatively,
Scene information acquisition module 401 can be also used for the current operation conditions of preset electronic equipment, and according to operation shape Condition obtains current scene information.Specifically, an operating instruction is preset in the electronic equipment, electronic equipment is according to the operating instruction Operation, and current scene information is obtained according to the operating instruction.For example, playing the work(under video scene if necessary to detection Consumption can preset the instruction of video playing in the electronic device in advance, then when meeting for example pre- timing of predetermined condition Between when, electronic equipment carry out video playing.
First consumption detection module 402 is for detecting first actual power loss of the electronic equipment under current scene;Specifically Ground, the first consumption detection module 402 include electricity reading unit and power consumption calculation unit.Wherein, electricity reading unit is used for Under current scene, the electricity of twi-read electronic equipment simultaneously obtains the first charge value Q1 and the second charge value Q2 successively, and Twi-read interval predetermined time T.Power consumption calculation unit is for being calculated the first actual power loss W, wherein W=(Q1- Q2)/T。
Detection of electrical leakage threshold value acquisition module 403 is used to obtain the detection of electrical leakage threshold under current scene according to current scene information Value.Specifically, the storage region in electronic equipment is stored with the mapping table of scene information and detection of electrical leakage threshold value, each The corresponding scene of scene information is all pre-saved to be corresponding to it there are one detection of electrical leakage threshold value.Believe when reading current scene When breath, detection of electrical leakage threshold value acquisition module 403 is inquired and the current scene information according to the current scene information from storage region Corresponding detection of electrical leakage threshold value.
The judgment module 404 that leaks electricity is used for according to the detection of electrical leakage threshold decision institute under the first actual power loss and current scene State whether electronic equipment leaks electricity.Specifically, electric leakage judgment module 404 is by the first actual power loss and detection of electrical leakage threshold value acquisition module The 403 detection of electrical leakage threshold values inquired are compared, if the first actual power loss is greater than or equal to the detection of electrical leakage threshold value, are sentenced Fixed electronic equipment electric leakage judges the electronic equipment leakproof when the first actual power loss is less than detection of electrical leakage threshold value.
The current leakage detection system of the electronic equipment of this preferred embodiment is by detecting the current scene information of electronic equipment simultaneously The detection of electrical leakage threshold value that the electronic equipment corresponds to the current scene is obtained by inquiry, then first under detection current scene is real Border power consumption is compared finally by by first actual power loss with detection of electrical leakage threshold value, so as to realize quickly and easily Detection surveys whether electronic equipment leaks electricity, and has the advantageous effect for improving user experience.
Embodiment five
Fig. 4 b are please referred to, Fig. 4 b are the second preferred embodiment of the current leakage detection system of a kind of electronic equipment of the present invention Functional block diagram.On the basis of example IV, in the present embodiment, the current leakage detection system of the electronic equipment further includes:Power consumption Acquisition module 405 and detection of electrical leakage threshold setting module 406.
Wherein, power consumption acquisition module 405 is for obtaining rated disspation data of the electronic equipment under each scene. Each scene is pre-set out in electronic equipment respectively, for example, standby scene, bright screen scene, broadcasting music scenario, broadcasting video Scene or call scene etc..Then, the rated disspation data under each scene are detected respectively, and by the scene of each scene Information is corresponded to rated disspation data and is stored in electronic equipment in a manner of mapping table, is called when for needing.Such as wait for airport The rated disspation of scape is W1, and the rated disspation of bright screen scene is W2, and the rated disspation for playing music scenario is W3, plays video field Scape rated disspation is W4, and call scene rated disspation is W5.
Detection of electrical leakage threshold setting module 406 is set according to rated disspation data of the electronic equipment under each scene Detection of electrical leakage threshold value under fixed each corresponding scene.In the actual use process due to electronic equipment, actual power loss is often It is greater than its rated disspation, for example, in the case of dtr signal, electronic equipment is in order to constantly obtain signal, practical work( Consumption is commonly greater than rated disspation.Therefore, detection of electrical leakage threshold setting module 406 is needed according to each scene and its corresponding volume Determine power consumption data and set corresponding detection of electrical leakage threshold value, and is preserved in the electronic device in the form of mapping table.For example, waiting for The detection of electrical leakage threshold value of airport scape is W11, and the detection of electrical leakage threshold value of bright screen scene is W12, plays the detection of electrical leakage of music scenario Threshold value is W13, and the detection of electrical leakage threshold value for playing video scene is W14, and the detection of electrical leakage threshold value for scene of conversing is W15.
Wherein, detection of electrical leakage threshold value W1x=rated disspations Wx+ offsets W0x;It that is to say W11=W1+W01, W12=W1+ W02, W13=W3+W03, W14=W4+W04, W15=W5+W05, wherein W0x is the offset under corresponding scene, and x=1, 2,3,4 or 5.Wherein offset W0x can be by test of many times and the fixed value measured.It is read currently as long as that is to say Scene information, you can it tables look-up to obtain a fixed offset value, is certainly that speed is fast using this calculation benefit, disadvantage It is that accuracy is relatively low.
Certainly, it can also be the dynamic value that real-time change is carried out according to current environment factor;Therefore, detection of electrical leakage threshold value Acquisition module 403 can be also used for detecting corresponding current environmental parameter and corresponding offset according to current scene information Calculation formula, and current offset is calculated according to current environmental parameter and offset calculation formula, and according to calculating The offset gone out calculates corresponding detection of electrical leakage threshold value.
Wherein, offset W0x=detection of electrical leakage threshold value W1x* current environments parameter k/ standard environment parameter k0, Plays Environmental parameter k0 is to refer to the corresponding environmental parameter when measuring rated disspation data.For example, when current scene is bright screen scene Or when playing video scene, the current environment parameter that k is represented is brightness value, and k0 is the brightness value under standard environment.When current When scene is online scene or call scene, the current environment parameter that k is represented is current signal strength value, and k0 is standard ring Signal strength values under border.
Embodiment six
Fig. 4 c are please referred to, Fig. 4 c are the third preferred embodiment of the current leakage detection system of a kind of electronic equipment of the present invention Functional block diagram.On the basis of embodiment five, in the present embodiment, the current leakage detection system of the electronic equipment further includes restarting mould Block 407, scene recovery module 408, the second consumption detection module 409, second electric leakage judgment module 410 and fault type judge Module 411.
Wherein, module 407 is restarted for when the first electric leakage judgment module 404 judges electronic equipment electric leakage, restarting the electricity Sub- equipment;When the first electric leakage 404 judging result of judgment module is that electronic equipment leaks electricity, 407 control electronics of module are restarted Current scene information is preserved, then control electronics are restarted.
Scene recovery module 408 is used to that the electronic equipment after restarting to be restored to weight according to the scene information preserved before restarting Scene before opening.
Second consumption detection module 409, for detecting the second actual power loss under current scene.Specifically, the second power consumption Detection module 409 reads the electricity of the electronic equipment twice and obtains third charge value Q3 and successively under current scene Four charge value Q4, and twi-read interval predetermined time T;The second actual power loss W is calculated, wherein W=(Q3-Q4)/T.
Second electric leakage judgment module 410, for according to the detection of electrical leakage threshold decision electronic equipment under current scene whether Electric leakage.Specifically, the detection of electrical leakage threshold value the second actual power loss and detection of electrical leakage threshold value acquisition module 403 inquired carries out Compare, if the second actual power loss is greater than or equal to the detection of electrical leakage threshold value, judges that the electronic equipment leaks electricity.If second is real Border power consumption is less than detection of electrical leakage threshold value, judges electronic equipment leakproof at this time.
Fault type judgment module, for when the second electric leakage judgment module 410 judges electronic equipment electric leakage, judgement should The hardware of electronic equipment breaks down, and for when the second electric leakage judgment module 410 judges the electronic equipment leakproof, sentencing The software of the fixed electronic equipment breaks down.
In the current leakage detection system of the electronic equipment of this preferred embodiment, the first electric leakage judgment module 404 is judging the electricity When sub- equipment leakage, restart module 407 control the electronic equipment restart, then scene recovery module 408 restores electronic equipment After scene before restarting, whether the electronic equipment detected after restarting by the second electric leakage judgment module 410 leaks electricity, and then judges Electronic equipment electric leakage is and then to provide suitable suggestion due to hardware fault or software fault, has and improves user experience Advantageous effect.
There is provided herein the various operations of embodiment.In one embodiment, one or more operations can be with structure At the computer-readable instruction stored on one or more computer-readable mediums, will make to succeed in one's scheme when being executed by electronic equipment It calculates equipment and executes the operation.Describing the sequences of some or all of operations, to should not be construed as to imply that these operations necessarily suitable Sequence is relevant.It will be appreciated by those skilled in the art that the alternative sequence of the benefit with this specification.Furthermore, it is to be understood that Not all operation must exist in each embodiment provided in this article.
Moreover, word " preferred " used herein means serving as example, example or illustration.Feng Wen is described as " preferably " any aspect or design be not necessarily to be construed as than other aspect or design it is more advantageous.On the contrary, the use purport of word " preferred " Concept is being proposed in specific ways.Term "or" as used in this application is intended to mean the "or" for including and non-excluded "or".That is, unless specified otherwise or clear from the context, " X uses A or B " means that nature includes any one of arrangement. That is, if X uses A;X uses B;Or X uses A and B both, then " X uses A or B " is met in aforementioned any example.
Moreover, although the disclosure, this field skill has shown and described relative to one or more realization methods Art personnel will be appreciated that equivalent variations and modification based on the reading and understanding to the specification and drawings.The disclosure include it is all this The modifications and variations of sample, and be limited only by the scope of the following claims.In particular, to by said modules (such as element, Resource etc.) various functions that execute, the term for describing such component is intended to correspond to the specified work(for executing the component The random component (unless otherwise instructed) of energy (such as it is functionally of equal value), even if illustrated herein with execution in structure The disclosure exemplary implementations in function open structure it is not equivalent.In addition, although the special characteristic of the disclosure Through being disclosed relative to the only one in several realization methods, but this feature can with such as can be to given or specific application For be it is expected and one or more other features combinations of other advantageous realization methods.Moreover, with regard to term " comprising ", " tool Have ", " containing " or its deformation be used in specific implementation mode or claim for, such term be intended to with term The similar mode of "comprising" includes.
Each functional unit in the embodiment of the present invention can be integrated in a processing module, can also be each unit list Solely be physically present, can also two or more units be integrated in a module.Above-mentioned integrated module both may be used The form of hardware is realized, can also be realized in the form of software function module.If the integrated module is with software function The form of module is realized and when sold or used as an independent product, can also be stored in a computer-readable storage and be situated between In matter.Storage medium mentioned above can be read-only memory, disk or CD etc..Above-mentioned each device or system, can be with Execute the method in correlation method embodiment.
In conclusion although the present invention is disclosed above with preferred embodiment, above preferred embodiment is not to limit The system present invention, those skilled in the art can make various changes and profit without departing from the spirit and scope of the present invention Decorations, therefore protection scope of the present invention is subject to the range that claim defines.

Claims (9)

1. the electrical leakage detecting method of a kind of electronic equipment, which is characterized in that include the following steps:
Obtain the current scene information of the electronic equipment;
Detect first actual power loss of the electronic equipment under current scene;
The detection of electrical leakage threshold value under current scene is obtained according to the current scene information;
According to electronic equipment described in the detection of electrical leakage threshold decision under first actual power loss and the current scene whether Electric leakage;
When the electronic equipment leaks electricity, the electronic equipment is restarted;
The electronic equipment is restored to the scene before restarting;
Detect second actual power loss of the electronic equipment under current scene;
According to electronic equipment described in the detection of electrical leakage threshold decision under second actual power loss and the current scene whether Electric leakage;
If electric leakage, judge that the hardware of the electronic equipment breaks down;Conversely, then judging that the software of the electronic equipment occurs Failure.
2. the electrical leakage detecting method of electronic equipment according to claim 1, which is characterized in that described according to described current It is further comprising the steps of before scene information obtains the step of detection of electrical leakage threshold value under current scene:
Obtain rated disspation data of the electronic equipment under each scene;
According to the detection of electrical leakage threshold under each corresponding scene of rated disspation data setting of the electronic equipment under each scene Value.
3. the electrical leakage detecting method of electronic equipment according to claim 1, which is characterized in that the acquisition electronics is set The step of standby current scene information includes:
The current health information of the electronic equipment is detected to obtain current scene information;It is set alternatively, presetting the electronics Standby current operation conditions, and current scene information is obtained according to the operation conditions.
4. the electrical leakage detecting method of electronic equipment according to claim 1, which is characterized in that the detection electronics is set The step of setting the first actual power loss under current scene includes the following steps:
Under current scene, reads the electricity of the electronic equipment twice and obtain the first charge value Q1 and the second electricity successively Value Q2, and twi-read interval predetermined time T;
The first actual power loss W is calculated, wherein W=(Q1-Q2)/T.
5. the current leakage detection system of a kind of electronic equipment, which is characterized in that including:
Scene information acquisition module, the current scene information for obtaining the electronic equipment;
First consumption detection module, for detecting first actual power loss of the electronic equipment under current scene;
Detection of electrical leakage threshold value acquisition module, for obtaining the detection of electrical leakage threshold under current scene according to the current scene information Value;
First electric leakage judgment module, for according to the detection of electrical leakage threshold value under first actual power loss and the current scene Judge whether the electronic equipment leaks electricity;
Module is restarted, for restarting the electronic equipment when the electric leakage judgment module judges the electronic equipment electric leakage;
Scene recovery module is restored to the scene before restarting for the electronic equipment after restarting;
Second consumption detection module, for detecting second actual power loss of the electronic equipment under current scene;
Second electric leakage judgment module, for according to electronic equipment described in the detection of electrical leakage threshold decision under the current scene whether Electric leakage;
Fault type judgment module, for when the second electric leakage judgment module judges the electronic equipment electric leakage, judging institute The hardware for stating electronic equipment breaks down, and for judging the electronic equipment leakproof when the second electric leakage judgment module When, judge that the software of the electronic equipment breaks down.
6. the current leakage detection system of electronic equipment according to claim 5, which is characterized in that further include:
Power consumption acquisition module, for obtaining rated disspation data of the electronic equipment under each scene;
Detection of electrical leakage threshold setting module, it is each right according to rated disspation data setting of the electronic equipment under each scene Answer the detection of electrical leakage threshold value under scene.
7. the current leakage detection system of electronic equipment according to claim 5, which is characterized in that the scene information obtains mould Block is for detecting the current health information of the electronic equipment to obtain current scene information;Alternatively, for default described The current operation conditions of electronic equipment, and current scene information is obtained according to the operation conditions.
8. the current leakage detection system of electronic equipment according to claim 5, which is characterized in that the first consumption detection mould Block includes:
Electricity reading unit, under current scene, the electricity of electronic equipment described in twi-read simultaneously to obtain the first electricity successively Magnitude Q1 and the second charge value Q2, and twi-read interval predetermined time T;
Power consumption calculation unit, for the first actual power loss W to be calculated, wherein W=(Q1-Q2)/T.
9. a kind of computer readable storage medium, is stored with computer program, wherein the computer program makes computer Execute such as Claims 1-4 any one of them method.
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 CN105717409A (en) 2016-06-29
CN105717409B true 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)

Families Citing this family (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
CN108872762B (en) * 2018-05-02 2021-02-02 Oppo广东移动通信有限公司 Electronic equipment leakage detection method and device, electronic equipment and storage medium

Citations (4)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080197914A1 (en) * 2007-02-15 2008-08-21 Daniel Shimizu Dynamic leakage control using selective back-biasing

Patent Citations (4)

* 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
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

Also Published As

Publication number Publication date
CN105717409A (en) 2016-06-29

Similar Documents

Publication Publication Date Title
CN110580226B (en) Object code coverage rate testing method, system and medium for operating system level program
CN105717409B (en) The electrical leakage detecting method and system of electronic equipment
US20140002396A1 (en) Information processing method, information processing apparatus and electronic device
CN108872762A (en) Electronic equipment electrical leakage detecting method, device, electronic equipment and storage medium
CN104035702B (en) A kind of method preventing intelligent terminal's maloperation and intelligent terminal
CN105302455A (en) Interface operation method and terminal
CN104461801A (en) Method and system for testing sensitiveness of touch screen
CN104679645A (en) Method for detecting stack space allowance on real time
CN109451130B (en) Mobile terminal testing method and device, mobile terminal and storage medium
CN115932476B (en) Fault positioning method and device based on digital twin, electronic equipment and medium
CN105260077B (en) The detection method of electronic equipment and its capacitive touch screen
US20140368438A1 (en) Test system and method for testing keys of virtual keypad
CN103678380A (en) Test state presentation and anomaly indexing system and method
CN109376062A (en) Network state reminding method and relevant apparatus
CN104809054A (en) Method and system for realizing program testing
US11055209B2 (en) Application analysis with flexible post-processing
CN106227413A (en) A kind of application based on mobile terminal starts detection method and system
CN106028367A (en) Automatic testing method and system based on CMWrun testing platform
CN104461603B (en) A kind of information processing method and electronic equipment
CN108984024B (en) Touch operation method and device, storage medium and electronic equipment
CN114937027B (en) Fan blade defect detection method and device, electronic equipment and storage medium
CN104112056A (en) Method and system for detecting data processing faults
KR20140042326A (en) Electric test system for pcb(printed circuit board) and method thereof
CN106775296B (en) Terminal control method and device
CN111274143B (en) Buried point test method, buried point test device, buried point test 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

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.

CP01 Change in the name or title of a patent holder