CN106354250B - A kind of method, apparatus and terminal that meter step parameter is set - Google Patents
A kind of method, apparatus and terminal that meter step parameter is set Download PDFInfo
- Publication number
- CN106354250B CN106354250B CN201610639908.6A CN201610639908A CN106354250B CN 106354250 B CN106354250 B CN 106354250B CN 201610639908 A CN201610639908 A CN 201610639908A CN 106354250 B CN106354250 B CN 106354250B
- Authority
- CN
- China
- Prior art keywords
- terminal
- swing angle
- angle
- threshold value
- meter step
- 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.)
- Expired - Fee Related
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
Abstract
The embodiments of the invention provide a kind of method, apparatus and terminal for setting meter step parameter, this method, which uses, detects terminal in when being held state, judge whether the terminal is kept in motion, it is kept in motion if judged result is the terminal, then obtain swing angle of the terminal in vertical plane, judge whether the swing angle is more than predetermined angle, if judged result, which is the swing angle, is more than the predetermined angle, reduce the threshold value of triggering meter step in the terminal;When swing angle of the program when terminal in vertical plane is more than predetermined angle, reduce the threshold value of triggering meter step in the terminal, in terms of existing technologies, the threshold value of triggering meter step combines the actual motion situation of terminal to be configured, and improves the accuracy of meter step.
Description
Technical field
The present invention relates to field of terminal technology, and in particular to a kind of method, apparatus and terminal for setting meter step parameter.
Background technology
Pedometer is by data such as the step number of counting user motion, distance, speed, times, calculates calorie or heat
Consumption, to control a kind of instrument of the amount of exercise of user, monitoring amount of exercise deficiency or excessive movement.Currently, pedometer should
It is integrated into terminal with more and more extensive, such as pedometer, is 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 based on the change of the detected value to user
Step number counted.In current pedometer, the acceleration rate threshold of triggering meter step is usually fixed value.
But practice finds that the motion conditions of user and the situation of using terminal can largely influence pedometer
Step data is counted so as to cause error.For example, when terminal is placed in user's hand, the swing arm behavior of user can produce one in the terminal
The acceleration of acceleration, the acceleration and user movement is not always consistent.The acceleration of the acceleration and user movement is deposited
In the situation of partial offset so that the acceleration and the acceleration of user movement that the acceleration transducer in terminal detects are not
Together, so as to cause pedometer meter walk accuracy it is low.
The content of the invention
The embodiment of the present invention provides a kind of method, apparatus and terminal for setting meter step parameter, can solve in the prior art
The low technical problem of accuracy of pedometer meter step.
The embodiment of the present invention provides a kind of method for setting meter step parameter, including:
Detect that terminal in when being held state, judges whether the terminal is kept in motion;
It is kept in motion if judged result is the terminal, obtains swing angle of the terminal in vertical plane;
Judge whether the swing angle is more than predetermined angle;
If judged result, which is the swing angle, is more than the predetermined angle, reduce the threshold of triggering meter step in the terminal
Value.
Preferably, it is described to judge that the step of whether terminal is kept in motion specifically includes:
Obtain the acceleration of the terminal;
Judge whether the acceleration is more than predetermined acceleration;
If so, then judged result is that the terminal is kept in motion.
Preferably, it is described obtain the terminal in vertical plane swing angle the step of specifically include:
Obtain full swing angle of the terminal in preset time period in vertical plane;
Swing angle using the full swing angle as the terminal in vertical plane.
Preferably, described the step of reducing the threshold value of triggering meter step in the terminal, specifically includes:
Obtain the difference of the swing angle and the predetermined angle;
The reduction amplitude of the threshold value of triggering meter step is obtained according to the difference;
Reduce the threshold value of triggering meter step in the terminal according to the reduction amplitude.
Preferably, described the step of reducing the threshold value of triggering meter step in the terminal, specifically includes:
Obtain targets threshold corresponding to the swing angle;
The threshold value of triggering meter step in the terminal is arranged to the targets threshold.
Accordingly, the embodiment of the present invention also provides a kind of device for setting meter step parameter, including:
First judge module, for when detect terminal be in be held state when, judge the terminal whether in fortune
Dynamic state;
Acquisition module, for when the judged result of first judge module is kept in motion for the terminal, obtaining
Take swing angle of the terminal in vertical plane;
Second judge module, for judging whether the swing angle is more than predetermined angle;
Adjusting module, it is more than the preset angle for the judged result when second judge module for the swing angle
When spending, reduce the threshold value of triggering meter step in the terminal.
Preferably, first judge module specifically includes:
Acquisition submodule, for obtaining the acceleration of the terminal;
Judging submodule, for judging whether the acceleration is more than predetermined acceleration;If so, then judged result is described
Terminal is kept in motion.
Preferably, the acquisition module is specifically used for:
When the judged result of first judge module is kept in motion for the terminal, the terminal is obtained pre-
If the full swing angle in the period in vertical plane;
Swing angle using the full swing angle as the terminal in vertical plane.
Preferably, the adjusting module is specifically used for:
When the judged result of second judge module is more than the predetermined angle for the swing angle, described in acquisition
Swing angle and the difference of the predetermined angle;
The reduction amplitude of the threshold value of triggering meter step is obtained according to the difference;
Reduce the threshold value of triggering meter step in the terminal according to the reduction amplitude.
Preferably, the adjusting module is specifically used for:
When the judged result of second judge module is more than the predetermined angle for the swing angle, described in acquisition
Targets threshold corresponding to swing angle;
The threshold value of triggering meter step in the terminal is arranged to the targets threshold.
Accordingly, the embodiment of the present invention also provides a kind of terminal, including sets meter to walk 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 the terminal whether in motion shape
State;It is kept in motion if judged result is the terminal, obtains swing angle of the terminal in vertical plane;Judge the swing
Whether angle is more than predetermined angle;If judged result, which is the swing angle, is more than the predetermined angle, reduces and triggered in the terminal
Count the threshold value of step.It is pre- to judge whether swing angle of the terminal in vertical plane is more than when terminal is kept in motion for the program
If angle, if so, then reducing the threshold value of triggering meter step in the 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 swing angle of terminal, the threshold value of triggering meter step combines the actual motion of terminal
Situation is configured, and improves the accuracy of meter step.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
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, it can also be obtained according to these accompanying drawings other attached
Figure.
Fig. 1 is the schematic flow sheet of the method for the setting meter step parameter that the embodiment of the present invention one provides;
Fig. 2 is the schematic flow sheet of the method for the setting meter step parameter that the embodiment of the present invention two provides;
Fig. 3 is the structural representation for the device that the first that the embodiment of the present invention three provides sets meter step parameter;
Fig. 4 is the structural representation for the device that second that the embodiment of the present invention three provides sets meter step parameter;
Fig. 5 is the structural representation for the first terminal that the embodiment of the present invention four provides;
Fig. 6 is the structural representation for second of terminal that the embodiment of the present invention four provides.
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 part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, the every other implementation that those skilled in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
The embodiment of the present invention provides a kind of method, apparatus and terminal for setting meter step parameter, will carry out respectively below detailed
Explanation.
Embodiment one
For the present embodiment by from setting the angle for the device for counting step parameter to be described, the device can specifically be integrated in terminal
In, the terminal can be the equipment such as smart mobile phone, tablet personal computer.
A kind of method that meter step parameter is set, including:Detect whether terminal in when being held state, judges the terminal
It is kept in motion;It is kept in motion if judged result is the terminal, obtains swing angle of the terminal in vertical plane;
Judge whether the swing angle is more than predetermined angle;If judged result, which is the swing angle, is more than predetermined angle, reduce the end
The threshold value of triggering meter step in end.
As shown in figure 1, setting the method for meter step parameter, idiographic flow can include:
S101, detect that terminal in when being held state, judges whether the 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 the 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 with terminal by wire communication or communication and is connected.
Terminal is held state by the way that whether the real-time detection terminal of grip sensor is in.When terminal is placed in hand by user
When, grip sensor can sense and produce corresponding signal, show that terminal is in when terminal receives the signal and be held
State.Then judge whether terminal is kept in motion.
Specifically, acceleration transducer can be set in the terminal, and the terminal collected according to acceleration transducer adds
Speed judges whether terminal is kept in motion.The acceleration can be terminal in the acceleration of vertical direction or
Resultant acceleration of the terminal in the acceleration of three axial directions.Following step can be specifically included by judging whether the terminal is kept in motion
Suddenly:
Obtain the acceleration of the terminal;
Judge whether the acceleration is more than predetermined acceleration;
If so, then judged result is that the terminal is kept in motion.
Specifically, predetermined acceleration can be that an acceleration value being prestored in terminal or user set
Put and store an acceleration value in the terminal.For example, 2m/s2.Terminal obtains terminal in real time by acceleration transducer
Acceleration, then by the acceleration compared with predetermined acceleration, to judge whether the acceleration is more than predetermined acceleration.
If the acceleration is more than predetermined acceleration, judged result is that the terminal is kept in motion, and then performs step S102;If should
Acceleration is not more than predetermined acceleration, then judged result is that the terminal is not at motion state, can re-execute step S101.
S102, obtain swing angle of the terminal in vertical plane.
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 is at motion (for example, walking), it will usually with swing arm behavior, now terminal can be occurred in vertical plane
Swing.Sensor (for example, gyroscope) can be set to carry out the swing of detection terminal in the terminal, obtain terminal in vertical plane
Swing angle.Following steps can be specifically included by obtaining swing angle of the terminal in vertical plane:
Obtain full swing angle of the terminal in preset time period in vertical plane;
Using the swing angle of the full swing angle as the terminal in vertical plane.
Specifically, preset time period can prestore a period in the terminal.For example, 10s.Terminal passes through
Sensor detects swing angle of the terminal in preset time period, and maximum of the computing terminal in the preset time period in real time
Swing angle.For example, in the preset time period, detect that terminal in the full swing angle of positive direction is 10 °, in negative direction
Full swing angle be 10 ° (can be using the direction that user moves ahead as positive direction, the opposite direction in the direction that user moves ahead is losing side
To), then the full swing angle of the terminal is 20 °.Then using the pendulum of the full swing angle as the terminal in vertical plane
Dynamic angle.
S103, judges whether the swing angle is more than predetermined angle.
Specifically, predetermined angle can prestore an angle value in the terminal or user is set simultaneously
The angle value of storage in the terminal.For example, 15 °.After getting swing angle of the terminal in vertical plane, by the angle of oscillation
Degree is compared with predetermined angle, to judge whether the swing angle is more than predetermined angle.If judged result is the swing angle
More than the predetermined angle, then step S104 is performed;If judged result, which is the swing angle, is not more than the predetermined angle, it can return to and hold
Row step S101.
S104, reduce the threshold value of triggering meter step in the terminal.
In concrete application, the threshold value of triggering meter step is pre-set in terminal.The threshold value can be an acceleration magnitude.
For example, 3m/s2.When judged result is that the swing angle is more than predetermined angle in S103, reduce the threshold value of triggering meter step.Subtract
The threshold value of triggering meter step can specifically include following steps in the small terminal:
Obtain the difference of the swing angle and the predetermined angle;
The reduction amplitude of the threshold value of triggering meter step is obtained according to the difference;
Reduce the threshold value of triggering meter step in the terminal according to the reduction amplitude.
Specifically, when the swing angle is more than predetermined angle, the difference of the swing angle and the predetermined angle is calculated.Can
To prestore the mapping relations in terms of the difference and triggering between the reduction amplitude of the threshold value of step in the terminal.Get difference
Afterwards, the reduction amplitude according to corresponding to obtaining the difference and the mapping relations.Then reduced according to the reduction amplitude in terminal and triggered
Count the threshold value of step.The reduction amplitude can be specific numerical value or percentage.
Following steps can also be specifically included by reducing the threshold value of triggering meter step in the terminal:
Obtain targets threshold corresponding to the swing angle;
The threshold value of triggering meter step in the terminal is arranged to the targets threshold.
Specifically, the mapping relations between swing angle and targets threshold can be prestored in the terminal.According to the pendulum
Targets threshold corresponding to dynamic angle and mapping relations acquisition, then threshold value that triggering in the terminal is counted to step are arranged to the target
Threshold value.
When it is implemented, the present invention is not limited by the execution sequence of described each step, conflict is not being produced
In the case of, some steps can also use other orders to carry out or carry out simultaneously.
From the foregoing, it will be observed that the method provided in an embodiment of the present invention for setting meter step parameter, is held using detecting that terminal is in
When holding state, judge whether the terminal is kept in motion;It is kept in motion if judged result is the terminal, obtains the end
Hold the swing angle in vertical plane;Judge whether the swing angle is more than predetermined angle;If judged result is the swing angle
More than the predetermined angle, then reduce the threshold value that triggering meter walks in the terminal.The program judges end when terminal is kept in motion
Hold whether the swing angle in vertical plane is more than predetermined angle, if so, then reducing the threshold value of triggering meter step in the terminal.Relatively
For prior art, the threshold value of triggering meter step is no longer fixed value, but is accordingly reduced according to the swing angle of terminal, is triggered
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 that parameter is walked in terms of setting specifically is integrated in smart mobile phone, with smart mobile phone
Meter is set to be described in detail exemplified by walking the method for parameter.
As shown in Fig. 2 setting the method for meter step parameter, idiographic flow can be as follows:
S201, detect that smart mobile phone in when being held state, obtains the acceleration of the smart mobile phone.
Specifically, grip sensor is integrated with smart mobile phone.When smart mobile phone is placed in hand by user, grips and pass
Sensor can sense and produce corresponding signal.When smart mobile phone receives the signal, that is, show that smart mobile phone is in and be held
State.
Acceleration transducer is also integrated with smart mobile phone.When smart mobile phone, which is in, is held state, pass through acceleration
Degree sensor obtains the acceleration of smart mobile phone in real time.
S202, judges whether the acceleration is more than predetermined acceleration.
Specifically, predetermined acceleration is an acceleration magnitude being stored in advance in smart mobile phone.For example, 2m/s2.Intelligence
After mobile phone gets acceleration, the predetermined acceleration being stored in smart mobile phone is called, the acceleration got is added with default
Speed is compared, to judge whether the acceleration is more than predetermined acceleration.When judged result is that the acceleration is more than default add
During speed, step S203 is performed;When judged result is that the acceleration is not more than predetermined acceleration, returns and perform step S201.
S203, judged result are that the smart mobile phone is kept in motion.
Specifically, when the acceleration of the smart mobile phone got is more than predetermined acceleration, then judged result is the intelligence
Mobile phone is kept in motion.Then perform step S204.
S204, obtain full swing angle of the smart mobile phone in preset time period in vertical plane.
Specifically, gyroscope is integrated with smart mobile phone, for the swing of detection smart mobile phone in real time, obtains intelligent hand
Swing angle of the machine in vertical plane.Preset time period can be a period being stored in advance in smart mobile phone.For example,
10s.Smart mobile phone detects the swing angle in preset time period by gyroscope in real time, and computational intelligence mobile phone is default at this
Full swing angle in period.For example, in the default 10s, full swing of the smart mobile phone in positive direction is detected
Angle is 10 °, negative direction full swing angle be 10 ° (can be using the direction that user moves ahead as positive direction, side that user moves ahead
To opposite direction be negative direction), then the full swing angle of smart mobile phone be 20 °.
S205, using the swing angle of the full swing angle as the smart mobile phone in vertical plane.
Specifically, after getting full swing angle of the smart mobile phone in preset time period in vertical plane, with this most
Big swing angle of the swing angle as the smart mobile phone in vertical plane.
S206, judges whether the swing angle is more than predetermined angle.
Specifically, predetermined angle can be an angle value being stored in advance in smart mobile phone.For example, predetermined angle is
15°.After getting swing angle of the smart mobile phone in vertical plane, by the swing angle compared with predetermined angle, to sentence
Whether the disconnected swing angle is more than predetermined angle.If judged result, which is the swing angle, is more than the predetermined angle, step is performed
S207;If judged result, which is the swing angle, is not more than the predetermined angle, it can return to and perform step S201.
S207, obtain the difference of the swing angle and the predetermined angle.
Specifically, after judged result is that the swing angle is more than the predetermined angle, it is default with this to calculate the swing angle
The difference of angle.For example, the swing angle got is 20 °, predetermined angle is 15 °, the then swing angle and the predetermined angle
Difference be 5 °.
S208, the reduction amplitude of the threshold value of triggering meter step is obtained according to the difference.
Specifically, reflecting between difference and the reduction amplitude for triggering the threshold value that meter walks can be prestored in smart mobile phone
Penetrate relation.After getting difference, the reduction amplitude according to corresponding to obtaining the difference and the mapping relations.The reduction amplitude can be
Specific numerical value or percentage.For example, the reduction amplitude can be 0.2m/s2, the reduction amplitude can also be
0.5%.Preferably, in smart mobile phone, the reduction amplitude is 32mg (32mg is the minimum adjustment unit of pedometer threshold value)
Integral multiple.
S209, reduce the threshold value of triggering meter step in the smart mobile phone according to the reduction amplitude.
Specifically, after getting reduction amplitude, the threshold value of triggering meter step in smart mobile phone is reduced according to the reduction amplitude.Example
Such as, the threshold value of original setting is 3m/s2, the reduction amplitude got is 0.2m/s2, then the threshold value after reducing is 2.8m/s2。
When it is implemented, the present invention is not limited by the execution sequence of described each step, conflict is not being produced
In the case of, some steps can also use other orders to carry out or carry out simultaneously.
From the foregoing, it will be observed that the method provided in an embodiment of the present invention for setting meter step parameter, using detecting that smart mobile phone is in
When being held state, the acceleration of the smart mobile phone is obtained;Judge whether the acceleration is more than predetermined acceleration;If so, then sentence
Disconnected result is that the smart mobile phone is kept in motion;Then obtain the smart mobile phone in preset time period in vertical plane most
Big swing angle, using the swing angle of the full swing angle as the smart mobile phone in vertical plane;Judge the swing angle
Whether predetermined angle is more than;If so, then obtain the difference of the swing angle and the predetermined angle;Triggering meter is obtained according to the difference
The reduction amplitude of the threshold value of step;Reduce the threshold value of triggering meter step in the smart mobile phone according to the reduction amplitude.The program is in intelligence
When mobile phone is kept in motion, judge whether swing angle of the smart mobile phone in vertical plane is more than predetermined angle, if so, then subtracting
The threshold value of triggering meter step in the small smart mobile phone.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 swing 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, improves 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 for setting meter step parameter, the dress
Putting can integrate in the terminal, and the terminal can be the equipment such as smart mobile phone, tablet personal computer.
As shown in figure 3, setting the device of meter step parameter can include:First judge module 301, acquisition module 302, second
Judge module 303, adjusting module 304, are described in detail below:
First judge module 301, for when detect terminal be in be held state when, judge whether the terminal is in
Motion state;
The acquisition module 302, it is kept in motion for the judged result when first judge module 301 for the terminal
When, obtain swing angle of the terminal in vertical plane;
Second judge module 303, for judging whether the swing angle is more than predetermined angle;
The adjusting module 304, it is default more than this for the swing angle for the judged result when second judge module 303
During angle, reduce the threshold value of triggering meter step in the terminal.
Preferably, as shown in figure 4, first judge module 301 includes:Acquisition submodule 3011, judging submodule 3012,
It is specific as follows:
The acquisition submodule 3011, for obtaining the acceleration of the terminal;
The judging submodule 3012, for judging whether the acceleration is more than predetermined acceleration;If so, then judged result is
The terminal is kept in motion.
Preferably, the acquisition module 302 is specifically used for:
When the judged result of first judge module 301 is kept in motion for the terminal, the terminal is obtained default
Full swing angle in period in vertical plane;
Using the swing angle of the full swing angle as the terminal in vertical plane.
Preferably, the adjusting module 304 is specifically used for:
When the judged result of second judge module 303 is more than the predetermined angle for the swing angle, the swing is obtained
The difference of angle and the predetermined angle;
The reduction amplitude of the threshold value of triggering meter step is obtained according to the difference;
Reduce the threshold value of triggering meter step in the terminal according to the reduction amplitude.
Preferably, the adjusting module 304 is specifically used for:
When the judged result of second judge module 303 is more than the predetermined angle for the swing angle, the swing is obtained
Targets threshold corresponding to angle;
The threshold value of triggering meter step in the terminal is arranged to the targets threshold.
It when it is implemented, above modules can be realized as independent entity, can also be combined, be made
Realized for same or several entities.The specific implementation of above modules can be found in embodiment of the method above, herein not
Repeat again.
From the foregoing, it will be observed that the device provided in an embodiment of the present invention that meter step parameter is set, by the first judge module 301 when inspection
Terminal is measured in when being held state, judges whether the terminal is kept in motion;Acquisition module 302 is when the first judge module
When 301 judged result is that the terminal is kept in motion, swing angle of the terminal in vertical plane is obtained;Second judges mould
Block 303 judges whether the swing angle is more than predetermined angle;Adjusting module 304 is when the judged result of the second judge module 303
When the swing angle is more than the predetermined angle, reduce the threshold value of triggering meter step in the terminal.The program is in motion shape in terminal
During state, judge whether swing angle of the terminal in vertical plane is more than predetermined angle, if so, then reducing triggering meter step in the terminal
Threshold value.In terms of existing technologies, the threshold value of triggering meter step is no longer fixed value, but according to the swing angle phase of terminal
It 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 the terminal can be the equipment such as smart mobile phone, tablet personal computer.
As shown in figure 5, terminal 400 can include:First judge module 401, acquisition module 402, the second judge module
403rd, adjusting module 404, it is described in detail below:
First judge module 401, for when detect terminal be in be held state when, judge whether the terminal is in
Motion state;
The acquisition module 402, it is kept in motion for the judged result when first judge module 401 for the terminal
When, obtain swing angle of the terminal in vertical plane;
Second judge module 403, for judging whether the swing angle is more than predetermined angle;
The adjusting module 404, it is default more than this for the swing angle for the judged result when second judge module 403
During angle, reduce the threshold value of triggering meter step in the terminal.
Preferably, first judge module includes:Acquisition submodule, judging submodule, it is specific as follows:
The acquisition submodule, for obtaining the acceleration of the terminal;
The judging submodule, for judging whether the acceleration is more than predetermined acceleration;If so, then judged result is the end
End is kept in motion.
Preferably, the acquisition module is specifically used for:
When the judged result of first judge module is kept in motion for the terminal, the terminal is obtained in preset time
Full swing angle in section in vertical plane;
Using the swing angle of the full swing angle as the terminal in vertical plane.
Preferably, the adjusting module is specifically used for:
When the judged result of second judge module is more than the predetermined angle for the swing angle, the swing angle is obtained
With the difference of the predetermined angle;
The reduction amplitude of the threshold value of triggering meter step is obtained according to the difference;
Reduce the threshold value of triggering meter step in the terminal according to the reduction amplitude.
Preferably, the adjusting module is specifically used for:
When the judged result of second judge module is more than the predetermined angle for the swing angle, the swing angle is obtained
Corresponding targets threshold;
The threshold value of triggering meter step in the terminal is arranged to the targets threshold.
Aforesaid operations for details, reference can be made to embodiment of the method above, will not be repeated here.
The embodiment of the present invention also provides another terminal, as shown in fig. 6, the terminal 500 can include radio frequency (RF, Radio
Frequency) circuit 501, include memory 502, the input block of one or more computer-readable recording mediums
503rd, display unit 504, sensor 505, voicefrequency circuit 506, Wireless Fidelity (WiFi, Wireless Fidelity) module
507th, the part such as one or the processor 508 of more than one processing core and power supply 509 is included.People in the art
Member it is appreciated that in Fig. 6 the terminal structure that shows not structure paired terminal restriction, can include more more or less than illustrating
Part, either combine some parts or different parts arrangement.
Radio circuit 501 can be used for receive and send messages, or in communication process signal reception and transmission, especially, by base station
Downlink information receive after, transfer to one or more than one processor 508 handled;In addition, sent up data are related to
To base station.Generally, radio circuit 501 includes but is not limited to antenna, at least one amplifier, tuner, one or more vibrations
Device, subscriber identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low noise amplification
Device (LNA, Low Noise Amplifier), duplexer etc..In addition, radio circuit 501 can also pass through radio communication and network
Communicated with other equipment.The radio communication can use any 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 it is more
Location (WCDMA, Wideband Code Division Multiple Access), Long Term Evolution (LTE, Long Term
Evolution), Email, Short Message Service (SMS, Short Messaging Service) etc..
Memory 502 can be used for storage software program and module.Processor 508 is stored in memory 502 by operation
Software program and module, so as to perform various function application and data processing.Memory 502 can mainly include storage journey
Sequence area and storage data field, wherein, storing program area can storage program area, the application program (ratio needed at least one function
Such as sound-playing function, image player function) etc.;Storage data field can store uses created data according to terminal
(such as voice data, phone directory etc.) etc..In addition, memory 502 can include high-speed random access memory, can also include
Nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Phase
Ying Di, memory 502 can also include Memory Controller, to provide processor 508 and input block 503 to memory 502
Access.
Input block 503 can be used for the numeral or character information for receiving input, and generation is set with user and function
Control relevant keyboard, mouse, action bars, optics or the input of trace ball signal.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 tactile
Control plate, collect user on or near it touch operation (such as user using any suitable object such as finger, stylus or
Operation of the annex on touch sensitive surface or near touch sensitive surface), and corresponding connection dress is driven according to formula set in advance
Put.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined
The touch orientation of user is surveyed, and detects the signal that touch operation is brought, transmits a signal to touch controller;Touch controller from
Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 508, and can reception processing
Order that device 508 is sent simultaneously is performed.It is furthermore, it is possible to a variety of 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
Physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse can be included but is not limited to by entering equipment
One or more in mark, action bars etc..
Display unit 504 can be used for display by user input information or be supplied to user information and terminal it is various
Graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination.Display
Unit 504 may include display panel, optionally, can use liquid crystal display (LCD, Liquid Crystal Display),
The forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display panel.Further
, touch sensitive surface can cover display panel, after touch sensitive surface detects the touch operation on or near it, send processing to
Device 508 is followed by subsequent processing device 508 and provided on a display panel accordingly according to the type of touch event to determine the type of touch event
Visual output.Although in figure 6, touch sensitive surface realizes input and input with display panel is the part independent as two
Function, but in some embodiments it is possible to touch sensitive surface and display panel are integrated 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, wherein, ambient light sensor can be according to ambient light
Light and shade adjust the brightness of display panel, proximity transducer can close display panel and/or the back of the body when terminal is moved in one's ear
Light.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally three axles) acceleration
Size, size and the direction of gravity are can detect that when static, available for identification mobile phone posture application (such as horizontal/vertical screen switching,
Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as terminal
Gyroscope, barometer, hygrometer, thermometer, the other sensors such as infrared ray sensor, will not be repeated here.
Voicefrequency circuit 506 can provide the COBBAIF between user and terminal by loudspeaker, microphone.Voicefrequency circuit
The voice data received can be converted into electric signal by 506, be transferred to loudspeaker, and voice signal output is converted to by loudspeaker;
On the other hand, the voice signal of collection is converted to electric signal by microphone, and audio number is converted to after being received by voicefrequency circuit 506
According to then after voice data output processor 508 is handled, through radio circuit 501 to be sent to such as another terminal, or by sound
Frequency data output is to memory 502 further to handle.Voicefrequency circuit 506 is also possible that earphone jack, to provide peripheral hardware
The communication of earphone and 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 accessed.
Although Fig. 6 shows wireless fidelity module 507, but it is understood that, it is simultaneously not belonging to must be configured into for terminal, completely may be used
To be omitted as needed in the essential scope for do not change invention.
Processor 508 is the control centre of terminal, using various interfaces and the various pieces of the whole terminal of connection, is led to
Cross operation or perform the software program and/or module being stored in memory 502, and call and be stored in memory 502
Data, the various functions and processing data of terminal are performed, so as to carry out integral monitoring to terminal.Optionally, processor 508 can wrap
Include one or more processing cores;Preferably, processor 508 can integrate application processor and modem processor, wherein, should
Operating system, user interface and application program etc. are mainly handled with processor, modem processor mainly handles radio communication.
It is understood that above-mentioned modem processor can not also be integrated into processor 508.
Terminal also includes the power supply 509 (such as battery) to all parts power supply.Preferably, power supply can pass through power supply pipe
Reason system and processor 508 are logically contiguous, so as to realize 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 AC power, 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 camera, bluetooth module etc., will not be repeated here.
Specifically in the present embodiment, the processor 508 in terminal can be according to following instruction, will be one or more
Executable file corresponding to the process of application program is loaded into memory 502, and is stored in storage by processor 508 to run
Application program in device 502, so as to realize various functions:
Detect that terminal in when being held state, judges whether the terminal is kept in motion;If judged result is should
Terminal is kept in motion, then obtains swing angle of the terminal in vertical plane;It is default to judge whether the swing angle is more than
Angle;If judged result, which is the swing angle, is more than predetermined angle, reduce the threshold value of triggering meter step in the 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 the terminal
Whether it is kept in motion;
Processor 508 is used for by acquisition module when the judged result of first judge module is in motion shape for the terminal
During state, swing angle of the terminal in vertical plane is obtained;
Processor 508 is used to judge whether the swing angle is more than predetermined angle by the second judge module;
Processor 508 by adjusting module when the judged result of second judge module is more than for the swing angle for being somebody's turn to do
During predetermined angle, reduce the threshold value of triggering meter step in the terminal.
Aforesaid operations for details, reference can be made to embodiment of the method above, will not be repeated here.
From the foregoing, it will be observed that the embodiments of the invention provide a kind of terminal, by detect terminal be in be held state when, sentence
Whether the terminal of breaking is kept in motion;It is kept in motion if judged result is the terminal, obtains the terminal in vertical plane
Interior swing angle;Judge whether the swing angle is more than predetermined angle;If judged result is that the swing angle is default more than this
Angle, then reduce the threshold value of triggering meter step in the terminal.The program judges terminal in vertical plane when terminal is kept in motion
Whether interior swing angle is more than predetermined angle, if so, then reducing the threshold value of triggering meter step in the terminal.Relative to prior art
For, the threshold value of triggering meter step is no longer fixed value, but is accordingly reduced according to the swing angle of terminal, the threshold value of triggering meter step
The actual motion situation of terminal is combined 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 are by program the hardware of correlation can be instructed to complete, and the program can be stored in computer-readable storage medium
In matter, storage medium can include:Read-only storage (ROM, Read Only Memory), random access memory (RAM,
Random Access Memory), disk or CD etc..
The method, apparatus and terminal of a kind of setting meter step parameter provided above the embodiment of the present invention have been carried out in detail
Introduce, specific case used herein is set forth to the principle and embodiment of the present invention, the explanation of above example
It is only intended to help the method and its core concept for understanding the present invention;Meanwhile for those skilled in the art, according to the present invention
Thought, there will be changes in specific embodiments and applications, in summary, this specification content should not be understood
For limitation of the present invention.
Claims (12)
- A kind of 1. method that meter step parameter is set, applied to terminal, it is characterised in that the exterior of terminal is provided with protective case, Grip sensor is provided with the protective case, the terminal is communicated with the grip sensor, and methods described includes:Obtain the detection data of the grip sensor;According to the testing number of the grip sensor it is judged that whether the terminal, which is in, is held state;If the terminal is in and is held state, judge whether the terminal is kept in motion;It is kept in motion if judged result is the terminal, obtains swing angle of the terminal in vertical plane;Judge whether the swing angle is more than predetermined angle;If judged result, which is the swing angle, is more than the predetermined angle, reduce the threshold value of triggering meter step in the terminal.
- 2. according to the method for claim 1, it is characterised in that the step for judging the terminal and whether being kept in motion Suddenly specifically include:Obtain the acceleration of the terminal;Judge whether the acceleration is more than predetermined acceleration;If so, then judged result is that the terminal is kept in motion.
- 3. according to the method for claim 1, it is characterised in that the swing angle for obtaining the terminal in vertical plane The step of specifically include:Obtain full swing angle of the terminal in preset time period in vertical plane;Swing angle using the full swing angle as the terminal in vertical plane.
- 4. according to the method for claim 1, it is characterised in that the step for reducing the threshold value of triggering meter step in the terminal Suddenly specifically include:Obtain the difference of the swing angle and the predetermined angle;The reduction amplitude of the threshold value of triggering meter step is obtained according to the difference;Reduce the threshold value of triggering meter step in the terminal according to the reduction amplitude.
- 5. according to the method for claim 1, it is characterised in that the step for reducing the threshold value of triggering meter step in the terminal Suddenly specifically include:Obtain targets threshold corresponding to the swing angle;The threshold value of triggering meter step in the terminal is arranged to the targets threshold.
- A kind of 6. device that meter step parameter is set, applied to terminal, it is characterised in that the exterior of terminal is provided with protective case, Grip sensor is provided with the protective case, the terminal is communicated with the grip sensor, and described device includes:First judge module, for obtaining the detection data of the grip sensor, according to the testing number of the grip sensor It is judged that whether the terminal if the terminal be in be held state, judges the terminal whether in state is held It is kept in motion;Acquisition module, for when the judged result of first judge module is kept in motion for the terminal, obtaining institute State swing angle of the terminal in vertical plane;Second judge module, for judging whether the swing angle is more than predetermined angle;Adjusting module, it is more than the predetermined angle for the judged result when second judge module for the swing angle When, reduce the threshold value that triggering meter walks in the terminal.
- 7. device according to claim 6, it is characterised in that first judge module specifically includes:Acquisition submodule, for obtaining the acceleration of the terminal;Judging submodule, for judging whether the acceleration is more than predetermined acceleration;If so, then judged result is the terminal It is kept in motion.
- 8. device according to claim 6, it is characterised in that the acquisition module is specifically used for:When the judged result of first judge module is kept in motion for the terminal, the terminal is obtained when default Between full swing angle in section in vertical plane;Swing angle using the full swing angle as the terminal in vertical plane.
- 9. device according to claim 6, it is characterised in that the adjusting module is specifically used for:When the judged result of second judge module is more than the predetermined angle for the swing angle, the swing is obtained The difference of angle and the predetermined angle;The reduction amplitude of the threshold value of triggering meter step is obtained according to the difference;Reduce the threshold value of triggering meter step in the terminal according to the reduction amplitude.
- 10. device according to claim 6, it is characterised in that the adjusting module is specifically used for:When the judged result of second judge module is more than the predetermined angle for the swing angle, the swing is obtained Targets threshold corresponding to angle;The threshold value of triggering meter step in the terminal is arranged to the targets threshold.
- 11. a kind of terminal, it is characterised in that the terminal includes the device any one of claim 6 to 10.
- 12. a kind of storage medium, it is characterised in that computer program is stored with the storage medium, when the computer journey When sequence is run on computers so that the computer perform claim requires the side of the setting meter step parameter described in 1 to 5 any one Method.
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 CN106354250A (en) | 2017-01-25 |
CN106354250B true 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) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116501175B (en) * | 2023-06-25 | 2023-09-22 | 江西格如灵科技股份有限公司 | Virtual character moving method, device, computer equipment and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102297701A (en) * | 2010-06-22 | 2011-12-28 | 雅马哈株式会社 | Pedometer |
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 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI457539B (en) * | 2012-12-19 | 2014-10-21 | Ind Tech Res Inst | Multi-posture step length calibration system and method for indoor positioning |
CN104902078B (en) * | 2015-04-29 | 2018-08-17 | 深圳市万普拉斯科技有限公司 | The control method and system and mobile terminal of screen rotation in mobile terminal |
-
2016
- 2016-08-05 CN CN201610639908.6A patent/CN106354250B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102297701A (en) * | 2010-06-22 | 2011-12-28 | 雅马哈株式会社 | Pedometer |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN106354250A (en) | 2017-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106357897B (en) | The acquisition methods and device of drop information | |
CN106412249B (en) | The detection method and device of drop information | |
CN106453829B (en) | A kind of falling height detection method and device | |
CN103716331B (en) | Method, terminal, server and system for numerical value transfer | |
CN106778585A (en) | A kind of face key point-tracking method and device | |
CN106549464A (en) | A kind of charge control method, device and computer equipment | |
CN103365419B (en) | A kind of method and apparatus triggering alarm clock control command | |
CN106331359B (en) | A kind of speech signal collection method, device and terminal | |
CN104360307B (en) | A kind of localization method and device | |
CN106646440B (en) | A kind of falling height detection method and device | |
CN106487984B (en) | A kind of method and apparatus adjusting volume | |
CN104571529A (en) | Application wake method and mobile terminal | |
CN103888978B (en) | A kind of measurement result report method and UE | |
CN106340925A (en) | Charging control method, apparatus and terminal | |
CN104238900B (en) | A kind of page positioning method and device | |
CN107040610A (en) | Method of data synchronization, device, storage medium, terminal and server | |
CN106951850A (en) | The method and mobile terminal of a kind of control fingerprint recognition module | |
CN106371086A (en) | Distance measurement method and device | |
CN104699501B (en) | A kind of method and device for running application program | |
CN104951637B (en) | A kind of method and device for obtaining training parameter | |
CN104346368A (en) | Indoor scene switch displaying method and device and mobile terminal | |
CN103399657B (en) | The control method of mouse pointer, device and terminal unit | |
CN109739394A (en) | A kind of processing method of SAR value, mobile terminal | |
CN107528958B (en) | Method for controlling mobile terminal, device, readable storage medium storing program for executing and mobile terminal | |
CN105045372A (en) | Method and equipment controlling wearable device |
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 |