CN111829550A - Movement distance determination method, device and equipment - Google Patents

Movement distance determination method, device and equipment Download PDF

Info

Publication number
CN111829550A
CN111829550A CN201910298834.8A CN201910298834A CN111829550A CN 111829550 A CN111829550 A CN 111829550A CN 201910298834 A CN201910298834 A CN 201910298834A CN 111829550 A CN111829550 A CN 111829550A
Authority
CN
China
Prior art keywords
historical
motion
type
time period
movement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910298834.8A
Other languages
Chinese (zh)
Other versions
CN111829550B (en
Inventor
张艳凤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201910298834.8A priority Critical patent/CN111829550B/en
Publication of CN111829550A publication Critical patent/CN111829550A/en
Application granted granted Critical
Publication of CN111829550B publication Critical patent/CN111829550B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C22/00Measuring distance traversed on the ground by vehicles, persons, animals or other moving solid bodies, e.g. using odometers, using pedometers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C22/00Measuring distance traversed on the ground by vehicles, persons, animals or other moving solid bodies, e.g. using odometers, using pedometers
    • G01C22/006Pedometers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a method, a device and equipment for determining a movement distance, which are applied to electronic equipment, wherein the method comprises the following steps: receiving a motion parameter reported by a sensor, wherein the motion parameter comprises a motion type and a step number corresponding to the motion type; calculating the movement distance in the preset time period according to the movement type in the preset time period and the step number and step length corresponding to the movement type; the step length corresponding to the motion type is calculated according to the positioning data of the electronic equipment in the historical time period and the step number corresponding to the motion type reported by the sensor. The accuracy of determining the movement distance is improved.

Description

Movement distance determination method, device and equipment
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method, a device and equipment for determining a movement distance.
Background
Currently, many electronic devices (e.g., mobile phones, tablet computers, etc.) may count the motion of a user, for example, the number of steps and distance traveled by the user in a day may be counted.
In the practical application process, the electronic device usually counts the number of walking steps of the user, estimates the step length of each step of the user, and multiplies the number of walking steps by the step length to obtain the walking distance of the user. The step size can be generally calculated according to a step size calculation formula, for example, the calculation formula is: the step length is equal to the height multiplied by 0.45, and if the electronic equipment cannot obtain the height of the user, the height of the user is estimated to be the preset height. However, in the above process, the step length of the user is different according to the habit of the user, and therefore, the accuracy of the step length determined by the above method is low, and the accuracy of determining the walking distance is low.
Disclosure of Invention
The embodiment of the invention provides a method, a device and equipment for determining a movement distance, which improve the accuracy of determining the movement distance.
In a first aspect, an embodiment of the present invention provides a method for determining a movement distance, which is applied to an electronic device, and the method includes:
receiving a motion parameter reported by a sensor, wherein the motion parameter comprises a motion type and a step number corresponding to the motion type;
calculating a movement distance in a preset time period according to a movement type in the preset time period and the step number and step length corresponding to the movement type;
the step length corresponding to the motion type is calculated according to the positioning data of the electronic equipment in the historical time period and the step number corresponding to the motion type reported by the sensor.
In a possible implementation manner, the step size corresponding to the motion type is calculated according to the following steps:
determining the historical period, wherein the type of the motion of the user in the historical period is the type of the motion;
acquiring positioning data in the historical time period and historical step number in the historical time period;
and determining the step length corresponding to the motion type according to the positioning data and the historical step number.
In a possible implementation, the determining, according to the positioning data and the historical step number, a step size corresponding to the motion type includes:
determining historical movement distance of the user in the historical time period according to the positioning data;
and determining the step length corresponding to the motion type according to the historical motion distance and the historical step number.
In one possible embodiment, the positioning data comprises position information for a plurality of positions; the determining the historical movement distance of the user in the historical period according to the positioning data comprises:
determining the distance between every two adjacent positions according to the position information;
and determining the historical movement distance according to the distance between every two adjacent positions.
In one possible implementation, the signal strength of the electronic device in the historical period is greater than a preset strength.
In a possible implementation manner, calculating a movement distance in a preset time period according to a movement type in the preset time period and a step number and a step length corresponding to the movement type includes:
determining the distance corresponding to the motion type according to the step number and the step length corresponding to the motion type;
and calculating the movement distance in the preset time period according to the movement distance corresponding to the movement type.
In a possible implementation manner, the positioning function of the electronic device in the preset time period is in an off state.
In a second aspect, an embodiment of the present application provides a moving distance determining apparatus applied to an electronic device, the apparatus including a receiving module and a calculating module, wherein,
the receiving module is used for receiving the motion parameters reported by the sensor, wherein the motion parameters comprise a motion type and a step number corresponding to the motion type;
the calculation module is used for calculating the movement distance in the preset time period according to the movement type in the preset time period and the step number and the step length corresponding to the movement type;
the step length corresponding to the motion type is calculated according to the positioning data of the electronic equipment in the historical time period and the step number corresponding to the motion type reported by the sensor.
In a possible implementation, the apparatus further includes a determining module configured to:
determining the historical period, wherein the type of the motion of the user in the historical period is the type of the motion;
acquiring positioning data in the historical time period and historical step number in the historical time period;
and determining the step length corresponding to the motion type according to the positioning data and the historical step number.
In a possible implementation, the determining module is specifically configured to:
determining historical movement distance of the user in the historical time period according to the positioning data;
and determining the step length corresponding to the motion type according to the historical motion distance and the historical step number.
In a possible implementation, the determining module is specifically configured to:
determining the distance between every two adjacent positions according to the position information;
and determining the historical movement distance according to the distance between every two adjacent positions.
In one possible implementation, the signal strength of the electronic device in the historical period is greater than a preset strength.
In a possible implementation, the calculation module is specifically configured to:
determining the distance corresponding to the motion type according to the step number and the step length corresponding to the motion type;
and calculating the movement distance in the preset time period according to the movement distance corresponding to the movement type.
In a possible implementation manner, the positioning function of the electronic device in the preset time period is in an off state.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor coupled with a memory;
the memory is used for storing a computer program;
the processor is configured to execute the computer program stored in the memory to enable the terminal device to perform the method of any of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a readable storage medium, which includes a program or instructions, and when the program or instructions are run on a computer, the method according to any one of the first aspect is performed.
According to the movement distance determining method, the movement distance determining device and the movement distance determining equipment provided by the embodiment of the invention, when the movement distance of a user in a preset time period needs to be determined, the movement parameters reported by the sensor are received, the movement parameters comprise a movement type and a step number corresponding to the movement type, and the movement distance in the preset time period is calculated according to the movement type in the preset time period, the step number corresponding to the movement type and the step length; the step length corresponding to the motion type is calculated according to the positioning data of the electronic equipment in the historical time period and the step number corresponding to the motion type reported by the sensor. In the process, the sensor can accurately determine the motion type of the user and the number of steps corresponding to the motion type. The movement distance of the user in the historical time period can be accurately determined and obtained according to the positioning data of the electronic equipment, and the number of steps corresponding to the movement type in the historical time period reported by the sensor is also accurate, so that the electronic equipment can accurately determine and obtain the step length corresponding to the movement type of the user, and therefore the movement distance of the user can be accurately determined and obtained through the method.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of an architecture of a method for determining a movement distance according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for determining a movement distance according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for determining a step size according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of another method for determining a step size according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a movement distance determining apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another movement distance determining apparatus according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic structural diagram of a movement distance determining method according to an embodiment of the present invention. Referring to fig. 1, a sensor is disposed in the electronic device, and during the use of the electronic device by a user, the sensor may acquire a motion type of the user and a number of steps corresponding to each motion type, for example, the motion type may include walking, running, and the like. The electronic device further stores actual motion data (which may also be referred to as historical motion data) of the user in a historical period, for example, the historical motion data may include Positioning data in the historical period and a number of steps corresponding to a preset motion type in the historical period, the electronic device may determine a step length corresponding to each motion type according to the historical motion data of the user, and the Positioning data may be Global Positioning System (GPS) Positioning data. The electronic equipment can also determine the movement distance of the user according to the movement types, the step numbers and the step lengths corresponding to the movement types acquired by the sensors. The electronic device can display the number of steps acquired by the sensor and determine the obtained movement distance.
In the process, the sensor can accurately determine the motion type of the user and the number of steps corresponding to the motion type. The movement distance of the user in the historical time period can be accurately determined and obtained according to the positioning data of the electronic equipment, and the number of steps corresponding to the movement type in the historical time period reported by the sensor is also accurate, so that the electronic equipment can accurately determine and obtain the step length corresponding to the movement type of the user, and therefore the movement distance of the user can be accurately determined and obtained through the method.
The technical means shown in the present application will be described in detail below with reference to specific examples. It should be noted that the following embodiments may be combined with each other, and the description of the same or similar contents in different embodiments is not repeated.
Fig. 2 is a schematic flow chart of a movement distance determining method according to an embodiment of the present invention. Referring to fig. 2, the method may include:
s201, receiving motion parameters reported by a sensor, wherein the motion parameters comprise a motion type and a step number corresponding to the motion type.
The execution main body of the embodiment of the invention can be electronic equipment, and can also be a movement distance determination device arranged in the electronic equipment. Alternatively, the movement distance determining means may be implemented by software, or may be implemented by a combination of software and hardware.
Optionally, the electronic device may be a mobile phone, a tablet computer, a wearable device, or the like.
In the process of the movement of the user, the user carries the electronic equipment, so that the electronic equipment can determine the movement distance, the step number and the like of the user.
Optionally, the motion type included in the motion parameter may be one or more.
Alternatively, the type of exercise may include walking, running, or the like.
Alternatively, the motion parameters may be acquired by an acceleration sensor and a gyroscope installed in the electronic device.
For example, when the electronic device is an Android system, the system sensor service may be obtained through the following function:
SensorManager=Context.getSystemService(Context.SENSOR_SERVICE)
a sensor for monitoring the number of steps and a sensor for monitoring the type of motion may also be registered, and accordingly, the number of steps may be obtained according to the following function:
Sensor1=SensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER)。
the motion type may be obtained by the following function:
Sensor2=SensorManager.getDefaultSensor(Sensor.SENSOR_TYPE_MAC,true)。
for example, the motion parameters that may be obtained within the preset time period may include: walking: 1000 steps, running: and (600).
S202, calculating a movement distance according to the movement type in the preset time period and the step number and the step length corresponding to the movement type.
The step length corresponding to the motion type is calculated according to the positioning data of the electronic equipment in the historical time period and the step number corresponding to the motion type reported by the sensor.
Optionally, the electronic device may obtain the positioning data through GPS positioning, or may obtain the positioning data through a cellular network or a wireless network.
Alternatively, the preset time period may be a time period from the preset time to the current time. For example, the preset time may be the zero point of the day, the zero point of the month, or the like. The preset time can be set according to actual needs.
Optionally, the positioning function of the electronic device in the preset time period is in an off state. In this way, power consumption of the electronic device may be saved.
Optionally, the positioning function of the electronic device in the preset time period may also be in an on state.
Optionally, the electronic device may determine the step length corresponding to each motion type according to actual motion data (positioning data of the electronic device and the number of steps corresponding to the motion type reported by the sensor) of the user in the historical period, and store the step length corresponding to each motion type in the preset storage area. When the step length corresponding to the motion type needs to be used, the step length can be directly obtained in the preset storage area, and as the motion step length of the same user is usually unchanged or the change of the motion step length is smaller than the preset threshold value, the efficiency of obtaining the step length can be improved by obtaining the step length corresponding to the motion type in the preset storage area. For example, the electronic device may determine whether a step length corresponding to the motion type exists in a preset storage area, if so, obtain the step length corresponding to the motion type in the preset storage area, and if not, determine the step length corresponding to the motion type according to actual motion data of the user in a historical period.
In order to improve the accuracy of the acquired step size corresponding to each motion type, the step size corresponding to each motion type may be updated, that is, the step size corresponding to each motion type may be updated according to the actual motion data of the user in the recent historical period.
It should be noted that, in the embodiment shown in fig. 3, a process of determining a step size corresponding to a motion type according to actual motion data of a user in a historical time period is described, and details are not repeated here.
Optionally, in the preset time period, the motion type of the user is one or more, and correspondingly, the motion distance corresponding to each motion type may be determined according to the step number and the step length corresponding to each motion type, and the motion distance in the preset time period may be determined according to the motion distance corresponding to each motion type.
For example, if the number of steps corresponding to the step row of the user in the preset time period is 1000 steps and the step length is 0.8 m, and the number of steps corresponding to the running is 2000 steps and the step length is 0.7 m, the moving distance corresponding to the walking is 1000 × 0.8-800 m, and the moving distance corresponding to the running is 2000 × 0.7-1400 m, and the moving distance in the preset time period is 800+ 1400-2200 m.
According to the movement distance determining method provided by the embodiment of the invention, when the movement distance of a user in a preset time period needs to be determined, the movement parameters reported by a sensor are received, the movement parameters comprise a movement type and a step number corresponding to the movement type, and the movement distance in the preset time period is calculated according to the movement type in the preset time period, the step number corresponding to the movement type and a step length; the step length corresponding to the motion type is calculated according to the positioning data of the electronic equipment in the historical time period and the step number corresponding to the motion type reported by the sensor. In the process, the sensor can accurately determine the motion type of the user and the number of steps corresponding to the motion type. The movement distance of the user in the historical time period can be accurately determined and obtained according to the positioning data of the electronic equipment, and the number of steps corresponding to the movement type in the historical time period reported by the sensor is also accurate, so that the electronic equipment can accurately determine and obtain the step length corresponding to the movement type of the user, and therefore the movement distance of the user can be accurately determined and obtained through the method.
On the basis of any of the above embodiments, a description is given below of a process for determining a step size corresponding to a motion type, specifically, please refer to the embodiment shown in fig. 3.
Fig. 3 is a flowchart illustrating a method for determining a step size according to an embodiment of the present invention. Referring to fig. 3, the method may include:
s301, determining a history time period, wherein the motion type of the user in the history time period is the motion type.
The history period is any period before the current time, wherein the motion type of the user in the history period is a single motion type, and the single motion type is the motion type, that is, the user only performs the motion of the motion type in the history period.
Optionally, the signal strength of the electronic device in the history period is greater than the preset strength. Therefore, the electronic equipment can acquire the positioning data in the historical time period with higher accuracy. For example, when the positioning data is GPS positioning data, the signal strength is GPS signal strength.
Alternatively, the historical period may be determined by a possible implementation as follows: the method comprises the steps of obtaining signal intensity of each moment in a historical period and a motion type corresponding to each moment, and if the signal intensity is greater than preset intensity in a continuous period and the motion type only comprises the motion type, determining the continuous period as the historical period. The motion type corresponding to each moment can be acquired through the sensor.
Optionally, the history period may also be determined by the method shown in the embodiment of fig. 4, which is not described herein again.
S302, acquiring positioning data in the historical time period and the historical step number in the historical time period.
Optionally, the electronic device may start the positioning function in real time, so that the electronic device may collect the positioning data in real time. Alternatively, the positioning function may be turned on under the trigger of the user (for example, the user inputs a preset instruction in the electronic device). Alternatively, the positioning function may be turned on after detecting the user motion.
Alternatively, the positioning data may include position information of a plurality of positions, and the position information of one position may include longitude and latitude of the position. The positioning data may be acquired periodically, e.g., every 3 seconds.
Optionally, the historical step number in the historical period is acquired by a sensor of the electronic device, and the process of acquiring the historical step number may refer to the execution process of S201, which is not described herein again.
And S303, determining the step length corresponding to the motion type according to the positioning data and the historical step number.
Alternatively, the step sizes may be different for different motion types. For example, a step size corresponding to a determined run is 0.6 meters and a step size corresponding to a determined walk is 0.7 meters.
Alternatively, the step size corresponding to the motion type may be determined by the following feasible implementation manners: and determining the historical movement distance of the user in the historical time period according to the positioning data, and determining the step length corresponding to the movement type according to the historical movement distance and the historical step number.
For example, the ratio of the historical movement distance to the historical step number may be determined as the step size corresponding to the movement type.
Optionally, the positioning data includes position information of a plurality of positions; accordingly, the historical movement distance of the user in the historical period can be determined according to the positioning data through the following feasible implementation modes: and determining the distance between every two adjacent positions according to the plurality of position information, and determining the historical movement distance according to the distance between every two adjacent positions.
The two adjacent positions refer to positions corresponding to two pieces of position information acquired at two adjacent moments.
For example, assuming that position information 0 of position 0(point0) is acquired at time 0, position information 1 of position 1(point1) is acquired at time 1, and position information 2 of position 2(point2) is acquired at time 2, point0 and point1 are two adjacent positions, and point1 and point2 are two adjacent positions.
For example, assuming that the acquisition obtains the position information of N positions (point0, point1, … …, point N-2, point N-1), the historical movement distance is as follows:
S=Distance(point1,point0)+Distance(point2,point1)+...+Distance(pointN-2,pointN-1)。
wherein Distance (point1, point0) ═ R × arccos (c) × Pi/180. R is the average radius of the earth, R is 6371.004km, and Pi is 3.1415.
C is the straight-line distance between point0 and point1, and assuming that the longitude and latitude of point0 are (Lat0, Lon0) and the precision and latitude of point1 are (Lat1, Lon1), the straight-line distance C between point0 and point1 is:
C=sin(Lat0*Pi/180)*sin(Lat1*Pi/180)+cos(Lat0*Pi/180)*cos(Lat1*Pi/180)*cos((Lon0-Lon1)*Pi/180)。
it should be noted that the determination methods of Distance (point2, point1), Distance (point3, point2), … …, and Distance (point n-2, point n-1) are similar to the determination method of Distance (point1, point0), and are not described herein again.
Optionally, in order to improve the accuracy of determining the step size corresponding to the exercise type, a plurality of historical time periods may be determined, and the step size corresponding to the exercise type may be determined according to the positioning data and the historical number of steps in the plurality of historical time periods. For example, the step size corresponding to the motion type in each history period may be acquired, and the average value of the step sizes corresponding to the motion types in each history period may be determined as the step size corresponding to the motion type.
In the embodiment shown in fig. 3, the signal intensity of the electronic device in the historical period is greater than the preset intensity, so that the electronic device can acquire accurate positioning data, and further can accurately determine the historical movement distance of the user in the historical period.
On the basis of the embodiment shown in fig. 3, the following describes a process for determining a step size corresponding to a motion type by the embodiment shown in fig. 4.
Fig. 4 is a flowchart illustrating another method for determining a step size according to an embodiment of the present invention. Referring to fig. 4, the method may include:
s401, obtaining the signal intensity of the electronic equipment.
Alternatively, the signal strength of the electronic device may be acquired when the user is detected to start moving or the user changes the type of movement. The user changing the motion type means switching from a motion of one motion type to a motion of another motion type.
For example, a pace number of movement listener may be registered. The motion step number monitor can monitor whether the step number reported by the sensor changes, and when the step number reported by the sensor changes, the motion step number monitor determines that the user starts to move.
For example, a motion type listener may be registered, and the motion type listener may monitor whether the motion type reported by the sensor changes, and determine that the user changes the motion type when it is monitored that the motion type reported by the sensor changes.
S402, judging whether the signal intensity of the electronic equipment is greater than the preset intensity.
If yes, go to S403.
If not, S401 is executed.
And S403, acquiring the motion type and the number of motion starting steps.
The step number of the starting exercise refers to the step number counted when the user is detected to start the exercise.
Wherein, the obtained motion type is assumed to be the motion type.
S404, acquiring positioning data.
Alternatively, the positioning data may be acquired periodically, for example, every 2 seconds, or every 3 seconds.
Optionally, after the positioning data is obtained, the obtained positioning data may be stored in the positioning data set.
S405, judging whether the signal intensity of the electronic equipment is smaller than the preset intensity or not, or whether the motion type is changed or not.
If yes, go to step S406.
If not, go to S404.
Optionally, a motion type listener may be registered, and the motion type listener may listen whether the motion type of the user has changed.
Optionally, it may also be determined whether to switch from the motion state to the non-motion state, if so, perform S406, and if not, perform S404.
And S406, acquiring the number of the motion steps of the ending.
The step number of ending the movement is counted when the signal intensity of the electronic equipment is determined to be smaller than the preset intensity or the movement type is changed.
Wherein a period between the time when the number of movement steps is acquired to start and the time when the number of movement steps is acquired to end is a history period.
And S407, acquiring historical step numbers according to the starting motion step number and the ending motion step number.
The historical step number is the difference between the end exercise step number and the start exercise step number.
And S408, acquiring historical movement distance according to the positioning data.
It should be noted that the execution process of S408 may refer to the execution process of S303, and is not described herein again.
And S409, determining the step length corresponding to the motion type according to the historical step number and the historical motion distance.
Alternatively, the ratio of the historical movement distance to the historical step number may be determined as the step size corresponding to the movement type.
In the embodiment shown in fig. 4, the electronic device determines the historical period according to the signal intensity, the motion type and the motion step number of the electronic device, so that the signal intensity of the electronic device in the historical period is greater than the preset intensity, and the motion type of the user in the historical period is single, and further the historical motion distance of the user in the historical period can be accurately determined.
On the basis of any one of the above embodiments, optionally, when the electronic device starts the positioning function, the movement distance of the user can be determined according to the positioning data and the data (the movement type and the step length) uploaded by the sensor, and the step length corresponding to each movement type can be determined and stored according to the positioning data.
When the electronic equipment does not start the positioning function, the movement distance of the user can be determined according to the determined step length corresponding to each movement type and the data (movement type and step length) uploaded by the sensor.
Fig. 5 is a schematic structural diagram of a movement distance determining apparatus according to an embodiment of the present invention. The movement distance determination apparatus 10 can be applied to an electronic device, and referring to fig. 5, the movement distance determination apparatus 10 includes a receiving module 11 and a calculating module 12, wherein,
the receiving module 11 is configured to receive a motion parameter reported by a sensor, where the motion parameter includes a motion type and a number of steps corresponding to the motion type;
the calculating module 12 is configured to calculate a movement distance in a preset time period according to a movement type in the preset time period and a step number and a step length corresponding to the movement type;
the step length corresponding to the motion type is calculated according to the positioning data of the electronic equipment in the historical time period and the step number corresponding to the motion type reported by the sensor.
The movement distance determining apparatus provided in the embodiment of the present invention may implement the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
Fig. 6 is a schematic structural diagram of another movement distance determining apparatus according to an embodiment of the present invention. Referring to fig. 6, the movement distance determining apparatus 10 may further include a determining module 13, wherein the determining module 13 is configured to:
determining the historical period, wherein the type of the motion of the user in the historical period is the type of the motion;
acquiring positioning data in the historical time period and historical step number in the historical time period;
and determining the step length corresponding to the motion type according to the positioning data and the historical step number.
In a possible implementation, the determining module 13 is specifically configured to:
determining historical movement distance of the user in the historical time period according to the positioning data;
and determining the step length corresponding to the motion type according to the historical motion distance and the historical step number.
In a possible implementation, the determining module 13 is specifically configured to:
determining the distance between every two adjacent positions according to the position information;
and determining the historical movement distance according to the distance between every two adjacent positions.
In one possible implementation, the signal strength of the electronic device in the historical period is greater than a preset strength.
In a possible implementation, the calculation module 12 is specifically configured to:
determining the distance corresponding to the motion type according to the step number and the step length corresponding to the motion type;
and calculating the movement distance in the preset time period according to the movement distance corresponding to the movement type.
In a possible implementation manner, the positioning function of the electronic device in the preset time period is in an off state.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention, and as shown in fig. 7, the electronic device 20 includes: at least one processor 21 and a memory 22. The processor 21 and the memory 22 are connected by a bus 23.
Optionally, the electronic device 20 may further comprise communication means, which may comprise a receiver and/or a transmitter.
In a specific implementation, the at least one processor 21 executes computer-executable instructions stored by the memory 22 to cause the at least one processor 21 to perform the movement distance determination method as described above.
For a specific implementation process of the processor 21, reference may be made to the above method embodiments, which implement similar principles and technical effects, and this embodiment is not described herein again.
In the embodiment shown in fig. 7, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the method for determining the movement distance as described above is implemented.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
The division of the units is only a logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. 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 and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention. Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A movement distance determination method is applied to an electronic device, and comprises the following steps:
receiving a motion parameter reported by a sensor, wherein the motion parameter comprises a motion type and a step number corresponding to the motion type;
calculating a movement distance in a preset time period according to a movement type in the preset time period and the step number and step length corresponding to the movement type;
the step length corresponding to the motion type is calculated according to the positioning data of the electronic equipment in the historical time period and the step number corresponding to the motion type reported by the sensor.
2. The method of claim 1, wherein the step size corresponding to the motion type is calculated according to the following steps:
determining the historical time period, wherein the motion type of the user in the historical time period is the motion type;
acquiring positioning data in the historical time period and historical step number in the historical time period;
and determining the step length corresponding to the motion type according to the positioning data and the historical step number.
3. The method of claim 2, wherein determining the step size corresponding to the type of exercise according to the positioning data and the historical step number comprises:
determining historical movement distance of the user in the historical time period according to the positioning data;
and determining the step length corresponding to the motion type according to the historical motion distance and the historical step number.
4. The method of claim 3, wherein the positioning data comprises position information for a plurality of positions; the determining the historical movement distance of the user in the historical period according to the positioning data comprises:
determining the distance between every two adjacent positions according to the position information;
and determining the historical movement distance according to the distance between every two adjacent positions.
5. The method of any of claims 1-4, wherein the signal strength of the electronic device during the historical period is greater than a preset strength.
6. The method according to any one of claims 1 to 4, wherein calculating the movement distance in the preset time period according to the movement type in the preset time period and the corresponding steps and step length of the movement type comprises:
determining the distance corresponding to the motion type according to the step number and the step length corresponding to the motion type;
and calculating the movement distance in the preset time period according to the movement distance corresponding to the movement type.
7. The method according to any one of claims 1-4, wherein the positioning function of the electronic device during the preset time period is in an off state.
8. A movement distance determining device is applied to electronic equipment and comprises a receiving module and a calculating module, wherein,
the receiving module is used for receiving the motion parameters reported by the sensor, wherein the motion parameters comprise a motion type and a step number corresponding to the motion type;
the calculation module is used for calculating the movement distance in the preset time period according to the movement type in the preset time period and the step number and the step length corresponding to the movement type;
the step length corresponding to the motion type is calculated according to the positioning data of the electronic equipment in the historical time period and the step number corresponding to the motion type reported by the sensor.
9. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of any one of claims 1-7.
10. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, implement the method of any one of claims 1-7.
CN201910298834.8A 2019-04-15 2019-04-15 Motion distance determining method, device and equipment Active CN111829550B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910298834.8A CN111829550B (en) 2019-04-15 2019-04-15 Motion distance determining method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910298834.8A CN111829550B (en) 2019-04-15 2019-04-15 Motion distance determining method, device and equipment

Publications (2)

Publication Number Publication Date
CN111829550A true CN111829550A (en) 2020-10-27
CN111829550B CN111829550B (en) 2023-06-20

Family

ID=72914435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910298834.8A Active CN111829550B (en) 2019-04-15 2019-04-15 Motion distance determining method, device and equipment

Country Status (1)

Country Link
CN (1) CN111829550B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022156651A1 (en) * 2021-01-25 2022-07-28 维沃移动通信有限公司 Step length acquisition method and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150185044A1 (en) * 2013-12-31 2015-07-02 Inventec Appliances Corp. Step counting method and a pedometer based on a 3-axis accelerometer
CN105403228A (en) * 2015-12-18 2016-03-16 北京朗动科技有限公司 Determination method and device of movement distance
CN105718266A (en) * 2016-01-21 2016-06-29 上海与德科技有限公司 Software step counting method and module, as well as electronic equipment
CN107504979A (en) * 2017-07-31 2017-12-22 上海斐讯数据通信技术有限公司 Move distance computational methods and device and wearable device
CN108064019A (en) * 2017-12-29 2018-05-22 北京奇宝科技有限公司 A kind of intelligent locating method, device, server and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150185044A1 (en) * 2013-12-31 2015-07-02 Inventec Appliances Corp. Step counting method and a pedometer based on a 3-axis accelerometer
CN105403228A (en) * 2015-12-18 2016-03-16 北京朗动科技有限公司 Determination method and device of movement distance
CN105718266A (en) * 2016-01-21 2016-06-29 上海与德科技有限公司 Software step counting method and module, as well as electronic equipment
CN107504979A (en) * 2017-07-31 2017-12-22 上海斐讯数据通信技术有限公司 Move distance computational methods and device and wearable device
CN108064019A (en) * 2017-12-29 2018-05-22 北京奇宝科技有限公司 A kind of intelligent locating method, device, server and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022156651A1 (en) * 2021-01-25 2022-07-28 维沃移动通信有限公司 Step length acquisition method and electronic device

Also Published As

Publication number Publication date
CN111829550B (en) 2023-06-20

Similar Documents

Publication Publication Date Title
CN109883423B (en) Positioning method, system, equipment and storage medium based on Kalman filtering
CN108072886B (en) Positioning method and device and electronic equipment
CN107728790B (en) Screen display method and device, mobile terminal and storage medium
CN109714821B (en) Method and device for selecting wireless positioning and ranging base station
WO2017141484A1 (en) Congestion estimation method, number of people estimation method, congestion estimation program, number of people estimation program and number of people estimation system
CN105571609B (en) A kind of kinematic parameter processing method and mobile terminal
CN104335064A (en) Improved trilateration processing
CN109959379A (en) Localization method and electronic equipment
EP2527873A1 (en) Mobile terminal and location positioning method
US20150317230A1 (en) Adjustment of Interrupt Timestamps of Signals from a Sensor Based on an Estimated Sampling Rate of the Sensor
CN110881211A (en) Power saving method, device, storage medium and terminal
CN107132504B (en) Particle filter-based positioning and tracking device and method and electronic equipment
CN108668220B (en) Electronic device, position determination system, position determination method, and storage medium
CN109061611B (en) Proximity sensor calibration method and related device
JP4892041B2 (en) Positioning terminal and positioning method
CN111829550B (en) Motion distance determining method, device and equipment
CN108668219B (en) Electronic device, position determination system, position determination method, and storage medium
CN105157722B (en) Geographic location monitoring method and equipment
CN109341836B (en) Method and device for calibrating symmetrical platform
CN110023778B (en) Positioning method and device
CN111148216B (en) Electronic equipment positioning method and electronic equipment
EP3370074B1 (en) Method for detecting background noise of sensor, and device thereof
CN111751573B (en) Mobile terminal and moving direction determining method thereof
CN108159677B (en) Motion data statistical method, electronic device and computer readable storage medium
CN111105058A (en) Running route dynamic time estimation method and device and electronic equipment

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Applicant after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Applicant before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant