CN104238728A - State judging method and state judging device - Google Patents

State judging method and state judging device Download PDF

Info

Publication number
CN104238728A
CN104238728A CN201310244853.5A CN201310244853A CN104238728A CN 104238728 A CN104238728 A CN 104238728A CN 201310244853 A CN201310244853 A CN 201310244853A CN 104238728 A CN104238728 A CN 104238728A
Authority
CN
China
Prior art keywords
parameter value
state
time point
electronic equipment
predetermined condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310244853.5A
Other languages
Chinese (zh)
Other versions
CN104238728B (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 CN201310244853.5A priority Critical patent/CN104238728B/en
Publication of CN104238728A publication Critical patent/CN104238728A/en
Application granted granted Critical
Publication of CN104238728B publication Critical patent/CN104238728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a state judging method and a state judging device. The state judging method is applied to electronic equipment. The electronic equipment can be in a first state and a second state at least. The state judging method comprises the following steps of acquiring a first parameter value for showing the state of the electronic equipment; judging whether the first parameter value meets a first preset condition or not and acquiring a first judgment result; further judging whether the first parameter value meets a second preset condition or not and acquiring a second judgment result when the first judgment result shows that the first parameter value meets the first preset condition; and determining that the electronic equipment is changed into the second state from the first state when the second judgment result shows that the first parameter value meets the second preset condition. By the state judging method and the state judging device, change of the state of the electronic equipment can be accurately judged, a processing unit cannot be kept in a high-power-consumption state, the power consumption of the electronic equipment is reduced, and the standby time is prolonged.

Description

State judging method and device
Technical field
The present invention relates to field of computer technology, more specifically, the present invention relates to a kind of state judging method and device.
Background technology
In recent years, such as the electronic equipment of notebook, desk-top computer, panel computer (PAD), mobile phone, multimedia player, PDA(Personal Digital Assistant) and so on is universal all the more.At present, often motion sensor is all integrated with (such as in these electronic equipments, gravity sensor, accelerometer, gyroscope etc.), this motion sensor is for sensing the motion of electronic equipment (such as, rock, fall, rise, lower degradation) amount, and various amount of exercise is converted into electric signal, then completes predefined function by the computational analysis of processing unit in electronic equipment.Below, the use scenes of motion sensor will be specifically described for mobile phone.
In daily use procedure, people often can not hold mobile phone all the time, but it may be placed on a certain position, to complete other work.Like this, when receiving incoming call or note, user possibly cannot perceive the Ring Or Vibrate that mobile phone produces immediately.Thus, in order to promote Consumer's Experience, wish when user picks up mobile phone again, or even before not lighting mobile phone screen by pressing keys (such as, power key), just can obtain corresponding prompting.Obviously, this function be realized, just need to make the processing unit of mobile phone can obtain the motion state of the mobile phone of motion sensor senses.
To this, the first solution of the prior art is, the motion sensor of the processing unit making mobile phone continuous poll (poll) this mobile phone on one's own initiative, so that sensing movement phone is from static to the change of the state of motion in real time.But owing to constantly carrying out polling operation, so processing unit works under needing the moment to remain on high power consumption state, and cannot enter low power consumpting state, thus cause the power consumption of electronic equipment high, stand-by time shortens.
Further, in order to overcome the high power problems in such scheme, second solution of the prior art is, processing unit is poll motion sensor no longer on one's own initiative, but make motion sensor produce interruption when the amount of exercise sensing mobile phone exceedes default threshold value, perform prompting operation to wake the processing unit be in low power consumpting state up to user.
But, in the second solution, still following problem may be there is, namely because motion sensor just produces interruption when the amount of exercise sensing mobile phone exceedes default threshold value simply, so processing unit not only performs prompting operation when mobile phone changes into motion state from stationary state to user, and when mobile phone remains on motion state, also constantly information will be sent to user.Such as, when mobile phone is placed in pocket and misses incoming call or note by user in running process, motion sensor constantly makes processing unit send prompting to user by due to jolting of running generation.This works under processing unit will be caused undoubtedly to remain on high power consumption state, increases the power consumption of electronic equipment, shortens stand-by time.
Therefore, a kind of novel state judging method and device is needed to solve the problems referred to above.
Summary of the invention
In order to solve the problems of the technologies described above, according to an aspect of the present invention, provide a kind of state judging method, described method is applied to electronic equipment, described electronic equipment at least comprises the first state and the second state, and described method comprises: obtain the first parameter value for characterizing described electronic equipment status; Judge described first parameter value whether first predetermined condition, and obtain the first judged result; When described first judged result shows that described first parameter value meets described first predetermined condition, judge further described first parameter value whether second predetermined condition, and obtain the second judged result; And when described second judged result shows that described first parameter value meets described second predetermined condition, determine that described electronic equipment changes to described second state from described first state.
In addition, according to a further aspect in the invention, provide a kind of state judging device, described application of installation is in electronic equipment, described electronic equipment at least comprises the first state and the second state, described device comprises: obtain unit, for obtaining the first parameter value for characterizing described electronic equipment status; And judging unit, judge described first parameter value whether first predetermined condition, and obtain the first judged result, when described first judged result shows that described first parameter value meets described first predetermined condition, judge described first parameter value whether second predetermined condition further, and obtain the second judged result, and when described second judged result shows that described first parameter value meets described second predetermined condition, determine that described electronic equipment changes to described second state from described first state.
Compared with prior art, adopt according to state judging method of the present invention and device, the parameter value for characterizing state of electronic equipment can be obtained, and by judging whether this parameter value meets two predetermined conditions and determine whether described electronic equipment produces state change simultaneously.Therefore, in the present invention, can judge that the state of electronic equipment changes exactly, and work under processing unit can not being remained on high power consumption state, reduce the power consumption of electronic equipment, extend stand-by time.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in instructions, claims and accompanying drawing and obtain.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for instructions, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 illustrates according to state judging method of the present invention.
Fig. 2 illustrates according to state judging device of the present invention.
Fig. 3 illustrates condition detection method according to a first embodiment of the present invention.
Fig. 4 illustrates condition checkout gear according to a first embodiment of the present invention.
Fig. 5 illustrates the curve map of amount of exercise according to a first embodiment of the present invention to the time.
Fig. 6 illustrates the curve map of amount of exercise according to a second embodiment of the present invention to the time.
Fig. 7 illustrates amount of exercise difference according to a second embodiment of the present invention to the curve map of time.
Embodiment
Describe in detail with reference to the accompanying drawings according to each embodiment of the present invention.Here it is to be noted that it in the accompanying drawings, identical Reference numeral is given there is identical or similar structures and function ingredient substantially, and the repeated description of will omit about them.
Hereinafter, describe according to state judging method of the present invention and device with reference to Fig. 1 and Fig. 2.
Fig. 1 illustrates according to state judging method of the present invention, and Fig. 2 illustrates according to state judging device of the present invention.
State judging method illustrated in Fig. 1 is applied to electronic equipment, and described electronic equipment at least comprises the first state and the second state, and described method is realized by the state judging device illustrated in Fig. 2.Particularly, described state judging device 100 comprises: obtain unit 110 and judging unit 120.
As illustrated in figure 1, described state judging method comprises:
In step s 110, acquisition unit 110 obtains the first parameter value for characterizing described electronic equipment status;
In the step s 120, judging unit 120 judges described first parameter value whether first predetermined condition, and obtains the first judged result;
In step s 130, which, when described first judged result shows that described first parameter value meets described first predetermined condition, judging unit 120 judges further described first parameter value whether second predetermined condition, and obtains the second judged result; And
In step S140, when described second judged result shows that described first parameter value meets described second predetermined condition, judging unit 120 determines that described electronic equipment changes to described second state from described first state.
As can be seen here, adopt according to state judging method of the present invention and device, the parameter value for characterizing state of electronic equipment can be obtained, and by judging whether this parameter value meets two predetermined conditions and determine whether described electronic equipment produces state change simultaneously.Therefore, in the present invention, can judge that the state of electronic equipment changes exactly, and work under processing unit can not being remained on high power consumption state, reduce the power consumption of electronic equipment, extend stand-by time.
Hereinafter, with reference to Fig. 3 and Fig. 4, condition detection method according to a first embodiment of the present invention and device are described.
Fig. 3 illustrates condition detection method according to a first embodiment of the present invention, and Fig. 4 illustrates condition checkout gear 100 according to a first embodiment of the present invention.
Condition detection method according to a first embodiment of the present invention illustrated in Fig. 3 can be realized by the condition checkout gear 100 illustrated in Fig. 4.As illustrated in figure 4, with in Fig. 2 similarly, this condition checkout gear 100 can comprise: obtain unit 110 and judging unit 120.In addition, preferably, this signal conditioning package 100 can also comprise: generation unit 130 and delivery unit 140.
This condition checkout gear 100 may be used for carrying out state-detection to one or more electronic equipment, described electronic equipment at least comprises the first state and the second state, described first state is one in motion state and stationary state, and described second state is another in motion state and stationary state.
Such as, electronic equipment can be defined as remain static being wherein used for characterizing state that momental first parameter value of electronic equipment is less than threshold value constantly, and after judging that electronic equipment remains static, once the situation being more than or equal to threshold value appears in the first parameter value, then think that now electronic equipment is switched to motion state from stationary state.
In like manner, electronic equipment can be defined as be kept in motion being wherein used for characterizing state that momental first parameter value of electronic equipment is greater than threshold value constantly, and after judging that electronic equipment is kept in motion, once the situation being less than or equal to threshold value appears in the first parameter value, then think that now electronic equipment is switched to stationary state from motion state.
In addition, this condition checkout gear 100 can be communicated with this electronic equipment by any mode.
In one example, this condition checkout gear 100 can be integrated in this electronic equipment as a software module and/or hardware module, and in other words, this electronic equipment can comprise this condition checkout gear 100.Such as, when electronic equipment is mobile phone, this condition checkout gear 100 can be a software module in the operating system of this mobile phone, or can be aimed at the application program that this mobile phone develops; Certainly, this condition checkout gear 100 can be one of numerous hardware modules of this mobile phone equally.
Such as, preferably, this condition checkout gear 100 can be motion sensor integrated in the electronic device, such as, and gravity sensor, accelerometer, gyroscope etc.Except can sensing as in the prior art and quantizing the motion of electronic equipment, and sense when amount of exercise exceedes default threshold value produce interrupt outside, this condition checkout gear 100 can also support that a kind of state changes detecting pattern, namely this condition checkout gear 100 can judge whether electronic equipment enters stationary state and change into motion state from stationary state exactly, or whether enter motion state and change into stationary state from motion state, then can further to electronic equipment processing unit (such as, CPU (central processing unit) (CPU) or SOC (system on a chip) (SOC)) export and interrupt, so that when saving power consumption, operation needed for completing user.
Alternatively, in another example, this condition checkout gear 100 and this electronic equipment also can be the equipment be separated, and this condition checkout gear 100 can be connected to this electronic equipment by wired and/or wireless network, and transmit interactive information according to the data layout of agreement.
Below, the first embodiment of the present invention is specifically described by using mobile phone as the example of electronic equipment.But, it should be noted that, the present invention is not limited thereto.This electronic equipment can be the electronic equipment of any type, and it includes but not limited to: desk-top computer, notebook, panel computer, electronic reader, multimedia player and personal digital assistant etc.In addition, other reciprocal processes between condition checkout gear and electronic equipment can also be applied the present invention to.
As illustrated in fig. 3, condition detection method according to a first embodiment of the present invention comprises:
In step S210, obtain the first parameter value for characterizing electronic equipment status.
Described by background technology, such demand is there is in actual life, namely when user misses electronic equipment (such as, mobile phone) on a certain event (such as, incoming call, note or calendar prompting) time, wish, when user picks up mobile phone again, to provide corresponding prompting to user immediately.For this purpose, in the first embodiment of the present invention, condition checkout gear 100 is connected with this electronic equipment, or is integrated in this electronic equipment, whether enter stationary state for use in detected electrons equipment and change into motion state from stationary state.
Particularly, in condition checkout gear 100, obtain unit 110 and obtain for characterizing momental first parameter value of electronic equipment continuously at different time points, whether change for the current residing state of detected electrons equipment and this state.As mentioned above, the state residing for electronic equipment can comprise stationary state or motion state.
Such as, in order to obtain the first parameter value as acceleration, the accelerometer that this condition checkout gear 100 can be made up of Detection job (also claiming sensitive-mass), supporting, potentiometer, spring, damper and housing.The supported constraint of Detection job can only be moved along an axis, and this axle is commonly referred to input shaft or sensitive axes.When electronic equipment produces motion, in condition checkout gear 100, housing does accelerated motion along sensitive axes direction along with this electronic equipment, and according to Newton's law, the motion state that the Detection job with certain inertia tries hard to keep it original is constant.To relative motion be produced between this Detection job and housing, make camber of spring, so Detection job accelerated motion thereupon under spring force.When the inertial force that spring force and Detection job accelerated motion produce balances each other, just no longer include relative motion between Detection job and housing, at this moment the distortion reflection of spring is by the size of measuring acceleration.Finally, potentiometer can be converted to electric signal, for output by degree of will speed up signal as displacement sensor.Like this, obtain unit 110 just to obtain as the momental acceleration of electronic equipment.
It should be noted that, although describe condition checkout gear 100 for accelerometer above, obviously, this condition checkout gear also can be based on coming the gravity sensor of work, the gyroscope etc. based on gyro gyroscopic action according to the principle of piezoelectric effect.
Below, the amount of exercise obtaining the electronic equipment that unit 110 obtains is described with reference to Figure 5.Fig. 5 illustrates the curve map of amount of exercise according to a first embodiment of the present invention to the time.
As illustrated in fig. 5, after obtaining the momental quantification of electronic equipment of unit 110 acquisition, result illustrates: at time point t1, and characterizing momental first parameter value of electronic equipment is 105; At time point t2, characterizing momental first parameter value of electronic equipment is 22; At time point t3, characterizing momental first parameter value of electronic equipment is 23; At time point t4, characterizing momental first parameter value of electronic equipment is 21; At time point t5, characterizing momental first parameter value of electronic equipment is 21; At time point t6, characterizing momental first parameter value of electronic equipment is 22; At time point t7, characterizing electronic equipment momental first parameter value is 110 etc.
Notice, in order to more close to truth, in the examples described above, the first parameter value is not definitely 0, even if this is due to such as when being placed on static desktop by electronic equipment, this desktop is still likely owing to rocking or being driven by knocking electronic equipment to produce light exercise.
In step S220, judge the first parameter value whether first predetermined condition.
After acquisition unit 110 obtains the first parameter value for characterizing described electronic equipment status, judging unit 120 starts to perform the first judgement operation, to determine whether electronic equipment enters stationary state.
Particularly, this judging unit 120 judges described first parameter value whether first predetermined condition, and obtains the first judged result.When described first judged result shows that described first parameter value meets described first predetermined condition, this condition detection method proceeds to step S230; Otherwise this condition detection method turns back to step S210, to continue to obtain the first parameter value for characterizing electronic equipment status.
Such as, described first predetermined condition can comprise: in predetermined amount of time (such as, 5 seconds) period, described first parameter value is less than first threshold (such as, 100) constantly.
Suppose that obtaining unit 110 pairs of momental sampling interval of electronic equipment is 1 second.With reference to figure 5, when the 1st second (that is, t1), judging unit 120 only obtained a sample value via this acquisition unit 110, i.e. the first parameter value 105.Judging unit 120 finds there is not enough sample numbers at present, thus determines this first parameter value not first predetermined condition.
When the 2nd second (that is, t2), judging unit 120 only obtained two sample values via this acquisition unit 110, i.e. the first parameter value 105 and 22.Judging unit 120 finds still there is not enough sample numbers at present, thus determines this first parameter value not first predetermined condition.So analogize.
At the 5th second (namely, t5) time, judging unit 120 obtains five enough sample values via this acquisition unit 110, i.e. the first parameter value 105,22,23,21 and 21, but, because judging unit 120 is judged during predetermined 5 seconds, namely from very first time point t1 to the second time point t5, this first parameter value is not less than first threshold 100 constantly, and thus, it is not first predetermined condition still.
Then, when the 6th second (that is, t6), judging unit 120 obtained ensuing five sample values via this acquisition unit 110, i.e. the first parameter value 22,23,21,21 and 22, at this moment, judging unit 120 is judged during predetermined 5 seconds, namely from very first time point t2 to the second time point t6, this first parameter value is less than first threshold 100 constantly, thus, it meets the first predetermined condition, and generates the judged result indicating described first parameter value first predetermined condition accordingly.
In step S230, judge the first parameter value whether second predetermined condition.
When the first judged result indicates described first parameter value first predetermined condition, judging unit 120 determines that electronic equipment enters stationary state.Then, judging unit 120 continues execution second judgement operation, to determine that electronic equipment changes to motion state from stationary state.
Particularly, this judging unit 120 judges described first parameter value whether second predetermined condition, and obtains the second judged result.When described second judged result shows that described first parameter value meets described second predetermined condition, this condition detection method proceeds to step S240; Otherwise this condition detection method turns back to step S210, to continue to obtain the first parameter value for characterizing electronic equipment status.
Such as, described second predetermined condition can comprise: the time point after above-mentioned predetermined amount of time, and described first parameter value is more than or equal to first threshold (that is, 100).
Continue with reference to figure 5, when the 7th second (that is, t7), obtain unit 110 and obtain an ensuing sample value, i.e. the first parameter value 110.At this moment, determining that electronic equipment at the 6th second (namely, t6) after entering stationary state, judging unit 120 finds the time point after the 6th second (that is, t6), namely at the 7th second (i.e. t7), this first parameter value is greater than first threshold 100, thus, it meets the second predetermined condition, and generates the judged result indicating described first parameter value second predetermined condition accordingly.
In step S240, determine that electronic equipment changes to the second state from the first state.
When the second judged result indicates described first parameter value second predetermined condition, judging unit 120 determines that electronic equipment changes to motion state from stationary state.
In step s 250, the first trigger pip is generated.
Determine that electronic equipment is from after stationary state changes to motion state at judging unit 120, generation unit 130 generates the first trigger pip, and described first trigger pip performs the first operation for the processing unit triggering described electronic equipment.
Such as, this generation unit generates a look-at-me, to wake the processing unit be in owing to not being in for a long time the electronic equipment in low power consumpting state by operating up, and trigger this processing unit and perform prompting operation, so that the various events missed before can informing the user to user.
As mentioned above, motion sensor integrated in the electronic device can be embodied as by this condition checkout gear 100.At this moment, originally can provide for this motion sensor, modify for producing the interruption stitch (pin) interrupted when electronic equipment amount of exercise exceedes predetermined threshold value, make except this interruption generation pattern of the prior art, this interruption stitch can also support that state according to a first embodiment of the present invention changes detecting pattern, namely after the measuring ability being set to " enable static to motion ", this motion sensor frequently can not produce interruption at electronic equipment amount of exercise in time exceeding predetermined threshold value, but only have the change occurred from stationary state to motion state when electronic equipment just can produce interruption.
But, notice, public one of interruption producing method due to two kinds of difference in functionalitys interrupts stitch, be easy to can not distinguish the function that original function and the present invention newly increase, so, preferably, except interruption stitch of the prior art is modified, a new interruption stitch can also be provided extraly, to be used for identifying the interrupt event that stationary state changes to motion state to this motion sensor.Like this, can be easy to distinguish continuous interrupt event in the process of the corresponding software process of electronic equipment, when paying close attention to which signal with box lunch, just use which signal.
In step S260, transmit the first trigger pip to processing unit.
Next, delivery unit 140 receives the look-at-me generated from generation unit 130, and the interruption stitch such as by newly increasing, it is sent to processing unit.
It should be noted that, although described in the embodiments condition checkout gear 100 of the present invention above-mentioned first whether enter stationary state for judging electronic equipment and for judging that whether electronic equipment changes to the process of motion state from stationary state further, the present invention is not limited thereto.
Obviously, condition checkout gear 100 also may be used for by judging during predetermined amount of time, whether described first parameter value is greater than first threshold constantly, judges whether electronic equipment enters motion state; And be further used for by judging the time point after above-mentioned predetermined amount of time, whether described first parameter value be less than or equal to first threshold, judge that whether electronic equipment changes to the process of stationary state from motion state.
As can be seen here, adopt state judging method according to a first embodiment of the present invention and device, can obtain for characterizing momental first parameter value of electronic equipment, utilize this first parameter value, judge whether described electronic equipment enters the first state by the first predetermined condition, after described electronic equipment enters the first state, judge whether described electronic equipment changes to the second state from the first state further by the second predetermined condition, and send for triggering the first trigger pip that it performs the first operation to the processing unit of electronic equipment accordingly.Therefore, in the first embodiment of the present invention, can judge whether the state of electronic equipment changes exactly, and only when state of electronic equipment changes, just produce the trigger pip for waking the processing unit in low power consumpting state up.
Thus, in the first embodiment of the present invention, when electronic equipment remains on motion state, such as, when mobile phone is placed in pocket by user in running process, motion sensor can not continue to produce look-at-me wake up process unit; But only have when first entering stationary state when electronic equipment and change to motion state from stationary state, such as, when picking up mobile phone user from table, or only have when first entering motion state when electronic equipment and change to stationary state from motion state, such as, when user stops running, just by the mode such as vibration, bell sound, light, screen flicker, the information about the phone missed before, note is sent, so that user can receive the prompting of expectation infalliblely to user.In addition, also work under the processing unit of electronic equipment is remained on high power consumption state for a long time, reduce the power consumption of electronic equipment, extend stand-by time.
It should be noted that, in the first embodiment of the present invention, for basis for estimation is to judge whether electronic equipment enters motion or stationary state and whether state change occurs with the absolute motion amount of electronic equipment, but, when electronic equipment is in the environment of persistent movement, this determination methods may produce erroneous judgement.
Such as, when by electronic equipment (such as, mobile phone) when placing on desktop aboard, the vibration that this electronic equipment may produce due to train vibration influence and constantly shaking, when this shake exceeds first threshold comparatively greatly, forever cannot meet causing the first parameter value and judge the first relevant predetermined condition to stationary state, namely condition checkout gear 100 cannot determine that this electronic equipment enters stationary state.
For this reason, in the second embodiment of the present invention, by with the relative motion amount between each sampled point of electronic equipment for basis for estimation judge electronic equipment whether enter motion or stationary state and whether occur state change, to solve above-mentioned erroneous judgement situation.
Hereinafter, with reference to Fig. 6 and Fig. 7, condition detection method according to a second embodiment of the present invention and device are described.
Fig. 6 illustrates the curve map of amount of exercise according to a second embodiment of the present invention to the time, and Fig. 7 illustrates amount of exercise difference according to a second embodiment of the present invention to the curve map of time.
As illustrated in FIG. 6, in step S210, after obtaining the momental quantification of electronic equipment of unit 110 acquisition, result illustrates: due to the impact of ambient vibration, at time point t1, and characterizing momental first parameter value of electronic equipment is 105; At time point t2, characterizing momental first parameter value of electronic equipment is 106; At time point t3, characterizing momental first parameter value of electronic equipment is 108; At time point t4, characterizing momental first parameter value of electronic equipment is 107; At time point t5, characterizing momental first parameter value of electronic equipment is 107; At time point t6, characterizing momental first parameter value of electronic equipment is 108; At time point t7, characterizing electronic equipment momental first parameter value is 140 etc.
As mentioned above, at this moment, if the unit 120 of this case still adopts the first predetermined condition in the first embodiment in step S220, namely at predetermined amount of time (such as, 5 seconds) period, described first parameter value is less than first threshold (such as, 100) constantly, then this first parameter value forever cannot first predetermined condition.
For this reason, in a second embodiment, described first predetermined condition can comprise: in predetermined amount of time (such as, 5 seconds) period, between every two neighbouring sample points, the difference of described first parameter value is less than Second Threshold (such as, 10) constantly.
As illustrated in figure 7, based on the example of Fig. 6, the difference of first parameter value at the first parameter value at time point t2 place and time point t1 place is 1; The difference of first parameter value at the first parameter value at time point t3 place and time point t2 place is 2; The difference of first parameter value at the first parameter value at time point t4 place and time point t3 place is 1; The difference of first parameter value at the first parameter value at time point t5 place and time point t4 place is 0; The difference of first parameter value at the first parameter value at time point t6 place and time point t5 place is 1; The difference of first parameter value at the first parameter value at time point t7 place and time point t6 place is 32 etc.
Like this, when the 2nd second (that is, t2), judging unit 120 only obtained a sample difference via this acquisition unit 110, i.e. the first parameter value difference 1.Judging unit 120 finds there is not enough sample numbers at present, thus determines this first parameter value not first predetermined condition.
When the 3rd second (that is, t3), judging unit 120 only obtained two sample values via this acquisition unit 110, i.e. the first parameter value difference 1 and 2.Judging unit 120 finds still there is not enough sample numbers at present, thus determines this first parameter value not first predetermined condition.So analogize.
At the 6th second (namely, t6) time, judging unit 120 obtains five enough sample values via this acquisition unit 110, i.e. the first parameter value difference 1,2,1,0 and 1, at this moment, judging unit 120 is judged during predetermined 5 seconds, namely from very first time point t2 to the second time point t6, between every two neighbouring sample points, this first parameter value difference is less than Second Threshold 10 constantly, thus, it meets the first predetermined condition, and generates the judged result indicating described first parameter value first predetermined condition accordingly.
Then, in step S230, when the first judged result indicates described first parameter value first predetermined condition, the second predetermined condition that judging unit 120 adopts can comprise: a time point after above-mentioned predetermined amount of time and between its preceding neighbouring sample point, the difference of described first parameter value is more than or equal to Second Threshold (such as, 10).
Continue with reference to figure 7, when the 7th second (that is, t7), judging unit 120 obtained an ensuing sample value via this acquisition unit 110, i.e. the first parameter value difference 32.At this moment, determining that electronic equipment at the 6th second (namely, t6) after entering stationary state, judging unit 120 find the 7th second (i.e. t7) with at the 6th second (namely, t6), between, this first parameter value difference is greater than Second Threshold 10, thus, it meets the second predetermined condition, and generates the judged result indicating described first parameter value second predetermined condition accordingly.
Next, as in the first embodiment, this judging unit 120 determines that in step S240 electronic equipment changes to the second state from the first state, generation unit 130 processing unit that can generate further in step s 250 for triggering described electronic equipment performs the first trigger pip of the first operation, and then, delivery unit 140 transmits the first trigger pip to processing unit in step S260.
Equally, it should be noted that, although described in the embodiments condition checkout gear 100 of the present invention above-mentioned second whether enter stationary state for judging electronic equipment and for judging that whether electronic equipment changes to the process of motion state from stationary state further, the present invention is not limited thereto.
Obviously, condition checkout gear 100 also may be used for by judging during predetermined amount of time, between every two neighbouring sample points, the difference of described first parameter value is greater than Second Threshold constantly, judges whether electronic equipment enters motion state; And be further used for by judging between a time point after above-mentioned predetermined amount of time and its preceding neighbouring sample point, whether the difference of described first parameter value be less than or equal to first threshold, judge that whether electronic equipment changes to the process of stationary state from motion state.
As can be seen here, adopt state judging method according to a second embodiment of the present invention and device, can obtain for characterizing momental first parameter value of electronic equipment, calculate the difference of the first parameter value between every two neighbouring sample points, utilize the difference of the first parameter value, judge whether described electronic equipment enters the first state by the first predetermined condition, after described electronic equipment enters the first state, judge whether described electronic equipment changes to the second state from the first state further by the second predetermined condition, and the processing unit accordingly to electronic equipment sends for triggering the first trigger pip that it performs the first operation.Therefore, in the second embodiment of the present invention, even if when electronic equipment is in the environment that there is height variations, also can judge whether the state of electronic equipment changes exactly, and only when electronic equipment oneself state changes, such as, when picking up mobile phone user from the table train, just produce the trigger pip for waking the processing unit in low power consumpting state up, thus decrease the generation of erroneous judgement, improve judgement degree of accuracy.
In addition, in the third embodiment of the present invention, except when judging whether electronic equipment remains static, namely in the first predetermined condition, judge the first parameter value or its difference whether during predetermined amount of time, be less than constantly outside predetermined threshold value, condition checkout gear 100 can also when judging whether electronic equipment is switched to motion state from stationary state, namely in the second predetermined condition, judge the first parameter value or its difference whether during predetermined amount of time, be more than or equal to predetermined threshold value constantly, and only have when the first parameter value or its difference are during predetermined amount of time, when being more than or equal to threshold constantly, just think that now the state of electronic equipment there occurs change, namely motion state is switched to from stationary state.Like this, can effectively get rid of this electronic equipment due to unexpected be subject to external interference (mobile phone such as, be placed on static desk produces displacement because this desk is subject to clashing into instead of being picked up by user) the erroneous judgement that produces.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required hardware platform by means of software and realize, and can certainly all be implemented by software or hardware.Based on such understanding, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, disk, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
Each embodiment of the present invention is described in detail above.But, it should be appreciated by those skilled in the art that without departing from the principles and spirit of the present invention, various amendment can be carried out to these embodiments, combination or sub-portfolio, and such amendment should fall within the scope of the present invention.

Claims (14)

1. a state judging method, described method is applied to electronic equipment, and described electronic equipment at least comprises the first state and the second state, it is characterized in that, described method comprises:
Obtain the first parameter value for characterizing described electronic equipment status;
Judge described first parameter value whether first predetermined condition, and obtain the first judged result;
When described first judged result shows that described first parameter value meets described first predetermined condition, judge further described first parameter value whether second predetermined condition, and obtain the second judged result; And
When described second judged result shows that described first parameter value meets described second predetermined condition, determine that described electronic equipment changes to described second state from described first state.
2. method according to claim 1, is characterized in that, described method also comprises:
When determining that described electronic equipment changes to described second state from described first state, generate the first trigger pip, described first trigger pip performs the first operation for the processing unit triggering described electronic equipment; And
Described first trigger pip is transmitted to described processing unit.
3. method according to claim 1, is characterized in that,
Described first predetermined condition comprises:
From the very first time o'clock to the second time point, described first parameter value is less than first threshold constantly; And
Described second predetermined condition comprises:
At the 3rd time point place, described first parameter value is more than or equal to described first threshold,
Wherein, described second time point is adjacent in time with described 3rd time point.
4. method according to claim 1, is characterized in that,
Described first predetermined condition comprises:
From the very first time o'clock to the second time point, described first parameter value is greater than first threshold constantly; And
Described second predetermined condition comprises:
At the 3rd time point place, described first parameter value is less than or equal to described first threshold,
Wherein, described second time point is adjacent in time with described 3rd time point.
5. method according to claim 1, is characterized in that,
Described first predetermined condition comprises:
Second Threshold is less than at first parameter value at very first time point place and the difference of the first parameter value at the second time point place; And
Described second predetermined condition comprises:
The first parameter value at the second time point place is more than or equal to described Second Threshold with the difference of the first parameter value at the 3rd time point place,
Wherein, described second time point is adjacent in time with described 3rd time point.
6. method according to claim 1, is characterized in that,
Described first predetermined condition comprises:
Second Threshold is greater than at first parameter value at very first time point place and the difference of the first parameter value at the second time point place; And
Described second predetermined condition comprises:
The first parameter value at the second time point place is less than or equal to described Second Threshold with the difference of the first parameter value at the 3rd time point place,
Wherein, described second time point is adjacent in time with described 3rd time point.
7. method according to claim 1, is characterized in that, described first state is one in motion state and stationary state, and described second state is another in motion state and stationary state.
8. a state judging device, described application of installation is in electronic equipment, and described electronic equipment at least comprises the first state and the second state, it is characterized in that, described device comprises:
Obtain unit, for obtaining the first parameter value for characterizing described electronic equipment status; And
Judging unit, judge described first parameter value whether first predetermined condition, and obtain the first judged result, when described first judged result shows that described first parameter value meets described first predetermined condition, judge described first parameter value whether second predetermined condition further, and obtain the second judged result, and when described second judged result shows that described first parameter value meets described second predetermined condition, determine that described electronic equipment changes to described second state from described first state.
9. device according to claim 8, is characterized in that, described device also comprises:
Generation unit, during for determining that when described judging unit described electronic equipment changes to described second state from described first state, generates the first trigger pip, and described first trigger pip performs the first operation for the processing unit triggering described electronic equipment; And
Delivery unit, for transmitting described first trigger pip to described processing unit.
10. device according to claim 8, is characterized in that,
Described first predetermined condition comprises:
From the very first time o'clock to the second time point, described first parameter value is less than first threshold constantly; And
Described second predetermined condition comprises:
At the 3rd time point place, described first parameter value is more than or equal to described first threshold,
Wherein, described second time point is adjacent in time with described 3rd time point.
11. devices according to claim 8, is characterized in that,
Described first predetermined condition comprises:
From the very first time o'clock to the second time point, described first parameter value is greater than first threshold constantly; And
Described second predetermined condition comprises:
At the 3rd time point place, described first parameter value is less than or equal to described first threshold,
Wherein, described second time point is adjacent in time with described 3rd time point.
12. devices according to claim 8, is characterized in that,
Described first predetermined condition comprises:
Second Threshold is less than at first parameter value at very first time point place and the difference of the first parameter value at the second time point place; And
Described second predetermined condition comprises:
The first parameter value at the second time point place is more than or equal to described Second Threshold with the difference of the first parameter value at the 3rd time point place,
Wherein, described second time point is adjacent in time with described 3rd time point.
13. devices according to claim 8, is characterized in that,
Described first predetermined condition comprises:
Second Threshold is greater than at first parameter value at very first time point place and the difference of the first parameter value at the second time point place; And
Described second predetermined condition comprises:
The first parameter value at the second time point place is less than or equal to described Second Threshold with the difference of the first parameter value at the 3rd time point place,
Wherein, described second time point is adjacent in time with described 3rd time point.
14. devices according to claim 8, is characterized in that, described first state is one in motion state and stationary state, and described second state is another in motion state and stationary state.
CN201310244853.5A 2013-06-19 2013-06-19 state judging method and device Active CN104238728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310244853.5A CN104238728B (en) 2013-06-19 2013-06-19 state judging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310244853.5A CN104238728B (en) 2013-06-19 2013-06-19 state judging method and device

Publications (2)

Publication Number Publication Date
CN104238728A true CN104238728A (en) 2014-12-24
CN104238728B CN104238728B (en) 2018-03-23

Family

ID=52226975

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310244853.5A Active CN104238728B (en) 2013-06-19 2013-06-19 state judging method and device

Country Status (1)

Country Link
CN (1) CN104238728B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915711A (en) * 2016-04-19 2016-08-31 青岛海信移动通信技术股份有限公司 Method and device for message prompt in mobile equipment
WO2018149030A1 (en) * 2017-02-16 2018-08-23 华为技术有限公司 Method, apparatus, and device for detecting proximity of electronic device to human body
WO2020173374A1 (en) * 2019-02-27 2020-09-03 曹可瀚 Human body posture measurement method and apparatus, and apparatus operating on the basis of method
CN112634489A (en) * 2020-12-09 2021-04-09 众安在线财产保险股份有限公司 Vehicle state determination method, device and system based on mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040119600A1 (en) * 2002-12-24 2004-06-24 Motorola, Inc. Providing a reminder message depending on an environment
CN102520858A (en) * 2011-12-08 2012-06-27 深圳市万兴软件有限公司 Mobile terminal application control method and device
CN102591198A (en) * 2011-01-12 2012-07-18 宏达国际电子股份有限公司 Event reminding method and portable device with event reminding function

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040119600A1 (en) * 2002-12-24 2004-06-24 Motorola, Inc. Providing a reminder message depending on an environment
CN102591198A (en) * 2011-01-12 2012-07-18 宏达国际电子股份有限公司 Event reminding method and portable device with event reminding function
CN102520858A (en) * 2011-12-08 2012-06-27 深圳市万兴软件有限公司 Mobile terminal application control method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915711A (en) * 2016-04-19 2016-08-31 青岛海信移动通信技术股份有限公司 Method and device for message prompt in mobile equipment
CN105915711B (en) * 2016-04-19 2019-12-20 青岛海信移动通信技术股份有限公司 Method and device for prompting message in mobile equipment
WO2018149030A1 (en) * 2017-02-16 2018-08-23 华为技术有限公司 Method, apparatus, and device for detecting proximity of electronic device to human body
WO2020173374A1 (en) * 2019-02-27 2020-09-03 曹可瀚 Human body posture measurement method and apparatus, and apparatus operating on the basis of method
CN112634489A (en) * 2020-12-09 2021-04-09 众安在线财产保险股份有限公司 Vehicle state determination method, device and system based on mobile terminal

Also Published As

Publication number Publication date
CN104238728B (en) 2018-03-23

Similar Documents

Publication Publication Date Title
JP5538674B2 (en) Method for analyzing device environment and device using the same
CN106453829B (en) A kind of falling height detection method and device
WO2018166204A1 (en) Method for controlling fingerprint recognition module, and mobile terminal and storage medium
CN104238728A (en) State judging method and state judging device
JP4956811B2 (en) Pedometer
CN105812250A (en) Control method and device for pushing message to wearable device and mobile terminal
CN106646440A (en) Drop height detection method and drop height detection device
EP2996316A1 (en) Methods and systems for communication management between an electronic device and a wearable electronic device
JP5407255B2 (en) Mobile communication terminal
CN108270921B (en) Falling information detection method and related product
CN110187274A (en) A kind of stepper motor detection method, device and system
CN108089935B (en) Application program management method and mobile terminal
US9521545B2 (en) Methods and systems for notification management between an electronic device and a wearable electronic device
CN105242854B (en) Method and device for interacting with user in collision and mobile terminal
CN112543195B (en) Information security assessment method and device for intelligent networked automobile and electronic equipment
TW201642685A (en) Operational management methods and systems for a wireless connecting unit, and related computer program products
CN110225197B (en) Connection processing method, terminal and electronic equipment
CN109886199B (en) Information processing method and device, vehicle and mobile terminal
CN107864294B (en) Do not disturb mode starting method and mobile terminal
CN106059898A (en) Information transmission method and device
WO2014163621A1 (en) Managing use of resources in mobile devices
CN108225296B (en) MEMS gyroscope, electronic equipment and control method of electronic equipment
CN108900361B (en) Cloud resource configuration determining method and device and electronic equipment
JP5892860B2 (en) Electronics
CN106657278A (en) Data transmission method and apparatus, and computer device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant