Step frequency measurement method and device, electronic equipment and medium
By using ultra-wideband (UWB) radar technology to measure the distance change between electronic devices and the ground, the noise interference and real-time issues of accelerometer step frequency measurement have been resolved, enabling more efficient and accurate step frequency information measurement.
Patent Information
- Application Number
- CN202210982802.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-16
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2042-08-16
AI Technical Summary
Existing cadence measurement methods based on accelerometers are susceptible to environmental noise interference, have poor real-time performance, and cannot accurately reflect changes in cadence over time, resulting in low measurement accuracy and efficiency.
By employing ultra-wideband (UWB) radar technology, step frequency information is measured by measuring the distance change between electronic devices and the ground and utilizing the time difference of UWB pulses. This avoids environmental noise interference and improves real-time performance and measurement accuracy.
It improves the anti-interference capability and real-time performance of cadence measurement, enhances the measurement efficiency of cadence information, and can more accurately reflect the change of cadence over time.
Smart Images

Figure CN115265579B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technology, specifically relating to a step frequency measurement method, device, electronic device, and medium. Background Technology
[0002] Generally, cadence is an important indicator reflecting the human body's movement status. When a user uses an electronic device to record their movement, the device can detect acceleration values at different times using an accelerometer. Based on the change in acceleration values over time, the number of steps the user takes per unit time is obtained, and this number of steps is divided by the unit time to obtain the user's cadence information.
[0003] However, the above measurement process is easily affected by environmental noise, and since the step frequency information is mainly in minutes, it cannot accurately reflect the change of step frequency over time, resulting in low accuracy of the measurement results and thus low efficiency of electronic devices in measuring step frequency information. Summary of the Invention
[0004] The purpose of this application is to provide a step frequency measurement method, device, electronic device, and medium that can solve the problem of low measurement efficiency of step frequency information by electronic devices.
[0005] In a first aspect, embodiments of this application provide a step frequency measurement method, which includes: determining N distance values between an electronic device and the ground based on N sets of times; each set of times corresponds to one distance value; each set of times includes a first time and a second time, wherein the first time is the time when a first ultra-wideband (UWB) pulse is emitted, and the second time is the time when a second UWB pulse is received, and the second UWB pulse is the UWB pulse after the first UWB pulse is reflected by the ground; determining the step frequency information of the carrier of the electronic device according to the time interval between the third times corresponding to two of the N distance values; the N distance values correspond to M measurement cycles, and one measurement cycle corresponds to at least one distance value among the N distance values, wherein the two first distance values include: the maximum or minimum distance value among at least one distance value corresponding to two adjacent measurement cycles in the M measurement cycles; a third time is determined based on a set of times corresponding to a first distance value; wherein M and N are integers greater than 1.
[0006] Secondly, embodiments of this application provide a cadence measurement device, which includes a determination module. The determination module is configured to determine N distance values between an electronic device and the ground based on N sets of times; each set of times corresponds to one distance value; each set of times includes a first time and a second time, the first time being the time when a first ultra-wideband (UWB) pulse is emitted, the second time being the time when a second UWB pulse is received, the second UWB pulse being the UWB pulse reflected from the ground by the first UWB pulse; and to determine the cadence information of the carrier of the electronic device based on the time interval between the third times corresponding to two of the N distance values; the N distance values correspond to M measurement cycles, one measurement cycle corresponding to at least one distance value among the N distance values, the two first distance values including: the maximum or minimum distance value among at least one distance value corresponding to two adjacent measurement cycles in the M measurement cycles; a third time is determined based on a time set corresponding to a first distance value; wherein M and N are integers greater than 1.
[0007] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, the memory storing programs or instructions executable on the processor, the programs or instructions, when executed by the processor, implementing the steps of the method described in the first aspect.
[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0009] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0010] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0011] In this embodiment, N distance values between the electronic device and the ground can be determined based on N sets of time points. Each set of time points includes the time of transmitting the first UWB pulse and the time of receiving the second UWB pulse (i.e., the UWB pulse after the first UWB pulse is reflected by the ground). The cadence information of the carrier of the electronic device is determined according to the time interval between the third times corresponding to the two first distance values in the N distance values. The N distance values correspond to M measurement cycles, and one measurement cycle corresponds to at least one distance value in the N distance values. The two first distance values include the maximum or minimum distance value among the at least one distance value corresponding to two adjacent measurement cycles in the M measurement cycles. A third time point is determined based on a time set corresponding to a first distance value. This scheme allows the electronic device to emit a first UWB pulse in real time during the movement of the user, and receive the UWB pulse reflected from the ground (i.e., the second UWB pulse). Based on the timing of emitting the first UWB pulse and receiving the second UWB pulse, the distance between the electronic device and the ground at different times can be measured in real time, thereby measuring step frequency information based on the change in distance. This avoids the problems of poor anti-interference ability and poor real-time performance in step frequency measurement methods based on accelerometers, which lead to low accuracy of step frequency measurement, thus improving the efficiency of step frequency information measurement by the electronic device. Attached Figure Description
[0012] Figure 1 This is a flowchart of a step frequency measurement method provided in an embodiment of this application;
[0013] Figure 2 This is one of the schematic diagrams of a step frequency measurement method provided in the embodiments of this application;
[0014] Figure 3 This is a second schematic diagram of a step frequency measurement method provided in an embodiment of this application;
[0015] Figure 4 This is a third schematic diagram of a step frequency measurement method provided in the embodiments of this application;
[0016] Figure 5 This is a fourth schematic diagram of a step frequency measurement method provided in the embodiments of this application;
[0017] Figure 6 This is a schematic diagram of the structure of a step frequency measuring device provided in an embodiment of this application;
[0018] Figure 7 This is one of the hardware structure diagrams of an electronic device provided in the embodiments of this application;
[0019] Figure 8This is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0020] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0021] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0022] The step frequency measurement provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0023] With rising living standards and an ever-growing need for a better life, real-time monitoring of health and fitness status has become a strong demand. Wearable devices (such as smartphones, smartwatches, and wireless earphones) are now ubiquitous in daily life. Through various electronic modules embedded in these devices, users can record their fitness and health status in real time. Among these metrics, cadence is a crucial indicator of human fitness, as changes in physiological functions and psychological states can influence cadence and its variations during exercise. Therefore, real-time measurement of cadence using wearable devices has wide applications in monitoring health and fitness.
[0024] In traditional methods, cadence measurement is based on accelerometers detecting changes in acceleration to estimate cadence. The basic principle of cadence measurement using accelerometers is as follows: during human movement, an accelerometer on a wearable device detects acceleration values at different times. The number of steps taken per unit time is obtained by calculating the change in acceleration over time, and this number of steps is divided by the unit time to obtain the cadence information.
[0025] However, the traditional approach described above (i.e., based on step frequency information measured by accelerometers) has the following main problems:
[0026] 1) Poor anti-interference capability. Measurement results based on accelerometers are easily affected by environmental noise, leading to inaccurate acceleration measurements and consequently errors in step frequency information.
[0027] 2) Poor real-time performance. Step frequency measurement based on accelerometers is mainly measured in minutes, that is, the measurement result is a statistical average of step frequency within one minute, which cannot accurately reflect the fluctuation of step frequency over time.
[0028] 3) The accuracy of cadence measurement is low due to the switching of movement states. Because of the diversity of movement modes, and the different acceleration change patterns of different movement forms such as long-distance running, jogging, interval running and walking, the accuracy of cadence measurement is easily caused by the switching of movement states.
[0029] To address the aforementioned technical problems, this application proposes a scheme for step frequency measurement using ultra-wideband (UWB) radar. An electronic device (which can be referred to as a UWB object) measures the time difference between transmitting and receiving UWB pulses at different times to measure the distance between the electronic device and the ground at different times. Then, based on the change in distance during movement, the step frequency and the rate of change of step frequency are measured.
[0030] Compared to methods that measure step frequency information based on accelerometers, the embodiments of this application have the following main advantages:
[0031] 1) Strong anti-interference capability. The accuracy of measurement results based on UWB radar mainly depends on the synchronization capability of the UWB object's transmission and reception of UWB pulses. External noise and interference have little impact on the measurement results.
[0032] 2) High real-time performance. The frequency of the periodic UWB pulses emitted by the UWB object is on the order of several hundred megahertz (MHz), thus enabling high real-time measurement of step frequency information on the order of microseconds.
[0033] 3) Unaffected by the mode of movement. Whether jogging, interval running, or walking, UWB objects exhibit a quasi-periodic up-and-down motion in the direction perpendicular to the ground. UWB objects calculate the distance between the electronic device and the ground using the time-of-flight of UWB pulses; therefore, the mode of movement does not affect the accuracy of step frequency measurement.
[0034] It should be noted that in typical UWB radar applications, the object carrying the UWB module is used as a reference to measure its motion parameters such as distance and velocity. However, in this embodiment, the object being measured is the ground, which is selected as a stationary reference frame. Based on the law of reference frame transformation, the distance information of the electronic device is calculated by measuring the distance information of the ground, greatly expanding the application scenarios for using UWB radar to measure various parameters.
[0035] This application provides a step frequency measurement method. Figure 1 A flowchart of a step frequency measurement method provided in an embodiment of this application is shown, which can be applied to electronic devices. Figure 1 As shown, the step frequency measurement method provided in this application embodiment may include the following steps 201 and 202.
[0036] Step 201: Based on N sets of time, the electronic device determines N distance values between the electronic device and the ground.
[0037] In this embodiment, each set of times corresponds to a distance value; each set of times includes a first time and a second time, where the first time is the time when the first UWB pulse is transmitted, and the second time is the time when the second UWB pulse is received, and the second UWB pulse is the UWB pulse after the first UWB pulse is reflected by the ground. Wherein, N is an integer greater than 1.
[0038] In this embodiment of the application, during the movement of the carrier of the electronic device, the electronic device can emit a first UWB pulse in real time and receive a UWB pulse (i.e., a second UWB pulse) after the first UWB pulse is reflected by the ground. Based on the time of emitting the first UWB pulse and the time of receiving the second UWB pulse, the distance between the electronic device and the ground at different times can be measured in real time, thereby realizing the measurement of step frequency information based on the change of distance.
[0039] Optionally, in this embodiment of the application, the aforementioned electronic device (which may be referred to as a UWB object) may carry a UWB radar module (hereinafter referred to as a UWB module). The UWB module may include a UWB signal processing chip, and the antenna configuration of the electronic device includes at least one transmit (Tx) antenna and at least one receive (Rx) antenna. The electronic device can transmit a first UWB pulse generated by the UWB signal processing chip through one of the at least one transmit antennas, and receive a second UWB pulse through one of the at least one receive antennas.
[0040] Optionally, in this embodiment of the application, the electronic device may periodically transmit a first UWB pulse.
[0041] For example, Figure 2This is a schematic diagram of the ranging process for a UWB object. The basic workflow of a UWB radar is as follows: periodic UWB pulses are transmitted into free space via a Tx antenna. During their propagation in free space, the UWB pulses are reflected when they encounter obstacles. The reflected UWB pulses are then received by the Rx antenna of the UWB object.
[0042] The time t when the UWB object transmits the i-th UWB pulse via the Tx antenna T,i and the time t when the i-th UWB pulse is received via the Rx antenna R,i It can be represented as:
[0043] t T,i i = 1, 2, 3, ..., n
[0044] t R,i i = 1, 2, 3, ..., n
[0045] The UWB object can transmit UWB pulses via a Tx antenna at a fixed frequency; this fixed frequency is called the pulse repetition frequency (PRF). prf Therefore, the timing of two adjacent UWB pulses transmitted via the Tx antenna satisfies the following relationship:
[0046] t T,i+1 -t T,i =1 / f prf i = 1, 2, 3, ..., n (1)
[0047] Therefore, the flight time of the i-th UWB pulse in free space can be expressed as:
[0048] Δt i =t R,i -t T,i i = 1, 2, 3, ..., n (2)
[0049] The speed of electromagnetic waves in air is approximately c = 3 × 10⁻⁶. 8 m / s, therefore, at the moment when the UWB object receives the i-th UWB pulse, the distance between the UWB object and the obstacle can be expressed as:
[0050] d i =c×Δt i / twenty three)
[0051] According to basic kinematics, velocity is the first derivative of distance with respect to time, and acceleration is the second derivative of distance with respect to time. Therefore, the reception time t of the i-th UWB pulse for the UWB object can be obtained. R,i The speed of movement at point v(t) R,i ) and acceleration a(t)R,i They are respectively:
[0052]
[0053]
[0054] Optionally, in this embodiment, the aforementioned electronic device can be a smartwatch worn on the wrist or a smartphone placed in a pocket. Specifically, it can be determined according to actual usage needs, and this embodiment does not impose any limitations.
[0055] For example, suppose the electronic device is a smartwatch with UWB radar functionality worn on the wrist, such as Figure 3 The image shows two typical states of the human body during running. Figure 3 Image (A) shows the posture of a user's arm swinging to its lowest point while wearing a smartwatch during a run. Figure 3 (B) shows the posture of a user's arm swinging to its highest point while wearing a smartwatch during a run. As the user runs, the smartwatch swings periodically with the arm, causing the height of the smartwatch above the ground to change periodically over time.
[0056] The highest point mentioned above can be understood as the highest height of the electronic device relative to the ground during human movement, that is, the greatest distance between the electronic device and the ground; the lowest point mentioned above can be understood as the lowest height of the electronic device relative to the ground during human movement, that is, the smallest distance between the electronic device and the ground.
[0057] Optionally, in the embodiments of this application, before step 201 above, for each of the N sets of time, the step frequency measurement method provided in the embodiments of this application further includes the following steps 301 to 303.
[0058] Step 301: The electronic device transmits the first UWB pulse and records the first moment.
[0059] Step 302: The electronic device receives at least one third UWB pulse corresponding to the first UWB pulse and records the reception time corresponding to each third UWB pulse.
[0060] Optionally, in this embodiment, due to the directivity of the antenna, the first UWB pulse transmitted by the Tx antenna will propagate in different directions in free space. In a motion scenario, the propagation path of the first UWB pulse mainly includes the following paths:
[0061] 1) The first UWB pulse transmitted by the Tx antenna is received by the Rx antenna after being reflected by the ground;
[0062] 2) The first UWB pulse transmitted by the Tx antenna is received by the Rx antenna after being scattered by the ground;
[0063] 3) The first UWB pulse transmitted by the Tx antenna is received by the Rx antenna after being reflected by the human body;
[0064] 4) The first UWB pulse transmitted by the Tx antenna is received by the Rx antenna after being scattered by the human body;
[0065] 5) The first UWB pulse transmitted by the Tx antenna is directly received by the Rx antenna.
[0066] It is understood that the above-mentioned at least one third UWB pulse includes at least one of the following UWB pulses: a UWB pulse after the first UWB pulse is reflected by the ground (i.e., the second UWB pulse), a UWB pulse after the first UWB pulse is scattered by the ground, a UWB pulse after the first UWB pulse is reflected by the human body, a UWB pulse after the first UWB pulse is scattered by the human body, and a UWB pulse in which the first UWB pulse is directly received by an electronic device.
[0067] Step 303: The electronic device determines the second UWB pulse from at least one third UWB pulse.
[0068] It should be noted that among UWB pulses propagating through different paths, the UWB pulse that is received by the Rx antenna after being reflected by the ground is the optimal UWB receiving pulse.
[0069] Optionally, in this embodiment of the application, the electronic device can determine the second UWB pulse from at least one third UWB pulse based on information such as the flight time and signal strength of at least one third UWB pulse.
[0070] In this embodiment, the electronic device can determine the second UWB pulse after the first UWB pulse is reflected by the ground from at least one third UWB pulse received. Based on the time of transmitting the first UWB pulse and the time of receiving the UWB pulse after the first UWB pulse is reflected by the ground, the distance between the electronic device and the ground at different times can be measured in real time, thereby realizing the measurement of step frequency information based on the change of distance. In this way, the problem of poor anti-interference ability and poor real-time performance in the step frequency measurement method based on accelerometer is avoided, resulting in low accuracy of step frequency measurement, thereby improving the measurement efficiency of step frequency information by the electronic device.
[0071] It should be noted that, in existing technologies, distance measurement using UWB radar requires an obstruction directly in front of or behind the object in its direction of movement, a requirement that cannot be met in most scenarios. In contrast, this embodiment eliminates the need for obstructions in front of or behind the object, instead utilizing UWB pulses reflected from the ground to achieve distance measurement, thereby further reducing the complexity of step frequency measurement.
[0072] Optionally, in the embodiments of this application, step 303 above can be specifically implemented by step 303a below.
[0073] Step 303a: Based on the pulse information of at least one third UWB pulse, the electronic device determines the third UWB pulse that meets a predetermined condition among the at least one third UWB pulse as the second UWB pulse.
[0074] The pulse information mentioned above includes at least one of the following: flight time and signal strength.
[0075] Optionally, in this embodiment of the application, the electronic device determines the third UWB pulse with the longest flight time among the at least one third UWB pulse based on the pulse information of at least one third UWB pulse; or, the electronic device determines the third UWB pulse with the strongest signal strength among the at least one third UWB pulse based on the pulse information of at least one third UWB pulse; or, the electronic device determines the third UWB pulse with the longest flight time and the strongest signal strength among the at least one third UWB pulse based on the pulse information of at least one third UWB pulse.
[0076] It should be noted that the signal strength of the UWB pulse reaching the Rx antenna after scattering is lower than that of the UWB pulse reaching the Rx antenna after reflection or directly received by the Rx antenna. Therefore, UWB pulses reaching the Rx antenna after scattering can be excluded based on their signal strength.
[0077] During human movement, electronic devices worn on the wrist are typically positioned between 0.5 and 1.8 meters above the ground. Therefore, the flight time of a UWB pulse reaching the Rx antenna after ground reflection is generally between 3.3 and 12 ns. However, the flight distance of UWB pulses reflected from the human body or propagating directly to the Rx antenna is shorter; that is, the flight time of a UWB pulse reflected from the human body or propagating directly to the Rx antenna is shorter than the flight time of a UWB pulse reflected from the ground. Therefore, UWB pulses reflected from the human body or propagating directly to the Rx antenna can be excluded based on their flight time.
[0078] Furthermore, to further improve the accuracy of step frequency measurement, it is assumed that, based on the constraints of received signal strength and time of flight, three UWB received pulses that meet predetermined conditions are determined for the i-th UWB transmitted pulse, namely UWB received pulse 1, UWB received pulse 2, and UWB received pulse 3. Considering the characteristic that the arm swing during human movement cannot change abruptly, the time of flight of the UWB received pulse corresponding to the i-th UWB transmitted pulse should not fluctuate significantly compared to the time of flight of the UWB received pulse corresponding to the (i-1)-th UWB transmitted pulse. Therefore, the electronic device can select the optimal received pulse from UWB received pulse 1, UWB received pulse 2, and UWB received pulse 3, for example, UWB received pulse 2.
[0079] In this embodiment, the electronic device can determine the optimal UWB receiving pulse corresponding to the first UWB pulse from at least one third UWB pulse based on information such as the flight time and signal strength of the received third UWB pulse. Based on the time of transmitting the first UWB pulse and the time of receiving the optimal UWB receiving pulse, the distance between the electronic device and the ground at different times can be measured in real time, thereby measuring step frequency information based on the change in distance. This avoids the problems of poor anti-interference capability and poor real-time performance in step frequency measurement methods based on accelerometers, which lead to low accuracy in step frequency measurement, thus improving the efficiency of step frequency information measurement by the electronic device.
[0080] Step 202: The electronic device determines the cadence information of the carrier based on the time interval between the third time intervals corresponding to two of the N distance values.
[0081] In this embodiment, the N distance values correspond to M measurement periods, and one measurement period corresponds to at least one distance value among the N distance values. The two first distance values include the maximum or minimum distance value among at least one distance value corresponding to two adjacent measurement periods in the M measurement periods. The third time point is determined based on a time group corresponding to a first distance value. Wherein, M is an integer greater than 1.
[0082] Optionally, in the embodiments of this application, during M measurement cycles, the electronic device determines N distance values based on N sets of time.
[0083] Optionally, in this embodiment of the application, a measurement cycle can be a period of time during which the electronic device moves from the lowest point to the highest point and then back to the lowest point; or, a measurement cycle can be a period of time during which the electronic device moves from the highest point to the lowest point and then back to the highest point.
[0084] For example, Figure 4This is a schematic diagram illustrating how the distance between an electronic device and the ground changes over time during human movement. For example... Figure 4 As shown, S1 to S7 represent the distance between the electronic device and the ground when the electronic device is at its highest point (the electronic device moves to the highest point with the arm) in each measurement cycle. The time interval between two adjacent highest points is T1, T2, ..., T6. The time interval between the times corresponding to two adjacent highest points (e.g., S2 and S3) or two adjacent lowest points is a measurement cycle (e.g., T2).
[0085] It should be noted that for the explanation of the highest and lowest points, please refer to the relevant description of step 201 in the above embodiments, which will not be repeated here.
[0086] It is understood that in this embodiment of the application, during the movement of the human body, the electronic device also moves up and down, that is, the distance between the electronic device and the ground changes in real time. Each measurement cycle corresponds to at least one distance value, and the at least one distance value includes a maximum distance value (that is, the distance between the electronic device and the ground is the largest) and a minimum distance value (that is, the distance between the electronic device and the ground is the smallest).
[0087] Optionally, in this embodiment of the application, each of the M measurement cycles corresponds to a maximum distance value and a minimum distance value. The two first distance values include: the maximum distance value (or minimum distance value) corresponding to a measurement cycle and the maximum distance value (or minimum distance value) corresponding to the measurement cycle adjacent to that measurement cycle.
[0088] Optionally, in the embodiments of this application, the measurement cycle adjacent to the measurement cycle can be the previous measurement cycle or the next measurement cycle.
[0089] Optionally, in the embodiments of this application, a measurement period includes at least one set of times from N sets of times.
[0090] Optionally, in this embodiment, each of the two first distance values corresponds to one set of times in N sets of times. The aforementioned third time can be a first time corresponding to a first distance value, a second time corresponding to the same first distance value, or a time determined based on the first and second times corresponding to the same first distance value, such as the average of the first and second times. The specific time can be determined according to actual usage requirements, and this embodiment does not impose any limitations.
[0091] It can be understood that the time interval between the third time points corresponding to the two first distance values is: the time interval between the first time points corresponding to the two first distance values respectively; or, the time interval between the second time points corresponding to the two first distance values respectively; or, the time interval between the average time points corresponding to the two first distance values respectively.
[0092] Optionally, in this embodiment of the application, the above-mentioned step frequency information may include at least one of the following: step frequency and step frequency change rate. The step frequency change rate is used to represent how quickly the step frequency changes over time.
[0093] For example, combined Figure 4 The time interval between two adjacent highest points is T1, T2, ..., T6, and the step frequency of the person carrying the electronic device is... Where i = 1, 2, ..., 6. Assuming the time interval between the two first distance values corresponding to the third time point is T2, then the step frequency of the person carrying the electronic device is...
[0094] In this embodiment, since the distance between the electronic device and the ground exhibits a certain periodicity, step frequency information can be measured based on the change in the distance between the electronic device and the ground in each measurement cycle. This avoids the problem of poor anti-interference capability and poor real-time performance in step frequency measurement methods based on accelerometers, which leads to low accuracy of step frequency measurement, thereby improving the measurement efficiency of step frequency information by the electronic device.
[0095] Optionally, in this embodiment of the application, the aforementioned measurement cycle includes:
[0096] The duration of contact with the ground by the carrier of the electronic device;
[0097] The duration of the rise in electronic device users;
[0098] The duration of levitation for the carrier of the electronic device; and
[0099] The duration of descent for the carrier of the electronic device.
[0100] For example, Figure 5 This diagram illustrates the change in distance between an electronic device and the ground over time during human movement. t1-t5 represents one measurement cycle during human movement. The period from t1 to t2 is the shortest distance between the electronic device and the ground, referred to as the ground contact duration. From t2 to t3, the distance gradually increases, referred to as the ascent duration. From t3 to t4, the distance is the longest distance, referred to as the hovering duration. From t4 to t5, the distance gradually decreases, referred to as the descent duration.
[0101] It further expands the measurement of the duration of ascent, levitation, descent, and landing during motion, thereby enabling a richer measurement of motion posture.
[0102] In this embodiment, while recording the duration of a motion cycle, the landing duration, ascent duration, hovering duration, and descent duration within a motion cycle are also recorded. The changes in the distance between the electronic device and the ground during the motion are measured respectively. In this way, the measurement of the single state parameter of step frequency information is extended to obtain detailed motion parameters of the duration of hovering, landing, ascent, and descent, so as to achieve more accurate monitoring of the human body's motion state during the motion, thereby facilitating further evaluation of the human body's motion state.
[0103] Optionally, in this embodiment of the application, for each of the N time groups, the above step 202 can be specifically implemented by the following steps 202a and 202b.
[0104] Step 202a: The electronic device determines the flight time of the first UWB pulse based on the first time and the second time.
[0105] Optionally, in this embodiment of the application, the electronic device can be based on the first time t T Second time t R The formula Δt = t is used. R -t T The flight time Δt of the first UWB pulse is determined.
[0106] Step 202b: The electronic device determines the distance value corresponding to the first UWB pulse based on the flight time.
[0107] Optionally, in this embodiment of the application, since a UWB pulse is an electromagnetic wave signal, its propagation speed in air is approximately the speed of light, c. Therefore, the distance value corresponding to the first UWB pulse is...
[0108] Optionally, in this embodiment of the application, the distance value corresponding to the first UWB pulse can be the distance between the electronic device and the ground when the first UWB pulse is sent, or it can be the distance between the electronic device and the ground when the second UWB pulse is received.
[0109] In this embodiment, the electronic device can measure the distance between itself and the ground in real time based on the time of transmitting the first UWB pulse and the time of receiving the second UWB pulse, thereby measuring step frequency information based on the change in distance. This avoids the problem of poor anti-interference ability and poor real-time performance in step frequency measurement methods based on accelerometers, which leads to low accuracy of step frequency measurement, thereby improving the measurement efficiency of step frequency information by the electronic device.
[0110] This application provides a cadence measurement method that determines N distance values between an electronic device and the ground based on N sets of time points. Each set of time points includes the time of transmitting a first UWB pulse and the time of receiving a second UWB pulse (i.e., the UWB pulse reflected from the ground after the first UWB pulse is emitted). The cadence information of the person carrying the electronic device is determined based on the time interval between the third time points corresponding to two of the N distance values. With this method, during the movement of the person carrying the electronic device, the electronic device can transmit a first UWB pulse in real time and receive the UWB pulse reflected from the ground (i.e., the second UWB pulse). Based on the time of transmitting the first UWB pulse and receiving the second UWB pulse, the distance between the electronic device and the ground at different times can be measured in real time, thereby measuring cadence information based on changes in distance. This avoids the problems of poor anti-interference capability and poor real-time performance in cadence measurement methods based on accelerometers, which lead to low accuracy in cadence measurement, thus improving the efficiency of cadence information measurement by the electronic device.
[0111] The step frequency measurement method provided in this application can be executed by a step frequency measurement device. This application uses a step frequency measurement device executing the step frequency measurement method as an example to illustrate the step frequency measurement device provided in this application.
[0112] Figure 6 A schematic diagram of a possible structure of a step frequency measuring device according to an embodiment of this application is shown. This step frequency measuring device is applied to an electronic device. Figure 6 As shown, the step frequency measuring device 60 may include: a determination module 61.
[0113] The determining module 61 is used to determine N distance values between the electronic device and the ground based on N sets of time points; each set of time points corresponds to one distance value; each set of time points includes a first time point and a second time point, where the first time point is the time when the first ultra-wideband UWB pulse is transmitted, and the second time point is the time when the second UWB pulse is received, and the second UWB pulse is the UWB pulse after the first UWB pulse is reflected by the ground; and determines the step frequency information of the carrier of the electronic device based on the time interval between the third time points corresponding to two of the N distance values; the N distance values correspond to M measurement cycles, and one measurement cycle corresponds to at least one distance value among the N distance values, where the two first distance values include: the maximum or minimum distance value among at least one distance value corresponding to two adjacent measurement cycles in the M measurement cycles; a third time point is determined based on a time set corresponding to a first distance value; where M and N are integers greater than 1.
[0114] This application provides a cadence measurement device. During the movement of the user carrying the electronic device, a first UWB pulse can be emitted in real time, and a second UWB pulse (i.e., the UWB pulse reflected from the ground) can be received. Based on the time of emission of the first UWB pulse and the time of reception of the second UWB pulse, the distance between the electronic device and the ground at different times can be measured in real time, thereby measuring cadence information based on the change in distance. In this way, the problems of poor anti-interference ability and poor real-time performance in cadence measurement methods based on accelerometers are avoided, resulting in low accuracy of cadence measurement, thus improving the measurement efficiency of cadence information.
[0115] In one possible implementation, the aforementioned measurement cycle includes:
[0116] The duration of contact with the ground by the carrier of the electronic device;
[0117] The duration of the rise in electronic device users;
[0118] The duration of levitation for the carrier of the electronic device; and
[0119] The duration of descent for the carrier of the electronic device.
[0120] In one possible implementation, the device 60 further includes a transmitting module and a receiving module. For each set of times: the transmitting module is configured to transmit a first UWB pulse and record the first time before the determining module 61 determines N distance values between the electronic device and the ground based on N sets of times. The receiving module is configured to receive at least one third UWB pulse corresponding to the first UWB pulse and record the reception time corresponding to each third UWB pulse. The determining module 61 is further configured to determine a second UWB pulse from the at least one third UWB pulse.
[0121] In one possible implementation, the determining module 61 is specifically used to determine a third UWB pulse that meets predetermined conditions from at least one third UWB pulse based on pulse information of at least one third UWB pulse. The pulse information includes at least one of the following: time of flight and signal strength.
[0122] In one possible implementation, for each set of time points: the aforementioned determining module 61 is specifically used to determine the flight time of the first UWB pulse based on the first time point and the second time point; and to determine the distance value corresponding to the first UWB pulse based on the flight time.
[0123] The step frequency measuring device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0124] The step frequency measuring device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.
[0125] The step frequency measuring device provided in this application embodiment can achieve... Figures 1 to 5 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0126] Optionally, such as Figure 7 As shown, this application embodiment also provides an electronic device 700, including a processor 701 and a memory 702. The memory 702 stores a program or instructions that can run on the processor 701. When the program or instructions are executed by the processor 701, they implement the various steps of the above-described step frequency measurement method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0127] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0128] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0129] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
[0130] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 8 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0131] The processor 110 is configured to determine N distance values between the electronic device and the ground based on N sets of time points; each set of time points corresponds to one distance value; each set of time points includes a first time point and a second time point, wherein the first time point is the time when a first ultra-wideband (UWB) pulse is transmitted, and the second time point is the time when a second UWB pulse is received, and the second UWB pulse is the UWB pulse after the first UWB pulse is reflected by the ground; and to determine the cadence information of the carrier of the electronic device based on the time interval between the third time points corresponding to two of the N distance values; the N distance values correspond to M measurement cycles, and one measurement cycle corresponds to at least one distance value among the N distance values, wherein the two first distance values include: the maximum or minimum distance value among at least one distance value corresponding to two adjacent measurement cycles in the M measurement cycles; a third time point is determined based on a time set corresponding to a first distance value;
[0132] Where M and N are integers greater than 1.
[0133] This application provides an electronic device that, during the movement of its user, can transmit a first UWB pulse in real time and receive a second UWB pulse (the UWB pulse reflected from the ground) after the first UWB pulse has been emitted. Based on the time of emission of the first UWB pulse and the time of receipt of the second UWB pulse, the distance between the electronic device and the ground at different times can be measured in real time, thereby measuring step frequency information based on the change in distance. This avoids the problems of poor anti-interference ability and poor real-time performance in step frequency measurement methods based on accelerometers, which lead to low accuracy of step frequency measurement, thus improving the measurement efficiency of step frequency information by the electronic device.
[0134] Optionally, in this embodiment, for each set of times: the radio frequency unit 101 is configured to transmit a first UWB pulse and record the first time before the processor 110 determines N distance values between the electronic device and the ground based on N sets of times. The radio frequency unit 101 is further configured to receive at least one third UWB pulse corresponding to the first UWB pulse and record the reception time corresponding to each third UWB pulse. The processor 110 is further configured to determine a second UWB pulse from at least one third UWB pulse.
[0135] Optionally, in this embodiment of the application, the processor 110 is specifically configured to determine a third UWB pulse that meets a predetermined condition from at least one third UWB pulse based on pulse information of at least one third UWB pulse. The pulse information includes at least one of the following: time of flight and signal strength.
[0136] Optionally, in this embodiment of the application, for each set of time points: the processor 110 is specifically used to determine the flight time of the first UWB pulse based on the first time point and the second time point; and to determine the distance value corresponding to the first UWB pulse based on the flight time.
[0137] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.
[0138] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0139] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.
[0140] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described step frequency measurement method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0141] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0142] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described step frequency measurement method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0143] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0144] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the step frequency measurement method embodiment described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0145] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0146] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0147] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A step frequency measurement method, characterized by, The method comprises: determining N distance values between the electronic device and the ground based on N groups of time points; each group of the time points corresponds to one of the distance values; each group of the time points comprises a first time point and a second time point, the first time point is a time point of emitting a first UWB pulse, and the second time point is a time point of receiving a second UWB pulse, the second UWB pulse is a UWB pulse reflected by the ground after the first UWB pulse, and the second UWB pulse is a third UWB pulse in at least one third UWB pulse corresponding to the first UWB pulse, pulse information of the third UWB pulse satisfies a predetermined condition, wherein the pulse information comprises at least one of the following: time of flight, signal strength; determining step frequency information of a carrier of the electronic device according to a time interval between third time points corresponding to two first distance values in the N distance values; the N distance values correspond to M measurement periods, one of the measurement periods corresponds to at least one of the distance values in the N distance values, the two first distance values comprise maximum distance values or minimum distance values in at least one distance value corresponding to adjacent two measurement periods in the M measurement periods; one of the third time points is determined based on a time point group corresponding to one of the first distance values; wherein M and N are integers greater than 1.
2. The method of claim 1, wherein, One of the measurement periods comprises: ground contact duration of the carrier; rising duration of the carrier; hovering duration of the carrier; and landing duration of the carrier.
3. The method of claim 1, wherein, Before the determining N distance values between the electronic device and the ground based on N groups of time points, the method further comprises: for each group of the time points: emitting the first UWB pulse and recording the first time point; receiving at least one third UWB pulse corresponding to the first UWB pulse and recording a receiving time point corresponding to each of the third UWB pulses; determining the second UWB pulse from the at least one third UWB pulse.
4. The method according to any one of claims 1 to 3, characterized in that, The determining N distance values between the electronic device and the ground based on N groups of time points comprises: for each group of the time points: determining a time of flight of the first UWB pulse according to the first time point and the second time point; determining a distance value corresponding to the first UWB pulse according to the time of flight.
5. A step frequency measurement device, characterized by The device comprises a determining module; The determining module is configured to determine N distance values between the electronic device and the ground based on N groups of time points, each group of the time points corresponding to one distance value, each group of the time points including a first time point and a second time point, the first time point being a time point at which the first UWB pulse is transmitted, and the second time point being a time point at which the second UWB pulse is received, the second UWB pulse being a UWB pulse reflected by the ground after the first UWB pulse, the second UWB pulse being a third UWB pulse, of at least one third UWB pulse corresponding to the first UWB pulse, whose pulse information satisfies a predetermined condition, wherein the pulse information includes at least one of a time of flight and a signal strength, and determine stride frequency information of a carrier of the electronic device based on a time interval between third time points corresponding to two first distance values in the N distance values; the N distance values correspond to M measurement periods, one measurement period corresponding to at least one distance value in the N distance values, the two first distance values including maximum distance values or minimum distance values in at least one distance value corresponding to adjacent two measurement periods in the M measurement periods; one third time point is determined based on a time point group corresponding to one first distance value. Wherein, M and N are integers greater than 1.
6. The apparatus of claim 5, wherein, One measurement period includes: A landing duration of the carrier; A rising duration of the carrier; A floating duration of the carrier; and A falling duration of the carrier.
7. The apparatus of claim 5, wherein, The device further includes a transmitting module and a receiving module. For each group of time points: The transmitting module is configured to transmit the first UWB pulse and record the first time point before the determining module determines N distance values between the electronic device and the ground based on N groups of time points; The receiving module is configured to receive at least one third UWB pulse corresponding to the first UWB pulse and record a receiving time point corresponding to each third UWB pulse; The determining module is further configured to determine the second UWB pulse from the at least one third UWB pulse.
8. The device of any one of claims 5 to 7, wherein, For each group of time points: The determining module is specifically configured to determine a time of flight of the first UWB pulse based on the first time point and the second time point, and determine a distance value corresponding to the first UWB pulse based on the time of flight.
9. An electronic device, comprising: A processor and a memory, the memory stores programs or instructions executable on the processor, the programs or instructions are executed by the processor to implement the steps of the stride frequency measurement method according to any one of claims 1 to 4.
10. A readable storage medium, characterized by, The readable storage medium stores programs or instructions, which are executed by the processor to implement the steps of the stride frequency measurement method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Electronic pedometer
US4371945A