[go: up one dir, main page]

CN108700429B - Motion recording method and electronic device - Google Patents

Motion recording method and electronic device Download PDF

Info

Publication number
CN108700429B
CN108700429B CN201780010527.4A CN201780010527A CN108700429B CN 108700429 B CN108700429 B CN 108700429B CN 201780010527 A CN201780010527 A CN 201780010527A CN 108700429 B CN108700429 B CN 108700429B
Authority
CN
China
Prior art keywords
information
app
pedometer
gps information
sports
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
CN201780010527.4A
Other languages
Chinese (zh)
Other versions
CN108700429A (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
Publication of CN108700429A publication Critical patent/CN108700429A/en
Application granted granted Critical
Publication of CN108700429B publication Critical patent/CN108700429B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C22/00Measuring distance traversed on the ground by vehicles, persons, animals or other moving solid bodies, e.g. using odometers, using pedometers

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Telephone Function (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a method for recording a movement, which is implemented in an electronic device with a positioning module, a touch screen and a step-counting sensor, and comprises the following steps: displaying a graphical user interface of a sport APP in the touch screen; detecting a touch event on the touch screen; responding to the touch event, the sport APP receives GPS information from the positioning device, and displays a sport track corresponding to the GPS information in a graphical user interface of the sport APP; the step counting sensor reports step counting information to the sport APP; when the sport APP does not receive the step counting information of the step counting sensor within the preset time, the sport APP does not receive the GPS information from the positioning device any more. By the technical scheme, the movement track displayed on the map can not deviate when the user pauses running, and the user experience is improved.

Description

运动记录的方法及电子设备Motion recording method and electronic device

本申请要求于2017年1月22日提交中国专利局、申请号为201710047387.X、发明名称为“一种运动记录的方法和设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 201710047387.X and the invention titled "A Motion Recording Method and Apparatus" filed with the China Patent Office on January 22, 2017, the entire contents of which are incorporated by reference in in this application.

技术领域technical field

本申请涉及通信技术领域,尤其涉及运动记录的方法及电子设备。The present application relates to the field of communication technologies, and in particular, to a method and electronic device for motion recording.

背景技术Background technique

目前,由于手机、可穿戴通讯设备(例如智能手表、手环等)的快速普及,越来越多的人喜欢在跑步的时候携带手机、智能手表等进行锻炼,并利用上述设备中的跑步应用程序记录与跑步相关的信息例如定位信息,心率等。但是目前跑步应用程序在使用的时候,当用户跑步停下来时,如果用户没有手动去进行暂停跑步的操作,则定位会漂移,时间一长就会导致运动轨迹线很混乱,如图1所示,手机静置一段很长的时间后,运动轨迹线漂移混乱,这样就导致手机不能准确地记录用户进行运动时的轨迹,降低了用户体验。At present, due to the rapid popularization of mobile phones and wearable communication devices (such as smart watches, wristbands, etc.), more and more people like to carry mobile phones, smart watches, etc. for exercise while running, and use the running applications in the above devices. The program records running-related information such as positioning information, heart rate, etc. However, when the running application is currently in use, when the user stops running, if the user does not manually perform the operation of suspending the running, the positioning will drift, and the movement trajectory will be chaotic after a long time, as shown in Figure 1. , After the mobile phone is left standing for a long period of time, the movement trajectory line drifts chaotically, so that the mobile phone cannot accurately record the trajectory of the user when the user is exercising, which reduces the user experience.

发明内容SUMMARY OF THE INVENTION

为解决上述技术问题,本申请实施例提供一种运动记录的方法及电子设备,能够使得电子设备很准确地记录下运动信息,提高了用户体验。In order to solve the above technical problems, embodiments of the present application provide a motion recording method and electronic device, which can enable the electronic device to accurately record motion information and improve user experience.

第一方面,本申请实施例提供一种运动记录的方法,上述方法在具有定位模块、触摸屏和计步传感器的电子设备中实现,上述方法包括:在上述触摸屏中显示运动APP的图形用户界面;检测到在上述触摸屏上的触摸事件;响应于上述触摸事件,上述运动APP接收来自上述定位装置的GPS信息,并在上述运动APP的图形用户界面中显示与GPS信息对应的运动轨迹;上述计步传感器上报计步信息给上述运动APP;当上述运动APP在预定时间内没有收到上述计步传感器的计步信息时,则上述运动APP不再接收来自上述定位装置的GPS信息。上述技术方案可以使得用户在暂停跑步时,展现在地图上的运动轨迹不会偏移,提高了用户体验。In a first aspect, an embodiment of the present application provides a method for motion recording, where the method is implemented in an electronic device having a positioning module, a touch screen and a pedometer sensor, and the method includes: displaying a graphical user interface of a sports APP on the touch screen; A touch event on the above-mentioned touch screen is detected; in response to the above-mentioned touch event, the above-mentioned motion APP receives GPS information from the above-mentioned positioning device, and displays the motion track corresponding to the GPS information in the graphical user interface of the above-mentioned motion APP; the above-mentioned step counting The sensor reports pedometer information to the sports APP; when the sports APP does not receive the pedometer information from the pedometer sensor within a predetermined time, the sports APP no longer receives GPS information from the positioning device. The above technical solution can prevent the movement track displayed on the map from shifting when the user suspends running, thereby improving the user experience.

在一种可能的实现方式中,上述方法还可以包括:在上述触摸屏中提示用户GPS信息已暂停接收的信息。In a possible implementation manner, the above-mentioned method may further include: prompting the user that the reception of GPS information has been suspended in the above-mentioned touch screen.

在另外一种可能的实现方式中,上述方法还可以包括:当上述运动APP再次接收到上述计步传感器的计步信息时,再接收上述定位装置的GPS信息,并在上述运动APP的图形用户界面上显示与上述GPS信息对应的运动轨迹。In another possible implementation manner, the above method may further include: when the above-mentioned sports APP receives the step-counting information of the above-mentioned pedometer sensor again, receiving the GPS information of the above-mentioned positioning device again, and displaying in the graphic user of the above-mentioned sports APP The motion track corresponding to the above GPS information is displayed on the interface.

在另外的一种可能的实现方式中,上述方法还可以包括:当上述运动APP接收到上述计步传感器的计步信息,并且上述计步信息表明当前的速度小于或等于10分钟/公里时,上述运动APP停止接收GPS信息,并在上述运动APP的图形用户界面上显示本次运动已完成的信息,并形成运动轨迹展示给用户。In another possible implementation manner, the above method may further include: when the above-mentioned sports APP receives the step-counting information of the above-mentioned step-counting sensor, and the above-mentioned step-counting information indicates that the current speed is less than or equal to 10 minutes/km, The above-mentioned sports APP stops receiving GPS information, and displays the information that the exercise has been completed on the graphical user interface of the above-mentioned sports APP, and forms a movement track to display to the user.

第二方面,本申请实施例提供一种电子设备,包括:触摸屏;计步传感器;一个或多个处理器;存储器;多个应用程序;以及一个或多个程序,其中上述一个或多个程序被存储在上述存储器中,上述一个或多个程序包括指令,当上述指令被上述电子设备执行时,使得上述电子设备执行以下步骤:在上述触摸屏中显示运动APP的图形用户界面;检测到在上述触摸屏上的触摸事件;响应于上述触摸事件,上述运动APP接收来自上述定位装置的GPS信息,并在上述运动APP的图形用户界面中显示与GPS信息对应的运动轨迹;上述计步传感器上报计步信息给上述运动APP;当上述运动APP在预定时间内没有收到上述计步传感器的计步信息时,则上述运动APP不再接收来自上述定位装置的GPS信息。In a second aspect, an embodiment of the present application provides an electronic device, including: a touch screen; a pedometer sensor; one or more processors; a memory; a plurality of application programs; and one or more programs, wherein the above one or more programs be stored in the above-mentioned memory, the above-mentioned one or more programs include instructions, when the above-mentioned instructions are executed by the above-mentioned electronic equipment, the above-mentioned electronic equipment is made to perform the following steps: display the graphical user interface of the sports APP in the above-mentioned touch screen; A touch event on the touch screen; in response to the above-mentioned touch event, the above-mentioned motion APP receives the GPS information from the above-mentioned positioning device, and displays the motion track corresponding to the GPS information in the graphical user interface of the above-mentioned motion APP; the above-mentioned pedometer sensor reports the pedometer information to the above-mentioned sports APP; when the above-mentioned sports APP does not receive the pedometer information of the above-mentioned pedometer sensor within a predetermined time, the above-mentioned sports APP will no longer receive the GPS information from the above-mentioned positioning device.

第三方面,本申请的实施例提供一种电子设备,包括:处理器、存储器、总线和通信接口;该存储器用于存储计算机执行指令,该处理器与该存储器通过该总线连接,当电子设备运行时,该处理器执行该存储器存储的该计算机执行指令,以使电子设备执行上述任一项触摸控制方法。In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory, a bus, and a communication interface; the memory is used to store computer execution instructions, and the processor and the memory are connected through the bus, when the electronic device When running, the processor executes the computer-executed instructions stored in the memory, so that the electronic device executes any one of the above-mentioned touch control methods.

第四方面,本申请实施例又提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer executes the methods described in the above aspects.

第五方面,本申请实施例又提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。In a fifth aspect, the embodiments of the present application further provide a computer program product including instructions, which, when executed on a computer, cause the computer to execute the methods described in the above aspects.

附图说明Description of drawings

图1是现有技术中的运动轨迹示意图;1 is a schematic diagram of a motion trajectory in the prior art;

图2是一些实施例中电子设备的硬件示意图;2 is a hardware schematic diagram of an electronic device in some embodiments;

图3是一些实施例中为用户、运动应用程序(APP)、定位装置的交互示意图;3 is a schematic diagram of interaction between a user, a sports application (APP), and a positioning device in some embodiments;

图4是本申请实施例提供一种运动记录的方法;4 is a method for motion recording provided by an embodiment of the present application;

图5为本申请一个实施例中的用户、运动APP、定位装置、计步传感器之间的交互示意图。FIG. 5 is a schematic diagram of interaction among a user, a motion APP, a positioning device, and a pedometer sensor in an embodiment of the present application.

图6为一些申请实施例中的框架概念图。FIG. 6 is a conceptual diagram of a framework in some application embodiments.

图7为本申请实施例中的系统架构示意图;7 is a schematic diagram of a system architecture in an embodiment of the present application;

图8为图7中所涉及的结构/模块之间的交互示意图;FIG. 8 is a schematic diagram of the interaction between the structures/modules involved in FIG. 7;

图9A至9C为一些实施例中运动APP在触摸屏104中所显示的图形用户界面示意图。9A to 9C are schematic diagrams of graphical user interfaces displayed on the touch screen 104 by the sports APP in some embodiments.

具体实施方式Detailed ways

本申请实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指并包含一个或多个相绑定的列出项目的任何或所有可能组合。The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations of the present application. As used in the specification of this application and the appended claims, the singular expressions "a," "an," "the," "above," "the," and "the" are intended to also Plural expressions are included unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used in this application refers to and includes any and all possible combinations of one or more of the associated listed items.

如图2所示,本申请实施例中的电子设备可以为手机100。下面以手机100为例对实施例进行具体说明。应该理解的是,图示手机100仅是电子设备的一个范例,并且手机100可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。As shown in FIG. 2 , the electronic device in this embodiment of the present application may be a mobile phone 100 . The embodiment will be specifically described below by taking the mobile phone 100 as an example. It should be understood that the illustrated cell phone 100 is only one example of an electronic device, and the cell phone 100 may have more or fewer components than those shown, two or more components may be combined, or Available in different parts configurations.

如图2所示,手机100具体可以包括:处理器101、射频电路102、存储器103、触摸屏104(具体包括触控板104-1和显示器104-2)、蓝牙装置105、一个或多个传感器106、WI-FI装置107、定位装置108、音频电路109、外设接口110、电源系统111以及指纹采集器件112等部件。这些部件可通过一根或多根通信总线或信号线(图2中未示出)进行通信。本领域技术人员可以理解,图2中示出的硬件结构并不构成对手机100的限定,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。As shown in FIG. 2, the mobile phone 100 may specifically include: a processor 101, a radio frequency circuit 102, a memory 103, a touch screen 104 (specifically including a touch panel 104-1 and a display 104-2), a Bluetooth device 105, and one or more sensors 106 , the WI-FI device 107 , the positioning device 108 , the audio circuit 109 , the peripheral interface 110 , the power supply system 111 , and the fingerprint collection device 112 and other components. These components may communicate via one or more communication buses or signal lines (not shown in Figure 2). Those skilled in the art can understand that the hardware structure shown in FIG. 2 does not constitute a limitation on the mobile phone 100, and the mobile phone 100 may include more or less components than those shown in the figure, or combine some components, or arrange different components .

下面结合图2对手机100的各个部件进行具体的介绍:Each component of the mobile phone 100 is described in detail below with reference to FIG. 2 :

处理器101是手机100的控制中心,利用各种接口和线路连接手机100的各个部分,通过运行或执行存储在存储器103内的应用程序(以下可以简称App),以及调用存储在存储器103内的数据和指令,执行手机100的各种功能和处理数据。在一些实施例中,处理器101可包括一个或多个处理单元;处理器101还可以集成应用处理器和调制解调处理器;其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器101中。举例来说,处理器101可以是华为技术有限公司制造的麒麟960芯片。在本申请一些实施例中,上述处理器101还可以包括指纹验证芯片,用于对采集到的指纹进行验证。The processor 101 is the control center of the mobile phone 100, using various interfaces and lines to connect various parts of the mobile phone 100, by running or executing the application program (hereinafter referred to as the App) stored in the memory 103, and calling the stored in the memory 103. Data and instructions, perform various functions of the cell phone 100 and process data. In some embodiments, the processor 101 may include one or more processing units; the processor 101 may also integrate an application processor and a modem processor; wherein the application processor mainly processes the operating system, user interface, and application programs, etc. , the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 101 . For example, the processor 101 may be a Kirin 960 chip manufactured by Huawei Technologies Co., Ltd. In some embodiments of the present application, the above-mentioned processor 101 may further include a fingerprint verification chip, which is used to verify the collected fingerprints.

射频电路102可用于在收发信息或通话过程中,无线信号的接收和发送。具体地,射频电路102可以将基站的下行数据接收后,给处理器101处理;另外,将涉及上行的数据发送给基站。通常,射频电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频电路102还可以通过无线通信和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统、通用分组无线服务、码分多址、宽带码分多址、长期演进、电子邮件、短消息服务等。The radio frequency circuit 102 can be used for receiving and transmitting wireless signals during the process of sending and receiving information or talking. Specifically, the radio frequency circuit 102 can process the downlink data of the base station to the processor 101 after receiving it; in addition, send the uplink data to the base station. Typically, radio frequency circuits include, but are not limited to, antennas, at least one amplifier, transceivers, couplers, low noise amplifiers, duplexers, and the like. In addition, the radio frequency circuit 102 may also communicate with other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile Communications, General Packet Radio Service, Code Division Multiple Access, Wideband Code Division Multiple Access, Long Term Evolution, email, short message service, and the like.

存储器103用于存储应用程序以及数据,处理器101通过运行存储在存储器103的应用程序以及数据,执行手机100的各种功能以及数据处理。存储器103主要包括存储程序区以及存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等);存储数据区可以存储根据使用手机100时所创建的数据(比如音频数据、电话本等)。此外,存储器103可以包括高速随机存取存储器,还可以包括非易失存储器,例如磁盘存储器件、闪存器件或其他易失性固态存储器件等。存储器103可以存储各种操作系统,例如苹果公司所开发的

Figure GPA0000259214960000051
操作系统,谷歌公司所开发的
Figure GPA0000259214960000052
操作系统等。The memory 103 is used to store application programs and data, and the processor 101 executes various functions of the mobile phone 100 and data processing by running the application programs and data stored in the memory 103 . The memory 103 mainly includes a stored program area and a stored data area, wherein the stored program area can store the operating system and the application program required for at least one function (such as sound playback function, image playback function, etc.); 100 created data (such as audio data, phone book, etc.). In addition, the memory 103 may include high-speed random access memory, and may also include non-volatile memory, such as magnetic disk storage devices, flash memory devices, or other volatile solid-state storage devices. The memory 103 can store various operating systems, such as those developed by Apple
Figure GPA0000259214960000051
operating system, developed by Google
Figure GPA0000259214960000052
operating system, etc.

触摸屏104可以包括触敏表面104-1和显示器104-2。其中,触敏表面104-1(例如触控面板)可采集手机100的用户在其上或附近的触摸事件(比如用户使用手指、触控笔等任何适合的物体在触敏表面104-1上或在触敏表面104-1附近的操作),并将采集到的触摸信息发送给其他器件例如处理器101。其中,用户在触敏表面104-1附近的触摸事件可以称之为悬浮触控;悬浮触控可以是指,用户无需为了选择、移动或拖动目标(例如图标等)而直接接触触控板,而只需用户位于电子设备附近以便执行所想要的功能。在悬浮触控的应用场景下,术语“触摸”、“接触”等不会暗示用于直接接触触摸屏,而是在其附近或接近的接触。能够进行悬浮触控的触敏表面104-1可以采用电容式、红外光感以及超声波等实现。触敏表面104-1可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再发送给处理器101,触摸控制器还可以接收处理器101发送的指令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型来实现触敏表面104-1。显示器(也称为显示屏)104-2可用于显示由用户输入的信息或提供给用户的信息以及手机100的各种菜单。可以采用液晶显示器、有机发光二极管等形式来配置显示器104-2。触敏表面104-1可以覆盖在显示器104-2之上,当触敏表面104-1检测到在其上或附近的触摸事件后,传送给处理器101以确定触摸事件的类型,随后处理器101可以根据触摸事件的类型在显示器104-2上提供相应的视觉输出。虽然在图2中,触敏表面104-1与显示屏104-2是作为两个独立的部件来实现手机100的输入和输出功能,但是在某些实施例中,可以将触敏表面104-1与显示屏104-2集成而实现手机100的输入和输出功能。可以理解的是,触摸屏104是由多层材料堆叠而成,本申请实施例中只展示出了触敏表面(层)和显示屏(层),其他层在本申请实施例中不予记载。另外,在本申请其他一些实施例中,触敏表面104-1可以覆盖在显示器104-2之上,并且触敏表面104-1的尺寸大于显示屏104-2的尺寸,使得显示屏104-2全部覆盖在触敏表面104-1下面,或者,上述触敏表面104-1可以以全面板的形式配置在手机100的正面,也即用户在手机100正面的触摸均能被手机感知,这样就可以实现手机正面的全触控体验。在其他一些实施例中,触敏表面104-1以全面板的形式配置在手机100的正面,显示屏104-2也可以以全面板的形式配置在手机100的正面,这样在手机的正面就能够实现无边框的结构。The touch screen 104 may include a touch-sensitive surface 104-1 and a display 104-2. The touch-sensitive surface 104-1 (eg, a touch panel) may capture touch events on or near the user of the mobile phone 100 (eg, the user uses a finger, a stylus, or any other suitable object on the touch-sensitive surface 104-1) or operation near the touch-sensitive surface 104 - 1 ), and send the collected touch information to other devices such as the processor 101 . Among them, the user's touch events near the touch-sensitive surface 104-1 may be called hovering touch; hovering touch may refer to the fact that the user does not need to directly touch the touchpad in order to select, move or drag objects (such as icons, etc.). , but only if the user is in the vicinity of the electronic device in order to perform the desired function. In the application scenario of hovering touch, the terms "touch", "contact", etc. do not imply direct contact with the touch screen, but contact near or close to it. The touch-sensitive surface 104-1 capable of floating touch can be implemented by capacitive, infrared light sensing, and ultrasonic waves. The touch-sensitive surface 104-1 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the touch orientation of the user, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then transmits the signal to the touch controller. After sending to the processor 101, the touch controller can also receive the instructions sent by the processor 101 and execute them. In addition, various types of resistive, capacitive, infrared, and surface acoustic waves may be used to implement the touch-sensitive surface 104-1. A display (also referred to as a display screen) 104 - 2 may be used to display information entered by or provided to the user as well as various menus of the cell phone 100 . The display 104-2 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. Touch-sensitive surface 104-1 may overlay display 104-2, and when touch-sensitive surface 104-1 detects a touch event on or near it, communicates it to processor 101 to determine the type of touch event, which then processes 101 may provide corresponding visual output on display 104-2 according to the type of touch event. Although in FIG. 2, the touch-sensitive surface 104-1 and the display screen 104-2 are used as two separate components to implement the input and output functions of the mobile phone 100, in some embodiments, the touch-sensitive surface 104- 1 is integrated with the display screen 104-2 to realize the input and output functions of the mobile phone 100. It can be understood that the touch screen 104 is formed by stacking multiple layers of materials. Only the touch-sensitive surface (layer) and the display screen (layer) are shown in the embodiments of the present application, and other layers are not described in the embodiments of the present application. In addition, in some other embodiments of the present application, the touch-sensitive surface 104-1 may overlay the display 104-2, and the size of the touch-sensitive surface 104-1 is larger than the size of the display screen 104-2, so that the display screen 104- 2. All are covered under the touch-sensitive surface 104-1, or, the above-mentioned touch-sensitive surface 104-1 can be configured on the front of the mobile phone 100 in the form of a full panel, that is, the user's touch on the front of the mobile phone 100 can be sensed by the mobile phone, so that You can achieve a full touch experience on the front of the phone. In some other embodiments, the touch-sensitive surface 104-1 is configured on the front of the mobile phone 100 in the form of a full panel, and the display screen 104-2 can also be configured on the front of the mobile phone 100 in the form of a full panel, so that the A frameless structure can be achieved.

在本申请各个实施例中,手机100还可以具有指纹识别功能。例如,可以在手机100的背面(例如后置摄像头的下方)配置指纹识别器112,或者在手机100的正面(例如触摸屏104的下方)配置指纹识别器112。另外,关于本申请实施例中在触摸屏中集成指纹采集器件的具体技术方案,可以参见美国专利与商标局公告的申请号为US 2015/0036065 A1,名称为“在电子设备中的指纹传感器”的专利申请,其全部内容通过引用结合在本申请各个实施例中。In various embodiments of the present application, the mobile phone 100 may also have a fingerprint identification function. For example, the fingerprint reader 112 may be disposed on the back of the mobile phone 100 (eg, below the rear camera), or the fingerprint reader 112 may be disposed on the front of the mobile phone 100 (eg, below the touchscreen 104). In addition, for the specific technical solution of integrating a fingerprint acquisition device in the touch screen in the embodiment of the present application, please refer to the application number US 2015/0036065 A1 published by the US Patent and Trademark Office, entitled "Fingerprint Sensor in Electronic Equipment". The patent application, the entire contents of which are incorporated by reference in the various examples of this application.

手机100还可以包括蓝牙装置105,用于实现手机100与其他短距离的电子设备(例如手机、智能手表等)之间的数据交换。本申请实施例中的蓝牙装置可以是集成电路或者蓝牙芯片等。The mobile phone 100 may also include a Bluetooth device 105 for realizing data exchange between the mobile phone 100 and other short-range electronic devices (eg, mobile phones, smart watches, etc.). The Bluetooth device in this embodiment of the present application may be an integrated circuit or a Bluetooth chip or the like.

手机100还可以包括至少一种传感器106,比如光传感器、计步传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节触摸屏104的显示器的亮度,接近传感器可在手机100移动到耳边时,关闭显示器的电源。作为计步传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机100还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The cell phone 100 may also include at least one sensor 106, such as a light sensor, a pedometer sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display of the touch screen 104 according to the brightness of the ambient light, and the proximity sensor may turn off the power of the display when the mobile phone 100 is moved to the ear . As a kind of pedometer sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. that can be configured on the mobile phone 100, here No longer.

Wi-Fi装置107,用于为手机100提供遵循Wi-Fi相关标准协议的网络接入,手机100可以通过Wi-Fi装置107接入到Wi-Fi接入点,进而帮助用户收发电子邮件、浏览网页和访问流媒体等,它为用户提供了无线的宽带互联网访问。在其他一些实施例中,该Wi-Fi装置107也可以作为Wi-Fi无线接入点,可以为其他电子设备提供Wi-Fi网络接入。The Wi-Fi device 107 is used to provide the mobile phone 100 with network access that complies with Wi-Fi related standard protocols. The mobile phone 100 can access the Wi-Fi access point through the Wi-Fi device 107, thereby helping the user to send and receive emails, Browsing the web and accessing streaming media, etc., it provides users with wireless broadband Internet access. In some other embodiments, the Wi-Fi device 107 can also serve as a Wi-Fi wireless access point, and can provide Wi-Fi network access for other electronic devices.

定位装置108,用于为手机100提供地理位置。可以理解的是,该定位装置108具体可以是全球定位系统(GPS)或北斗卫星导航系统、俄罗斯GLONASS等定位系统的接收器。定位装置108在接收到上述定位系统发送的地理位置后,将该信息发送给处理器101进行处理,或者发送给存储器103进行保存。在另外的一些实施例中,该定位装置108可以是辅助全球卫星定位系统(AGPS)的接收器,AGPS是一种在一定辅助配合下进行GPS定位的运行方式,它可以利用基站的信号,配合GPS卫星信号,可以让手机100定位的速度更快;在AGPS系统中,该定位装置108可通过与辅助定位服务器(例如手机定位服务器)的通信而获得定位辅助。AGPS系统通过作为辅助服务器来协助定位装置108完成测距和定位服务,在这种情况下,辅助定位服务器通过无线通信网络与电子设备例如手机100的定位装置108(即GPS接收器)通信而提供定位协助。在另外的一些实施例中,该定位装置108也可以是基于Wi-Fi接入点的定位技术。由于每一个Wi-Fi接入点都有一个全球唯一的MAC地址,电子设备在开启Wi-Fi的情况下即可扫描并收集周围的Wi-Fi接入点的广播信号,因此可以获取到Wi-Fi接入点广播出来的MAC地址;电子设备将这些能够标示Wi-Fi接入点的数据(例如MAC地址)通过无线通信网络发送给位置服务器,由位置服务器检索出每一个Wi-Fi接入点的地理位置,并结合Wi-Fi广播信号的强弱程度,计算出该电子设备的地理位置并发送到该电子设备的定位装置108中。The positioning device 108 is used to provide the mobile phone 100 with a geographic location. It can be understood that the positioning device 108 may be a receiver of a positioning system such as a global positioning system (GPS), a Beidou satellite navigation system, or a Russian GLONASS. After receiving the geographic location sent by the positioning system, the positioning device 108 sends the information to the processor 101 for processing, or sends the information to the memory 103 for storage. In other embodiments, the positioning device 108 may be a receiver of the Assisted Global Positioning System (AGPS). AGPS is an operation mode for GPS positioning under certain assistance and cooperation. It can use the signal of the base station to cooperate with GPS satellite signals can make the positioning speed of the mobile phone 100 faster; in the AGPS system, the positioning device 108 can obtain positioning assistance by communicating with an assisted positioning server (eg, a mobile phone positioning server). The AGPS system assists the positioning device 108 to complete ranging and positioning services by acting as an auxiliary server. In this case, the auxiliary positioning server communicates with the positioning device 108 (ie, GPS receiver) of an electronic device such as a mobile phone 100 through a wireless communication network to provide. Positioning assistance. In some other embodiments, the positioning device 108 may also be a positioning technology based on a Wi-Fi access point. Since each Wi-Fi access point has a globally unique MAC address, the electronic device can scan and collect the broadcast signals of the surrounding Wi-Fi access points when Wi-Fi is turned on, so it can obtain Wi-Fi access points. - The MAC address broadcasted by the Fi access point; the electronic device sends these data (such as MAC address) that can identify the Wi-Fi access point to the location server through the wireless communication network, and the location server retrieves each Wi-Fi access point. The geographic location of the entry point, and combined with the strength of the Wi-Fi broadcast signal, the geographic location of the electronic device is calculated and sent to the positioning device 108 of the electronic device.

音频电路109、扬声器113、麦克风114可提供用户与手机100之间的音频接口。音频电路109可将接收到的音频数据转换后的电信号,传输到扬声器113,由扬声器113转换为声音信号输出;另一方面,麦克风114将收集的声音信号转换为电信号,由音频电路109接收后转换为音频数据,再将音频数据输出至RF电路102以发送给比如另一手机,或者将音频数据输出至存储器103以便进一步处理。The audio circuit 109 , the speaker 113 , and the microphone 114 may provide an audio interface between the user and the cell phone 100 . The audio circuit 109 can transmit the received audio data converted electrical signal to the speaker 113, and the speaker 113 converts it into a sound signal for output; on the other hand, the microphone 114 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 109 After receiving, it is converted into audio data, and then the audio data is output to the RF circuit 102 for transmission to, for example, another mobile phone, or the audio data is output to the memory 103 for further processing.

外设接口110,用于为外部的输入/输出设备(例如键盘、鼠标、外接显示器、外部存储器、用户识别模块卡等)提供各种接口。例如通过通用串行总线(USB)接口与鼠标连接,通过用户识别模块卡卡槽上的金属触点与电信运营商提供的用户识别模块卡(SIM)卡进行连接。外设接口110可以被用来将上述外部的输入/输出外围设备耦接到处理器101和存储器103。The peripheral interface 110 is used to provide various interfaces for external input/output devices (eg, keyboard, mouse, external display, external memory, user identification module card, etc.). For example, it is connected to a mouse through a universal serial bus (USB) interface, and is connected to a Subscriber Identity Module (SIM) card provided by a telecommunication operator through the metal contacts on the card slot of the Subscriber Identity Module. The peripheral interface 110 may be used to couple the aforementioned external input/output peripherals to the processor 101 and the memory 103 .

手机100还可以包括给各个部件供电的电源装置111(比如电池和电源管理芯片),电池可以通过电源管理芯片与处理器101逻辑相连,从而通过电源装置111实现管理充电、放电、以及功耗管理等功能。The mobile phone 100 may also include a power supply device 111 (such as a battery and a power management chip) for supplying power to various components. The battery may be logically connected to the processor 101 through the power management chip, so as to manage charging, discharging, and power consumption management through the power supply device 111. and other functions.

尽管图2未示出,手机100还可以包括摄像头(前置摄像头和/或后置摄像头)、闪光灯、微型投影装置、近场通信(near field communication,NFC)装置、听筒等,在此不再赘述。Although not shown in FIG. 2 , the mobile phone 100 may further include a camera (front camera and/or rear camera), a flash, a pico-projection device, a near field communication (NFC) device, an earpiece, etc., which are not described here. Repeat.

以下实施例均可以在具有上述部件的电子设备中实现。The following embodiments can all be implemented in an electronic device having the above-mentioned components.

如图3所示,为用户、运动应用程序(APP)、定位装置的交互示意图。当用户在触摸屏上点击运动APP的图标,电子设备可以打开该运动APP。在该运动APP的图形用户界面上可以点击启动跑步;进而该运动APP开启定位功能,由上述定位装置108接收定位信息例如GPS信息并上报给运动APP。运动APP根据接收到的GPS信息在地图上展示相应的运动轨迹。当用户暂停跑步时,用户可能并没有去手动暂停运动APP,这样运动APP还是会不断地接收定位装置上报的GPS信息。而由于定位装置接收到的GPS信息本身精度是有偏差的,所以上报给运动APP的GPS信息在不同的时刻的GPS信息有可能是不同的,这样就导致运动APP上的地图的运动轨迹出现偏差,导致如图1所示的轨迹混乱的情况,严重影响了用户体验。As shown in FIG. 3 , it is a schematic diagram of interaction between a user, a sports application program (APP), and a positioning device. When the user clicks the icon of the sports APP on the touch screen, the electronic device can open the sports APP. On the graphical user interface of the sports APP, you can click to start running; then the sports APP enables the positioning function, and the positioning device 108 receives positioning information such as GPS information and reports it to the sports APP. The sports APP displays the corresponding movement trajectory on the map according to the received GPS information. When the user suspends running, the user may not manually suspend the sports APP, so that the sports APP will continue to receive the GPS information reported by the positioning device. Since the accuracy of the GPS information received by the positioning device itself is biased, the GPS information reported to the sports APP may have different GPS information at different times, which will lead to deviations in the movement trajectory of the map on the sports APP. , resulting in the disordered trajectory as shown in Figure 1, which seriously affects the user experience.

为了解决上述技术问题,如图4所示,本申请实施例提供一种运动记录的方法,具体包括以下步骤:In order to solve the above technical problems, as shown in FIG. 4 , an embodiment of the present application provides a method for motion recording, which specifically includes the following steps:

步骤401:在电子设备的触摸屏中显示运动APP的图形用户界面(以下简称GUI);Step 401: Display a graphical user interface (hereinafter referred to as GUI) of the sports APP on the touch screen of the electronic device;

步骤402:上述电子设备检测到在触摸屏上的触摸事件;Step 402: The electronic device detects a touch event on the touch screen;

步骤403:响应于上述触摸事件,上述运动APP接收来自定位装置的GPS信息,并在上述运动APP的GUI中显示与GPS信息对应的运动轨迹;Step 403: In response to the above-mentioned touch event, the above-mentioned motion APP receives the GPS information from the positioning device, and displays the motion trajectory corresponding to the GPS information in the GUI of the above-mentioned motion APP;

步骤404:计步传感器上报计步信息给上述运动APP;在本实施例中,运动APP也可以实时监听计步传感器的计步信息。Step 404 : the pedometer sensor reports the pedometer information to the above-mentioned sports APP; in this embodiment, the sports APP can also monitor the pedometer information of the pedometer sensor in real time.

步骤405:当上述运动APP在预定时间内没有收到上述计步传感器的计步信息,则该运动APP不再接收来自定位装置的GPS信息。Step 405: When the above-mentioned sports APP does not receive the step-counting information of the above-mentioned pedometer sensor within a predetermined time, the sports APP no longer receives the GPS information from the positioning device.

上述技术方案,可以使得用户在暂停跑步时,电子设备自动停止接收GPS信息,因此不会出现在地图上显示的运动轨迹出现偏移,也不需要用户手动操作,因此提高了用户体验。The above technical solution can make the electronic device automatically stop receiving GPS information when the user suspends running, so that the movement trajectory displayed on the map will not be offset, and the user's manual operation is not required, thus improving the user experience.

在本申请其他一些实施例中,上述方法还可以包括:In some other embodiments of the present application, the above method may further include:

步骤406:在上述触摸屏中提示用户GPS信息已暂停接收的信息。这样方便用户进行下一步处理。该触摸屏中还可以显示运动APP当前已经暂停记录运动轨迹的GUI。Step 406: Prompt the user on the touch screen that the GPS information has been temporarily received. This is convenient for the user to proceed to the next step. The touch screen can also display the GUI of the motion APP currently paused to record the motion track.

在本申请另外一些实施例中,上述方法还可以包括:In other embodiments of the present application, the above method may further include:

步骤407:当上述运动APP接收到计步传感器的计步信息时,再接收GPS信息,并在运动APP的GUI上显示与GPS信息对应的运动轨迹。Step 407: When the above-mentioned sports APP receives the pedometer information of the pedometer sensor, it receives the GPS information again, and displays the motion track corresponding to the GPS information on the GUI of the sports APP.

在本申请另外一些实施例中,在上述方法还可以包括:In some other embodiments of the present application, the above method may further include:

步骤408:当上述运动APP接收到计步传感器的计步信息,并且计步信息表明当前的速度小于或等于10分钟/公里时,运动APP停止接收GPS信息,并在运动APP的GUI上显示本次运动(跑步)已完成的信息,例如形成运动轨迹展示给用户。Step 408: When the above-mentioned sports APP receives the pedometer information from the pedometer sensor, and the pedometer information indicates that the current speed is less than or equal to 10 minutes/km, the sports APP stops receiving GPS information, and displays this information on the GUI of the sports APP. The information that the secondary movement (running) has been completed, such as forming a movement track, is displayed to the user.

如图5所示,为本申请一个实施例中的用户、运动APP、定位装置、计步传感器之间的交互示意图。用户可以点击触摸屏上的虚拟按钮启动运动APP来进行跑步、徒步等运动。运动APP接收到用户的指令后,开启定位服务,并开始监听来自计步传感器的计步信息;定位装置发送GPS信息给运动APP,然后运动APP在地图上展示与该GPS信息相应的运动轨迹;运动APP可以不断接收到定位装置发送的GPS信息,以便在地图上更新运动轨迹。当运动APP如果在预定时间内没有接收到计步传感器的计步信息,则可以表明用户跑步暂停了,则运动APP停止定位服务,不再接收GPS信息。此时,在地图上的运动轨迹维持不变,不会出现运动估计偏移的现象。As shown in FIG. 5 , it is a schematic diagram of interaction among a user, a motion APP, a positioning device, and a pedometer sensor in an embodiment of the present application. Users can click the virtual button on the touch screen to start the sports APP to run, hike and other sports. After the sports APP receives the user's instruction, it starts the positioning service and starts to monitor the pedometer information from the pedometer sensor; the positioning device sends the GPS information to the sports APP, and then the sports APP displays the motion trajectory corresponding to the GPS information on the map; The sports APP can continuously receive the GPS information sent by the positioning device to update the movement track on the map. When the sports APP does not receive the pedometer information from the pedometer sensor within the predetermined time, it can indicate that the user's running is paused, and the sports APP stops the positioning service and no longer receives GPS information. At this time, the motion trajectory on the map remains unchanged, and the phenomenon of motion estimation offset does not occur.

图6为本申请实施例的框架概念图。当用户在运动中,电子设备就处于GPS模式,此时会接收GPS信息、并画出运动轨迹。当用户停止运动,并且停止运动的时间(即无运动时间)大于一预设门限时间时,电子设备就会切换到静止模式,此时电子设备停止定位服务,不再接收GPS信息,不会继续画运动轨迹,因此用户看到的轨迹图就不会偏移。当用户重新开始运动后,电子设备需要从静止模式切回GPS模式,此后将继续接收GPS信息、并画运动轨迹。FIG. 6 is a conceptual framework diagram of an embodiment of the present application. When the user is exercising, the electronic device is in the GPS mode, at this time it will receive GPS information and draw a movement track. When the user stops exercising, and the time when the user stops exercising (ie, no exercise time) is greater than a preset threshold time, the electronic device will switch to the static mode. At this time, the electronic device stops the positioning service, no longer receives GPS information, and will not continue Draw motion trajectories, so the trajectory graph that the user sees will not be offset. When the user starts exercising again, the electronic device needs to switch back to the GPS mode from the stationary mode, and then continue to receive GPS information and draw the movement track.

图7为本申请实施例中的系统架构示意图。电子设备在底层需要支持两种硬件:定位装置108、计步传感器106。这两个硬件的具体结构及功能在上述实施例中已经有相应的记载,在此不再赘述。FIG. 7 is a schematic diagram of a system architecture in an embodiment of the present application. The electronic device needs to support two kinds of hardware at the bottom layer: the positioning device 108 and the pedometer sensor 106 . The specific structures and functions of the two hardwares have been described in the above-mentioned embodiments, and will not be repeated here.

状态机管理701和轨迹UI模块702是运动APP 700的两个功能模块,其中,状态机管理701会一直监听定位装置108上报GPS信息,同时监听计步传感器106有没有计步信息。轨迹UI模块702用于根据GPS信息在地图上描绘运动轨迹。The state machine management 701 and the track UI module 702 are two functional modules of the sports APP 700, wherein the state machine management 701 will always monitor the GPS information reported by the positioning device 108, and at the same time monitor whether the pedometer sensor 106 has pedometer information. The track UI module 702 is used to draw the movement track on the map according to the GPS information.

当计步传感器106不上报计步信息时,状态机管理701就认为运动(例如跑步等)停止,进而使得电子设备或者运动APP处于静止模式,或者,使得电子设备或运动APP从GPS模式切换至静止模式;当计步传感器106上报计步信息时,状态机管理701认为用户在运动,使得电子设备或运动APP处于GPS模式,或者,使得电子设备或运动APP从静止模式切换至GPS模式。When the pedometer sensor 106 does not report the pedometer information, the state machine management 701 considers that the movement (such as running, etc.) is stopped, and then the electronic device or the sports APP is placed in the static mode, or the electronic device or the sports APP is switched from the GPS mode to Static mode: When the pedometer sensor 106 reports step information, the state machine management 701 considers that the user is exercising, so that the electronic device or the sports APP is in the GPS mode, or the electronic device or the sports APP is switched from the static mode to the GPS mode.

图8为图7中所涉及的结构/模块之间的交互示意图。步骤说明如下:FIG. 8 is a schematic diagram of the interaction between the structures/modules involved in FIG. 7 . The steps are described below:

1、用户开始跑步,在运动APP轨迹UI模块所呈现的GUI上启动跑步。1. The user starts running and starts running on the GUI presented by the track UI module of the sports app.

2、轨迹UI模块向状态机管理下发指令:启动跑步。2. The track UI module sends an instruction to the state machine management: start running.

3、状态机管理根据上述指令,使得电子设备或运动APP进入GPS模式。3. State machine management According to the above instructions, the electronic device or the sports APP enters the GPS mode.

4、状态机管理向手机的定位装置下发命令:开启GPS。随后就可以收到GPS信息的主动上报。4. The state machine management sends a command to the positioning device of the mobile phone: turn on the GPS. Then you can receive the active report of GPS information.

5、状态机管理向计步传感器下发命令:开始监听计步信息。随后就可以收到计步信息的主动上报。5. The state machine management sends a command to the pedometer sensor: start monitoring pedometer information. Then you can receive the active report of step counting information.

6、在跑步过程中,只要有步数的变化,计步传感器就主动上报计步数据给状态机管理。6. During the running process, as long as there is a change in the number of steps, the pedometer sensor will actively report the pedometer data to the state machine for management.

7、在跑步过程中,只要有GPS信息的更新,定位装置就主动上报GPS信息给轨迹UI模块。7. During the running process, as long as the GPS information is updated, the positioning device will actively report the GPS information to the track UI module.

8、轨迹UI模块把接收到到GPS信息画在UI轨迹图上,并在地图上呈现该运动轨迹。8. The track UI module draws the received GPS information on the UI track map, and presents the motion track on the map.

9、现在用户暂停跑步。9. Now the user pauses running.

10、因为用户暂停跑步了,所以计步传感器不再有计步信息,也就不会主动上报给状态机管理。如果状态机管理不再收到计步信息上报,并且超过时间门限(例如20~30秒),就认为用户暂停跑步了。10. Because the user has paused running, the pedometer sensor no longer has pedometer information, so it will not be actively reported to the state machine for management. If the state machine management no longer receives pedometer information reports and exceeds the time threshold (for example, 20 to 30 seconds), it is considered that the user has suspended running.

11、于是状态机管理奖电子设备或运动APP从GPS模式切换到静止模式。11. Then the state machine manages and switches the electronic device or the sports APP from the GPS mode to the static mode.

12、状态机管理向手机的定位装置下发命令:停止GPS。随后就不会再收到GPS信息的主动上报。12. The state machine management sends a command to the positioning device of the mobile phone: stop GPS. Then you will no longer receive active reporting of GPS information.

13、轨迹UI模块在地图上保持暂停之前的轨迹图,没有新的GPS信息上报、也就不会出现轨迹图混乱和偏移。13. The track UI module keeps the track map before the pause on the map. If there is no new GPS information to report, there will be no track map confusion and deviation.

如图9A至9C所示,为运动APP在触摸屏104中所显示的GUI示意图。在图9A中,图标901表明用户在运动过程中,图标902表明运动APP根据接收到的GPS信息在地图上画出的运动轨迹。提示栏903表明当前的跑步具体信息,例如时间、配速、距离等。图标904表明用户可以触摸该图标以便暂停跑步,图标905表明用户可以触摸该图标以便停止跑步。在电子设备(例如手机100)检测到计步传感器没有上报计步信息时,可以认为用户暂停跑步了。如图9B所示,在电子设备判断出用户暂停跑步后,原图标901被替换为图标906,图标906表明用户没有进行跑步运动了,图标907表明当前暂停跑步了,用户随时可以触摸图标907继续跑步。在本申请另外一些实施例中,在触摸屏104上还可以提示用户如下信息:“你已暂停跑步,已停止接收GPS信息,进入静止模式”等。As shown in FIGS. 9A to 9C , it is a schematic diagram of the GUI displayed by the sports APP in the touch screen 104 . In FIG. 9A , the icon 901 indicates that the user is exercising, and the icon 902 indicates the movement track drawn by the sports APP on the map according to the received GPS information. The prompt column 903 indicates the current running specific information, such as time, pace, distance and so on. Icon 904 indicates that the user can touch the icon to pause the run, and icon 905 indicates that the user can touch the icon to stop the run. When the electronic device (eg, the mobile phone 100 ) detects that the pedometer sensor does not report pedometer information, it can be considered that the user has paused running. As shown in FIG. 9B , after the electronic device determines that the user has paused running, the original icon 901 is replaced with an icon 906. The icon 906 indicates that the user is not running, and the icon 907 indicates that the running is currently suspended. The user can touch the icon 907 to continue at any time. Run. In some other embodiments of the present application, the touch screen 104 may also prompt the user with the following information: "You have paused running, stopped receiving GPS information, and entered a stationary mode."

在本申请另外一些实施例中,当用户的手指触摸图9B中的图标907后,电子设备响应于该触摸操作,开启GPS,接收定位装置的GPS信息,以便在地图上继续展示运动轨迹。也就是说,这个时候,电子设备自动从静止模式切换至GPS模式。In other embodiments of the present application, after the user's finger touches the icon 907 in FIG. 9B , the electronic device responds to the touch operation, turns on the GPS, and receives GPS information of the positioning device, so as to continue displaying the movement track on the map. That is to say, at this time, the electronic device automatically switches from the stationary mode to the GPS mode.

在本申请另外一些实施例中,当用户的手指触摸图标905后,响应于该触摸事件,电子设备停止接收GPS信息,并在触摸屏上显示跑步完成的图标908及其他相关的跑步信息。In some other embodiments of the present application, after the user's finger touches the icon 905, in response to the touch event, the electronic device stops receiving GPS information, and displays the running completed icon 908 and other related running information on the touch screen.

本申请实施例提供一种电子设备,该电子设备包括触摸屏,计步传感器,定位装置,一个或多个处理器,存储器,多个应用程序,以及一个或多个程序,其中该一个或多个程序被存储在上述存储器中,上述一个或多个程序包括指令,当上述指令被该电子设备执行时,使得所述电子设备执行以下步骤:An embodiment of the present application provides an electronic device, the electronic device includes a touch screen, a pedometer sensor, a positioning device, one or more processors, a memory, a plurality of application programs, and one or more programs, wherein the one or more Programs are stored in the memory, and the one or more programs include instructions that, when executed by the electronic device, cause the electronic device to perform the following steps:

在上述电子设备的触摸屏中显示运动APP的图形用户界面(以下简称GUI);A graphical user interface (hereinafter referred to as GUI) of the sports APP is displayed on the touch screen of the above electronic device;

上述电子设备检测到在触摸屏上的触摸事件;The above electronic device detects a touch event on the touch screen;

响应于上述触摸事件,上述运动APP接收来自定位装置的GPS信息,并在上述运动APP的GUI中显示与GPS信息对应的运动轨迹;In response to the above-mentioned touch event, the above-mentioned sports APP receives the GPS information from the positioning device, and displays the motion trajectory corresponding to the GPS information in the GUI of the above-mentioned sports APP;

计步传感器上报计步信息给上述运动APP;The pedometer sensor reports the pedometer information to the above sports APP;

当上述运动APP在预定时间内没有收到上述计步传感器的计步信息,则该运动APP不再接收来自定位装置的GPS信息。When the above-mentioned sports APP does not receive the step-counting information from the above-mentioned pedometer sensor within a predetermined time, the sports APP no longer receives GPS information from the positioning device.

在本申请其他一些实施例中,上述指令还包括使得所述电子设备执行以下步骤的指令:In some other embodiments of the present application, the above-mentioned instruction further includes an instruction to cause the electronic device to perform the following steps:

在上述触摸屏中提示用户GPS信息已暂停接收的信息。这样方便用户进行下一步处理。该触摸屏中还可以显示运动APP当前已经暂停记录运动轨迹的GUI。In the above-mentioned touch screen, the user is reminded that the GPS information has been suspended. This is convenient for the user to proceed to the next step. The touch screen can also display the GUI of the motion APP currently paused to record the motion track.

当上述运动APP接收到计步传感器的计步信息时,再接收GPS信息,并在运动APP的GUI上显示与GPS信息对应的运动轨迹。When the above-mentioned sports APP receives the pedometer information of the pedometer sensor, it receives the GPS information again, and displays the motion track corresponding to the GPS information on the GUI of the sports APP.

当上述运动APP接收到计步传感器的计步信息,并且计步信息表明当前的速度小于或等于10分钟/公里时,运动APP停止接收GPS信息,并在运动APP的GUI上显示本次运动(跑步)已完成的信息,例如形成运动轨迹展示给用户。When the above sports APP receives the pedometer information from the pedometer sensor, and the pedometer information indicates that the current speed is less than or equal to 10 minutes/km, the sports APP stops receiving GPS information, and displays the current exercise on the GUI of the sports APP ( Running) completed information, such as forming a motion track to display to the user.

如上述实施例中所用,根据上下文,术语“当…时”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。As used in the above embodiments, the term "when" may be interpreted to mean "if" or "after" or "in response to determining..." or "in response to detecting..." depending on the context. Similarly, depending on the context, the phrases "in determining..." or "if detecting (the stated condition or event)" can be interpreted to mean "if determining..." or "in response to determining..." or "on detecting (the stated condition or event)" or "in response to the detection of (the stated condition or event)".

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘)等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state drives), and the like.

为了解释的目的,前面的描述是通过参考具体实施例来进行描述的。然而,上面的示例性的讨论并非意图是详尽的,也并非意图要将本申请限制到所公开的精确形式。根据以上教导内容,很多修改形式和变型形式都是可能的。选择和描述实施例是为了充分阐明本申请的原理及其实际应用,以由此使得本领域的其他技术人员能够充分利用具有适合于所构想的特定用途的各种修改的本申请以及各种实施例。For purposes of explanation, the foregoing description has been made with reference to specific embodiments. However, the exemplary discussion above is not intended to be exhaustive, nor to limit the application to the precise form disclosed. Many modifications and variations are possible in light of the above teachings. The embodiment was chosen and described in order to fully explain the principles of the application and its practical application, to thereby enable others skilled in the art to utilize the application and various implementations with various modifications as are suited to the particular use contemplated example.

Claims (3)

1.一种运动记录的方法,所述方法在具有定位模块、触摸屏和计步传感器的电子设备中实现,其特征在于,所述方法包括:1. A method for motion recording, the method is realized in an electronic device with a positioning module, a touch screen and a pedometer sensor, wherein the method comprises: 在所述触摸屏中显示运动APP的图形用户界面;displaying the graphical user interface of the sports APP in the touch screen; 检测到在所述触摸屏上的触摸事件;detecting a touch event on the touch screen; 响应于上述触摸事件,所述运动APP接收来自所述定位模块的GPS信息,并在所述运动APP的图形用户界面中显示与GPS信息对应的运动轨迹;In response to the above-mentioned touch event, the motion APP receives GPS information from the positioning module, and displays a motion trajectory corresponding to the GPS information in the graphical user interface of the motion APP; 所述计步传感器上报计步信息给所述运动APP;The pedometer sensor reports the pedometer information to the sports APP; 当所述运动APP在预定时间内没有收到所述计步传感器的计步信息时,则所述运动APP不再接收来自所述定位模块的GPS信息,并在所述触摸屏中提示用户GPS信息已暂停接收的信息;When the sports APP does not receive the pedometer information from the pedometer sensor within a predetermined time, the sports APP no longer receives the GPS information from the positioning module, and prompts the user GPS information on the touch screen Information that has been suspended; 当所述运动APP再次接收到所述计步传感器的计步信息时,再接收所述定位模块的GPS信息,并在所述运动APP的图形用户界面上显示与所述GPS信息对应的运动轨迹;When the sports APP receives the pedometer information of the pedometer sensor again, it receives the GPS information of the positioning module again, and displays the motion track corresponding to the GPS information on the graphical user interface of the sports APP. ; 当所述运动APP接收到所述计步传感器的计步信息,并且所述计步信息表明当前的速度小于或等于预设门限时,所述运动APP停止接收GPS信息,并在所述运动APP的图形用户界面上显示本次运动已完成的信息,并形成运动轨迹展示给用户。When the sports APP receives the step-counting information of the pedometer sensor, and the step-counting information indicates that the current speed is less than or equal to the preset threshold, the sports APP stops receiving GPS information, and the sports APP The information that the exercise has been completed is displayed on the graphical user interface of the mobile phone, and the movement trajectory is formed to show the user. 2.一种电子设备,其特征在于,包括:触摸屏;计步传感器;一个或多个处理器;存储器;多个应用程序;以及一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行以下步骤:2. An electronic device, comprising: a touch screen; a pedometer sensor; one or more processors; a memory; a plurality of application programs; and one or more programs, wherein the one or more programs are stored In the memory, the one or more programs include instructions that, when executed by the electronic device, cause the electronic device to perform the following steps: 在所述触摸屏中显示运动APP的图形用户界面;displaying the graphical user interface of the sports APP in the touch screen; 检测到在所述触摸屏上的触摸事件;detecting a touch event on the touch screen; 响应于上述触摸事件,所述运动APP接收来自定位装置的GPS信息,并在所述运动APP的图形用户界面中显示与GPS信息对应的运动轨迹;In response to the above-mentioned touch event, the motion APP receives GPS information from the positioning device, and displays a motion trajectory corresponding to the GPS information in the graphical user interface of the motion APP; 所述计步传感器上报计步信息给所述运动APP;The pedometer sensor reports the pedometer information to the sports APP; 当所述运动APP在预定时间内没有收到所述计步传感器的计步信息时,则所述运动APP不再接收来自所述定位装置的GPS信息;When the sports APP does not receive the pedometer information from the pedometer sensor within a predetermined time, the sports APP no longer receives GPS information from the positioning device; 并在所述触摸屏中提示用户GPS信息已暂停接收的信息;and prompting the user that the GPS information has been suspended to receive information in the touch screen; 当所述运动APP再次接收到所述计步传感器的计步信息时,再接收所述定位装置的GPS信息,并在所述运动APP的图形用户界面上显示与所述GPS信息对应的运动轨迹;When the sports APP receives the pedometer information of the pedometer sensor again, it receives the GPS information of the positioning device again, and displays the motion track corresponding to the GPS information on the graphical user interface of the sports APP. ; 当所述运动APP接收到所述计步传感器的计步信息,并且所述计步信息表明当前的速度小于或等于预设门限时,所述运动APP停止接收GPS信息,并在所述运动APP的图形用户界面上显示本次运动已完成的信息,并形成运动轨迹展示给用户。When the sports APP receives the step-counting information of the pedometer sensor, and the step-counting information indicates that the current speed is less than or equal to the preset threshold, the sports APP stops receiving GPS information, and the sports APP The information that the exercise has been completed is displayed on the graphical user interface of the mobile phone, and the movement trajectory is formed to show the user. 3.一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1所述的方法。3. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, wherein when the instructions are executed on an electronic device, the electronic device is made to execute the method according to claim 1. method.
CN201780010527.4A 2017-01-22 2017-06-14 Motion recording method and electronic device Active CN108700429B (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201710047387 2017-01-22
CN201710047387X 2017-01-22
PCT/CN2017/088272 WO2018133313A1 (en) 2017-01-22 2017-06-14 Motion recording method and electronic device

Publications (2)

Publication Number Publication Date
CN108700429A CN108700429A (en) 2018-10-23
CN108700429B true CN108700429B (en) 2020-10-23

Family

ID=62907836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780010527.4A Active CN108700429B (en) 2017-01-22 2017-06-14 Motion recording method and electronic device

Country Status (2)

Country Link
CN (1) CN108700429B (en)
WO (1) WO2018133313A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110096195B (en) * 2019-04-29 2024-08-27 努比亚技术有限公司 Sports icon display method, wearable device and computer readable storage medium
CN112201230A (en) * 2019-07-08 2021-01-08 安徽华米信息科技有限公司 Voice response method, device, equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100507914C (en) * 2006-11-02 2009-07-01 广东新蓝德信息产业有限公司 A GIS automatic mapping system and its automatic mapping method
CN101437069A (en) * 2007-11-16 2009-05-20 希姆通信息技术(上海)有限公司 Method for measuring step using mobile communication equipment
JP5949061B2 (en) * 2012-03-30 2016-07-06 ソニー株式会社 Information processing apparatus, information processing method, and program
JP2014140604A (en) * 2013-01-23 2014-08-07 Kazuhiro Shiina System for measuring walking speed and stride
CN104537132A (en) * 2015-01-30 2015-04-22 小米科技有限责任公司 Motion data recording method and device
US9696165B2 (en) * 2015-02-03 2017-07-04 The Regents Of The University Of Michigan Last-mile navigation using smartphones
CN105403228B (en) * 2015-12-18 2019-01-29 北京乐动力网络科技有限公司 A kind of determination method and apparatus of move distance
CN105698813B (en) * 2016-01-29 2018-11-27 广东欧珀移动通信有限公司 Anti-error step counting method and system, mobile terminal and pedometer

Also Published As

Publication number Publication date
WO2018133313A1 (en) 2018-07-26
CN108700429A (en) 2018-10-23

Similar Documents

Publication Publication Date Title
AU2023202760B2 (en) Image sharing method and electronic device
US10708649B2 (en) Method, apparatus and system for displaying bullet screen information
EP3640782B1 (en) Anti-misoperation method and terminal
CN108781235B (en) Display method and device
US12041447B2 (en) Image sharing method and system, and electronic device
US12271575B2 (en) Method for displaying different application shortcuts on different screens
EP4297417A2 (en) Method of controlling the sharing of videos and electronic device adapted thereto
WO2019000287A1 (en) Icon display method and device
CN108701043A (en) A display processing method and device
CN107333162B (en) Method and device for playing live video
CN106254910B (en) Method and device for recording image
WO2019061512A1 (en) Task switching method and terminal
CN111684827B (en) A method and device for setting supplementary services
CN107066090B (en) Method for controlling fingerprint identification module and mobile terminal
CN110536193A (en) A kind of processing method and processing device of audio signal
WO2017128986A1 (en) Selection method, device and storage medium for multimedia menu item
CN104316946B (en) Base station, GNSS joint positioning method and device
CN108700429B (en) Motion recording method and electronic device
CN111966271B (en) Screen panorama screenshot method, device, terminal device and storage medium
KR20140028778A (en) Method and apparatus for determining ping period

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