[go: up one dir, main page]

CN113359120B - Method and device for measuring user activity distance and electronic device - Google Patents

Method and device for measuring user activity distance and electronic device Download PDF

Info

Publication number
CN113359120B
CN113359120B CN202010150942.3A CN202010150942A CN113359120B CN 113359120 B CN113359120 B CN 113359120B CN 202010150942 A CN202010150942 A CN 202010150942A CN 113359120 B CN113359120 B CN 113359120B
Authority
CN
China
Prior art keywords
measuring device
sound wave
time length
transmission time
measuring
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
CN202010150942.3A
Other languages
Chinese (zh)
Other versions
CN113359120A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010150942.3A priority Critical patent/CN113359120B/en
Publication of CN113359120A publication Critical patent/CN113359120A/en
Application granted granted Critical
Publication of CN113359120B publication Critical patent/CN113359120B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S11/00Systems for determining distance or velocity not using reflection or reradiation
    • G01S11/14Systems for determining distance or velocity not using reflection or reradiation using ultrasonic, sonic, or infrasonic waves

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
  • Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)

Abstract

The embodiment of the application provides a method, equipment and electronic equipment for measuring a user activity distance, wherein in the method for measuring the user activity distance, after detecting that the contact state of a left foot and the ground is changed, a first measuring equipment acquires a first system time and an identification of the first measuring equipment, then modulates by utilizing sound waves, a modulated first sound wave signal is sent to a second measuring equipment configured on a right foot, the second measuring equipment acquires a first transmission duration of the first sound wave signal, and the first transmission duration is sent to the electronic equipment; then, the first measuring device receives the second sound wave signal sent by the second measuring device, and sends the second transmission time length of the second sound wave signal to the electronic device, so that the electronic device determines the moving distance of the user in two continuous steps according to the transmission time length and the propagation speed of sound waves, thereby measuring the moving distance of the user and improving the accuracy of measuring the moving distance of the user.

Description

用户活动距离的测量方法、设备和电子设备Method, device and electronic device for measuring user activity distance

技术领域Technical Field

本申请实施例涉及智能终端技术领域,特别涉及一种用户活动距离的测量方法、设备和电子设备。The embodiments of the present application relate to the field of smart terminal technology, and in particular to a method, device and electronic device for measuring user activity distance.

背景技术Background technique

随着人们生活水平不断提高,大家对健康的关注度也逐渐增加,运动作为一种性价比较高的生活方式越来越普及,据民意调查最受欢迎最普遍的运动还是跑步和散步,公园、住宅小区到处都可以看到老年人散步,年轻人跑步。跑步或者散步到一定量才会对健康起到正激励作用,但过量却会造成机体疲劳甚至受损,因此需要有一个科学、准确的评估跑步和/或散步的运动量的方法,其中活动距离是评估运动量的一个重要参数。As people's living standards continue to improve, their attention to health is also gradually increasing. Exercise is becoming more and more popular as a cost-effective lifestyle. According to public opinion surveys, the most popular and common sports are still running and walking. Elderly people can be seen walking and young people running everywhere in parks and residential areas. Running or walking to a certain amount will have a positive effect on health, but excessive running or walking will cause fatigue or even damage to the body. Therefore, there is a need for a scientific and accurate method to evaluate the amount of running and/or walking, among which the activity distance is an important parameter for evaluating the amount of exercise.

为真实反映用户的活动情况,活动距离的标准测量方法为对步幅求和。图1为现有相关技术中活动距离的示意图,以图1为例,用户从A点到B点的活动距离,应该取曲线距离,而不能取直线距离。In order to truly reflect the user's activity, the standard measurement method for activity distance is to sum the strides. FIG1 is a schematic diagram of activity distance in the prior art. Taking FIG1 as an example, the activity distance of a user from point A to point B should be a curve distance, not a straight line distance.

可穿戴设备近几年来在科学运动领域不断发力,通过惯性传感器感知计步,从而完成活动距离测量。业界常见原理实现如下:Wearable devices have been making great efforts in the field of scientific sports in recent years, using inertial sensors to sense steps and thus measure the distance of activities. The common principles in the industry are as follows:

步骤1:行走距离=步数×步幅;其中,步幅通过固定经验系数×身高获得,经验系数不区分年龄、活动类型……Step 1: Walking distance = number of steps × stride length; where stride length is obtained by multiplying height by a fixed empirical coefficient, and the empirical coefficient does not distinguish between age and activity type...

步骤2:结合手机的全球定位系统(Global Positioning System;以下简称:GPS)进行周期性修正。Step 2: Perform periodic corrections in conjunction with the mobile phone's Global Positioning System (GPS).

但是,上述方案没有考虑到不同人群的步幅差异,在户内跑步场景下,GPS信号基本不可用,必须依赖跑步机的距离数据,而在户外运动场景,开启GPS对手机的功耗影响大,且受限于民用GPS的低精度和/或多径效应问题,会造成测量数据的不准确或者缺失。However, the above solution does not take into account the differences in stride lengths of different people. In indoor running scenarios, GPS signals are basically unavailable, and one must rely on the distance data of a treadmill. In outdoor sports scenarios, turning on GPS has a significant impact on the power consumption of the mobile phone, and is limited by the low precision and/or multipath effects of civilian GPS, which can cause inaccurate or missing measurement data.

发明内容Summary of the invention

本申请实施例提供了一种用户活动距离的测量方法、设备和电子设备,本申请实施例还提供一种计算机可读存储介质,以实现通过声波对用户的活动距离进行测量,不依赖GPS模块,也不依赖于经验值,可以实现对不同人群和/或不同活动场景的用户的活动距离进行测量,提高了用户活动距离测量的准确度。The embodiments of the present application provide a method, device and electronic device for measuring the user's activity distance. The embodiments of the present application also provide a computer-readable storage medium to measure the user's activity distance through sound waves, without relying on a GPS module or empirical values. The activity distance of users from different groups of people and/or different activity scenarios can be measured, thereby improving the accuracy of the user's activity distance measurement.

第一方面,本申请实施例提供了一种用户活动距离的测量方法,包括:In a first aspect, an embodiment of the present application provides a method for measuring a user activity distance, comprising:

在用户的左脚迈出,并且上述左脚上配置的第一测量设备检测到上述左脚与地面的接触状态发生改变之后,获取上述第一测量设备的处理器的第一系统时刻和上述第一测量设备的标识;其中,上述第一测量设备可以为各种运动类智能设备,包括:可穿戴设备(例如:脚环或脚扣等)、鞋垫或鞋等,本实施例对上述第一测量设备的具体形态不作限定;本实施例中,用于检测脚与地面的接触状态发生改变的传感器,可以是压力传感器,也可以是惯性传感器;一般来说,在鞋垫和鞋中通常采用压力传感器,在可穿戴设备中通常采用惯性传感器,本实施例对此不作限定。After the user's left foot steps out and the first measuring device configured on the left foot detects that the contact state between the left foot and the ground has changed, the first system moment of the processor of the first measuring device and the identifier of the first measuring device are obtained; wherein the first measuring device can be various sports smart devices, including: wearable devices (for example: anklets or foot buckles, etc.), insoles or shoes, etc., and this embodiment does not limit the specific form of the first measuring device; in this embodiment, the sensor for detecting the change in the contact state between the foot and the ground can be a pressure sensor or an inertial sensor; generally speaking, pressure sensors are usually used in insoles and shoes, and inertial sensors are usually used in wearable devices, and this embodiment does not limit this.

上述左脚与地面的接触状态发生改变可以为:左脚与地面发生接触,也可以是左脚离开地面;当上述左脚与地面的接触状态发生改变为左脚与地面发生接触时,说明左脚是移动脚,而当上述左脚与地面的接触状态发生改变为左脚离开地面时,说明左脚是支撑脚;也就是说,本实施例中,触发进行活动距离测量的脚,可以是移动脚,也可以是支撑脚。主要依据是声波的传播时延远小于人的反应时延;The change in the contact state between the left foot and the ground can be: the left foot is in contact with the ground, or the left foot is off the ground; when the contact state between the left foot and the ground changes to the left foot in contact with the ground, it means that the left foot is the moving foot, and when the contact state between the left foot and the ground changes to the left foot leaving the ground, it means that the left foot is the supporting foot; that is, in this embodiment, the foot that triggers the activity distance measurement can be the moving foot or the supporting foot. The main basis is that the propagation delay of the sound wave is much smaller than the reaction delay of the human being;

利用声波对上述第一系统时刻和上述第一测量设备的标识进行调制;其中,上述声波可以为超声波,也可以为可闻声波或特超声等,本实施例对上述声波的具体类型不作限定;The first system time and the identifier of the first measuring device are modulated by using sound waves; wherein the sound waves may be ultrasonic waves, audible sound waves, or hypersonic waves, and the specific type of the sound waves is not limited in this embodiment;

将调制完成的第一声波信号发送给上述用户的右脚上配置的第二测量设备,以使上述第二测量设备根据上述第一声波信号获得上述第一声波信号的第一传输时长,将上述第一传输时长发送给与上述第一测量设备和上述第二测量设备连接的电子设备;其中,上述第二测量设备同样可以为各种运动类智能设备,包括:可穿戴设备(例如:脚环或脚扣等)、鞋垫或鞋等,本实施例对上述第二测量设备的具体形态不作限定;上述电子设备可以为智能手机、可穿戴设备或平板电脑等智能电子设备,本实施例对上述电子设备的具体形态不作限定;在具体实现时,在第一测量设备将第一声波信号发送给第二测量设备之后,第二测量设备可以从上述第一声波信号中解调获得上述第一系统时刻和上述第一测量设备的标识,根据上述第一测量设备的标识确定第一声波信号来自于第一测量设备之后,获取第二测量设备当前的第四系统时刻,然后第二测量设备可以根据上述第四系统时刻和上述第一系统时刻获得上述第一声波信号的第一传输时长,将上述第一传输时长发送给与上述第一测量设备和上述第二测量设备连接的电子设备The modulated first sound wave signal is sent to the second measuring device configured on the right foot of the above-mentioned user, so that the above-mentioned second measuring device obtains the first transmission duration of the above-mentioned first sound wave signal according to the above-mentioned first sound wave signal, and sends the above-mentioned first transmission duration to the electronic device connected to the above-mentioned first measuring device and the above-mentioned second measuring device; wherein the above-mentioned second measuring device can also be various sports intelligent devices, including: wearable devices (for example: foot rings or foot buckles, etc.), insoles or shoes, etc., and the present embodiment does not limit the specific form of the above-mentioned second measuring device; the above-mentioned electronic device can be an intelligent electronic device such as a smart phone, a wearable device or a tablet computer, and the present embodiment does not limit the specific form of the above-mentioned electronic device; in specific implementation, after the first measuring device sends the first sound wave signal to the second measuring device, the second measuring device can demodulate from the above-mentioned first sound wave signal to obtain the above-mentioned first system time and the identifier of the above-mentioned first measuring device, and after determining that the first sound wave signal comes from the first measuring device according to the identifier of the above-mentioned first measuring device, obtain the current fourth system time of the second measuring device, and then the second measuring device can obtain the first transmission duration of the above-mentioned first sound wave signal according to the above-mentioned fourth system time and the above-mentioned first system time, and send the above-mentioned first transmission duration to the electronic device connected to the above-mentioned first measuring device and the above-mentioned second measuring device.

接收上述第二测量设备发送的第二声波信号,上述第二声波信号是上述第二测量设备在上述用户的右脚与地面的接触状态发生改变之后发送的,上述第二声波信号中包括上述第二测量设备的处理器的第二系统时刻和上述第二测量设备的标识;receiving a second sound wave signal sent by the second measuring device, wherein the second sound wave signal is sent by the second measuring device after the contact state between the right foot of the user and the ground changes, and the second sound wave signal includes a second system time of a processor of the second measuring device and an identifier of the second measuring device;

根据上述第二声波信号获得上述第二声波信号的第二传输时长,将上述第二传输时长发送给上述电子设备,以使上述电子设备根据上述第一传输时长和上述第二传输时长,以及上述声波在空气中的传播速度确定上述用户连续两步的活动距离。A second transmission duration of the second sound wave signal is obtained according to the second sound wave signal, and the second transmission duration is sent to the electronic device, so that the electronic device determines the activity distance of two consecutive steps of the user according to the first transmission duration and the second transmission duration, and the propagation speed of the sound wave in the air.

上述用户活动距离的测量方法中,在用户的左脚迈出,并且上述左脚上配置的第一测量设备检测到左脚与地面的接触状态发生改变之后,第一测量设备获取上述第一测量设备的处理器的第一系统时刻和上述第一测量设备的标识,然后利用声波对上述第一系统时刻和上述第一测量设备的标识进行调制,将调制完成的第一声波信号发送给上述用户的右脚上配置的第二测量设备,以使上述第二测量设备根据上述第一声波信号获得上述第一声波信号的第一传输时长,将上述第一传输时长发送给与第一测量设备和第二测量设备连接的电子设备;然后,第一测量设备接收上述第二测量设备发送的第二声波信号,根据上述第二声波信号获得上述第二声波信号的第二传输时长,将上述第二传输时长发送给上述电子设备,以使上述电子设备根据上述第一传输时长和上述第二传输时长,以及声波在空气中的传播速度确定上述用户连续两步的活动距离,从而可以不依赖于经验值,实现对不同人群和/或不同活动场景的用户的活动距离进行测量,提高了用户活动距离测量的准确度,并且上述方法不依赖于额外的GPS模块和射频模块,是一种低功耗和低成本的方案;并且上述方法利用左右脚交互前进的人体运动学特点,通过测量用户连续两步的活动距离,抵消第一测量设备与第二测量设备之间的时钟误差,实现了免时钟同步。In the above-mentioned method for measuring the user's activity distance, after the user's left foot steps out and the first measuring device configured on the above-mentioned left foot detects that the contact state of the left foot with the ground has changed, the first measuring device obtains the first system time of the processor of the above-mentioned first measuring device and the identifier of the above-mentioned first measuring device, and then modulates the above-mentioned first system time and the identifier of the above-mentioned first measuring device using sound waves, and sends the modulated first sound wave signal to the second measuring device configured on the above-mentioned user's right foot, so that the above-mentioned second measuring device obtains the first transmission duration of the above-mentioned first sound wave signal according to the above-mentioned first sound wave signal, and sends the above-mentioned first transmission duration to the electronic device connected to the first measuring device and the second measuring device; then, the first measuring device receives the second sound wave signal sent by the above-mentioned second measuring device, and according to The second sound wave signal obtains the second transmission duration of the second sound wave signal, and sends the second transmission duration to the electronic device, so that the electronic device determines the activity distance of the user's two consecutive steps according to the first transmission duration and the second transmission duration, as well as the propagation speed of the sound wave in the air. This allows the activity distance of users from different groups of people and/or different activity scenes to be measured without relying on empirical values, thereby improving the accuracy of user activity distance measurement. The method does not rely on additional GPS modules and radio frequency modules, and is a low-power and low-cost solution. The method utilizes the human kinematic characteristics of the left and right feet moving forward interactively, and by measuring the activity distance of the user's two consecutive steps, the clock error between the first measuring device and the second measuring device is offset, thereby achieving clock-free synchronization.

其中一种可能的实现方式中,根据上述第二声波信号获得上述第二声波信号的第二传输时长包括:In one possible implementation, obtaining the second transmission duration of the second sound wave signal according to the second sound wave signal includes:

从上述第二声波信号中解调获得上述第二系统时刻和上述第二测量设备的标识;Demodulating the second sound wave signal to obtain the second system time and the identifier of the second measuring device;

根据上述第二测量设备的标识确定上述第二声波信号是否来自于上述第二测量设备;Determining whether the second sound wave signal comes from the second measuring device according to the identifier of the second measuring device;

如果是,则获取上述第一测量设备当前的第三系统时刻;If yes, obtaining the current third system time of the first measuring device;

根据上述第三系统时刻和上述第二系统时刻,获得上述第二声波信号的第二传输时长。According to the third system time and the second system time, a second transmission duration of the second sound wave signal is obtained.

其中一种可能的实现方式中,根据上述第二测量设备的标识确定上述第二声波信号是否来自于上述第二测量设备之后,还包括:In one possible implementation manner, after determining whether the second sound wave signal comes from the second measurement device according to the identifier of the second measurement device, the method further includes:

如果上述第二声波信号并非来自于上述第二测量设备,则丢弃上述第二声波信号。If the second sound wave signal does not come from the second measuring device, the second sound wave signal is discarded.

第二方面,本申请实施例提供一种用户活动距离的测量方法,包括:In a second aspect, an embodiment of the present application provides a method for measuring a user activity distance, including:

接收第二测量设备发送的第一传输时长,上述第一传输时长为第一声波信号的传输时长,上述第一传输时长是上述第二测量设备根据上述第一声波信号获得的,上述第一声波信号是上述左脚上配置的第一测量设备发送给上述第二测量设备的;Receive a first transmission duration sent by a second measuring device, where the first transmission duration is a transmission duration of a first sound wave signal, the first transmission duration is obtained by the second measuring device according to the first sound wave signal, and the first sound wave signal is sent by the first measuring device configured on the left foot to the second measuring device;

接收上述第一测量设备发送的第二传输时长,上述第二传输时长为第二声波信号的传输时长,上述第二传输时长是上述第一测量设备根据上述第二声波信号获得的,上述第二声波信号是上述右脚上配置的上述第二测量设备发送给上述第一测量设备的;Receive a second transmission duration sent by the first measuring device, where the second transmission duration is the transmission duration of the second sound wave signal, the second transmission duration is obtained by the first measuring device according to the second sound wave signal, and the second sound wave signal is sent by the second measuring device configured on the right foot to the first measuring device;

根据上述第一传输时长和上述第二传输时长,以及声波在空气中的传播速度确定上述用户连续两步的活动距离。The activity distance of two consecutive steps of the user is determined according to the first transmission duration, the second transmission duration, and the propagation speed of the sound wave in the air.

其中一种可能的实现方式中,根据上述第一传输时长和上述第二传输时长,以及声波在空气中的传播速度确定上述用户连续两步的活动距离包括:In one possible implementation, determining the activity distance of two consecutive steps of the user according to the first transmission duration and the second transmission duration, and the propagation speed of sound waves in the air includes:

电子设备利用上述第一测量设备调制和解调声波的时延,以及上述第二测量设备调制和解调声波的时延,对上述第一传输时长与上述第二传输时长之和进行校准,获得校准后的传输时长;The electronic device calibrates the sum of the first transmission duration and the second transmission duration using the delay of the first measuring device modulating and demodulating the sound wave and the delay of the second measuring device modulating and demodulating the sound wave to obtain a calibrated transmission duration;

根据校准后的传输时长和声波在空气中的传播速度确定上述用户连续两步的活动距离。The activity distance of two consecutive steps of the user is determined according to the calibrated transmission time and the propagation speed of the sound wave in the air.

其中,上述电子设备与第一测量设备和第二测量设备连接,上述电子设备可以为智能手机、可穿戴设备或平板电脑等智能电子设备,本实施例对上述电子设备的具体形态不作限定。The electronic device is connected to the first measuring device and the second measuring device. The electronic device may be a smart phone, a wearable device, a tablet computer or other intelligent electronic device. This embodiment does not limit the specific form of the electronic device.

也就是说,在声波调制->发送->空气传输->接收->声波解调过程中,包含第一测量设备或第二测量设备自身的硬件和/或软件的处理时延,因此需要对第一传输时长与第二传输时长之和进行校准,本实施例中,电子设备利用第一测量设备调制和解调声波的时延,以及第二测量设备调制和解调声波的时延,对第一传输时长与第二传输时长之和进行校准,获得校准后的传输时长。在具体实现时,第一测量设备调制和解调声波的时延,以及第二测量设备调制和解调声波的时延,可以通过校准测试预先获得,并存储在上述电子设备中。That is to say, in the process of sound wave modulation->sending->air transmission->receiving->sound wave demodulation, the processing delay of the hardware and/or software of the first measuring device or the second measuring device itself is included, so it is necessary to calibrate the sum of the first transmission duration and the second transmission duration. In this embodiment, the electronic device uses the delay of the first measuring device modulating and demodulating the sound wave, and the delay of the second measuring device modulating and demodulating the sound wave to calibrate the sum of the first transmission duration and the second transmission duration to obtain the calibrated transmission duration. In a specific implementation, the delay of the first measuring device modulating and demodulating the sound wave, and the delay of the second measuring device modulating and demodulating the sound wave, can be obtained in advance through calibration testing and stored in the above-mentioned electronic device.

上述用户活动距离的测量方法中,电子设备接收第二测量设备发送的第一传输时长,接收第一测量设备发送的第二传输时长,其中第一传输时长为第一声波信号的传输时长,第二传输时长为第二声波信号的传输时长;然后电子设备可以根据第一传输时长和上述第二传输时长,以及声波在空气中的传播速度确定用户连续两步的活动距离,从而可以不依赖于经验值,实现对不同人群和/或不同活动场景的用户的活动距离进行测量,提高了用户活动距离测量的准确度,并且上述方法不依赖于额外的GPS模块和射频模块,是一种低功耗和低成本的方案;并且上述方法利用左右脚交互前进的人体运动学特点,通过测量用户连续两步的活动距离,抵消第一测量设备与第二测量设备之间的时钟误差,实现了免时钟同步。In the above-mentioned method for measuring the user's activity distance, the electronic device receives a first transmission duration sent by a second measuring device, and receives a second transmission duration sent by the first measuring device, wherein the first transmission duration is the transmission duration of the first sound wave signal, and the second transmission duration is the transmission duration of the second sound wave signal; then the electronic device can determine the activity distance of the user's two consecutive steps based on the first transmission duration and the above-mentioned second transmission duration, as well as the propagation speed of the sound wave in the air, thereby being able to measure the activity distance of users of different groups and/or different activity scenes without relying on empirical values, thereby improving the accuracy of the user's activity distance measurement, and the above-mentioned method does not rely on additional GPS modules and radio frequency modules, and is a low-power and low-cost solution; and the above-mentioned method utilizes the human body's kinematic characteristics of the interactive movement of the left and right feet, and by measuring the activity distance of the user's two consecutive steps, offsets the clock error between the first measuring device and the second measuring device, thereby achieving clock-free synchronization.

第三方面,本申请实施例提供一种用户活动距离的测量设备,上述测量设备为第一测量设备,上述测量设备包括:传感器;声波调制解调器;声波收发器;通信模块;一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序,其中上述一个或多个计算机程序被存储在上述存储器中,上述一个或多个计算机程序包括指令,当上述指令被上述测量设备执行时,使得上述测量设备执行以下步骤:In a third aspect, an embodiment of the present application provides a device for measuring a user's activity distance, wherein the measuring device is a first measuring device, and the measuring device comprises: a sensor; an acoustic modem; an acoustic transceiver; a communication module; one or more processors; a memory; a plurality of applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, and when the instructions are executed by the measuring device, the measuring device performs the following steps:

在用户的左脚迈出,并且上述左脚上配置的第一测量设备检测到上述左脚与地面的接触状态发生改变之后,获取上述第一测量设备的处理器的第一系统时刻和上述第一测量设备的标识;After the user's left foot steps out and the first measuring device configured on the left foot detects that the contact state between the left foot and the ground changes, obtaining a first system time of a processor of the first measuring device and an identifier of the first measuring device;

利用声波对上述第一系统时刻和上述第一测量设备的标识进行调制;Modulating the first system time and the identifier of the first measuring device by using sound waves;

将调制完成的第一声波信号发送给上述用户的右脚上配置的第二测量设备,以使上述第二测量设备根据上述第一声波信号获得上述第一声波信号的第一传输时长,将上述第一传输时长发送给与上述第一测量设备和上述第二测量设备连接的电子设备;Sending the modulated first sound wave signal to a second measuring device configured on the right foot of the user, so that the second measuring device obtains a first transmission duration of the first sound wave signal according to the first sound wave signal, and sends the first transmission duration to an electronic device connected to the first measuring device and the second measuring device;

接收上述第二测量设备发送的第二声波信号,上述第二声波信号是上述第二测量设备在上述用户的右脚与地面的接触状态发生改变之后发送的,上述第二声波信号中包括上述第二测量设备的处理器的第二系统时刻和上述第二测量设备的标识;receiving a second sound wave signal sent by the second measuring device, wherein the second sound wave signal is sent by the second measuring device after the contact state between the right foot of the user and the ground changes, and the second sound wave signal includes a second system time of a processor of the second measuring device and an identifier of the second measuring device;

根据上述第二声波信号获得上述第二声波信号的第二传输时长,将上述第二传输时长发送给上述电子设备,以使上述电子设备根据上述第一传输时长和上述第二传输时长,以及上述声波在空气中的传播速度确定上述用户连续两步的活动距离。A second transmission duration of the second sound wave signal is obtained according to the second sound wave signal, and the second transmission duration is sent to the electronic device, so that the electronic device determines the activity distance of two consecutive steps of the user according to the first transmission duration and the second transmission duration, and the propagation speed of the sound wave in the air.

其中一种可能的实现方式中,当上述指令被上述测量设备执行时,使得上述测量设备执行根据上述第二声波信号获得上述第二声波信号的第二传输时长的步骤包括:In one possible implementation, when the instruction is executed by the measuring device, the step of causing the measuring device to obtain a second transmission duration of the second sound wave signal according to the second sound wave signal includes:

从上述第二声波信号中解调获得上述第二系统时刻和上述第二测量设备的标识;Demodulating the second sound wave signal to obtain the second system time and the identifier of the second measuring device;

根据上述第二测量设备的标识确定上述第二声波信号是否来自于上述第二测量设备;Determining whether the second sound wave signal comes from the second measuring device according to the identifier of the second measuring device;

如果是,则获取上述第一测量设备当前的第三系统时刻;If yes, obtaining the current third system time of the first measuring device;

根据上述第三系统时刻和上述第二系统时刻,获得上述第二声波信号的第二传输时长。According to the third system time and the second system time, a second transmission duration of the second sound wave signal is obtained.

其中一种可能的实现方式中,当上述指令被上述测量设备执行时,使得上述测量设备执行根据上述第二测量设备的标识确定上述第二声波信号是否来自于上述第二测量设备的步骤之后,还执行以下步骤:In one possible implementation, when the instruction is executed by the measuring device, the measuring device further performs the following steps after performing the step of determining whether the second sound wave signal comes from the second measuring device according to the identifier of the second measuring device:

如果上述第二声波信号并非来自于上述第二测量设备,则丢弃上述第二声波信号。If the second sound wave signal does not come from the second measuring device, the second sound wave signal is discarded.

第四方面,本申请实施例提供一种电子设备,包括:In a fourth aspect, an embodiment of the present application provides an electronic device, including:

一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序,其中上述一个或多个计算机程序被存储在上述存储器中,上述一个或多个计算机程序包括指令,当上述指令被上述电子设备执行时,使得上述电子设备执行以下步骤:One or more processors; a memory; a plurality of applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, and when the instructions are executed by the electronic device, the electronic device performs the following steps:

接收第二测量设备发送的第一传输时长,上述第一传输时长为第一声波信号的传输时长,上述第一传输时长是上述第二测量设备根据上述第一声波信号获得的,上述第一声波信号是上述左脚上配置的第一测量设备发送给上述第二测量设备的;Receive a first transmission duration sent by a second measuring device, where the first transmission duration is a transmission duration of a first sound wave signal, the first transmission duration is obtained by the second measuring device according to the first sound wave signal, and the first sound wave signal is sent by the first measuring device configured on the left foot to the second measuring device;

接收上述第一测量设备发送的第二传输时长,上述第二传输时长为第二声波信号的传输时长,上述第二传输时长是上述第一测量设备根据上述第二声波信号获得的,上述第二声波信号是上述右脚上配置的上述第二测量设备发送给上述第一测量设备的;Receive a second transmission duration sent by the first measuring device, where the second transmission duration is the transmission duration of the second sound wave signal, the second transmission duration is obtained by the first measuring device according to the second sound wave signal, and the second sound wave signal is sent by the second measuring device configured on the right foot to the first measuring device;

根据上述第一传输时长和上述第二传输时长,以及声波在空气中的传播速度确定上述用户连续两步的活动距离。The activity distance of two consecutive steps of the user is determined according to the first transmission duration, the second transmission duration, and the propagation speed of the sound wave in the air.

其中一种可能的实现方式中,当上述指令被上述电子设备执行时,使得上述电子设备执行根据上述第一传输时长和上述第二传输时长,以及声波在空气中的传播速度确定上述用户连续两步的活动距离的步骤包括:In one possible implementation manner, when the instruction is executed by the electronic device, the electronic device executes the step of determining the activity distance of two consecutive steps of the user according to the first transmission duration and the second transmission duration, and the propagation speed of sound waves in the air, including:

利用上述第一测量设备调制和解调声波的时延,以及上述第二测量设备调制和解调声波的时延,对上述第一传输时长与上述第二传输时长之和进行校准,获得校准后的传输时长;Using the time delay of the first measuring device modulating and demodulating the sound wave and the time delay of the second measuring device modulating and demodulating the sound wave, calibrate the sum of the first transmission duration and the second transmission duration to obtain a calibrated transmission duration;

根据校准后的传输时长和声波在空气中的传播速度确定上述用户连续两步的活动距离。The activity distance of two consecutive steps of the user is determined according to the calibrated transmission time and the propagation speed of the sound wave in the air.

应当理解的是,本申请实施例的第三方面与本申请的第一方面的技术方案一致,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。It should be understood that the third aspect of the embodiment of the present application is consistent with the technical solution of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here.

应当理解的是,本申请实施例的第四方面与本申请的第二方面的技术方案一致,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。It should be understood that the fourth aspect of the embodiment of the present application is consistent with the technical solution of the second aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here.

第五方面,本申请实施例提供一种计算机可读存储介质,上述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行第一方面提供的方法。In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the method provided in the first aspect.

第六方面,本申请实施例提供一种计算机可读存储介质,上述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行第二方面提供的方法。In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the method provided in the second aspect.

第七方面,本申请实施例提供一种计算机程序,当上述计算机程序被计算机执行时,用于执行第一方面提供的方法。In a seventh aspect, an embodiment of the present application provides a computer program, which, when executed by a computer, is used to execute the method provided in the first aspect.

第八方面,本申请实施例提供一种计算机程序,当上述计算机程序被计算机执行时,用于执行第二方面提供的方法。In an eighth aspect, an embodiment of the present application provides a computer program, which, when executed by a computer, is used to execute the method provided in the second aspect.

在一种可能的设计中,第七方面和第八方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。In one possible design, the programs in the seventh and eighth aspects may be stored in whole or in part on a storage medium packaged together with the processor, or may be stored in whole or in part on a memory not packaged together with the processor.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为现有相关技术中活动距离的示意图;FIG1 is a schematic diagram of the activity distance in the prior art;

图2为本申请用户活动距离的测量方法一个实施例的流程图;FIG2 is a flow chart of an embodiment of a method for measuring user activity distance of the present application;

图3为本申请用户活动距离的测量方法另一个实施例的流程图;FIG3 is a flow chart of another embodiment of a method for measuring user activity distance of the present application;

图4为本申请用户活动距离的测量方法再一个实施例的流程图;FIG4 is a flow chart of another embodiment of a method for measuring user activity distance of the present application;

图5为本申请用户活动距离的测量方法赖以实施的系统框图一个实施例的示意图;FIG5 is a schematic diagram of an embodiment of a system block diagram on which the method for measuring user activity distance of the present application is implemented;

图6为本申请用户活动距离的测量方法中步幅测量一个实施例的示意图;FIG6 is a schematic diagram of an embodiment of stride measurement in the method for measuring user activity distance of the present application;

图7为本申请用户活动距离的测量方法中时延校准一个实施例的示意图;FIG7 is a schematic diagram of an embodiment of delay calibration in the method for measuring user activity distance of the present application;

图8为本申请用户活动距离的测量设备一个实施例的结构示意图;FIG8 is a schematic diagram of the structure of an embodiment of a device for measuring user activity distance of the present application;

图9为本申请电子设备一个实施例的结构示意图。FIG. 9 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application.

具体实施方式Detailed ways

本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。The terms used in the implementation section of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.

现有相关技术中,可以通过可穿戴设备对用户的活动距离进行测量,但是通过可穿戴设备测量活动距离的方案中的步幅是通过固定经验系数×身高获得的,上述经验系数不区分年龄和/或活动类型等;另外,测量获得的活动距离需要结合手机的GPS进行周期性修正。In the existing related technologies, the user's activity distance can be measured by wearable devices, but the stride length in the scheme of measuring the activity distance by wearable devices is obtained by a fixed empirical coefficient × height, and the above empirical coefficient does not distinguish between age and/or activity type, etc.; in addition, the measured activity distance needs to be periodically corrected in combination with the GPS of the mobile phone.

但是上述方案,没有考虑到不同人群的步幅差异,在户内跑步场景下,GPS信号基本不可用,必须依赖跑步机的距离数据,而在户外运动场景,开启GPS对手机的功耗影响较大,且受限于民用GPS的低精度和/或多径效应问题,会造成测量数据的不准确或者缺失。However, the above solution does not take into account the differences in stride lengths of different people. In indoor running scenarios, GPS signals are basically unavailable, and one must rely on the distance data of a treadmill. In outdoor sports scenarios, turning on GPS has a greater impact on the power consumption of the mobile phone, and is limited by the low precision and/or multipath effect of civilian GPS, which can cause inaccurate or missing measurement data.

本申请实施例提供一种用户活动距离的测量方法,通过一种新型的步幅级测量方案,获得用户准确的活动距离,不依赖于额外的GPS模块,是一种低功耗、低成本的方案;并且不依赖于经验值,可以实现对不同人群和/或不同活动场景的用户的活动距离进行测量,提高了用户活动距离测量的准确度The embodiment of the present application provides a method for measuring the user's activity distance, which obtains the user's accurate activity distance through a new stride-level measurement solution, does not rely on an additional GPS module, and is a low-power, low-cost solution; and does not rely on empirical values, and can measure the activity distance of users of different groups and/or different activity scenes, thereby improving the accuracy of user activity distance measurement.

本申请实施例提供的用户活动距离的测量方法,通过移动脚上配置的测量设备中的压力传感器或惯性传感器,感知移动脚的触地事件,触发活动距离的测量,然后移动脚上配置的测量设备获取本地时间和测量设备的标识(Identifier;以下简称:ID),发送调制后的声波信号到支撑脚上配置的测量设备,支撑脚上配置的测量设备对上述声波信号进行解调获得声波信号在两脚之间的传输时长,将传输时长发送给与上述测量设备连接的电子设备,例如:智能手机或智能手表等;电子设备通过声波信号在用户两步中的传输时长,抵消掉两脚上配置的测量设备的时钟差,从而实现了免时钟同步,提高了用户活动距离测量的准确度。The method for measuring the user's activity distance provided in the embodiment of the present application senses the ground contact event of the moving foot through a pressure sensor or an inertial sensor in a measuring device configured on the moving foot, triggers the measurement of the activity distance, and then the measuring device configured on the moving foot obtains the local time and an identifier (Identifier; hereinafter referred to as: ID) of the measuring device, sends a modulated sound wave signal to the measuring device configured on the supporting foot, and the measuring device configured on the supporting foot demodulates the above-mentioned sound wave signal to obtain the transmission time of the sound wave signal between the two feet, and sends the transmission time to an electronic device connected to the above-mentioned measuring device, such as a smart phone or a smart watch; the electronic device offsets the clock difference of the measuring devices configured on the two feet through the transmission time of the sound wave signal in the two steps of the user, thereby realizing clock-free synchronization and improving the accuracy of the user's activity distance measurement.

图2为本申请用户活动距离的测量方法一个实施例的流程图,如图2所示,上述用户活动距离的测量方法可以包括:FIG2 is a flow chart of an embodiment of a method for measuring user activity distance of the present application. As shown in FIG2 , the method for measuring user activity distance may include:

步骤201,在用户的左脚迈出,并且上述左脚上配置的第一测量设备检测到上述左脚与地面的接触状态发生改变之后,获取上述第一测量设备的处理器的第一系统时刻和上述第一测量设备的标识。Step 201, after the user's left foot steps out and a first measuring device configured on the left foot detects that the contact state between the left foot and the ground changes, a first system time of a processor of the first measuring device and an identifier of the first measuring device are obtained.

其中,上述第一测量设备可以为各种运动类智能设备,包括:可穿戴设备(例如:脚环或脚扣等)、鞋垫或鞋等,本实施例对上述第一测量设备的具体形态不作限定。Among them, the above-mentioned first measuring device can be various sports smart devices, including: wearable devices (such as anklets or foot buckles, etc.), insoles or shoes, etc. This embodiment does not limit the specific form of the above-mentioned first measuring device.

本实施例中,用于检测脚与地面的接触状态发生改变的传感器,可以是压力传感器,也可以是惯性传感器;一般来说,在鞋垫和鞋中通常采用压力传感器,在可穿戴设备中通常采用惯性传感器,本实施例对此不作限定。In this embodiment, the sensor used to detect changes in the contact state between the foot and the ground can be a pressure sensor or an inertial sensor; generally speaking, pressure sensors are usually used in insoles and shoes, and inertial sensors are usually used in wearable devices, which is not limited in this embodiment.

上述左脚与地面的接触状态发生改变可以为:左脚与地面发生接触,也可以是左脚离开地面;当上述左脚与地面的接触状态发生改变为左脚与地面发生接触时,说明左脚是移动脚,而当上述左脚与地面的接触状态发生改变为左脚离开地面时,说明左脚是支撑脚;也就是说,本实施例中,触发进行活动距离测量的脚,可以是移动脚,也可以是支撑脚。主要依据是声波的传播时延远小于人的反应时延。检测脚与地面的接触状态发生改变的几种方案的不同点可以如表1所示。The change in the contact state between the left foot and the ground may be: the left foot is in contact with the ground, or the left foot is off the ground; when the contact state between the left foot and the ground changes to the left foot being in contact with the ground, it indicates that the left foot is a moving foot, and when the contact state between the left foot and the ground changes to the left foot being off the ground, it indicates that the left foot is a supporting foot; that is, in this embodiment, the foot that triggers the activity distance measurement may be a moving foot or a supporting foot. The main basis is that the propagation delay of sound waves is much smaller than the reaction delay of a person. The differences between several schemes for detecting changes in the contact state between the foot and the ground can be shown in Table 1.

表1Table 1

移动脚Move your feet 支撑脚Support feet 压力传感器Pressure Sensor 压力由0开始增加The pressure increases from 0 压力开始减小The pressure starts to decrease 惯性传感器Inertial Sensors 加速度开始减小The acceleration starts to decrease 加速度由0开始增加The acceleration starts from 0 and increases

从表1中可以看出,如果第一测量设备中的传感器为压力传感器,左脚为移动脚时,那么当压力传感器检测到压力由0开始增加时,可以确定上述左脚与地面发生接触;左脚为支撑脚时,那么当压力传感器检测到压力开始减小时,可以确定上述左脚离开地面;而如果第一测量设备中的传感器为惯性传感器,左脚为移动脚时,那么当惯性传感器检测到加速度开始减小时,可以确定上述左脚与地面发生接触;左脚为支撑脚时,那么当惯性传感器检测到加速度由0开始增加时,可以确定上述左脚离开地面。It can be seen from Table 1 that if the sensor in the first measuring device is a pressure sensor and the left foot is a moving foot, then when the pressure sensor detects that the pressure starts to increase from 0, it can be determined that the left foot is in contact with the ground; when the left foot is a supporting foot, then when the pressure sensor detects that the pressure starts to decrease, it can be determined that the left foot leaves the ground; and if the sensor in the first measuring device is an inertial sensor and the left foot is a moving foot, then when the inertial sensor detects that the acceleration starts to decrease, it can be determined that the left foot is in contact with the ground; when the left foot is a supporting foot, then when the inertial sensor detects that the acceleration starts to increase from 0, it can be determined that the left foot leaves the ground.

在检测到上述左脚与地面的接触状态发生改变之后,第一测量设备可以获取上述第一测量设备的处理器的第一系统时刻和上述第一测量设备的标识。After detecting that the contact state between the left foot and the ground changes, the first measuring device may obtain a first system time of a processor of the first measuring device and an identifier of the first measuring device.

步骤202,利用声波对上述第一系统时刻和上述第一测量设备的标识进行调制。Step 202: modulate the first system time and the identifier of the first measuring device by using sound waves.

其中,上述声波可以为超声波,也可以为可闻声波或特超声等,本实施例对上述声波的具体类型不作限定。The sound waves may be ultrasonic waves, audible sound waves, or hypersonic waves, etc. This embodiment does not limit the specific type of the sound waves.

当上述声波采用普通的声波,即可闻声波时,可以对时钟信息和设备标识进行编码,通过麦克风和/或话筒完成声波信号的发送接收,这样无需额外的硬件改动,现有的大多数智能运动设备,通过升级软件即可实现本申请实施例提供的方法。When the above-mentioned sound waves use ordinary sound waves, that is, audible sound waves, the clock information and device identification can be encoded, and the sending and receiving of sound wave signals can be completed through a microphone and/or a speaker. In this way, no additional hardware changes are required. Most existing smart sports devices can implement the method provided in the embodiment of the present application by upgrading the software.

步骤203,将调制完成的第一声波信号发送给上述用户的右脚上配置的第二测量设备,以使第二测量设备根据上述第一声波信号获得上述第一声波信号的第一传输时长,将上述第一传输时长发送给与第一测量设备和第二测量设备连接的电子设备。Step 203, sending the modulated first sound wave signal to the second measuring device configured on the right foot of the above-mentioned user, so that the second measuring device obtains the first transmission duration of the above-mentioned first sound wave signal according to the above-mentioned first sound wave signal, and sends the above-mentioned first transmission duration to the electronic device connected to the first measuring device and the second measuring device.

其中,上述第二测量设备同样可以为各种运动类智能设备,包括:可穿戴设备(例如:脚环或脚扣等)、鞋垫或鞋等,本实施例对上述第二测量设备的具体形态不作限定;上述电子设备可以为智能手机、可穿戴设备或平板电脑等智能电子设备,本实施例对上述电子设备的具体形态不作限定。Among them, the above-mentioned second measuring device can also be various sports smart devices, including: wearable devices (for example: anklets or foot buckles, etc.), insoles or shoes, etc., and this embodiment does not limit the specific form of the above-mentioned second measuring device; the above-mentioned electronic device can be smart electronic devices such as smart phones, wearable devices or tablet computers, and this embodiment does not limit the specific form of the above-mentioned electronic device.

在具体实现时,在第一测量设备将第一声波信号发送给第二测量设备之后,第二测量设备可以从上述第一声波信号中解调获得上述第一系统时刻和上述第一测量设备的标识,根据上述第一测量设备的标识确定第一声波信号来自于第一测量设备之后,获取第二测量设备当前的第四系统时刻,然后第二测量设备可以根据上述第四系统时刻和上述第一系统时刻获得上述第一声波信号的第一传输时长,将上述第一传输时长发送给与上述第一测量设备和上述第二测量设备连接的电子设备。In a specific implementation, after the first measuring device sends the first sound wave signal to the second measuring device, the second measuring device can demodulate the first sound wave signal to obtain the first system moment and the identifier of the first measuring device, determine that the first sound wave signal comes from the first measuring device according to the identifier of the first measuring device, and obtain the current fourth system moment of the second measuring device. Then, the second measuring device can obtain the first transmission duration of the first sound wave signal according to the fourth system moment and the first system moment, and send the first transmission duration to the electronic device connected to the first measuring device and the second measuring device.

步骤204,接收第二测量设备发送的第二声波信号,上述第二声波信号是第二测量设备在上述用户的右脚与地面的接触状态发生改变之后发送的,上述第二声波信号中包括第二测量设备的处理器的第二系统时刻和上述第二测量设备的标识。Step 204, receiving a second sound wave signal sent by a second measuring device, wherein the second sound wave signal is sent by the second measuring device after the contact state between the right foot of the user and the ground changes, and the second sound wave signal includes a second system time of a processor of the second measuring device and an identifier of the second measuring device.

具体地,上述用户的右脚与地面的接触状态发生改变的情况与左脚与地面的接触状态发生改变的情况相同,也就是说,如果左脚与地面的接触状态发生改变为左脚与地面发生接触,那么右脚与地面的接触状态发生改变也为右脚与地面发生接触;而如果左脚与地面的接触状态发生改变为左脚离开地面,那么右脚与地面的接触状态发生改变也为右脚离开地面。Specifically, the change in the contact state between the right foot of the above-mentioned user and the ground is the same as the change in the contact state between the left foot and the ground, that is, if the contact state between the left foot and the ground changes to the left foot being in contact with the ground, then the change in the contact state between the right foot and the ground also changes to the right foot being in contact with the ground; and if the contact state between the left foot and the ground changes to the left foot leaving the ground, then the change in the contact state between the right foot and the ground also changes to the right foot leaving the ground.

同样,如果第二测量设备中的传感器为压力传感器,右脚为移动脚时,那么当压力传感器检测到压力由0开始增加时,可以确定上述右脚与地面发生接触;右脚为支撑脚时,那么当压力传感器检测到压力开始减小时,可以确定上述右脚离开地面;而如果第二测量设备中的传感器为惯性传感器,右脚为移动脚时,那么当惯性传感器检测到加速度开始减小时,可以确定上述右脚与地面发生接触;右脚为支撑脚时,那么当惯性传感器检测到加速度由0开始增加时,可以确定上述右脚离开地面。Similarly, if the sensor in the second measuring device is a pressure sensor, and the right foot is the moving foot, then when the pressure sensor detects that the pressure starts to increase from 0, it can be determined that the right foot is in contact with the ground; when the right foot is the supporting foot, then when the pressure sensor detects that the pressure starts to decrease, it can be determined that the right foot leaves the ground; and if the sensor in the second measuring device is an inertial sensor, and the right foot is the moving foot, then when the inertial sensor detects that the acceleration starts to decrease, it can be determined that the right foot is in contact with the ground; when the right foot is the supporting foot, then when the inertial sensor detects that the acceleration starts to increase from 0, it can be determined that the right foot leaves the ground.

在检测到上述右脚与地面的接触状态发生改变之后,第二测量设备可以获取上述第二测量设备的处理器的第二系统时刻和上述第二测量设备的标识,然后第二测量设备利用声波对上述第二系统时刻和上述第二测量设备的标识进行调制,获得第二声波信号,并将上述第二声波信号发送给第一测量设备,第一测量设备接收第二测量设备发送的第二声波信号。After detecting that the contact state between the right foot and the ground has changed, the second measuring device can obtain the second system moment of the processor of the second measuring device and the identifier of the second measuring device, and then the second measuring device uses sound waves to modulate the second system moment and the identifier of the second measuring device to obtain a second sound wave signal, and send the second sound wave signal to the first measuring device, and the first measuring device receives the second sound wave signal sent by the second measuring device.

步骤205,根据上述第二声波信号获得第二声波信号的第二传输时长,将上述第二传输时长发送给上述电子设备,以使上述电子设备根据上述第一传输时长和上述第二传输时长,以及上述声波在空气中的传播速度确定上述用户连续两步的活动距离。Step 205, obtaining a second transmission duration of the second sound wave signal according to the second sound wave signal, and sending the second transmission duration to the electronic device, so that the electronic device determines the activity distance of two consecutive steps of the user according to the first transmission duration and the second transmission duration, and the propagation speed of the sound wave in the air.

上述用户活动距离的测量方法中,在用户的左脚迈出,并且上述左脚上配置的第一测量设备检测到左脚与地面的接触状态发生改变之后,第一测量设备获取上述第一测量设备的处理器的第一系统时刻和上述第一测量设备的标识,然后利用声波对上述第一系统时刻和上述第一测量设备的标识进行调制,将调制完成的第一声波信号发送给上述用户的右脚上配置的第二测量设备,以使上述第二测量设备根据上述第一声波信号获得上述第一声波信号的第一传输时长,将上述第一传输时长发送给与第一测量设备和第二测量设备连接的电子设备;然后,第一测量设备接收上述第二测量设备发送的第二声波信号,根据上述第二声波信号获得上述第二声波信号的第二传输时长,将上述第二传输时长发送给上述电子设备,以使上述电子设备根据上述第一传输时长和上述第二传输时长,以及声波在空气中的传播速度确定上述用户连续两步的活动距离,从而可以不依赖于经验值,实现对不同人群和/或不同活动场景的用户的活动距离进行测量,提高了用户活动距离测量的准确度,并且上述方法不依赖于额外的GPS模块和射频模块,是一种低功耗和低成本的方案;并且上述方法利用左右脚交互前进的人体运动学特点,通过测量用户连续两步的活动距离,抵消第一测量设备与第二测量设备之间的时钟误差,实现了免时钟同步。In the above-mentioned method for measuring the user's activity distance, after the user's left foot steps out and the first measuring device configured on the above-mentioned left foot detects that the contact state of the left foot with the ground has changed, the first measuring device obtains the first system time of the processor of the above-mentioned first measuring device and the identifier of the above-mentioned first measuring device, and then modulates the above-mentioned first system time and the identifier of the above-mentioned first measuring device using sound waves, and sends the modulated first sound wave signal to the second measuring device configured on the above-mentioned user's right foot, so that the above-mentioned second measuring device obtains the first transmission duration of the above-mentioned first sound wave signal according to the above-mentioned first sound wave signal, and sends the above-mentioned first transmission duration to the electronic device connected to the first measuring device and the second measuring device; then, the first measuring device receives the second sound wave signal sent by the above-mentioned second measuring device, and according to The second sound wave signal obtains the second transmission duration of the second sound wave signal, and sends the second transmission duration to the electronic device, so that the electronic device determines the activity distance of the user's two consecutive steps according to the first transmission duration and the second transmission duration, as well as the propagation speed of the sound wave in the air. This allows the activity distance of users from different groups of people and/or different activity scenes to be measured without relying on empirical values, thereby improving the accuracy of user activity distance measurement. The method does not rely on additional GPS modules and radio frequency modules, and is a low-power and low-cost solution. The method utilizes the human kinematic characteristics of the left and right feet moving forward interactively, and by measuring the activity distance of the user's two consecutive steps, the clock error between the first measuring device and the second measuring device is offset, thereby achieving clock-free synchronization.

图3为本申请用户活动距离的测量方法另一个实施例的流程图,如图3所示,本申请图2所示实施例中,步骤205可以包括:FIG3 is a flow chart of another embodiment of the method for measuring user activity distance of the present application. As shown in FIG3 , in the embodiment shown in FIG2 of the present application, step 205 may include:

步骤301,从上述第二声波信号中解调获得第二系统时刻和上述第二测量设备的标识。Step 301: demodulate the second sound wave signal to obtain the second system time and the identifier of the second measuring device.

步骤302,根据上述第二测量设备的标识确定上述第二声波信号是否来自于第二测量设备。如果是,则执行步骤303;如果上述第二声波信号并非来自于第二测量设备,则执行步骤305。Step 302, determining whether the second sound wave signal comes from the second measuring device according to the identifier of the second measuring device. If yes, executing step 303; if the second sound wave signal does not come from the second measuring device, executing step 305.

步骤303,获取上述第一测量设备当前的第三系统时刻。Step 303: Obtain the current third system time of the first measuring device.

步骤304,根据上述第三系统时刻和上述第二系统时刻,获得第二声波信号的第二传输时长。然后执行步骤306。Step 304: Obtain a second transmission duration of the second sound wave signal according to the third system time and the second system time. Then, execute step 306.

步骤305,丢弃上述第二声波信号。本次流程结束。Step 305: discard the second sound wave signal. This process ends.

步骤306,将上述第二传输时长发送给上述电子设备,以使上述电子设备根据上述第一传输时长和上述第二传输时长,以及上述声波在空气中的传播速度确定上述用户连续两步的活动距离。Step 306: Send the second transmission duration to the electronic device, so that the electronic device determines the activity distance of two consecutive steps of the user according to the first transmission duration, the second transmission duration, and the propagation speed of the sound wave in the air.

图4为本申请用户活动距离的测量方法再一个实施例的流程图,如图4所示,上述用户活动距离的测量方法可以包括:FIG4 is a flow chart of another embodiment of a method for measuring user activity distance of the present application. As shown in FIG4 , the method for measuring user activity distance may include:

步骤401,接收第二测量设备发送的第一传输时长,上述第一传输时长为第一声波信号的传输时长,上述第一传输时长是第二测量设备根据第一声波信号获得的,上述第一声波信号是左脚上配置的第一测量设备发送给上述第二测量设备的。Step 401, receive the first transmission duration sent by the second measuring device, the first transmission duration is the transmission duration of the first sound wave signal, the first transmission duration is obtained by the second measuring device based on the first sound wave signal, and the first sound wave signal is sent by the first measuring device configured on the left foot to the second measuring device.

其中,上述第一测量设备和第二测量设备可以为各种运动类智能设备,包括:可穿戴设备(例如:脚环或脚扣等)、鞋垫或鞋等,本实施例对上述第一测量设备和第二测量设备的具体形态不作限定。Among them, the above-mentioned first measuring device and the second measuring device can be various sports smart devices, including: wearable devices (for example: anklets or foot buckles, etc.), insoles or shoes, etc. This embodiment does not limit the specific forms of the above-mentioned first measuring device and the second measuring device.

步骤402,接收上述第一测量设备发送的第二传输时长,上述第二传输时长为第二声波信号的传输时长,第二传输时长是第一测量设备根据第二声波信号获得的,上述第二声波信号是右脚上配置的第二测量设备发送给第一测量设备的。Step 402, receive the second transmission duration sent by the above-mentioned first measuring device, the above-mentioned second transmission duration is the transmission duration of the second sound wave signal, the second transmission duration is obtained by the first measuring device based on the second sound wave signal, and the above-mentioned second sound wave signal is sent to the first measuring device by the second measuring device configured on the right foot.

步骤403,根据上述第一传输时长和上述第二传输时长,以及声波在空气中的传播速度确定上述用户连续两步的活动距离。Step 403: determining the activity distance of two consecutive steps of the user according to the first transmission duration, the second transmission duration, and the propagation speed of sound waves in the air.

具体地,根据上述第一传输时长和上述第二传输时长,以及声波在空气中的传播速度确定上述用户连续两步的活动距离可以为:Specifically, the activity distance of two consecutive steps of the user can be determined according to the first transmission duration and the second transmission duration, and the propagation speed of sound waves in the air:

电子设备利用第一测量设备调制和解调声波的时延,以及第二测量设备调制和解调声波的时延,对第一传输时长与第二传输时长之和进行校准,获得校准后的传输时长;然后电子设备根据校准后的传输时长和声波在空气中的传播速度,确定上述用户连续两步的活动距离。The electronic device uses the delay of modulating and demodulating the sound wave by the first measuring device and the delay of modulating and demodulating the sound wave by the second measuring device to calibrate the sum of the first transmission duration and the second transmission duration to obtain the calibrated transmission duration; then the electronic device determines the activity distance of two consecutive steps of the above-mentioned user based on the calibrated transmission duration and the propagation speed of the sound wave in the air.

其中,上述电子设备与第一测量设备和第二测量设备连接,上述电子设备可以为智能手机、可穿戴设备或平板电脑等智能电子设备,本实施例对上述电子设备的具体形态不作限定。The electronic device is connected to the first measuring device and the second measuring device. The electronic device may be a smart phone, a wearable device, a tablet computer or other intelligent electronic device. This embodiment does not limit the specific form of the electronic device.

也就是说,在声波调制->发送->空气传输->接收->声波解调过程中,包含第一测量设备或第二测量设备自身的硬件和/或软件的处理时延,因此需要对第一传输时长与第二传输时长之和进行校准,本实施例中,电子设备利用第一测量设备调制和解调声波的时延,以及第二测量设备调制和解调声波的时延,对第一传输时长与第二传输时长之和进行校准,获得校准后的传输时长。在具体实现时,第一测量设备调制和解调声波的时延,以及第二测量设备调制和解调声波的时延,可以通过校准测试预先获得,并存储在上述电子设备中。That is to say, in the process of sound wave modulation->sending->air transmission->receiving->sound wave demodulation, the processing delay of the hardware and/or software of the first measuring device or the second measuring device itself is included, so it is necessary to calibrate the sum of the first transmission duration and the second transmission duration. In this embodiment, the electronic device uses the delay of the first measuring device modulating and demodulating the sound wave, and the delay of the second measuring device modulating and demodulating the sound wave to calibrate the sum of the first transmission duration and the second transmission duration to obtain the calibrated transmission duration. In a specific implementation, the delay of the first measuring device modulating and demodulating the sound wave, and the delay of the second measuring device modulating and demodulating the sound wave, can be obtained in advance through calibration testing and stored in the above-mentioned electronic device.

上述用户活动距离的测量方法中,电子设备接收第二测量设备发送的第一传输时长,接收第一测量设备发送的第二传输时长,其中第一传输时长为第一声波信号的传输时长,第二传输时长为第二声波信号的传输时长;然后电子设备可以根据第一传输时长和上述第二传输时长,以及声波在空气中的传播速度确定用户连续两步的活动距离,从而可以不依赖于经验值,实现对不同人群和/或不同活动场景的用户的活动距离进行测量,提高了用户活动距离测量的准确度,并且上述方法不依赖于额外的GPS模块和射频模块,是一种低功耗和低成本的方案;并且上述方法利用左右脚交互前进的人体运动学特点,通过测量用户连续两步的活动距离,抵消第一测量设备与第二测量设备之间的时钟误差,实现了免时钟同步。In the above-mentioned method for measuring the user's activity distance, the electronic device receives a first transmission duration sent by a second measuring device, and receives a second transmission duration sent by the first measuring device, wherein the first transmission duration is the transmission duration of the first sound wave signal, and the second transmission duration is the transmission duration of the second sound wave signal; then the electronic device can determine the activity distance of the user's two consecutive steps based on the first transmission duration and the above-mentioned second transmission duration, as well as the propagation speed of the sound wave in the air, thereby being able to measure the activity distance of users of different groups and/or different activity scenes without relying on empirical values, thereby improving the accuracy of the user's activity distance measurement, and the above-mentioned method does not rely on additional GPS modules and radio frequency modules, and is a low-power and low-cost solution; and the above-mentioned method utilizes the human body's kinematic characteristics of the interactive movement of the left and right feet, and by measuring the activity distance of the user's two consecutive steps, offsets the clock error between the first measuring device and the second measuring device, thereby achieving clock-free synchronization.

下面以第一测量设备和第二测量设备为智能鞋,智能鞋中的传感器为压力传感器,声波为超声波为例,对本申请实施例提供的用户活动距离的测量方法进行说明,上述测量方法赖以实施的系统框图可以如图5所示,图5为本申请用户活动距离的测量方法赖以实施的系统框图一个实施例的示意图。The following takes the first measuring device and the second measuring device as smart shoes, the sensor in the smart shoes as pressure sensors, and the sound waves as ultrasonic waves as an example to illustrate the method for measuring the user activity distance provided in an embodiment of the present application. The system block diagram on which the above-mentioned measurement method is implemented can be shown in Figure 5, which is a schematic diagram of an embodiment of the system block diagram on which the method for measuring the user activity distance of the present application is implemented.

结合图5,本申请实施例提供的用户活动距离的测量方法可以包括:In conjunction with FIG5 , the method for measuring the user activity distance provided in the embodiment of the present application may include:

第一部分:左右脚测量设备的设备标识管理Part 1: Equipment identification management for left and right foot measurement equipment

步骤11,左右脚都配置相同型号的测量设备,且都处于开启状态,并与电子设备431通过蓝牙低能耗(Bluetooth Low Energy;以下简称:BLE)成功配对;其中,左脚配置的测量设备可以为第一测量设备,下称设备A;右脚配置的测量设备可以为第二测量设备,下称设备B。Step 11, both the left and right feet are equipped with the same model of measuring devices, and both are turned on and successfully paired with the electronic device 431 via Bluetooth Low Energy (BLE); wherein, the measuring device configured for the left foot may be a first measuring device, hereinafter referred to as device A; the measuring device configured for the right foot may be a second measuring device, hereinafter referred to as device B.

步骤12,设备A和设备B通过电子设备431集中管理,分别设置唯一的设备标识:IDA和IDB。电子设备431通过BLE425将设备A的标识IDA通知给设备B,同时将设备B的标识IDB通过BLE415通知给设备A。设备A和设备B分别保存对方的设备标识。Step 12: Device A and device B are centrally managed by electronic device 431, and unique device identifiers IDA and IDB are set respectively. Electronic device 431 notifies device B of device A's identifier IDA via BLE425, and notifies device A of device B's identifier IDB via BLE415. Device A and device B respectively save each other's device identifiers.

第二部分:左脚迈出触地之后,左脚->右脚的步幅测量,参见图6,图6为本申请用户活动距离的测量方法中步幅测量一个实施例的示意图。Part 2: After the left foot steps out and touches the ground, the stride length of the left foot -> right foot is measured, see FIG6 , which is a schematic diagram of an embodiment of the stride length measurement in the method for measuring the user activity distance of the present application.

步骤21,设备A中的压力传感器411持续采集压力信号,发送到处理器412;设备B中的压力传感器421持续采集压力信号,发送到处理器422。In step 21 , the pressure sensor 411 in device A continuously collects pressure signals and sends them to the processor 412 ; the pressure sensor 421 in device B continuously collects pressure signals and sends them to the processor 422 .

步骤22,左脚先迈出触地,设备A中的压力传感器411通过比对压力变化曲线,识别出左脚的触地事件,发送测距脉冲信号到调制/解调模块413。Step 22 , the left foot steps out first and touches the ground. The pressure sensor 411 in device A identifies the left foot touching the ground event by comparing the pressure change curve, and sends a ranging pulse signal to the modulation/demodulation module 413 .

步骤23,调制/解调模块413获取处理器412的系统时间T1、设备标识IDA,用40KHZ超声波完成调制,发送到超声波换能器414。Step 23 , the modulation/demodulation module 413 obtains the system time T1 and the device identification IDA of the processor 412 , performs modulation using 40KHZ ultrasonic waves, and sends the result to the ultrasonic transducer 414 .

其中,超声波的频率不限于40KHZ,也可以是其他频率;上述系统时间T1需要定义出年月日时分秒毫秒微秒。The frequency of the ultrasonic wave is not limited to 40KHZ, but may be other frequencies; the system time T1 needs to define the year, month, day, hour, minute, second, millisecond, and microsecond.

步骤24,超声波换能器414将电信号转换为声波信号,通过空气传播发送到设备B的超声波换能器424。In step 24, the ultrasonic transducer 414 converts the electrical signal into a sound wave signal and transmits it to the ultrasonic transducer 424 of device B through air propagation.

步骤25,超声波换能器424将声波信号转换为电信号,发送到调制/解调模块423。Step 25 , the ultrasonic transducer 424 converts the sound wave signal into an electrical signal and sends it to the modulation/demodulation module 423 .

步骤26,调制/解调模块423从电信号中解调出系统时间T1和设备标识IDA,判断该声波信号是否来源于设备A。如果是,则将上述电信号发送到处理器422,否则丢弃该声波信号。Step 26, the modulation/demodulation module 423 demodulates the system time T1 and the device identifier IDA from the electrical signal to determine whether the sound wave signal comes from the device A. If so, the electrical signal is sent to the processor 422, otherwise the sound wave signal is discarded.

步骤27,处理器422获取此刻设备B的系统时间T2,得到TA=T2-T1,通过BLE425发送到电子设备431。Step 27 , the processor 422 obtains the system time T2 of the device B at this moment, obtains TA = T2 - T1, and sends it to the electronic device 431 via the BLE 425 .

其中,声波速率与温度T相关,声波速率V=331.4+0.607T,可考虑在设备A和设备B中集成温度传感器模块,获取更准确的声波速率。本申请实施例经过分析,获知温度带来的误差可控,声波速率可以采用经典值340m/s计算。The acoustic wave velocity is related to the temperature T, and the acoustic wave velocity V = 331.4 + 0.607T. It is possible to integrate a temperature sensor module in device A and device B to obtain a more accurate acoustic wave velocity. After analysis, the embodiment of the present application found that the error caused by temperature is controllable, and the acoustic wave velocity can be calculated using the classic value of 340 m/s.

第三部分:右脚迈出触地后,右脚->左脚的步幅测量,同样参照图6,该测量过程与第二部分左脚->右脚的测量过程类似,包括:Part 3: After the right foot steps out and touches the ground, the stride length measurement from right foot to left foot is also referred to FIG. 6 . The measurement process is similar to the measurement process from left foot to right foot in Part 2, including:

步骤31,右脚迈出触地,压力传感器421通过比对压力变化曲线,识别出右脚的触地事件,发送测距脉冲信号到调制/解调模块423。Step 31 , the right foot steps out and touches the ground. The pressure sensor 421 identifies the right foot touching the ground event by comparing the pressure change curve and sends a ranging pulse signal to the modulation/demodulation module 423 .

步骤32,调制/解调模块423获取处理器422的系统时间T3、设备标识IDB,用40KHZ超声波完成调制,发送到超声波换能器424。Step 32 , the modulation/demodulation module 423 obtains the system time T3 and the device identifier IDB of the processor 422 , completes modulation using 40KHZ ultrasonic waves, and sends them to the ultrasonic transducer 424 .

其中,超声波的频率不限于40KHZ,也可以是其他频率;上述系统时间T3需要定义出年月日时分秒毫秒微秒。The frequency of the ultrasonic wave is not limited to 40KHZ, but may be other frequencies; the system time T3 needs to define the year, month, day, hour, minute, second, millisecond, and microsecond.

步骤33,超声波换能器424将电信号转换为声波信号,通过空气传播发送到设备A的超声波换能器414。In step 33, the ultrasonic transducer 424 converts the electrical signal into a sound wave signal and transmits it to the ultrasonic transducer 414 of device A through air propagation.

步骤34,超声波换能器414将声波信号转换为电信号,发送到调制/解调模块413。Step 34 , the ultrasonic transducer 414 converts the sound wave signal into an electrical signal and sends it to the modulation/demodulation module 413 .

步骤35,调制/解调模块413从电信号中解调出系统时间T3和设备标识IDB,判断该声波信号是否来源于设备B。如果是,则将上述电信号发送到处理器412,否则丢弃该声波信号。Step 35, the modulation/demodulation module 413 demodulates the system time T3 and the device identifier IDB from the electrical signal to determine whether the sound wave signal comes from device B. If yes, the electrical signal is sent to the processor 412, otherwise the sound wave signal is discarded.

步骤36,处理器412获取此刻设备A的系统时间T4,得到TB=T4–T3,通过BLE415发送到电子设备431。Step 36 , the processor 412 obtains the system time T4 of the device A at this moment, obtains TB = T4−T3, and sends it to the electronic device 431 via the BLE 415 .

第四部分:时钟误差消减,得到准确的步幅距离Part 4: Clock error reduction to get accurate stride distance

步骤41,电子设备431计算TAB=TA+TBStep 41 , the electronic device 431 calculates T AB = TA + TB .

时钟误差消减原理:Clock error reduction principle:

假设设备A和设备B之间存在时钟误差ΔT,且设备A比设备B的系统时间慢。超声波在左脚->右脚的真实传输时长为TAT,超声波在右脚->左脚的真实传输时长为TBT,则:Assume that there is a clock error ΔT between device A and device B, and the system time of device A is slower than that of device B. The actual transmission time of ultrasound from left foot to right foot is T AT , and the actual transmission time of ultrasound from right foot to left foot is T BT , then:

从上式可以看出,TAB刚好等于超声波在用户连续两步之间的真实传输时长之和。It can be seen from the above formula that T AB is exactly equal to the sum of the actual transmission time of the ultrasonic wave between two consecutive steps of the user.

步骤42,在超声波调制->发送->空气传送->接收->超声波解调过程中,包含设备A和设备B自身的硬件和软件处理时延,需要进行校准,参见图7,图7为本申请用户活动距离的测量方法中时延校准一个实施例的示意图。Step 42, in the process of ultrasonic modulation->sending->air transmission->receiving->ultrasonic demodulation, the hardware and software processing delays of device A and device B themselves need to be calibrated, see Figure 7, which is a schematic diagram of an embodiment of delay calibration in the user activity distance measurement method of the present application.

图7中,Tx为设备处理器下发测距指令开始到本设备超声波换能器发出声波所需的时间;In FIG7 , Tx is the time required from the device processor sending the ranging instruction to the ultrasonic transducer of the device emitting the sound wave;

Ty为设备超声波换能器接收到声波到解调完毕所需的时间;Ty is the time required for the ultrasonic transducer of the device to receive the sound wave and complete the demodulation;

T:超声波在设备A和设备B之间的传输时长。T: The transmission time of ultrasonic waves between device A and device B.

对于相同型号的设备A和设备B来说,Tx和Ty是相对固定的,可通过校准测试预置在电子设备431的内存中。For devices A and B of the same model, Tx and Ty are relatively fixed and can be preset in the memory of the electronic device 431 through calibration testing.

校准完毕后,用户连续两步的活动距离S=(TAB–2Tx–2Ty)×340。After calibration, the user's active distance for two consecutive steps is S = (T AB – 2Tx – 2Ty) × 340.

本申请实施例提供的用户活动距离的测量方法是一个通用方案,可应用于各种运动智能设备,无需GPS和额外的射频模块,且不依赖于三方时钟,硬件实现简单。The method for measuring user activity distance provided in the embodiment of the present application is a general solution that can be applied to various sports smart devices. It does not require GPS and additional radio frequency modules, does not rely on third-party clocks, and has simple hardware implementation.

典型应用场景可以包括:Typical application scenarios may include:

1、活动能力评估:活动距离是衡量老年人健康状况的一个重要指标,老年人步态受损,群体间步幅差异性大,需要更高的准确度;1. Activity assessment: Activity distance is an important indicator to measure the health status of the elderly. The gait of the elderly is impaired, and the stride length varies greatly among groups, so higher accuracy is required;

2、防损伤跑姿指导:跑步场景最常见的损伤问题是步幅过大,通过本方法可以结合连续的两次步幅对用户提供科学步幅指导;2. Anti-injury running posture guidance: The most common injury problem in running scenes is excessive stride. This method can provide scientific stride guidance to users by combining two consecutive strides.

3、体能评估:跑步或者走路场景,无需GPS定位,可通过可穿戴设备直接获得精确的距离和配速,实现精准活动卡路里和最大摄氧量的评估;3. Physical fitness assessment: In running or walking scenarios, without GPS positioning, accurate distance and pace can be directly obtained through wearable devices, realizing accurate activity calories and maximum oxygen uptake assessment;

4、活动轨迹描绘:户外登山场景,无GPS或者GPS信号弱时,可借助步幅做辅助登山轨迹路线描绘,便于轨迹原路返航。4. Activity track description: In outdoor mountaineering scenes, when there is no GPS or the GPS signal is weak, you can use the stride length to assist in describing the mountaineering track route, so as to facilitate returning to the original route.

可以理解的是,上述实施例中的部分或全部步骤骤或操作仅是示例,本申请实施例还可以执行其它操作或者各种操作的变形。此外,各个步骤可以按照上述实施例呈现的不同的顺序来执行,并且有可能并非要执行上述实施例中的全部操作。It is to be understood that some or all of the steps or operations in the above embodiments are merely examples, and the present application embodiments may also perform other operations or variations of various operations. In addition, the various steps may be performed in different orders presented in the above embodiments, and it is possible that not all of the operations in the above embodiments need to be performed.

图8为本申请用户活动距离的测量设备一个实施例的结构示意图,本实施例以用户活动距离的测量设备为第一测量设备为例进行说明,上述测量设备可以为各种运动类智能设备,包括:可穿戴设备(例如:脚环或脚扣等)、鞋垫或鞋等,本实施例对上述测量设备的具体形态不作限定。Figure 8 is a structural schematic diagram of an embodiment of a user activity distance measuring device of the present application. This embodiment is illustrated by taking the user activity distance measuring device as the first measuring device as an example. The above-mentioned measuring device can be various sports-related smart devices, including: wearable devices (for example: anklets or foot buckles, etc.), insoles or shoes, etc. This embodiment does not limit the specific form of the above-mentioned measuring device.

上述测量设备可以包括:传感器810;声波调制解调器820;声波收发器830;通信模块840;一个或多个处理器850;存储器860;多个应用程序;以及一个或多个计算机程序,其中上述一个或多个计算机程序被存储在上述存储器860中,上述一个或多个计算机程序包括指令,当上述指令被上述测量设备执行时,使得上述测量设备执行以下步骤:The measuring device may include: a sensor 810; an acoustic wave modem 820; an acoustic wave transceiver 830; a communication module 840; one or more processors 850; a memory 860; a plurality of applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory 860, and the one or more computer programs include instructions, and when the instructions are executed by the measuring device, the measuring device performs the following steps:

在用户的左脚迈出,并且上述左脚上配置的第一测量设备检测到上述左脚与地面的接触状态发生改变之后,获取上述第一测量设备的处理器的第一系统时刻和上述第一测量设备的标识;After the user's left foot steps out and the first measuring device configured on the left foot detects that the contact state between the left foot and the ground changes, obtaining a first system time of a processor of the first measuring device and an identifier of the first measuring device;

利用声波对上述第一系统时刻和上述第一测量设备的标识进行调制;Modulating the first system time and the identifier of the first measuring device by using sound waves;

将调制完成的第一声波信号发送给上述用户的右脚上配置的第二测量设备,以使上述第二测量设备根据上述第一声波信号获得上述第一声波信号的第一传输时长,将上述第一传输时长发送给与上述第一测量设备和上述第二测量设备连接的电子设备;Sending the modulated first sound wave signal to a second measuring device configured on the right foot of the user, so that the second measuring device obtains a first transmission duration of the first sound wave signal according to the first sound wave signal, and sends the first transmission duration to an electronic device connected to the first measuring device and the second measuring device;

接收上述第二测量设备发送的第二声波信号,上述第二声波信号是上述第二测量设备在上述用户的右脚与地面的接触状态发生改变之后发送的,上述第二声波信号中包括上述第二测量设备的处理器的第二系统时刻和上述第二测量设备的标识;receiving a second sound wave signal sent by the second measuring device, wherein the second sound wave signal is sent by the second measuring device after the contact state between the right foot of the user and the ground changes, and the second sound wave signal includes a second system time of a processor of the second measuring device and an identifier of the second measuring device;

根据上述第二声波信号获得上述第二声波信号的第二传输时长,将上述第二传输时长发送给上述电子设备,以使上述电子设备根据上述第一传输时长和上述第二传输时长,以及上述声波在空气中的传播速度确定上述用户连续两步的活动距离。A second transmission duration of the second sound wave signal is obtained according to the second sound wave signal, and the second transmission duration is sent to the electronic device, so that the electronic device determines the activity distance of two consecutive steps of the user according to the first transmission duration and the second transmission duration, and the propagation speed of the sound wave in the air.

其中一种可能的实现方式中,当上述指令被上述测量设备执行时,使得上述测量设备执行根据上述第二声波信号获得上述第二声波信号的第二传输时长的步骤包括:In one possible implementation, when the instruction is executed by the measuring device, the step of causing the measuring device to obtain a second transmission duration of the second sound wave signal according to the second sound wave signal includes:

从上述第二声波信号中解调获得上述第二系统时刻和上述第二测量设备的标识;Demodulating the second sound wave signal to obtain the second system time and the identifier of the second measuring device;

根据上述第二测量设备的标识确定上述第二声波信号是否来自于上述第二测量设备;Determining whether the second sound wave signal comes from the second measuring device according to the identifier of the second measuring device;

如果是,则获取上述第一测量设备当前的第三系统时刻;If yes, obtaining the current third system time of the first measuring device;

根据上述第三系统时刻和上述第二系统时刻,获得上述第二声波信号的第二传输时长。According to the third system time and the second system time, a second transmission duration of the second sound wave signal is obtained.

其中一种可能的实现方式中,当上述指令被上述测量设备执行时,使得上述测量设备执行根据上述第二测量设备的标识确定上述第二声波信号是否来自于上述第二测量设备的步骤之后,还执行以下步骤:In one possible implementation, when the instruction is executed by the measuring device, the measuring device further performs the following steps after performing the step of determining whether the second sound wave signal comes from the second measuring device according to the identifier of the second measuring device:

如果上述第二声波信号并非来自于上述第二测量设备,则丢弃上述第二声波信号。If the second sound wave signal does not come from the second measuring device, the second sound wave signal is discarded.

图8所示的用户活动距离的测量设备可以用于执行本申请图2~图3所示实施例提供的方法中的功能/步骤。The user activity distance measurement device shown in FIG. 8 can be used to execute the functions/steps in the method provided in the embodiments shown in FIG. 2 to FIG. 3 of the present application.

如图8所示,用户活动距离的测量设备800包括传感器810、声波调制解调器820、声波收发器830、通信模块840、处理器850和存储器860。其中,传感器810、声波调制解调器820、声波收发器830、通信模块840、处理器850和存储器860之间可以通过内部连接通路互相通信,传递控制和/或数据信号,该存储器860用于存储计算机程序,该处理器850用于从该存储器860中调用并运行该计算机程序。As shown in Fig. 8, the user activity distance measuring device 800 includes a sensor 810, an acoustic wave modem 820, an acoustic wave transceiver 830, a communication module 840, a processor 850 and a memory 860. Among them, the sensor 810, the acoustic wave modem 820, the acoustic wave transceiver 830, the communication module 840, the processor 850 and the memory 860 can communicate with each other through an internal connection path to transmit control and/or data signals, the memory 860 is used to store a computer program, and the processor 850 is used to call and run the computer program from the memory 860.

上述处理器850可以和存储器860可以合成一个处理装置,更常见的是彼此独立的部件,处理器850用于执行存储器860中存储的程序代码来实现上述功能。具体实现时,该存储器860也可以集成在处理器850中,或者,独立于处理器850。应当理解的是,处理器850可以对应于图5中的处理器412。The processor 850 and the memory 860 may be combined into a processing device, or more commonly, they are independent components, and the processor 850 is used to execute the program code stored in the memory 860 to implement the above functions. In specific implementation, the memory 860 may also be integrated into the processor 850, or may be independent of the processor 850. It should be understood that the processor 850 may correspond to the processor 412 in FIG. 5 .

传感器810,用于对脚与地面的接触状态发生改变的情况进行检测,可以为压力传感器,也可以为惯性传感器,本实施例对此不作限定,可以理解的是,当传感器810为压力传感器时,可以对应于图5中的压力传感器411。Sensor 810 is used to detect changes in the contact state between the foot and the ground. It can be a pressure sensor or an inertial sensor. This embodiment does not limit this. It can be understood that when sensor 810 is a pressure sensor, it can correspond to pressure sensor 411 in Figure 5.

声波调制解调器820,用于对声波进行调制和解调,可以理解的是,声波调制解调器820对应于图5中的调制/解调模块413。The sound wave modem 820 is used to modulate and demodulate the sound waves. It can be understood that the sound wave modem 820 corresponds to the modulation/demodulation module 413 in Figure 5.

声波收发器830,用于发送或接收声波信号,可以理解的是,声波收发器830对应于图5中的超声波换能器414。The sound wave transceiver 830 is used to send or receive sound wave signals. It can be understood that the sound wave transceiver 830 corresponds to the ultrasonic transducer 414 in FIG. 5 .

通信模块840,用于与电子设备进行通信,通信模块840可以为蓝牙模块、BLE模块或无线通信模块,本实施例对通信模块840的具体形式不作限定,可以理解的是,当通信模块840为BLE模块时,可以对应于图5中的BLE415。The communication module 840 is used to communicate with the electronic device. The communication module 840 can be a Bluetooth module, a BLE module or a wireless communication module. The present embodiment does not limit the specific form of the communication module 840. It can be understood that when the communication module 840 is a BLE module, it can correspond to BLE415 in FIG. 5 .

应理解,图8所示的用户活动距离的测量设备800能够实现图2~图3所示实施例提供的方法的各个过程。用户活动距离的测量设备800中的各个模块的操作和/或功能,分别为了实现上述方法实施例中的相应流程。具体可参见图2~图3所示方法实施例中的描述,为避免重复,此处适当省略详细描述。It should be understood that the user activity distance measurement device 800 shown in FIG8 can implement each process of the method provided in the embodiments shown in FIG2 to FIG3. The operations and/or functions of each module in the user activity distance measurement device 800 are respectively to implement the corresponding processes in the above method embodiments. For details, please refer to the description in the method embodiments shown in FIG2 to FIG3. To avoid repetition, the detailed description is appropriately omitted here.

应理解,图8所示的用户活动距离的测量设备800中的处理器850可以是片上系统SOC,该处理器850中可以包括中央处理器(Central Processing Unit;以下简称:CPU),还可以进一步包括其他类型的处理器,例如:图像处理器(Graphics Processing Unit;以下简称:GPU)等。It should be understood that the processor 850 in the user activity distance measuring device 800 shown in Figure 8 can be a system on a chip SOC, and the processor 850 can include a central processing unit (Central Processing Unit; hereinafter referred to as: CPU), and can further include other types of processors, such as: a graphics processor (Graphics Processing Unit; hereinafter referred to as: GPU), etc.

总之,处理器850内部的各部分处理器或处理单元可以共同配合实现之前的方法流程,且各部分处理器或处理单元相应的软件程序可存储在存储器860中。In summary, the various processors or processing units within the processor 850 can work together to implement the previous method flow, and the corresponding software programs of the various processors or processing units can be stored in the memory 860.

图9为本申请电子设备一个实施例的结构示意图,上述电子设备可以为智能手机、可穿戴设备或平板电脑等智能电子设备,本实施例对上述电子设备的具体形态不作限定。FIG9 is a schematic diagram of the structure of an embodiment of an electronic device of the present application. The electronic device may be a smart electronic device such as a smart phone, a wearable device or a tablet computer. The present embodiment does not limit the specific form of the electronic device.

其中,上述电子设备可以包括:The electronic device may include:

一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序,其中上述一个或多个计算机程序被存储在上述存储器中,上述一个或多个计算机程序包括指令,当上述指令被上述电子设备执行时,使得上述电子设备执行以下步骤:One or more processors; a memory; a plurality of applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, and when the instructions are executed by the electronic device, the electronic device performs the following steps:

接收第二测量设备发送的第一传输时长,上述第一传输时长为第一声波信号的传输时长,上述第一传输时长是上述第二测量设备根据上述第一声波信号获得的,上述第一声波信号是上述左脚上配置的第一测量设备发送给上述第二测量设备的;Receive a first transmission duration sent by a second measuring device, where the first transmission duration is a transmission duration of a first sound wave signal, the first transmission duration is obtained by the second measuring device according to the first sound wave signal, and the first sound wave signal is sent by the first measuring device configured on the left foot to the second measuring device;

接收上述第一测量设备发送的第二传输时长,上述第二传输时长为第二声波信号的传输时长,上述第二传输时长是上述第一测量设备根据上述第二声波信号获得的,上述第二声波信号是上述右脚上配置的上述第二测量设备发送给上述第一测量设备的;Receive a second transmission duration sent by the first measuring device, where the second transmission duration is the transmission duration of the second sound wave signal, the second transmission duration is obtained by the first measuring device according to the second sound wave signal, and the second sound wave signal is sent by the second measuring device configured on the right foot to the first measuring device;

根据上述第一传输时长和上述第二传输时长,以及声波在空气中的传播速度确定上述用户连续两步的活动距离。The activity distance of two consecutive steps of the user is determined according to the first transmission duration, the second transmission duration, and the propagation speed of the sound wave in the air.

其中一种可能的实现方式中,当上述指令被上述电子设备执行时,使得上述电子设备执行根据上述第一传输时长和上述第二传输时长,以及声波在空气中的传播速度确定上述用户连续两步的活动距离的步骤包括:In one possible implementation manner, when the instruction is executed by the electronic device, the electronic device executes the step of determining the activity distance of two consecutive steps of the user according to the first transmission duration and the second transmission duration, and the propagation speed of sound waves in the air, including:

利用上述第一测量设备调制和解调声波的时延,以及上述第二测量设备调制和解调声波的时延,对上述第一传输时长与上述第二传输时长之和进行校准,获得校准后的传输时长;Using the time delay of the first measuring device modulating and demodulating the sound wave and the time delay of the second measuring device modulating and demodulating the sound wave, calibrate the sum of the first transmission duration and the second transmission duration to obtain a calibrated transmission duration;

根据校准后的传输时长和声波在空气中的传播速度确定上述用户连续两步的活动距离。The activity distance of two consecutive steps of the user is determined according to the calibrated transmission time and the propagation speed of the sound wave in the air.

图9所示的电子设备可以用于执行本申请图4所示实施例提供的方法中的功能/步骤。The electronic device shown in FIG. 9 can be used to execute the functions/steps in the method provided in the embodiment shown in FIG. 4 of the present application.

图9所示的电子设备可以是电子设备也可以是内置于上述电子设备的电路设备。The electronic device shown in FIG. 9 may be an electronic device or a circuit device built into the above electronic device.

图9示出了电子设备100的结构示意图。FIG. 9 shows a schematic structural diagram of the electronic device 100 .

电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(Universal Serial Bus;以下简称:USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(Subscriber Identification Module;以下简称:SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(Application Processor;以下简称:AP),调制解调处理器,图形处理器(GraphicsProcessing Unit;以下简称:GPU),图像信号处理器(Image Signal Processor;以下简称:ISP),控制器,视频编解码器,数字信号处理器(Digital Signal Processor;以下简称:DSP),基带处理器,和/或神经网络处理器(Neural-network Processing Unit;以下简称:NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (Application Processor; hereinafter referred to as: AP), a modem processor, a graphics processor (Graphics Processing Unit; hereinafter referred to as: GPU), an image signal processor (Image Signal Processor; hereinafter referred to as: ISP), a controller, a video codec, a digital signal processor (Digital Signal Processor; hereinafter referred to as: DSP), a baseband processor, and/or a neural network processor (Neural-network Processing Unit; hereinafter referred to as: NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(Inter-integrated Circuit;以下简称:I2C)接口,集成电路内置音频(Inter-integratedCircuit Sound;以下简称:I2S)接口,脉冲编码调制(Pulse Code Modulation;以下简称:PCM)接口,通用异步收发传输器(Universal Asynchronous Receiver/Transmitter;以下简称:UART)接口,移动产业处理器接口(Mobile Industry Processor Interface;以下简称:MIPI),通用输入输出(General-Purpose Input/Output;以下简称:GPIO)接口,用户标识模块(Subscriber Identity Module;以下简称:SIM)接口,和/或通用串行总线(Universal Serial Bus;以下简称:USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an Inter-integrated Circuit (hereinafter referred to as: I2C) interface, an Inter-integrated Circuit Sound (hereinafter referred to as: I2S) interface, a Pulse Code Modulation (hereinafter referred to as: PCM) interface, a Universal Asynchronous Receiver/Transmitter (hereinafter referred to as: UART) interface, a Mobile Industry Processor Interface (hereinafter referred to as: MIPI), a General-Purpose Input/Output (hereinafter referred to as: GPIO) interface, a Subscriber Identity Module (hereinafter referred to as: SIM) interface, and/or a Universal Serial Bus (hereinafter referred to as: USB) interface, etc.

I2C接口是一种双向同步串行总线,包括一根串行数据线(Serial Data Line;以下简称:SDA)和一根串行时钟线(Derail Clock Line;以下简称:SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (Serial Data Line; hereinafter referred to as: SDA) and a serial clock line (Derail Clock Line; hereinafter referred to as: SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 can be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 can be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface to realize the touch function of the electronic device 100.

I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.

PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(displayserial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.

GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(Low Noise Amplifier;以下简称:LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (Low Noise Amplifier; hereinafter referred to as: LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

无线通信模块160可以提供应用在电子设备100上的包括无线局域网(WirelessLocal Area Networks;以下简称:WLAN)(如无线保真(Wireless Fidelity;以下简称:Wi-Fi网络),蓝牙(Bluetooth;以下简称:BT),全球导航卫星系统(Global NavigationSatellite System;以下简称:GNSS),调频(Frequency Modulation;以下简称:FM),近距离无线通信技术(Near Field Communication;以下简称:NFC),红外技术(Infrared;以下简称:IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc.) applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(Global System for Mobile Communications;以下简称:GSM),通用分组无线服务(General Packet Radio Service;以下简称:GPRS),码分多址接入(Code Division Multiple Access;以下简称:CDMA),宽带码分多址(WidebandCode Division Multiple Access;以下简称:WCDMA),时分码分多址(Time-Division CodeDivision Multiple Access;以下简称:TD-SCDMA),长期演进(Long Term Evolution;以下简称:LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(Global Positioning System;以下简称:GPS),全球导航卫星系统(Global NavigationSatellite System;以下简称:GLONASS),北斗卫星导航系统(Beidou NavigationSatellite System;以下简称:BDS),准天顶卫星系统(Quasi-Zenith Satellite System;以下简称:QZSS)和/或星基增强系统(Satellite Based Augmentation Systems;以下简称:SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (hereinafter referred to as GSM), General Packet Radio Service (hereinafter referred to as GPRS), Code Division Multiple Access (hereinafter referred to as CDMA), Wideband Code Division Multiple Access (hereinafter referred to as WCDMA), Time-Division Code Division Multiple Access (hereinafter referred to as TD-SCDMA), Long Term Evolution (hereinafter referred to as LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology. The GNSS may include a Global Positioning System (GPS), a Global Navigation Satellite System (GLONASS), a Beidou Navigation Satellite System (BDS), a Quasi-Zenith Satellite System (QZSS) and/or a Satellite Based Augmentation System (SBAS).

电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(Liquid Crystal Display;以下简称:LCD),有机发光二极管(Organic Light-Emitting Diode;以下简称:OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(Active-Matrix Organic Light Emitting Diode;以下简称:AMOLED),柔性发光二极管(Flex Light-Emitting Diode;以下简称:FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(Quantum Dot Light Emitting Diodes;以下简称:QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (Liquid Crystal Display; hereinafter referred to as: LCD), an organic light-emitting diode (Organic Light-Emitting Diode; hereinafter referred to as: OLED), an active matrix organic light-emitting diode or an active matrix organic light-emitting diode (Active-Matrix Organic Light Emitting Diode; hereinafter referred to as: AMOLED), a flexible light-emitting diode (Flex Light-Emitting Diode; hereinafter referred to as: FLED), Miniled, MicroLed, Micro-oLed, Quantum Dot Light Emitting Diodes (Quantum Dot Light Emitting Diodes; hereinafter referred to as: QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(Charge Coupled Device;以下简称:CCD)或互补金属氧化物半导体(Complementary Metal-Oxide-Semiconductor;以下简称:CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (Charge Coupled Device; hereinafter referred to as: CCD) or a complementary metal oxide semiconductor (Complementary Metal-Oxide-Semiconductor; hereinafter referred to as: CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(Moving Picture Experts Group;以下简称:MPEG)1,MPEG2,MPEG3,MPEG4等。The video codec is used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in various coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

NPU为神经网络(Neural-Network;以下简称:NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural network (NN) computing processor that quickly processes input information by drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, and can also continuously self-learn. NPU can realize applications such as intelligent cognition of electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, etc.

外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(Universal Flash Storage;以下简称:UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.). The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.). In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (Universal Flash Storage; hereinafter referred to as: UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and/or instructions stored in a memory provided in the processor.

电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.

耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(Open Mobile Terminal Platform;以下简称:OMTP)标准接口,美国蜂窝电信工业协会(Cellular Telecommunications Industry Association ofthe USA;以下简称:CTIA)标准接口。The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130, or a 3.5 mm Open Mobile Terminal Platform (OMTP) standard interface or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.

压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.

气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.

磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.

加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.

接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense the brightness of the ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.

指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.

按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.

SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行本申请图2~图3所示实施例提供的方法。The embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the method provided in the embodiment shown in Figures 2 to 3 of the present application.

本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行本申请图4所示实施例提供的方法。An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the method provided in the embodiment shown in FIG. 4 of the present application.

本申请实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行本申请图2~图3所示实施例提供的方法。The embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is run on a computer, it enables the computer to execute the method provided by the embodiment shown in Figures 2 to 3 of the present application.

本申请实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行本申请图4所示实施例提供的方法。An embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is run on a computer, it enables the computer to execute the method provided by the embodiment shown in FIG. 4 of the present application.

本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a和b,a和c,b和c或a和b和c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And/or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character "/" generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.

本领域普通技术人员可以意识到,本文中公开的实施例中描述的各单元及算法步骤,能够以电子硬件、计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

在本申请所提供的几个实施例中,任一功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory;以下简称:ROM)、随机存取存储器(Random Access Memory;以下简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。In several embodiments provided in the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), disk or optical disk, and other media that can store program codes.

以上所述,仅为本申请的具体实施方式,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the present application. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application should be based on the protection scope of the claims.

Claims (12)

1. A method for measuring a distance of a user's activity, comprising:
after a user takes a step of a left foot and a first measuring device configured on the left foot detects that the contact state of the left foot and the ground is changed, acquiring a first system time of a processor of the first measuring device and an identification of the first measuring device;
modulating the first system time and the identification of the first measuring device by using sound waves;
Transmitting the modulated first sound wave signal to a second measuring device configured on the right foot of the user, so that the second measuring device obtains a first transmission time length of the first sound wave signal according to the first sound wave signal, and transmits the first transmission time length to an electronic device connected with the first measuring device and the second measuring device;
receiving a second acoustic signal sent by the second measuring device, wherein the second acoustic signal is sent by the second measuring device after the contact state of the right foot of the user with the ground is changed, and the second acoustic signal comprises a second system time of a processor of the second measuring device and an identifier of the second measuring device;
and obtaining a second transmission time length of the second sound signal according to the second sound signal, and sending the second transmission time length to the electronic equipment so that the electronic equipment can determine the moving distance of the user in two continuous steps according to the first transmission time length, the second transmission time length and the propagation speed of the sound wave in the air.
2. The method of claim 1, wherein the obtaining the second transmission duration of the second acoustic signal from the second acoustic signal comprises:
demodulating the second acoustic signal to obtain the second system time and the identification of the second measuring device;
determining whether the second acoustic signal is from the second measurement device according to the identification of the second measurement device;
if yes, acquiring the current third system time of the first measuring equipment;
and obtaining a second transmission duration of the second acoustic signal according to the third system time and the second system time.
3. The method of claim 2, wherein after determining whether the second acoustic signal is from the second measurement device based on the identification of the second measurement device, further comprising:
The second acoustic signal is discarded if the second acoustic signal is not from the second measurement device.
4. A method for measuring a distance of a user's activity, comprising:
Receiving a first transmission time length sent by a second measuring device, wherein the first transmission time length is a transmission time length of a first sound wave signal, the first transmission time length is obtained by the second measuring device according to the first sound wave signal, and the first sound wave signal is sent to the second measuring device by a first measuring device configured on a left foot;
Receiving a second transmission time length sent by the first measurement device, wherein the second transmission time length is a transmission time length of a second acoustic signal, the second transmission time length is obtained by the first measurement device according to the second acoustic signal, and the second acoustic signal is sent to the first measurement device by the second measurement device configured on a right foot;
and determining the moving distance of the user in two continuous steps according to the first transmission time length, the second transmission time length and the propagation speed of the sound wave in the air.
5. The method of claim 4, wherein said determining the active distance of the user from the first transmission duration and the second transmission duration, and the propagation speed of the sound wave in the air comprises:
calibrating the sum of the first transmission time length and the second transmission time length by using the time delay of modulating and demodulating the sound wave by the first measuring equipment and the time delay of modulating and demodulating the sound wave by the second measuring equipment to obtain the calibrated transmission time length;
And determining the continuous two-step active distance of the user according to the calibrated transmission time length and the propagation speed of the sound wave in the air.
6. A measurement device for a distance of a user's activity, wherein the measurement device is a first measurement device, the measurement device comprising: a sensor; an acoustic wave modem; an acoustic transceiver; a communication module; one or more processors; a memory; a plurality of applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions, which when executed by the measurement device, cause the measurement device to perform the steps of:
after a user takes a step of a left foot and a first measuring device configured on the left foot detects that the contact state of the left foot and the ground is changed, acquiring a first system time of a processor of the first measuring device and an identification of the first measuring device;
modulating the first system time and the identification of the first measuring device by using sound waves;
Transmitting the modulated first sound wave signal to a second measuring device configured on the right foot of the user, so that the second measuring device obtains a first transmission time length of the first sound wave signal according to the first sound wave signal, and transmits the first transmission time length to an electronic device connected with the first measuring device and the second measuring device;
receiving a second acoustic signal sent by the second measuring device, wherein the second acoustic signal is sent by the second measuring device after the contact state of the right foot of the user with the ground is changed, and the second acoustic signal comprises a second system time of a processor of the second measuring device and an identifier of the second measuring device;
and obtaining a second transmission time length of the second sound signal according to the second sound signal, and sending the second transmission time length to the electronic equipment so that the electronic equipment can determine the moving distance of the user in two continuous steps according to the first transmission time length, the second transmission time length and the propagation speed of the sound wave in the air.
7. The measurement device of claim 6, wherein the instructions, when executed by the measurement device, cause the measurement device to perform the step of obtaining the second transmission duration of the second acoustic signal from the second acoustic signal comprises:
demodulating the second acoustic signal to obtain the second system time and the identification of the second measuring device;
determining whether the second acoustic signal is from the second measurement device according to the identification of the second measurement device;
if yes, acquiring the current third system time of the first measuring equipment;
and obtaining a second transmission duration of the second acoustic signal according to the third system time and the second system time.
8. The measurement device of claim 7, wherein the instructions, when executed by the measurement device, cause the measurement device to perform the step of determining from the identity of the second measurement device whether the second acoustic signal is from the second measurement device, further perform the step of:
The second acoustic signal is discarded if the second acoustic signal is not from the second measurement device.
9. An electronic device, comprising:
One or more processors; a memory; a plurality of applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions, which when executed by the electronic device, cause the electronic device to perform the steps of:
Receiving a first transmission time length sent by a second measuring device, wherein the first transmission time length is a transmission time length of a first sound wave signal, the first transmission time length is obtained by the second measuring device according to the first sound wave signal, and the first sound wave signal is sent to the second measuring device by a first measuring device configured on a left foot;
Receiving a second transmission time length sent by the first measurement device, wherein the second transmission time length is a transmission time length of a second acoustic signal, the second transmission time length is obtained by the first measurement device according to the second acoustic signal, and the second acoustic signal is sent to the first measurement device by the second measurement device configured on a right foot;
And determining the moving distance of the user in two continuous steps according to the first transmission time length, the second transmission time length and the propagation speed of the sound wave in the air.
10. The electronic device of claim 9, wherein the instructions, when executed by the electronic device, cause the electronic device to perform the step of determining the active distance of the user in two consecutive steps from the first transmission duration and the second transmission duration, and the propagation speed of sound waves in air, comprise:
calibrating the sum of the first transmission time length and the second transmission time length by using the time delay of modulating and demodulating the sound wave by the first measuring equipment and the time delay of modulating and demodulating the sound wave by the second measuring equipment to obtain the calibrated transmission time length;
And determining the continuous two-step active distance of the user according to the calibrated transmission time length and the propagation speed of the sound wave in the air.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when run on a computer, causes the computer to perform the method according to any of claims 1-3.
12. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when run on a computer, causes the computer to perform the method according to any of claims 4-5.
CN202010150942.3A 2020-03-06 2020-03-06 Method and device for measuring user activity distance and electronic device Active CN113359120B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010150942.3A CN113359120B (en) 2020-03-06 2020-03-06 Method and device for measuring user activity distance and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010150942.3A CN113359120B (en) 2020-03-06 2020-03-06 Method and device for measuring user activity distance and electronic device

Publications (2)

Publication Number Publication Date
CN113359120A CN113359120A (en) 2021-09-07
CN113359120B true CN113359120B (en) 2024-04-26

Family

ID=77524035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010150942.3A Active CN113359120B (en) 2020-03-06 2020-03-06 Method and device for measuring user activity distance and electronic device

Country Status (1)

Country Link
CN (1) CN113359120B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4371945A (en) * 1980-12-01 1983-02-01 Lawrence Joseph Karr Electronic pedometer
US6018705A (en) * 1997-10-02 2000-01-25 Personal Electronic Devices, Inc. Measuring foot contact time and foot loft time of a person in locomotion
US6493652B1 (en) * 1997-10-02 2002-12-10 Personal Electronic Devices, Inc. Monitoring activity of a user in locomotion on foot
JP2009078134A (en) * 2007-08-17 2009-04-16 Adidas Internatl Marketing Bv Sports electronic training system, and applications thereof
CN101543327A (en) * 2008-03-25 2009-09-30 上海研祥智能科技有限公司 Ultrasonic distance measuring sports shoes
JP2015217250A (en) * 2014-05-21 2015-12-07 富士通株式会社 Stride measuring system, program, method and apparatus
JP2017127548A (en) * 2016-01-21 2017-07-27 株式会社インテック Stride measurement device
JP6307673B1 (en) * 2017-10-04 2018-04-04 まさみ 仁頃 Walking and running behavior presentation system using two-limb distance measuring instrument
CN110045379A (en) * 2019-04-11 2019-07-23 华为技术有限公司 A distance measurement method, related equipment and system
CN110136190A (en) * 2019-03-26 2019-08-16 华为技术有限公司 A distance measuring method and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5504810B2 (en) * 2009-10-06 2014-05-28 オムロンヘルスケア株式会社 Walking posture determination device, control program, and control method
US9707462B2 (en) * 2013-04-09 2017-07-18 Walter Arthur Reynolds, III Lower leg sensing device and method of providing data therefrom
JP2018509951A (en) * 2015-01-26 2018-04-12 ノースイースタン ユニバーシティ Internet-linked ultrasonic network

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4371945A (en) * 1980-12-01 1983-02-01 Lawrence Joseph Karr Electronic pedometer
US6018705A (en) * 1997-10-02 2000-01-25 Personal Electronic Devices, Inc. Measuring foot contact time and foot loft time of a person in locomotion
US6493652B1 (en) * 1997-10-02 2002-12-10 Personal Electronic Devices, Inc. Monitoring activity of a user in locomotion on foot
JP2009078134A (en) * 2007-08-17 2009-04-16 Adidas Internatl Marketing Bv Sports electronic training system, and applications thereof
CN101543327A (en) * 2008-03-25 2009-09-30 上海研祥智能科技有限公司 Ultrasonic distance measuring sports shoes
JP2015217250A (en) * 2014-05-21 2015-12-07 富士通株式会社 Stride measuring system, program, method and apparatus
JP2017127548A (en) * 2016-01-21 2017-07-27 株式会社インテック Stride measurement device
JP6307673B1 (en) * 2017-10-04 2018-04-04 まさみ 仁頃 Walking and running behavior presentation system using two-limb distance measuring instrument
CN110136190A (en) * 2019-03-26 2019-08-16 华为技术有限公司 A distance measuring method and electronic equipment
CN110045379A (en) * 2019-04-11 2019-07-23 华为技术有限公司 A distance measurement method, related equipment and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
几种常用步态检测典型算法的设计比较;余佩;韩勇强;;导航定位与授时;20180718(第04期);第25-30页 *
轮椅左右腿同步运动系统设计;李民飞;曹东兴;董金国;;河北工业大学学报;20180615(第03期);第51-56页 *

Also Published As

Publication number Publication date
CN113359120A (en) 2021-09-07

Similar Documents

Publication Publication Date Title
CN113552937B (en) Display control method and wearable device
CN113395382B (en) A method for data interaction between devices and related devices
CN113892920B (en) Wearing detection method and device of wearable equipment and electronic equipment
US20240171826A1 (en) Volume adjustment method and system, and electronic device
WO2022105830A1 (en) Sleep evaluation method, electronic device, and storage medium
WO2022083363A1 (en) Method for periodically measuring blood oxygen, and electronic device
CN113129916B (en) A method, system and related device for audio collection
US20240164725A1 (en) Physiological detection signal quality evaluation method, electronic device, and storage medium
US20230402150A1 (en) Adaptive Action Evaluation Method, Electronic Device, and Storage Medium
CN113467904B (en) Method, apparatus, electronic device and readable storage medium for determining cooperation mode
CN113509145B (en) Sleep risk monitoring method, electronic device and storage medium
CN115134640A (en) Synchronous playback method and device
CN109285563B (en) Voice data processing method and device in online translation process
WO2024093748A1 (en) Signal collection method, and electronic device and storage medium
CN113823378A (en) Method and terminal for determining movement times
CN113359120B (en) Method and device for measuring user activity distance and electronic device
CN114431891B (en) Sleep monitoring method and related electronic equipment
CN116232959A (en) Network quality detection method and device
CN118450296A (en) Device operation method, apparatus and electronic device
WO2021204036A1 (en) Sleep risk monitoring method, electronic device and storage medium
CN115706755A (en) Echo cancellation method, electronic device, and storage medium
CN115480250A (en) Speech recognition method, device, electronic device and storage medium
CN113749611B (en) Data measurement method and related device
CN116087930B (en) Audio ranging methods, equipment, storage media and program products
US20250099085A1 (en) Method and apparatus for predicting fertile period and electronic device

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
GR01 Patent grant
GR01 Patent grant