CN103376918B - A kind of gravity sensing method and a kind of electronic equipment - Google Patents

A kind of gravity sensing method and a kind of electronic equipment Download PDF

Info

Publication number
CN103376918B
CN103376918B CN201210111957.4A CN201210111957A CN103376918B CN 103376918 B CN103376918 B CN 103376918B CN 201210111957 A CN201210111957 A CN 201210111957A CN 103376918 B CN103376918 B CN 103376918B
Authority
CN
China
Prior art keywords
acceleration signal
electronic equipment
acceleration
module
operational order
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.)
Active
Application number
CN201210111957.4A
Other languages
Chinese (zh)
Other versions
CN103376918A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210111957.4A priority Critical patent/CN103376918B/en
Publication of CN103376918A publication Critical patent/CN103376918A/en
Application granted granted Critical
Publication of CN103376918B publication Critical patent/CN103376918B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a kind of gravity sensing method and a kind of electronic equipment, can be when electronic equipment respond the first operational order in the given time, obtain the acceleration signal of the pre-determined number that gravity sensor detects in the accelerator of preset times, and it is processed, according to result, the first operational order is met with a response.Owing to the first operational order can be made to meet with a response according to the acceleration signal of electronic equipment preset times, therefore the present invention can make user more preferably use electronic equipment so that it is the operational order needed for response user, user experiences good.

Description

A kind of gravity sensing method and a kind of electronic equipment
Technical field
The present invention relates to gravity sensing technical field, particularly relate to a kind of gravity sensing method and a kind of electronic equipment.
Background technology
Along with the development of science and technology, electronic equipment is more intelligent.Present a lot of electronic equipments are both provided with weight Force transducer G-sensor, when controlling electronic equipment motion for perception user, the change of the acceleration of electronic equipment self.Add Turn of speed is exactly the power acting on object in accelerator when object, such as rocks, falls, rises, the various movement of lower degradation Change procedure acts on the power on object.
G-sensor can will perceive the acceleration of user's electronic equipment to being provided with G-sensor, and is converted For the signal of telecommunication, the processor being then output in electronic equipment, after the computational analysis of processor, electronic equipment just can be held The instruction that row matches with the signal of telecommunication.Such as: user carries out whipping to the mobile phone being provided with G-sensor, G-sensor is the most permissible The acceleration of perception whipping, and be converted into the signal of telecommunication and export to cell phone processor.If this mobile phone is in music state, that G-sensor exports the intensity to the signal of telecommunication of cell phone processor more than a predetermined threshold value when, and cell phone processor is just Instruction (the direction difference of user's whipping mobile phone, the instruction that mobile phone performs of " playing next bent " or " playing upper one bent " can be performed Also different).
But, owing to using the strength of the user of electronic equipment to vary in size, (strength such as old man and child is less, young The strength of people is bigger), therefore when child and old man use electronic equipment, the effect identical with adolescence may be unable to reach. Such as: child wants that the whipping using mobile phone changes song function, owing to strength is little, possibly cannot realize.
Therefore, how to make the acceleration induction function more hommization of electronic equipment, be still to put to research and develop people in this area A problem in face of Yuan.
Summary of the invention
For solving above-mentioned technical problem, the embodiment of the present invention provides a kind of gravity sensing method and a kind of electronic equipment, with More humane realizes gravity sensing function, and technical scheme is as follows:
A kind of gravity sensing method, is applied in the first electronic equipment, is provided with gravity and passes in described first electronic equipment Sensor, described gravity sensor is for detecting the accekeration of described first electronic equipment, and described first electronic equipment has and adds Velocity amplitude and the first corresponding relation of operational order, described method includes:
When described first electronic equipment responds the first operational order not according to described first corresponding relation in the given time Time, it is thus achieved that the acceleration signal of the described pre-determined number that gravity sensor described in the accelerator of pre-determined number detects;
Process the acceleration signal of described pre-determined number, obtain a result;
Described first operational order is responded according to described result;
Wherein, the acceleration signal of the described pre-determined number of described process, obtain a result, including: to described predetermined The double acceleration signal meeting first condition in the acceleration signal of number of times is overlapped processing, and generates superposition and accelerates Degree signal, wherein, described first condition is that the time interval that described double acceleration signal occurs is when being not more than first Between threshold value.
Preferably, described according to described result described first operational order of response, particularly as follows:
Described first operational order is responded according to described superposition acceleration signal.
Preferably, the determination method of the number of times of described accelerator includes:
Judge that whether accekeration that described gravity sensor detects is from the first acceleration signal less than first threshold It is changed to the second accekeration more than described first threshold, if it is, determine that an accelerator starts;
Judge that whether accekeration that described gravity sensor detects is from the 3rd acceleration more than described first threshold Signal intensity is the 4th accekeration less than described first threshold, if it is, determine that an accelerator terminates;
The number of times that the number of times started according to described accelerator and described accelerator terminate determines described accelerator Number of times.
Present invention also offers a kind of electronic equipment, including: gravity sensor and corresponding relation memory module, described gravity Sensor is for detecting the accekeration of described electronic equipment, and described corresponding relation memory module storage has accekeration and operation Instruction the first corresponding relation, described electronic equipment also includes: acceleration signal obtain module, acceleration signal processing module and Operational order performs module,
Described acceleration signal obtains module, at described electronic equipment in the given time not according to described first right When should be related to response the first operational order, it is thus achieved that it is described pre-that gravity sensor described in the accelerator of pre-determined number detects Determine the acceleration signal of number of times;
Described acceleration signal processing module, for processing the acceleration signal of described pre-determined number, obtains a process knot Really;
Described operational order performs module, for responding described first operational order according to described result;
Wherein, described acceleration signal processing module, including: first condition determination module and acceleration laminating module;Institute State first condition determination module, in the acceleration signal determining described pre-determined number, meet the double of first condition Acceleration signal, wherein, described first condition is that the time interval that double acceleration signal occurs is when being not more than first Between threshold value;Described acceleration laminating module, meets described first condition in the acceleration signal to described pre-determined number Double acceleration signal is overlapped processing, and generates superposition acceleration signal.
Preferably, described operational order performs module, is specifically configured to:
Described first operational order is responded according to described superposition acceleration signal.
Preferably, described acceleration signal obtains module, including: accelerate to start to determine that module, acceleration end determine module Module is determined with acceleration times,
Described acceleration starts to determine module, for judging that whether accekeration that described gravity sensor detects is from being less than First acceleration signal of first threshold is changed to the second accekeration more than described first threshold, if it is, determine one Secondary accelerator starts;Described acceleration end determines module, for judging that the accekeration that described gravity sensor detects is No it is changed to the 4th accekeration less than described first threshold from the 3rd acceleration signal more than described first threshold, if It is, it is determined that one time accelerator terminates;
Described acceleration times determines module, terminates for number of times and the described accelerator started according to described accelerator Number of times determine the number of times of described accelerator.
By applying above technical scheme, a kind of gravity sensing method and a kind of electronics that the embodiment of the present invention provides set Standby, can be when electronic equipment respond the first operational order in the given time, it is thus achieved that weight in the accelerator of preset times The acceleration signal of the pre-determined number that force transducer detects, and it is processed, make the first operation according to result Instruction meets with a response.Owing to the first operational order can be made to be rung according to the acceleration signal of electronic equipment preset times Should, therefore the present invention can make user more preferably use electronic equipment so that it is the operational order needed for response user, user experiences good Good.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this Some embodiments described in invention, for those of ordinary skill in the art, on the premise of not paying creative work, Other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic flow sheet of a kind of gravity sensing method that Fig. 1 provides for the embodiment of the present invention;
The flow process of the determination method of accelerator number of times in a kind of gravity sensing method that Fig. 2 provides for the embodiment of the present invention Schematic diagram;
The schematic flow sheet of the another kind of gravity sensing method that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of the another kind of gravity sensing method that Fig. 4 provides for the embodiment of the present invention;
The structural representation of a kind of electronic equipment that Fig. 5 provides for the embodiment of the present invention;
The structural representation of the another kind of electronic equipment that Fig. 6 provides for the embodiment of the present invention;
The structural representation of the another kind of electronic equipment that Fig. 7 provides for the embodiment of the present invention;
The structural representation of the another kind of electronic equipment that Fig. 8 provides for the embodiment of the present invention.
Detailed description of the invention
For the technical scheme making those skilled in the art be more fully understood that in the present invention, real below in conjunction with the present invention Execute the accompanying drawing in example, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described enforcement Example is only a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, this area is common The every other embodiment that technical staff is obtained under not making creative work premise, all should belong to present invention protection Scope.
A kind of gravity sensing method that the embodiment of the present invention provides, is applied in the first electronic equipment, and this first electronics sets Being provided with gravity sensor in Bei, this gravity sensor is for the accekeration of detection the first electronic equipment, the first electronic equipment There is the first corresponding relation of accekeration and operational order, as it is shown in figure 1, the method may include that
S1, when the first electronic equipment responds the first operational order not according to the first corresponding relation in the given time, obtain Obtain the acceleration signal of the pre-determined number that gravity sensor detects in the accelerator of preset times;
Gravity sensor (G-sensor) can perceive the change of acceleration, and acceleration is exactly when object is in accelerator In act on the power on object, such as rock, fall, rise, the various mobile change of lower degradation can be converted into by G-sensor The signal of telecommunication.Wherein, the first electronic equipment can be mobile phone, multimedia player, it is also possible to can sense acceleration for other Electronic equipment, the golf clubs with G-sensor used when playing golf game on computers such as user.User is right The when that first electronic equipment applying acceleration, acceleration by the G-sensor perception in the first electronic equipment, and will be changed Become the signal of telecommunication.
Wherein, as in figure 2 it is shown, the determination method of the number of times of accelerator may include that
S101, judge that whether accekeration that gravity sensor detects is from the first acceleration signal less than first threshold It is changed to the second accekeration more than first threshold, if it is, determine that an accelerator starts;
At this moment, the dynamics that the first electronic equipment is applied by user is increasing, makes the acceleration of the first electronic equipment more come The biggest, it is believed that to be the beginning of an accelerator of user.
S102, judge that whether accekeration that gravity sensor detects is from the 3rd acceleration signal more than first threshold It is changed to the 4th accekeration less than first threshold, if it is, determine that an accelerator terminates;
At this moment, the dynamics that the first electronic equipment is applied by user is more and more less, makes the acceleration of the first electronic equipment more come The least, it is believed that to be the end of an accelerator of user.
The number of times that S103, the number of times started according to accelerator and accelerator terminate determines the number of times of accelerator.
In general, if once accelerating beginning process, terminal procedure is once accelerated, then think that user is to the first electricity Subset has carried out an accelerator.Wherein, the execution sequence present invention of step S101 and step S102 does not limit, permissible Performing simultaneously, or successively perform, step S101 can perform prior to step S102, and step S102 can also be held prior to step S101 OK.
Wherein, the first corresponding relation of accekeration and operational order can be multiple, such as the corresponding pass shown by table 1 System:
Accekeration Operational order
1 accekeration < 2 3rd operational order
2 accekeration < 4 Second operational order
Accekeration 4 First operational order
Table 1
Concrete, when the first electronic equipment is mobile phone, multimedia player, the first operational order can be the first electronics The operational order of certain application in equipment.Such as: when starting the application playing music, the first operational order can be: play Next is bent.When the first electronic equipment is the game operation equipment such as the golf clubs with G-sensor, the first operational order Can be: sending first and control signal to the second electronic equipment, wherein, the second electronic equipment and the first electronic equipment are connected. Such as: when user brandishes the golf clubs with G-sensor so that it is when the accekeration of acquisition is 4, then send and add with this Corresponding first the controlling signal in the second electronic equipment of velocity amplitude.Concrete, the second electronic equipment can be computer, TV etc. Can coordinate the electronic equipment carrying out playing with this golf clubs, the first control signal can be: is hit by ball and flies to distance to work as The place of front striking point on the ball 300 meters.
It is understood that the first electronic equipment refers to not according to first corresponding relation response the first operation in the given time Order, it is believed that the user of currently used first electronic equipment cannot make the first electronic equipment response the according to the first corresponding relation One operational order.As: active user is child, and strength is less, it is impossible to make the accekeration of the first electronic equipment reach 4, then One electronic equipment cannot respond to the first operational order.Owing to user has uncertainty to the acceleration of the first electronic equipment itself, The accekeration making the first electronic equipment obtain such as: user is 2, it may be possible to user's strength is little, it is also possible to user is in order to make the One electronic equipment responds the second operational order and deliberately employs less strength.In view of this consideration, the present invention is determining " One electronic equipment responds the first operational order not according to the first corresponding relation in the given time " time just carry out " obtain preset time The acceleration signal of pre-determined number that in the accelerator of number, gravity sensor detects " operation.So, using as user When the most only making the first electronic equipment obtain the accekeration being not more than 2 in the scheduled time of the first electronic equipment process, can recognize The first electronic equipment cannot be made to respond the first operational order for active user.
Wherein, in the accelerator of preset times, the acceleration signal of the pre-determined number that gravity sensor detects can be equal The acceleration signal detected for gravity sensor in this predetermined amount of time, it is also possible to part is gravity biography in this predetermined amount of time The acceleration signal that sensor detects.
S2, the acceleration signal of process pre-determined number, obtain a result;
S3, respond the first operational order according to result.
Wherein, as it is shown on figure 3, step S2 can specifically include: step S21 and step S22.
S21, acceleration signal to pre-determined number carry out statistics and determine an accekeration scope;
It is understood that the acceleration signal of pre-determined number can use accekeration scope to summarize.
For example: when pre-determined number is 10 times, it is assumed that this accekeration of 10 times is followed successively by: 1,2.1,3.8,0.7, 1.6,2,3.1,0.3,2.7,3.4, then this accekeration of 10 times is added up, determined by accekeration scope be: 0.3 To 3.8.
S22, revise the first corresponding relation according to acceleration range be the second corresponding relation, and wherein, the second corresponding relation is Accekeration in acceleration range and the corresponding relation of operational order.
Determined by step S21, acceleration range is: 0.3 to 3.8, relatively big with the acceleration range gap in table 1, And it is not covered with the interval of accekeration 4, so that the first operational order cannot be responded.In this case, can be right First corresponding relation is modified so that the first operational order can correspond to determined by acceleration in acceleration range Value, so that the first operational order can be responded.Concrete, the correspondence that the second corresponding relation can go out as shown in table 2 is closed System:
Accekeration Operational order
0.3 accekeration < 1.3 3rd operational order
1.3 accekeration < 3.3 Second operational order
Accekeration 3.3 First operational order
Table 2
From Table 2, it can be seen that in actual applications, the second corresponding relation can be retained different operating instruction corresponding Accekeration length of an interval degree proportionate relationship (accekeration corresponding to the second operational order is interval with the 3rd operational order institute The proportionate relationship in corresponding accekeration interval is 2:1), naturally it is also possible to do not retain.
Wherein, as it is shown on figure 3, when step S2 includes step S21 and step S22, step S3 can particularly as follows:
S31, respond the first operational order according to the second corresponding relation.
It is understood that modify the first corresponding relation, after generating the second corresponding relation, user is again to first Electronic equipment is accelerated, so that it may so that the first electronic equipment responds the first operational order.As shown in table 2 second is corresponding closes System, when the accekeration that user makes the first electronic equipment obtain is 3.5, the first operational order just can be responded.
As shown in Figure 4, in the another kind of gravity sensing method that the embodiment of the present invention provides, step S2 can specifically be wrapped Include: step S24.
S24, the double acceleration signal meeting first condition in the acceleration signal of pre-determined number is folded Add process, generate superposition acceleration signal, wherein, first condition be the time interval that occurs of double acceleration signal not More than very first time threshold value.
It is understood that when user cannot make the first electronic equipment reach the accekeration corresponding to the first operational order Time, can the acceleration that user is double be overlapped together, generate superposition acceleration signal, and add according to this superposition Rate signal responds the first operational order.Such as: the accekeration that user makes for the first time the first electronic equipment obtain is 2.5, the The accekeration that secondary makes the first electronic equipment obtain is 2.1, then the two superposition acceleration signal generated that is superimposed is 4.6, such that it is able to reach in the first corresponding relation shown in table 1 interval of the accekeration corresponding to the first operational order, from And the first operational order is met with a response.
In order to not make normal use of user be interfered, the present invention also sets for double acceleration signal and sends out Raw time interval is not more than the condition of very first time threshold value.So, electronic equipment is made to obtain when user is the most double During acceleration signal, it can be overlapped.And for longer twice acceleration signal of time interval, then it is assumed that it is twice Independent operation, is not overlapped.Such process can avoid the normal use affecting user to the first electronic equipment.
As shown in Figure 4, when step S2 includes step S24, step S3 can particularly as follows:
S32, respond the first operational order according to superposition acceleration signal.
A kind of gravity sensing method that the embodiment of the present invention provides, can not respond the in the given time at electronic equipment During one operational order, it is thus achieved that the acceleration signal of the pre-determined number that gravity sensor detects in the accelerator of preset times, And it is processed, according to result, the first operational order is met with a response.Owing to can preset according to electronic equipment The acceleration signal of number of times makes the first operational order meet with a response, and therefore the present invention can make user more preferably use electronics to set Standby so that it is the operational order needed for response user, user experiences good.
Corresponding to above method embodiment, the present invention also provides for a kind of electronic equipment.
As it is shown in figure 5, a kind of electronic equipment that the embodiment of the present invention provides, including: gravity sensor 100 and corresponding relation Memory module 200, gravity sensor 100 is for the accekeration of detection the first electronic equipment, and corresponding relation memory module 200 is deposited Containing the first corresponding relation of accekeration and operational order, this electronic equipment can also include: acceleration signal obtains mould Block 300, acceleration signal processing module 400 and operational order perform module 500,
Acceleration signal obtains module 300, for closing not according to the first correspondence in the given time at the first electronic equipment During system's response the first operational order, it is thus achieved that the acceleration of the pre-determined number that gravity sensor detects in the accelerator of preset times Degree signal;
Gravity sensor (G-sensor) can perceive the change of acceleration, and acceleration is exactly when object is in accelerator In act on the power on object, such as rock, fall, rise, the various mobile change of lower degradation can be converted into by G-sensor The signal of telecommunication.Wherein, the first electronic equipment can be mobile phone, multimedia player, it is also possible to can sense acceleration for other Electronic equipment, the golf clubs with G-sensor used when playing golf game on computers such as user.User is right The when that first electronic equipment applying acceleration, acceleration by the G-sensor perception in the first electronic equipment, and will be changed Become the signal of telecommunication.
Wherein, as shown in Figure 6, acceleration signal obtains module 300, may include that acceleration starts to determine module 310, add Speed terminates to determine that module 320 and acceleration times determine module 330,
Accelerate to start to determine module 310, for judging that whether accekeration that gravity sensor detects is from less than first First acceleration signal of threshold value is changed to the second accekeration more than first threshold, if it is, determine and once accelerated Journey starts;
At this moment, the dynamics that the first electronic equipment is applied by user is increasing, makes the acceleration of the first electronic equipment more come The biggest, it is believed that to be the beginning of an accelerator of user.
Accelerate end and determine module 320, for judging that whether accekeration that gravity sensor detects is from more than first 3rd acceleration signal of threshold value is changed to the 4th accekeration less than first threshold, if it is, determine and once accelerated Journey terminates;
At this moment, the dynamics that the first electronic equipment is applied by user is more and more less, makes the acceleration of the first electronic equipment more come The least, it is believed that to be the end of an accelerator of user.
Acceleration times determines module 330, and the number of times terminated for the number of times started according to accelerator and accelerator is true Determine the number of times of accelerator.
In general, if once accelerating beginning process, terminal procedure is once accelerated, then think that user is to the first electricity Subset has carried out an accelerator.
Wherein, the first corresponding relation of accekeration and operational order can be multiple, such as the corresponding pass shown by table 1 System:
Accekeration Operational order
1 accekeration < 2 3rd operational order
2 accekeration < 4 Second operational order
Accekeration 4 First operational order
Table 1
Concrete, when the first electronic equipment is mobile phone, multimedia player, the first operational order can be the first electronics The operational order of certain application in equipment.Such as: when starting the application playing music, the first operational order can be: play Next is bent.When the first electronic equipment is the game operation equipment such as the golf clubs with G-sensor, the first operational order Can be: sending first and control signal to the second electronic equipment, wherein, the second electronic equipment and the first electronic equipment are connected. Such as: when user brandishes the golf clubs with G-sensor so that it is when the accekeration of acquisition is 4, then send and add with this Corresponding first the controlling signal in the second electronic equipment of velocity amplitude.Concrete, the second electronic equipment can be computer, TV etc. Can coordinate the electronic equipment carrying out playing with this golf clubs, the first control signal can be: is hit by ball and flies to distance to work as The place of front striking point on the ball 300 meters.
It is understood that the first electronic equipment refers to not according to first corresponding relation response the first operation in the given time Order, it is believed that the user of currently used first electronic equipment cannot make the first electronic equipment response the according to the first corresponding relation One operational order.As: active user is child, and strength is less, it is impossible to make the accekeration of the first electronic equipment reach 4, then One electronic equipment cannot respond to the first operational order.Owing to user has uncertainty to the acceleration of the first electronic equipment itself, The accekeration making the first electronic equipment obtain such as: user is 2, it may be possible to user's strength is little, it is also possible to user is in order to make the One electronic equipment responds the second operational order and deliberately employs less strength.In view of this consideration, the present invention is determining " One electronic equipment responds the first operational order not according to the first corresponding relation in the given time " time just carry out " obtain preset time The acceleration signal of pre-determined number that in the accelerator of number, gravity sensor detects " operation.So, using as user When the most only making the first electronic equipment obtain the accekeration being not more than 2 in the scheduled time of the first electronic equipment process, can recognize The first electronic equipment cannot be made to respond the first operational order for active user.
Wherein, in the accelerator of preset times, the acceleration signal of the pre-determined number that gravity sensor detects can be equal The acceleration signal detected for gravity sensor in this predetermined amount of time, it is also possible to part is gravity biography in this predetermined amount of time The acceleration signal that sensor detects.
Acceleration signal processing module 400, for processing the acceleration signal of pre-determined number, obtains a result;
Operational order performs module 500, for responding the first operational order according to result.
Wherein, as it is shown in fig. 7, acceleration signal processing module 400, may include that acceleration signal statistical module 410 He Corresponding relation modified module 420,
Acceleration signal statistical module 410, determines an acceleration for the acceleration signal of pre-determined number is carried out statistics Value scope;
It is understood that the acceleration signal of pre-determined number can use accekeration scope to summarize.
For example: when pre-determined number is 10 times, it is assumed that this accekeration of 10 times is followed successively by: 1,2.1,3.8,0.7, 1.6,2,3.1,0.3,2.7,3.4, then this accekeration of 10 times is added up, determined by accekeration scope be: 0.3 To 3.8.
Corresponding relation modified module 420, is the second corresponding relation for revising the first corresponding relation according to acceleration range, Wherein, the accekeration during the second corresponding relation is acceleration range and the corresponding relation of operational order.
Acceleration range determined by acceleration signal statistical module 410 is: the acceleration in 0.3 to 3.8, with table 1 Degree range differences is away from relatively big, and is not covered with the interval of accekeration 4, so that the first operational order cannot be responded.This In the case of Zhong, the first corresponding relation can be modified so that the first operational order can correspond to determined by accelerate Accekeration in degree scope, so that the first operational order can be responded.Concrete, the second corresponding relation can be such as table Corresponding relation shown by 2:
Accekeration Operational order
0.3 accekeration < 1.3 3rd operational order
1.3 accekeration < 3.3 Second operational order
Accekeration 3.3 First operational order
Table 2
From Table 2, it can be seen that in actual applications, the second corresponding relation can be retained different operating instruction corresponding Accekeration length of an interval degree proportionate relationship (accekeration corresponding to the second operational order is interval with the 3rd operational order institute The proportionate relationship in corresponding accekeration interval is 2:1), naturally it is also possible to do not retain.
Wherein, acceleration signal statistical module 410 and corresponding relation amendment mould are included when acceleration signal processing module 400 During block 420, operational order performs module 500 and can be specifically configured to: respond the first operational order according to the second corresponding relation.
It is understood that modify the first corresponding relation, after generating the second corresponding relation, user is again to first Electronic equipment is accelerated, so that it may so that the first electronic equipment responds the first operational order.As shown in table 2 second is corresponding closes System, when the accekeration that user makes the first electronic equipment obtain is 3.5, the first operational order just can be responded.
As shown in Figure 8, in the another kind of electronic equipment that the embodiment of the present invention provides, acceleration signal processing module 400, May include that first condition determination module 430 and acceleration laminating module 440,
First condition determination module 430, meets the continuous of first condition in the acceleration signal determining pre-determined number The acceleration signal of twice, wherein, first condition is that the time interval that double acceleration signal occurs is not more than first Time threshold;
Acceleration laminating module 440, for meeting the double of first condition in the acceleration signal of pre-determined number Acceleration signal be overlapped process, generate superposition acceleration signal.
It is understood that when user cannot make the first electronic equipment reach the accekeration corresponding to the first operational order Time, can the acceleration that user is double be overlapped together, generate superposition acceleration signal, and add according to this superposition Rate signal responds the first operational order.Such as: the accekeration that user makes for the first time the first electronic equipment obtain is 2.5, the The accekeration that secondary makes the first electronic equipment obtain is 2.1, then the two superposition acceleration signal generated that is superimposed is 4.6, such that it is able to reach in the first corresponding relation shown in table 1 interval of the accekeration corresponding to the first operational order, from And the first operational order is met with a response.
In order to not make normal use of user be interfered, the present invention also sets for double acceleration signal and sends out Raw time interval is not more than the condition of very first time threshold value.So, electronic equipment is made to obtain when user is the most double During acceleration signal, it can be overlapped.And for longer twice acceleration signal of time interval, then it is assumed that it is twice Independent operation, is not overlapped.Such process can avoid the normal use affecting user to the first electronic equipment.
When acceleration signal processing module 400 includes first condition determination module 430 and acceleration laminating module 440, Operational order performs module 500, can be specifically configured to:
The first operational order is responded according to superposition acceleration signal.
A kind of electronic equipment that the embodiment of the present invention provides, can not respond the first behaviour in the given time at electronic equipment When instructing, it is thus achieved that the acceleration signal of the pre-determined number that gravity sensor detects in the accelerator of preset times and right It processes, and according to result, the first operational order is met with a response.Due to can be according to electronic equipment preset times Acceleration signal the first operational order is met with a response, therefore the present invention can make user more preferably use electronic equipment, makes Operational order needed for its response user, user experiences good.
For convenience of description, it is divided into various unit to be respectively described with function when describing apparatus above.Certainly, this is being implemented The function of each unit can be realized in same or multiple softwares and/or hardware during invention.
As seen through the above description of the embodiments, those skilled in the art it can be understood that to the present invention can The mode adding required general hardware platform by software realizes.Based on such understanding, technical scheme essence On the part that in other words prior art contributed can embody with the form of software product, this computer software product Can be stored in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) performs some of each embodiment of the present invention or embodiment Method described in part.
Each embodiment in this specification all uses the mode gone forward one by one to describe, identical similar portion between each embodiment Dividing and see mutually, what each embodiment stressed is the difference with other embodiments.Especially for device or For system embodiment, owing to it is substantially similar to embodiment of the method, so describing fairly simple, relevant part sees method The part of embodiment illustrates.Apparatus and system embodiment described above is only schematically, wherein said conduct The unit of separating component explanation can be or may not be physically separate, the parts shown as unit can be or Person may not be physical location, i.e. may be located at a place, or can also be distributed on multiple NE.Can root Factually border need select some or all of module therein to realize the purpose of the present embodiment scheme.Ordinary skill Personnel, in the case of not paying creative work, are i.e. appreciated that and implement.
The present invention can be used in numerous general or special purpose computing system environment or configuration.Such as: personal computer, service Device computer, handheld device or portable set, laptop device, multicomputer system, system based on microprocessor, top set Box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer, include any of the above system or equipment Distributed computing environment etc..
The present invention can be described in the general context of computer executable instructions, such as program Module.Usually, program module includes performing particular task or realizing the routine of particular abstract data type, program, object, group Part, data structure etc..The present invention can also be put into practice in a distributed computing environment, in these distributed computing environment, by The remote processing devices connected by communication network performs task.In a distributed computing environment, program module is permissible It is positioned in the local and remote computer-readable storage medium of storage device.
It should be noted that in this article, the relational terms of such as first and second or the like is used merely to a reality Body or operation separate with another entity or operating space, and deposit between not necessarily requiring or imply these entities or operating Relation or order in any this reality.
The above is only the detailed description of the invention of the present invention, it is noted that for the ordinary skill people of the art For Yuan, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (6)

1. a gravity sensing method, is applied in the first electronic equipment, is provided with gravity sensitive in described first electronic equipment Device, described gravity sensor is for detecting the accekeration of described first electronic equipment, and described first electronic equipment has acceleration Angle value and the first corresponding relation of operational order, it is characterised in that described method includes:
When described first electronic equipment responds the first operational order not according to described first corresponding relation in the given time, obtain Obtain the acceleration signal of the described pre-determined number that gravity sensor detects described in the accelerator of pre-determined number;
Process the acceleration signal of described pre-determined number, obtain a result;
Described first operational order is responded according to described result;
Wherein, the acceleration signal of the described pre-determined number of described process, obtain a result, including: to described pre-determined number Acceleration signal in meet the double acceleration signal of first condition and be overlapped processing, generate superposition acceleration letter Number, wherein, described first condition is that the time interval that described double acceleration signal occurs is not more than very first time threshold Value.
Method the most according to claim 1, it is characterised in that described according to described first operation of described result response Instruction, particularly as follows:
Described first operational order is responded according to described superposition acceleration signal.
Method the most according to claim 1, it is characterised in that the determination method of the number of times of described accelerator includes:
Judge whether the accekeration that described gravity sensor detects changes from the first acceleration signal less than first threshold For the second accekeration more than described first threshold, if it is, determine that an accelerator starts;
Judge that whether accekeration that described gravity sensor detects is from the 3rd acceleration signal more than described first threshold It is changed to the 4th accekeration less than described first threshold, if it is, determine that an accelerator terminates;
The number of times that the number of times started according to described accelerator and described accelerator terminate determines the number of times of described accelerator.
4. an electronic equipment, including: gravity sensor and corresponding relation memory module, described gravity sensor is used for detecting institute Stating the accekeration of electronic equipment, described corresponding relation memory module storage has the first corresponding pass of accekeration and operational order System, it is characterised in that described electronic equipment also includes: acceleration signal obtains module, acceleration signal processing module and operation Instruction performs module,
Described acceleration signal obtains module, for closing not according to described first correspondence in the given time at described electronic equipment During system's response the first operational order, it is thus achieved that it is described predetermined secondary that gravity sensor described in the accelerator of pre-determined number detects The acceleration signal of number;
Described acceleration signal processing module, for processing the acceleration signal of described pre-determined number, obtains a result;
Described operational order performs module, for responding described first operational order according to described result;
Wherein, described acceleration signal processing module, including: first condition determination module and acceleration laminating module;Described One condition criterion module, meets the double acceleration of first condition in the acceleration signal determining described pre-determined number Degree signal, wherein, described first condition is that the time interval that double acceleration signal occurs is not more than very first time threshold Value;Described acceleration laminating module, meets the continuous of described first condition in the acceleration signal to described pre-determined number The acceleration signal of twice is overlapped processing, and generates superposition acceleration signal.
Electronic equipment the most according to claim 4, it is characterised in that described operational order performs module, is specifically configured to:
Described first operational order is responded according to described superposition acceleration signal.
Electronic equipment the most according to claim 4, it is characterised in that described acceleration signal obtains module, including: accelerate Start to determine that module, acceleration end determine that module and acceleration times determine module,
Described acceleration starts to determine module, for judging that whether accekeration that described gravity sensor detects is from less than first First acceleration signal of threshold value is changed to the second accekeration more than described first threshold, if it is, determine and once add Speed process starts;Described acceleration end determines module, for judge accekeration that described gravity sensor detects whether from It is changed to the 4th accekeration less than described first threshold more than the 3rd acceleration signal of described first threshold, if it is, Then determine that an accelerator terminates;
Described acceleration times determines module, for the number of times that starts according to described accelerator and described accelerator terminate time Number determines the number of times of described accelerator.
CN201210111957.4A 2012-04-16 2012-04-16 A kind of gravity sensing method and a kind of electronic equipment Active CN103376918B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210111957.4A CN103376918B (en) 2012-04-16 2012-04-16 A kind of gravity sensing method and a kind of electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210111957.4A CN103376918B (en) 2012-04-16 2012-04-16 A kind of gravity sensing method and a kind of electronic equipment

Publications (2)

Publication Number Publication Date
CN103376918A CN103376918A (en) 2013-10-30
CN103376918B true CN103376918B (en) 2016-12-28

Family

ID=49462132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210111957.4A Active CN103376918B (en) 2012-04-16 2012-04-16 A kind of gravity sensing method and a kind of electronic equipment

Country Status (1)

Country Link
CN (1) CN103376918B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007653A (en) * 2014-06-09 2014-08-27 中科创达软件股份有限公司 Time telling method and device
US9874966B2 (en) * 2015-04-28 2018-01-23 Microsoft Technology Licensing, Llc Electrostatic device having spaced electrodes
CN110944085B (en) * 2019-11-12 2021-10-29 南京邮电大学 Method for generating music by shaking smart phone
CN113867524A (en) * 2021-09-10 2021-12-31 安克创新科技股份有限公司 Control method and device and intelligent audio glasses

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1501221A (en) * 2002-10-30 2004-06-02 ���µ�����ҵ��ʽ���� Operation indicating apparatus, operation indicating method and operation indicating program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100786703B1 (en) * 2004-07-24 2007-12-21 삼성전자주식회사 Device and method for measuring physical exercise using acceleration sensor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1501221A (en) * 2002-10-30 2004-06-02 ���µ�����ҵ��ʽ���� Operation indicating apparatus, operation indicating method and operation indicating program

Also Published As

Publication number Publication date
CN103376918A (en) 2013-10-30

Similar Documents

Publication Publication Date Title
CN103376918B (en) A kind of gravity sensing method and a kind of electronic equipment
CN103838465B (en) The desktop icons display methods and device of a kind of vivid and interesting
CN104965695B (en) The method and apparatus of analog subscriber real-time operation
CN109379247A (en) The method and device that the network delay of a kind of pair of application program is detected
CN107376353A (en) Outpost of the tax office collocation method and device
CN108287611A (en) Screen touch-control response method, terminal and computer storage media
CN106033255A (en) Information processing method and electronic device
CN109739223A (en) Robot obstacle-avoiding control method, device and terminal device
CN102375918B (en) Interaction virtual role system between facilities
CN105242780B (en) A kind of interaction control method and device
CN105549878A (en) Electronic book page turning control method and device
CN112394817B (en) Method, apparatus, electronic device and storage medium for responding to vibration event
CN109120524A (en) Link aggregation method and relevant device
CN103777846B (en) Information processing method and electronic equipment
CN104618339A (en) User offline pairing method, mobile terminal and server
CN103683436B (en) Regulate the method for mobile terminal charging current, device and mobile terminal
CN109067554A (en) Endorsement method, device, mobile terminal and the storage medium of anti-injection attacks
CN106512362A (en) Table tennis auxiliary training system and method
CN112169338B (en) Sphere motion control method and device, storage medium and computer equipment
CN106648390B (en) A kind of control instruction generation method, device and mobile terminal
CN103869949A (en) Method for controlling vibration and electronic device
CN103517311A (en) Method and device simulating wireless network
CN106951150A (en) A kind of mobile terminal safety payment mechanism
CN106125936A (en) A kind of motion sensing control method and electronic installation
CN103744608B (en) A kind of information processing method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant