CN105656156B - A kind of power down process method and apparatus - Google Patents

A kind of power down process method and apparatus Download PDF

Info

Publication number
CN105656156B
CN105656156B CN201610229194.1A CN201610229194A CN105656156B CN 105656156 B CN105656156 B CN 105656156B CN 201610229194 A CN201610229194 A CN 201610229194A CN 105656156 B CN105656156 B CN 105656156B
Authority
CN
China
Prior art keywords
terminal
contact
voltage value
voltage
earphone interface
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.)
Expired - Fee Related
Application number
CN201610229194.1A
Other languages
Chinese (zh)
Other versions
CN105656156A (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 CN201610229194.1A priority Critical patent/CN105656156B/en
Publication of CN105656156A publication Critical patent/CN105656156A/en
Application granted granted Critical
Publication of CN105656156B publication Critical patent/CN105656156B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/0031Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using battery or load disconnect circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H7/00Emergency protective circuit arrangements specially adapted for specific types of electric machines or apparatus or for sectionalised protection of cable or line systems, and effecting automatic switching in the event of an undesired change from normal working conditions
    • H02H7/20Emergency protective circuit arrangements specially adapted for specific types of electric machines or apparatus or for sectionalised protection of cable or line systems, and effecting automatic switching in the event of an undesired change from normal working conditions for electronic equipment

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a kind of power down process method and apparatus;Including:The first voltage value between the first contact and the second contact in terminal earphone interface is obtained, judges first voltage value whether within predetermined voltage range, if so, then carrying out power down process to terminal;The program make use of the characteristic that the water inlet of terminal earphone interface can cause the voltage in earphone interface between contact to change; power down process is carried out to terminal by the magnitude of voltage between contact in test earphone interface automatically; to cause terminal to be automatically powered off after water inlet; any power operation is carried out without user; compared with prior art; power-off speed and efficiency are improved, and then terminal can be protected in time.

Description

A kind of power down process method and apparatus
Technical field
The present invention relates to field of terminal technology, and in particular to a kind of power down process method and apparatus.
Background technology
With the fast development of terminal device, the terminal device such as mobile phone, tablet personal computer is used widely.User can answer The various activities such as communicated with these terminal devices, entertained.
And with the popularization of mobile phone, the situation that waterlogged damage occurs in mobile phone is more and more, the existing waterproof mobile phone of in the market Waterproof mainly use mechanical waterproof, that is, increase the seal degree of terminal, made using the material with high-quality water resistance outer Shell, but manufacturing cost is very high, complex process, and what user generally used on the market is all non-waterproof mobile phone.
In actual applications, there is electronic failure once intaking may result in mobile phone, and flower shields or cannot be started up, or even can It can be exploded because of short circuit, especially battery built-in mobile phone, due to battery can not be dismantled in time, it is easier to mobile phone circuit occur Plate waterlogged damage, and circuit board waterlogged damage is often difficult to repair, and can only change, cost is high, and user satisfaction is low;Therefore, it is Terminal is protected, it is necessary in time be powered off after terminal water inlet, the power-down mode of existing terminal water inlet includes:Terminal is intake User is received afterwards by the cut-offing instruction triggered to terminal operation, then, power down process is carried out according to the cut-offing instruction.
From the foregoing, it will be observed that the power-down mode of existing terminal water inlet relies primarily on user's operation, accordingly, there exist power-off speed slowly and The low technical problem of efficiency.
The content of the invention
The embodiment of the present invention provides a kind of power down process method and apparatus, can solve the power-down mode of existing terminal water inlet In the presence of the power-off technical problem that speed is slow, efficiency is low.
The embodiment of the present invention provides a kind of power down process method, including:
Obtain the first voltage value between the first contact and the second contact in terminal earphone interface;
Judge the first voltage value whether within predetermined voltage range;
If so, power down process then is carried out to the terminal.
Further, after judging the first voltage value within predetermined voltage range, the terminal is powered off Before processing, methods described also includes:
Obtain the second voltage value between the first contact and the 3rd contact in the terminal earphone interface;
Judge the second voltage value whether within predetermined voltage range;
If so, then perform the step of power down process is carried out to the terminal.
Further, after judging the second voltage value within predetermined voltage range, the terminal is powered off Before processing, methods described also includes:
Obtain the third voltage value between the first contact and the 4th contact in the terminal earphone interface;
Judge the third voltage value whether within predetermined voltage range;
If so, then perform the step of power down process is carried out to the terminal.
Further, the first voltage value between the first contact and the second contact in the acquisition terminal earphone interface Before step, methods described also includes:
Obtain the current acceleration of the terminal;
Determine whether the terminal is currently according to the acceleration and fall state;
If so, then perform the step for obtaining the first voltage value in terminal earphone interface between the first contact and the second contact Suddenly.
Further, it is described according to the acceleration determine the terminal currently whether in fall state the step of it is specific Including:
Judge whether the acceleration is more than or equal to acceleration of gravity;
If, it is determined that the terminal current state is to fall state.
The embodiment of the present invention additionally provides a kind of power down process device, including:First acquisition module, the first judge module with And power-off modular;
First acquisition module, for obtaining the first electricity in terminal earphone interface between the first contact and the second contact Pressure value;
First judge module, for judging the first voltage value whether within predetermined voltage range;
The power-off modular, for when first judge module is judged as YES, power down process to be carried out to the terminal.
Further, power down process device provided in an embodiment of the present invention also includes:Second acquisition module and second judges Module;
Second acquisition module, for judging the first voltage value in predeterminated voltage model in first judge module After within enclosing, before the power-off modular carries out power down process to the terminal, obtain in the terminal earphone interface first and touch Second voltage value between point and the 3rd contact;
Second judge module, for judging the second voltage value whether within predetermined voltage range;
The power-off modular, for when second judge module is judged as YES, power down process to be carried out to the terminal.
Further, power down process device provided in an embodiment of the present invention also includes:3rd acquisition module and the 3rd judges Module;
3rd acquisition module, for judging the second voltage value in predeterminated voltage model in second judge module After within enclosing, before the power-off modular carries out power down process to the terminal, obtain in the terminal earphone interface first and touch Third voltage value between point and the 4th contact;
3rd judge module, for judging the third voltage value whether within predetermined voltage range;
The power-off modular, for when the 3rd judge module is judged as YES, power down process to be carried out to the terminal.
Further, power down process device provided in an embodiment of the present invention also includes:4th acquisition module and the 4th judges Module;
4th acquisition module, for the first contact and the in obtaining terminal earphone interface in first acquisition module Before first voltage value between two contacts, the current acceleration of the terminal is obtained;
4th judge module, fall state for determining whether the terminal is currently according to the acceleration;
First acquisition module, for when the 4th judge module is judged as YES, obtaining in terminal earphone interface First voltage value between first contact and the second contact.
Further, the 4th judge module, specifically for judging whether the acceleration adds more than or equal to gravity Speed, if, it is determined that the terminal current state is to fall state.
The invention provides a kind of power down process method, specifically include:Obtain the first contact and the in terminal earphone interface First voltage value between two contacts, first voltage value is judged whether within predetermined voltage range, if so, then being carried out to terminal Power down process;The program make use of the spy that the water inlet of terminal earphone interface can cause the voltage in earphone interface between contact to change Property, power down process is carried out to terminal by the magnitude of voltage between contact in test earphone interface automatically, to cause terminal entering It can be automatically powered off after water, any power operation is carried out without user, compared with prior art, power-off speed and effect can be improved Rate, and then terminal can be protected in time.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those skilled in the art, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 is a kind of schematic flow sheet for power down process method that the embodiment of the present invention one provides;
Fig. 2 a are the structural representation for the headset plug that the embodiment of the present invention one provides;
Fig. 2 b are the structural representation for the terminal earphone interface that the embodiment of the present invention one provides;
Fig. 3 is a kind of schematic flow sheet for power down process method that the embodiment of the present invention two provides;
Fig. 4 is a kind of structural representation for power down process device that the embodiment of the present invention three provides;
Fig. 5 is the structural representation for second of power down process device that the embodiment of the present invention three provides;
Fig. 6 is the structural representation for the third power down process device that the embodiment of the present invention three provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
The embodiment of the present invention provides a kind of power down process method and apparatus.It will be described in detail respectively below.
Embodiment one,
The present embodiment will be described from the angle of power down process device, and the power down process device can be integrated in terminal Etc. in equipment, the terminal can be mobile internet device (such as smart mobile phone, tablet personal computer), Intelligent worn device (such as intelligence Wrist-watch) etc. each class of electronic devices.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow sheet for power down process method that the embodiment of the present invention one provides.This reality Applying the processing method of example includes:
Step S101, obtain the first voltage value between the first contact and the second contact in terminal earphone interface.
Terminal of the embodiment of the present invention illustrates by taking mobile phone as an example, and after mobile phone is fallen in water, the thing necessarily occurred is Interior of mobile phone is intake, once water inlet, exposed to the electronic devices of PCB (Printed Circuit Board, printed circuit board) outside Or short circuit may occur in connecting line, directly burn device.From the point of view of current smart mobile phone design, it can be seen that shell is with The design of frame is very accurate, and its sealing is very good, and the battery backshell of part smart mobile phone has been carried out integration. Theoretical according to pressure power so after mobile phone is fallen in water, water will enter from the place of mobile phone breach, from the structure design of mobile phone From the point of view of, after mobile phone is overboard, water enters the very first time from earphone interface, and certainly will be caused after intaking short between associated components Road.
So in the embodiment of the present invention, using voltage detection mechanism is set in the earphone interface of terminal, for detecting electricity Pressure value carries out waterproofing protection, wherein, the voltage monitoring mechanism can also have various ways, such as be set in the earphone interface of terminal Voltage sensor is put, for carrying out voltage detecting, so as to judge whether terminal intakes.
Earphone interface in the embodiment of the present invention is directed to OMTP, and (Open Mobile Terminal Platform, are opened Put mobile-terminal platform tissue) earphone, OMTP earphones are in order to which one kind that unified mobile device interface standard is formulated contains microphone The standard of earphone, is the most common earphone arrived on current mobile phone, and the national standard earphone used in China, as shown in Figure 2 a, By taking 3.5 millimeters of headset plugs of national standard as an example, this plug is divided into 4 grades, is respectively:201 earth wire contacts, 202 microphones Contact, 203 R channel contacts and 204 L channel contacts;Fig. 2 b are that the earphone interface of terminal corresponding with above-mentioned earphone is illustrated Figure, including:205 earth wire contacts, 206 microphone contacts, 207 R channel contacts and 208 L channel contacts.
In specific implementation process, the first voltage in detection terminal earphone interface between the first contact and the second contact Value, wherein above-mentioned first contact and the second contact can be earthing contact, microphone contact, L channel contact and R channel contact In any two, it is contemplated that interface outermost is that earthing contact and microphone touch respectively in the earphone interface of national standard Point, so earthing contact and microphone contact can be flooded first after earphone interface water inlet, above-mentioned first in optimum embodiment Contact can be earthing contact, the second contact can be in microphone contact, namely detection terminal earphone interface earthing contact with The first voltage value of microphone contact, for example pass through earthing contact and Mike in the voltage sensor test earphone interface in terminal The magnitude of voltage of wind contact.
Specifically, the specific stream of step " obtaining the magnitude of voltage between the first contact and the second contact in terminal earphone interface " Journey can include:The magnitude of voltage in earphone interface between the first contact and the second contact is obtained every preset time period, such as, can To set a timer, timer is set to obtain request every 2s generation magnitudes of voltage, now, terminal is obtained receiving magnitude of voltage Request can be obtained after asking according to the magnitude of voltage by taking extracts currently from data storage areas corresponding to the voltage sensor Magnitude of voltage in earphone interface between the first contact and the second contact, namely step " obtain the first contact in terminal earphone interface With the magnitude of voltage between the second contact " it can specifically include:
Obtain and ask every preset time period receiving voltage value;
First voltage between the first contact of acquisition request terminal earphone interface and the second contact is obtained according to the magnitude of voltage Value.
Wherein, time interval can be set according to the actual requirements, such as, can set constant duration as 0.01s, 0.02s etc..In order to which terminal power can be saved, the time interval can be set as to bigger value, such as 1s, 2s etc., The present invention is not especially limited to this.
Step S102, above-mentioned first voltage value is judged whether within predetermined voltage range, if so, then performing step S103, if it is not, then return to step S101.
Wherein, the predetermined voltage range can be set according to the actual requirements, in embodiments of the present invention, the default electricity Press scope be terminal it is overboard after, the calibration mark of the first voltage value between the first contact and the second contact in terminal earphone interface Quasi- value, therefore the test of correlation can be carried out according to the actual requirements to obtain the standard value, because terminal is overboard under theoretical case After cause short circuit, the first voltage value between the first contact and the second contact in earphone interface can be changed into 0, but in actual conditions Under may due to some objective factors can reason produce a little error, so the calibration standard value can also by a higher limit with The section that lower limit is formed represents, namely predetermined voltage range.
During specific implementation, if above-mentioned first voltage value is judged within predetermined voltage range, namely now ear Intake in machine interface, in order to improve the accuracy for judging that terminal is overboard state, preset time threshold can be set, accordingly , when judging that above-mentioned first voltage value is within predetermined voltage range, determine whether that the earphone interface water inlet duration is No to meet time threshold, the wherein duration of earphone interface water inlet can be according to the duration of the first voltage value come really It is fixed, if the duration of the first voltage value is more than preset time, judge that the duration of earphone interface water inlet meets time threshold Value, it is currently into water state to determine terminal;If the duration of the first voltage value is not more than preset time, judge that earphone connects The duration of mouthful water inlet is unsatisfactory for time threshold, and it is not currently into water state to determine terminal, namely is judging that above-mentioned first is electric After pressure value is within the preset range, this method also includes:
Judge whether duration of the above-mentioned first voltage value in predetermined voltage range meets preset time;
If, it is determined that terminal is currently into water state, further performs step S103, if not, it is determined that terminal is current It is not into water state, return to step S101, continues to obtain first in terminal earphone interface between the first contact and the second contact Magnitude of voltage.
Step S103, power down process is carried out to terminal.
Specifically, after judging above-mentioned first voltage value within predetermined voltage range, cut-offing instruction can be generated, this is disconnected Electricity instructs the power supply for cutting off terminal, such as when judging the voltage in earphone interface of mobile phone between the first contact and the second contact Value generates interrupt signal and sent to ON-OFF control circuit, the ON-OFF control circuit is then according to interruption in predetermined voltage range Power supply circuit between signal cut end cell and mainboard, make terminal can not normal work, hence into off-mode.
Alternatively, the present invention needs the operational order that can first allow terminal to receive user before implementation, opens waterproof detection Function.Such as the operational order of user is received by being arranged on the switch of terminal, waterproof detection function is opened, namely start voltage Sensor is measured in real time.
From the foregoing, it will be observed that power down process method provided in an embodiment of the present invention is using the first contact in acquisition terminal earphone interface First voltage value between the second contact, first voltage value is judged whether within predetermined voltage range, if so, then to terminal Carry out power down process;The program make use of the water inlet of terminal earphone interface that the voltage in earphone interface between contact can be caused to change Characteristic, by the magnitude of voltage between contact in test earphone interface come automatically to terminal carry out power down process, to cause terminal It can be automatically powered off after water inlet, carry out any power operation without user, compared with prior art, power-off speed can be improved And efficiency, and then terminal can be protected in time, the loss of user is avoided, lifts Consumer's Experience.
Embodiment two,
The present embodiment will be described further, refer on the basis of embodiment one to power down process method of the present invention Fig. 3, including:
Step S201, obtain the first voltage value of the first contact and the second contact in terminal earphone interface.
Such as by taking mobile phone as an example, can be obtained by voltage sensor built in mobile phone in earphone interface earthing contact with The magnitude of voltage of microphone contact.
Step S202, above-mentioned first voltage value is judged whether within predetermined voltage range, if so, then performing step S203, if it is not, then return to step S201.
Such as if mobile phone judges above-mentioned first voltage value in predetermined voltage range, it is determined that in earphone interface of mobile phone Earthing contact and microphone contact short, further perform step S203, if above-mentioned first voltage value is determined not in predeterminated voltage In the range of, it is determined that mobile phone is not currently into water state, and return to step S201 continues to obtain the first contact in terminal earphone interface First voltage value between the second contact.
Step S203, the second voltage value between the first contact and the 3rd contact in terminal earphone interface is obtained, wherein, should 3rd contact can be located at the top or lower section of the second contact, and suitable in view of contact of the water with contact after earpiece holes water inlet Sequence, it is optimal that the 3rd contact, which is located at below the second contact, such as, if the first contact is earthing contact, the second contact is Mike Wind contact, the 3rd contact can be R channel contact or L channel contact, be connect in above-mentioned second voltage value namely earphone interface Magnitude of voltage between ground contact and R channel contact or L channel contact.
Step S204, above-mentioned second voltage value is judged whether within predetermined voltage range, if so, then performing step S205, if it is not, then return to step S201.
Step S205, the third voltage value between the first contact and the 4th contact in terminal earphone interface is obtained, wherein, should 4th contact can be located at the lower section or top of the 3rd contact, and suitable in view of contact of the water with contact after earpiece holes water inlet Sequence, it is optimal that the 3rd contact, which is located at below the second contact, such as, if the first contact is earthing contact, the second contact is Mike Wind contact, the 3rd contact are R channel contact, then the 4th contact is L channel contact, the third voltage value namely earphone interface Middle earthing contact and the magnitude of voltage of L channel contact.
Step S206, above-mentioned third voltage value is judged whether within predetermined voltage range, if so, then performing step S207, if it is not, then return to step S201.
Therefore, above-mentioned steps added on the basis of embodiment one judge second voltage value and third voltage value whether Step in predetermined voltage range, the accuracy for judging whether terminal intakes can be increased, reduce due to erroneous judgement and power off Probability.
Step S207, power down process is carried out to terminal.
Such as when judging the third voltage value of earthing contact and L channel contact in earphone interface of mobile phone in predeterminated voltage model In enclosing, the power supply circuit between cell phone system cut-out end cell and mainboard, make mobile phone can not normal work, hence into shutdown State.
In specific implementation process, it is contemplated that because such scheme needs to obtain in earphone interface the first contact and the always First voltage value between two contacts, namely voltage sensor will be constantly in open mode, and combine power problemses and reality Border situation terminal need not carry out in fact and always the detection of voltage, therefore, first can be touched in terminal earphone interface is obtained Before first voltage value between point and the second contact, terminal is judged currently whether in state is fallen, if so, then opening voltage Testing mechanism.
That is, the first voltage value between the first contact and the second contact in obtaining terminal earphone interface the step of it Before, this method also includes:
Obtain the current acceleration of terminal;
Determine whether terminal is currently according to acceleration and fall state;
If so, then perform the step for obtaining the first voltage value in terminal earphone interface between the first contact and the second contact Suddenly.
Wherein, step " determine whether terminal is currently according to acceleration and fall state " can specifically include:
Judge whether above-mentioned acceleration is more than or equal to acceleration of gravity;
If, it is determined that terminal current state is to fall state.
Wherein, gravity acceleration g generally takes approximate test value 980cm/s2Or 9.8m/s2, it is contemplated that acceleration of gravity It can be changed according to objective factors such as height above sea level, dimension, atmospheric density, therefore only set a fixed value to make Terminal misjudgment, for example can compare 9.8m/s in the higher place of height above sea level, local acceleration of gravity2It is somewhat less than normal, therefore, can To set scope (such as 9.7m/s2—9.9m/s2), the value of current acceleration is judged whether among the scope, if so, Then determine that terminal is currently at and fall state, if not, it is determined that terminal, which is not currently in, falls state.
From the foregoing, it will be observed that the embodiment of the present invention obtains the current acceleration of terminal first, determine that terminal is current according to acceleration Whether in falling state, however, it is determined that terminal, which is currently at, falls state, then obtains in terminal earphone interface the first contact and the First voltage value between two contacts, first voltage value is judged whether within predetermined voltage range, if so, then obtaining terminal ear Second voltage value in machine interface between the first contact and the 3rd contact, and judge second voltage value whether in predetermined voltage range Within, if so, then obtaining the third voltage value in terminal earphone interface between the first contact and the 4th contact, and judge the 3rd electricity Whether pressure value is within predetermined voltage range, if so, then carrying out power down process to terminal;The program make use of terminal earphone interface Water inlet can cause the characteristic that the voltage in earphone interface between contact changes, and pass through the electricity between contact in test earphone interface Pressure value to carry out power down process to terminal automatically, to cause terminal to be automatically powered off after water inlet, is carried out without user any Power operation, power-off speed and efficiency can be improved, and by judging first voltage value, second voltage value and the 3rd electricity successively Pressure value whether the step in predetermined voltage range, the accuracy for judging whether terminal intakes can be increased.
Embodiment three,
In order to preferably implement above method, the embodiment of the present invention also provides a kind of power down process device, the power down process Device can integrate in the terminal, and the terminal can be mobile internet device (such as smart mobile phone, tablet personal computer), intelligence wearing Equipment (such as intelligent watch) each class of electronic devices.As shown in figure 4, the power down process device can include:First acquisition module 301st, the first judge module 302 and power-off modular 303;Wherein:
First acquisition module 301, for obtaining in terminal earphone interface first between the first contact and the second contact Magnitude of voltage;
First judge module 302, for judging first voltage value whether within predetermined voltage range;
The power-off modular 303, for when the first judge module 302 is judged as YES, power down process to be carried out to terminal.
Preferably, as shown in figure 5, the power down process device that this programme provides can also include:Second acquisition module 304, Second judge module 305, the 3rd acquisition module 306 and the 3rd judge module 307;Wherein:
Second acquisition module 304, for the first judge module 302 judge first voltage value predetermined voltage range it After interior, before power-off modular 303 carries out power down process to terminal, obtain in terminal earphone interface the first contact and the 3rd contact it Between second voltage value;
Second judge module 305, for judging second voltage value whether within predetermined voltage range;
The power-off modular 303, for when the second judge module 305 is judged as YES, power down process to be carried out to terminal;
3rd acquisition module 306, for the second judge module 305 judge second voltage value predetermined voltage range it After interior, before power-off modular 303 carries out power down process to terminal, obtain in terminal earphone interface the first contact and the 4th contact it Between third voltage value;
3rd judge module 307, for judging third voltage value whether within predetermined voltage range;
The power-off modular 303, for when the 3rd judge module 307 is judged as YES, power down process to be carried out to terminal.
Preferably, as shown in fig. 6, the power down process device that this programme provides can also include:The He of 4th acquisition module 308 4th judge module 309;
4th acquisition module 308, for the first contact and the in obtaining terminal earphone interface in the first acquisition module 301 Before first voltage value between two contacts, the current acceleration of terminal is obtained;
4th judge module 309, fall state for determining whether terminal is currently according to acceleration;
First acquisition module 301, for when the 4th judge module 309 is judged as YES, obtaining in terminal earphone interface First voltage value between first contact and the second contact.
Wherein, the 4th judge module 309, accelerate specifically for judging whether above-mentioned acceleration is more than or equal to gravity Degree, if, it is determined that terminal current state is to fall state.
From the foregoing, it will be observed that power down process method provided in an embodiment of the present invention obtains terminal ear using the first acquisition module 301 First voltage value in machine interface between the first contact and the second contact, judge that first voltage value is by the first judge module 302 It is no within predetermined voltage range, if so, then by power-off modular 303 to terminal carry out power down process;The program make use of terminal Earphone interface water inlet can cause the characteristic that the voltage in earphone interface between contact changes, and pass through contact in test earphone interface Between magnitude of voltage come automatically to terminal carry out power down process, to cause terminal to be automatically powered off after water inlet, without user Any power operation is carried out, compared with prior art, power-off speed and efficiency can be improved, and then terminal can be carried out in time Protection, the loss of user is avoided, lift Consumer's Experience.
It when it is implemented, above modules can be realized as independent entity, can also be combined, be made Realized for same or several entities, the specific implementation of above modules can be found in embodiment of the method above, herein not Repeat again.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps are by program the hardware of correlation can be instructed to complete, and the program can be stored in computer-readable storage medium In matter, such as it is stored in the memory of terminal, and by least one computing device in the terminal, can wraps in the process of implementation Include the flow of the embodiment such as information issuing method.Wherein, storage medium can include:Read-only storage (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
A kind of power down process method and apparatus provided in an embodiment of the present invention are described in detail above, its each function Module can be integrated in a process chip or modules are individually physically present, can also two or two with Upper module is integrated in a module.Above-mentioned integrated module can both be realized in the form of hardware, can also use software The form of functional module is realized.Specific case used herein is set forth to the principle and embodiment of the present invention, with The explanation of upper embodiment is only intended to help the method and its core concept for understanding the present invention;Meanwhile for the technology of this area Personnel, according to the thought of the present invention, there will be changes in specific embodiments and applications, in summary, this theory Bright book content should not be construed as limiting the invention.

Claims (4)

  1. A kind of 1. power down process method, it is characterised in that comprise the following steps:
    Obtain the current acceleration of terminal;
    Determine whether the terminal is currently according to the acceleration and fall state;
    If the terminal, which is currently at, falls state, institute is obtained by the voltage sensor set in the terminal earphone interface State the first voltage value between earthing contact and microphone contact in terminal earphone interface;
    Judge the first voltage value whether within predetermined voltage range;
    If the first voltage value within predetermined voltage range, judges the first voltage value in predetermined voltage range Whether the duration meets preset time;
    If duration of the first voltage value in predetermined voltage range meets preset time, pass through the voltage sensor Device obtains the second voltage value between earthing contact and R channel contact in the terminal earphone interface;
    Judge the second voltage value whether within predetermined voltage range;
    If the second voltage value obtains the terminal earphone within predetermined voltage range, by the voltage sensor and connect Third voltage value in mouthful between earthing contact and L channel contact;
    Judge the third voltage value whether within predetermined voltage range;
    If the third voltage value within predetermined voltage range, cuts off the power supply circuit between end cell and mainboard.
  2. 2. power down process method as claimed in claim 1, it is characterised in that described that the terminal is determined according to the acceleration It is current whether to be specifically included in the step of falling state:
    Judge whether the acceleration is more than or equal to acceleration of gravity;
    If, it is determined that the terminal current state is to fall state.
  3. A kind of 3. power down process device, it is characterised in that including:First acquisition module, the first judge module, second obtain mould Block, the second judge module, the 3rd acquisition module, the 3rd judge module, the 4th acquisition module, the 4th judge module and power-off mould Block;
    4th acquisition module, the acceleration current for obtaining terminal;
    4th judge module, fall state for determining whether the terminal is currently according to the acceleration;
    First acquisition module, for when the 4th judge module be judged as the terminal be currently at fall state when, Earthing contact and microphone in the terminal earphone interface are obtained by the voltage sensor set in the terminal earphone interface First voltage value between contact;
    First judge module, for judging the first voltage value whether within predetermined voltage range, if described first Magnitude of voltage then judges whether duration of the first voltage value in predetermined voltage range be full within predetermined voltage range Sufficient preset time;
    Second acquisition module, for being judged as the first voltage value in predetermined voltage range in first judge module When the interior duration meets preset time, by the voltage sensor obtain in the terminal earphone interface earthing contact with Second voltage value between R channel contact;
    Second judge module, for judging the second voltage value whether within predetermined voltage range;
    3rd acquisition module, for being judged as the second voltage value in predetermined voltage range in second judge module Within when, the 3rd between earthing contact and L channel contact is obtained in the terminal earphone interface by the voltage sensor Magnitude of voltage;
    3rd judge module, for judging the third voltage value whether within predetermined voltage range;
    The power-off modular, for being judged as the third voltage value within predetermined voltage range when the 3rd judge module When, cut off the power supply circuit between end cell and mainboard.
  4. 4. power down process device as claimed in claim 3, it is characterised in that
    4th judge module, specifically for judging whether the acceleration is more than or equal to acceleration of gravity, if so, then true The fixed terminal current state is to fall state.
CN201610229194.1A 2016-04-12 2016-04-12 A kind of power down process method and apparatus Expired - Fee Related CN105656156B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610229194.1A CN105656156B (en) 2016-04-12 2016-04-12 A kind of power down process method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610229194.1A CN105656156B (en) 2016-04-12 2016-04-12 A kind of power down process method and apparatus

Publications (2)

Publication Number Publication Date
CN105656156A CN105656156A (en) 2016-06-08
CN105656156B true CN105656156B (en) 2017-12-01

Family

ID=56496278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610229194.1A Expired - Fee Related CN105656156B (en) 2016-04-12 2016-04-12 A kind of power down process method and apparatus

Country Status (1)

Country Link
CN (1) CN105656156B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106253415A (en) * 2016-09-14 2016-12-21 努比亚技术有限公司 A kind of charge control method and device
CN106713550B (en) * 2017-01-20 2020-08-07 维沃移动通信有限公司 Mobile terminal
CN112968988B (en) * 2019-12-13 2023-04-28 深圳富泰宏精密工业有限公司 Electronic device with waterproof function and waterproof method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201116989A (en) * 2009-11-06 2011-05-16 Askey Computer Corp A portable device and falling protecting method thereof
CN101969486B (en) * 2010-10-13 2013-09-11 华为终端有限公司 Method and circuit for preventing mobile terminal from waterlogged damage and mobile terminal
CN203522806U (en) * 2013-05-17 2014-04-02 深圳知己迅联通讯有限公司 Water-contacted protection device for intelligent handset
CN104427092A (en) * 2013-08-22 2015-03-18 中兴通讯股份有限公司 Automatic shutdown method and device for mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN105656156A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
CN105656156B (en) A kind of power down process method and apparatus
CN101969486B (en) Method and circuit for preventing mobile terminal from waterlogged damage and mobile terminal
CN105843726B (en) A kind of terminal protecting methdo and device
CN107147771B (en) Method and device for adaptively preventing water inflow damage and mobile terminal
CN203151584U (en) A cell phone protective housing
WO2008002487A3 (en) Integrated current-interrupt device for lithium-ion cells
CN101728814A (en) Power-off protecting circuit
CN104237466B (en) The waterproof based reminding method of a kind of wearable device and wearable device
CN204856504U (en) Waterproof intelligent terminal
CN105825153A (en) Method and device for protecting mobile terminal
CN103152454A (en) Mobile phone protecting shell
CN105007366A (en) Processing method and system if a mobile terminal encounters water
WO2018218686A1 (en) Method for detecting swelling of rechargeable battery, and portable electronic device
CN105491182A (en) Mobile phone water-meeting alarm system
CN201403119Y (en) Cell phone with temperature monitoring function
CN204887406U (en) Osteoacusis type intelligence earphone
CN210326035U (en) Storage battery real-time monitoring system
CN109192625B (en) Intelligent low-voltage circuit breaker
CN2702453Y (en) A water-proof mobile phone battery
CN106990710A (en) A kind of wrist-watch waterproof method and device
CN207968721U (en) A kind of transformer station personnel positioning device
CN209327510U (en) A kind of portable power equipment partial discharge detection device and detection system
CN208314963U (en) A kind of personnel safety monitoring and warning terminal based on WIFI probe
CN207460353U (en) Electronic device
CN111403793A (en) Battery, manufacturing method of battery and electronic equipment

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: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171201

CF01 Termination of patent right due to non-payment of annual fee