CN112486258A - Wearable device, step counting method thereof and computer storage medium - Google Patents
Wearable device, step counting method thereof and computer storage medium Download PDFInfo
- Publication number
- CN112486258A CN112486258A CN202011334313.2A CN202011334313A CN112486258A CN 112486258 A CN112486258 A CN 112486258A CN 202011334313 A CN202011334313 A CN 202011334313A CN 112486258 A CN112486258 A CN 112486258A
- Authority
- CN
- China
- Prior art keywords
- wearable device
- step counting
- parameter
- acquiring
- motion
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 230000001133 acceleration Effects 0.000 claims abstract description 54
- 230000006870 function Effects 0.000 claims description 77
- 238000005070 sampling Methods 0.000 claims description 24
- 230000003068 static effect Effects 0.000 abstract description 10
- 238000005265 energy consumption Methods 0.000 abstract description 6
- 230000002035 prolonged effect Effects 0.000 abstract description 2
- 238000004891 communication Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 101150017422 HTR1 gene Proteins 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000009182 swimming Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/163—Wearable computers, e.g. on a belt
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C19/00—Gyroscopes; Turn-sensitive devices using vibrating masses; Turn-sensitive devices without moving masses; Measuring angular rate using gyroscopic effects
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C22/00—Measuring distance traversed on the ground by vehicles, persons, animals or other moving solid bodies, e.g. using odometers, using pedometers
- G01C22/006—Pedometers
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C9/00—Measuring inclination, e.g. by clinometers, by levels
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01P—MEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
- G01P15/00—Measuring acceleration; Measuring deceleration; Measuring shock, i.e. sudden change of acceleration
- G01P15/18—Measuring acceleration; Measuring deceleration; Measuring shock, i.e. sudden change of acceleration in two or more dimensions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3287—Power saving characterised by the action undertaken by switching off individual functional units in the computer system
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Computer Hardware Design (AREA)
- Human Computer Interaction (AREA)
- Computing Systems (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
The invention discloses a step counting method of wearable equipment, which comprises the following steps: starting a step counting function of the wearable device; the method comprises the steps of obtaining motion parameters of the wearable device regularly, wherein the motion parameters comprise acceleration values of an acceleration sensor of the wearable device and/or angular velocity values of a gyroscope of the wearable device; and if the motion parameter is detected to be smaller than a first preset parameter, closing the step counting function of the wearable equipment. The invention also discloses wearable equipment and a computer storage medium, wherein the wearable equipment is used for judging whether the user is in a static state or not according to the motion parameters by acquiring the motion parameters of the wearable equipment, and the step counting function is closed when the user is in the static state, so that the energy consumption is reduced by closing the step counting function when step counting is not needed, and the continuous service life of the wearable equipment is prolonged.
Description
Technical Field
The invention relates to the technical field of intelligent electronic equipment, in particular to wearable equipment, a step counting method of the wearable equipment and a computer storage medium.
Background
In intelligent electronic equipment technical field, the motion bracelet is liked by the consumer deeply, and wherein, the most basic function of motion bracelet is the meter step function. Generally, the sports functions of the sports bracelet, such as sleeping, swimming and riding, are improved through an algorithm, the purpose of saving power consumption can be achieved, the step counting function is used for counting the walking steps of a user, and therefore the user needs to be kept in an open state for a long time, but the step counting function is always in the open state, the power consumption of the sports bracelet can be increased, and the duration of the sports bracelet in use is reduced.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide wearable equipment, a step counting method thereof and a computer storage medium, and aims to close a step counting function and reduce energy consumption when a motion parameter is smaller than a first preset parameter.
In order to achieve the above object, the present invention provides a wearable device step counting method, including the following steps:
starting a step counting function of the wearable device;
the method comprises the steps of obtaining motion parameters of the wearable device regularly, wherein the motion parameters comprise acceleration values of an acceleration sensor of the wearable device and/or angular velocity values of a gyroscope of the wearable device;
and if the motion parameter is detected to be smaller than a first preset parameter, closing the step counting function of the wearable equipment.
Optionally, if it is detected that the motion parameter is smaller than a first preset parameter, the step of closing the step-counting function of the wearable device includes:
if the motion parameter is detected to be smaller than a first preset parameter, acquiring a first accumulated number of times that the motion parameter is continuously smaller than the first preset parameter;
and when the first accumulated times are larger than first preset times, closing the step counting function of the wearable equipment.
Optionally, after the step of turning off the step-counting function of the wearable device, the method further includes:
acquiring motion parameters of the wearable device at regular time;
and if the motion parameter is detected to be larger than or equal to a second preset parameter, starting a step counting function of the wearable device, wherein the second preset parameter is larger than or equal to the first preset parameter.
Optionally, if it is detected that the motion parameter is greater than or equal to a second preset parameter, the step of starting the step counting function of the wearable device includes:
if the motion parameter is detected to be larger than or equal to a second preset parameter, acquiring a second accumulated number of times that the motion parameter is continuously larger than or equal to the second preset parameter;
and when the second accumulated times is greater than a second preset times, starting a step counting function of the wearable device.
Optionally, the step of turning on the step-counting function of the wearable device includes:
acquiring the accumulated step number of the wearable equipment;
acquiring the step number corresponding to the second preset times;
correcting the accumulated step number according to the step number corresponding to the second preset times;
and starting to count steps according to the corrected accumulated steps.
Optionally, while the step of turning off the step counting function of the wearable device is executed, the following steps are also executed:
adjusting the sampling frequency of the motion parameters acquired at regular time to be a first frequency;
while executing the step of starting the step counting function of the wearable device, the following steps are also executed:
and adjusting the sampling frequency for acquiring the motion parameters at fixed time to be a second frequency, wherein the second frequency is greater than the first frequency.
Optionally, the step of periodically acquiring the motion parameters of the wearable device includes:
acquiring three mutually perpendicular axial accelerations acquired by the acceleration sensor at regular time, and acquiring the acceleration value according to the three axial accelerations;
and/or acquiring three mutually perpendicular axial angular velocities acquired by the gyroscope at regular time, and acquiring the angular velocity value according to the three axial angular velocities.
Optionally, the step counting method of the wearable device further includes:
acquiring the state of the wearable device;
and when the wearable device is detected to be switched to a worn state, executing the step of starting the step counting function of the wearable device.
In addition, to achieve the above object, the present invention also provides a wearable device, including: a memory, a processor and a wearable device pedometer program stored on the memory and operable on the processor, the wearable device pedometer program when executed by the processor implementing the steps of the wearable device pedometer method as described in any one of the above.
In addition, to achieve the above object, the present invention further provides a computer storage medium having a wearable device step counting program stored thereon, wherein the wearable device step counting program, when executed by a processor, implements the steps of the wearable device step counting method according to any one of the above aspects.
The wearable device, the step counting method thereof and the computer storage medium provided by the embodiment of the invention start the step counting function of the wearable device, regularly acquire the motion parameters of the wearable device, wherein the motion parameters comprise the acceleration value of the acceleration sensor of the wearable device and/or the angular velocity value of the gyroscope of the wearable sensor, and if the motion parameters are detected to be smaller than a first preset parameter, close the step counting function of the wearable device. According to the method and the device, the motion parameters of the wearable device are collected, whether the user is in a static state or not is judged according to the motion parameters, and the step counting function is turned off when the user is in the static state, so that the step counting function is turned off when the step counting is not needed, the energy consumption is reduced, and the continuous service life of the wearable device is prolonged.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a step counting method of a wearable device according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a step counting method of a wearable device according to another embodiment of the present invention;
fig. 4 is a flowchart illustrating a step counting method of a wearable device according to still another embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention provides a solution, which is characterized in that motion parameters of wearable equipment are collected, whether a user is in a static state is judged according to the motion parameters, and a step counting function is turned off when the user is in the static state, so that the step counting function is turned off to reduce energy consumption and prolong the continuous use time of the wearable equipment when step counting is not needed.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal is a wearable device, the wearable device has a step counting function, the wearable device is provided with an acceleration sensor and/or a gyroscope, and the wearable device is a sports bracelet.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, and a memory 1004. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The memory 1004 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1004 may alternatively be a storage device separate from the processor 1001. The terminal may also include sensors, such as motion sensors and/or gyroscopes.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, memory 1004, which is a type of computer storage medium, may include a user interface module and a wearable device's pedometer.
In the terminal shown in fig. 1, the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke a wearable device's pedometer stored in the memory 1004 and perform the following operations:
starting a step counting function of the wearable device;
the method comprises the steps of obtaining motion parameters of the wearable device regularly, wherein the motion parameters comprise acceleration values of an acceleration sensor of the wearable device and/or angular velocity values of a gyroscope of the wearable device;
and if the motion parameter is detected to be smaller than a first preset parameter, closing the step counting function of the wearable equipment.
Further, the processor 1001 may invoke a step-counting program of the wearable device stored in the memory 1004, and further perform the following operations:
if the motion parameter is detected to be smaller than a first preset parameter, acquiring a first accumulated number of times that the motion parameter is continuously smaller than the first preset parameter;
and when the first accumulated times are larger than first preset times, closing the step counting function of the wearable equipment.
Further, the processor 1001 may invoke a step-counting program of the wearable device stored in the memory 1004, and further perform the following operations:
acquiring motion parameters of the wearable device at regular time;
and if the motion parameter is detected to be larger than or equal to a second preset parameter, starting a step counting function of the wearable device, wherein the second preset parameter is larger than or equal to the first preset parameter.
Further, the processor 1001 may invoke a step-counting program of the wearable device stored in the memory 1004, and further perform the following operations:
if the motion parameter is detected to be larger than or equal to a second preset parameter, acquiring a second accumulated number of times that the motion parameter is continuously larger than or equal to the second preset parameter;
and when the second accumulated times is greater than a second preset times, starting a step counting function of the wearable device.
Further, the processor 1001 may invoke a step-counting program of the wearable device stored in the memory 1004, and further perform the following operations:
acquiring the accumulated step number of the wearable equipment;
acquiring the step number corresponding to the second preset times;
correcting the accumulated step number according to the step number corresponding to the second preset times;
and starting to count steps according to the corrected accumulated steps.
Further, the processor 1001 may invoke a step-counting program of the wearable device stored in the memory 1004, and further perform the following operations:
adjusting the sampling frequency of the motion parameters acquired at regular time to be a first frequency;
while executing the step of starting the step counting function of the wearable device, the following steps are also executed:
and adjusting the sampling frequency for acquiring the motion parameters at fixed time to be a second frequency, wherein the second frequency is greater than the first frequency.
Further, the processor 1001 may invoke a step-counting program of the wearable device stored in the memory 1004, and further perform the following operations:
acquiring three mutually perpendicular axial accelerations acquired by the acceleration sensor at regular time, and acquiring the acceleration value according to the three axial accelerations;
and/or acquiring three mutually perpendicular axial angular velocities acquired by the gyroscope at regular time, and acquiring the angular velocity value according to the three axial angular velocities.
Further, the processor 1001 may invoke a step-counting program of the wearable device stored in the memory 1004, and further perform the following operations:
acquiring the state of the wearable device;
and when the wearable device is detected to be switched to a worn state, executing the step of starting the step counting function of the wearable device.
Referring to fig. 2, in an embodiment, a step counting method of a wearable device includes the steps of:
step S10, starting a step counting function of the wearable device;
in this embodiment, the terminal of the embodiment is a wearable device, the wearable device has a step counting function, and the wearable device is provided with an acceleration sensor and/or a gyroscope, for example, the wearable device is a sports bracelet.
In this embodiment, the step counting function of the wearable device is turned on, so that the step counting module in the wearable device is in an operating state. When the step counting function is in an open state, the wearable device detects the walking action of the user and counts the walking steps of the user.
Optionally, the states of the wearable device may include a motion state and a stationary state, and may also include a worn state and an unworn state, the state of the wearable device is obtained periodically, and if it is detected that the state of the wearable device is switched from the unworn state to the worn state, indicating that the user performs an action of wearing the wearable device, it may be necessary to perform step counting, and therefore, the step of starting the step counting function of the wearable device may be performed. Similarly, if it is detected that the wearable device is switched from the worn state to the unworn state, the step of turning off the step-counting function of the wearable device may be performed.
Step S20, acquiring motion parameters of the wearable device at regular time, wherein the motion parameters comprise an acceleration value of an acceleration sensor of the wearable device and/or an angular velocity value of a gyroscope of the wearable device;
in this embodiment, when the step counting function of the wearable device is in an on state, the motion parameter of the wearable device is periodically acquired to detect whether the wearable device is stationary. Optionally, the obtaining of the motion parameters periodically refers to acquiring the motion parameters of the wearable device according to a certain sampling frequency.
Optionally, the motion parameters comprise acceleration values of acceleration sensors of the wearable device and/or angular velocity values of gyroscopes of the wearable sensor. Of course, the motion parameters may also include parameters acquired by other motion sensors in the wearable device, and the motion parameters may represent the motion condition of the wearable device.
Optionally, when obtaining the motion parameter of the wearable device, if the motion parameter includes an acceleration value, the three orthogonal axial accelerations acquired by the acceleration sensor, that is, an X-axis acceleration, a Y-axis acceleration, and a Z-axis acceleration, may be obtained at regular time, and the acceleration value is obtained according to the three axial accelerations, specifically, a vector sum of the three axial accelerations is calculated, and the vector sum is used as a combined acceleration, where the combined acceleration is the acceleration value, and/or, if the motion parameter includes an angular velocity value, the three orthogonal axial angular velocities acquired by the gyroscope may be obtained at regular time, and an angular velocity value is obtained according to the three axial angular velocities, where a calculation manner of the angular velocity value is similar to a calculation manner of the acceleration value, and details are not repeated here.
And step S30, if the motion parameter is detected to be smaller than a first preset parameter, closing the step counting function of the wearable device.
In this embodiment, the state of the wearable device is determined according to the motion parameter of the wearable device, for example, when it is detected that the motion parameter is smaller than the first preset parameter, it indicates that the wearable device is not moving currently or the motion amplitude is very small, and therefore it can be determined that the wearable device is in a stationary state currently, and at this time, it is considered that the step count counted by the wearable device is not increased, and therefore, the step counting function of the wearable device can be turned off to reduce the energy consumption of the wearable device.
Optionally, the state of the wearable device comprises a motion state and a rest state. And turning off the step counting function of the wearable device when the wearable device is judged to be in the static state currently. And starting a step counting function of the wearable device when the wearable device is judged to be in the motion state currently.
Optionally, the first preset parameter is a threshold for determining whether the wearable device is in a stationary state, and may be determined according to an earlier stage test. The first preset parameter corresponds to the motion parameter, for example, when the motion parameter is an acceleration sensor, the first preset parameter is also an acceleration value, and when the motion parameter is an angular velocity value, the first preset parameter is also an angular velocity value.
Optionally, when the state of the wearable device is determined according to the motion parameter of the wearable device, because the motion parameter is collected according to a certain sampling frequency, when it is detected that the motion parameter is smaller than the first preset parameter, a first accumulated number of times that the motion parameter is continuously smaller than the first preset parameter may also be obtained, and it is determined whether the first accumulated number of times is greater than the first preset number of times, so as to detect whether the wearable device is actually stationary through multiple continuous determinations on the motion parameter, thereby avoiding erroneous determination due to fluctuation of the motion parameter. And when the first accumulated times is greater than the first preset times, the wearable device is actually in a static state, the wearable device is judged to be in the static state currently, and the step counting function of the wearable device is closed.
Optionally, while the step counting function of the wearable device is turned off, the sampling frequency for acquiring the motion parameter at regular time may be adjusted to a first frequency, and while the step counting function of the wearable device is turned on, the sampling frequency for acquiring the motion parameter at regular time may be adjusted to a second frequency, where the second frequency is greater than the first frequency, that is, the second frequency is a normal sampling frequency of the wearable device, and the first frequency is a low sampling frequency of the wearable device.
In the technical scheme disclosed in this embodiment, through the motion parameter of gathering wearable equipment, judge whether the user is in the quiescent condition according to the motion parameter to close the meter step function when the user is in the quiescent condition, reduce the energy consumption through closing the meter step function when not needing to count the step, improve wearable equipment's duration of continuous use.
In another embodiment, as shown in fig. 3, on the basis of the embodiment shown in fig. 2, after step S30, the method further includes:
step S40, acquiring the motion parameters of the wearable device at regular time;
in the embodiment, after the step counting function of the wearable device is turned off, the motion parameters of the wearable device are acquired periodically to detect whether the wearable device moves. Optionally, the obtaining of the motion parameters periodically refers to acquiring the motion parameters of the wearable device according to a certain sampling frequency.
Step S50, if it is detected that the motion parameter is greater than or equal to a second preset parameter, the step counting function of the wearable device is turned on, where the second preset parameter is greater than or equal to the first preset parameter.
In this embodiment, after the step counting function of the wearable device is turned off, the state of the wearable device is determined according to the motion parameter of the wearable device, for example, when the motion parameter is detected to be greater than or equal to the second preset parameter, it indicates that the wearable device is currently moving, and therefore it may be determined that the wearable device is currently in a moving state, and the number of moving steps of the wearable device is counted by turning on the step counting function of the wearable device.
Optionally, the second preset parameter is a threshold for determining whether the wearable device is in a motion state, and may be determined according to an earlier stage test. The second preset parameter corresponds to the motion parameter, for example, when the motion parameter is an acceleration sensor, the second preset parameter is also an acceleration value, and when the motion parameter is an angular velocity value, the second preset parameter is also an angular velocity value.
Optionally, since the motion parameters such as the acceleration value and the angular velocity value when the wearable device is moving are greater than the motion parameters when the wearable device is stationary, the second preset parameter is set to be greater than or equal to the first preset parameter.
Optionally, when the state of the wearable device is determined according to the motion parameter of the wearable device, because the motion parameter is collected according to a certain sampling frequency, when it is detected that the motion parameter is greater than or equal to a second preset parameter, a second accumulated number of times that the motion parameter is continuously greater than or equal to the second preset parameter may also be obtained, and whether the second accumulated number of times is greater than the second preset number of times is determined, so as to detect whether the wearable device is actually in motion through multiple continuous determinations on the motion parameter, thereby avoiding misjudgment due to fluctuation of the motion parameter. And when the second accumulated times is greater than the second preset times, the wearable device is judged to be actually in motion, and the step counting function of the wearable device is started. Optionally, the second preset number of times is equal to the first preset number of times.
Optionally, since it takes a certain time to obtain a second accumulated number of times that the exercise parameter is continuously greater than or equal to the second preset parameter, the wearable device may also be in motion at this stage, but since the step counting function of the wearable device is not turned on at this time, the corresponding number of steps cannot be counted, so that there is a certain error between the counted number of steps of the wearable device and the actual number of steps, therefore, in the step of turning on the step counting function of the wearable device when the second accumulated number of times is greater than the second preset number, the accumulated number of steps currently counted by the wearable device may be obtained when the second accumulated number of times is greater than the second preset number, and the number of steps corresponding to the second preset number may be obtained, and the accumulated number of steps may be corrected according to the number of steps corresponding to the second preset number, for example, the sum of the accumulated number of steps corresponding to the second preset number is taken as the corrected accumulated number of steps, and the step may be started according to the corrected accumulated number of steps, the step number statistics of the wearable device is more accurate by eliminating the step number error.
Optionally, while the step counting function of the wearable device is turned on, the sampling frequency for acquiring the motion parameter at regular time may be adjusted to a second frequency, and while the step counting function of the wearable device is turned off, the sampling frequency for acquiring the motion parameter at regular time may be adjusted to a first frequency, where the second frequency is greater than the first frequency, that is, the second frequency is a normal sampling frequency of the wearable device, and the first frequency is a low sampling frequency of the wearable device.
In the technical scheme disclosed in this embodiment, through the motion parameter of gathering wearable equipment, judge whether the user is in the motion state according to the motion parameter to open the meter step function when the user is in the motion state, in order to count user's motion step number when needing to count the step.
In yet another embodiment, as shown in fig. 4, based on the embodiments shown in fig. 2 to fig. 3, a specific technical solution of the step counting method of the wearable device is as follows:
the design idea of the step counting method is based on triaxial acceleration data ACCX, ACCY and ACCZ of the accelerometer, and the resultant acceleration of the triaxial data is calculated as follows:
ACC ═ ACCX2+ACCY2+ACCZ2
Under the normal condition, when wearable equipment is placed statically, the combined acceleration ACC is the earth gravity acceleration g, when the wearable equipment moves, the ACC is larger than the gravity acceleration g, therefore, a movement threshold thr1(thr1> g) is set as a threshold for judging whether the wearable equipment moves, the step counting method further adds a judgment anti-shaking mechanism, the step counting function can be effectively prevented from being frequently opened and closed due to accidental actions of the wearable equipment, and stable operation of the step counting function is facilitated.
Referring to fig. 4, the system defaults to sampling at a lower sampling frequency, determines whether the motion resultant acceleration is greater than thr1, and if the number of data continuously greater than thr1 is greater than N1, which indicates that the wearable device should be in motion, increases the sampling rate to a normal sampling rate to sample acceleration data, and opens the step counting function to count steps; if the number of the data continuously greater than thr1 is not greater than N1, the wearable device is not in a motion state, and returning is performed; if the number of data with the resultant acceleration continuously less than htr1 is greater than N2, which indicates that the wearable device should be in a static state, the low sampling rate sampling is continuously maintained, the step counting function is turned off, and the power consumption is saved.
In the technical scheme disclosed in this embodiment, the function of the dynamic change-over switch for the step counting function is realized by detecting the activity of the hand ring, the overall power consumption of the wearable device is effectively reduced, and the step counting function can be accurately operated by the wearable device when the steps need to be counted.
In addition, an embodiment of the present invention further provides a wearable device, where the wearable device includes: the wearable device comprises a memory, a processor and a wearable device step counting program stored on the memory and capable of running on the processor, wherein the step counting program of the wearable device realizes the steps of the wearable device step counting method according to the above embodiments when being executed by the processor.
In addition, an embodiment of the present invention further provides a computer storage medium, where a step counting program of a wearable device is stored on the computer storage medium, and when executed by a processor, the step counting program of the wearable device implements the steps of the step counting method of the wearable device according to the above embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A step counting method of a wearable device is characterized by comprising the following steps:
starting a step counting function of the wearable device;
the method comprises the steps of obtaining motion parameters of the wearable device regularly, wherein the motion parameters comprise acceleration values of an acceleration sensor of the wearable device and/or angular velocity values of a gyroscope of the wearable device;
and if the motion parameter is detected to be smaller than a first preset parameter, closing the step counting function of the wearable equipment.
2. The wearable device step counting method of claim 1, wherein the step of turning off the step counting function of the wearable device if the motion parameter is detected to be less than a first predetermined parameter comprises:
if the motion parameter is detected to be smaller than a first preset parameter, acquiring a first accumulated number of times that the motion parameter is continuously smaller than the first preset parameter;
and when the first accumulated times are larger than first preset times, closing the step counting function of the wearable equipment.
3. The step-counting method of a wearable device of claim 1, wherein the step of turning off the step-counting function of the wearable device is followed by further comprising:
acquiring motion parameters of the wearable device at regular time;
and if the motion parameter is detected to be larger than or equal to a second preset parameter, starting a step counting function of the wearable device, wherein the second preset parameter is larger than or equal to the first preset parameter.
4. The step counting method of the wearable device according to claim 3, wherein the step of turning on the step counting function of the wearable device if the motion parameter is detected to be greater than or equal to a second preset parameter comprises:
if the motion parameter is detected to be larger than or equal to a second preset parameter, acquiring a second accumulated number of times that the motion parameter is continuously larger than or equal to the second preset parameter;
and when the second accumulated times is greater than a second preset times, starting a step counting function of the wearable device.
5. The step-counting method of the wearable device of claim 4, wherein the step of turning on the step-counting function of the wearable device comprises:
acquiring the accumulated step number of the wearable equipment;
acquiring the step number corresponding to the second preset times;
correcting the accumulated step number according to the step number corresponding to the second preset times;
and starting to count steps according to the corrected accumulated steps.
6. The step counting method of the wearable device according to claim 3, wherein the step of turning off the step counting function of the wearable device is performed while the following steps are performed:
adjusting the sampling frequency of the motion parameters acquired at regular time to be a first frequency;
while executing the step of starting the step counting function of the wearable device, the following steps are also executed:
and adjusting the sampling frequency for acquiring the motion parameters at fixed time to be a second frequency, wherein the second frequency is greater than the first frequency.
7. The step-counting method of a wearable device according to claim 1, wherein the step of periodically acquiring the motion parameters of the wearable device comprises:
acquiring three mutually perpendicular axial accelerations acquired by the acceleration sensor at regular time, and acquiring the acceleration value according to the three axial accelerations;
and/or acquiring three mutually perpendicular axial angular velocities acquired by the gyroscope at regular time, and acquiring the angular velocity value according to the three axial angular velocities.
8. The wearable device step counting method of claim 1, further comprising:
acquiring the state of the wearable device;
and when the wearable device is detected to be switched to a worn state, executing the step of starting the step counting function of the wearable device.
9. A wearable device, characterized in that the wearable device comprises: memory, a processor and a wearable device pedometer program stored on the memory and operable on the processor, which when executed by the processor implements the steps of the wearable device pedometer method of any of claims 1 to 8.
10. A computer storage medium, characterized in that the computer storage medium has stored thereon a wearable device's pedometer program, which when executed by a processor implements the steps of the wearable device's pedometer method according to any of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011334313.2A CN112486258A (en) | 2020-11-24 | 2020-11-24 | Wearable device, step counting method thereof and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011334313.2A CN112486258A (en) | 2020-11-24 | 2020-11-24 | Wearable device, step counting method thereof and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112486258A true CN112486258A (en) | 2021-03-12 |
Family
ID=74934169
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011334313.2A Pending CN112486258A (en) | 2020-11-24 | 2020-11-24 | Wearable device, step counting method thereof and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112486258A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113220073A (en) * | 2021-05-06 | 2021-08-06 | 恒玄科技(上海)股份有限公司 | Control method and device and wearable device |
CN113884101A (en) * | 2021-09-29 | 2022-01-04 | 歌尔科技有限公司 | Step counting method of wearable device, wearable device and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2397820A1 (en) * | 2010-06-18 | 2011-12-21 | Samsung Electronics Co., Ltd. | Apparatus and method for saving power in portable terminal |
US20140052010A1 (en) * | 2012-08-17 | 2014-02-20 | Fujitsu Limited | Exercise determination method, and electronic device |
CN105910620A (en) * | 2016-04-12 | 2016-08-31 | 广东欧珀移动通信有限公司 | Step counting data processing method and apparatus thereof |
CN106264541A (en) * | 2015-05-12 | 2017-01-04 | 腾讯科技(深圳)有限公司 | Motion sensor control method, device and mobile terminal |
CN109141465A (en) * | 2018-07-19 | 2019-01-04 | 歌尔科技有限公司 | A kind of step-recording method, wearable device and computer readable storage medium |
-
2020
- 2020-11-24 CN CN202011334313.2A patent/CN112486258A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2397820A1 (en) * | 2010-06-18 | 2011-12-21 | Samsung Electronics Co., Ltd. | Apparatus and method for saving power in portable terminal |
US20140052010A1 (en) * | 2012-08-17 | 2014-02-20 | Fujitsu Limited | Exercise determination method, and electronic device |
CN106264541A (en) * | 2015-05-12 | 2017-01-04 | 腾讯科技(深圳)有限公司 | Motion sensor control method, device and mobile terminal |
CN105910620A (en) * | 2016-04-12 | 2016-08-31 | 广东欧珀移动通信有限公司 | Step counting data processing method and apparatus thereof |
CN109141465A (en) * | 2018-07-19 | 2019-01-04 | 歌尔科技有限公司 | A kind of step-recording method, wearable device and computer readable storage medium |
Non-Patent Citations (1)
Title |
---|
刘吉林: ""基于运动传感器的手腕计步器设计与实现"", 《中国优秀博硕士学位论文全文数据库(硕士)工程科技Ⅱ辑》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113220073A (en) * | 2021-05-06 | 2021-08-06 | 恒玄科技(上海)股份有限公司 | Control method and device and wearable device |
CN113884101A (en) * | 2021-09-29 | 2022-01-04 | 歌尔科技有限公司 | Step counting method of wearable device, wearable device and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20130332108A1 (en) | Embedded hardware state machine for context detection integrated with a sensor chip | |
Mladenov et al. | A step counter service for Java-enabled devices using a built-in accelerometer | |
EP2347269B1 (en) | Method and system for waking up a device due to motion | |
US20090240462A1 (en) | System and Method for Capturing an Event in MEMS Inertial Sensors | |
US9135802B2 (en) | Hardware attitude detection implementation of mobile devices with MEMS motion sensors | |
CN107977074B (en) | Method and apparatus for context awareness for mobile or wearable device users | |
KR101531449B1 (en) | Methods and apparatuses for controlling invocation of a sensor | |
CN106441350A (en) | Step counting method and terminal | |
CN112486258A (en) | Wearable device, step counting method thereof and computer storage medium | |
KR20110139143A (en) | Pedometer | |
EP2645064A1 (en) | System and method for adjusting step detection based on motion information | |
WO2009062176A2 (en) | Activating applications based on accelerometer data | |
US8750897B2 (en) | Methods and apparatuses for use in determining a motion state of a mobile device | |
EP2691918A1 (en) | Systems, methods, and apparatuses for classifying user activity using combining of likelihood function values in a mobile device | |
EP2692156A1 (en) | Methods, devices, and apparatuses for activity classification using temporal scaling of time-referenced features | |
JP2015085030A (en) | Training support device and system, form analysis device and method, and program | |
CN102981612A (en) | Orientation detection method and portable device | |
JP5768583B2 (en) | Electronic device and exercise state determination method | |
CN110455284A (en) | A kind of pedestrian movement patterns' recognition methods and device based on MEMS-IMU | |
JP2017192563A (en) | Activity meter and exercise amount calculation device | |
CN112902988A (en) | Parameter calibration method, device, terminal and storage medium | |
CN104238728B (en) | state judging method and device | |
JP5565736B2 (en) | COMPUTER DEVICE, COMPUTER DEVICE CONTROL METHOD, CONTROL PROGRAM, AND RECORDING MEDIUM | |
JP2012233731A (en) | Method for estimating stride length and device for estimating stride length | |
EP3489802B1 (en) | Information processing apparatus, information processing method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210312 |
|
RJ01 | Rejection of invention patent application after publication |