CN106354250A - Method and device for setting step counting parameters and terminal - Google Patents
Method and device for setting step counting parameters and terminal Download PDFInfo
- Publication number
- CN106354250A CN106354250A CN201610639908.6A CN201610639908A CN106354250A CN 106354250 A CN106354250 A CN 106354250A CN 201610639908 A CN201610639908 A CN 201610639908A CN 106354250 A CN106354250 A CN 106354250A
- Authority
- CN
- China
- Prior art keywords
- terminal
- angle
- threshold value
- meter step
- pendulum angle
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention provides a method and device for setting step counting parameters and a terminal. The method comprises the steps that when it is detected that a terminal is in a held state, whether the terminal is in a moving state or not is judged; if a judgment result shows that the terminal is in the moving state, the swing angle of the terminal in a vertical plane is obtained, and whether the swing angle is larger than a preset angle or not is judged; if a judgment result shows that the swing angle is larger than the preset angle, the threshold value for triggering step counting in the terminal is decreased. According to the scheme, when the swing angle of the terminal in the vertical plane is larger than the preset angle, the threshold value for triggering step counting in the terminal is decreased, so that compared with the prior art, the threshold value for triggering step counting is set in combination with the practical moving condition of the terminal, and the step counting accuracy is improved.
Description
Technical field
The present invention relates to field of terminal technology is and in particular to a kind of setting meter walks method, device and the terminal of parameter.
Background technology
Pedometer be moved by counting user step number, distance, speed, the data such as time, measuring and calculating calorie or heat
Consume, in order to control the quantity of motion of user, monitoring quantity of motion is not enough or a kind of instrument of excessive movement.Currently, pedometer should
With more and more extensive, for example, pedometer be integrated in terminal, completed by the hardware in terminal and pedometer application program
The step function of pedometer.
Pedometer detects the acceleration of user movement by acceleration transducer, and the change based on this detected value is to user
Step number counted.In current pedometer, the acceleration rate threshold of triggering meter step is usually fixed value.
But practice finds, the motion conditions of user and the situation of using terminal can affect pedometer to a great extent
Meter step data is thus cause error.For example, when terminal is placed in user's handss, the swing arm behavior of user can produce one in the terminal
Acceleration, this acceleration is not always consistent with the acceleration of user movement.The acceleration of this acceleration and user movement is deposited
Partial offset situation so that the acceleration of the acceleration that detects of the acceleration transducer in terminal and user movement not
With thus causing the accuracy that pedometer meter walks low.
Content of the invention
The embodiment of the present invention provides a kind of method of setting meter step parameter, device and terminal, can solve in prior art
The low technical problem of accuracy of pedometer meter step.
The embodiment of the present invention provides a kind of method of setting meter step parameter, comprising:
Terminal is detected to be in when being held state, judge whether described terminal is kept in motion;
If judged result is kept in motion for described terminal, obtain pendulum angle in vertical plane for the described terminal;
Judge whether described pendulum angle is more than predetermined angle;
If judged result is described pendulum angle is more than described predetermined angle, reduce the threshold of triggering meter step in described terminal
Value.
Preferably, the described step judging whether described terminal is kept in motion specifically includes:
Obtain the acceleration of described terminal;
Judge whether described acceleration is more than predetermined acceleration;
If so, then judged result is kept in motion for described terminal.
Preferably, the described step obtaining pendulum angle in vertical plane for the described terminal specifically includes:
Obtain full swing angle in preset time period in vertical plane for the described terminal;
The pendulum angle in vertical plane using described full swing angle as described terminal.
Preferably, the described step reducing the threshold value of triggering meter step in described terminal specifically includes:
Obtain the difference of described pendulum angle and described predetermined angle;
Obtain the reduction amplitude of the threshold value of triggering meter step according to described difference;
Reduce the threshold value of triggering meter step in described terminal according to described reduction amplitude.
Preferably, the described step reducing the threshold value of triggering meter step in described terminal specifically includes:
Obtain the corresponding targets threshold of described pendulum angle;
The threshold value of triggering meter step in described terminal is set to described targets threshold.
Accordingly, the embodiment of the present invention also provides a kind of device of setting meter step parameter, comprising:
First judge module, for when detect terminal be in be held state when, judge whether described terminal is in fortune
Dynamic state;
Acquisition module, for when the judged result of described first judge module is kept in motion for described terminal, obtaining
Take pendulum angle in vertical plane for the described terminal;
Second judge module, for judging whether described pendulum angle is more than predetermined angle;
Adjusting module, for being that described pendulum angle is more than described preset angle when the judged result of described second judge module
When spending, reduce the threshold value of triggering meter step in described terminal.
Preferably, described first judge module specifically includes:
Acquisition submodule, for obtaining the acceleration of described terminal;
Judging submodule, for judging whether described acceleration is more than predetermined acceleration;If so, then judged result is described
Terminal is kept in motion.
Preferably, described acquisition module specifically for:
When the judged result of described first judge module is kept in motion for described terminal, obtain described terminal pre-
If the full swing angle in vertical plane in the time period;
The pendulum angle in vertical plane using described full swing angle as described terminal.
Preferably, described adjusting module specifically for:
When the judged result of described second judge module is that described pendulum angle is more than described predetermined angle, obtain described
Pendulum angle and the difference of described predetermined angle;
Obtain the reduction amplitude of the threshold value of triggering meter step according to described difference;
Reduce the threshold value of triggering meter step in described terminal according to described reduction amplitude.
Preferably, described adjusting module specifically for:
When the judged result of described second judge module is that described pendulum angle is more than described predetermined angle, obtain described
The corresponding targets threshold of pendulum angle;
The threshold value of triggering meter step in described terminal is set to described targets threshold.
Accordingly, the embodiment of the present invention also provides a kind of terminal, including the setting meter step parameter described in any of the above-described
Device.
The embodiment of the present invention using detect terminal be in be held state when, judge whether this terminal is in motion shape
State;If judged result is kept in motion for this terminal, obtain pendulum angle in vertical plane for this terminal;Judge this swing
Whether angle is more than predetermined angle;If judged result is more than this predetermined angle for this pendulum angle, reduce triggering in this terminal
The threshold value of meter step.Whether the program, when terminal is kept in motion, judges pendulum angle in vertical plane for the terminal more than pre-
If angle, if so, then reduce the threshold value of triggering meter step in this terminal.In terms of existing technologies, the threshold value that triggering meter walks is not
It is fixed value again, but is accordingly reduced according to the pendulum angle of terminal, the threshold value of triggering meter step combines the actual motion of terminal
Situation, to be configured, improves the accuracy of meter step.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, will make to required in embodiment description below
Accompanying drawing is briefly described.It should be evident that drawings in the following description are only some embodiments of the present invention, for
For those skilled in the art, on the premise of not paying creative work, can also be obtained other attached according to these accompanying drawings
Figure.
Fig. 1 is the schematic flow sheet of the method for setting meter step parameter that the embodiment of the present invention one provides;
Fig. 2 is the schematic flow sheet of the method for setting meter step parameter that the embodiment of the present invention two provides;
Fig. 3 is the structural representation of the device of the first setting meter step parameter that the embodiment of the present invention three provides;
Fig. 4 is the structural representation of the device of second setting meter step parameter that the embodiment of the present invention three provides;
Fig. 5 is the structural representation of the first terminal that the embodiment of the present invention four provides;
Fig. 6 is the structural representation of the second terminal that the embodiment of the present invention four provides.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes.Obviously, described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, the every other enforcement that those skilled in the art are obtained under the premise of not making creative work
Example, broadly falls into the scope of protection of the invention.
The embodiment of the present invention provides a kind of method of setting meter step parameter, device and terminal, is carried out respectively below in detail
Explanation.
Embodiment one
The angle of the device from setting meter step parameter is described by the present embodiment, and this device specifically can be integrated in terminal
In, this terminal can be the equipment such as smart mobile phone, panel computer.
A kind of method of setting meter step parameter, comprising: terminal is detected and be in when being held state, whether judge this terminal
It is kept in motion;If judged result is kept in motion for this terminal, obtain pendulum angle in vertical plane for this terminal;
Judge whether this pendulum angle is more than predetermined angle;If judged result is more than predetermined angle for this pendulum angle, reduce this end
The threshold value of triggering meter step in end.
As shown in figure 1, the method walking parameter is counted in setting, idiographic flow may include that
S101, detects terminal and is in when being held state, judge whether this terminal is kept in motion.
In concrete application, grip sensor can be set in the terminal.Grip sensor can be capacitance type sensor.Should
Grip sensor can be arranged on side or the back side of terminal, can also be arranged in the accessory of terminal.For example, grip sensor
It is arranged in the protective case of terminal, protective case carries out data cube computation by wire communication or communication with terminal.
Whether terminal is in the state of being held by grip sensor real-time detection terminal.When terminal is placed in handss user
When, grip sensor can sense and produce corresponding signal, and terminal shows when receiving this signal that terminal is in and is held
State.Then judge whether terminal is kept in motion.
Specifically, acceleration transducer can be set in the terminal, the terminal being collected according to acceleration transducer plus
Speed is judging whether terminal is kept in motion.This acceleration can be terminal in the acceleration of vertical direction or
The resultant acceleration of the acceleration in three axial directions for the terminal.Judge whether this terminal is kept in motion and can specifically include following step
Rapid:
Obtain the acceleration of this terminal;
Judge whether this acceleration is more than predetermined acceleration;
If so, then judged result is kept in motion for this terminal.
Specifically, predetermined acceleration can be the acceleration value prestoring in terminal or user sets
Put and be stored in one of terminal acceleration value.For example, 2m/s2.Terminal obtains terminal in real time by acceleration transducer
Acceleration, then this acceleration and predetermined acceleration are compared, to judge that whether this acceleration be more than predetermined acceleration.
If this acceleration is more than predetermined acceleration, judged result is kept in motion for this terminal, subsequent execution step s102;If should
Acceleration is not more than predetermined acceleration, then judged result is not at kinestate for this terminal, can re-execute step s101.
S102, obtains pendulum angle in vertical plane for this terminal.
In practical application, terminal is moved with user, and the terminal i.e. user that is kept in motion is also at motion shape
State.User now can make terminal occur in vertical plane when moving (for example, on foot) it will usually be accompanied by swing arm behavior
Swing.The swing that sensor (for example, gyroscope) carrys out detection terminal can be set in the terminal, obtain terminal in vertical plane
Pendulum angle.Obtain pendulum angle in vertical plane for this terminal and can specifically include following steps:
Obtain full swing angle in preset time period in vertical plane for this terminal;
The pendulum angle in vertical plane using this full swing angle as this terminal.
Specifically, preset time period can be to be stored in advance in one of terminal time period.For example, 10s.Terminal is passed through
Pendulum angle in preset time period for this terminal of sensor real-time detection, and maximum in this preset time period for the computing terminal
Pendulum angle.For example, in this preset time period, detect terminal positive direction full swing angle be 10 °, in negative direction
Full swing angle be 10 ° (as positive direction, the opposite direction in the direction that user moves ahead be losing side in the direction that can be moved ahead with user
To), then the full swing angle of this terminal is 20 °.Then the pendulum in vertical plane using this full swing angle as this terminal
Dynamic angle.
S103, judges whether this pendulum angle is more than predetermined angle.
Specifically, predetermined angle can be to be stored in advance in one of terminal angle value or user setup simultaneously
It is stored in one of terminal angle value.For example, 15 °.Get terminal after the pendulum angle in vertical plane, by this angle of oscillation
Degree is compared with predetermined angle, to judge whether this pendulum angle is more than predetermined angle.If judged result is this pendulum angle
More than this predetermined angle, then execution step s104;If judged result is not more than this predetermined angle for this pendulum angle, can return to hold
Row step s101.
S104, reduces the threshold value of triggering meter step in this terminal.
In concrete application, in terminal, the threshold value of triggering meter step pre-sets.This threshold value can be an accekeration.
For example, 3m/s2.When judged result is more than predetermined angle for this pendulum angle in s103, reduce the threshold value of this triggering meter step.Subtract
In this terminal little, the threshold value of triggering meter step can specifically include following steps:
Obtain the difference of this pendulum angle and this predetermined angle;
Obtain the reduction amplitude of the threshold value of triggering meter step according to this difference;
Reduce the threshold value of triggering meter step in this terminal according to this reduction amplitude.
Specifically, when this pendulum angle is more than predetermined angle, calculate the difference of this pendulum angle and this predetermined angle.Can
To prestore the mapping relations between the reduction amplitude of the threshold value of step in terms of this difference and triggering in the terminal.Get difference
Afterwards, corresponding reduction amplitude is obtained according to this difference and this mapping relations.Subsequently reduced in terminal according to this reduction amplitude and trigger
The threshold value of meter step.This reduction amplitude can be specific numerical value or percentage ratio.
The threshold value reducing in this terminal triggering meter step can also specifically include following steps:
Obtain the corresponding targets threshold of this pendulum angle;
The threshold value of triggering meter step in this terminal is set to this targets threshold.
Specifically, the mapping relations between pendulum angle and targets threshold can be prestored in the terminal.According to this pendulum
Dynamic angle and this mapping relations obtain corresponding targets threshold, then the threshold value of triggering meter step in this terminal are set to this target
Threshold value.
When being embodied as, the present invention is not limited by the execution sequence of each described step, is not producing conflict
In the case of, some steps can also be carried out or be carried out simultaneously using other orders.
From the foregoing, it will be observed that the method for setting meter step parameter provided in an embodiment of the present invention, held using terminal is detected and being in
When holding state, judge whether this terminal is kept in motion;If judged result is kept in motion for this terminal, obtain this end
Pendulum angle in vertical plane for the end;Judge whether this pendulum angle is more than predetermined angle;If judged result is this pendulum angle
More than this predetermined angle, then reduce the threshold value of triggering meter step in this terminal.The program, when terminal is kept in motion, judges eventually
Whether pendulum angle in vertical plane for the end is more than predetermined angle, if so, then reduces the threshold value of triggering meter step in this terminal.Relatively
For prior art, the threshold value of triggering meter step is no longer fixed value, but is accordingly reduced according to the pendulum angle of terminal, triggering
The threshold value of meter step combines the actual motion situation of terminal to be configured, and improves the accuracy of meter step.
Embodiment two
Citing is described in further detail by the method for the setting meter step parameter according to described by embodiment one below.
In the present embodiment, the method walking parameter in terms of arranging specifically is integrated in smart mobile phone, with smart mobile phone
It is described in detail as a example the method for setting meter step parameter.
As shown in Fig. 2 the method walking parameter is counted in setting, idiographic flow can be such that
S201, detects smart mobile phone and is in when being held state, obtain the acceleration of this smart mobile phone.
Specifically, smart mobile phone is integrated with grip sensor.When smart mobile phone is placed in handss user, grips and pass
Sensor can sense and produce corresponding signal.When smart mobile phone receives this signal, that is, show that smart mobile phone is in and be held
State.
It is also integrated with acceleration transducer in smart mobile phone.When smart mobile phone is in and is held state, by accelerating
Degree sensor obtains the acceleration of smart mobile phone in real time.
S202, judges whether this acceleration is more than predetermined acceleration.
Specifically, predetermined acceleration is to be stored in advance in one of smart mobile phone accekeration.For example, 2m/s2.Intelligence
After mobile phone gets acceleration, call the predetermined acceleration being stored in smart mobile phone, the acceleration getting is added with default
Speed is compared, to judge whether this acceleration is more than predetermined acceleration.When judged result is more than default adding for this acceleration
During speed, execution step s203;When judged result is not more than predetermined acceleration for this acceleration, return execution step s201.
S203, judged result is kept in motion for this smart mobile phone.
Specifically, when the acceleration of the smart mobile phone getting is more than predetermined acceleration, then judged result is this intelligence
Mobile phone is kept in motion.Subsequently execution step s204.
S204, obtains full swing angle in preset time period in vertical plane for this smart mobile phone.
Specifically, it is integrated with gyroscope in smart mobile phone, for the swing of real-time detection smart mobile phone, obtain intelligent handss
Pendulum angle in vertical plane for the machine.Preset time period can be to be stored in advance in one of smart mobile phone time period.For example,
10s.Smart mobile phone passes through pendulum angle in preset time period for the gyroscope real-time detection, and computational intelligence mobile phone is default at this
Full swing angle in time period.For example, in this default 10s, the full swing in positive direction for the smart mobile phone is detected
Angle is 10 °, negative direction full swing angle be 10 ° (direction that can be moved ahead with user as positive direction, the side that user moves ahead
To opposite direction be negative direction), then the full swing angle of smart mobile phone be 20 °.
S205, the pendulum angle in vertical plane using this full swing angle as this smart mobile phone.
Specifically, get smart mobile phone in preset time period after the full swing angle in vertical plane, with this
Big pendulum angle pendulum angle in vertical plane as this smart mobile phone.
S206, judges whether this pendulum angle is more than predetermined angle.
Specifically, predetermined angle can be to be stored in advance in one of smart mobile phone angle value.For example, predetermined angle is
15°.Get smart mobile phone after the pendulum angle in vertical plane, this pendulum angle and predetermined angle are compared, to sentence
Whether break this pendulum angle more than predetermined angle.If judged result is more than this predetermined angle, execution step for this pendulum angle
s207;If judged result is not more than this predetermined angle for this pendulum angle, can return to execution step s201.
S207, obtains the difference of this pendulum angle and this predetermined angle.
Specifically, after judged result is more than this predetermined angle for this pendulum angle, calculate this pendulum angle and preset with this
The difference of angle.For example, the pendulum angle getting is 20 °, and predetermined angle is 15 °, then this pendulum angle and this predetermined angle
Difference be 5 °.
S208, obtains the reduction amplitude of the threshold value of triggering meter step according to this difference.
Specifically, reflecting between difference and the reduction amplitude of threshold value of triggering meter step can be prestored in smart mobile phone
Penetrate relation.After getting difference, corresponding reduction amplitude is obtained according to this difference and this mapping relations.This reduction amplitude can be
Specific numerical value or percentage ratio.For example, this reduction amplitude can be 0.2m/s2, this reduction amplitude can also be
0.5%.Preferably, in smart mobile phone, this reduction amplitude is 32mg (32mg is the minimum adjustment unit of pedometer threshold value)
Integral multiple.
S209, reduces the threshold value of triggering meter step in this smart mobile phone according to this reduction amplitude.
Specifically, after getting reduction amplitude, reduce the threshold value of triggering meter step in smart mobile phone according to this reduction amplitude.Example
If the threshold value of original setting is 3m/s2, the reduction amplitude getting is 0.2m/s2, then the threshold value after reducing is 2.8m/s2.
When being embodied as, the present invention is not limited by the execution sequence of each described step, is not producing conflict
In the case of, some steps can also be carried out or be carried out simultaneously using other orders.
From the foregoing, it will be observed that the method for setting meter step parameter provided in an embodiment of the present invention, it is in using smart mobile phone is detected
When being held state, obtain the acceleration of this smart mobile phone;Judge whether this acceleration is more than predetermined acceleration;If so, then sentence
Disconnected result is kept in motion for this smart mobile phone;Subsequently obtain this smart mobile phone in preset time period in vertical plane
Big pendulum angle, the pendulum angle in vertical plane using this full swing angle as this smart mobile phone;Judge this pendulum angle
Whether it is more than predetermined angle;If so, then obtain the difference of this pendulum angle and this predetermined angle;Triggering meter is obtained according to this difference
The reduction amplitude of the threshold value of step;Reduce the threshold value of triggering meter step in this smart mobile phone according to this reduction amplitude.The program is in intelligence
When mobile phone is kept in motion, judge whether pendulum angle in vertical plane for the smart mobile phone is more than predetermined angle, if so, then subtract
The threshold value of triggering meter step in this smart mobile phone little.In terms of existing technologies, the threshold value of triggering meter step is no longer fixed value, and
It is accordingly to be reduced according to the pendulum angle of smart mobile phone, the actual motion situation that the threshold value that triggering meter walks combines smart mobile phone is come
It is configured, improve the accuracy of meter step.
Embodiment three
In order to preferably implement above method, the embodiment of the present invention also provides a kind of device of setting meter step parameter, this dress
Put can integrated in the terminal, this terminal can be the equipment such as smart mobile phone, panel computer.
As shown in figure 3, the device of setting meter step parameter may include that the first judge module 301, acquisition module 302, second
Judge module 303, adjusting module 304, are described in detail below:
This first judge module 301, for when detect terminal be in be held state when, judge whether this terminal is in
Kinestate;
This acquisition module 302, is kept in motion for this terminal for the judged result when this first judge module 301
When, obtain pendulum angle in vertical plane for this terminal;
This second judge module 303, for judging whether this pendulum angle is more than predetermined angle;
This adjusting module 304, for presetting when the judged result of this second judge module 303 is more than this for this pendulum angle
During angle, reduce the threshold value of triggering meter step in this terminal.
Preferably, as shown in figure 4, this first judge module 301 includes: acquisition submodule 3011, judging submodule 3012,
Specific as follows:
This acquisition submodule 3011, for obtaining the acceleration of this terminal;
This judging submodule 3012, for judging whether this acceleration is more than predetermined acceleration;If so, then judged result is
This terminal is kept in motion.
Preferably, this acquisition module 302 specifically for:
When the judged result of this first judge module 301 is kept in motion for this terminal, obtain this terminal default
Full swing angle in vertical plane in time period;
The pendulum angle in vertical plane using this full swing angle as this terminal.
Preferably, this adjusting module 304 specifically for:
When the judged result of this second judge module 303 is more than this predetermined angle for this pendulum angle, obtain this swing
Angle and the difference of this predetermined angle;
Obtain the reduction amplitude of the threshold value of triggering meter step according to this difference;
Reduce the threshold value of triggering meter step in this terminal according to this reduction amplitude.
Preferably, this adjusting module 304 specifically for:
When the judged result of this second judge module 303 is more than this predetermined angle for this pendulum angle, obtain this swing
The corresponding targets threshold of angle;
The threshold value of triggering meter step in this terminal is set to this targets threshold.
When being embodied as, above modules can be realized as independent entity it is also possible to carry out combination in any, makees
To realize for same or several entities.Being embodied as of above modules can be found in embodiment of the method above, and here is not
Repeat again.
From the foregoing, it will be observed that the device of setting meter step parameter provided in an embodiment of the present invention, by the first judge module 301 when inspection
Measure terminal to be in when being held state, judge whether this terminal is kept in motion;Acquisition module 302 is when the first judge module
When 301 judged result is kept in motion for this terminal, obtain pendulum angle in vertical plane for this terminal;Second judges mould
Block 303 judges whether this pendulum angle is more than predetermined angle;Adjusting module 304 when the judged result of the second judge module 303 is
When this pendulum angle is more than this predetermined angle, reduce the threshold value of triggering meter step in this terminal.The program is in motion shape in terminal
During state, judge whether pendulum angle in vertical plane for the terminal is more than predetermined angle, if so, then reduce triggering meter step in this terminal
Threshold value.In terms of existing technologies, the threshold value of triggering meter step is no longer fixed value, but the pendulum angle phase according to terminal
Should reduce, the threshold value of triggering meter step combines the actual motion situation of terminal to be configured, and improves the accuracy of meter step.
Example IV
The embodiment of the present invention also provides a kind of terminal, and this terminal can be the equipment such as smart mobile phone, panel computer.
As shown in figure 5, terminal 400 may include that the first judge module 401, acquisition module 402, the second judge module
403rd, adjusting module 404, are described in detail below:
This first judge module 401, for when detect terminal be in be held state when, judge whether this terminal is in
Kinestate;
This acquisition module 402, is kept in motion for this terminal for the judged result when this first judge module 401
When, obtain pendulum angle in vertical plane for this terminal;
This second judge module 403, for judging whether this pendulum angle is more than predetermined angle;
This adjusting module 404, for presetting when the judged result of this second judge module 403 is more than this for this pendulum angle
During angle, reduce the threshold value of triggering meter step in this terminal.
Preferably, this first judge module includes: acquisition submodule, judging submodule, specific as follows:
This acquisition submodule, for obtaining the acceleration of this terminal;
This judging submodule, for judging whether this acceleration is more than predetermined acceleration;If so, then judged result is that this is whole
End is kept in motion.
Preferably, this acquisition module specifically for:
When the judged result of this first judge module is kept in motion for this terminal, obtain this terminal in Preset Time
Full swing angle in vertical plane in section;
The pendulum angle in vertical plane using this full swing angle as this terminal.
Preferably, this adjusting module specifically for:
When the judged result of this second judge module is more than this predetermined angle for this pendulum angle, obtain this pendulum angle
Difference with this predetermined angle;
Obtain the reduction amplitude of the threshold value of triggering meter step according to this difference;
Reduce the threshold value of triggering meter step in this terminal according to this reduction amplitude.
Preferably, this adjusting module specifically for:
When the judged result of this second judge module is more than this predetermined angle for this pendulum angle, obtain this pendulum angle
Corresponding targets threshold;
The threshold value of triggering meter step in this terminal is set to this targets threshold.
Aforesaid operations specifically can be found in embodiment of the method above, will not be described here.
The embodiment of the present invention also provides another kind of terminal, as shown in fig. 6, this terminal 500 can include radio frequency (rf, radio
Frequency) circuit 501, the memorizer 502 including one or more computer-readable recording mediums, input block
503rd, display unit 504, sensor 505, voicefrequency circuit 506, Wireless Fidelity (wifi, wireless fidelity) module
507th, the parts such as processor 508 and the power supply 509 of or more than one processing core are included.People in the art
Member, it is appreciated that the restriction of the terminal structure not structure paired terminal shown in Fig. 6, can include more more or less of than illustrating
Part, or combine some parts, or different part arrangements.
Radio circuit 501 can be used for receiving and sending messages, or the reception of signal and transmission in communication process, especially, by base station
Downlink information receive after, transfer to one or more than one processor 508 processed;In addition, up data is activation will be related to
To base station.Generally, radio circuit 501 includes but is not limited to antenna, at least one amplifier, tuner, one or more vibration
Device, subscriber identity module (sim, subscriber identity module) card, transceiver, bonder, low noise amplification
Device (lna, low noise amplifier), duplexer etc..Additionally, radio circuit 501 can also pass through radio communication and network
With other equipment communication.This radio communication can use arbitrary communication standard or agreement, including but not limited to global system for mobile telecommunications
System (gsm, global system of mobile communication), general packet radio service (gprs, general
Packet radio service), CDMA (cdma, code division multiple access), wideband code division many
Location (wcdma, wideband code division multiple access), Long Term Evolution (lte, long term
Evolution), Email, Short Message Service (sms, short messaging service) etc..
Memorizer 502 can be used for storing software program and module.Processor 508 is stored in memorizer 502 by operation
Software program and module, thus executing various function application and data processing.Memorizer 502 can mainly include storing journey
Sequence area and storage data field, wherein, storing program area can (compare the application program needed for storage program area, at least one function
As sound-playing function, image player function etc.) etc.;Storage data field can store according to terminal using the data being created
(such as voice data, phone directory etc.) etc..Additionally, memorizer 502 can include high-speed random access memory, can also include
Nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.Phase
Ying Di, memorizer 502 can also include Memory Controller, to provide processor 508 and input block 503 to memorizer 502
Access.
Input block 503 can be used for numeral or the character information of receives input, and produces and user setup and function
Control relevant keyboard, mouse, action bars, optics or trace ball signal input.Specifically, in a specific embodiment
In, input block 503 may include Touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or touch
Control plate, can collect user thereon or neighbouring touch operation (such as user use any suitable object such as finger, stylus or
Operation on Touch sensitive surface or near Touch sensitive surface for the adnexa), and corresponding connection dress is driven according to formula set in advance
Put.Optionally, Touch sensitive surface may include touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus inspection
Survey the touch orientation of user, and detect the signal that touch operation brings, transmit a signal to touch controller;Touch controller from
Receive touch information on touch detecting apparatus, and be converted into contact coordinate, then give processor 508, and can reception processing
Order that device 508 is sent simultaneously is executed.Furthermore, it is possible to it is multiple using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes Touch sensitive surface.Except Touch sensitive surface, input block 503 can also include other input equipments.Specifically, other are defeated
Enter equipment and can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, Mus
One or more of mark, action bars etc..
Display unit 504 can be used for display and by the information of user input or is supplied to the information of user and the various of terminal
Graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display
Unit 504 may include display floater, optionally, can using liquid crystal display (lcd, liquid crystal display),
The forms such as Organic Light Emitting Diode (oled, organic light-emitting diode) are configuring display floater.Further
, Touch sensitive surface can cover display floater, when Touch sensitive surface detects thereon or after neighbouring touch operation, sends process to
Device 508, to determine the type of touch event, provides accordingly according to the type of touch event on a display panel with preprocessor 508
Visual output.Although in figure 6, Touch sensitive surface and display floater are to realize inputting as two independent parts and to input
Function, but in some embodiments it is possible to will be integrated to Touch sensitive surface and display floater and realize input and output function.
Terminal may also include at least one sensor 505, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor may include ambient light sensor and proximity transducer, and wherein, ambient light sensor can be according to ambient light
The brightness to adjust display floater for the light and shade, proximity transducer can cut out display floater and/or the back of the body when terminal moves in one's ear
Light.As one kind of motion sensor, Gravity accelerometer can detect (generally three axles) acceleration in all directions
Size, can detect that size and the direction of gravity when static, can be used for identify mobile phone attitude application (such as horizontal/vertical screen switching,
Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Can also configure as terminal
Gyroscope, barometer, drimeter, thermometer, the other sensors such as infrared ray sensor, will not be described here.
Voicefrequency circuit 506 can provide the audio interface between user and terminal by speaker, microphone.Voicefrequency circuit
The voice data receiving can be converted into the signal of telecommunication by 506, be transferred to speaker, be converted to acoustical signal output by speaker;
On the other hand, the acoustical signal of collection is converted to the signal of telecommunication by microphone, is converted to audio frequency number by voicefrequency circuit 506 after being received
According to then after processing voice data output processor 508, through radio circuit 501 being sent to such as another terminal, or by sound
Frequency data output is to memorizer 502 to process further.Voicefrequency circuit 506 is also possible that earphone jack, to provide peripheral hardware
Earphone and the communication of terminal.
Wireless Fidelity (wifi) belongs to short range wireless transmission technology, and terminal can be helped by wireless fidelity module 507
User sends and receive e-mail, browses webpage and access streaming video etc., and it has provided the user wireless broadband internet and has accessed.
Although Fig. 6 shows wireless fidelity module 507, but it is understood that, it is simultaneously not belonging to must be configured into of terminal, completely may be used
To omit in the scope of essence not changing invention as needed.
Processor 508 is the control centre of terminal, using the various pieces of various interfaces and the whole terminal of connection, leads to
Cross and run or software program and/or module that execution is stored in memorizer 502, and call and be stored in memorizer 502
Data, the various functions of execution terminal and processing data, thus carry out integral monitoring to terminal.Optionally, processor 508 can wrap
Include one or more processing cores;Preferably, processor 508 can integrated application processor and modem processor, wherein, should
Mainly process operating system, user interface and application program etc. with processor, modem processor mainly processes radio communication.
It is understood that above-mentioned modem processor can not also be integrated in processor 508.
Terminal also includes the power supply 509 (such as battery) powered to all parts.Preferably, power supply can pass through power supply pipe
Reason system is logically contiguous with processor 508, thus realizing management charging, electric discharge and power managed by power-supply management system
Etc. function.Power supply 509 can also include one or more direct current or alternating current power supply, recharging system, power failure inspection
The random component such as slowdown monitoring circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown in Fig. 6, terminal can also include photographic head, bluetooth module etc., will not be described here.
Specifically in the present embodiment, the processor 508 in terminal can be according to following instruction, will be one or more
The corresponding executable file of process of application program is loaded in memorizer 502, and to be run by processor 508 and be stored in storage
Application program in device 502, thus realizing various functions:
Terminal is detected to be in when being held state, judge whether this terminal is kept in motion;If judged result is should
Terminal is kept in motion, then obtain pendulum angle in vertical plane for this terminal;Judge this pendulum angle whether more than default
Angle;If judged result is more than predetermined angle for this pendulum angle, reduce the threshold value of triggering meter step in this terminal.
Preferably, processor 508 has the first judge module, acquisition module, the second judge module, adjusting module, specifically
It is described as follows:
Processor 508 be used for by the first judge module when detect terminal be in be held state when, judge this terminal
Whether it is kept in motion;
The judged result that processor 508 is used for by acquisition module works as this first judge module is in motion shape for this terminal
During state, obtain pendulum angle in vertical plane for this terminal;
Processor 508 is used for judging whether this pendulum angle is more than predetermined angle by the second judge module;
Processor 508 is used for being somebody's turn to do when the judged result of this second judge module is more than for this pendulum angle by adjusting module
During predetermined angle, reduce the threshold value of triggering meter step in this terminal.
Aforesaid operations specifically can be found in embodiment of the method above, will not be described here.
From the foregoing, it will be observed that embodiments providing a kind of terminal, by detect terminal be in be held state when, sentence
Whether this terminal of breaking is kept in motion;If judged result is kept in motion for this terminal, obtain this terminal in vertical plane
Interior pendulum angle;Judge whether this pendulum angle is more than predetermined angle;If judged result is more than this for this pendulum angle presetting
Angle, then reduce the threshold value of triggering meter step in this terminal.The program, when terminal is kept in motion, judges terminal in vertical plane
Whether interior pendulum angle is more than predetermined angle, if so, then reduces the threshold value of triggering meter step in this terminal.With respect to prior art
For, the threshold value of triggering meter step is no longer fixed value, but is accordingly reduced according to the pendulum angle of terminal, the threshold value of triggering meter step
The actual motion situation combining terminal, to be configured, improves the accuracy of meter step.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or
Part steps can be by program to complete come the hardware to instruct correlation, and this program can be stored in computer-readable storage medium
In matter, storage medium may include that read only memory (rom, read only memory), random access memory (ram,
Random access memory), disk or CD etc..
Method, device and terminal that a kind of setting the meter above embodiment of the present invention being provided walks parameter have been carried out in detail
Introduce, specific case used herein is set forth to the principle of the present invention and embodiment, the explanation of above example
It is only intended to help and understand the method for the present invention and its core concept;Simultaneously for those skilled in the art, according to the present invention
Thought, all will change in specific embodiments and applications, in sum, this specification content should not be understood
For limitation of the present invention.
Claims (11)
1. a kind of method of setting meter step parameter is it is characterised in that include:
Terminal is detected to be in when being held state, judge whether described terminal is kept in motion;
If judged result is kept in motion for described terminal, obtain pendulum angle in vertical plane for the described terminal;
Judge whether described pendulum angle is more than predetermined angle;
If judged result is described pendulum angle is more than described predetermined angle, reduce the threshold value of triggering meter step in described terminal.
2. method according to claim 1 is it is characterised in that the described step judging whether described terminal is kept in motion
Suddenly specifically include:
Obtain the acceleration of described terminal;
Judge whether described acceleration is more than predetermined acceleration;
If so, then judged result is kept in motion for described terminal.
3. method according to claim 1 is it is characterised in that pendulum angle in vertical plane for the described terminal of described acquisition
Step specifically include:
Obtain full swing angle in preset time period in vertical plane for the described terminal;
The pendulum angle in vertical plane using described full swing angle as described terminal.
4. method according to claim 1 is it is characterised in that trigger the step of the threshold value of meter step in the described terminal of described reduction
Suddenly specifically include:
Obtain the difference of described pendulum angle and described predetermined angle;
Obtain the reduction amplitude of the threshold value of triggering meter step according to described difference;
Reduce the threshold value of triggering meter step in described terminal according to described reduction amplitude.
5. method according to claim 1 is it is characterised in that trigger the step of the threshold value of meter step in the described terminal of described reduction
Suddenly specifically include:
Obtain the corresponding targets threshold of described pendulum angle;
The threshold value of triggering meter step in described terminal is set to described targets threshold.
6. a kind of device of setting meter step parameter is it is characterised in that include:
First judge module, for when detect terminal be in be held state when, judge whether described terminal is in motion shape
State;
Acquisition module, for when the judged result of described first judge module is kept in motion for described terminal, obtaining institute
State pendulum angle in vertical plane for the terminal;
Second judge module, for judging whether described pendulum angle is more than predetermined angle;
Adjusting module, for being that described pendulum angle is more than described predetermined angle when the judged result of described second judge module
When, reduce the threshold value of triggering meter step in described terminal.
7. device according to claim 6 is it is characterised in that described first judge module specifically includes:
Acquisition submodule, for obtaining the acceleration of described terminal;
Judging submodule, for judging whether described acceleration is more than predetermined acceleration;If so, then judged result is described terminal
It is kept in motion.
8. device according to claim 6 it is characterised in that described acquisition module specifically for:
When the judged result of described first judge module is kept in motion for described terminal, obtain described terminal when default
Between the full swing angle in vertical plane in section;
The pendulum angle in vertical plane using described full swing angle as described terminal.
9. device according to claim 6 it is characterised in that described adjusting module specifically for:
When the judged result of described second judge module is that described pendulum angle is more than described predetermined angle, obtain described swing
Angle and the difference of described predetermined angle;
Obtain the reduction amplitude of the threshold value of triggering meter step according to described difference;
Reduce the threshold value of triggering meter step in described terminal according to described reduction amplitude.
10. device according to claim 6 it is characterised in that described adjusting module specifically for:
When the judged result of described second judge module is that described pendulum angle is more than described predetermined angle, obtain described swing
The corresponding targets threshold of angle;
The threshold value of triggering meter step in described terminal is set to described targets threshold.
A kind of 11. terminals are it is characterised in that described terminal includes the device any one of claim 6 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610639908.6A CN106354250B (en) | 2016-08-05 | 2016-08-05 | A kind of method, apparatus and terminal that meter step parameter is set |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610639908.6A CN106354250B (en) | 2016-08-05 | 2016-08-05 | A kind of method, apparatus and terminal that meter step parameter is set |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106354250A true CN106354250A (en) | 2017-01-25 |
CN106354250B CN106354250B (en) | 2017-11-17 |
Family
ID=57843754
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610639908.6A Expired - Fee Related CN106354250B (en) | 2016-08-05 | 2016-08-05 | A kind of method, apparatus and terminal that meter step parameter is set |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106354250B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116501175A (en) * | 2023-06-25 | 2023-07-28 | 江西格如灵科技股份有限公司 | Virtual character moving method, device, computer equipment and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102297701A (en) * | 2010-06-22 | 2011-12-28 | 雅马哈株式会社 | Pedometer |
CN103884337A (en) * | 2012-12-19 | 2014-06-25 | 财团法人工业技术研究院 | Multi-attitude step correction positioning system and method |
CN104902078A (en) * | 2015-04-29 | 2015-09-09 | 深圳市万普拉斯科技有限公司 | Mobile terminal, control method and system of screen rotation in mobile terminal |
CN104956185A (en) * | 2012-12-21 | 2015-09-30 | 高通股份有限公司 | Swing compensation in step detection |
CN105224104A (en) * | 2015-09-01 | 2016-01-06 | 电子科技大学 | Pedestrian movement's state identification method of mode is held based on smart mobile phone |
-
2016
- 2016-08-05 CN CN201610639908.6A patent/CN106354250B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102297701A (en) * | 2010-06-22 | 2011-12-28 | 雅马哈株式会社 | Pedometer |
CN103884337A (en) * | 2012-12-19 | 2014-06-25 | 财团法人工业技术研究院 | Multi-attitude step correction positioning system and method |
CN104956185A (en) * | 2012-12-21 | 2015-09-30 | 高通股份有限公司 | Swing compensation in step detection |
CN104902078A (en) * | 2015-04-29 | 2015-09-09 | 深圳市万普拉斯科技有限公司 | Mobile terminal, control method and system of screen rotation in mobile terminal |
CN105224104A (en) * | 2015-09-01 | 2016-01-06 | 电子科技大学 | Pedestrian movement's state identification method of mode is held based on smart mobile phone |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116501175A (en) * | 2023-06-25 | 2023-07-28 | 江西格如灵科技股份有限公司 | Virtual character moving method, device, computer equipment and medium |
CN116501175B (en) * | 2023-06-25 | 2023-09-22 | 江西格如灵科技股份有限公司 | Virtual character moving method, device, computer equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN106354250B (en) | 2017-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6467526B2 (en) | Communication message transmission method and wearable device | |
CN103716331B (en) | Method, terminal, server and system for numerical value transfer | |
CN103365419B (en) | A kind of method and apparatus triggering alarm clock control command | |
CN106453829B (en) | A kind of falling height detection method and device | |
CN106331359B (en) | A kind of speech signal collection method, device and terminal | |
CN106412249A (en) | Detection method and device of drop information | |
CN106357897A (en) | Fall information acquiring method and device | |
CN106487984B (en) | A kind of method and apparatus adjusting volume | |
CN106340925A (en) | Charging control method, apparatus and terminal | |
CN104426919A (en) | Page sharing method, device and system | |
CN106646440B (en) | A kind of falling height detection method and device | |
CN106453830A (en) | Falling detection method and device | |
CN104571529A (en) | Application wake method and mobile terminal | |
CN106951850A (en) | The method and mobile terminal of a kind of control fingerprint recognition module | |
CN106453597A (en) | Data synchronization cycle adjustment method, device and system | |
CN103677417B (en) | A kind of detect the method for gesture, device and terminal device | |
US20150127278A1 (en) | Method and device for ascertaining required charging time | |
CN106161800A (en) | Incoming call reminding method and device and mobile communication terminal | |
CN106500751A (en) | The calibration steps and mobile terminal of proximity transducer | |
CN106412250B (en) | One kind falling statistical method and device | |
CN103699988A (en) | Numeric value transfer method, terminal, server and system | |
CN110851014B (en) | Touch recognition method and device, storage medium and terminal equipment | |
CN106227337A (en) | A kind of screen luminance adjustment method, device and terminal | |
CN104918130A (en) | Methods for transmitting and playing multimedia information, devices and system | |
CN110908586B (en) | Keyboard display method and device and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171117 |
|
CF01 | Termination of patent right due to non-payment of annual fee |