CN111829550B - Motion distance determining method, device and equipment - Google Patents

Motion distance determining method, device and equipment Download PDF

Info

Publication number
CN111829550B
CN111829550B CN201910298834.8A CN201910298834A CN111829550B CN 111829550 B CN111829550 B CN 111829550B CN 201910298834 A CN201910298834 A CN 201910298834A CN 111829550 B CN111829550 B CN 111829550B
Authority
CN
China
Prior art keywords
motion
period
type
historical
determining
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.)
Active
Application number
CN201910298834.8A
Other languages
Chinese (zh)
Other versions
CN111829550A (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)
  • Telephone Function (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (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 motion parameters reported by a sensor, wherein the motion parameters comprise 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 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 history period and the step number corresponding to the motion type reported by the sensor. The accuracy of determining the movement distance is improved.

Description

Motion distance determining 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 (such as mobile phones, tablet computers, etc.) can count the movement of a user, for example, the number of steps taken by the user in a day, the distance travelled, etc.
In the actual application process, the electronic device generally 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 may 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 acquire the height of the user, the height of the user is estimated to be the preset height. However, in the above process, the step size of the user is different according to the habit of the user, and thus the accuracy of determining the obtained step size by the above method is low, which in turn results in low accuracy of determining the obtained walking distance.
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 motion distance determining method, which is applied to an electronic device, and the method includes:
receiving motion parameters reported by a sensor, wherein the motion parameters comprise a motion type and a step number corresponding to the motion type;
calculating the movement distance in a preset period according to the movement type in the preset 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 history period and the step number corresponding to the motion type reported by the sensor.
In one possible implementation manner, the step length corresponding to the motion type is calculated according to the following steps:
determining the historical period, wherein the motion type of the user in the historical period is the motion type;
acquiring positioning data in the history period and the history step number in the history 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 manner, the determining the step size corresponding to the motion type according to the positioning data and the historical step number includes:
according to the positioning data, determining a historical movement distance of the user in the historical period;
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 of a plurality of positions; the determining, according to the positioning data, a historical movement distance of the user in the historical period includes:
determining a 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.
In one possible implementation, the signal strength of the electronic device during the history period is greater than a preset strength.
In one possible implementation manner, calculating the movement distance in the preset period according to the movement type in the preset period and the step number and the step length corresponding to the movement type includes:
determining a 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 period according to the movement distance corresponding to the movement type.
In one possible implementation, the positioning function of the electronic device is turned off during the preset period.
In a second aspect, embodiments of the present application provide a motion distance determining apparatus, applied to an electronic device, where the apparatus includes a receiving module and a calculating module, where,
the receiving module is used for receiving the motion parameters reported by the sensor, wherein the motion parameters comprise a motion type and the number of steps 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 history period and the step number corresponding to the motion type reported by the sensor.
In a possible embodiment, the apparatus further comprises a determining module for:
determining the historical period, wherein the motion type of the user in the historical period is the motion type;
acquiring positioning data in the history period and the history step number in the history period;
and determining the step length corresponding to the motion type according to the positioning data and the historical step number.
In one possible implementation manner, the determining module is specifically configured to:
according to the positioning data, determining a historical movement distance of the user in the historical period;
and determining the step length corresponding to the motion type according to the historical motion distance and the historical step number.
In one possible implementation manner, the determining module is specifically configured to:
determining a 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.
In one possible implementation, the signal strength of the electronic device during the history period is greater than a preset strength.
In one possible implementation, the computing module is specifically configured to:
determining a 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 period according to the movement distance corresponding to the movement type.
In one possible implementation, the positioning function of the electronic device is turned off during the preset period.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor coupled to the memory;
the memory is used for storing a computer program;
the processor is configured to execute a computer program stored in the memory, so that the terminal device performs the method according to any one of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a readable storage medium comprising a program or instructions which, when run on a computer, performs a method as in any one of the first aspects above.
According to the method, the device and the equipment for determining the movement distance, when the movement distance of the user in the preset time period is required to be determined, the movement parameters reported by the sensor are received, the movement parameters comprise the movement type and the 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 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 history period and the step number corresponding to the motion type reported by the sensor. In the process, the sensor can accurately determine and obtain the motion type of the user and the step number corresponding to the motion type. According to the positioning data of the electronic equipment, the movement distance of the user in the historical period can be accurately determined, and the number of steps corresponding to the movement type in the historical 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 of the prior art, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it will be obvious that the drawings in the following description are some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
Fig. 1 is a schematic diagram of a structure of a motion distance determining method 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 flowchart of a method for determining a step size according to an embodiment of the present invention;
FIG. 4 is a 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 motion distance determining device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another movement distance determining device 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
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a schematic diagram of a structure of a motion 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 a process of using the electronic device by a user, the sensor may acquire a movement type of the user and a number of steps corresponding to each movement type, for example, the movement type may include walking, running, and the like. The electronic device also stores actual motion data (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 the number of steps corresponding to a preset motion type in the historical period, the electronic device may determine and obtain 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 (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 length corresponding to each movement type acquired by the sensor. The electronic device may display the number of steps taken by the sensor and determine the resulting movement distance.
In the process, the sensor can accurately determine and obtain the motion type of the user and the step number corresponding to the motion type. According to the positioning data of the electronic equipment, the movement distance of the user in the historical period can be accurately determined, and the number of steps corresponding to the movement type in the historical 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 scheme shown in the application is described in detail through specific embodiments. It should be noted that the following embodiments may be combined with each other, and for the same or similar matters, the description will not be repeated in different embodiments.
Fig. 2 is a flow chart of a method for determining a movement distance 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 motion types and the steps corresponding to the motion types.
The execution body of the embodiment of the invention can be electronic equipment or a movement distance determining device arranged in the electronic equipment. Alternatively, the movement distance determining device may be implemented by software, or may be implemented by a combination of software and hardware.
Alternatively, 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 and obtain the movement distance, the step number and the like of the user.
Optionally, the motion parameters may include one or more types of motion.
Alternatively, the type of exercise may include walking, running, etc.
Alternatively, the motion parameters may be obtained 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 functions:
SensorManager=Context.getSystemService(Context.SENSOR_SERVICE)
the sensor for monitoring the number of steps and the sensor for monitoring the type of movement can also be registered, and correspondingly, the number of steps can be obtained according to the following function:
Sensor1=SensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER)。
the motion type can be obtained by the following function:
Sensor2=SensorManager.getDefaultSensor(Sensor.SENSOR_TYPE_MAC,true)。
for example, the motion parameters that may be obtained during the preset period may include: walking: 1000 steps, running: 600 steps.
S202, calculating the movement distance according to the movement type in a preset 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 history period and the step number corresponding to the motion type reported by the sensor.
Alternatively, the electronic device may obtain the positioning data through GPS positioning, or may obtain the positioning data through a manner of connecting to a cellular network or a wireless network.
Alternatively, the preset period may be a period from the preset time to the current time. For example, the preset time may be the zero point of the current day, the zero point of the current 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 period is in an off state. In this way, power consumption of the electronic device can be saved.
Optionally, the positioning function of the electronic device in the preset period may also be in an on state.
Optionally, the electronic device may determine a step size corresponding to each motion type according to actual motion data (positioning data of the electronic device and a step number corresponding to the motion type reported by the sensor) of the user in the history period, and store the step size corresponding to each motion type in a preset storage area. When the step length corresponding to the motion type is needed to be used, the step length can be directly acquired in the preset storage area, and as the motion step length is usually unchanged or the change of the motion step length is smaller than the preset threshold value for the same user, the step length corresponding to the motion type can be acquired in the preset storage area, so that the step length acquiring efficiency can be improved. For example, the electronic device may determine whether a step size corresponding to the motion type exists in the preset storage area, if yes, the step size corresponding to the motion type is obtained in the preset storage area, and if not, the step size corresponding to the motion type may be determined according to actual motion data of the user in the history period.
In order to improve the accuracy of the acquired step sizes corresponding to each motion type, the step sizes corresponding to each motion type may be updated, that is, the step sizes corresponding to each motion type may be updated according to actual motion data of the user in the latest history period.
In the embodiment shown in fig. 3, the process of determining the step corresponding to the motion type according to the actual motion data of the user in the history period is described, and will not be described herein.
Optionally, in the preset period, the motion types of the user are one or more, and accordingly, the motion distance corresponding to each motion type can be determined according to the step number and the step length corresponding to each motion type, and the motion distance in the preset period can be determined according to the motion distance corresponding to each motion type.
For example, assuming that the number of steps corresponding to the user's steps in the preset period is 1000 steps, the step length is 0.8 m, the number of steps corresponding to the user's running is 2000 steps, and the step length is 0.7 m, the movement distance corresponding to the user's walking is 1000 x 0.8=800 m, the movement distance corresponding to the user's running is 2000 x 0.7=1400 m, and the movement distance in the preset period is 800+1400=2200 m.
According to the motion distance determining method provided by the embodiment of the invention, when the motion distance of a user in a preset period is required to be determined, the motion parameters reported by the sensor are received, the motion parameters comprise the motion type and the number of steps corresponding to the motion type, and the motion distance in the preset period is calculated according to the motion type in the preset period and the number of steps and the step length corresponding to the motion type; the step length corresponding to the motion type is calculated according to the positioning data of the electronic equipment in the history period and the step number corresponding to the motion type reported by the sensor. In the process, the sensor can accurately determine and obtain the motion type of the user and the step number corresponding to the motion type. According to the positioning data of the electronic equipment, the movement distance of the user in the historical period can be accurately determined, and the number of steps corresponding to the movement type in the historical 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 one of the above embodiments, a process of determining a step size corresponding to a motion type will be described, specifically, refer to the embodiment shown in fig. 3.
Fig. 3 is a flowchart of 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 period, wherein the motion type of the user in the history period is the motion type.
The historical period is any period before the current moment, wherein the motion type of the user in the historical period is a single motion type, and the single motion type is the motion type, namely, the user only performs the motion of the motion type in the historical period.
Optionally, the signal intensity of the electronic device in the history period is greater than the preset intensity. In this way, the accuracy of the positioning data acquired by the electronic device in the history period can be higher. For example, when the positioning data is GPS positioning data, the signal strength is GPS signal strength.
Alternatively, the history period may be determined by the following possible implementation: and acquiring the signal intensity of each moment and the motion type corresponding to each moment in the historical period, and if the signal intensity is larger than the preset intensity in one continuous period and the motion type only comprises the motion type, determining the one continuous period as the historical period. Wherein, the motion types corresponding to each moment can be obtained through the sensor.
Alternatively, the history period may also be determined by the method shown in the embodiment of fig. 4, which is not described herein.
S302, acquiring positioning data in a history period and the history step number in the history 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 triggering of the user (e.g., the user inputs a preset instruction in the electronic device). Alternatively, the positioning function may be turned on after the user motion is detected.
Alternatively, the positioning data may include location information of a plurality of locations, and the location information of one location may include longitude and latitude of the location. The positioning data may be acquired periodically, e.g. one positioning data every 3 seconds.
Optionally, the history step number in the history period is acquired by a sensor of the electronic device, and the process of acquiring the history step number may refer to the execution process of S201, which is not described herein.
S303, determining the step length corresponding to the motion type according to the positioning data and the history step number.
Alternatively, the step sizes corresponding to different motion types may be different. For example, the step length corresponding to the running is determined to be 0.6 meter, and the step length corresponding to the walking is determined to be 0.7 meter.
Alternatively, the step size corresponding to the motion type may be determined by the following possible implementation: according to the positioning data, the historical movement distance of the user in the historical period is determined, and according to the historical movement distance and the historical step number, the step length corresponding to the movement type is determined.
For example, a ratio of the historical movement distance to the number of historical steps may be determined as the step size corresponding to the movement type.
Optionally, the positioning data comprises 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 possible 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 are positions corresponding to two pieces of position information acquired at two adjacent moments.
For example, assuming that position information 0 of position 0 (point 0) is acquired at time 0, position information 1 of position 1 (point 1) is acquired at time 1, and position information 2 of position 2 (point 2) is acquired at time 2, point0 and point1 are two adjacent positions, and point1 and point2 are two adjacent positions.
For example, assuming that position information of N positions (Point 0, point1, … …, point N-2, point N-1) is acquired, the historical movement distance is as follows:
S=Distance(point1,point0)+Distance(point2,point1)+...+Distance(pointN-2,pointN-1)。
wherein Distance (point 1, point 0) =r×arccoss (C) ×pi/180.R is the average radius of the earth, R is 6371.004km, pi= 3.1415.
C is the linear distance between point0 and point1, assuming that the longitude and latitude of point0 are (Lat 0, lon 0) and the precision and latitude of point1 are (Lat 1, lon 1), the linear 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 (point 2, point 1), distance (point 3, point 2), … …, and Distance (point n-2, point n-1) are similar to the determination method of Distance (point 1, point 0), and will not be described here again.
Alternatively, to improve accuracy in determining the step size corresponding to the motion type, a plurality of history periods may be determined, and the step size corresponding to the motion type may be determined according to positioning data and the number of history steps in the plurality of history periods. For example, the step sizes corresponding to the motion types in each history period may be acquired respectively, 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 history period is greater than the preset intensity, so that the electronic device can acquire accurate positioning data, further can accurately determine and obtain the history movement distance of the user in the history period, and can accurately determine and obtain the step length corresponding to the movement type according to the history movement distance and the history step number because the accuracy of the history step number output by the sensor is higher.
The process of determining the step size corresponding to the type of movement will be described below with the embodiment shown in fig. 4 on the basis of the embodiment shown in fig. 3.
Fig. 4 is a flowchart of another method for determining a step size according to an embodiment of the present invention. Referring to fig. 4, the method may include:
s401, acquiring the signal intensity of the electronic equipment.
Alternatively, the signal strength of the electronic device may be obtained upon detecting that the user starts moving or that the user changes the type of movement. The user changing the motion type refers to switching from one motion type of motion to another motion type of motion.
For example, a sports step number listener may be registered. The movement step number monitor can monitor whether the step number reported by the sensor changes, and when the step number reported by the sensor is monitored to change, the user is determined to start movement.
For example, a motion type monitor may be registered, and the motion type monitor may monitor whether the motion type reported by the sensor changes, and when it is monitored that the motion type reported by the sensor changes, determine that the user changes the motion type.
S402, judging whether the signal intensity of the electronic equipment is larger than a preset intensity.
If yes, S403 is executed.
If not, S401 is performed.
S403, acquiring the motion type and the number of starting motion steps.
The starting movement step number refers to the step number counted when the user is detected to start movement.
Wherein, it is assumed that the acquired motion type is the motion type.
S404, acquiring positioning data.
Alternatively, the positioning data may be acquired periodically, for example, every 2 seconds, or every 3 seconds.
Alternatively, after the positioning data is acquired, the acquired positioning data may be stored in the positioning data set.
S405, judging whether the signal intensity of the electronic equipment is smaller than preset intensity or whether the movement type is changed.
If yes, S406 is performed.
If not, S404 is performed.
Alternatively, a motion type listener may be registered, which may listen to whether the user's motion type has changed.
Optionally, it may also be determined whether to switch from the motion state to the non-motion state, if so, S406 is executed, and if not, S404 is executed.
S406, acquiring the number of the motion steps to be ended.
The step number of ending the movement refers to the step number counted when the signal intensity of the electronic device is smaller than the preset intensity or the movement type is changed.
Wherein a period between a time when the number of moving steps is acquired and a time when the number of moving steps is acquired is a history period.
S407, acquiring the historical step number according to the starting movement step number and the ending movement step number.
The historical number of steps is the difference between the number of steps of the ending movement and the number of steps of the starting movement.
S408, acquiring a 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, which is not described herein.
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 number of historical steps 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, the motion type of the user in the historical period is single, further, the historical motion distance of the user in the historical period can be accurately determined and obtained, and the accuracy of the historical step number output by the sensor is higher, so that the step length corresponding to the motion type can be accurately determined and obtained according to the historical motion distance and the historical step number.
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 may be determined according to the positioning data and the data uploaded by the sensor (the movement type and the step length), and meanwhile, the step length corresponding to each movement type may 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 uploaded by the sensor (the movement type and the step length), and the accuracy of the determined step length corresponding to each movement type is higher, and the accuracy of the data uploaded by the sensor is higher, so that the movement distance of the user can be accurately determined by the method.
Fig. 5 is a schematic structural diagram of a motion distance determining device according to an embodiment of the present invention. The movement distance determining device 10 may be applied to an electronic apparatus, please refer to fig. 5, the movement distance determining device 10 comprising 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 step number corresponding to the motion type;
the calculating module 12 is configured to calculate a movement distance in a preset period according to a movement type in the preset 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 history period and the step number corresponding to the motion type reported by the sensor.
The motion distance determining device provided by the embodiment of the invention can execute the technical scheme shown in the embodiment of the method, and the implementation principle and the beneficial effects are similar, and are not repeated here.
Fig. 6 is a schematic structural diagram of another movement distance determining device according to an embodiment of the present invention. Referring to fig. 6, the movement distance determining device 10 may further include a determining module 13, where the determining module 13 is configured to:
determining the historical period, wherein the motion type of the user in the historical period is the motion type;
acquiring positioning data in the history period and the history step number in the history period;
and determining the step length corresponding to the motion type according to the positioning data and the historical step number.
In a possible embodiment, the determining module 13 is specifically configured to:
according to the positioning data, determining a historical movement distance of the user in the historical period;
and determining the step length corresponding to the motion type according to the historical motion distance and the historical step number.
In a possible embodiment, the determining module 13 is specifically configured to:
determining a 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.
In one possible implementation, the signal strength of the electronic device during the history period is greater than a preset strength.
In one possible implementation, the computing module 12 is specifically configured to:
determining a 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 period according to the movement distance corresponding to the movement type.
In one possible implementation, the positioning function of the electronic device is turned off during the preset period.
Fig. 7 is a schematic hardware structure of an electronic device according to an embodiment of the present invention, as shown in fig. 7, the electronic device 20 includes: at least one processor 21 and a memory 22. Wherein the processor 21 and the memory 22 are connected by a bus 23.
Optionally, the electronic device 20 may also include a communication component, which may include a receiver and/or a transmitter.
In a specific implementation, at least one processor 21 executes computer-executable instructions stored in the memory 22, so that the at least one processor 21 performs the movement distance determining method as described above.
The specific implementation process of the processor 21 can be referred to the above method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein again.
In the embodiment shown in fig. 7, it should be understood that the processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. 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 for execution, or in a combination of hardware and software modules in a processor for execution.
The memory may comprise high speed RAM memory or may further comprise non-volatile storage NVM, such as at least one disk memory.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings 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 having stored therein computer-executable instructions that, when executed by a processor, implement the movement distance determination method as described above.
The computer readable storage medium described above 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 disk, or optical disk. A readable storage medium can be any available medium 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. In the alternative, the readable storage medium may be integral to the processor. The processor and the readable storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). The processor and the readable storage medium may reside as discrete components in a device.
The division of the units is merely a logic function division, and there may be another division manner when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in 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 this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform 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, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention. Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (8)

1. A method for determining a movement distance, the method comprising:
receiving motion parameters reported by a sensor, wherein the motion parameters comprise a motion type and a step number corresponding to the motion type;
calculating the movement distance in a preset period according to the movement type in the preset 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 history period and the step number corresponding to the motion type reported by the sensor, and the step length is stored in a preset storage area; the signal intensity of the electronic equipment in the history period is larger than the preset intensity;
the step length corresponding to the motion type is calculated according to the following steps:
determining the historical period, wherein the motion type of the user in the historical period is the motion type;
acquiring positioning data in the history period and the history step number in the history period;
and determining the step length corresponding to the motion type according to the positioning data and the historical step number.
2. The method of claim 1, wherein determining the step size corresponding to the motion type based on the positioning data and the historical step number comprises:
according to the positioning data, determining a historical movement distance of the user in the historical period;
and determining the step length corresponding to the motion type according to the historical motion distance and the historical step number.
3. The method of claim 2, wherein the positioning data comprises location information for a plurality of locations; the determining, according to the positioning data, a historical movement distance of the user in the historical period includes:
determining a 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.
4. A method according to any one of claims 1-3, wherein calculating the movement distance in a preset time period from the movement type in the preset time period and the number of steps and the step size corresponding to the movement type comprises:
determining a 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 period according to the movement distance corresponding to the movement type.
5. A method according to any of claims 1-3, characterized in that the positioning function of the electronic device during the preset period is off.
6. A motion distance determining device is characterized by being applied to electronic equipment, and comprises a receiving module and a calculating module,
the receiving module is used for receiving the motion parameters reported by the sensor, wherein the motion parameters comprise a motion type and the number of steps 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 history period and the step number corresponding to the motion type reported by the sensor, and the step length is stored in a preset storage area; the signal intensity of the electronic equipment in the history period is larger than the preset intensity;
the apparatus further comprises a determination module for:
determining the historical period, wherein the motion type of the user in the historical period is the motion type;
acquiring positioning data in the history period and the history step number in the history period;
and determining the step length corresponding to the motion type according to the positioning data and the historical step number.
7. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing computer-executable instructions stored in the memory causes the at least one processor to perform the method of any one of claims 1-5.
8. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor implement the method of any of claims 1-5.
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 CN111829550A (en) 2020-10-27
CN111829550B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112767434B (en) * 2021-01-25 2023-10-20 维沃移动通信有限公司 Step length acquisition method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103712632B (en) * 2013-12-31 2016-08-24 英华达(上海)科技有限公司 A kind of step-recording method based on 3 axle accelerometers and pedometer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN111829550A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN108072886B (en) Positioning method and device and electronic equipment
US8131465B2 (en) Motion detection for tracking
US20150087327A1 (en) Contextually Aware Mobile Device
CN109085619B (en) Positioning method and device of multimode GNSS system, storage medium and receiver
EP2527873A1 (en) Mobile terminal and location positioning method
JP4892041B2 (en) Positioning terminal and positioning method
US11474259B2 (en) Positioning method and device
CN111829550B (en) Motion distance determining method, device and equipment
CN108668220B (en) Electronic device, position determination system, position determination method, and storage medium
CN111148032B (en) Real-time positioning method and wearable device
CN110876182A (en) Position measuring method and device
CN105157722B (en) Geographic location monitoring method and equipment
CN111148216B (en) Electronic equipment positioning method and electronic equipment
CN111767460A (en) Information pushing method and device based on geographic position
CN111105058A (en) Running route dynamic time estimation method and device and electronic equipment
CN115412594B (en) Positioning command scheduling method, device and equipment
CN112527363A (en) Software package version updating method, device, system, equipment and medium
CN111464688B (en) Working mode switching method and device
CN108449372B (en) Network data processing method, three-dimensional network database construction method and system
EP3640664A1 (en) Using motion state of mobile device for position estimate
CN115587504B (en) Space target collision early warning method and device, electronic equipment and medium
CN110275429B (en) Method, device, equipment and storage medium for determining turnover information of smart watch
CN111209020B (en) Equipment control method and device
CN117991307B (en) Method and device for solving displacement of navigation receiver
JP2012088117A (en) Positioning system, positioning method and positioning 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
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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant