CN105654661B - A kind of alarm control method, device and mobile terminal - Google Patents
A kind of alarm control method, device and mobile terminal Download PDFInfo
- Publication number
- CN105654661B CN105654661B CN201510466309.4A CN201510466309A CN105654661B CN 105654661 B CN105654661 B CN 105654661B CN 201510466309 A CN201510466309 A CN 201510466309A CN 105654661 B CN105654661 B CN 105654661B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- axis
- posture
- preset
- alarm
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B21/00—Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
- G08B21/02—Alarms for ensuring the safety of persons
Landscapes
- Business, Economics & Management (AREA)
- Emergency Management (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Alarm Systems (AREA)
Abstract
This application discloses a kind of alarm control method, device and mobile terminals, attitude parameter numerical value of the method based on mobile terminal analyzes the posture of mobile terminal, and when its current pose is with posture corresponding with the potential User Status of prompting demand, continue to detect whether mobile terminal meets preset alert if, finally, when detecting to meet alert if, alarm.It can be seen that, it can be on the basis of pre research goes out correspondence between User Status and mobile terminal posture using the application, by the posture for analyzing mobile terminal, to know that mobile terminal whether there is potential alarm demand for current User Status, and when there are the demand, by continuing corresponding alarm detection, finally decide whether to alarm.To which for current " race of bowing " problem, the application gives a kind of effective controlling alarm scheme, can effectively avoid a series of generation of harm caused by the problem.
Description
Technical field
The invention belongs to a kind of security protection application field more particularly to alarm control method of terminal device, device and movements
Terminal.
Background technology
With the mobile terminals such as mobile phone development with it is universal, mobile terminal in people's daily life send out by institute's role
Given birth to huge variation, from a kind of simple tool of communications, gradually develop into it is a kind of integrate communication, amusement, office it is comprehensive
Close application tool.
At the same time, people are also increasingly severe to the dependence of mobile terminal, and what is supervened is to have become hot topic at present
" race of bowing " problem of topic, and how effectively to avoid present in the problem a series of potential hazards (for example, people because it is long when
Between bow viewing mobile phone and lead to cervical vertebra ache, or because bow viewing mobile phone due to miss bus station, miss and get on and off, or even make
At traffic accident accident etc.) generation, gradually brought into schedule.
Invention content
In view of this, the purpose of the present invention is to provide a kind of alarm control method, device and mobile terminals, it is intended to be directed to
Current " race of bowing " problem, provides a kind of effective controlling alarm scheme, to avoid a series of potential present in the problem
The generation of harm.
For this purpose, the present invention is disclosed directly below technical solution:
A kind of alarm control method is applied to mobile terminal, the method includes:
The numerical value of the preset posture parameter of the mobile terminal is obtained in real time;
Based on the numerical value of the preset posture parameter, the current pose of the mobile terminal is analyzed;
It is preset when investigating posture in the current pose of the mobile terminal, continues whether to detect the mobile terminal
Meet preset alert if;Wherein, the preset posture to be investigated is opposite with the potential User Status of prompting demand
It answers;
When testing result is to meet preset alert if, controlling alarm is carried out.
The above method, it is preferred that the numerical value of the preset posture parameter for obtaining the mobile terminal in real time includes:
The acceleration of gravity for the mobile terminal that gravity sensor is detected is obtained in real time respectively in preset X-axis, Y
Acceleration component values on axis, Z axis;
Wherein, the X-axis indicates on the mobile terminal screen, and hangs down with the left and right edge line of the mobile terminal
Straight axis;The Y-axis indicates on the mobile terminal screen, and hangs down with the bottom of the mobile terminal, top edge line
Straight axis;The Z axis indicates the axis perpendicular to the mobile terminal screen, and the X-axis, Y-axis, Z axis are total to origin.
The above method, it is preferred that it is described wait investigate posture be user bow watch mobile terminal screen when it is usual oblique
It puts posture or keeps flat posture, then the numerical value based on the preset posture parameter, analyzes the current pose of the mobile terminal,
Including:
As acceleration component values g of the gravity acceleration g on the X-axis, Y-axis, Z axis of the mobile terminalX、gY、gZIt is full
Foot 0≤| gX| < | g |, 0≤| gY| < | g | and 0 < | gZ| < | g | when, the current pose for analyzing the mobile terminal is tiltedly to put
Posture:
As acceleration component values g of the gravity acceleration g on the X-axis, Y-axis, Z axis of the mobile terminalX、gY、gZIt is full
Sufficient gX=0, gY=0 and | gZ|=| g | when, the current pose for analyzing the mobile terminal is to keep flat posture.
The above method, it is preferred that the current pose in the mobile terminal is preset when investigating posture, is continued
Detect whether the mobile terminal meets preset alert if, including:
When the current pose of the mobile terminal is tiltedly to put posture or keep flat posture, detection is described so far mobile whole
Whether the screen lighting time at end reaches preset duration.
The above method, it is preferred that the current pose in the mobile terminal is preset when investigating posture, is continued
Detect whether the mobile terminal meets preset alert if, including:
When the current pose of the mobile terminal is tiltedly to put posture or keep flat posture, the current institute of the mobile terminal is detected
Whether the geographical location at place is preset prompting position.
A kind of alarm control unit, is applied to mobile terminal, and described device includes:
Parameter acquisition module, the numerical value of the preset posture parameter for obtaining the mobile terminal in real time;
Posture analysis module is used for the numerical value based on the preset posture parameter, analyzes the current appearance of the mobile terminal
State;
Alarm detection module is preset when investigating posture for the current pose in the mobile terminal, continues to examine
Survey whether the mobile terminal meets preset alert if;Wherein, the preset posture to be investigated with have potential prompting
The User Status of demand is corresponding;
Alarm control module, for when testing result is to meet preset alert if, carrying out controlling alarm.
Above-mentioned apparatus, it is preferred that the parameter acquisition module includes:
Parameter acquiring unit, the acceleration of gravity point for obtaining the mobile terminal that gravity sensor is detected in real time
Acceleration component values not on preset X-axis, Y-axis, Z axis;
Wherein, the X-axis indicates on the mobile terminal screen, and hangs down with the left and right edge line of the mobile terminal
Straight axis;The Y-axis indicates on the mobile terminal screen, and hangs down with the bottom of the mobile terminal, top edge line
Straight axis;The Z axis indicates the axis perpendicular to the mobile terminal screen, and the X-axis, Y-axis, Z axis are total to origin.
Above-mentioned apparatus, it is preferred that it is described wait investigate posture be user bow watch mobile terminal screen when it is usual oblique
It puts posture or keeps flat posture, then the posture analysis module includes:
First posture analysis unit is used for the gravity acceleration g in the mobile terminal on the X-axis, Y-axis, Z axis
Acceleration component values gX、gY、gZSatisfaction 0≤| gX| < | g |, 0≤| gY| < | g | and 0 < | gZ| < | g | when, analyze the shifting
The current pose of dynamic terminal is tiltedly to put posture:
Second posture analysis unit is used for the gravity acceleration g in the mobile terminal on the X-axis, Y-axis, Z axis
Acceleration component values gX、gY、gZMeet gX=0, gY=0 and | gZ|=| g | when, the current pose for analyzing the mobile terminal is
Keep flat posture.
Above-mentioned apparatus, it is preferred that the alarm detection module includes:
First alarm detecting unit, when for the current pose in the mobile terminal tiltedly to put posture or keeping flat posture,
Whether the screen lighting time for detecting the mobile terminal so far reaches preset duration.
Above-mentioned apparatus, it is preferred that the detection module includes:
Second alarm detecting unit, when for the current pose in the mobile terminal tiltedly to put posture or keeping flat posture,
Detect whether the geographical location that the mobile terminal is presently in is preset prompting position.
A kind of mobile terminal, including alarm control unit as described above.
As it can be seen from the above scheme alarm control method disclosed in the present application, device and mobile terminal, based on mobile terminal
Attitude parameter numerical value analyzes the posture of mobile terminal, and is and the User Status with potential prompting demand in its current pose
Corresponding posture (be, for example, user bow viewing mobile phone when usual tiltedly put posture) when, continue whether to detect mobile terminal
Meet preset alert if, finally, when detecting to meet alert if, alarms.As it can be seen that can be pre- using the application
It first works out between User Status and mobile terminal posture on the basis of correspondence, by analyzing the posture of mobile terminal, to obtain
Know that mobile terminal whether there is potential alarm demand for current User Status, and when there are potential alarm demand, leads to
Cross continue corresponding alarm detection (such as detection user bow viewing when screen lighting time whether reach preset duration
Deng), finally decide whether to alarm.To which for current " race of bowing " problem, the application gives a kind of effective report
Alert control program, can effectively avoid a series of generation of potential hazards present in the problem.
Description of the drawings
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, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is the alarm control method flow chart that the embodiment of the present invention one provides;
Fig. 2 is tri- axis schematic diagram of X, Y, Z used by the gravity sensor that the embodiment of the present invention one provides;
Fig. 3 is the structural schematic diagram of alarm control unit provided by Embodiment 2 of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Embodiment one
The present embodiment one discloses a kind of alarm control method, and the method can be applied to smart mobile phone.The shiftings such as tablet computer
Dynamic terminal, the application method use the actual conditions of mobile terminal based on people in daily life, pre research User Status with
Correspondence between mobile terminal posture, for example, bow under viewing mobile terminal screen this User Status in user, it is mobile eventually
End, which is typically in, tiltedly puts or keeps flat posture, on this basis, tool is in by analyzing the posture of mobile terminal, and in mobile terminal
When having the posture of potential alarm demand, by continuing alarm detection, finally decide whether to execute alarm.Below to the application
Method is described in detail.
With reference to figure 1, the alarm control method of the application can specifically include following steps:
S101:The numerical value of the preset posture parameter of the mobile terminal is obtained in real time.
In the present embodiment, the preset posture parameter is specially:The gravity for the mobile terminal that gravity sensor is detected adds
Speed acceleration component values on preset X-axis, Y-axis, Z axis respectively;Wherein, the X-axis indicates on mobile terminal screen,
And the axis vertical with the left and right edge line of the mobile terminal;The Y-axis indicates on the mobile terminal screen, and with
The vertical axis of the bottom of the mobile terminal, top edge line;The Z axis indicates the axis perpendicular to the mobile terminal screen
Line, the X-axis, Y-axis, Z axis are total to origin.
The present embodiment is specifically introduced the application method by taking the X-axis of Fig. 2 settings, Y-axis, Z axis as an example, wherein Fig. 2
In, the forward direction of the X-axis is left hand edge line on mobile terminal screen from the mobile terminal to the direction of right hand edge line, described
The forward direction of Y-axis is from the direction at the bottom of the mobile terminal to top on mobile terminal screen, and the forward direction of the Z axis is from shifting
Back to the direction of mobile terminal screen of dynamic terminal.
S102:Based on the numerical value of the preset posture parameter, the current pose of the mobile terminal is analyzed.
The acceleration of gravity for the mobile terminal that gravity sensor the is detected component of acceleration on tri- axis of X, Y, Z respectively
Value, can accurately reflect the posture of mobile terminal.
The X-axis of Fig. 2 of being subject to settings, Y-axis, Z axis:
Work as gX=0, gY=0 and | gZ|=| g | when (in general, g ≈ 9.8), mobile terminal is kept flat;
Work as gX=0, gZ=0 and | gY|=| g | when, mobile terminal vertical screen is placed vertically;
Work as gY=0, gZ=0 and | gX|=| g | when, mobile terminal transverse screen is placed vertically;
When 0≤| gX| < | g |, 0≤| gY| < | g | and 0 < | gZ| < | g | when, mobile terminal is tiltedly put.
Wherein, it includes following two more special postures tiltedly to put posture:
Meet gX=0,0 < | gY| < | g | and 0 < | gZ| < | g | when vertical screen tiltedly put posture, and meet gY=0,0 <
|gX| < | g | and 0 < | gZ| < | g | when transverse screen tiltedly put posture.
It should be noted that described keep flat refers specifically to mobile terminal screen and is parallel to horizontal plane, place vertically refer specifically to it is mobile eventually
Hold screen vertical in horizontal plane.
Based on this, the component of acceleration numerical value on tri- axis of X, Y, Z that this step can be provided according to gravity sensor, to divide
Analyse the current pose of mobile terminal.
S103:It is preset when investigating posture in the current pose of the mobile terminal, continues to detect described mobile whole
Whether end meets preset alert if, wherein the preset posture to be investigated and user's shape with potential prompting demand
State is corresponding.
According to user using mobile terminal when actual conditions it can be found that user bow viewing mobile terminal screen when,
Mobile terminal, which is typically in, tiltedly to be put posture (including vertical screen is tiltedly put, transverse screen is tiltedly put and other tiltedly put posture) or keeps flat posture, therefore,
For current " race of bowing " problem, the User Status with potential prompting demand is set as user and bowed viewing by the present embodiment
This state of mobile terminal screen, correspondingly, the corresponding mobile terminal posture to be investigated of the viewed status that will bow with user
It is set as tiltedly putting posture or keeps flat posture.
Based on the correspondence between each component value of acceleration provided above and mobile terminal posture, this step can pass through
gX、gY、gZValue, whether to analyze and determine mobile terminal in tiltedly putting posture or keep flat posture, and then know that user is currently
No viewing mobile terminal screen of bowing, if there are potential prompting demands.
Specifically, work as gX、gY、gZSatisfaction 0≤| gX| < | g |, 0≤| gY| < | g | and 0 < | gZ| < | g | when, it can determine whether out
The current pose of the mobile terminal is tiltedly to put posture;Work as gX、gY、gZMeet gX=0, gY=0 and | gZ|=| g | when, it can determine whether
The current pose for going out the mobile terminal is to keep flat posture, and under this two kinds of postures, User Status is viewing mobile terminal screen of bowing
Curtain, there are potential prompting demands, to caused various potential danger when watching mobile terminal screen to avoid user from bowing
Evil need to continue to detect whether mobile terminal meets preset alert if, such as the screen lighting time of detection mobile terminal is
It is no to reach preset duration, or whether the geographical location that detection mobile terminal is presently in is that there are potential dangers for crossing, station board etc.
Or the region for the demand that gets on and off, with progress and alarm.
Wherein, to know whether backlight powers on, and can specifically be led to by the driving current in detection backlight of mobile terminal source
It crosses and timing is carried out to the duration that persistently powers on of backlight, to know the concrete numerical value of mobile terminal screen lighting time.
GPS (Global Positioning then specifically can be used in detection for geographical location residing for mobile terminal
System, global positioning system) module obtains the location data of mobile terminal, such as warp, dimension numerical value residing for mobile terminal
Deng, and using location datas such as warp, the dimensions of GPS module detection, have to the label provided in server or mobile terminal
Warp, latitude information and the map in detailed geographical location inquired, to know geographical location that mobile terminal is presently in
Whether in regions such as crossing, station boards.
S104:When testing result is to meet preset alert if, controlling alarm is carried out.
When detecting that mobile terminal meets preset alert if, controlling alarm instruction is sent out, is alarmed.For example,
When detect the screen lighting time of mobile terminal reach setting duration when, characterization user bow viewing mobile terminal screen when
Between it is longer, at this point, can be rested by warning reminding user, to avoid user's cervical vertebra ache is caused;When detecting that mobile terminal works as
When the preceding regions in crossing, station board etc., attention can be withdrawn in time by warning reminding user and road conditions are checked, to avoid
Bus station is missed, misses and gets on and off or avoid accident of having a car accident etc..
As it can be seen from the above scheme attitude parameter numerical value of the application method based on mobile terminal analyzes the appearance of mobile terminal
State, and be and (be, for example, that user bows sight with the corresponding posture of the potential User Status of prompting demand in its current pose
It is usual when seeing the mobile phone tiltedly to put posture) when, continue to detect whether mobile terminal meets preset alert if, finally, examine
It measures when meeting alert if, alarms.As it can be seen that using the application User Status and mobile terminal appearance can be gone out in pre research
Between state on the basis of correspondence, by analyzing the posture of mobile terminal, to know that mobile terminal is directed to current User Status
With the presence or absence of potential alarm demand, and when there are potential alarm demand, by continue corresponding alarm detection (such as
Detection user bow viewing when screen lighting time whether reach preset duration etc.), finally decide whether to alarm.To,
For current " race of bowing " problem, the application gives a kind of effective controlling alarm scheme, can effectively avoid the problem institute
A series of generation of caused harm.
Embodiment two
The present embodiment discloses a kind of alarm control unit, and it is mobile that described device can be applied to smart mobile phone, tablet computer etc.
Terminal, with reference to figure 3, described device includes parameter acquisition module 100, posture analysis module 200, alarm detection module 300 and report
Alert control module 400.
Parameter acquisition module 100, the numerical value of the preset posture parameter for obtaining the mobile terminal in real time.
The parameter acquisition module 100 includes parameter acquiring unit, the institute detected for obtaining gravity sensor in real time
State the acceleration of gravity of the mobile terminal acceleration component values on preset X-axis, Y-axis, Z axis respectively;
Wherein, the X-axis indicates on the mobile terminal screen, and hangs down with the left and right edge line of the mobile terminal
Straight axis;The Y-axis indicates on the mobile terminal screen, and hangs down with the bottom of the mobile terminal, top edge line
Straight axis;The Z axis indicates the axis perpendicular to the mobile terminal screen, and the X-axis, Y-axis, Z axis are total to origin.
Posture analysis module 200 is used for the numerical value based on the preset posture parameter, analyzes the current of the mobile terminal
Posture.
The posture analysis module 200 includes the first posture analysis unit and the second posture analysis unit.
First posture analysis unit is used for the gravity acceleration g in the mobile terminal on the X-axis, Y-axis, Z axis
Acceleration component values gX、gY、gZSatisfaction 0≤| gX| < | g |, 0≤| gY| < | g | and 0 < | gZ| < | g | when, analyze the shifting
The current pose of dynamic terminal is tiltedly to put posture:
Second posture analysis unit is used for the gravity acceleration g in the mobile terminal on the X-axis, Y-axis, Z axis
Acceleration component values gX、gY、gZMeet gX=0, gY=0 and | gZ|=| g | when, the current pose for analyzing the mobile terminal is
Keep flat posture.
Alarm detection module 300 is preset when investigating posture for the current pose in the mobile terminal, continues
Detect whether the mobile terminal meets preset alert if;Wherein, the preset posture to be investigated is carried with potential
The User Status for the demand of waking up is corresponding.
The alarm detection module 300 includes the first alarm detecting unit, the first alarm detecting unit, in the shifting
The current pose of dynamic terminal is when tiltedly putting posture or keep flat posture, to detect the screen lighting time of the mobile terminal so far
Whether preset duration is reached.
In the application other embodiment, the alarm detection module 300 includes the second alarm detecting unit, for described
The current pose of mobile terminal is when tiltedly putting posture or keep flat posture, and detecting the geographical location that the mobile terminal is presently in is
No is preset prompting position.
Alarm control module 400, for when testing result is to meet preset alert if, carrying out controlling alarm.
For alarm control unit disclosed in the embodiment of the present invention two, since itself and the disclosed alarm of embodiment one are controlled
Method processed is corresponding, so description is fairly simple, related similarity refers to alarm control method part in embodiment one
Explanation, and will not be described here in detail.
Embodiment three
The present embodiment discloses a kind of mobile terminal, and the mobile terminal can be that the terminals such as smart mobile phone, tablet computer are set
Standby, the mobile terminal includes the alarm control unit as disclosed in embodiment two.
The mobile terminal of the present embodiment is moved by the integrated alarm control unit, it can be achieved that bowing to watch for user
The scene of dynamic terminal, effectively reminds user, for example, when user bow watch the mobile phone screen time it is longer when, use can be reminded
Family is rested, when user bow viewing mobile phone and in crossing, station board etc. there are when the region of potential danger or the demand that gets on and off,
Can remind in time user withdraw attention road conditions are checked, effectively evaded user bow viewing mobile terminal when it is existing
Various potential hazards.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment weight
Point explanation is all difference from other examples, and the same or similar parts between the embodiments can be referred to each other.
For convenience of description, it describes to be divided into various modules when system above or device with function or unit describes respectively.
Certainly, the function of each unit is realized can in the same or multiple software and or hardware when implementing the application.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can
It is realized by the mode of software plus required general hardware platform.Based on this understanding, the technical solution essence of the application
On in other words the part that contributes to existing technology can be expressed in the form of software products, the computer software product
It can be stored in a storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are used so that a computer equipment
(can be personal computer, server either network equipment etc.) executes the certain of each embodiment of the application or embodiment
Method described in part.
Finally, it is to be noted that, herein, such as first, second, third and fourth or the like relational terms
It is only used to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying these
There are any actual relationship or orders between entity or operation.Moreover, the terms "include", "comprise" or its is any
Other variants are intended to non-exclusive inclusion, so that including the process, method, article or equipment of a series of elements
Include not only those elements, but also include other elements that are not explicitly listed, or further includes for this process, side
Method, article or the intrinsic element of equipment.In the absence of more restrictions, limited by sentence "including a ..."
Element, it is not excluded that there is also other identical elements in the process, method, article or apparatus that includes the element.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (9)
1. a kind of alarm control method, which is characterized in that it is applied to mobile terminal, the method includes:
The numerical value of the preset posture parameter of the mobile terminal is obtained in real time;The preset posture parameter includes the weight of mobile terminal
Power acceleration acceleration component values on preset X-axis, Y-axis, Z axis respectively, wherein the X-axis indicate it is described it is mobile eventually
It holds on screen, and the axis vertical with the left and right edge line of the mobile terminal;The Y-axis is indicated in the mobile terminal screen
On curtain, and the axis vertical with the bottom of the mobile terminal, top edge line;The Z axis is indicated perpendicular to described mobile whole
The axis of screen is held, the X-axis, Y-axis, Z axis are total to origin;
Based on the numerical value of the preset posture parameter, judge whether the current pose of the mobile terminal is preset appearance to be investigated
Keeping flat posture or tiltedly put one of arbitrary in posture included by state;
It is keeping flat posture or oblique put posture included by preset posture to be investigated in the current pose of the mobile terminal
Arbitrarily for the moment, continue to detect whether the mobile terminal meets preset alert if;Wherein, the preset appearance to be investigated
State is corresponding with the potential User Status of prompting demand;
When testing result is to meet preset alert if, controlling alarm is carried out;
Wherein, the numerical value based on the preset posture parameter judges whether the current pose of the mobile terminal is default
Posture to be investigated included by keep flat posture or tiltedly put it is one of arbitrary in posture, including:
When acceleration component values gX, gY, gZ on the X-axis, Y-axis, Z axis of gravity acceleration g of the mobile terminal meets 0
≤ | gX | < | g |, 0≤| gY | < | g | and 0 < | gZ | < | g | when, the current pose for analyzing the mobile terminal is tiltedly to put appearance
State:
When acceleration component values gX, gY, gZ on the X-axis, Y-axis, Z axis of gravity acceleration g of the mobile terminal meets
GX=0, gY=0 and | gZ |=| g | when, analyze the mobile terminal current pose be keep flat posture.
2. according to the method described in claim 1, it is characterized in that, the preset posture ginseng for obtaining the mobile terminal in real time
Several numerical value include:
The acceleration of gravity for the mobile terminal that gravity sensor is detected is obtained in real time respectively in preset X-axis, Y-axis, Z axis
On acceleration component values.
3. according to the method described in claim 1, it is characterized in that, the current pose in the mobile terminal is preset
When investigating posture, continue to detect whether the mobile terminal meets preset alert if, including:
When the current pose of the mobile terminal is tiltedly to put posture or keep flat posture, the detection mobile terminal so far
Whether screen lighting time reaches preset duration.
4. according to the method described in claim 1, it is characterized in that, the current pose in the mobile terminal is preset
When investigating posture, continue to detect whether the mobile terminal meets preset alert if, including:
When the current pose of the mobile terminal is tiltedly to put posture or keep flat posture, detect what the mobile terminal was presently in
Whether geographical location is preset prompting position.
5. a kind of alarm control unit, which is characterized in that be applied to mobile terminal, described device includes:
Parameter acquisition module, the numerical value of the preset posture parameter for obtaining the mobile terminal in real time;The preset posture ginseng
Number includes the acceleration of gravity acceleration component values on preset X-axis, Y-axis, Z axis respectively of mobile terminal, wherein the X
Axis indicates on the mobile terminal screen, and the axis vertical with the left and right edge line of the mobile terminal;The Y-axis table
Show on the mobile terminal screen, and the axis vertical with the bottom of the mobile terminal, top edge line;The Z axis table
Show that the axis perpendicular to the mobile terminal screen, the X-axis, Y-axis, Z axis are total to origin;
Posture analysis module is used for the numerical value based on the preset posture parameter, and analyzing the current pose of the mobile terminal is
It is no for included by preset posture to be investigated keep flat posture or tiltedly put in posture one of arbitrarily;
Alarm detection module is to keep flat appearance included by preset posture to be investigated for the current pose in the mobile terminal
State or oblique arbitrary a period of time put in posture, continue to detect whether the mobile terminal meets preset alert if;Wherein, institute
It is corresponding with the potential User Status of prompting demand to state preset posture to be investigated;
Alarm control module, for when testing result is to meet preset alert if, carrying out controlling alarm;
Wherein, the posture analysis module includes:
First posture analysis unit, for acceleration of the gravity acceleration g on the X-axis, Y-axis, Z axis in the mobile terminal
Degree component value gX, gY, gZ satisfaction 0≤| gX | < | g |, 0≤| gY | < | g | and 0 < | gZ | < | when g, analyze described mobile whole
The current pose at end is tiltedly to put posture:
Second posture analysis unit, for acceleration of the gravity acceleration g on the X-axis, Y-axis, Z axis in the mobile terminal
Degree component value gX, gY, gZ meet gX=0, gY=0 and | gZ |=| g | when, the current pose for analyzing the mobile terminal is flat
Put posture.
6. device according to claim 5, which is characterized in that the parameter acquisition module includes:
Parameter acquiring unit, the acceleration of gravity for obtaining the mobile terminal that gravity sensor is detected in real time exist respectively
Preset X-axis, Y-axis, the acceleration component values on Z axis.
7. device according to claim 5, which is characterized in that the alarm detection module includes:
First alarm detecting unit is detection when tiltedly putting posture or keep flat posture for the current pose in the mobile terminal
Whether the screen lighting time of the mobile terminal reaches preset duration so far.
8. device according to claim 5, which is characterized in that the detection module includes:
Second alarm detecting unit is detection when tiltedly putting posture or keep flat posture for the current pose in the mobile terminal
Whether the geographical location that the mobile terminal is presently in is preset prompting position.
9. a kind of mobile terminal, which is characterized in that include the alarm control unit as described in claim 5-8 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510466309.4A CN105654661B (en) | 2015-07-31 | 2015-07-31 | A kind of alarm control method, device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510466309.4A CN105654661B (en) | 2015-07-31 | 2015-07-31 | A kind of alarm control method, device and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105654661A CN105654661A (en) | 2016-06-08 |
CN105654661B true CN105654661B (en) | 2018-11-06 |
Family
ID=56482084
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510466309.4A Expired - Fee Related CN105654661B (en) | 2015-07-31 | 2015-07-31 | A kind of alarm control method, device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105654661B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106060273A (en) * | 2016-07-15 | 2016-10-26 | 中霆云计算科技(上海)有限公司 | Data processing method and device capable of enhancing use security, and mobile terminal |
CN108089729A (en) * | 2016-11-23 | 2018-05-29 | 中兴通讯股份有限公司 | Terminal and its method for realizing reading posture detection |
CN108898795B (en) * | 2018-06-12 | 2020-03-27 | 广州小鹏汽车科技有限公司 | Pedestrian state real-time analysis method and system based on mobile device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102375581B (en) * | 2010-08-11 | 2016-06-08 | 深圳富泰宏精密工业有限公司 | Touch type electronic device and the method improving its touch accuracy |
KR20130035483A (en) * | 2011-09-30 | 2013-04-09 | 삼성전자주식회사 | Apparatus and method for perceiving heading change in mobile terminal |
CN103108080A (en) * | 2013-01-21 | 2013-05-15 | 深圳市金立通信设备有限公司 | Video playing control method and mobile terminal |
CN103472992A (en) * | 2013-08-29 | 2013-12-25 | 广东欧珀移动通信有限公司 | Method of dynamically adjusting shoot button and mobile terminal |
CN104424771B (en) * | 2013-09-10 | 2018-07-06 | 南京中兴软件有限责任公司 | A kind of alarm method and device |
CN104202466B (en) * | 2014-08-19 | 2019-04-02 | 厦门美图移动科技有限公司 | A kind of method for carrying out safety instruction using mobile phone in traveling |
-
2015
- 2015-07-31 CN CN201510466309.4A patent/CN105654661B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN105654661A (en) | 2016-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105654661B (en) | A kind of alarm control method, device and mobile terminal | |
US20220163348A1 (en) | Positioning method and electronic device | |
CN112014850B (en) | Method for judging read-write state based on laser ranging sensor and mobile device | |
CN106773626A (en) | A kind of watch and sitting-posture correction device and method | |
CN103093335B (en) | A kind of method and device reminding user | |
CN103400476A (en) | Sitting posture reminding method and device | |
CN105069976A (en) | Integrated fatigue detection and driving record system and fatigue detection method | |
CN103760971A (en) | Eye protection method and system when using electronic device | |
CN104751531A (en) | Patrol control apparatus, system and method thereof | |
CN107797652B (en) | Method, device and terminal for adjusting display effect | |
CN102723003A (en) | Reading state reminding method and mobile terminal | |
CN106488014A (en) | The safety prompt function method and system of mobile terminal | |
CN108200293B (en) | Terminal falling water protection method and device | |
CN104459346A (en) | Wearable device and system achieving electromagnetic radiation detection based on wearable device | |
WO2014160372A1 (en) | User interface for object tracking | |
CN207300309U (en) | A kind of UAV system based on soil information monitoring analysis | |
CN103323378A (en) | PM2.5 monitoring method and system | |
CN105827811B (en) | A kind of theft preventing method, mobile terminal and wearable device | |
CN107577410A (en) | The lighting method and device of wearable device display screen | |
CN107343100B (en) | Information prompting method and device, storage medium and electronic equipment | |
CN204904514U (en) | Tired record integrated system that detects and travel | |
CN105718058A (en) | Sensitivity-adjusting eyesight inspection apparatus | |
CN110800278B (en) | Call processing method and related product | |
CN110263037A (en) | Catering trade on-line monitoring platform | |
CN104865593A (en) | Local earthquake prediction system based on terrestrial magnetism deflection monitoring |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20181106 Termination date: 20210731 |