A kind of terminal drowning protection method and system
Technical field
The present invention relates to field of terminal technology more particularly to a kind of terminal drowning protection method and systems.
Background technology
Mobile phone is that people use to obtain very universal communication device, all takes take with oneself at any time, but due to accidentally or use
Accidentally, the mobile phone of frequent someone is by overboard or water inlet, after mobile phone intakes or is overboard, since water is conductor, it is easy to cause hand
The element short of mounted circuit board and damage, cause certain loss.
Existing technology is to detect the action of mobile phone to determine whether falling into water by acceleration transducer.
Existing technical disadvantages are:
1, it can not accurately judge whether mobile phone will fall into water, if the lower section that mobile phone falls is soft objects, that
It is not necessary to protection system be opened, because the unnecessary loss of data can be caused instead in this way.
2, can only be detected whether in the case where mobile phone has contacted water in water to be fallen into, cannot just into upstream face it
Before detect whether in water to be fallen into.
3, it cannot accurately detect under this condition:Water shortage detects to obtain condition to meet to fall, but still reaches pair
The amount that mobile phone damages.
Invention content
The first object of the present invention is to provide a kind of terminal drowning protection method, falls shape by monitoring terminal and whether being in
State, whether have liquid, if there is then starting overboard protection if then monitoring on terminal moving direction.
The second object of the present invention is to provide a kind of system according to above-mentioned terminal drowning protection method.
In order to realize the first object of the present invention, the present invention is achieved by the following technical solutions:
A kind of terminal drowning protection method, includes the following steps:
Whether S1, real-time monitoring terminal are in state is fallen, if so, executing step S2;
Whether there is liquid on S2, monitoring terminal moving direction, if so, step S3 is executed, if it is not, executing step S1;
S3, start overboard protection.
Further, in the step S1, fall condition adjudgement through the following steps that detect:
S11, the gravity direction for measuring terminal;
S12, detection terminal gravity direction on acceleration whether be more than predetermined acceleration, if so, judging that terminal is in
Fall state, if it is not, terminal, which is in non-, falls state.
Further, it in the step S2, monitors also to follow the steps below after there is liquid on terminal moving direction:
The distance between S21, real-time detection terminal and liquid surface, judge whether the distance is less than pre-determined distance, if
It is to execute step S3.
Further, after there is liquid on monitoring terminal moving direction, also the data in terminal are preserved.
Further, the acceleration of terminal is monitored by acceleration transducer, and the gravity direction of terminal passes through level meter
It measures, monitors and whether detected by ultrasonic sensor with liquid on terminal moving direction.
Further, the drowning protection method is turned off end cell power supply or opens emergency protection air bag.
In order to realize the second object of the present invention, the present invention is achieved by the following technical solutions:
A kind of system according to above-mentioned terminal drowning protection method, including terminal, the terminal include with lower component:
Central processing unit, for coordinating each component working and it is determined whether to enable overboard protections;
Acceleration transducer, the acceleration for monitoring terminal;
Acceleration monitoring module, for acceleration transducer is detected signal is converted to digital quantity;
Level meter, for monitoring whether terminal is in horizontality:
Gravity direction monitoring modular judges gravity direction for receiving level meter signal;
Ultrasonic sensor, for monitoring the object signal on terminal moving direction;
Liquid monitoring module judges whether there is liquid on terminal moving direction for receiving ultrasonic sensor signal;
Overboard protective device, the overboard defencive function for opening terminal;
The central processing unit is connect by acceleration monitoring module with acceleration transducer, and the central processing unit is also logical
It crosses gravity direction monitoring modular to connect with level meter, the central processing unit also passes through liquid monitoring module and ultrasonic sensor
Connection, the central processing unit are also connect with overboard protective device.
Further, the terminal further includes with lower component:
Apart from monitoring modular, for monitoring the distance between terminal and liquid surface;
Whether comparison module is less than pre-determined distance and gravity direction for the distance between comparison terminal and liquid surface
On acceleration whether be more than predetermined acceleration;
The comparison module is connect with the central processing unit, described to be connected to central processing unit apart from monitoring modular and surpass
Between sonic sensor.
Further, the overboard protective device includes battery runs down module, the battery runs down module and the center
Processor connects.
Further, overboard protective device further includes the emergency protection air bag being mounted in terminal, the emergency protection gas
Capsule is connect with the central processing unit.
The present invention falls state by monitoring terminal first and whether being in, if falling state, then monitor terminal movement
Whether there is liquid on direction, terminal starts overboard protection if with liquid.
In this way, fallen when on the soft interface such as sofa, sheet in terminal, will not because opening overboard protection and
Loss of data is caused, and since terminal can monitor whether to fall into water in advance, so overboard guarantor can be opened in advance
Shield state improves the shortcomings that overboard protection could be opened after only falling into the water in the prior art.
Description of the drawings
Invention is further described in detail with reference to the accompanying drawings and detailed description:
Fig. 1 is the method schematic of the terminal drowning protection method of the present invention;
Fig. 2 is the structure diagram of the overboard protection system of terminal of the present invention.
Reference sign, 1, central processing unit, 2, acceleration transducer, 3, acceleration monitoring module, 4, level meter, 5,
Gravity direction monitoring modular, 6, ultrasonic sensor, 7, liquid monitoring module, 8, overboard protective device, 9, apart from monitoring modular,
10, comparison module, 81, battery runs down module, 82, emergency protection air bag.
Specific implementation mode
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, following description and accompanying drawings are for the present invention
It is exemplary, and is understood not to the limitation present invention.Following description describe numerous details to facilitate to this hair
Sensible solution.However, in some instances, well known or conventional details does not specify simultaneously, to meet the succinct requirement of specification.
As shown in fig.1, a kind of terminal drowning protection method, includes the following steps:
Whether S1, real-time monitoring terminal are in state is fallen, if so, executing step S2;The terminal can be mobile phone, tablet
Or other electronic equipments.Falling state can jointly be measured by acceleration transducer, gravity sensor.
Whether there is liquid on S2, monitoring terminal moving direction, if so, step S3 is executed, if it is not, executing step S1;
S3, start overboard protection;The drowning protection method can be turned off end cell power supply or open emergency protection gas
Capsule or other drowning protection methods in the prior art.
The present invention falls state by monitoring terminal first and whether being in, if falling state, then monitor terminal movement
Whether there is liquid on direction, terminal starts overboard protection if with liquid.In this way, being fallen in sand in terminal
When on the softness such as hair, sheet interface, loss of data will not be caused because overboard protection is opened, and since terminal can shift to an earlier date
It monitors whether to fall into water, so overboard guard mode can be opened in advance, improves and only fall with water in the prior art
In after the shortcomings that could opening overboard protection, and general user fast moves or throws with terminal to play and will not open in the process
Move overboard protection.
In the present embodiment, in the step S1, fall condition adjudgement through the following steps that detect:
S11, the gravity direction for measuring terminal;The gravity direction can be measured by level meter or gravity sensor.
S12, detection terminal gravity direction on acceleration whether be more than predetermined acceleration, if so, judging that terminal is in
Fall state, if it is not, terminal, which is in non-, falls state.Acceleration can be measured by acceleration transducer.
In step S2, it is by ultrasonic sensor or liquid detecting instrument that whether monitor on terminal moving direction, which has liquid,
It measures.After this step, terminal can also preserve the currently running information of mobile phone.
It monitors also to follow the steps below after there is liquid on terminal moving direction in step S2:
The distance between S21, real-time detection terminal and liquid surface, judge whether the distance is less than pre-determined distance, if
It is to execute step S3.Between terminal drops into minimum range of the distance into liquid, system does not enable overboard protection temporarily,
When can catch mobile phone to prevent user and mobile phone has powered off and has caused unnecessary data degradation.Simultaneously can prevent user by
The erroneous judgement of system when terminal works in liquid surface and is not close apart from liquid surface.And monitoring terminal movement
After having liquid on direction, system also promptly preserves the data in terminal, after being fallen into liquid to prevent terminal, data
Loss completely, the information in the terminal of part can be preserved by this method.
As shown in fig.2, a kind of overboard protection system of terminal, including terminal, terminal include with lower component:
Central processing unit 1, for coordinating each component working and it is determined whether to enable overboard protections;
Acceleration transducer 2, the acceleration for monitoring terminal;
Acceleration monitoring module 3, for acceleration transducer 2 is detected signal is converted to digital quantity;
Level meter 4, for monitoring whether terminal is in horizontality:
Gravity direction monitoring modular 5 judges gravity direction for receiving 4 signal of level meter;
Ultrasonic sensor 6, for monitoring the object signal on terminal moving direction;
Liquid monitoring module 7 judges whether there is liquid on terminal moving direction for receiving 6 signal of ultrasonic sensor;
Overboard protective device 8, the overboard defencive function for opening terminal;
Apart from monitoring modular 9, for monitoring the distance between terminal and liquid surface;
Whether comparison module 10 is less than pre-determined distance and gravity side for the distance between comparison terminal and liquid surface
Whether upward acceleration is more than predetermined acceleration;
Central processing unit 1 is connect by acceleration monitoring module 3 with acceleration transducer 2, and central processing unit 1 also passes through weight
Force direction monitoring modular 5 is connect with level meter 4, and central processing unit 1 is also connected by liquid monitoring module 7 and ultrasonic sensor 6
It connects, central processing unit 1 is also connect with overboard protective device 8.Comparison module 10 is connect with central processing unit 1, apart from monitoring modular 9
It is connected between central processing unit 1 and ultrasonic sensor 6.
Level meter 4 measures the horizontal signal of terminal first, and determines gravity direction by gravity direction monitoring modular 5, adds
The acceleration of the terminal is decomposed, is obtained by the acceleration of 2 real-time monitoring terminal of velocity sensor, acceleration monitoring module 3
Acceleration on to gravity direction, and be sent to comparison module 10 and compare, when the acceleration on the gravity direction of terminal is more than in advance
If when acceleration, 1 judgment means of central processing unit, which come into, falls state, at this point, ultrasonic sensor 6 is started to work, hair
Ultrasonic signal is sent, liquid monitoring module 7, which receives, returns on acoustic signals detection terminal moving direction whether have liquid, works as liquid
When monitoring modular 7 judges to have liquid on terminal moving direction, the acoustic signals that are returned by real-time reception apart from monitoring modular 9 with
Terminal is monitored at a distance from liquid surface.The monitoring distance of calculating is sent to comparison module 10 apart from monitoring modular 9.Meanwhile
1 control terminal of central processing unit promptly preserves the information in system.When monitoring distance is less than pre-determined distance, centre
Reason device 1 controls the startup of overboard protective device 8, mobile terminal power-off.
In the present embodiment, overboard protective device 8 includes battery runs down module 81, battery runs down module 81 and central processing
Device 1 connects.Overboard protective device 8 further includes the emergency protection air bag 82 being mounted in terminal, emergency protection air bag 82 and center
Processor 1 connects.Short circuit burns out circuit board, emergency protection after battery runs down module 81 is used to prevent terminal from intaking for terminal power-off
Air bag 82 is used to prevent terminal from sinking under water, or slows down terminal sinking.
It should be noted that above-described embodiment can be freely combined as needed.The above is only the preferred of the present invention
Embodiment, it is noted that for those skilled in the art, in the premise for not departing from the principle of the invention
Under, several omissions, improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.