CN107566621A - Drowning protection method and mobile terminal - Google Patents

Drowning protection method and mobile terminal Download PDF

Info

Publication number
CN107566621A
CN107566621A CN201710727619.6A CN201710727619A CN107566621A CN 107566621 A CN107566621 A CN 107566621A CN 201710727619 A CN201710727619 A CN 201710727619A CN 107566621 A CN107566621 A CN 107566621A
Authority
CN
China
Prior art keywords
mobile terminal
scene
acceleration
overboard
condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710727619.6A
Other languages
Chinese (zh)
Inventor
苏玉立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710727619.6A priority Critical patent/CN107566621A/en
Publication of CN107566621A publication Critical patent/CN107566621A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of drowning protection method with mobile terminal, belong to communication technical field.This method includes:The acceleration of the mobile terminal all directions is obtained by acceleration transducer;When the acceleration of either direction changes, translational acceleration and displacement of the mobile terminal in the direction are determined;Judge whether the translational acceleration and the displacement meet the overboard condition of default scene;If so, judging whether mobile terminal locations meet default scene location;If so, judging whether motion state of the mobile terminal in preset time meets that default scene confirms condition;If so, in the mobile terminal screen display alarm information, and disable the power key of the mobile terminal.So as to which after confirming that mobile terminal is overboard, timely display alarm information simultaneously disables power key, avoids user misoperation damage mobile phone.

Description

Drowning protection method and mobile terminal
Technical field
The present invention relates to communication technical field, more particularly to a kind of drowning protection method and mobile terminal.
Background technology
At present, the mobile terminal such as smart mobile phone has become the indispensable necessity of human hand, increasing user's custom with When everywhere with the mobile phone of oneself, such as Asiatic water closet pan or in swimming pool also with the mobile phone of oneself, but so can not just keep away There is a kind of situation with exempting from, that is, mobile phone is fallen into closestool/squat type closet/swimming pool, and many users pick up hand in this case Mobile phone can be got rid of after machine to get rid of or force switch machine, but it is huge to hardly realize that this behavior injures in itself to mobile phone, it is best Method is operated again after now drying/drying up mobile phone, therefore, if judging that mobile phone fallen into closestool/crouching just After in pond/swimming pool, locked for the related key such as power button of mobile phone, while user is reminded, then can The generation of such tragedy is largely avoided, efficiently accomplishes the operation of protection user mobile phone data safety.But currently have no Effectively for the solution method of this kind of situation.Therefore, it is necessary to a kind of drowning protection method and mobile terminal are provided, to avoid The appearance of the above situation.
The content of the invention
It is a primary object of the present invention to propose a kind of drowning protection method and mobile terminal, it is intended to solve in the prior art Mobile terminal lacks the problem of overboard protection.
To achieve the above object, the present invention provides a kind of drowning protection method, and applied to mobile terminal, methods described includes Step:
The acceleration of the mobile terminal all directions is obtained by acceleration transducer;
When the acceleration of either direction changes, determine the mobile terminal the direction translational acceleration with And displacement;
Judge whether the translational acceleration and the displacement meet the overboard condition of default scene;
If so, judging whether mobile terminal locations meet default scene location;
If so, judging whether motion state of the mobile terminal in preset time meets that default scene confirms condition;
If so, in the mobile terminal screen display alarm information, and disable the power key of the mobile terminal.
Alternatively, preset scene include the first scene and the second scene, judge the translational acceleration and the movement away from From whether meet the overboard condition of default scene the step of specifically include:
Judge whether the translational acceleration and the displacement meet the overboard condition of the first scene, wherein, it is described The overboard condition of first scene is:The translational acceleration falls into the first pre-set interval and the shifting corresponding to first scene Dynamic distance falls into the first moving range corresponding to first scene;
If it is not, continue to judge whether the translational acceleration and the displacement meet the overboard condition of the second scene, Wherein, the overboard condition of second scene is:The translational acceleration falls into the second preset areas corresponding to second scene Between and the displacement fall into the second moving range corresponding to second scene.
Alternatively, whether the motion state for judging the mobile terminal in preset time meets that default scene confirms The step of condition, specifically includes:
When whether the translational acceleration and the displacement meet the overboard condition of the first scene, the shifting is judged Whether dynamic terminal acceleration of preset direction in the first preset duration after static changes and translational speed is more than first Speed;
If so, judging whether the mobile terminal enters stable state in the second preset duration.
Alternatively, whether the motion state for judging the mobile terminal in preset time meets that default scene confirms The step of condition, specifically includes:
When whether the translational acceleration and the displacement meet the overboard condition of the second scene, the shifting is judged Whether dynamic terminal enters stable state in the 3rd preset duration.
Alternatively, methods described also specifically includes:
When detecting releasing instruction, cancel the warning information and stop disabling the power key.
In addition, to achieve the above object, the present invention also proposes a kind of mobile terminal, the mobile terminal include memory, Processor and it is stored in the overboard defence program that can be run on the memory and on the processor, the computing device The overboard defence program is to realize following steps:
The acceleration of the mobile terminal all directions is obtained by acceleration transducer;
When the acceleration of either direction changes, determine the mobile terminal the direction translational acceleration with And displacement;
Judge whether the translational acceleration and the displacement meet the overboard condition of default scene;
If so, judging whether mobile terminal locations meet default scene location;
If so, judging whether motion state of the mobile terminal in preset time meets that default scene confirms condition;
If so, in the mobile terminal screen display alarm information, and disable the power key of the mobile terminal.
Alternatively, presetting scene includes the first scene and the second scene, overboard defence program described in the computing device Judge that the step of whether translational acceleration and the displacement meet default scene specifically includes to realize:
Judge whether the translational acceleration and the displacement meet the overboard condition of the first scene, wherein, it is described The overboard condition of first scene is:The translational acceleration falls into the first pre-set interval and the shifting corresponding to first scene Dynamic distance falls into the first moving range corresponding to first scene;
If it is not, continue to judge whether the translational acceleration and the displacement meet the overboard condition of the second scene, Wherein, the overboard condition of second scene is:The translational acceleration falls into the second preset areas corresponding to second scene Between and the displacement fall into the second moving range corresponding to second scene.
Alternatively, overboard defence program described in the computing device judges the mobile terminal in preset time to realize Whether interior motion state meets that the step of default scene confirms condition includes:
When whether the translational acceleration and the displacement meet the overboard condition of the first scene, the shifting is judged Whether dynamic terminal acceleration of preset direction in the first preset duration after static changes and translational speed is more than first Speed;
If so, judging whether the mobile terminal enters stable state in the second preset duration.
Alternatively, overboard defence program described in the computing device judges the mobile terminal in preset time to realize Whether interior motion state meets that the step of default scene confirms condition includes:
When whether the translational acceleration and the displacement meet the overboard condition of the second scene, the shifting is judged Whether dynamic terminal enters stable state in the 3rd preset duration.
In addition, to achieve the above object, the present invention also proposes a kind of computer-readable recording medium, described computer-readable Storage medium is stored with overboard defence program, the overboard defence program can by least one computing device so that it is described extremely The step of few computing device drowning protection method as described above.
It is each to obtain the mobile terminal with mobile terminal by acceleration transducer for drowning protection method proposed by the present invention The acceleration in direction;When the acceleration of either direction changes, determine that movement of the mobile terminal in the direction adds Speed and displacement;Judge whether the translational acceleration and the displacement meet the overboard condition of default scene; If so, judging whether mobile terminal locations meet default scene location;If so, judge the mobile terminal in preset time Whether motion state meets that default scene confirms condition;If so, in the mobile terminal screen display alarm information, and disable institute State the power key of mobile terminal.So as to which after confirming that mobile terminal is overboard, timely display alarm information simultaneously disables power key, keeps away User misoperation damage mobile phone is exempted from.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for realizing each optional terminal of embodiment one of the present invention;
Fig. 2 is the communications network system schematic diagram of terminal as shown in Figure 1;
Fig. 3 is the schematic flow sheet for the drowning protection method that first embodiment of the invention provides;
Fig. 4 is the refinement schematic flow sheet of step S303 in Fig. 3;
Fig. 5 is the refinement schematic flow sheet of step S305 in Fig. 3;
Fig. 6 is the another refinement schematic flow sheet of step 305 in Fig. 3;
Fig. 7 is the overboard reference view of protection setting interface one of mobile terminal;
The reference view of terminal display interface one is moved when Fig. 8 is overboard protection;
Another reference view of terminal display interface is moved when Fig. 9 is overboard protection;
Figure 10 is the high-level schematic functional block diagram for the overboard defence program that second embodiment of the invention provides;
Figure 11 is the coordinate system schematic diagram of acceleration transducer of the present invention and gravity sensor.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Client in the present invention is installed in terminal, and terminal can be implemented in a variety of manners.For example, retouched in the present invention The terminal stated can include such as mobile phone, tablet personal computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable media player (Portable Media Player, PMP), guider, The mobile terminals such as wearable device, Intelligent bracelet, pedometer, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions so that terminal refers to mobile terminal as an example, it will be appreciated by those skilled in the art that In addition to being used in particular for moving the element of purpose, construction according to the embodiment of the present invention can also apply to fixed type Terminal.
Referring to Fig. 1, its hardware architecture diagram for a kind of terminal of each embodiment of the realization present invention, the terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108, storage The parts such as device 109, processor 110 and power supply 111.It will be understood by those skilled in the art that the terminal structure shown in Fig. 1 The not restriction of structure paired terminal, terminal can be included than illustrating more or less parts, either combine some parts or Different part arrangements.
The all parts of terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and terminal can help user's transceiver electronicses postal by WiFi module 102 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 is shown WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for terminal, can not change as needed completely Become in the essential scope of invention and omit.
Audio output unit 103 can be in call signal reception pattern, call mode, logging mode, language in terminal 100 It is receiving or depositing by radio frequency unit 101 or WiFi module 102 when under the isotypes such as sound recognition mode, broadcast reception mode It is sound that the voice data stored in reservoir 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 may be used also With the specific function provided to terminal 100 performs, related audio output is (for example, call signal receives sound, message sink sound Sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound Caused noise or interference during frequency signal.
Terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjusts the brightness of display panel 1061, and proximity transducer can close display panel when terminal 100 is moved in one's ear 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generally three axles) and add The size of speed, size and the direction of gravity are can detect that when static, application (such as the horizontal/vertical screen available for identification mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for mobile phone also Configurable fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, hygrometer, temperature The other sensors such as meter, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produces and set with the user of terminal Put and the input of key signals that function control is relevant.Specifically, user input unit 107 may include contact panel 1071 and its His input equipment 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation (ratio of the user on or near it Such as user is using finger, any suitable object of stylus or annex on contact panel 1071 or near contact panel 1071 Operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detecting apparatus With two parts of touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect what touch operation was brought Signal, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and it is changed Into contact coordinate, then processor 110 is given, and the order sent of reception processing device 110 and can be performed.Furthermore, it is possible to adopt Contact panel 1071 is realized with polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of terminal and output function, but in some embodiments it is possible to will Contact panel 1071 is integrated with display panel 1061 and realizes input and the output function of terminal, does not limit herein specifically.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with terminal 100.It is for example, outside Device can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless number According to port, memory card port, for connecting the port of device with identification module, audio input/output (I/O) port, regarding Frequency I/O ports, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, data are believed Breath, electric power etc.) and one or more elements that the input received is transferred in terminal 100 or can be used at end Data are transmitted between end 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of terminal, using various interfaces and the various pieces of the whole terminal of connection, is led to Cross operation or perform the software program and/or module being stored in memory 109, and call and be stored in memory 109 Data, the various functions and processing data of terminal are performed, so as to carry out integral monitoring to terminal.Processor 110 may include one Or multiple processing units;Preferably, processor 110 can integrate application processor and modem processor, wherein, using processing Device mainly handles operating system, user interface and application program etc., and modem processor mainly handles radio communication.It can manage Solution, above-mentioned modem processor can not also be integrated into processor 110.
Terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111 can be with It is logically contiguous by power-supply management system and processor 110, so as to by power-supply management system realize management charging, electric discharge, with And the function such as power managed.
Although Fig. 1 is not shown, terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the terminal of the present invention is retouched State.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc. The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned terminal hardware structure and communications network system, each embodiment of the inventive method is proposed.
First, the present invention provides a kind of drowning protection method.
Fig. 3 is refer to, shown is the schematic flow sheet for the drowning protection method that first embodiment of the invention provides, main to use In above-mentioned terminal, methods described includes step:
Step S301, the acceleration of the mobile terminal all directions is obtained by acceleration transducer;
Specifically, the acceleration transducer and gravity sensor built in mobile terminal all use same coordinate system, such as Described in Figure 11, the coordinate system using mobile terminal parallel to screen width direction straight line as X-axis (to the right for positive direction), with flat Straight line of the row in screen length direction is Y-axis (being upwards positive direction), with what is intersected perpendicular to X-axis and Y-axis and with X-axis and Y-axis Straight line (straight line i.e. vertical and through screen) is Z axis (using the remote positive side of screen as positive direction).Acceleration sensing Device is mainly used in measuring acceleration of the mobile terminal in above three direction, and by the shadow of mobile terminal acceleration of gravity itself Ring.Gravity sensor is then mainly used in measuring the acceleration of gravity of mobile terminal in itself, and mainly acceleration of gravity is above-mentioned three The component in individual direction.When mobile terminal occur falling motion when, then the acceleration transducer of mobile terminal necessarily detect certain The acceleration in one direction can change, and therefore, judge whether mobile terminal falls, and can be obtained by acceleration transducer Take the acceleration of mobile terminal all directions, including ax, ayAnd az
Step S302, when the acceleration of either direction changes, determine shifting of the mobile terminal in the direction Dynamic acceleration and displacement;
Specific, work as ax, ayAnd azWhen any one changes, show that motion state of mobile terminal may have occurred Change, for example, free-falling or type free falling motion are turned to from static change, at this time, it may be necessary to determine the actual fortune of mobile terminal Dynamic acceleration, the actual motion acceleration can be added by measuring movement of the mobile terminal on the direction that acceleration changes Speed is obtained, and the translational acceleration can be determined jointly by acceleration transducer and gravity sensor, by acceleration transducer Measurement result rejects the influence of the acceleration of gravity measured by gravity sensor, it is possible to obtains mobile acceleration in this direction Degree.For example, it is assumed that gravity acceleration g=9.8m/s2, when mobile terminal is static to be placed on the table, then acceleration analysis is arrived Acceleration magnitude should be az=9.8m/s2,, and now acceleration of gravity is in the as actual acceleration of gravity of the component of Z axis 9.8m/s2, remove gravity effect, now mobile terminal actual motion acceleration, namely the mobile acceleration in Z-direction Spend for 0.In another example, it is assumed that mobile terminal screen falls parallel to vertical direction, and (i.e. now screen width direction is vertical side To), when the acceleration magnitude that the free-falling brief acceleration side coming year feels should be ax=0m/s2, and now acceleration of gravity is in X-axis Component be actual acceleration of gravity 9.8m/s2, gravity effect is removed, now mobile terminal actual motion accelerates Degree, namely in the translational acceleration of X-direction be 9.8m/s2.The measuring and calculating of distance is moved up in the side that acceleration changes The translational acceleration that can be combined by the motion of mobile terminals time in the period determines.Become from the acceleration of the direction Change to recovery, acceleration and a change crest be present, then the crest duration is traveling time, for example, acceleration transducer is surveyed X-axis acceleration is measured from 9.8m/s2At the time of change takes place, recover 9.8m/s to X-axis acceleration2At the time of, two moment Between the time difference be mobile terminal run duration, with reference to actual motion acceleration of the mobile terminal in the run duration, Displacement of the mobile terminal along X-axis can be obtained.
Step S303, judges whether the translational acceleration and the displacement meet the overboard condition of default scene; If so, then enter step S304, if it is not, then terminating.
Confirm that mobile terminal changes in a direction acceleration specifically, working as, now need to exist by mobile terminal The translational acceleration and displacement of a direction confirm whether it is overboard.Different scenes, judge overboard there is different conditions. For example, if overboard occurred in lavatory, motion when mobile terminal falls is similar to the movement of falling object, if Overboard is the place for possessing in swimming pool etc. more water, and due to the buoyancy effect of water, motion when mobile terminal falls is class Like the movement of falling object, its whereabouts acceleration is certainly less than acceleration of gravity.Meanwhile under different scenes, it is clear that it is moved Distance is also different.Different scenes is pre-set thus, it is possible to set, and confirms different scenes pair according to actual conditions The overboard condition answered, including the moving range of the section of translational acceleration and displacement.
Further, Fig. 4 is please also refer to, in the present embodiment, step S303 is specifically included:
Step S401, judges whether the translational acceleration and the displacement meet the overboard condition of the first scene, If so, into step S304, if it is not, then continuing to judge into step S402;
Specifically, in the present embodiment, default scene includes the first scene and the second scene, wherein, the first scene is lavatory Institute, the second scene are swimming pool.The overboard condition of first scene is:It is pre- that the translational acceleration falls into corresponding to the first scene first If section and displacement fall into the first moving range corresponding to the first scene, herein, because the mobile terminal when lavatory is overboard Falling motion close to the movement of falling object, now its translational acceleration is also necessarily close to acceleration of gravity, because of diverse location Acceleration of gravity is different, hence, it can be determined that a section, with 9.8m/s2Centered on, fluctuate preset value, such as 1, because This, in the present embodiment, the first pre-set interval can be defined as 8.8m/s2-10.8m/s2.It is to be appreciated that in other embodiment In, the pre-set interval can also mainly be fluctuated according to changing centered on local gravitational acceleration.First In scene, displacement is defined below:Urinal height is 45cm under normal circumstances, and mobile terminal is down after casting aside substructure height The height fallen is at least above 40cm;And the depth of squat type closet is mostly 20cm, the height of mobile terminal is operated (higher than crouching plus human body The edge of urinal) mobile terminal is fallen down afterwards height is at least above 40cm;And human height is operated with human body and moved with 200cm For the custom height of dynamic terminal, be usually no more than height half, therefore, the height of drop of mobile terminal typically not over 140cm.It can determine that the first moving range is in terms of comprehensive:40cm-140cm.
Step S402, continue to judge whether the translational acceleration and the displacement meet the overboard bar of the second scene Part, if so, then entering step S304, if it is not, then terminating.
Specifically, the overboard condition of the second scene namely swimming pool scene is:The translational acceleration falls into the second scene pair The second pre-set interval and the displacement answered fall into the second moving range corresponding to second scene.Different from first Scape, the second scene are swimming pool, herein, because the falling motion of mobile terminal is similar to the movement of falling object when swimming pool is overboard, But influenceed by buoyancy, now its translational acceleration is certainly less than acceleration of gravity, it is assumed that acceleration of gravity is with 9.8m/ s2,Meter, considers actual buoyancy, and now translational acceleration can be set as 7.8m/s in the present embodiment2, because diverse location gravity adds Speed is different, hence, it can be determined that a section, with 7.8m/s2Centered on, fluctuate preset value, such as 1, therefore, at this In embodiment, the second pre-set interval can be defined as 6.8m/s2-8.8m/s2.It is to be appreciated that in other embodiments, this is pre- If section can also determine a central value according to actual buoyancy and acceleration of gravity, and be fluctuated i.e. around the central value Can.In the second scene, displacement is defined below:The height of swimming pool is mostly 140cm to 200cm, operates and moves plus human body Height (edge for the being higher than swimming pool) height that mobile phone is fallen down afterwards of dynamic terminal at least above 160cm, and human height with 200cm, for the custom height of human body operation mobile terminal, height half is usually no more than, therefore, the whereabouts of mobile terminal Height is typically not over 320cm.It can determine that the second moving range is in terms of comprehensive:160cm-320cm.
It is understood that in other embodiments, corresponding moving range can be according to different scenes under different scenes Under possible actual height of drop determine that the first moving range and the second moving range in the present embodiment are only used as above-mentioned field Example under scape, but it is not limited to other scenes.
Step S304, judges whether mobile terminal locations meet default scene location;If so, into step S305, if it is not, Then terminate.
Specifically, after meeting the overboard condition of scene by mobile movement and displacement preliminary judgement, also need further Determine whether current location meets the default scene location.When the overboard condition of the first scene of satisfaction, it need to judge that current location is The first scene location of no satisfaction, i.e., determine whether current location is public lavatory or has the ground of lavatory by positioning current location Side, for example, in market, public arena, family, the place such as Administrative Area.When meeting the during the overboard condition of scene, need to judge current Whether position meets the second scene location, i.e., determines whether current location is the place that has swimming pool by positioning current location, example Such as public natatorium, gymnasium, gymnasium place.It is understood that different scenes can correspond to multiple different scenes Position, specific corresponding scene location can be preset by manufacturer according to actual conditions, can also be by mobile terminal in follow-up basis User often removes local intelligent Matching or without limitation by user's sets itself, the present invention.When mobile terminal locations meet in advance If scene location, then can further confirm that the overboard place of current mobile terminal meets default scene.
Step S305, judges whether motion state of the mobile terminal in preset time meets that default scene confirms bar Part;If so, into step S306, if it is not, then terminating.
Specifically, under different scenes, interior for a period of time after overboard is in preset time.The motion state of mobile terminal It is different, therefore, condition can be confirmed using motion state as further scene, finally to confirm whether mobile terminal is true There occurs the overboard time under default scene.For example, for lavatory scene, overboard rear user will quickly can typically move Dynamic terminal picks up (such as in 3s), and it is usually endways to take up (a that user, which picks up the action of mobile terminal,yValue changes) or side And take up (axValue changes), it can seldom keep flat and take up (azValue changes).And user pick up it is mobile it is latter eventually as can be in 2s~5s Interior to wait under current, the value for now moving the translational acceleration of itself eventually can tend towards stability rapidly, namely mobile terminal can be extensive Inactive state is arrived again.And for swimming pool scene, it can equally be tended towards stability within a period of time after now mobile terminal is overboard, still User but can not quickly pick up mobile terminal in a short time, because not being the height setting of closestool/squat type closet after all, now use Family can not directly operate and pick up mobile terminal.As can be seen here, for different scenes, its scene confirms that condition is different , and the motion state of mobile terminal can be confirmed by acceleration transducer and gravity sensor measurement, when motion state expires Sufficient scene confirms condition, then finally confirming mobile terminal, there occurs overboard event really under the scene.
Further, Fig. 5 is please also refer to, in the present embodiment, the confirmation for overboard event under the first scene, namely When the translational acceleration and the displacement meet the overboard condition of the first scene, corresponding, step S305 is specifically wrapped Include:
Step S501, judge mobile terminal preset direction in the first preset duration after static acceleration whether Change and translational speed is more than First Speed;If so, then enter step S502, if it is not, then terminating.
Step S502, judges whether the mobile terminal enters stable state in the second preset duration.
Specifically, (i.e. lavatory scene) scene confirms that condition includes two under the first scene:First condition be:It is mobile whole The acceleration of preset direction changes in the first preset duration after static and translational speed is more than First Speed at end, this Place, the first preset duration can be set according to actual conditions, such as 3s.First Speed be then in order to ensure mobile terminal be by with Family picks up, and when artificial pick up, its speed will necessarily reach certain value, and herein, First Speed can take 0.3m/s.First condition For confirm mobile terminal be determined it is overboard after whether pick up operation.Herein, preset direction is X-direction and Y-direction, because The action that mobile terminal is picked up for family is usually endways to take up (ayValue changes) or side and take up (axValue changes), seldom It can keep flat and take up (azValue changes).Second condition is:Mobile terminal enters stable state in the second preset duration.Herein, Second preset duration can equally be set according to actual conditions, such as 2-5s.It is to be appreciated that the motion state of mobile terminal is same Sample can confirm that here is omitted by acceleration transducer and gravity sensor measurement.
Further, Fig. 6 is please also refer to, in the present embodiment, the confirmation for overboard event under the second scene, namely When the translational acceleration and the displacement meet the overboard condition of the second scene, corresponding, step S305 is specifically wrapped Include:
Step S601, judges whether the mobile terminal enters stable state in the 3rd preset duration.
Specifically, (i.e. swimming pool) scene confirms that condition is under the second scene:Mobile terminal enters in the 3rd preset duration Stable state.Herein, the 3rd preset duration can equally be set according to actual conditions, such as 2-5s.It is it is to be appreciated that mobile whole The motion state at end again may be by acceleration transducer and gravity sensor measurement confirms that here is omitted.
Step S306, in the mobile terminal screen display alarm information, and disable the power key of the mobile terminal.
Specifically, after a series of above-mentioned condition criterions finally confirm mobile terminal there occurs overboard event, now, it is Protection mobile terminal simultaneously avoids user from carrying out improper operation, can show corresponding warning information, such as Fig. 8 in mobile terminal screen It is shown, it is the reference view of mobile terminal display interface one, it is assumed that mobile terminal is mobile phone, and now, display interface of mobile phone is shown Warning information can be:" be now unable to operating handset, it is impossible to whipping mobile phone, please dry/dewater treatment after again row operation ", together When, corresponding button such as power key can be disabled to avoid mobile terminal short circuit or burn out.Further, user can fall Water conservation needs the button disabled after setting interface setting overboard, be illustrated in figure 7 the overboard signal of protection setting interface one reference Figure, user can select it is overboard after need the button that disables, including power key, volume key etc. physical button, the present invention is to this It is not limited, can be configured according to the physical button of reality.
Further, in other embodiments, the drowning protection method is further comprising the steps of:
When detecting releasing instruction, cancel the warning information and stop disabling the power key.
Specifically, mobile terminal can send releasing instruction automatically after duration is set, send, then cancel when releasing instruction Warning information and each button for replying disabling, including power key.It can be that 2 hours or 3 are small to set duration herein When, but it is ensured that be enough to be oven-dried mobile terminal in the setting duration.Corresponding trigger button can also be set, for example, Corresponding releasing menu option is provided during display alarm information simultaneously, when user confirms that mobile terminal is in a safe condition When (no longer moist), user can click the menu option and release instruction to trigger.
As shown in figure 9, it is another reference view of mobile terminal display interface, it is assumed that mobile terminal is mobile phone, now, hand Machine display interface except display alarm information can " be now unable to operating handset, it is impossible to whipping mobile phone, please dry/dewater treatment after Outside, also provide " unlocking " simultaneously clicks frame for row operation again ", when confirming mobile phone drying as user, can click The menu option releases instruction to trigger, and after releasing instruction triggers, warning information will no longer be shown, while disabled button Recover normal use.
The drowning protection method of the present embodiment, the acceleration of the mobile terminal all directions is obtained by acceleration transducer Degree;When the acceleration of either direction changes, translational acceleration and shifting of the mobile terminal in the direction are determined Dynamic distance;Judge whether the translational acceleration and the displacement meet the overboard condition of default scene;If so, judge to move Whether dynamic terminal location meets default scene location;If so, judge that motion state of the mobile terminal in preset time is It is no to meet that default scene confirms condition;If so, in the mobile terminal screen display alarm information, and disable the mobile terminal Power key.So as to which after confirming that mobile terminal is overboard, timely display alarm information simultaneously disables power key, avoids user's mistake Operation damage mobile phone.
In addition, the present invention provides a kind of overboard defence program.
As shown in Figure 10, it is the high-level schematic functional block diagram for the overboard defence program 10 that second embodiment of the invention provides.This In embodiment, described overboard defence program 10 can be divided into one or more modules, one or more of module quilts It is stored in the memory 109 of the terminal 100, and (is the processor in the present embodiment by one or more processors 110) it is performed, to complete the present invention.For example, in Fig. 10, described overboard defence program 10 can be divided into acquisition mould Block 11, determining module 12, scene judge module 13, position judging module 14, scene confirm module 15 and alarm protection module 16.Module alleged by the present invention refers to a series of a kind of readable computer program instruction segments that can complete specific function, than meter Implementation procedure of the calculation machine program more suitable for description software in the terminal 100.Below will be with regard to above-mentioned each functional module 11-16 Concrete function be described in detail.Wherein:
Acquisition module 11, for obtaining the acceleration of the mobile terminal all directions by acceleration transducer;
Specifically, the acceleration transducer and gravity sensor built in mobile terminal all use same coordinate system, such as Described in Figure 11, the coordinate system using mobile terminal parallel to screen width direction straight line as X-axis (to the right for positive direction), with flat Straight line of the row in screen length direction is Y-axis (being upwards positive direction), with what is intersected perpendicular to X-axis and Y-axis and with X-axis and Y-axis Straight line (straight line i.e. vertical and through screen) is Z axis (using the remote positive side of screen as positive direction).Acceleration sensing Device is mainly used in measuring acceleration of the mobile terminal in above three direction, and by the shadow of mobile terminal acceleration of gravity itself Ring.Gravity sensor is then mainly used in measuring the acceleration of gravity of mobile terminal in itself, and mainly acceleration of gravity is above-mentioned three The component in individual direction.When mobile terminal occur falling motion when, then the acceleration transducer of mobile terminal necessarily detect certain The acceleration in one direction can change, and therefore, judge whether mobile terminal falls, and can be obtained by acceleration transducer Take the acceleration of mobile terminal all directions, including ax, ayAnd az
Determining module 12, for when the acceleration of either direction changes, determining the mobile terminal in the side To translational acceleration and displacement;
Specific, work as ax, ayAnd azWhen any one changes, show that motion state of mobile terminal may have occurred Change, for example, free-falling or type free falling motion are turned to from static change, at this time, it may be necessary to determine the actual fortune of mobile terminal Dynamic acceleration, the actual motion acceleration can be added by measuring movement of the mobile terminal on the direction that acceleration changes Speed is obtained, and the translational acceleration can be determined jointly by acceleration transducer and gravity sensor, by acceleration transducer Measurement result rejects the influence of the acceleration of gravity measured by gravity sensor, it is possible to obtains mobile acceleration in this direction Degree.For example, it is assumed that gravity acceleration g=9.8m/s2, when mobile terminal is static to be placed on the table, then acceleration analysis is arrived Acceleration magnitude should be az=9.8m/s2,, and now acceleration of gravity is in the as actual acceleration of gravity of the component of Z axis 9.8m/s2, remove gravity effect, now mobile terminal actual motion acceleration, namely the mobile acceleration in Z-direction Spend for 0.In another example, it is assumed that mobile terminal screen falls parallel to vertical direction, and (i.e. now screen width direction is vertical side To), when the acceleration magnitude that the free-falling brief acceleration side coming year feels should be ax=0m/s2, and now acceleration of gravity is in X-axis Component be actual acceleration of gravity 9.8m/s2, gravity effect is removed, now mobile terminal actual motion accelerates Degree, namely in the translational acceleration of X-direction be 9.8m/s2.The measuring and calculating of distance is moved up in the side that acceleration changes The translational acceleration that can be combined by the motion of mobile terminals time in the period determines.Become from the acceleration of the direction Change to recovery, acceleration and a change crest be present, then the crest duration is traveling time, for example, acceleration transducer is surveyed X-axis acceleration is measured from 9.8m/s2At the time of change takes place, recover 9.8m/s to X-axis acceleration2At the time of, two moment Between the time difference be mobile terminal run duration, with reference to actual motion acceleration of the mobile terminal in the run duration, Displacement of the mobile terminal along X-axis can be obtained.
Scene judge module 13, for judging whether the translational acceleration and the displacement meet default scene Overboard condition;
Confirm that mobile terminal changes in a direction acceleration specifically, working as, now need to exist by mobile terminal The translational acceleration and displacement of a direction confirm whether it is overboard.Different scenes, judge overboard there is different conditions. For example, if overboard occurred in lavatory, motion when mobile terminal falls is similar to the movement of falling object, if Overboard is the place for possessing in swimming pool etc. more water, and due to the buoyancy effect of water, motion when mobile terminal falls is class Like the movement of falling object, its whereabouts acceleration is certainly less than acceleration of gravity.Meanwhile under different scenes, it is clear that it is moved Distance is also different.Different scenes is pre-set thus, it is possible to set, and confirms different scenes pair according to actual conditions The overboard condition answered, including the moving range of the section of translational acceleration and displacement.
Further, in the present embodiment, scene judge module 13 judges the translational acceleration and the displacement Whether the overboard condition of the default scene of satisfaction specifically includes:
Judge whether the translational acceleration and the displacement meet the overboard condition of the first scene;If it is not, then after It is continuous to judge;
Specifically, in the present embodiment, default scene includes the first scene and the second scene, wherein, the first scene is lavatory Institute, the second scene are swimming pool.The overboard condition of first scene is:It is pre- that the translational acceleration falls into corresponding to the first scene first If section and displacement fall into the first moving range corresponding to the first scene, herein, because the mobile terminal when lavatory is overboard Falling motion close to the movement of falling object, now its translational acceleration is also necessarily close to acceleration of gravity, because of diverse location Acceleration of gravity is different, hence, it can be determined that a section, with 9.8m/s2Centered on, fluctuate preset value, such as 1, because This, in the present embodiment, the first pre-set interval can be defined as 8.8m/s2-10.8m/s2.It is to be appreciated that in other embodiment In, the pre-set interval can also mainly be fluctuated according to changing centered on local gravitational acceleration.First In scene, displacement is defined below:Urinal height is 45cm under normal circumstances, and mobile terminal is down after casting aside substructure height The height fallen is at least above 40cm;And the depth of squat type closet is mostly 20cm, the height of mobile terminal is operated (higher than crouching plus human body The edge of urinal) mobile terminal is fallen down afterwards height is at least above 40cm;And human height is operated with human body and moved with 200cm For the custom height of dynamic terminal, be usually no more than height half, therefore, the height of drop of mobile terminal typically not over 140cm.It can determine that the first moving range is in terms of comprehensive:40cm-140cm.
Continue to judge whether the translational acceleration and the displacement meet the overboard condition of the second scene;
Specifically, the overboard condition of the second scene namely swimming pool scene is:The translational acceleration falls into the second scene pair The second pre-set interval and the displacement answered fall into the second moving range corresponding to second scene.Different from first Scape, the second scene are swimming pool, herein, because the falling motion of mobile terminal is similar to the movement of falling object when swimming pool is overboard, But influenceed by buoyancy, now its translational acceleration is certainly less than acceleration of gravity, it is assumed that acceleration of gravity is with 9.8m/ s2,Meter, considers actual buoyancy, and now translational acceleration can be set as 7.8m/s in the present embodiment2, because diverse location gravity adds Speed is different, hence, it can be determined that a section, with 7.8m/s2Centered on, fluctuate preset value, such as 1, therefore, at this In embodiment, the second pre-set interval can be defined as 6.8m/s2-8.8m/s2.It is to be appreciated that in other embodiments, this is pre- If section can also determine a central value according to actual buoyancy and acceleration of gravity, and be fluctuated i.e. around the central value Can.In the second scene, displacement is defined below:The height of swimming pool is mostly 140cm to 200cm, operates and moves plus human body Height (edge for the being higher than swimming pool) height that mobile phone is fallen down afterwards of dynamic terminal at least above 160cm, and human height with 200cm, for the custom height of human body operation mobile terminal, height half is usually no more than, therefore, the whereabouts of mobile terminal Height is typically not over 320cm.It can determine that the second moving range is in terms of comprehensive:160cm-320cm.
It is understood that in other embodiments, corresponding moving range can be according to different scenes under different scenes Under possible actual height of drop determine that the first moving range and the second moving range in the present embodiment are only used as above-mentioned field Example under scape, but it is not limited to other scenes.
Position judging module 14, for when the overboard bar of the translational acceleration and the default scene of displacement satisfaction During part, judge whether the mobile terminal locations meet default scene location;
Specifically, after meeting the overboard condition of scene by mobile movement and displacement preliminary judgement, also need further Determine whether current location meets the default scene location.When the overboard condition of the first scene of satisfaction, it need to judge that current location is The first scene location of no satisfaction, i.e., determine whether current location is public lavatory or has the ground of lavatory by positioning current location Side, for example, in market, public arena, family, the place such as Administrative Area.When meeting the during the overboard condition of scene, need to judge current Whether position meets the second scene location, i.e., determines whether current location is the place that has swimming pool by positioning current location, example Such as public natatorium, gymnasium, gymnasium place.It is understood that different scenes can correspond to multiple different scenes Position, specific corresponding scene location can be preset by manufacturer according to actual conditions, can also be by mobile terminal in follow-up basis User often removes local intelligent Matching or without limitation by user's sets itself, the present invention.When mobile terminal locations meet in advance If scene location, then can further confirm that the overboard place of current mobile terminal meets default scene.
Scene confirms module 15, for when the mobile terminal locations meet default scene location, judging the movement Whether motion state of the terminal in preset time meets that default scene confirms condition;
Specifically, under different scenes, interior for a period of time after overboard is in preset time.The motion state of mobile terminal It is different, therefore, condition can be confirmed using motion state as further scene, finally to confirm whether mobile terminal is true There occurs the overboard time under default scene.For example, for lavatory scene, overboard rear user will quickly can typically move Dynamic terminal picks up (such as in 3s), and it is usually endways to take up (a that user, which picks up the action of mobile terminal,yValue changes) or side And take up (axValue changes), it can seldom keep flat and take up (azValue changes).And user pick up it is mobile it is latter eventually as can be in 2s~5s Interior to wait under current, the value for now moving the translational acceleration of itself eventually can tend towards stability rapidly, namely mobile terminal can be extensive Inactive state is arrived again.And for swimming pool scene, it can equally be tended towards stability within a period of time after now mobile terminal is overboard, still User but can not quickly pick up mobile terminal in a short time, because not being the height setting of closestool/squat type closet after all, now use Family can not directly operate and pick up mobile terminal.As can be seen here, for different scenes, its scene confirms that condition is different , and the motion state of mobile terminal can be confirmed by acceleration transducer and gravity sensor measurement, when motion state expires Sufficient scene confirms condition, then finally confirming mobile terminal, there occurs overboard event really under the scene.
Further, in the present embodiment, for the confirmation of overboard event under the first scene, namely when the mobile acceleration Corresponding when degree and the displacement meet the overboard condition of the first scene, scene confirms that module 15 judges the movement eventually Hold whether the motion state in preset time meets that default scene confirms that condition specifically includes:
Judge whether mobile terminal acceleration of preset direction in the first preset duration after static changes And translational speed is more than First Speed;If so, then determining whether the mobile terminal enters in the second preset duration Stable state.
Specifically, (i.e. lavatory scene) scene confirms that condition includes two under the first scene:First condition be:It is mobile whole The acceleration of preset direction changes in the first preset duration after static and translational speed is more than First Speed at end, this Place, the first preset duration can be set according to actual conditions, such as 3s.First Speed be then in order to ensure mobile terminal be by with Family picks up, and when artificial pick up, its speed will necessarily reach certain value, and herein, First Speed can take 0.3m/s.First condition For confirm mobile terminal be determined it is overboard after whether pick up operation.Herein, preset direction is X-direction and Y-direction, because The action that mobile terminal is picked up for family is usually endways to take up (ayValue changes) or side and take up (axValue changes), seldom It can keep flat and take up (azValue changes).Second condition is:Mobile terminal enters stable state in the second preset duration.Herein, Second preset duration can equally be set according to actual conditions, such as 2-5s.It is to be appreciated that the motion state of mobile terminal is same Sample can confirm that here is omitted by acceleration transducer and gravity sensor measurement.
Further, in the present embodiment, for the confirmation of overboard event under the second scene, namely when the mobile acceleration Corresponding when degree and the displacement meet the overboard condition of the second scene, scene confirms that module 15 judges the movement eventually Hold whether the motion state in preset time meets that default scene confirms that condition specifically includes:
Judge whether the mobile terminal enters stable state in the 3rd preset duration.
Specifically, (i.e. swimming pool) scene confirms that condition is under the second scene:Mobile terminal enters in the 3rd preset duration Stable state.Herein, the 3rd preset duration can equally be set according to actual conditions, such as 2-5s.It is it is to be appreciated that mobile whole The motion state at end again may be by acceleration transducer and gravity sensor measurement confirms that here is omitted.
Protection module 16 is alerted, meets that default scene is true for the motion state when the mobile terminal in preset time When recognizing condition, in the mobile terminal screen display alarm information, and the power key of the mobile terminal is disabled.
Specifically, after a series of above-mentioned condition criterions finally confirm mobile terminal there occurs overboard event, now, it is Protection mobile terminal simultaneously avoids user from carrying out improper operation, can show corresponding warning information, such as Fig. 8 in mobile terminal screen It is shown, it is the reference view of mobile terminal display interface one, it is assumed that mobile terminal is mobile phone, and now, display interface of mobile phone is shown Warning information can be:" be now unable to operating handset, it is impossible to whipping mobile phone, please dry/dewater treatment after again row operation ", together When, corresponding button such as power key can be disabled to avoid mobile terminal short circuit or burn out.Further, user can fall Water conservation needs the button disabled after setting interface setting overboard, be illustrated in figure 7 the overboard signal of protection setting interface one reference Figure, user can select it is overboard after need the button that disables, including power key, volume key etc. physical button, the present invention is to this It is not limited, can be configured according to the physical button of reality.
Further, in other embodiments, the overboard defence program also includes:
Alarm releases module, for when detecting releasing instruction, cancelling the warning information and stopping disabling the electricity Source key.
Specifically, mobile terminal can send releasing instruction automatically after duration is set, send, then alert when releasing instruction Module is released to cancel warning information and reply each button of disabling, including power key.It can be 2 small to set duration herein When or 3 hours, but it is ensured that be enough to be oven-dried mobile terminal in the setting duration.Corresponding touch can also be set Button is sent out, for example, corresponding releasing menu option is provided simultaneously in display alarm information, when user has confirmed mobile terminal When (no longer moist) in a safe condition, user can click the menu option and release instruction to trigger.
As shown in figure 9, it is another reference view of mobile terminal display interface, it is assumed that mobile terminal is mobile phone, now, hand Machine display interface except display alarm information can " be now unable to operating handset, it is impossible to whipping mobile phone, please dry/dewater treatment after Outside, also provide " unlocking " simultaneously clicks frame for row operation again ", when confirming mobile phone drying as user, can click The menu option releases instruction to trigger, and after releasing instruction triggers, warning information will no longer be shown, while disabled button Recover normal use.
By performing the overboard defence program of the present embodiment, the mobile terminal all directions are obtained by acceleration transducer Acceleration;When the acceleration of either direction changes, translational acceleration of the mobile terminal in the direction is determined And displacement;Judge whether the translational acceleration and the displacement meet the overboard condition of default scene;If so, Judge whether mobile terminal locations meet default scene location;If so, judge motion of the mobile terminal in preset time Whether state meets that default scene confirms condition;If so, in the mobile terminal screen display alarm information, and disable the shifting The power key of dynamic terminal.So as to which after confirming that mobile terminal is overboard, timely display alarm information simultaneously disables power key, avoids User misoperation damages mobile phone
The present invention further provides a kind of computer-readable recording medium, it is stored with the computer-readable recording medium Above-mentioned overboard defence program, overboard defence program side as described above is realized when the overboard defence program is executed by processor Method.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.

Claims (10)

1. a kind of drowning protection method, applied to mobile terminal, it is characterised in that methods described includes step:
The acceleration of the mobile terminal all directions is obtained by acceleration transducer;
When the acceleration of either direction changes, translational acceleration and shifting of the mobile terminal in the direction are determined Dynamic distance;
Judge whether the translational acceleration and the displacement meet the overboard condition of default scene;
If so, judging whether mobile terminal locations meet default scene location;
If so, judging whether motion state of the mobile terminal in preset time meets that default scene confirms condition;
If so, in the mobile terminal screen display alarm information, and disable the power key of the mobile terminal.
2. drowning protection method according to claim 1, it is characterised in that default scene includes the first scene and second Scape, judge that the step of whether translational acceleration and the displacement meet the overboard condition of default scene specifically includes:
Judge whether the translational acceleration and the displacement meet the overboard condition of the first scene, wherein, described first The overboard condition of scene is:The translational acceleration fall into the first pre-set interval corresponding to first scene and the movement away from From falling into the first moving range corresponding to first scene;
If it is not, continue to judge whether the translational acceleration and the displacement meet the overboard condition of the second scene, wherein, The overboard condition of second scene is:The translational acceleration falls into the second pre-set interval and institute corresponding to second scene State displacement and fall into the second moving range corresponding to second scene.
3. drowning protection method according to claim 2, it is characterised in that described to judge the mobile terminal when default Whether interior motion state meets that the step of default scene confirms condition specifically includes:
When whether the translational acceleration and the displacement meet the overboard condition of the first scene, judge described mobile whole Whether the acceleration of preset direction changes in the first preset duration after static and translational speed is more than First Speed at end;
If so, judging whether the mobile terminal enters stable state in the second preset duration.
4. drowning protection method according to claim 2, it is characterised in that described to judge the mobile terminal when default Whether interior motion state meets that the step of default scene confirms condition specifically includes:
When whether the translational acceleration and the displacement meet the overboard condition of the second scene, judge described mobile whole Whether end enters stable state in the 3rd preset duration.
5. according to the drowning protection method described in claim any one of 1-4, it is characterised in that methods described also specifically includes:
When detecting releasing instruction, cancel the warning information and stop disabling the power key.
6. a kind of mobile terminal, it is characterised in that the mobile terminal includes memory, processor and is stored in the memory Overboard defence program that is upper and can running on the processor, overboard defence program described in the computing device is to realize such as Lower step:
The acceleration of the mobile terminal all directions is obtained by acceleration transducer;
When the acceleration of either direction changes, translational acceleration and shifting of the mobile terminal in the direction are determined Dynamic distance;
Judge whether the translational acceleration and the displacement meet the overboard condition of default scene;
If so, judging whether mobile terminal locations meet default scene location;
If so, judging whether motion state of the mobile terminal in preset time meets that default scene confirms condition;
If so, in the mobile terminal screen display alarm information, and disable the power key of the mobile terminal.
7. mobile terminal according to claim 6, it is characterised in that default scene includes the first scene and the second scene, Overboard defence program described in the computing device judges whether the translational acceleration and the displacement meet to realize The step of default scene, specifically includes:
Judge whether the translational acceleration and the displacement meet the overboard condition of the first scene, wherein, described first The overboard condition of scene is:The translational acceleration fall into the first pre-set interval corresponding to first scene and the movement away from From falling into the first moving range corresponding to first scene;
If it is not, continue to judge whether the translational acceleration and the displacement meet the overboard condition of the second scene, wherein, The overboard condition of second scene is:The translational acceleration falls into the second pre-set interval and institute corresponding to second scene State displacement and fall into the second moving range corresponding to second scene.
8. mobile terminal according to claim 7, it is characterised in that overboard defence program described in the computing device with Realization judges whether motion state of the mobile terminal in preset time meets that the step of default scene confirms condition includes:
When whether the translational acceleration and the displacement meet the overboard condition of the first scene, judge described mobile whole Whether the acceleration of preset direction changes in the first preset duration after static and translational speed is more than First Speed at end;
If so, judging whether the mobile terminal enters stable state in the second preset duration.
9. mobile terminal according to claim 7, it is characterised in that overboard defence program described in the computing device with Realization judges whether motion state of the mobile terminal in preset time meets that the step of default scene confirms condition includes:
When whether the translational acceleration and the displacement meet the overboard condition of the second scene, judge described mobile whole Whether end enters stable state in the 3rd preset duration.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has an overboard defence program, it is described fall Water conservation program can be by least one computing device, so as to appoint at least one computing device such as claim 1-5 The step of drowning protection method described in one.
CN201710727619.6A 2017-08-23 2017-08-23 Drowning protection method and mobile terminal Pending CN107566621A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710727619.6A CN107566621A (en) 2017-08-23 2017-08-23 Drowning protection method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710727619.6A CN107566621A (en) 2017-08-23 2017-08-23 Drowning protection method and mobile terminal

Publications (1)

Publication Number Publication Date
CN107566621A true CN107566621A (en) 2018-01-09

Family

ID=60975787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710727619.6A Pending CN107566621A (en) 2017-08-23 2017-08-23 Drowning protection method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107566621A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108471574A (en) * 2018-05-14 2018-08-31 广东小天才科技有限公司 A kind of method and electronic equipment of discharge loud speaker residual liquid
CN108769424A (en) * 2018-06-08 2018-11-06 Oppo广东移动通信有限公司 terminal drowning protection method, device, storage medium and mobile terminal
CN108833664A (en) * 2018-04-27 2018-11-16 上海爱优威软件开发有限公司 The lesion mimic method and system of terminal
CN110646638A (en) * 2019-09-29 2020-01-03 安徽创世科技股份有限公司 Helmet falling impact detection method and device
CN112232299A (en) * 2020-11-09 2021-01-15 江苏科技大学 Automatic navigation method for rescuing drowning car based on deep learning
CN115021391B (en) * 2022-07-04 2023-05-16 广州玛太电子有限公司 Multipurpose UPS removes energy storage power

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458361A (en) * 2013-08-13 2013-12-18 西安乾易企业管理咨询有限公司 Scene acquisition and identification method based on mobile terminal
CN104504623A (en) * 2014-12-29 2015-04-08 深圳市宇恒互动科技开发有限公司 Method, system and device for scene recognition according to motion sensing
CN105262908A (en) * 2015-11-24 2016-01-20 上海斐讯数据通信技术有限公司 Terminal falling-overboard protection method and system
CN105703335A (en) * 2016-04-29 2016-06-22 乐视控股(北京)有限公司 Mobile phone anti-drop self-protection method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458361A (en) * 2013-08-13 2013-12-18 西安乾易企业管理咨询有限公司 Scene acquisition and identification method based on mobile terminal
CN104504623A (en) * 2014-12-29 2015-04-08 深圳市宇恒互动科技开发有限公司 Method, system and device for scene recognition according to motion sensing
CN105262908A (en) * 2015-11-24 2016-01-20 上海斐讯数据通信技术有限公司 Terminal falling-overboard protection method and system
CN105703335A (en) * 2016-04-29 2016-06-22 乐视控股(北京)有限公司 Mobile phone anti-drop self-protection method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833664A (en) * 2018-04-27 2018-11-16 上海爱优威软件开发有限公司 The lesion mimic method and system of terminal
CN108471574A (en) * 2018-05-14 2018-08-31 广东小天才科技有限公司 A kind of method and electronic equipment of discharge loud speaker residual liquid
CN108471574B (en) * 2018-05-14 2020-12-25 广东小天才科技有限公司 Method for discharging residual liquid of loudspeaker and electronic equipment
CN108769424A (en) * 2018-06-08 2018-11-06 Oppo广东移动通信有限公司 terminal drowning protection method, device, storage medium and mobile terminal
CN108769424B (en) * 2018-06-08 2021-02-02 Oppo广东移动通信有限公司 Terminal falling-into-water protection method and device, storage medium and mobile terminal
CN110646638A (en) * 2019-09-29 2020-01-03 安徽创世科技股份有限公司 Helmet falling impact detection method and device
CN112232299A (en) * 2020-11-09 2021-01-15 江苏科技大学 Automatic navigation method for rescuing drowning car based on deep learning
CN112232299B (en) * 2020-11-09 2023-10-27 江苏科技大学 Automatic navigation method for rescuing water-falling automobile based on deep learning
CN115021391B (en) * 2022-07-04 2023-05-16 广州玛太电子有限公司 Multipurpose UPS removes energy storage power

Similar Documents

Publication Publication Date Title
CN107566621A (en) Drowning protection method and mobile terminal
CN109039862A (en) Message prompt method, terminal and computer readable storage medium
CN110198545A (en) A kind of secondary cell group adding method, terminal device and host node
CN107133092A (en) Multi-thread synchronization processing method, terminal and computer-readable recording medium
CN107895561A (en) Method, terminal and the computer-readable recording medium of a kind of intelligent bright screen and the screen that goes out
CN107395858A (en) A kind of reminding method of notification message, terminal and computer-readable recording medium
CN107046696A (en) The method and mobile terminal of a kind of communication network switching
CN107315515A (en) Color change method, terminal and the computer-readable recording medium of status bar icon
CN109195213A (en) Mobile terminal screen control method, mobile terminal and computer readable storage medium
CN109771952A (en) Based reminding method, terminal and computer readable storage medium based on game fatigue strength
CN107995353A (en) The quick control method of smart machine, terminal and computer-readable recording medium
CN107580350A (en) A kind of signal intensity switching method, equipment and computer-readable recording medium
CN109005574A (en) Cell selecting method, mobile terminal and computer readable storage medium
CN107862217A (en) A kind of location information acquisition method, mobile terminal and computer-readable storage medium
CN110187808A (en) Dynamic wallpaper setting method, device and computer readable storage medium
CN109739630A (en) Game switching method, mobile terminal and computer readable storage medium
CN109271227A (en) False-touch prevention method, apparatus and computer readable storage medium
CN109151174A (en) Message display method, wearable device and computer readable storage medium
CN108958936A (en) Application programe switch-over method, mobile terminal and computer readable storage medium
CN108156325A (en) A kind of double-sided screen Incoming-call control method, equipment and computer readable storage medium
CN110290269A (en) Display control method, mobile terminal and computer readable storage medium
CN110086939A (en) Terminal message processing method, device, mobile terminal and readable storage medium storing program for executing
CN110290261A (en) Information processing method, electronic equipment and computer readable storage medium
CN109379777A (en) A kind of network search method, terminal and computer readable storage medium
CN109101301A (en) A kind of display control method, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180109