A kind of method and device that prevents short circuit of handheld terminal
Technical field
The present invention relates to a kind of handheld terminal, relate in particular to a kind of method and device that prevents short circuit of handheld terminal.
Background technology
In prior art, handheld terminal all adopts powered battery, Fig. 3 is handheld terminal theory diagram in prior art, as shown in Figure 3, current handheld terminal generally comprises: central processing unit, baseband chip, radio frequency chip, preamplifier, power amplifier, duplexer, microphone, loudspeaker, keyboard, display screen, power management module, battery, and various functional modules, complete the functions such as voice call, short message, video, met the demand of different user.
When handheld terminal falls or after user initiatively falls out and fall earthward, may be that shell is damaged, and basic function can also be used, but if handheld terminal falls in water, its hardware circuit is because power supply is still in power supply, will produce short circuit phenomenon, cause device seriously to be burnt, handheld terminal permanent damages, brings the loss that cannot repair to user.
Summary of the invention
The deficiency existing in order to solve prior art, the object of the present invention is to provide a kind of method and device that prevents short circuit of handheld terminal, according to handheld terminal, move the acceleration of generation, and mobile displacement information, cut off powered battery, farthest reduce handheld terminal is damaged.
For achieving the above object, a kind of method that prevents short circuit of handheld terminal provided by the invention, the method comprises the following steps:
1) obtain the acceleration information that handheld terminal moves, and generate displacement information;
2) displacement of moving when handheld terminal is more than or equal to displacement preset value, and acceleration is while being still more than or equal to acceleration preset value, cuts off powered battery, closes handheld terminal.
Wherein, described step 1) in generate displacement information, be according to the acceleration information of handheld terminal motion and traveling time Information generation by acceleration processing module.
Wherein, described step 2) in the acceleration preset value value that is acceleration of gravity.
For achieving the above object, a kind of device that prevents short circuit of handheld terminal provided by the invention, this device comprises CPU module, acceleration monitoring module, acceleration processing module, power switch, supplying cell, power management module, and handheld terminal functional module, wherein
Described CPU module, respectively with described acceleration monitoring module, described acceleration processing module, described power switch, and described handheld terminal functional module connection, for controlling disconnection and the connection of described power switch, and the work of described handheld terminal functional module;
Described acceleration monitoring module, connects respectively described CPU module and described acceleration processing module, and the acceleration information of the handheld terminal motion of obtaining is sent to respectively to described CPU module and described acceleration processing module;
Described acceleration processing module, connect respectively described CPU module and described acceleration monitoring module, receive the acceleration information of the handheld terminal motion of described acceleration monitoring module transmission, and the handheld terminal run duration information of described CPU module transmission, and the displacement information of handheld terminal motion is sent to described CPU module;
Described power switch, connects respectively described CPU module, described supplying cell and described power management module, receives the power supply control information that described CPU module sends, and cuts off the power supply of described supplying cell to described power management module;
Described supplying cell, is connected with described power management module by described power switch, for described power management module provides handheld terminal work needed power supply;
Described power management module, is connected with described supplying cell by described power switch, for the work of described handheld terminal functional module provides the power supply of different voltages;
Described handheld terminal functional module, connects described CPU module, accepts the control of described CPU module, completes the basic function of handheld terminal.
Wherein, described CPU module receives the acceleration information that handheld terminal that described acceleration monitoring module sends moves, and itself and acceleration preset value are compared, when the acceleration moving when handheld terminal is still more than or equal to acceleration preset value, to described acceleration processing module, send handheld terminal run duration information.
Wherein, described CPU module receives the displacement information of the handheld terminal motion of described acceleration processing module transmission, and itself and displacement preset value are compared, the displacement of moving when handheld terminal is more than or equal to displacement preset value, and when acceleration is still more than or equal to acceleration preset value, to described power switch, send power supply control information, cut off the power supply of described supplying cell to described power management module.
Wherein, described acceleration monitoring module is acceleration transducer.
Adopt method and the device that prevents short circuit of handheld terminal of the present invention, when handheld terminal falls, by acceleration transducer (G-SENSOR), can obtain the acceleration that a handheld terminal moves, pass through acceleration, we can calculate the displacement of mobile phone, when displacement reaches us, expect that the value set and acceleration are always when being more than or equal to preset value, handheld terminal will be closed automatically, and cut off powered battery, prevent from falling into the water, cause mobile phone hardware short circuit.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, or understand by implementing the present invention.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for specification, and together with embodiments of the present invention, for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the method flow diagram that prevents short circuit of handheld terminal according to of the present invention;
Fig. 2 is the principle of device block diagram that prevents short circuit of handheld terminal according to of the present invention;
Fig. 3 is handheld terminal theory diagram in prior art.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein, only for description and interpretation the present invention, is not intended to limit the present invention.
Fig. 1 is the method flow diagram that prevents short circuit of handheld terminal according to of the present invention, below with reference to Fig. 1, the method that prevents short circuit of handheld terminal of the present invention is described in detail:
First, in step 101, obtain the acceleration information of handheld terminal motion.In this step, adopt acceleration transducer (G-SENSOR) as acceleration monitoring module 102, the acceleration of handheld terminal motion to be monitored, and the acceleration information of the handheld terminal motion of obtaining is sent to respectively to CPU module 101 and acceleration processing module 103.
In step 102, the acceleration of handheld terminal motion is judged, if the acceleration of handheld terminal motion is more than or equal to user's acceleration preset value, enters step 103, otherwise forward step 107 to.User's acceleration preset value is preferably acceleration of gravity (9.8m/ss).In this step, be that the acceleration to handheld terminal motion and user's acceleration preset value compare by CPU module 101.
In step 103, generate the displacement information of handheld terminal motion, acceleration processing module 103 according to come from acceleration monitoring module 102 handheld terminal motion acceleration and come from CPU module 101 run duration Information generations and go out the displacement of handheld terminal motion.
In step 104, displacement to handheld terminal motion judges, the displacement that CPU module 101 is moved handheld terminal and user's displacement preset value comparison, if the displacement of handheld terminal motion is more than or equal to user's displacement preset value, enter step 105, otherwise forward step 107 to.
In step 105, again the acceleration of handheld terminal motion is judged, the acceleration that CPU module 101 is moved to handheld terminal again and user's acceleration preset value compare, if the acceleration of now handheld terminal motion is still more than or equal to user's acceleration preset value, enter step 106, otherwise forward step 107 to.
In step 106, CPU module sends power supply control information to power switch 104, cuts off powered battery.
In step 107, handheld terminal keeps open state.
Fig. 2 is the principle of device block diagram that prevents short circuit of handheld terminal according to of the present invention, as shown in Figure 2, the device that prevents short circuit of handheld terminal of the present invention, comprises CPU module 101, acceleration monitoring module 102, acceleration processing module 103, power switch 104, supplying cell 105, power management module 106, and handheld terminal functional module 107, wherein:
CPU module 101, respectively with acceleration monitoring module 102, acceleration processing module 103, power switch 104, and handheld terminal functional module 107 connects, receive the acceleration information of handheld terminal motion and the displacement information of the handheld terminal motion that acceleration processing module 103 sends that acceleration monitoring module 102 sends; Handheld terminal run duration information is sent to acceleration processing module 103; Send power supply control information to power switch 104, control disconnection and the connection of power switch 104; Control the function action that handheld terminal functional module 107 completes handheld terminal.
Acceleration monitoring module 102, connects respectively CPU module 101 and acceleration processing module 103, and the acceleration information of the handheld terminal motion of obtaining is sent to respectively to CPU module 101 and acceleration processing module 103.Preferably, adopt acceleration transducer as acceleration monitoring module 102, to obtain the acceleration information of handheld terminal motion.
Acceleration processing module 103, connect respectively CPU module 101 and acceleration monitoring module 102, the acceleration information of the handheld terminal motion that reception acceleration monitoring module 102 sends, and the handheld terminal run duration information that sends of CPU module 101, and the displacement information of handheld terminal motion is sent to CPU module 101.
Power switch 104, connects respectively CPU module 101, supplying cell 105 and power management module 106, receives the power supply control information that CPU module 101 sends, and cuts off the circuit that supplying cell 105 is powered to power management module 106.
Supplying cell 105, is connected with power management module 106 by power switch 104, for power management module 106 provides the power supply of handheld terminal work.
Power management module 106, is connected with supplying cell 105 by power switch 104, for handheld terminal functional module 107 provides different operating voltages.
Handheld terminal functional module 107, connects CPU module 101, accepts the control of CPU module 101, completes the basic function of handheld terminal.
One of ordinary skill in the art will appreciate that: the foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, although the present invention is had been described in detail with reference to previous embodiment, for a person skilled in the art, its technical scheme that still can record aforementioned each embodiment be modified, or part technical characterictic is wherein equal to replacement.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.