CN106385493A - Gravity sensor registration method and device, and mobile terminal - Google Patents
Gravity sensor registration method and device, and mobile terminal Download PDFInfo
- Publication number
- CN106385493A CN106385493A CN201610806727.8A CN201610806727A CN106385493A CN 106385493 A CN106385493 A CN 106385493A CN 201610806727 A CN201610806727 A CN 201610806727A CN 106385493 A CN106385493 A CN 106385493A
- Authority
- CN
- China
- Prior art keywords
- gravity sensor
- terminal
- light intensity
- ambient light
- less
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0251—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The embodiment of the invention discloses a gravity sensor registration method and device, and a mobile terminal. The method comprises: obtaining the environment light intensity of the environment where the terminal is located; determining whether the environment light intensity is smaller than a preset environment light intensity or not; if the environment light intensity is smaller than the preset environment light intensity, obtaining the distance between the terminal and a shielding object; determining whether the distance is smaller than a preset distance threshold or not; and if the distance is smaller than the preset distance threshold, forbidding the application and registration of the gravity sensor. When the terminal has no the falling risk, the gravity sensor registration method and device and the mobile terminal forbid the application and registration of the gravity sensor so as to reduce the power consumption of the terminal.
Description
Technical field
The present invention relates to field of terminal technology is and in particular to a kind of gravity sensor register method, device and mobile terminal.
Background technology
With the development of terminal technology, the use of various mobile terminals such as smart mobile phone is increasingly popularized, and smart mobile phone is
Become indispensable means of communication in people's life.
During the use of the terminals such as smart mobile phone, user easily leads to mobile phone to fall because of imprudence.Now, terminal
Typically detect the event of falling by gravity sensor, the therefore application in terminal only has holding persistence registration gravity sensor
Related drop information could be obtained the very first time.The registration behavior of this persistence can lead to power consumption of terminal to increase.Such as work as end
When end is in airtight space (in pocket or knapsack), now terminal can't be fallen, if now still allowing application to continue
Property registration gravity sensor, it will lead to power consumption of terminal increase.
Content of the invention
The embodiment of the present invention provides a kind of gravity sensor register method, device and mobile terminal, can solve existing
The big technical problem of gravity sensor register method power consumption.
The embodiment of the present invention provides a kind of gravity sensor register method, including:
Obtain the ambient light intensity that terminal is presently in environment;
Judge described ambient light intensity whether less than default ambient light intensity;
Such as less than preset ambient light intensity, then obtain the distance between described terminal and shelter;
Judge whether described distance is less than predeterminable range threshold value;
Such as less than predeterminable range threshold value, then forbid application registration gravity sensor.
The embodiment of the present invention additionally provides a kind of gravity sensor register device, including:
First acquisition module, is presently in the ambient light intensity of environment for obtaining terminal;
Whether the first judge module, for judging described ambient light intensity less than default ambient light intensity;
Second acquisition module, for when less than default ambient light intensity, obtain between described terminal and shelter away from
From;
Second judge module, for judging whether described distance is less than predeterminable range threshold value;
First disabled module, for when less than predeterminable range threshold value, forbidding application registration gravity sensor.
The embodiment of the present invention additionally provides a kind of mobile terminal, including gravity sensor, and with described gravity sensor
The gravity sensor register device connecting, wherein, described gravity sensor register device includes:
First acquisition module, is presently in the ambient light intensity of environment for obtaining terminal;
Whether the first judge module, for judging described ambient light intensity less than default ambient light intensity;
Second acquisition module, for when less than default ambient light intensity, obtain between described terminal and shelter away from
From;
Second judge module, for judging whether described distance is less than predeterminable range threshold value;
First disabled module, for when less than predeterminable range threshold value, forbidding application registration gravity sensor.
The embodiment of the present invention is presently in the ambient light intensity of environment using obtaining terminal;Judge whether ambient light intensity is little
In default ambient light intensity;As ambient light intensity is less than default ambient light intensity, then obtain the distance between terminal and shelter;
Whether judging distance is less than predeterminable range threshold value;Such as less than predeterminable range threshold value, then forbid application registration gravity sensor.The party
Case falls risk by judging whether terminal has, and to decide whether to allow application registration gravity sensor, thus selective
Ground Register Sensor, and then reduce power consumption of terminal.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, will make to required in embodiment description below
Accompanying drawing be briefly described it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those skilled in the art, on the premise of not paying creative work, can also be obtained other attached according to these accompanying drawings
Figure.
The flow chart of the first gravity sensor register method that Fig. 1 provides for the embodiment of the present invention one.
The flow chart of the second gravity sensor register method that Fig. 2 provides for the embodiment of the present invention two.
The schematic diagram of a scenario of the second gravity sensor register method that Fig. 3 provides for the embodiment of the present invention two.
A kind of structural representation of gravity sensor register device that Fig. 4 provides for the embodiment of the present invention three.
A kind of structural representation of mobile terminal that Fig. 5 provides for the embodiment of the present invention four.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, the every other enforcement that those skilled in the art are obtained under the premise of not making creative work
Example, broadly falls into the scope of protection of the invention.
Term " first ", " second ", " the 3rd " and " the 4th " in the present invention etc. is for distinguishing different objects, rather than
For describing particular order.Additionally, term " comprising " and " having " and their any deformation are it is intended that cover non-exclusive
Comprise.For example contain what process, method, system, product or the equipment of series of steps or unit were not limited to have listed
Step or unit, but alternatively also include step or the unit do not listed, or alternatively also include for these processes, side
Method, product or the intrinsic other steps of equipment or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can be wrapped in conjunction with the embodiments
It is contained at least one embodiment of the present invention.Each position in the description occur this phrase might not each mean identical
Embodiment, be not and the independent of other embodiments mutual exclusion or alternative embodiment.Those skilled in the art explicitly and
Implicitly it is understood by, embodiment described herein can be combined with other embodiments.
The executive agent of gravity sensor register method provided in an embodiment of the present invention, can provide for the embodiment of the present invention
Gravity sensor register device, or be integrated with the terminal of described gravity sensor register device, described gravity sensor note
List device can be realized in the way of using hardware or software;Terminal described by the embodiment of the present invention can be passed with gravity
The smart mobile phone (as Android phone, Windows Phone mobile phone etc.) of sensor, panel computer, palm PC, notebook electricity
The mobile devices such as brain, mobile internet device (MID, Mobile Internet Devices) or Wearable, above-mentioned terminal
It is only citing, and non exhaustive, including but not limited to above-mentioned terminal.
The embodiment of the present invention provides a kind of gravity sensor register method, device and mobile terminal.Carried out respectively below
Describe in detail.
Embodiment one,
Angle from gravity sensor register device is described by the present embodiment, and this gravity sensor register device is concrete
Can in the form of software or hardware integrated in the terminal, this terminal can be to have smart mobile phone, the flat board of gravity sensor
Apparatus such as computer.
Refer to Fig. 1, Fig. 1 is the flow chart of the first gravity sensor register method provided in an embodiment of the present invention.Should
Method is used for controlling the registration to gravity sensor, and concrete steps include:Obtain the ambient light intensity that terminal is presently in environment;
Judge ambient light intensity whether less than default ambient light intensity;As ambient light intensity is less than default ambient light intensity, then obtain eventually
The distance between end and shelter;Whether judging distance is less than predeterminable range threshold value;Such as less than predeterminable range threshold value, then forbidding should
With registering gravity sensor.
Below each step of the gravity sensor register method of the embodiment of the present invention is described in detail.
101st, obtain the ambient light intensity that terminal is presently in environment.
During using terminals such as mobile phone, panel computers, due to being difficult to avoid that, falling of terminal is touched, therefore terminal should
With needing routinely to register gravity sensor, fall event to detect.Gravity sensor is routinely registered in this application
Behavior will greatly improve power consumption of terminal.
Understand, when terminal is in relatively airtight space (such as pocket, in knapsack), to be generally not present through researching and analysing
The risk fallen, now should forbid application registration gravity sensor;And work as terminal and be placed on the relatively more open space such as tables and chairs
When, easily fallen on the ground, now should be allowed application registration gravity sensor.Therefore can there is choosing by the environment according to residing for terminal
The permission application registration gravity sensor selected, to reduce power consumption of terminal.
It is apparent from through analysis, confined space is compared with open space, and confined space light is weaker.Therefore can be according to terminal
The ambient light power of local environment tentatively to judge that terminal is in confined space or open space.Specifically, light can be passed through
Line sensor carrys out the ambient light intensity of detection terminal local environment.
102nd, judge this ambient light intensity whether less than default ambient light intensity.
In general, the ambient light intensity in the airtight space such as pocket, knapsack is close to 0, and because pocket etc. has opening,
Therefore can be not especially limited according to the default ambient light intensity of practical situation setting herein.
Specifically, this ambient light intensity of terminal judges, whether less than default ambient light intensity, is such as not less than default ambient light
Intensity, then proceed to step 103;Such as less than preset ambient light intensity, then proceed to step 102.
103rd, such as this ambient light intensity is less than default ambient light intensity, then obtain the distance between this terminal and shelter;
Judge whether this distance is less than predeterminable range threshold value;Such as less than predeterminable range threshold value, then forbid application registration gravity sensor.
Although the confined spaces such as pocket, suitcase have the characteristics that ambient light is weaker, can not light with ambient light weaker this
Feature is in pocket, the such confined space of suitcase assert terminal.As terminal is placed on little black room, or it is placed at dark
Terminal on desk, the ambient light of its local environment is all weaker.Through further analysis understand, when terminal be located at pocket,
During the confined spaces such as suitcase, can contact with shelters such as pockets, therefore can be by obtaining the distance between terminal and shelter
To judge whether terminal is in the particular encapsulated such as pocket space.
Due to, when terminal is in the particular encapsulated space such as pocket, between the terminal recording in theory and barrier away from
From for 0 centimetre, therefore predeterminable range can be could be arranged to 0 centimetre, if considering error, 1 can also be set to simultaneously
Centimetre, 2 centimetres, 3 centimetres, specifically can be arranged according to practical situation, be not especially limited herein.The distance detecting when terminal
Less than predeterminable range threshold value, illustrate that terminal is in the particular encapsulated such as pocket space, therefore should forbid application registration gravity sensor,
To reduce power consumption of terminal.
104th, such as this ambient light intensity is not less than default ambient light intensity, then obtain this terminal and the object carrying this terminal
Contact area between surface;Judge whether this contact area meets pre-conditioned;As pre-conditioned in met, then allow application note
Volume gravity sensor;As pre-conditioned in being unsatisfactory for, then forbid application registration gravity sensor.
When ambient light intensity is not less than default ambient light intensity, illustrate that terminal is located in open space.If terminal quilt
It is placed on desk, when whole terminal is all placed on the table, it is generally not present the risk fallen;And work as terminal and only have part
It is placed on desktop, when another part is in vacant state, a touching terminal may will be made to fall.For this situation, can obtain
Take the contact area between terminal and the body surface carrying this terminal, pre-conditioned next by judging whether contact area meets
Decide whether to allow application registration gravity sensor.
Wherein, this pre-conditioned for determining whether terminal is in unsteady state.Preferably it can be determined that this contact area
Whether it is equal to this terminal cross-sectional area.Wherein, cross section is perpendicular to the cross sectional shape of the axial direction of beam, for example, mobile phone
Cross section may be considered mobile phone bottom surface.If being not equal to this cross-sectional area, illustrate that terminal is in partly hanging unstable shape
State, that is, determine meet pre-conditioned;If equal to this cross-sectional area, then illustrate that terminal is entirely placed on other objects, is in
Relatively steady state, that is, determine be unsatisfactory for pre-conditioned.
The gravity sensor register method of the embodiment of the present invention is less than default ring in the ambient light intensity of terminal local environment
Border light intensity, and with the distance between shelter less than in the case of predeterminable range threshold value, judge that it is in knapsack, pocket etc. close
Closing space, thus stopping registering gravity sensor, reducing power consumption of terminal.
Embodiment two,
The present embodiment will be described further to gravity sensor register method of the present invention on the basis of embodiment one.
Angle from gravity sensor register device is described by the present embodiment, and this gravity sensor register device is concrete
Can in the form of software or hardware integrated in the terminal, this terminal can be to have smart mobile phone, the flat board of gravity sensor
Apparatus such as computer.
Refer to Fig. 2, Fig. 2 is the flow chart of second gravity sensor register method provided in an embodiment of the present invention.Under
Each step in the face of the gravity sensor register method of the embodiment of the present invention is described in detail.
201st, obtain the ambient light intensity that terminal is presently in environment.
During using terminals such as mobile phone, panel computers, due to being difficult to avoid that, falling of terminal is touched, therefore terminal should
With needing routinely to register gravity sensor, fall event to detect.Gravity sensor is routinely registered in this application
Behavior will greatly improve power consumption of terminal.
Understand, when terminal is in relatively airtight space (such as pocket, in knapsack), to be generally not present through researching and analysing
The risk fallen, now should forbid application registration gravity sensor;And work as terminal and be placed on the relatively more open space such as tables and chairs
When, easily fallen on the ground, now should be allowed application registration gravity sensor.Therefore can there is choosing by the environment according to residing for terminal
The permission application registration gravity sensor selected, to reduce power consumption of terminal.
It is apparent from through analysis, confined space is compared with open space, and confined space light is weaker.Therefore can be according to terminal
The ambient light power of local environment tentatively to judge that terminal is in confined space or open space.Specifically, light can be passed through
Line sensor carrys out the ambient light intensity of detection terminal local environment.
202nd, judge this ambient light intensity whether less than default ambient light intensity.
In general, the ambient light intensity in the airtight space such as pocket, knapsack is close to 0, and because pocket etc. has opening,
Therefore can be not especially limited according to the default ambient light intensity of practical situation setting herein.
Specifically, this ambient light intensity of terminal judges, whether less than default ambient light intensity, is such as not less than default ambient light
Intensity, then proceed to step 203;Such as less than preset ambient light intensity, then proceed to step 205.
203rd, such as this ambient light intensity is not less than default ambient light intensity, then obtain this terminal and the object carrying this terminal
Contact area between surface.
When ambient light intensity is not less than default ambient light intensity, illustrate that terminal is located in open space.If terminal quilt
It is placed on desk, when whole terminal is all placed on the table, it is generally not present the risk fallen;And work as terminal and only have part
It is placed on desktop, when another part is in vacant state, a touching terminal may will be made to fall.For this situation, can obtain
Contact area between terminal and the body surface carrying this terminal is taken to decide whether to allow application registration gravity sensor.
Refer to Fig. 3, mobile phone is faceup placed on chair, mobile phone bottom surface is contacted with seat.Wherein mobile phone top
31 be located at seat on, bottom 32 exposed outside chair, the area that now mobile phone bottom surface is touched with seat near top 31 is handss
Contact area between machine and chair seat.
204th, judge whether this contact area meets pre-conditioned.
Wherein, this pre-conditioned for determining whether terminal is in unsteady state.Preferably it can be determined that this contact area
Whether it is equal to this terminal cross-sectional area.Wherein, cross section is perpendicular to the cross sectional shape of the axial direction of beam, as shown in figure 3, terminal is horizontal
Sectional area is the base area of mobile phone.If being not equal to this cross-sectional area, illustrate that terminal is in partly hanging unsteady state,
I.e. determine meet pre-conditioned;If equal to this cross-sectional area, then illustrate that terminal is entirely placed on other objects, is in relatively
Stable state, that is, determine be unsatisfactory for pre-conditioned.
, mobile phone cross section is mobile phone bottom surface, and its size is 12.18 centimetres * 6.85 centimetres taking Fig. 3 as a example, and mobile phone
Lean on part through top 31 with the contact surface of chair for bottom surface, contact area is 10 centimetres * 6.85 centimetres it is clear that contact area is little
In mobile phone base area, therefore it is unsatisfactory for pre-conditioned.
205th, such as this ambient light intensity is less than default ambient light intensity, then obtain the distance between this terminal and shelter.
Although the confined spaces such as pocket, suitcase have the characteristics that ambient light is weaker, can not light with ambient light weaker this
Feature is in pocket, the such confined space of suitcase assert terminal.As terminal is placed on little black room, or it is placed at dark
Terminal on desk, the ambient light of its local environment is all weaker.Through further analysis understand, when terminal be located at pocket,
During the confined spaces such as suitcase, can contact with shelters such as pockets, therefore can be by obtaining the distance between terminal and shelter
To judge whether terminal is in the particular encapsulated such as pocket space.
206th, when distance is less than predeterminable range threshold value, judge whether this terminal is in vibrating state.
Due to, when terminal is in the particular encapsulated space such as pocket, between the terminal recording in theory and barrier away from
From for 0 centimetre, therefore predeterminable range can be could be arranged to 0 centimetre, if considering error, 1 can also be set to simultaneously
Centimetre, 2 centimetres, 3 centimetres, specifically can be arranged according to practical situation, be not especially limited herein.
Although being judged it may be said that bright terminal is in clothing by ambient light intensity with the distance between barrier
The airtight space such as pocket, knapsack, there is also the situation that terminal is in confined space edge, although now terminal local environment
Ambient light is weaker, once but terminal has phone to squeeze into shakes, will fall.Therefore can increase to whether terminal is in
The judgement of vibrating state, to improve the accuracy of application registration gravity sensor.
Specifically, because mobile phone vibrations are usually that motor operations produce, therefore can be by judging motor whether in fortune
Go and to judge whether mobile phone produces vibrations.
207th, such as this terminal is in vibrating state, or contact area meets pre-conditioned, then permission application registration gravity biography
Sensor.
Because terminal is in vibrating state, the terminal positioned at confined space edge, probably due to shaking and falling, therefore should
Allow application registration gravity sensor, to detect to the event of falling.
In the same manner, because contact surface meets pre-conditioned, illustrate that terminal is in the unsteady state such as hanging, as described in Figure 3, handss
Machine top 31 is placed on seat, and bottom 32 is in vacant state, has the risk fallen, and therefore should allow application registration gravity
Sensor, to detect to the event of falling.
Specifically, the process of application registration gravity sensor is as follows:Obtain the mark of the application calling this gravity sensor;
This mark corresponding sensor calling interface is set;This sensor calling interface is write the interface list of this gravity sensor.
Preferably, after terminal allows application registration gravity sensor, alarm can also be sent to user, point out to use
Family terminal has the risk fallen.Specifically, jingle bell prompting, bright screen prompting etc. can be carried out.
208th, such as this terminal is not at vibrating state, or contact area be unsatisfactory for pre-conditioned, then forbid application registration weight
Force transducer.
Because terminal is not at vibrating state, even if therefore terminal also will not be fallen positioned at the edge of enclosed environment.In the same manner,
Because contact surface is unsatisfactory for pre-conditioned, illustrates that terminal is stably placed on barrier, there is no the risk fallen, therefore all
Do not allow application registration gravity sensor.The power consumption of terminal so can be reduced.
On the basis of first embodiment, the gravity sensor register method of the embodiment of the present invention is in terminal further
The situation at the confined space such as pocket, knapsack edge, and terminal is in whether permission application registration gravity during part vacant state
The situation of sensor is analyzed, thus selectively Register Sensor, thus improve the standard of gravity sensor registration
Really property, and reduce further power consumption of terminal.
Embodiment three,
In order to preferably implement above method, the embodiment of the present invention also provides a kind of gravity sensor register device, and this is heavy
Force transducer register device can integrated in the terminal, this terminal can be specifically the equipment such as smart mobile phone, panel computer.As figure
Shown in 4, this gravity sensor register device 40 includes the first acquisition module 401, the first judge module 402, the second acquisition module
403rd, the second judge module 404, the first disabled module 405, area acquisition module 406, area judge module 407, permission module
408 and second disabled module 409.It is described in detail below:
First acquisition module 401, is presently in the ambient light intensity of environment for obtaining terminal;
Whether the first judge module 402, for judging this ambient light intensity less than default ambient light intensity;
Second acquisition module 403, for when this ambient light intensity is less than default ambient light intensity, obtaining this terminal and screening
The distance between block material;
Second judge module 404, for judging whether this distance is less than predeterminable range threshold value;
First disabled module 405, for when less than predeterminable range threshold value, forbidding application registration gravity sensor;
Area acquisition module 406, for when this ambient light intensity is not less than default ambient light intensity, obtain this terminal with
Carry the contact area between the body surface of this terminal;
Area judge module 407, pre-conditioned for judging whether this contact area meets;
Allow module 408, for registering gravity sensor when meeting pre-conditioned it is allowed to apply;
Second disabled module 409, for when being unsatisfactory for pre-conditioned, forbidding application registration gravity sensor.
Further, the first disabled module 405 includes the first judging submodule, allows submodule and forbid submodule, tool
Body is described as follows:
First judging submodule, for judging whether this terminal is in vibrating state;
Allow submodule, for registering gravity sensor when this terminal is in vibrating state it is allowed to apply;
Forbid submodule, for when this terminal is not at vibrating state, forbidding application registration gravity sensor.
Further, area judge module 407 includes the second judging submodule, the first determination sub-module and the second determination
Module, is described in detail below:
Second judging submodule, for judging whether this contact area is equal to this terminal cross-sectional area;
First determination sub-module, for when being not equal to this cross-sectional area, determination meets pre-conditioned;
Second determination sub-module, for, when equal to this cross-sectional area, determination is unsatisfactory for pre-conditioned.
The gravity sensor register device of the embodiment of the present invention is less than default ring in the ambient light intensity of terminal local environment
Border light intensity, and with the distance between shelter less than in the case of predeterminable range threshold value, judge that it is in knapsack, pocket etc. close
Closing space, thus stopping registering gravity sensor, reducing power consumption of terminal.
Example IV,
Refer to accompanying drawing 5, Fig. 5 is a kind of structural representation of mobile terminal provided in an embodiment of the present invention.This is mobile eventually
End 50 at least includes a processor 501, such as central processing unit (CPU, Central Processing Unit), and at least one
Individual network interface 502, user interface 503, memorizer 504 and at least one communication bus 505.
Wherein, communication bus 505 is used for realizing processor 501, the connection communication between memorizer 504 grade assembly.Network
Interface 502 is used for realizing the connection communication between physical host and network, such as can be used for connecting physical network card and physical exchange
The equipment such as machine;User interface 503 can include display screen, keyboard, simultaneously user interface 503 can for wave point it is also possible to
For wireline interface;Memorizer 504 can be high-speed memory or non-labile memorizer.
In some embodiments, memorizer 504 also includes operating system and application module.Operating system contains various
System program, is used for realizing various basic businesses and processes hardware based business;Application module comprises various application programs,
For realizing various applied business.Specifically, memorizer 504 storage batch processing code, so that processor 501 executes following behaviour
Make:Obtain the ambient light intensity that terminal is presently in environment;Judge this ambient light intensity whether less than default ambient light intensity;?
When this ambient light intensity is less than default ambient light intensity, obtain the distance between this terminal and shelter;Whether judge this distance
Less than predeterminable range threshold value;When less than predeterminable range threshold value, forbid application registration gravity sensor.
Further, processor 501 is additionally operable to judge whether this terminal is in vibrating state;It is in vibrations shape in this terminal
It is allowed to gravity sensor is registered in application during state;When this terminal is not at vibrating state, forbid application registration gravity sensor.
Further, processor 501 is additionally operable to, when this ambient light intensity is not less than default ambient light intensity, obtain this end
Contact area between end and the body surface carrying this terminal;Judge whether this contact area meets pre-conditioned;Meeting
It is allowed to gravity sensor is registered in application when pre-conditioned;When being unsatisfactory for pre-conditioned, forbid application registration gravity sensor.
Further, processor 501 is additionally operable to judge whether this contact area is equal to this terminal cross-sectional area;It is being not equal to
During this cross-sectional area determine meet pre-conditioned;When equal to this cross-sectional area, determination is unsatisfactory for pre-conditioned.
Further, processor 501 is additionally operable to obtain the mark of the application calling this gravity sensor;It is right that this mark is set
The sensor calling interface answered;This sensor calling interface is write the interface list of this gravity sensor.
The mobile terminal of the embodiment of the present invention is less than default ambient light intensity in the ambient light intensity of its local environment, and with
In the case that the distance between shelter is less than predeterminable range threshold value, judge that it is in the confined spaces such as knapsack, pocket, thus stopping
Only registration gravity sensor, reduces power consumption of terminal.
When being embodied as, above modules can be realized as independent entity it is also possible to carry out combination in any, makees
To realize for same or several entities, being embodied as of above modules can be found in embodiment of the method above, and here is not
Repeat again.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or
Part steps can be by program to complete come the hardware to instruct correlation, and this program can be stored in computer-readable storage medium
In matter, such as it is stored in the memorizer of terminal, and by least one computing device in this terminal, can wrap in the process of implementation
Include the flow process of the embodiment as information issuing method.Wherein, storage medium can include:Read only memory (ROM, Read Only
Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Above a kind of gravity sensor register method provided in an embodiment of the present invention and device are described in detail, its
Each functional module can be integrated in a process chip or modules are individually physically present it is also possible to two or
Two or more module is integrated in a module.Above-mentioned integrated module both can be to be realized it is also possible to adopt in the form of hardware
Realized with the form of software function module.Specific case used herein is explained to the principle of the present invention and embodiment
State, the explanation of above example is only intended to help and understands the method for the present invention and its core concept;Simultaneously for this area
Technical staff, according to the thought of the present invention, all will change in specific embodiments and applications, in sum,
This specification content should not be construed as limitation of the present invention.
Claims (10)
1. a kind of gravity sensor register method is it is characterised in that include:
Obtain the ambient light intensity that terminal is presently in environment;
Judge described ambient light intensity whether less than default ambient light intensity;
Such as less than preset ambient light intensity, then obtain the distance between described terminal and shelter;
Judge whether described distance is less than predeterminable range threshold value;
Such as less than predeterminable range threshold value, then forbid application registration gravity sensor.
2. gravity sensor register method according to claim 1 is it is characterised in that described forbid that application registration gravity passes
Sensor step specifically includes:
Judge whether described terminal is in vibrating state;
As described terminal is in vibrating state, then allow application registration gravity sensor;
As described terminal is not at vibrating state, then forbid application registration gravity sensor.
3. gravity sensor register method according to claim 1 is it is characterised in that methods described also includes:
As described ambient light intensity is not less than default ambient light intensity, then obtain described terminal and the object table carrying described terminal
Contact area between face;
Judge whether described contact area meets pre-conditioned;
As pre-conditioned in met, then allow application registration gravity sensor;
As pre-conditioned in being unsatisfactory for, then forbid application registration gravity sensor.
4. gravity sensor register method according to claim 3 is it is characterised in that the described contact area of described judgement is
No meet pre-conditioned step and specifically include:
Judge whether described contact area is equal to described terminal cross-sectional area;
As being not equal to described cross-sectional area it is determined that meeting pre-conditioned;
As equal to described cross-sectional area it is determined that being unsatisfactory for pre-conditioned.
5. the gravity sensor register method according to any one of claim 2-3 is it is characterised in that described permission application is noted
Volume gravity sensor step specifically includes:
Obtain the mark of the application calling described gravity sensor;
The setting corresponding sensor calling interface of described mark;
Described sensor calling interface is write the interface list of described gravity sensor.
6. a kind of gravity sensor register device is it is characterised in that include:
First acquisition module, is presently in the ambient light intensity of environment for obtaining terminal;
Whether the first judge module, for judging described ambient light intensity less than default ambient light intensity;
Second acquisition module, for, when less than default ambient light intensity, obtaining the distance between described terminal and shelter;
Second judge module, for judging whether described distance is less than predeterminable range threshold value;
First disabled module, for when less than predeterminable range threshold value, forbidding application registration gravity sensor.
7. gravity sensor register device according to claim 6 is it is characterised in that described first disabled module includes:
First judging submodule, for judging whether described terminal is in vibrating state;
Allow submodule, for registering gravity sensor when described terminal is in vibrating state it is allowed to apply;
Forbid submodule, for when described terminal is not at vibrating state, forbidding application registration gravity sensor.
8. gravity sensor register device according to claim 6 is it is characterised in that described device also includes:
Area acquisition module, for when described ambient light intensity is not less than default ambient light intensity, obtaining described terminal and holding
Carry the contact area between the body surface of described terminal;
Area judge module, pre-conditioned for judging whether described contact area meets;
Allow module, for registering gravity sensor when meeting pre-conditioned it is allowed to apply;
Second disabled module, for when being unsatisfactory for pre-conditioned, forbidding application registration gravity sensor.
9. gravity sensor register device according to claim 8 is it is characterised in that described area judge module includes:
Second judging submodule, for judging whether described contact area is equal to described terminal cross-sectional area;
First determination sub-module, for when being not equal to described cross-sectional area, determination meets pre-conditioned;
Second determination sub-module, for, when equal to described cross-sectional area, determination is unsatisfactory for pre-conditioned.
10. a kind of mobile terminal is it is characterised in that include gravity sensor, and the gravity being connected with described gravity sensor
Sensor register device, wherein, described gravity sensor register device includes:
First acquisition module, is presently in the ambient light intensity of environment for obtaining terminal;
Whether the first judge module, for judging described ambient light intensity less than default ambient light intensity;
Second acquisition module, for, when less than default ambient light intensity, obtaining the distance between described terminal and shelter;
Second judge module, for judging whether described distance is less than predeterminable range threshold value;
First disabled module, for when less than predeterminable range threshold value, forbidding application registration gravity sensor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610806727.8A CN106385493B (en) | 2016-09-06 | 2016-09-06 | A kind of gravity sensor register method, device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610806727.8A CN106385493B (en) | 2016-09-06 | 2016-09-06 | A kind of gravity sensor register method, device and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106385493A true CN106385493A (en) | 2017-02-08 |
CN106385493B CN106385493B (en) | 2019-08-23 |
Family
ID=57938098
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610806727.8A Expired - Fee Related CN106385493B (en) | 2016-09-06 | 2016-09-06 | A kind of gravity sensor register method, device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106385493B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108600541A (en) * | 2018-04-24 | 2018-09-28 | Oppo广东移动通信有限公司 | Fall detection method and relevant apparatus |
CN109151198A (en) * | 2018-08-27 | 2019-01-04 | 惠州Tcl移动通信有限公司 | A kind of control method, mobile terminal and storage medium close to light sensor |
CN110441783A (en) * | 2018-08-23 | 2019-11-12 | 爱贝欧汽车系统有限公司 | For anallatic method and apparatus |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130310656A1 (en) * | 2012-05-21 | 2013-11-21 | Gukchan LIM | Mobile terminal with health care function and method of controlling the mobile terminal |
CN104639833A (en) * | 2015-01-29 | 2015-05-20 | 深圳市金立通信设备有限公司 | Method for controlling camera device |
CN104980588A (en) * | 2015-06-29 | 2015-10-14 | 努比亚技术有限公司 | Method and apparatus for detecting state of mobile terminal |
CN105635473A (en) * | 2016-01-10 | 2016-06-01 | 上海与德通讯技术有限公司 | Mobile terminal and falling protection method of mobile terminal |
-
2016
- 2016-09-06 CN CN201610806727.8A patent/CN106385493B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130310656A1 (en) * | 2012-05-21 | 2013-11-21 | Gukchan LIM | Mobile terminal with health care function and method of controlling the mobile terminal |
CN104639833A (en) * | 2015-01-29 | 2015-05-20 | 深圳市金立通信设备有限公司 | Method for controlling camera device |
CN104980588A (en) * | 2015-06-29 | 2015-10-14 | 努比亚技术有限公司 | Method and apparatus for detecting state of mobile terminal |
CN105635473A (en) * | 2016-01-10 | 2016-06-01 | 上海与德通讯技术有限公司 | Mobile terminal and falling protection method of mobile terminal |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108600541A (en) * | 2018-04-24 | 2018-09-28 | Oppo广东移动通信有限公司 | Fall detection method and relevant apparatus |
CN108600541B (en) * | 2018-04-24 | 2020-10-16 | Oppo广东移动通信有限公司 | Fall detection method and related device |
CN110441783A (en) * | 2018-08-23 | 2019-11-12 | 爱贝欧汽车系统有限公司 | For anallatic method and apparatus |
CN110441783B (en) * | 2018-08-23 | 2021-08-03 | 爱贝欧汽车系统有限公司 | Method and device for optical distance measurement |
CN109151198A (en) * | 2018-08-27 | 2019-01-04 | 惠州Tcl移动通信有限公司 | A kind of control method, mobile terminal and storage medium close to light sensor |
Also Published As
Publication number | Publication date |
---|---|
CN106385493B (en) | 2019-08-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11169703B2 (en) | Method for displaying graphical user interface and mobile terminal | |
CN105912260B (en) | The startup method and mobile terminal of a kind of application program | |
US9007306B2 (en) | Folding electronic apparatus with capacitive touch screen and method for detecting open and closed modes thereof | |
CN106527888B (en) | The method and device of the screen sliding lookup page | |
CN107729749A (en) | With reference to system information and the Android simulator detection method and device of ardware feature | |
CN103914208B (en) | A kind of information processing method and electronic equipment | |
CN106331253B (en) | A kind of terminal processing method, device and processing terminal | |
CN106385493A (en) | Gravity sensor registration method and device, and mobile terminal | |
CN105786878A (en) | Browse object display method and device | |
CN107133504A (en) | Rights Management System, right management method and electronic equipment | |
CN105930726B (en) | A kind of processing method and user terminal of malicious operation behavior | |
CN106127003A (en) | A kind of fingerprint recognition unlocking method and mobile terminal | |
CN106529312B (en) | A kind of authority control method of mobile terminal, device and mobile terminal | |
CN106254626A (en) | A kind of incoming display method and terminal | |
CN106919824A (en) | A kind of control method of unlocked by fingerprint, device and computer equipment | |
CN106529332B (en) | A kind of authority control method of mobile terminal, device and mobile terminal | |
CN103019579A (en) | Method for unlocking screen and electronic device applying same | |
CN107145386A (en) | Data migration method, terminal device and computer-readable recording medium | |
CN105700790B (en) | A kind of screenshot method and terminal device | |
CN107045610A (en) | Data migration method, terminal device and computer-readable recording medium | |
CN107122686A (en) | Share the method, device and mobile terminal of screen content | |
CN106598419A (en) | Terminal suspension operation apparatus and method | |
CN110113484A (en) | A kind of control method of screen power supplies, device, storage medium and electronic equipment | |
CN106095306B (en) | A kind of sensor control method of mobile terminal, device and mobile terminal | |
CN107316197A (en) | A kind of payment protection method, mobile terminal and computer-readable recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
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: 20190823 |