CN108872762A - Electronic equipment electrical leakage detecting method, device, electronic equipment and storage medium - Google Patents

Electronic equipment electrical leakage detecting method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN108872762A
CN108872762A CN201810411297.9A CN201810411297A CN108872762A CN 108872762 A CN108872762 A CN 108872762A CN 201810411297 A CN201810411297 A CN 201810411297A CN 108872762 A CN108872762 A CN 108872762A
Authority
CN
China
Prior art keywords
electronic equipment
output
current
battery
attribute
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
CN201810411297.9A
Other languages
Chinese (zh)
Other versions
CN108872762B (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 CN201810411297.9A priority Critical patent/CN108872762B/en
Publication of CN108872762A publication Critical patent/CN108872762A/en
Application granted granted Critical
Publication of CN108872762B publication Critical patent/CN108872762B/en
Expired - Fee Related 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)
  • Power Sources (AREA)
  • Testing Of Short-Circuits, Discontinuities, Leakage, Or Incorrect Line Connections (AREA)
  • Telephone Function (AREA)

Abstract

The application proposes a kind of electronic equipment electrical leakage detecting method, device, electronic equipment and storage medium, belongs to electronic technology field.Wherein, the method includes:According to the attribute respectively applied currently running in electronic equipment, the output current threshold that battery is current in the electronic equipment is determined;Detect the current value of the currently practical output of battery in the electronic equipment;If the current value of the reality output is greater than the output current threshold, it is determined that there are leak current faults for the electronic equipment.As a result, by this electronic equipment electrical leakage detecting method, user can understand electronic equipment with the presence or absence of drain conditions in time.When electronic equipment is there are when drain conditions, available on-call maintenance reduces after-sales service difficulty, protects the property safety of user, improve the safety that user uses.

Description

Electronic equipment electrical leakage detecting method, device, electronic equipment and storage medium
Technical field
This application involves electronic technology field more particularly to a kind of electronic equipment electrical leakage detecting method, device, electronic equipments And storage medium.
Background technique
With the continuous development of science and technology, various electronic equipments continue to introduce new, and adapt to the various demands of people, are people Life bring great convenience.For example, have become must can not in people's life for the electronic products such as mobile phone, tablet computer Few necessity.Electronic equipment while bringing convenient, using when safety be also required to be guaranteed.
The electronic equipments such as mobile phone are under incorrect use or service life longer situation, it sometimes appear that electric leakage shows As.And the generation leaked electricity is usually not noticeable, is only influencing continuation of the journey and serious adstante febre, user can just take away maintenance.At this moment Electronic equipment may have received irreversible damage, not only increase the difficulty of maintenance, but also affect user experience, Cause unnecessary loss of property.When serious, it is also possible to threaten the personal safety of user.
Summary of the invention
The application is intended to solve at least some of the technical problems in related technologies.
For this purpose, the application proposes a kind of electronic equipment electrical leakage detecting method, by this electrical leakage detecting method, user can be with Understanding electronic equipment in time whether there is drain conditions.When electronic equipment is there are when drain conditions, can be sold with on-call maintenance, reduction Maintenance difficulty afterwards protects the property safety of user, improves the safety that user uses.
The application also proposes a kind of electronic equipment earth detector.
The application also proposes a kind of electronic equipment.
The application also proposes a kind of computer readable storage medium.
The application first aspect embodiment proposes a kind of electronic equipment electrical leakage detecting method, including according in electronic equipment The currently running attribute respectively applied determines the output current threshold that battery is current in the electronic equipment;Detect the electronics The current value of the currently practical output of battery in equipment;If the current value of the reality output is greater than the output current threshold, Determine that there are leak current faults for the electronic equipment.
Electronic equipment electrical leakage detecting method provided by the embodiments of the present application, can be according to currently running each in electronic equipment The attribute of application determines the output current threshold that battery is current in electronic equipment, and utilizes and be serially connected in electric device battery circuit In low resistance resistance, detect the current value of the currently practical output of battery in electronic equipment.If the current value of reality output is big In output current threshold, it is determined that there are leak current faults for electronic equipment.As a result, by according to the currently running application of electronic equipment Attribute, whether the current value of the currently practical output of battery is greater than corresponding current threshold in real-time detection electronic equipment, realizes Electronic equipment is measured in real time with the presence or absence of leak current fault, reduces electronic equipment the several of irreversible damage occurs Rate reduces after-sales service difficulty, protects the property safety and personal safety of user, improves user experience.
The application second aspect embodiment proposes a kind of electronic equipment earth detector, including determining module, is used for According to the attribute respectively applied currently running in electronic equipment, the output current threshold that battery is current in the electronic equipment is determined Value;Detection module, for detecting the current value of the currently practical output of battery in the electronic equipment;Judgment module, for judging Whether the current value of the reality output is greater than the output current threshold, if so, determining that the electronic equipment has electric leakage Failure.
The electronic equipment earth detector that the embodiment of the present application proposes, can be according to currently running each in electronic equipment The attribute of application determines the output current threshold that battery is current in electronic equipment, and utilizes and be serially connected in electric device battery circuit In low resistance resistance, detect the current value of the currently practical output of battery in electronic equipment.If the current value of reality output is big In output current threshold, it is determined that there are leak current faults for electronic equipment.As a result, by according to the currently running application of electronic equipment Attribute, whether the current value of the currently practical output of battery is greater than corresponding current threshold in real-time detection electronic equipment, realizes Electronic equipment is measured in real time with the presence or absence of leak current fault, reduces electronic equipment the several of irreversible damage occurs Rate reduces after-sales service difficulty, protects the property safety and personal safety of user, improves user experience.
The application third aspect embodiment proposes a kind of electronic equipment comprising:It memory, processor and is stored in On reservoir and the program that can run on a processor, which is characterized in that the processor is realized when executing described program such as preceding institute The electronic equipment electrical leakage detecting method stated.
Electronic equipment provided by the embodiments of the present application can execute foregoing electronic equipment electrical leakage detecting method, root According to the attribute respectively applied currently running in electronic equipment, the output current threshold that battery is current in electronic equipment, and benefit are determined With the low resistance resistance being serially connected in electric device battery circuit, the electric current of the currently practical output of battery in electronic equipment is detected Value.If the current value of reality output is greater than output current threshold, it is determined that there are leak current faults for electronic equipment.Pass through root as a result, According to the attribute of the currently running application of electronic equipment, whether the current value of the currently practical output of battery in real-time detection electronic equipment It greater than corresponding current threshold, realizes and electronic equipment is measured in real time with the presence or absence of leak current fault, reduce electronics and set The probability of the raw irreversible damage of preparation, reduces after-sales service difficulty, protects the property safety and personal safety of user, change It has been apt to user experience.
The application fourth aspect embodiment proposes a kind of computer readable storage medium, is stored thereon with computer journey Sequence, which is characterized in that foregoing electronic equipment electrical leakage detecting method is realized when described program is executed by processor.
Computer readable storage medium provided by the embodiments of the present application can be leaked by executing the electronic equipment stored thereon Electric detection method determines the output that battery is current in electronic equipment according to the attribute respectively applied currently running in electronic equipment Current threshold, and using the low resistance resistance being serially connected in electric device battery circuit, detect that battery is current in electronic equipment The current value of reality output.If the current value of reality output is greater than output current threshold, it is determined that electronic equipment has electric leakage event Barrier.As a result, by the attribute according to the currently running application of electronic equipment, battery is currently practical defeated in real-time detection electronic equipment Whether current value out is greater than corresponding current threshold, realizes and is examined in real time to electronic equipment with the presence or absence of leak current fault It surveys, reduces the probability that irreversible damage occurs for electronic equipment, reduce after-sales service difficulty, the property of user is protected to pacify Complete and personal safety, improves user experience.
The additional aspect of the application and advantage will be set forth in part in the description, and will partially become from the following description It obtains obviously, or recognized by the practice of the application.
Detailed description of the invention
The application is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, wherein:
Fig. 1 is the flow diagram of a kind of electronic equipment electrical leakage detecting method provided by the embodiment of the present application;
Fig. 2 is the flow diagram of another kind electronic equipment electrical leakage detecting method provided by the embodiment of the present application;
Fig. 3 is the structural schematic diagram of electronic equipment earth detector provided by the embodiment of the present application.
Fig. 4 is the structural schematic diagram of electronic equipment provided by the embodiment of the present application.
Specific embodiment
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element.The embodiments described below with reference to the accompanying drawings are exemplary, It is intended for explaining the application, and should not be understood as the limitation to the application.
The embodiment of the present application is not noticeable when leaking electricity for electronic equipment, not only influences the continuation of the journey of electronic equipment, and And when serious, irreversible damage can be caused to electronic equipment, increased maintenance difficulty, influenced user experience, it is unnecessary to cause Property loss, the problem of threatening the personal safety of user, propose a kind of electronic equipment electrical leakage detecting method.
Electronic equipment electrical leakage detecting method provided by the embodiments of the present application, according to each application currently running in electronic equipment Attribute, determine the output current threshold that battery is current in electronic equipment, and detect the currently practical output of battery in electronic equipment Current value, if the current value of reality output be greater than output current threshold, it is determined that there are leak current faults for electronic equipment.As a result, By the attribute according to the currently running application of electronic equipment, the electric current of the currently practical output of battery in real-time detection electronic equipment Whether value is greater than corresponding current threshold, realizes and is measured in real time to electronic equipment with the presence or absence of leak current fault, reduces The probability of irreversible damage occurs for electronic equipment, reduces after-sales service difficulty, protects the property safety and the person of user Safety, improves user experience.
Below with reference to the accompanying drawings the electronic equipment electrical leakage detecting method of the embodiment of the present application, device, electronic equipment are described and is deposited Storage media.
Fig. 1 is the flow diagram of a kind of electronic equipment electrical leakage detecting method provided by the embodiment of the present application.
As shown in Figure 1, the electronic equipment electrical leakage detecting method, includes the following steps:
Step 101, according to the attribute respectively applied currently running in electronic equipment, determine that battery is worked as in the electronic equipment Preceding output current threshold.
Wherein, the currently running attribute respectively applied, refers to mark or type of currently running application etc..
In actual use, currently running application in electronic equipment can be determined according to the process list of electronic equipment Attribute.For example, determining that electronic equipment is currently running according to the content in the current process list of electronic equipment " description bar " The attribute of application.Alternatively, by reading " operation program listing " in electronic equipment, it is currently running in electronic equipment to obtain Attribute of application etc..
In electronic equipment has been determined after the currently running attribute respectively applied, it can be applied by inquiring preset operation Attribute and output electric current mapping table, determine corresponding with the attribute of currently running application output current threshold.
Wherein, the preset attribute for running application and output electric current mapping table, for according to the N number of and electronic equipment What the test result of the identical other electronic equipments of attribute determined, N is the positive integer greater than 1.
It is understood that when conditions permit, the value of N is the bigger the better.Because the value in N is sufficiently large When, be commonly available it is more objective, more have general test result.Accordingly, it is determined that the attribute of the operation application gone out It is also relatively reliable with output electric current mapping table, while making final detection of electrical leakage result more accurate.It illustrates below The method of the attribute and output electric current mapping table of the default operation application that bright the present embodiment proposes.
For example, electronic equipment is certain brand model mobile phone, attribute and the output electric current mapping of the application of the mobile phone are preset When relation table, same model mobile phone 100 before factory can be taken out, runs model mobile phone support on each mobile phone respectively All applications, each application are separately operable 10 times, are taken out corresponding battery maximum output current value in 10 operations, are finally calculated Each out to apply when running on 100 mobile phones, the average value of corresponding battery maximum output current value is denoted as Imax.It determines The I of applicationmaxIt later, can according to the actual situation, and with ImaxFor the output current threshold according to setting application.For example, can be with By ImaxDirectly it is set as the output current threshold of application, it can also be by ImaxN times be set as application output current threshold.Its In, n is close to 1 real number, such as 1.2.It is reflected finally, one group will be formed with output current threshold using corresponding attribute information It penetrates.
It should be noted that in the actual use of electronic equipment, it may appear that multiple the case where applying while running, because This, in the attribute and output electric current mapping table of application, when can also include multiple applications while run, multiple application categories Property combination with output electric current mapping relations.Multiple applications while output current threshold when running equally can be according to above-mentioned Method determines.Meanwhile in actual use, the program that electronic equipment is run simultaneously is always limited several, and some programs The case where being not in while running.Therefore, all possible application combination can be determined by the method for exhaustion When, corresponding output current threshold, and then determine the attribute and output electric current mapping table of application.
It is understood that in actual use, same application corresponding output electric current in front stage operation, with its backstage Corresponding output electric current is usually different when operation.Therefore, it in a kind of possible way of realization of the embodiment of the present application, presets Operation application attribute and output electric current mapping table, can also include that same application or identical application are combined, preceding Platform runs output current threshold mapping relations corresponding with running background.
It should be noted that can be answered similar in the attribute and output electric current mapping table of default operation application Output current threshold is set as identical value.For example, the attribute information of wechat, QQ client is confirmed as " Instant Messenger News ", then can operation application attribute and output electric current mapping table in, preset " instant messaging " attribute with it is defeated The mapping relations of electric current out.It, can be according to " instant messaging " when searching wechat and the corresponding output current threshold of QQ client Attribute is searched in mapping table.
According to the method that above-described embodiment proposes, the attribute and output electric current mapping relations of preset operation application are determined After table, so that it may according to currently running application attribute, the current output current threshold of electronic equipment is found out in relation table.
It should be noted that in a kind of possible way of realization of the embodiment of the present application, the attribute of preset operation application It can be solidificated in the storage unit of electronic equipment with output electric current mapping table.
Further, in actual use, electronic equipment, can be in real time according to currently running application attribute, and determination is worked as Preceding cell output current threshold value, alternatively, the condition of triggering detection of electrical leakage can also be preset in the electronic device.For example, in electricity The detection when application that sub- equipment is currently running changes, or the detection time interval that setting is fixed.Therefore, in the present embodiment In a kind of possible way of realization, before above-mentioned steps 101, can also include:
Determine that the attribute of currently running application in the electronic equipment changes.
In actual use, currently running application changes in electronic equipment, the current output current value of battery It can change.When therefore, it is necessary to detect that the attribute of current operation application changes in electronic equipment, triggering electric leakage inspection It surveys, user is allow to understand electronic equipment in time with the presence or absence of leak current fault.
Alternatively,
Determine current time and it is the last at the time of detect battery actual output current in the electronic equipment between when Between be spaced, be greater than time threshold.
In actual use, the variation of the currently running application attribute of electronic equipment is usually relatively more frequent, if application every time Attribute change and all trigger detection of electrical leakage, be likely to result in and occupy the more situation of electronic equipment memory, influence its other party of user The usage experience in face.Therefore, the time threshold for carrying out detection of electrical leakage can be preset in the electronic device, when electronic equipment detects When the time interval of the last detection of electrical leakage of current time distance is greater than the time threshold of setting, detection of electrical leakage is just triggered.For example, It sets time threshold to 24 hours, then electronic equipment so can both make the detection of electrical leakage of progress in every 24 hours User can understand in time the drain conditions of electronic equipment, and can guarantee the usage experience of user usually.
Alternatively,
It determines that the electronic equipment is currently at and puts out screen state.
When electronic equipment, which is in, puts out screen state, user is not usually using electronic equipment, or answers running background is some With.Therefore detection of electrical leakage is triggered when putting out screen state, will not influence the normal use of user.
Alternatively,
Get power-on instruction.
In electronic equipment booting, detection of electrical leakage is triggered, electronic equipment is equivalent to before each formal use, all carries out Once " health examination ".If leak current fault occurs, warning information can be issued before user begins to use, and improved user and used Safety.
In actual use, the one or more in above-mentioned condition can be selected as electronic equipment according to the actual situation The condition of detection of electrical leakage is triggered, the present embodiment does not limit this.And the testing conditions in above-described embodiment, it is only schematically to say It is bright, it can not be as the limitation for carrying out detection of electrical leakage scheme to the application.
Step 102, the current value of the currently practical output of battery in the electronic equipment is detected.
Wherein, the method for detecting the current value of the currently practical output of battery in electronic equipment, including:It is serially connected in by detection The voltage value at the resistance both ends in electronic equipment, battery output loop, determines the current value of the currently practical output of battery.
It should be noted that being serially connected in the resistance in electric device battery circuit, refer to a kind of resistance of low resistance, it can To guarantee the accuracy of electricity in electronic equipment use process.It is all usually serially connected with the resistance in the cell circuit of electronic equipment, Therefore, in the embodiment of the present application, it can use the currently practical output current value of the resistance detection battery.Specific method is, The voltage value at the resistance both ends is detected first, then determines that battery is current according to the formula of loop current and voltage, resistance value Actual output current value.I.e. the voltage value at the currently practical output current value of battery=be serially connected in resistance both ends in cell circuit/ The resistance value of the resistance.
Step 103, judge whether the current value of the reality output is greater than the output current threshold, if so, executing Step 104;Otherwise, it returns and re-executes detection of electrical leakage process.
Step 104, determine that there are leak current faults for the electronic equipment.
It, can be actually defeated according to the current battery of the electronic equipment determined in a kind of possible way of realization of the application The size of current value and the current cell output current threshold value of electronic equipment out determines electronic equipment with the presence or absence of leak current fault. If the current value of present battery reality output is greater than present battery and exports current threshold, then it is determined that there is electric leakage event in electronic equipment Barrier, and issue the user with fault pre-alarming information.
Electronic equipment electrical leakage detecting method provided by the embodiments of the present application, can be according to currently running each in electronic equipment The attribute of application determines the output current threshold that battery is current in electronic equipment, and utilizes and be serially connected in electric device battery circuit In low resistance resistance, detect the current value of the currently practical output of battery in electronic equipment.If the current value of reality output is big In output current threshold, it is determined that there are leak current faults for electronic equipment.As a result, by according to the currently running application of electronic equipment Attribute, whether the current value of the currently practical output of battery is greater than corresponding current threshold in real-time detection electronic equipment, realizes Electronic equipment is measured in real time with the presence or absence of leak current fault, reduces electronic equipment the several of irreversible damage occurs Rate reduces after-sales service difficulty, protects the property safety and personal safety of user, improves user experience.
In a kind of possible way of realization of the application, in order to further increase the safety of user, it can also detect Electronic equipment sends warning information to user, to remind user's on-call maintenance equipment there are when leak current fault.Alternatively, detecting Electronic equipment can also accordingly control electronic equipment according to leakage current size there are when leak current fault out, to avoid The generation of dangerous situation.
Below with reference to Fig. 2, electronic equipment electrical leakage detecting method provided by the embodiments of the present application is further described.
Fig. 2 is the flow diagram of another kind electronic equipment electrical leakage detecting method provided by the embodiment of the present application.
As shown in Fig. 2, the electronic equipment electrical leakage detecting method, includes the following steps:
Step 201, judge current time and it is the last detect battery actual output current in the electronic equipment when Time interval between quarter, if be greater than time threshold, if so, thening follow the steps 202, otherwise, return re-executes detection of electrical leakage Process.
It should be noted that can be preset in the electronic device in a kind of possible way of realization of the embodiment of the present application Carry out the time threshold of detection of electrical leakage, the trigger condition as detection of electrical leakage.When electronic equipment detects current time apart from upper When the time interval of detection of electrical leakage is greater than the time threshold of setting, detection of electrical leakage is just triggered.
Step 202, according to the attribute respectively applied currently running in electronic equipment, determine that battery is worked as in the electronic equipment Preceding output current threshold, and detect the current value of the currently practical output of battery in the electronic equipment.
The specific implementation process and principle of above-mentioned steps 202, are referred to the detailed description of above-described embodiment, herein no longer It repeats.
Step 203, judge whether the current value of the reality output is greater than the output current threshold, if so, executing Step 204;Otherwise, 201 are returned to step.
Step 204, judge whether the difference between the current value of the reality output and the output current threshold is greater than peace Otherwise full threshold value, executes step 205 if so, thening follow the steps 206.
Wherein, when the current value of reality output be less than the output current threshold when, illustrate electronic equipment there is currently no Leak current fault can judge whether to need to continue detection of electrical leakage process with return step 201.
Wherein, secure threshold can be according to the actual situation according to determining with the current output current threshold of electronic equipment. For example, secure threshold to be set as to 0.5 times that currently exports current threshold.
In a kind of possible way of realization of the present embodiment, when the current value of reality output is greater than output current threshold, It can also determine actual output current value and export the difference of current threshold.It if difference is excessive, that is, is more than secure threshold, it is determined that Electronic equipment leak current fault is serious, and there are biggish security risks, needs to turn off the battery output of electronic equipment, protects user's Property and personal safety.If the difference of actual output current value and output current threshold, is not above secure threshold, it is determined that electricity There are leak current faults for sub- equipment, but not serious, use at this time to avoid influencing user, and leakage pre-alarm letter can be exported to user Breath reminds user's on-call maintenance.
Step 205, it determines that there are leak current faults for the electronic equipment, and exports leakage pre-alarm information.
Wherein, leakage pre-alarm information may include at least one of following information:Repair location information, leakage current are big Small, currently running application attribute.
It may include the position of at least one repair location and corresponding with user current location in repair location information Distance etc., so that the time that user oneself finds repair location is saved, on-call maintenance electronic equipment.The size of leakage current can be with The severity for reflecting the current leak current fault of electronic equipment, user can provide information to maintenance personal when maintenance, for maintenance Personnel provide reference.Include currently running application attribute information in leakage pre-alarm information, may remind the user that in maintenance Before, it tries not to enable these applications, in order to avoid occurring drain conditions again, causes unnecessary loss.
In a kind of possible way of realization, electronic equipment can also be being determined there are after leak current fault, to corresponding clothes Device of being engaged in sends electric leakage feedback message, such as by the model of the electronic equipment, current leakage current, currently running application category Property etc. feeds back to server, to allow the electronic equipment producer according to the electric leakage feedback information, in time to leak current fault into There is further safety problem etc. to avoid the electronic equipment of same model in row detection and early warning etc..
Step 206, the output of battery in the electronic equipment is turned off.
It should be noted that when the difference of actual output current value and output current threshold is more than secure threshold, explanation Current leak current fault is serious, at this point, to avoid influencing user security, or causes irreversible damage to electronic equipment, can be with Directly turn off the battery output of electronic equipment.
In actual use, when detection is out of order, user is possible to be currently running the application for needing to save operation data, than As user is editing important documents.Directly the output of shutdown battery may cause user data loss, therefore, in above-mentioned steps Before 206, following operation can also be performed:
The operation data respectively applied currently running in electronic equipment is stored, and is sent out to electronic equipment owning user Send shutdown reminder message.
Electronic equipment electrical leakage detecting method provided by the embodiments of the present application can be with when leak current fault occurs in electronic equipment Fault pre-alarming information is exported to user, and when electrical leakage quantity is excessive, automatically shut down the battery output of electronic equipment, and saved in advance The currently running operation data respectively applied.Hereby it is achieved that the electric leakage event in electronic equipment use process, to electronic equipment Barrier is measured in real time and controls, to reduce the probability that irreversible damage occurs for electronic equipment, reduces after-sales service Difficulty protects the property safety and personal safety of user, improves user experience.
In order to realize above-described embodiment, the application also proposes a kind of electronic equipment earth detector.
Fig. 3 is the structural schematic diagram of a kind of electronic equipment earth detector provided by the embodiments of the present application.
As shown in figure 3, the Service Source dispatching device 30, including:
Determining module 31, for determining the electronic equipment according to the attribute respectively applied currently running in electronic equipment The current output current threshold of middle battery;
Detection module 32, for detecting the current value of the currently practical output of battery in the electronic equipment;
Judgment module 33, for judging whether the current value of the reality output is greater than the output current threshold, if so, Then determine that there are leak current faults for the electronic equipment.
In actual use, electronic equipment earth detector provided by the embodiments of the present application can be configured in any In electronic equipment, such as mobile phone, tablet computer, to execute aforementioned electronic devices electrical leakage detecting method.
It should be noted that the aforementioned explanation to Fig. 1, electronic equipment electrical leakage detecting method embodiment shown in Fig. 2 It is also applied for the electronic equipment earth detector 30 of the embodiment, details are not described herein again.
The electronic equipment earth detector that the embodiment of the present application proposes, can be according to currently running each in electronic equipment The attribute of application determines the output current threshold that battery is current in electronic equipment, and utilizes and be serially connected in electric device battery circuit In low resistance resistance, detect the current value of the currently practical output of battery in electronic equipment.If the current value of reality output is big In output current threshold, it is determined that there are leak current faults for electronic equipment.As a result, by according to the currently running application of electronic equipment Attribute, whether the current value of the currently practical output of battery is greater than corresponding current threshold in real-time detection electronic equipment, realizes Electronic equipment is measured in real time with the presence or absence of leak current fault, reduces electronic equipment the several of irreversible damage occurs Rate reduces after-sales service difficulty, protects the property safety and personal safety of user, improves user experience.
In a kind of possible way of realization of the application, above-mentioned electronic equipment earth detector, determining module 31 has Body is used for:
Determine the currently running attribute respectively applied in electronic equipment;
By inquiring the attribute and output electric current mapping table of preset operation application, it is determining with it is described currently running The corresponding output current threshold of the attribute of application.
Further, in actual use, electronic equipment, can be in real time according to currently running application attribute, and determination is worked as Preceding cell output current threshold value, alternatively, the condition of triggering detection of electrical leakage can also be preset in the electronic device.For example, in electricity The detection when application that sub- equipment is currently running changes, or the detection time interval that setting is fixed.Therefore, in the present embodiment In a kind of possible way of realization, above-mentioned determining module 31 be can be also used for:
Determine that the attribute of currently running application in the electronic equipment changes;
Alternatively,
Determine current time and it is the last at the time of detect battery actual output current in the electronic equipment between when Between be spaced, be greater than time threshold;
Alternatively,
It determines that the electronic equipment is currently at and puts out screen state;
Alternatively,
Determination gets power-on instruction.
In a kind of possible way of realization of the application, above-mentioned electronic equipment earth detector, detection module 32, specifically For:
It is serially connected in the voltage value of electronic equipment, resistance both ends in battery output loop by detecting, determines that battery is current The current value of reality output.
In a kind of possible way of realization of the application, above-mentioned judgment module 33 is specifically used for:
Judge whether the current value of the reality output is greater than the output current threshold, if so, determining that the electronics is set Standby there are leak current faults, and export leakage pre-alarm information.
Wherein, leakage pre-alarm information may include at least one of following information:Repair location information, leakage current are big Small, currently running application attribute.
Further, in one possible implementation, above-mentioned electronic equipment earth detector, judgment module 33, It can be also used for:
Judge whether the difference between the current value of the reality output and the output current threshold is greater than secure threshold, if It is the output for turning off battery in the electronic equipment.
Further, in one possible implementation, above-mentioned judgment module 33, can be also used for:
In turning off the electronic equipment before the output of battery, respectively applied currently running in the electronic equipment Operation data is stored, and sends shutdown reminder message to the electronic equipment owning user.
The electronic equipment earth detector that the embodiment of the present application proposes, can be according to currently running each in electronic equipment The attribute of application determines the output current threshold that battery is current in electronic equipment, and utilizes and be serially connected in electric device battery circuit In low resistance resistance, detect the current value of the currently practical output of battery in electronic equipment.If the current value of reality output is big In output current threshold, it is determined that there are leak current faults for electronic equipment.As a result, by according to the currently running application of electronic equipment Attribute, whether the current value of the currently practical output of battery is greater than corresponding current threshold in real-time detection electronic equipment, realizes Electronic equipment is measured in real time with the presence or absence of leak current fault, reduces electronic equipment the several of irreversible damage occurs Rate reduces after-sales service difficulty, protects the property safety and personal safety of user, improves user experience.
In order to realize above-described embodiment, the application also proposes a kind of electronic equipment.
Fig. 4 is the structural schematic diagram of the electronic equipment of one embodiment of the invention.
As shown in figure 4, above-mentioned electronic equipment 400 includes:
Memory 410 and processor 420 connect the bus 430 of different components (including memory 410 and processor 420), Memory 410 is stored with computer program, and electronics described in the embodiment of the present invention is realized when processor 420 executes described program Equipment leakage detection method.
Bus 430 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Electronic equipment 400 typically comprises various electronic readable medium.These media can be it is any can be electric The usable medium that sub- equipment 400 accesses, including volatile and non-volatile media, moveable and immovable medium.
Memory 410 can also include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 440 and/or cache memory 450.Electronic equipment 400 may further include it is other it is removable/can not Mobile, volatile/non-volatile computer system storage medium.Only as an example, storage system 460 can be used for reading and writing not Movably, non-volatile magnetic media (Fig. 4 do not show, commonly referred to as " hard disk drive ").It although not shown in fig 4, can be with The disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") is provided, and non-volatile to moving The CD drive of CD (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driving Device can be connected by one or more data media interfaces with bus 430.Memory 410 may include at least one program Product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform the present invention The function of each embodiment.
Program/utility 480 with one group of (at least one) program module 470, can store in such as memory In 410, such program module 470 includes --- but being not limited to --- operating system, one or more application program, other It may include the realization of network environment in program module and program data, each of these examples or certain combination.Journey Sequence module 470 usually executes function and/or method in embodiment described in the invention.
Electronic equipment 400 can also be with one or more external equipments 490 (such as keyboard, sensing equipment, display 491 Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 400 communicate, and/or with make Any equipment (such as network interface card, the modem that the electronic equipment 400 can be communicated with one or more of the other calculating equipment Etc.) communication.This communication can be carried out by input/output (I/O) interface 492.Also, electronic equipment 400 can also lead to Cross network adapter 493 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, example Such as internet) communication.As shown, network adapter 493 is communicated by bus 430 with other modules of electronic equipment 400.It answers When understanding, although not shown in the drawings, other hardware and/or software module can be used in conjunction with electronic equipment 400, including but unlimited In:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and number According to backup storage system etc..
Program of the processor 420 by operation storage in store 410, thereby executing various function application and data Processing.
It should be noted that the implementation process and technical principle of the electronic equipment of the present embodiment are referring to aforementioned to first aspect The explanation of the electronic equipment electrical leakage detecting method of embodiment, details are not described herein again.
Electronic equipment provided by the embodiments of the present application can execute foregoing electronic equipment electrical leakage detecting method, root According to the attribute respectively applied currently running in electronic equipment, the output current threshold that battery is current in electronic equipment, and benefit are determined With the low resistance resistance being serially connected in electric device battery circuit, the electric current of the currently practical output of battery in electronic equipment is detected Value.If the current value of reality output is greater than output current threshold, it is determined that there are leak current faults for electronic equipment.Pass through root as a result, According to the attribute of the currently running application of electronic equipment, whether the current value of the currently practical output of battery in real-time detection electronic equipment It greater than corresponding current threshold, realizes and electronic equipment is measured in real time with the presence or absence of leak current fault, reduce electronics and set The probability of the raw irreversible damage of preparation, reduces after-sales service difficulty, protects the property safety and personal safety of user, change It has been apt to user experience.
In order to realize above-described embodiment, the application also proposes a kind of computer readable storage medium.
Wherein, the computer readable storage medium, is stored thereon with computer program, when which is executed by processor, To realize electronic equipment electrical leakage detecting method described in first aspect embodiment.
In a kind of optional way of realization, the present embodiment can be using any group of one or more computer-readable media It closes.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable to deposit Storage media for example may be-but not limited to-system, device or the device of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor Part, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes:Have The electrical connection of one or more conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be Any computer-readable medium other than computer readable storage medium, which can send, propagate or Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It is fully executed on consumer electronic devices, partly executes on consumer electronic devices, held as an independent software package Row, partially part executes in devices in remote electronic or completely in devices in remote electronic or service on consumer electronic devices It is executed on device.In the situation for being related to devices in remote electronic, devices in remote electronic can pass through the network of any kind --- packet It includes local area network (LAN) or wide area network (WAN)-is connected to consumer electronic devices, or, it may be connected to external electronic device (example It is such as connected using ISP by internet).
Computer readable storage medium provided by the embodiments of the present application can be leaked by executing the electronic equipment stored thereon Electric detection method determines the output that battery is current in electronic equipment according to the attribute respectively applied currently running in electronic equipment Current threshold, and using the low resistance resistance being serially connected in electric device battery circuit, detect that battery is current in electronic equipment The current value of reality output.If the current value of reality output is greater than output current threshold, it is determined that electronic equipment has electric leakage event Barrier.As a result, by the attribute according to the currently running application of electronic equipment, battery is currently practical defeated in real-time detection electronic equipment Whether current value out is greater than corresponding current threshold, realizes and is examined in real time to electronic equipment with the presence or absence of leak current fault It surveys, reduces the probability that irreversible damage occurs for electronic equipment, reduce after-sales service difficulty, the property of user is protected to pacify Complete and personal safety, improves user experience.
Those skilled in the art will readily occur to of the invention its after considering specification and the invention invented here of practice Its embodiment.The present invention is directed to cover any variations, uses, or adaptations of the invention, these modifications, purposes or The common knowledge in the art that person's adaptive change follows general principle of the invention and do not invent including the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are wanted by right It asks and points out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (11)

1. a kind of electronic equipment electrical leakage detecting method, which is characterized in that including:
According to the attribute respectively applied currently running in electronic equipment, the output electric current that battery is current in the electronic equipment is determined Threshold value;
Detect the current value of the currently practical output of battery in the electronic equipment;
If the current value of the reality output is greater than the output current threshold, it is determined that the electronic equipment has electric leakage event Barrier.
2. the method as described in claim 1, which is characterized in that described according to the category respectively applied currently running in electronic equipment Property, determine the output current threshold that battery is current in the electronic equipment, including:
By inquiring the preset attribute for running application and output electric current mapping table, the determining and currently running application The corresponding output current threshold of attribute;
Wherein, the preset attribute for running application and output electric current mapping table, for according to the N number of and electronic equipment What the test result of the identical other electronic equipments of attribute determined, N is the positive integer greater than 1.
3. the method as described in claim 1, which is characterized in that the currently practical output of battery in the detection electronic equipment Current value, including:
It is serially connected in the voltage value of the electronic equipment, resistance both ends in battery output loop by detecting, determines the battery The current value of currently practical output.
4. the method as described in claim 1, which is characterized in that the determination electronic equipment there are after leak current fault, Further include:
Export leakage pre-alarm message.
5. method as claimed in claim 4, which is characterized in that in the leakage pre-alarm message include following information at least One:Repair location information, leakage current, currently running application attribute.
6. method a method as claimed in any one of claims 1 to 5, which is characterized in that battery is currently real in the detection electronic equipment After the current value of border output, further include:
If the difference between the current value of the reality output and the output current threshold is greater than secure threshold, the electricity is turned off The output of battery in sub- equipment.
7. method as claimed in claim 6, which is characterized in that in the shutdown electronic equipment before the output of battery, Further include:
The operation data respectively applied currently running in the electronic equipment is stored, and is used to belonging to the electronic equipment Family sends shutdown reminder message.
8. method a method as claimed in any one of claims 1 to 5, which is characterized in that described respectively to be answered according to currently running in electronic equipment Attribute further includes before determining the output current threshold that battery is current in the electronic equipment:
Determine that the attribute of currently running application in the electronic equipment changes;
Alternatively,
Between time between determining at the time of current time and the last time detect battery actual output current in the electronic equipment Every greater than time threshold;
Alternatively,
It determines that the electronic equipment is currently at and puts out screen state;
Alternatively,
Get power-on instruction.
9. a kind of electronic equipment earth detector, which is characterized in that including:
Determining module, for determining battery in the electronic equipment according to the attribute respectively applied currently running in electronic equipment Current output current threshold;
Detection module, for detecting the current value of the currently practical output of battery in the electronic equipment;
Judgment module, for judging whether the current value of the reality output is greater than the output current threshold, if so, determining There are leak current faults for the electronic equipment.
10. a kind of electronic equipment, which is characterized in that including:Memory, processor and storage are on a memory and can be in processor The program of upper operation, which is characterized in that the processor is realized when executing described program as described in any one of claims 1-8 Electronic equipment electrical leakage detecting method.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is processed Such as electronic equipment electrical leakage detecting method described in any one of claims 1-8 is realized when device executes.
CN201810411297.9A 2018-05-02 2018-05-02 Electronic equipment leakage detection method and device, electronic equipment and storage medium Expired - Fee Related CN108872762B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810411297.9A CN108872762B (en) 2018-05-02 2018-05-02 Electronic equipment leakage detection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810411297.9A CN108872762B (en) 2018-05-02 2018-05-02 Electronic equipment leakage detection method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108872762A true CN108872762A (en) 2018-11-23
CN108872762B CN108872762B (en) 2021-02-02

Family

ID=64326912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810411297.9A Expired - Fee Related CN108872762B (en) 2018-05-02 2018-05-02 Electronic equipment leakage detection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108872762B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109961615A (en) * 2019-02-27 2019-07-02 邱晖 A kind of anti-leak control circuit
CN111435557A (en) * 2019-01-15 2020-07-21 卡特彼勒公司 Fault detection device for detecting problems with machine components
CN112285593A (en) * 2020-10-16 2021-01-29 合肥联宝信息技术有限公司 Testing method, device and system based on load machine
CN112907913A (en) * 2021-02-09 2021-06-04 北京小米移动软件有限公司 Detection method, device and equipment of electronic equipment and storage medium
CN113030781A (en) * 2021-02-26 2021-06-25 维沃移动通信有限公司 Electric leakage detection method and electronic equipment
CN113542079A (en) * 2021-06-17 2021-10-22 青岛经济技术开发区海尔热水器有限公司 Method and device for controlling electricity-proof wall equipment, electronic equipment and storage medium
WO2023160122A1 (en) * 2022-02-22 2023-08-31 荣耀终端有限公司 Electric leakage detection method for electronic device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147449A (en) * 2010-02-08 2011-08-10 上海驰源新材料科技有限公司 Ferric phosphate lithium battery detection processing method and device
CN105717409A (en) * 2016-01-20 2016-06-29 广东欧珀移动通信有限公司 Electronic device electric leakage detection method and electronic device electric leakage detection system
CN106597298A (en) * 2016-11-18 2017-04-26 努比亚技术有限公司 Battery cell electric leakage determination device and method
CN107515375A (en) * 2017-08-30 2017-12-26 北京新能源汽车股份有限公司 Electrokinetic cell electric current detecting method, device and electric automobile
CN207074244U (en) * 2017-08-07 2018-03-06 郑州云海信息技术有限公司 Cabinet current leakage detection system
CN109462260A (en) * 2017-09-06 2019-03-12 宁德新能源科技有限公司 A kind of charging method, charging equipment and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147449A (en) * 2010-02-08 2011-08-10 上海驰源新材料科技有限公司 Ferric phosphate lithium battery detection processing method and device
CN105717409A (en) * 2016-01-20 2016-06-29 广东欧珀移动通信有限公司 Electronic device electric leakage detection method and electronic device electric leakage detection system
CN106597298A (en) * 2016-11-18 2017-04-26 努比亚技术有限公司 Battery cell electric leakage determination device and method
CN207074244U (en) * 2017-08-07 2018-03-06 郑州云海信息技术有限公司 Cabinet current leakage detection system
CN107515375A (en) * 2017-08-30 2017-12-26 北京新能源汽车股份有限公司 Electrokinetic cell electric current detecting method, device and electric automobile
CN109462260A (en) * 2017-09-06 2019-03-12 宁德新能源科技有限公司 A kind of charging method, charging equipment and electronic equipment

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111435557A (en) * 2019-01-15 2020-07-21 卡特彼勒公司 Fault detection device for detecting problems with machine components
CN109961615A (en) * 2019-02-27 2019-07-02 邱晖 A kind of anti-leak control circuit
CN112285593A (en) * 2020-10-16 2021-01-29 合肥联宝信息技术有限公司 Testing method, device and system based on load machine
CN112285593B (en) * 2020-10-16 2022-06-21 合肥联宝信息技术有限公司 Testing method, device and system based on load machine
CN112907913A (en) * 2021-02-09 2021-06-04 北京小米移动软件有限公司 Detection method, device and equipment of electronic equipment and storage medium
CN113030781A (en) * 2021-02-26 2021-06-25 维沃移动通信有限公司 Electric leakage detection method and electronic equipment
CN113542079A (en) * 2021-06-17 2021-10-22 青岛经济技术开发区海尔热水器有限公司 Method and device for controlling electricity-proof wall equipment, electronic equipment and storage medium
CN113542079B (en) * 2021-06-17 2023-06-16 青岛经济技术开发区海尔热水器有限公司 Method and device for controlling electricity-proof wall equipment, electronic equipment and storage medium
WO2023160122A1 (en) * 2022-02-22 2023-08-31 荣耀终端有限公司 Electric leakage detection method for electronic device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108872762B (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN108872762A (en) Electronic equipment electrical leakage detecting method, device, electronic equipment and storage medium
CN108055281A (en) Account method for detecting abnormality, device, server and storage medium
CN109558282B (en) PCIE link detection method, system, electronic equipment and storage medium
CN110362545A (en) Log monitoring method, device, terminal and computer readable storage medium
CN104898013A (en) Method and system for diagnosing circuit fault based on acoustical measurement
CN107766533A (en) Telephone traffic abnormal automatic testing method and system, storage medium, electronic equipment
CN103517304A (en) Method and device for obtaining safe state of mobile terminal
CN107231493A (en) Automatic alarm method and its device, storage medium, the electronic equipment of call center
CN108562806A (en) Method, apparatus, equipment and the storage medium of elevator traction machine performance whole detection
CN109920193A (en) A kind of electric disaster hidden-trouble intelligent detecting method, system, equipment and medium
CN111666563A (en) Method and device for verifying application running state
CN105260077A (en) Electronic device and detection method for capacitive touch screen of electronic device
CN114238330A (en) Data processing method and device, electronic equipment and storage medium
CN106021024A (en) Method for reminding response stopping of user terminal, and user terminal
CN105717409B (en) The electrical leakage detecting method and system of electronic equipment
CN109271009A (en) A kind of method, apparatus that control server backboard powers on and CPLD
CN106708705A (en) Terminal background process monitoring method and system
CN110502345A (en) A kind of overload protection method, device, computer equipment and storage medium
CN108845924A (en) Control response region display control method, electronic device and storage medium
CN109325851A (en) Methods of exhibiting, system, computer equipment and the readable storage medium storing program for executing of probability of cheating
CN113884943B (en) Leakage fault analysis method, device, equipment and medium
CN109948937B (en) Method, system, equipment and medium for detecting potential safety hazard of artificial intelligence self-learning
CN109510896A (en) Selection method, device, storage medium and the electronic equipment of proximity sensor
CN111599174B (en) Traffic index abnormity detection method and electronic equipment
US20130234699A1 (en) Power supply monitoring system and method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210202