CN108762526A - A kind of acceleration sensor triggering judgment method in smart machine and device - Google Patents

A kind of acceleration sensor triggering judgment method in smart machine and device Download PDF

Info

Publication number
CN108762526A
CN108762526A CN201810457337.3A CN201810457337A CN108762526A CN 108762526 A CN108762526 A CN 108762526A CN 201810457337 A CN201810457337 A CN 201810457337A CN 108762526 A CN108762526 A CN 108762526A
Authority
CN
China
Prior art keywords
acceleration
acceleration sensor
value
threshold
smart machine
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.)
Withdrawn
Application number
CN201810457337.3A
Other languages
Chinese (zh)
Inventor
刘静光
邓伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lianjia Beijing Technology Co Ltd
Original Assignee
Lianjia Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lianjia Beijing Technology Co Ltd filed Critical Lianjia Beijing Technology Co Ltd
Priority to CN201810457337.3A priority Critical patent/CN108762526A/en
Publication of CN108762526A publication Critical patent/CN108762526A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Abstract

The present invention provides the acceleration sensors in a kind of smart machine to trigger judgment method and device, the method includes:When detecting that smart machine is shaken, acceleration value of the acceleration sensor in all directions being arranged inside the smart machine is obtained;Currently whether meet threshold triggers condition according to acceleration value of the acceleration sensor in all directions and predetermined acceleration threshold decision, if so, determining that the acceleration sensor is triggered;Wherein, the predetermined acceleration threshold value is the product of default severity factor k and the maximum acceleration value of the acceleration sensor.The present invention can be directed to the detection that different smart machines realizes acceleration transducer triggering so that can either ensure the unfriendly interactive experience for detecting acceleration sensor trigger event, and false triggering capable of being avoided to bring.

Description

A kind of acceleration sensor triggering judgment method in smart machine and device
Technical field
The present invention relates to field of computer technology, and in particular to the acceleration sensor in a kind of smart machine triggers judgement side Method and device.
Background technology
It is more widely to shake function to acceleration sensor application in android system, is touched by rocking mobile phone Acceleration sensor is sent out to realize corresponding function.Concrete implementation is supervised by the way that SensorEventListener sensors are arranged Event is listened, when any sensor in mobile phone changes, can all adjust back void onSensorChanged (SensorEvent event) method.Can decide whether it is acceleration sensor hair by event.sensor.getType () Variation is given birth to, event.values can obtain the data of acceleration sensor return, which includes the number in tri- directions X, Y, Z According to variation.Usually specific thing can be triggered as long as the acceleration value in any one direction in tri- directions X, Y, Z reaches threshold value Part, the threshold value are usually 17.Can also the accumulation amount of three directional acceleration values be used to be used as reference sometimes.
Existing application scheme is all to have specific demand to acceleration sensor, i.e., requires user to go to shake in a page It shakes mobile phone and triggers particular event, the demand under this scene can be triggered by the way that a smaller threshold value is arranged, and there is no miss The problem of triggering.Any interface but for clobal, such as in one application, can by rocking mobile phone Particular event is triggered, under such scene, if only one threshold value of setting, if smaller, the trigger event of threshold value setting Can be excessively sensitive, easily cause false triggering;If threshold value setting is larger, specific thing cannot be triggered on certain mobile phones Part.
Invention content
For the defects in the prior art, the present invention provides the acceleration sensor triggering judgment method in a kind of smart machine And device, the present invention can be directed to the detection that different smart machines realizes acceleration transducer triggering so that can either ensure to examine The unfriendly interactive experience for measuring acceleration sensor trigger event, and false triggering capable of being avoided to bring.
To achieve the above object, the present invention provides following technical scheme:
In a first aspect, the present invention provides the acceleration sensors in a kind of smart machine to trigger judgment method, including:
When detecting that smart machine is shaken, the acceleration sensor being arranged inside the smart machine is obtained in each side Upward acceleration value;
According to acceleration value of the acceleration sensor in all directions and predetermined acceleration threshold decision currently whether Meet threshold triggers condition, if so, determining that the acceleration sensor is triggered;
Wherein, the predetermined acceleration threshold value is the maximum acceleration value of default severity factor k and the acceleration sensor Product, 0 < k < 1.
Further, the acceleration value and predetermined acceleration threshold value according to the acceleration sensor in all directions Whether judgement currently meets threshold triggers condition, including:
It is currently whether full according to acceleration sensor acceleration value in the X direction and predetermined acceleration threshold decision Sufficient threshold triggers condition, if so, determining that the acceleration sensor is triggered;
Or,
It is currently whether full according to acceleration sensor acceleration value in the Y direction and predetermined acceleration threshold decision Sufficient threshold triggers condition, if so, determining that the acceleration sensor is triggered;
Or,
It is currently whether full according to acceleration sensor acceleration value in z-direction and predetermined acceleration threshold decision Sufficient threshold triggers condition, if so, determining that the acceleration sensor is triggered.
Further, the method further includes:
After judging currently to meet the threshold triggers condition, continue to judge whether is number that the smart machine is shaken More than N, and whether the time interval rocked twice is less than T and because of the whether positive and negative alternating in the acceleration direction for rocking generation, if It is, it is determined that the acceleration sensor is triggered;
Wherein, N is preset times threshold value, and T is prefixed time interval threshold value.
Further, the value range of the default severity factor k is 0.7~0.8.
Second aspect, the present invention also provides the acceleration sensors in a kind of smart machine to trigger judgment means, including:
Acquisition module, for when detecting that smart machine is shaken, what acquisition was arranged inside the smart machine to add Acceleration value of the fast sensor in all directions;
Judgment module, for the acceleration value and predetermined acceleration threshold value according to the acceleration sensor in all directions Whether judgement currently meets threshold triggers condition, if so, determining that the acceleration sensor is triggered;
Wherein, the predetermined acceleration threshold value is the maximum acceleration value of default severity factor k and the acceleration sensor Product, 0 < k < 1.
Further, the judgment module, is specifically used for:
It is currently whether full according to acceleration sensor acceleration value in the X direction and predetermined acceleration threshold decision Sufficient threshold triggers condition, if so, determining that the acceleration sensor is triggered;
Or,
It is currently whether full according to acceleration sensor acceleration value in the Y direction and predetermined acceleration threshold decision Sufficient threshold triggers condition, if so, determining that the acceleration sensor is triggered;
Or,
It is currently whether full according to acceleration sensor acceleration value in z-direction and predetermined acceleration threshold decision Sufficient threshold triggers condition, if so, determining that the acceleration sensor is triggered.
Further, the judgment module continues to judge the intelligence after judging currently to meet the threshold triggers condition Whether the number that energy equipment is shaken is more than N, and whether the time interval rocked twice is less than T and the acceleration because rocking generation The whether positive and negative alternating in direction is spent, if so, determining that the acceleration sensor is triggered;
Wherein, N is preset times threshold value, and T is prefixed time interval threshold value.
Further, the value range of the default severity factor k is 0.7~0.8.
The third aspect, the present invention also provides a kind of electronic equipment, including memory, processor and storage are on a memory And the computer program that can be run on a processor, the processor realize intelligence as described in relation to the first aspect when executing described program The step of acceleration sensor in equipment triggers judgment method.
Fourth aspect, the present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, should Realize that the acceleration sensor in smart machine as described in relation to the first aspect triggers judgment method when computer program is executed by processor The step of.
As shown from the above technical solution, the acceleration sensor in smart machine provided by the invention triggers judgment method, When detecting that smart machine is shaken, acceleration of the acceleration sensor in all directions being arranged inside the smart machine is obtained Angle value, then the acceleration value according to the acceleration sensor in all directions and predetermined acceleration threshold decision currently whether Meet threshold triggers condition, if so, determining that the acceleration sensor is triggered.In the present invention, touched carrying out acceleration sensor The predetermined acceleration threshold value that hair uses when judging is true by the product for presetting the maximum acceleration value of severity factor k and acceleration sensor Fixed, the present invention can be directed to the detection that different smart machines realizes acceleration transducer triggering as a result, so that can either ensure to examine The unfriendly interactive experience for measuring acceleration sensor trigger event, and false triggering capable of being avoided to bring.In addition, the present invention its In his realization method, direction necessary positive and negative alternating, adjacent two of N, acceleration are had to be larger than further combined with the number rocked The secondary time interval rocked is necessarily less than these three auxiliary judgment conditions of T, so as to further increase detection trigger accuracy, Prevent false triggering.
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 the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is the flow chart of the acceleration sensor triggering judgment method in the smart machine that one embodiment of the invention provides;
Fig. 2 is the processing procedure of the acceleration sensor triggering judgment method in the smart machine that one embodiment of the invention provides Schematic diagram;
Fig. 3 is that the structure of the acceleration sensor triggering judgment means in the smart machine that another embodiment of the present invention provides is shown It is intended to;
Fig. 4 is the structural schematic diagram for the electronic equipment that further embodiment of this invention provides.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical solution in the embodiment of the present invention carries out clear, complete description, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
One embodiment of the invention provides the acceleration sensor triggering judgment method in a kind of smart machine should referring to Fig. 1 Method includes the following steps:
Step 101:When detecting that smart machine is shaken, the acceleration sensing being arranged inside the smart machine is obtained Acceleration value of the device in all directions.
In this step, when detecting that smart machine is shaken, the acceleration being arranged inside the smart machine is obtained Acceleration value of the sensor in all directions.Usually, whether smart machine, which is shaken, to pass through SensorEventListener sensors monitor event to monitor.When any sensor in mobile phone changes, can all return Void onSensorChanged (SensorEvent event) method of tune.It can be with by event.sensor.getType () Judge whether it is that acceleration sensor is changed, event.values can obtain the data of acceleration sensor return, the number According to the data variation for generally comprising tri- directions X, Y, Z.As long as the acceleration in any one direction in usual tri- directions X, Y, Z Value, which meets condition, can trigger specific event.
In the present embodiment, smart machine can be the smart machines such as mobile phone, PAD, wearable device.
Step 102:According to acceleration value and predetermined acceleration threshold decision of the acceleration sensor in all directions Currently whether meet threshold triggers condition, if so, determining that the acceleration sensor is triggered;Wherein, the predetermined acceleration Threshold value is the product of default severity factor k and the maximum acceleration value of the acceleration sensor.
In this step, since the acceleration sensor that Android manufacturers use is not identical, so difference Android The maximum value of the acceleration sensor of mobile phone is also different, is also differed by rocking the attainable practical maximum value of mobile phone institute.If By threshold value setting it is larger when, may result in can not trigger in certain mobile phones.By testing a few money mobile phones, obtain Data such as table 1.
Table 1
As shown in Table 1, if only by one smaller threshold value of setting, if threshold value is 17, in Meizu M5Note or It more can normally be triggered in nexus5, but in other mobile phones, trigger event becomes very sensitive, is easy false triggering.Such as Fruit is more than 20 by what threshold value was arranged, then cannot be triggered in Meizu M5Note.Based on this, threshold value that the present embodiment uses for The product of default severity factor k and the maximum acceleration value of the acceleration sensor, namely: Event.sensor.getMaximumRange () * k, k are severity factor, and the value of k is between 0 to 1.As it can be seen that the present embodiment this The setting of sample can to make no exception to all smart machines, because the threshold value chosen is by corresponding to the acceleration on smart machine The maximum acceleration value and severity factor of sensor determine, as long as in this way, rational severity factor is arranged, it will be able to ensure Particular event can be triggered on all smart machines, while can also avoid false triggering.
It is understood that improve trigger sensitivity, while reducing false triggering rate as possible again, it is preferable that it is described default The value range of severity factor k is 0.7~0.8.
In addition, as being analyzed above it is found that the data that acceleration sensor returns, generally comprise the number in tri- directions X, Y, Z According to variation.Usually specific thing can be triggered as long as the acceleration value in any one direction in tri- directions X, Y, Z meets condition Part, therefore in this step is sentenced according to acceleration value of the acceleration sensor in all directions and predetermined acceleration threshold value It is disconnected currently whether to meet threshold triggers condition, if so, determining that the acceleration sensor is triggered, specifically include following several places Reason mode:
A, according to acceleration sensor acceleration value in the X direction and predetermined acceleration threshold decision currently whether Meet threshold triggers condition, if so, determining that the acceleration sensor is triggered;
Or,
B, according to acceleration sensor acceleration value in the Y direction and predetermined acceleration threshold decision currently whether Meet threshold triggers condition, if so, determining that the acceleration sensor is triggered;
Or,
C, according to acceleration sensor acceleration value in z-direction and predetermined acceleration threshold decision currently whether Meet threshold triggers condition, if so, determining that the acceleration sensor is triggered.
As shown from the above technical solution, the acceleration sensor in smart machine provided in this embodiment triggers judgment method, When detecting that smart machine is shaken, the acceleration sensor being arranged inside the smart machine adding in all directions is obtained Velocity amplitude, then the acceleration value according to the acceleration sensor in all directions and predetermined acceleration threshold decision are currently It is no to meet threshold triggers condition, if so, determining that the acceleration sensor is triggered.In the present invention, acceleration sensor is being carried out The predetermined acceleration threshold value that triggering uses when judging by default severity factor k and acceleration sensor maximum acceleration value product It determines, the method described in the present embodiment can be directed to the detection that different smart machines realizes acceleration transducer triggering as a result, make Obtain the unfriendly interactive experience that can either ensure to detect acceleration sensor trigger event, and false triggering can be avoided to bring.This Outside, in other preferred implementations of the present embodiment, the side of N, acceleration is had to be larger than further combined with the number rocked To must positive and negative alternating, the adjacent time interval rocked twice be necessarily less than these three auxiliary judgment conditions of T, so as into one Step improves detection trigger accuracy, prevents false triggering.
In a preferred embodiment, not only sentence from whether acceleration value meets threshold value this single dimension as triggering Broken strip part also adds the other three dimension and is judging that currently meeting the threshold value touches referring specifically to Fig. 2 as subsidiary conditions After clockwork spring part, continue to judge whether number that the smart machine is shaken is more than N, and the time interval rocked twice whether Less than T and because of the whether positive and negative alternating in the acceleration direction for rocking generation, if so, determining that the acceleration sensor is triggered;Its In, N is preset times threshold value, and T is prefixed time interval threshold value.Preferably, setting N is 4;T is 1000 milliseconds.
Fig. 2 shows the detailed process for triggering particular event using acceleration sensor, Fig. 2 only lists acceleration sensor In the trigger flow of X-direction, the flow and X-direction of Y, Z-direction are consistent.It, can by the judgement of this four dimensions Enough ensure that particular event can be triggered on all mobile phones, can also avoid false triggering.
It is understood that clobal is triggered by acceleration sensor in the application, since different sensors can obtain Acceleration value it is different, the present embodiment according to the obtainable maximum value of acceleration sensor come threshold value, and combine three it is auxiliary Help dimension as triggering condition, to make for the triggering of acceleration sensor overall situation particular event judge in, Neng Goubao Card can trigger particular event on all smart machines, while can also avoid false triggering so that only want to resurrect in user When specific function, it could be triggered by rocking smart machine, false triggering is avoided to bring disagreeableness interactive experience.
Based on identical inventive concept, another embodiment of the present invention provides the acceleration sensor in a kind of smart machine and touches Judgment means are sent out, referring to Fig. 3, which includes:Acquisition module 21 and judgment module 22, wherein:
Acquisition module 21, for when detecting that smart machine is shaken, acquisition to be arranged inside the smart machine Acceleration value of the acceleration sensor in all directions;
Judgment module 22, for the acceleration value and predetermined acceleration threshold according to the acceleration sensor in all directions Whether value judgement currently meets threshold triggers condition, if so, determining that the acceleration sensor is triggered;
Wherein, the predetermined acceleration threshold value is the maximum acceleration value of default severity factor k and the acceleration sensor Product.
In a preferred embodiment, the judgment module 22, is specifically used for:
It is currently whether full according to acceleration sensor acceleration value in the X direction and predetermined acceleration threshold decision Sufficient threshold triggers condition, if so, determining that the acceleration sensor is triggered;
Or,
It is currently whether full according to acceleration sensor acceleration value in the Y direction and predetermined acceleration threshold decision Sufficient threshold triggers condition, if so, determining that the acceleration sensor is triggered;
Or,
It is currently whether full according to acceleration sensor acceleration value in z-direction and predetermined acceleration threshold decision Sufficient threshold triggers condition, if so, determining that the acceleration sensor is triggered.
In a preferred embodiment, the judgment module 22 judge currently meet the threshold triggers condition after, Continue to judge whether the number that the smart machine is shaken is more than N, and the time interval rocked twice whether be less than T and because The whether positive and negative alternating in acceleration direction of generation is rocked, if so, determining that the acceleration sensor is triggered;
Wherein, N is preset times threshold value, and T is prefixed time interval threshold value.Preferably, setting N is 4;T is 1000 milliseconds.
In a preferred embodiment, the value range of the default severity factor k is 0.7~0.8.
Acceleration sensor triggering judgment means in smart machine provided in an embodiment of the present invention can be used for executing above-mentioned Acceleration sensor in smart machine described in embodiment triggers judgment method, and operation principle is similar with advantageous effect, herein No longer it is described in detail.
Based on identical inventive concept, further embodiment of this invention provides a kind of electronic equipment, referring to Fig. 4, the electricity Sub- equipment specifically includes following content:Processor 701, memory 702, communication interface 703 and bus 704;
Wherein, the processor 701, memory 702, communication interface 703 complete mutual lead to by the bus 704 Letter;The communication interface 703 is for realizing the information between the relevant devices such as each modeling software and intelligent manufacturing equipment module library Transmission;
The processor 701 is used to call the computer program in the memory 702, the processor to execute the meter The Overall Steps in above-described embodiment one are realized when calculation machine program, for example, reality when the processor executes the computer program Existing following step:
Step 101:When detecting that smart machine is shaken, the acceleration sensing being arranged inside the smart machine is obtained Acceleration value of the device in all directions;
Step 102:According to acceleration value and predetermined acceleration threshold decision of the acceleration sensor in all directions Currently whether meet threshold triggers condition, if so, determining that the acceleration sensor is triggered;Wherein, the predetermined acceleration Threshold value is the product of default severity factor k and the maximum acceleration value of the acceleration sensor.
Based on identical inventive concept, further embodiment of this invention provides a kind of computer readable storage medium, the meter It is stored with computer program on calculation machine readable storage medium storing program for executing, which realizes above-described embodiment one when being executed by processor Overall Steps, for example, the processor execute the computer program when realize following step:
Step 101:When detecting that smart machine is shaken, the acceleration sensing being arranged inside the smart machine is obtained Acceleration value of the device in all directions;
Step 102:According to acceleration value and predetermined acceleration threshold decision of the acceleration sensor in all directions Currently whether meet threshold triggers condition, if so, determining that the acceleration sensor is triggered;Wherein, the predetermined acceleration Threshold value is the product of default severity factor k and the maximum acceleration value of the acceleration sensor.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Above example is only used to illustrate the technical scheme of the present invention, rather than its limitations;Although with reference to the foregoing embodiments Invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each implementation Technical solution recorded in example is modified or equivalent replacement of some of the technical features;And these are changed or replace It changes, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. the acceleration sensor in a kind of smart machine triggers judgment method, which is characterized in that including:
When detecting that smart machine is shaken, the acceleration sensor being arranged inside the smart machine is obtained in all directions Acceleration value;
Currently whether met according to acceleration value of the acceleration sensor in all directions and predetermined acceleration threshold decision Threshold triggers condition, if so, determining that the acceleration sensor is triggered;
Wherein, the predetermined acceleration threshold value is default severity factor k and the maximum acceleration value of the acceleration sensor multiplies Product, 0 < k < 1.
2. according to the method described in claim 1, it is characterized in that, the adding in all directions according to the acceleration sensor Whether velocity amplitude and predetermined acceleration threshold decision currently meet threshold triggers condition, including:
Currently whether meet threshold according to acceleration sensor acceleration value in the X direction and predetermined acceleration threshold decision It is worth trigger condition, if so, determining that the acceleration sensor is triggered;
Or,
Currently whether meet threshold according to acceleration sensor acceleration value in the Y direction and predetermined acceleration threshold decision It is worth trigger condition, if so, determining that the acceleration sensor is triggered;
Or,
Currently whether meet threshold according to acceleration sensor acceleration value in z-direction and predetermined acceleration threshold decision It is worth trigger condition, if so, determining that the acceleration sensor is triggered.
3. method according to claim 1 or 2, which is characterized in that the method further includes:
After judging currently to meet the threshold triggers condition, continue to judge whether the number that the smart machine is shaken is more than Whether N, and the time interval rocked twice are less than T and because of the whether positive and negative alternating in the acceleration direction for rocking generation, if so, Determine that the acceleration sensor is triggered;
Wherein, N is preset times threshold value, and T is prefixed time interval threshold value.
4. method according to claim 1 or 2, which is characterized in that the value range of the default severity factor k is 0.7 ~0.8.
5. the acceleration sensor in a kind of smart machine triggers judgment means, which is characterized in that including:
Acquisition module is passed for when detecting that smart machine is shaken, obtaining the acceleration being arranged inside the smart machine Acceleration value of the sensor in all directions;
Judgment module, for the acceleration value and predetermined acceleration threshold decision according to the acceleration sensor in all directions Currently whether meet threshold triggers condition, if so, determining that the acceleration sensor is triggered;
Wherein, the predetermined acceleration threshold value is default severity factor k and the maximum acceleration value of the acceleration sensor multiplies Product, 0 < k < 1.
6. device according to claim 5, which is characterized in that the judgment module is specifically used for:
Currently whether meet threshold according to acceleration sensor acceleration value in the X direction and predetermined acceleration threshold decision It is worth trigger condition, if so, determining that the acceleration sensor is triggered;
Or,
Currently whether meet threshold according to acceleration sensor acceleration value in the Y direction and predetermined acceleration threshold decision It is worth trigger condition, if so, determining that the acceleration sensor is triggered;
Or,
Currently whether meet threshold according to acceleration sensor acceleration value in z-direction and predetermined acceleration threshold decision It is worth trigger condition, if so, determining that the acceleration sensor is triggered.
7. device according to claim 5 or 6, which is characterized in that the judgment module is judging currently to meet the threshold After being worth trigger condition, continue to judge whether the number that the smart machine is shaken is more than N, and the time interval rocked twice Whether less than T and because of the whether positive and negative alternating in the acceleration direction for rocking generation, if so, determining that the acceleration sensor is touched Hair;
Wherein, N is preset times threshold value, and T is prefixed time interval threshold value.
8. device according to claim 5 or 6, which is characterized in that the value range of the default severity factor k is 0.7 ~0.8.
9. a kind of electronic equipment, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, which is characterized in that realize when the processor executes described program and intelligently set as described in any one of Claims 1-4 The step of acceleration sensor in standby triggers judgment method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt Realizing the acceleration sensor triggering judgment method in the smart machine as described in any one of Claims 1-4 when processor executes Step.
CN201810457337.3A 2018-05-14 2018-05-14 A kind of acceleration sensor triggering judgment method in smart machine and device Withdrawn CN108762526A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810457337.3A CN108762526A (en) 2018-05-14 2018-05-14 A kind of acceleration sensor triggering judgment method in smart machine and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810457337.3A CN108762526A (en) 2018-05-14 2018-05-14 A kind of acceleration sensor triggering judgment method in smart machine and device

Publications (1)

Publication Number Publication Date
CN108762526A true CN108762526A (en) 2018-11-06

Family

ID=64006687

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810457337.3A Withdrawn CN108762526A (en) 2018-05-14 2018-05-14 A kind of acceleration sensor triggering judgment method in smart machine and device

Country Status (1)

Country Link
CN (1) CN108762526A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109856424A (en) * 2018-12-30 2019-06-07 贝壳技术有限公司 Android acceleration sensor Threshold, electronic equipment and medium
CN115242957A (en) * 2021-04-22 2022-10-25 北京君正集成电路股份有限公司 Rapid photographing method in intelligent wearable device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120218177A1 (en) * 2011-02-25 2012-08-30 Nokia Corporation Method and apparatus for providing different user interface effects for different motion gestures and motion properties
CN102938808A (en) * 2012-11-23 2013-02-20 北京小米科技有限责任公司 Information recording method and device of mobile terminal
US8723986B1 (en) * 2010-11-04 2014-05-13 MCube Inc. Methods and apparatus for initiating image capture on a hand-held device
CN104079725A (en) * 2014-07-07 2014-10-01 中科创达软件股份有限公司 Incoming call rejection method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8723986B1 (en) * 2010-11-04 2014-05-13 MCube Inc. Methods and apparatus for initiating image capture on a hand-held device
US20120218177A1 (en) * 2011-02-25 2012-08-30 Nokia Corporation Method and apparatus for providing different user interface effects for different motion gestures and motion properties
CN102938808A (en) * 2012-11-23 2013-02-20 北京小米科技有限责任公司 Information recording method and device of mobile terminal
CN104079725A (en) * 2014-07-07 2014-10-01 中科创达软件股份有限公司 Incoming call rejection method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109856424A (en) * 2018-12-30 2019-06-07 贝壳技术有限公司 Android acceleration sensor Threshold, electronic equipment and medium
CN115242957A (en) * 2021-04-22 2022-10-25 北京君正集成电路股份有限公司 Rapid photographing method in intelligent wearable device
CN115242957B (en) * 2021-04-22 2024-01-23 北京君正集成电路股份有限公司 Method for quickly photographing in intelligent wearable equipment

Similar Documents

Publication Publication Date Title
CN108292165B (en) Touch gesture detection evaluation
CN106453829B (en) A kind of falling height detection method and device
US20100138680A1 (en) Automatic display and voice command activation with hand edge sensing
CN101963873B (en) Method for setting and calibrating capacitive-type touch panel capacitance base value
CN103221899B (en) Tactile input device, microprocessor system and the method for control tactile input device
JP2012522324A (en) Tap direction detection algorithm using accelerometer
CN108475136B (en) Fingerprint identification method and electronic equipment
CN106225806B (en) Calibrate the method, device and mobile terminal of Magnetic Sensor
US11249578B2 (en) Electronic device and method for changing condition for determining touch input to be pressure input
CN102999291A (en) Method for waking up mobile terminal in standby state
CN107291313A (en) Control method, device, storage medium and mobile terminal that a kind of fingerprint wakes up
CN106802708A (en) The control method and device of wearable device
CN103838539A (en) Performance measurement unit, processor core comprising thereof and process profiling method
CN110069170A (en) Touch screen report point rate processing method, device, electronic equipment and readable storage medium storing program for executing
CN108759892A (en) Sensor calibrating method, electronic device and computer readable storage medium
WO2013048469A1 (en) Detection of gesture data segmentation in mobile devices
CN108762526A (en) A kind of acceleration sensor triggering judgment method in smart machine and device
EP2630559A1 (en) Mobile communication device with three-dimensional sensing and a method therefore
EP3798829A1 (en) Terminal user interface display method and terminal
CN107817537A (en) Wear control method and device, the wearable device of detection
CN104898838B (en) The incoming call response method and device of handheld device
US9541966B2 (en) Systems and methods for utilizing acceleration event signatures
CN109002339A (en) touch operation method, device, storage medium and electronic equipment
CN108021301A (en) A kind of volume adjusting method, terminal device and computer-readable recording medium
CN106484288A (en) A kind of terminal control method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20181106