CN115620866A - Motion information prompting method and device - Google Patents

Motion information prompting method and device Download PDF

Info

Publication number
CN115620866A
CN115620866A CN202210686572.4A CN202210686572A CN115620866A CN 115620866 A CN115620866 A CN 115620866A CN 202210686572 A CN202210686572 A CN 202210686572A CN 115620866 A CN115620866 A CN 115620866A
Authority
CN
China
Prior art keywords
training
motion
data
scheme
stage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210686572.4A
Other languages
Chinese (zh)
Other versions
CN115620866B (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210686572.4A priority Critical patent/CN115620866B/en
Publication of CN115620866A publication Critical patent/CN115620866A/en
Application granted granted Critical
Publication of CN115620866B publication Critical patent/CN115620866B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/30ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to physical therapies or activities, e.g. physiotherapy, acupressure or exercising
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H15/00ICT specially adapted for medical reports, e.g. generation or transmission thereof

Landscapes

  • Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biophysics (AREA)
  • Physical Education & Sports Medicine (AREA)
  • Rehabilitation Tools (AREA)

Abstract

The application provides a motion information prompting method and a device, and the method comprises the following steps: responding to the selected operation of the motion application in the electronic equipment, and displaying a first interface, wherein the first interface displays at least one motion type; responding to the selection operation of the motion type in the first interface, displaying a second interface, wherein the second interface displays at least one motion mode, the at least one motion mode comprises a professional mode, the professional mode is used for customizing a training scheme, the training scheme comprises at least two training stages, and the next training stage in the two adjacent training stages is automatically started after the previous training stage is finished; the user-defined training scheme is operated in the professional mode, the movement prompt information is broadcasted, and the movement prompt information is obtained based on the user-defined training scheme and the movement data collected by the electronic equipment, so that the electronic equipment has the function of the user-defined training scheme, the function of the electronic equipment is improved, and the user operation can be reduced.

Description

Motion information prompting method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for prompting motion information.
Background
At present, a sport Application (APP) can be installed in electronic devices such as a mobile phone and a watch, and a user can start the sport APP to monitor the sport of the user, but the function of the sport APP needs to be improved.
Disclosure of Invention
The application provides a motion information prompting method and device, and aims to improve the function of a motion APP and reduce user operation. In order to achieve the above object, the present application provides the following technical solutions:
in a first aspect, the present application provides a motion information prompting method, applied to an electronic device, the method including: responding to the selected operation of the motion application in the electronic equipment, and displaying a first interface, wherein the first interface displays at least one motion type; responding to the selection operation of the motion type in the first interface, displaying a second interface, wherein the second interface displays at least one motion mode, the at least one motion mode comprises a professional mode, the professional mode is used for customizing a training scheme, the training scheme comprises at least two training stages, and the next training stage in the two adjacent training stages is automatically started after the previous training stage is finished; and running the customized training scheme in the professional mode, and broadcasting motion prompt information, wherein the motion prompt information is obtained based on the customized training scheme and the motion data acquired by the electronic equipment. In the application, the electronic equipment can enable a user to customize a training scheme through a professional mode in the second interface, so that the electronic equipment has the function of customizing the training scheme, and the function of the electronic equipment is improved. The next training stage in two adjacent training stages in the user-defined training scheme is automatically started after the last training stage is finished, so that the operation that a user manually starts the next training stage is omitted, and the electronic equipment can also broadcast the motion prompt information, so that the user does not need to manually check the motion prompt information, and the user operation is reduced.
In one possible implementation, the custom training scheme in the professional mode includes: responding to the selection operation of the professional mode, and displaying a third interface which displays new training scheme options; responding to the selection operation of the new training scheme option, and displaying a fourth interface, wherein the fourth interface displays a training stage quantity option which is used for setting the quantity of the training stages of the training scheme; and displaying a fifth interface in response to the completion of the setting of the number of the training stages, wherein the fifth interface displays training stage setting areas matched with the set number of the training stages, each training stage setting area comprises at least one value setting area of the motion parameters, and the values set in the value setting areas of the motion parameters are used for obtaining a training scheme. In the application, the electronic device completes the self-defining of the number of the training stages in the training scheme through the fourth interface and completes the self-defining of the training data of each training stage through the fifth interface, so that a user can self-define one training scheme through the fourth interface and the fifth interface.
In one possible implementation, the third interface further displays existing training scenario options, and customizing the training scenario in the professional mode further includes: responding to the selection operation of the existing training scheme option, displaying a sixth interface, displaying the existing training scheme of the selected motion type in the sixth interface, and displaying at least the name of the existing training scheme and the abstract of the existing training scheme when the existing training scheme is displayed, wherein the existing training scheme is a self-defined training scheme; and in response to the operation of selecting the existing training scheme in the sixth interface, determining the selected existing training scheme as the training scheme. In the application, the user can also determine a training scheme from the existing training schemes through the sixth interface, so that the operation of re-customizing the training scheme by the user is omitted, and the customized existing training scheme can be reused.
In one possible implementation, the customized training scenario in the professional mode further includes: and in response to the selection operation of the saving template option in the fourth interface, saving the training scheme set by the fourth interface as the existing training scheme. When the same exercise type is selected again, the existing training scheme can be directly determined as the training scheme to be used currently, and the training scheme can be reused.
In one possible implementation, the training setting area includes: at least one value setting area of a heart rate setting area, a speed setting area, a time setting area, a step frequency setting area, a step length setting area and a distance setting area; the fifth interface further comprises a rest time setting area, wherein the rest time setting area is used for setting rest time, and the rest time is used for controlling the automatic starting of the next training stage; the training scheme is obtained based on the values set by the value setting area and the rest time set by the rest time setting area. In this application, the electronic device can complete at least one of the motion targets of heart rate, speed, time, stride frequency, stride and distance by using a heart rate setting area, a speed setting area, a time setting area, a stride frequency setting area, a stride setting area and a distance setting area, and the set motion target is used as training data in a training phase. And the electronic equipment can automatically start the next training stage by using the rest time, so that manual starting of a user is omitted.
In one possible implementation, the motion hint information includes: at least one of information for starting countdown, information for starting timing, information for judging whether the process of each training stage reaches the standard, information for reminding the end of the training stage, information for judging whether the training stage reaches the standard, information for reminding rest time, suggestion of the next training stage, information for starting countdown of the next training stage and information for judging whether the overall movement reaches the standard.
In one possible implementation, the method further includes: responding to the starting operation of the training scheme, and determining a currently monitored training stage; and broadcasting the motion prompt information based on the currently monitored training data in the training stage and the motion data collected by the electronic equipment.
In a possible implementation manner, the broadcasting of the motion prompt information based on the currently monitored training data in the training stage and the motion data collected by the electronic device includes: acquiring training data of a currently monitored training stage and acquiring motion data; comparing the training data and the motion data of the currently monitored training stage to determine whether the training data and the motion data of the currently monitored training stage are matched; if the training data of the training stage monitored currently is matched with the motion data, at least broadcasting motion prompt information for finishing the training of the training stage monitored currently; and if the training data of the training stage monitored currently is not matched with the exercise data, at least broadcasting exercise prompt information which does not finish the training of the training stage monitored currently.
In one possible implementation, if each of the training data and the athletic data of the same type match, determining that the training data and the athletic data of the currently monitored training phase match; if one of the training data and the athletic data is of the same type of data match, it is determined that the training data and the athletic data for the currently monitored training phase do not match.
In a possible implementation manner, the broadcasting of the motion prompt information based on the currently monitored training data in the training phase and the motion data collected by the electronic device includes: if the training data of the currently monitored training stage is matched with the exercise data, broadcasting exercise prompt information for starting rest and preparing the next training stage; determining that the rest is finished based on the rest time of the currently monitored training stage, and automatically starting the next training stage; and determining the next training stage as the currently monitored training stage, and broadcasting the motion prompt information based on the training data of the currently monitored training stage and the motion data acquired by the electronic equipment.
In one possible implementation, the method further comprises: if the currently monitored training stage is the last training stage of the training scheme, broadcasting motion prompt information for completing all the training stages; if the training stage monitored currently is not the last training stage of the training scheme, broadcasting the motion prompt information of not finishing all the training stages, and determining the next training stage as the training stage monitored currently.
In a possible implementation manner, the broadcasting of the motion prompt information based on the currently monitored training data in the training stage and the motion data collected by the electronic device includes: and broadcasting the exercise prompt information of the exercise suggestion of the next training stage based on the comparison result of the training data and the exercise data of the currently monitored training stage.
In one possible implementation manner, the motion data is collected through a hardware layer of the electronic device, the motion data is sent to an application layer of the electronic device through a kernel layer, a hardware abstraction layer, a system library and an application framework layer of the electronic device, and the application layer of the electronic device is used for broadcasting the motion prompt information based on the currently monitored training data in the training stage and the motion data collected by the electronic device.
In one possible implementation, the collecting of the motion data by the hardware layer of the electronic device includes: acquiring time through a clock module of a hardware layer; collecting distance through a global positioning system module of a hardware layer; acquiring a heart rate through a photoplethysmography module of a hardware layer; acquiring frequency conversion through a gravity sensor and a gyroscope sensor of a hardware layer; wherein distance and time are used to derive speed and distance and stride frequency are used to derive stride length.
In a second aspect, the present application provides an electronic device, which includes a display screen, a broadcast module, one or more processors, and a memory; the display screen is used for displaying an interface, and the broadcasting module is used for broadcasting the motion prompt information; the storage has stored thereon a program that, when executed by one or more processors, causes the electronic device to perform the method of motion information prompting as described in the first aspect.
In a third aspect, the present application provides a readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the motion information prompting method according to the first aspect.
In a fourth aspect, the present application provides a motion information prompting device, which is applied to an electronic device, and includes: the display module is used for responding to the selection operation of the motion application in the electronic equipment and displaying a first interface, and the first interface displays at least one motion type; responding to the selection operation of the motion type in the first interface, displaying a second interface, wherein the second interface displays at least one motion mode, the at least one motion mode comprises a professional mode, the professional mode is used for customizing a training scheme, the training scheme comprises at least two training stages, and the next training stage in the two adjacent training stages is automatically started after the previous training stage is finished; the operation module is used for operating the customized training scheme in the professional mode; and the broadcasting module is used for broadcasting the motion prompt information, and the motion prompt information is obtained based on the customized training scheme and the motion data acquired by the electronic equipment. In the application, the electronic equipment can enable a user to customize a training scheme through a professional mode in the second interface, so that the electronic equipment has the function of customizing the training scheme, and the function of the electronic equipment is improved. The next training stage in two adjacent training stages in the user-defined training scheme is automatically started after the last training stage is finished, so that the operation that a user manually starts the next training stage is omitted, and the electronic equipment can also broadcast the motion prompt information, so that the user does not need to manually check the motion prompt information, and the user operation is reduced.
In a possible implementation manner, the display module is further configured to display a third interface in response to a selection operation of the professional mode, wherein the third interface displays a new training scheme option; responding to the selection operation of the new training scheme option, and displaying a fourth interface, wherein the fourth interface displays a training stage number option which is used for setting the number of training stages of the training scheme; and displaying a fifth interface in response to the completion of the setting of the number of the training stages, wherein the fifth interface displays training stage setting areas matched with the set number of the training stages, each training stage setting area comprises at least one value setting area of the motion parameter, and the value set in the value setting area of the motion parameter is used for obtaining the training scheme. In the application, the electronic equipment completes the self-definition of the number of the training stages in the training scheme through the fourth interface and completes the self-definition of the training data of each training stage through the fifth interface, so that a user can define a training scheme through the fourth interface and the fifth interface.
In a possible implementation manner, the third interface further displays an existing training scheme option, the display module is further configured to display a sixth interface in response to a selection operation of the existing training scheme option, the sixth interface displays an existing training scheme of a selected motion type, and at least displays a name of the existing training scheme and an abstract of the existing training scheme when the existing training scheme is displayed, wherein the existing training scheme is a self-defined training scheme; and in response to the operation of selecting the existing training scheme in the sixth interface, determining the selected existing training scheme as the training scheme. In the application, the user can also determine a training scheme from the existing training schemes through the sixth interface, so that the operation of re-customizing the training scheme by the user is omitted, and the customized existing training scheme can be reused.
In a possible implementation manner, the apparatus further includes a saving module, configured to save the training solution set in the fourth interface as the existing training solution in response to a selection operation of the saving template option in the fourth interface. When the same exercise type is selected again, the existing training scheme can be directly determined as the training scheme to be used currently, and the training scheme can be reused.
In one possible implementation, the training setting area includes: at least one numerical setting area of a heart rate setting area, a speed setting area, a time setting area, a step frequency setting area, a step length setting area and a distance setting area; the fifth interface also comprises a rest time setting area, wherein the rest time setting area is used for setting rest time, and the rest time is used for controlling the automatic start of the next training stage; the training scheme is obtained based on the values set by the value setting area and the rest time set by the rest time setting area. In the application, the electronic device can complete at least one exercise target of heart rate, speed, time, stride frequency, stride and distance by utilizing a heart rate setting area, a speed setting area, a time setting area, a stride frequency setting area and a distance setting area, and the set exercise target is used as training data in a training phase. And the electronic equipment can automatically start the next training stage by using the rest time, so that manual starting of a user is omitted.
In one possible implementation, the motion hint information includes: at least one of information for starting countdown, information for starting timing, information for judging whether the process of each training stage reaches the standard, information for reminding the end of the training stage, information for judging whether the training stage reaches the standard, information for reminding rest time, suggestion of the next training stage, information for starting countdown of the next training stage and information for judging whether the overall movement reaches the standard.
In one possible implementation, the apparatus further includes: the monitoring module is used for responding to the starting operation of the training scheme and determining the training stage of the current monitoring; based on the training data of the training stage of the current monitoring and the motion data collected by the electronic equipment, the broadcasting module is triggered to broadcast the motion prompt information.
In one possible implementation, the monitoring module includes: the acquisition unit is used for acquiring training data of a currently monitored training stage and acquiring motion data; the comparison unit is used for comparing the training data and the motion data of the currently monitored training stage to determine whether the training data and the motion data of the currently monitored training stage are matched; the control unit is used for triggering the broadcasting module to broadcast at least the exercise prompt information for finishing the training of the currently monitored training stage if the training data of the currently monitored training stage is matched with the exercise data; if the training data of the training stage monitored at present is not matched with the motion data, the broadcasting module is triggered to broadcast at least the motion prompt information of the training stage not completed at present.
In one possible implementation, if each of the training data and the athletic data of the same type match, determining that the training data and the athletic data of the currently monitored training phase match; if one of the training data and the athletic data is of the same type of data match, it is determined that the training data and the athletic data for the currently monitored training phase do not match.
In a possible implementation manner, the control unit is further configured to trigger the broadcast module to broadcast motion prompt information for starting rest and preparing a next training stage if the training data of the currently monitored training stage is matched with the motion data; determining that the rest is finished based on the rest time of the currently monitored training stage, and automatically starting the next training stage; and determining the next training stage as the currently monitored training stage, and broadcasting the motion prompt information based on the training data of the currently monitored training stage and the motion data acquired by the electronic equipment.
In a possible implementation manner, the control unit is further configured to trigger the broadcast module to broadcast the motion prompt information for completing all the training phases if the currently monitored training phase is the last training phase of the training scheme; if the training stage monitored currently is not the last training stage of the training scheme, the broadcasting module is triggered to broadcast the motion prompt information of not finishing all the training stages, and the next training stage is determined as the training stage monitored currently.
In a possible implementation manner, the control unit is further configured to broadcast the exercise prompt information of the exercise suggestion of the next training stage based on a comparison result between the currently monitored training data of the training stage and the exercise data.
In one possible implementation manner, the motion data is collected through a hardware layer of the electronic device, the motion data is sent to an application layer of the electronic device through a kernel layer, a hardware abstraction layer, a system library and an application framework layer of the electronic device, and the application layer of the electronic device is used for broadcasting the motion prompt information based on the currently monitored training data in the training stage and the motion data collected by the electronic device.
In one possible implementation, the collecting of the motion data by the hardware layer of the electronic device includes: acquiring time through a clock module of a hardware layer; the method comprises the steps of collecting distance through a global positioning system module of a hardware layer; acquiring a heart rate through a photoplethysmography module of a hardware layer; acquiring frequency conversion through a gravity sensor and a gyroscope sensor of a hardware layer; wherein the distance and time are used to derive the speed and the distance and stride frequency are used to derive the stride.
Drawings
FIG. 1 is a schematic view of viewing motion parameters provided herein;
FIG. 2 is a schematic illustration of course selection through sports APP provided herein;
FIG. 3 is a hardware block diagram of an electronic device provided herein;
fig. 4 is a diagram of software and hardware structures of an electronic device provided in the present application;
fig. 5 is a schematic diagram of a motion information prompting method provided in the present application;
FIG. 6 is a schematic diagram of a user-defined training scenario provided herein;
fig. 7 is a signaling diagram of a motion information prompting method provided in the present application;
FIG. 8 is a schematic illustration of a training regimen provided herein;
fig. 9 is a flowchart of data comparison in the exercise information prompting method provided in the present application;
fig. 10 is a schematic diagram of an exercise information prompt during running provided by the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. The terminology used in the following examples is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of this application and the appended claims, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, such as "one or more", unless the context clearly indicates otherwise. It should also be understood that in the embodiments of the present application, "one or more" means one, two or more; "and/or" describes the association relationship of the associated objects, indicating that three relationships may exist; for example, a and/or B, may represent: a exists singly, A and B exist simultaneously, and B exists singly, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The embodiments of the present application refer to a plurality of the same or greater than two. It should be noted that, in the description of the embodiments of the present application, the terms "first", "second", and the like are used for distinguishing the description, and are not to be construed as indicating or implying relative importance or order.
The sports APP installed in the electronic device has a plurality of training modes, for example, the sports APP includes an open training mode (also called a free mode), a target training mode, and an intermittent training mode (also called a training mode), and the user can select one training mode from the training modes during sports to monitor the user's sports. The free mode is a motion mode without a motion target, and in the open training mode, the user may not set the motion target, for example, the user does not set any motion target such as distance, heat, time, and the like. The goal training mode is a motion mode for setting a moving goal, in which a user can set the moving goal, for example, the user can set at least one of distance, heat, time, and the like to set a single moving goal. The coaching mode is a sports mode that gives a rest time (also referred to as a rest time), and provides a plurality of sports courses (also referred to as training courses), and a user can select one sports course in the coaching mode and exercise with reference to the sports course.
The open type training mode and the target training mode are basic training modes and can meet the requirements of most users; the intermittent training mode is mainly aimed at users who improve the exercise ability, and provides guidance methods, exercise courses and the like for the users. After the user selects any one of the training modes, the electronic device may collect the exercise data of the user, for example, the electronic device may collect the distance, time, and energy consumed during the exercise of the user. During the movement process of the user and/or after the user finishes moving, the user can view the movement data collected by the electronic equipment, and the electronic equipment can output the movement data in at least one form of a chart, a numerical value and the like.
For example, fig. 1 (1) shows a sport mode interface in which a free mode and a coaching mode are displayed, and the electronic device can display the interface shown in fig. 1 (2) after the user selects the free mode, which includes distance, time, and heat. In the rest gap or the movement, the user can click any one of distance, time and heat for viewing, for example, the user clicks the distance for viewing, the electronic device switches from the interface displaying the free mode to the interface displaying the distance, the distance that the user has currently moved is displayed in the interface, and as shown in (3) in fig. 1, the distance that the user has currently moved is displayed in the interface.
Referring to the interface description shown in fig. 2, fig. 2 (1) shows a desktop of the mobile phone, where the desktop of the mobile phone displays a plurality of application icons, for example, the desktop of the mobile phone displays a sports application icon, a camera application icon, and the like. The user may click on the sports application icon, the mobile phone runs the sports application, and jump from the desktop displaying fig. 2 (1) to the sports type interface displaying fig. 2 (2), and the sports type may include running, riding, swimming, walking, and fitness. The user may select one of these types of motion, such as where the user may click to run, jump from the motion type interface shown in (2) of FIG. 2 to the motion mode interface shown in (3) of FIG. 2, which may include a free mode and a coaching mode. If the user can click the trainer mode of (3) in fig. 2, the mobile phone can display the training program interface shown in (4) in fig. 2, and a preset running training program is displayed in the training program interface. For example, a running training program may cycle through a fast run of 5 minutes, a slow run of 3 minutes, and so on. Fig. 2 (4) shows the progress by the black color filled in by one rounded rectangle, for example, the first rounded rectangle is filled with black color completely, which shows that the user has finished the first sprint for 5 minutes, the part of the second rounded rectangle is filled with black color, which shows that the user is jogging for 3 minutes in the first jogging but has not finished jogging for 3 minutes, the third rounded rectangle and the fourth rounded rectangle are not filled with black color, which shows that the user has not started the second sprint for 5 minutes and the second jogging for 3 minutes, and the user needs to open the interface shown in fig. 2 (4) to check the progress of the running during the running.
In the coaching mode, the exercise course selected by the user is preset and fixed invariable, for example, one exercise course comprises a plurality of training stages, and the training content of each training stage is fixed invariable, so that the user cannot adjust the training content according to the physical condition. The beginning and end of each training phase may be manually controlled by the user, with frequent user operations. Under the mode of coaching, every motion course can regard as the motion target with the heart rate to promote the training effect, the heart rate that is regarded as the motion target generally is looked over from electronic equipment after finishing the motion for the user can't know the heart rate in real time in the motion process, certainly also can't know in real time to other motion parameters in the motion process.
Therefore, the application provides a motion information prompting method, which can acquire training data of a training scheme set by a user, wherein the training data comprises training data (such as a motion target) of a plurality of training stages, and rest time is set after each training stage; the exercise data of the user are collected in response to the training starting operation of the user, the exercise data and the training data are compared, and broadcasting is performed according to the comparison result, for example, the training result of each training stage is broadcasted, the rest and starting of each training stage is broadcasted, the exercise data is broadcasted, and the like, so that the manual operation of the user is omitted, and the user operation is simplified. The training result and/or the exercise data of each training stage can be broadcasted to the user, a link that the user manually checks the content in the exercise process and/or after finishing exercise is omitted, so that the user can know the exercise condition in real time in the exercise process, for example, the user can know whether the exercise target is reached in real time in the exercise process through broadcasting, and the exercise target can comprise the value of at least one exercise parameter in the range, the time, the speed, the stride frequency, the heart rate and the like. The training scheme is a user-defined scheme, and the function of the user-defined training scheme is added in the sports APP, so that the function of the user-defined training scheme is realized, and the function of the sports APP is improved.
In this embodiment, the exercise information prompting method is applied to an electronic device, where the electronic device may be a mobile phone, a smart screen, a tablet computer, a wearable electronic device (such as a watch, a bracelet, and an earphone), an in-vehicle electronic device, an Augmented Reality (AR) device, a Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), a projector, and the like.
Fig. 3 shows a hardware structure diagram of an electronic device. The electronic device may include: the mobile terminal comprises a processor, an external memory interface, an internal memory, a Universal Serial Bus (USB) interface, a charging management module, a power management module, a battery, an antenna 1, an antenna 2, a mobile communication module, a wireless communication module, a sensor module, a key, a motor, an indicator, an audio module, a camera, a display screen, a Subscriber Identity Module (SIM) card interface and the like. Wherein the audio module can include the speaker, the receiver, the microphone, earphone interface etc, sensor module can include pressure sensor, the gyroscope sensor, baroceptor, magnetic sensor, acceleration sensor, distance sensor, it approaches light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor, bone conduction sensor, gravity sensor, clock (CLK) module, global Positioning System (GPS) module, photoplethysmography (PPG) module etc.. The GPS module may be replaced with a distance sensor. Other modules may also be included in the sensor module for collecting other motion data associated with the user, such as for collecting average pace, grade rise and grade fall values, and the like.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic device. In other embodiments, an electronic device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor may include one or more processing units, such as: the processor may include an Application Processor (AP), a modem processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. The different processing units may be separate devices or may be integrated into one or more processors. The processor is a nerve center and a command center of the electronic equipment, and the controller can generate an operation control signal according to the instruction operation code and the time sequence signal to finish the control of instruction fetching and instruction execution.
The external memory interface can be used for connecting an external memory card, such as a Micro SD card, so as to expand the storage capability of the electronic device. The external memory card communicates with the processor through the external memory interface to realize a data storage function. For example, the exercise data and the training data are stored in the external memory card. The internal memory may be used to store computer-executable program code, which includes instructions. The processor executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory. For example, in the present application, the processor causes the electronic device to execute the motion information prompting method provided in the present application by executing instructions stored in the internal memory.
The display screen may be used to display images or video, such as displaying motion data in the form of graphs or numerical values. The display screen includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini light-emitting diode (Mini LED), a Micro light-emitting diode (Micro LED), a Micro OLED (Micro OLED), or a quantum dot light-emitting diode (QLED). In some embodiments, the electronic device may include 1 or N display screens, N being a positive integer greater than 1.
Loudspeakers, also known as "horns," are used to convert electrical audio signals into sound signals. The electronic device can broadcast prompt information through the loudspeaker, such as a training result and rest time of each training stage through the loudspeaker in the movement process, and remind a user of starting the next training stage.
Microphones, also known as "microphones", are used to convert sound signals into electrical signals. When making a call or sending voice information, a user can input a voice signal into the microphone by making a sound by approaching the microphone through the mouth of the user. Or the user may input training data or the like to the electronic device via the microphone. The electronic device may be provided with at least one microphone.
The earphone interface is used for connecting a wired earphone. The headset interface may be a USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association) standard interface for the USA.
The clock signal processing module is used for outputting time in the user movement process, the GPS module is used for outputting distance in the user movement process, the PPG module is used for outputting heart rate and heart rate change in the user movement process, and the gravity sensor and the gyroscope sensor are used for outputting step frequency in the user movement process.
In addition, an operating system runs on the above components. For example, the iOS os developed by apple, the Android open source os developed by google, the Windows os developed by microsoft, and the like. A running application may be installed on the operating system.
The operating system of the electronic device may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the application takes an Android system with a layered architecture as an example, and illustrates a software and hardware structure of an electronic device. Fig. 4 is a block diagram of the hardware and software architecture of the electronic device. The software and hardware structure adopts a layered architecture, the layered architecture divides the software and hardware into a plurality of layers, and each layer has clear roles and division of labor. The layers communicate with each other through a software interface. Taking the Android system as an example, in some embodiments, the Android system is divided into four layers, which are, from top to bottom, an application layer, an application Framework layer (Framework), a Hardware Abstraction Layer (HAL), a kernel layer, and a hardware layer.
Wherein the application layer may comprise a series of application packages. The application packages may include APPs of cameras, galleries, calendars, calls, maps, videos, sports, and the like. The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions. For example, the application framework layer may include a window manager, a content provider, and the like. The window manager is used for managing window programs, and can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The content provider is used to store and retrieve data and make it accessible to applications. The application framework layer may further include: and the Sensor Manager (Sensor Manager) module is used for acquiring the Sensor list, completing the registration or deregistration of the monitor to each Sensor in the Sensor list, and acquiring data from each Sensor in the Sensor list through the monitor.
The HAL layer runs in user space (user space), encapsulates the kernel layer driver, and provides a calling interface to upper layers (e.g., application framework layers). For example, the HAL layer provides a Sensor Service (Sensor Service) module and a Sensor hardware abstraction layer Service (Sensor HAL Service) module, the Sensor Service and the Sensor HAL Service are used for acquiring a Sensor list, a listener is registered for each Sensor in the Sensor list, and an event of the Sensor is monitored by the listener to acquire data from each Sensor in the Sensor list. The HAL layer may also provide a Sensor hardware abstraction layer (vector Sensor HAL) module, and the vector Sensor HAL continuously pulls (pull) data from the bottom layer in a while loop, such as pull data from each hardware of the hardware layer through the kernel layer, and uploads the data to the application framework layer and the application framework layer.
The kernel layer is a layer between hardware and software. The core layer may include a variety of drives, for example, the core layer includes a Sensor drive (Sensor Driver) and a two-wire serial bus drive (I2C Driver).
The hardware layer comprises: a CLK module, a GPS module, a PPG module, and an A + G (gravity sensor and gyroscope sensor) module. The CLK module is used to output time, such as the start time and end time of each training phase when the user moves with reference to the training phases in the training data. The GPS module is used to output distances, such as the distance traveled for each training session and the distance at the end of the training session. The PPG module is used to output the heart rate and the heart rate variation, such as outputting the heart rate once every a period of time (which may be an average heart rate in the interval time) during the exercise of the user, the heart rate after the training phase, and so on. The a + G module is configured to output a step frequency, for example, the a + G module may output an average step frequency of each training phase, where the step frequency is calculated according to data collected by the gravity sensor and the gyroscope sensor.
The hardware layer further comprises an I2C controller (I2C controller), the I2C controller uploads the motion data output by at least one module of the CLK module, the GPS module, the PPG module and the A + G module to an I2C Driver of the kernel layer, the I2C Driver of the kernel layer uploads the motion data to a Sensor Driver of the kernel layer, and the Sensor Driver uploads the motion data to a Vendor Sensor HAL of the HAL layer. The Vendor Sensor HAL is transmitted to the Sensor Manager of the application program framework layer through the Sensor HAL Service and the Sensor Service of the HAL layer, and finally uploaded to the motion APP of the application layer by the Sensor Manager. The CLK module, the GPS module, the PPG module and the A + G module on the hardware layer can actively upload the motion data, so that after the motion APP is started by a user, the motion APP can acquire the motion data acquired by the modules on the hardware layer in real time. The motion data may comprise at least one of distance, time, step frequency, heart rate, etc., whereby the electronic device has the function of monitoring distance, time, step frequency, heart rate, etc., and may also monitor the trajectory by distance.
When the user uses the electronic device, one of the distance, the time, the speed, the stride frequency and the heart rate can be used as the moving object, and two or more moving objects can be used in combination. The user can set a training scheme in the electronic device to realize the service of personalized customization of the training scheme, and the electronic device can monitor the movement of the user by means of different sensor modules (such as the CLK module and the GPS module) and calculate the movement data monitored by the different sensor modules in combination to meet the monitoring of the user on a direct target and an indirect target in the movement process, so that the user can obtain a movement mode matched with the user in a mode of autonomously setting the training scheme.
The description is made with reference to fig. 5, which shows a schematic diagram of the exercise information prompting method provided in the present application, where the exercise information prompting method may be applied to different types of electronic devices, for example, the exercise information prompting method may be applied to electronic devices such as a mobile phone, a watch, a bracelet, and an earphone. The sport APP in the electronic equipment comprises a professional mode, a user can set a training scheme in the professional mode, at least one of speed, time, stride, step frequency, distance, heart rate and the like is taken as a sport target, service of a personalized customized training scheme is achieved, and after the user finishes setting the training scheme, the electronic equipment obtains training data of the training scheme.
After the electronic device starts the training scheme, the electronic device can call a PPG module to monitor heart rate, call an A + G module to monitor step frequency, call a GPS module to monitor distance, call a CLK module to monitor time, a processor in the electronic device can calculate speed according to the time and the distance, and calculate pace according to the distance and the step frequency, for example, speed v = Δ s/Δ t, and Δ s is the distance of movement within time Δ t determined by the GPS module; stride l = s/f, s being the distance and f being the stride frequency. For example, from the beginning of the user's movement to the end of the movement, the PPG module is invoked to monitor the heart rate and the heart rate variation. The calling CLK module at each training phase monitors the start time, end time of the training phase, and may also monitor the time the training phase has moved, the total time moved, etc.
In the monitoring user motion process, electronic equipment can report in real time, and the report content includes but not limited to: start countdown, begin timing, whether reach standard in every training phase process, training phase finishes reminding, whether training phase reaches standard, rest time reminds, the suggestion of next training phase, next training phase starts countdown, whether the overall movement reaches standard (remind after accomplishing the motion according to the training scheme) and other conventionality are reminded, other conventionality are reminded and can include: the distance, time, and heat expended to exercise each training phase, among others, may also include whether the exercise is over. The broadcasted content can be used as motion prompt information.
In some examples, the electronic device may provide at least one customized manner by which a user may set the training regimen. For example, the electronic device may provide for formulation of screen inputs, voice inputs, photograph inputs, format inputs, and other inputs. The display screen input may be that the user completes the setting of the training scheme on the display screen; the voice input may be the user dictating a training scheme; the shooting input is that a user gives (such as handwriting) a training scheme, the electronic equipment shoots and then obtains the training scheme through an image recognition technology; the format input means that other electronic devices acquire a training scheme, for example, the training scheme on a computer is sent to a mobile phone through a network transmission mode. Other inputs are in addition to display screen input, voice input, photograph input, and format input.
An exercise may include a plurality of training modes, and a user-defined training profile may correspond to at least one training mode. The training mode comprises the following steps: the system comprises a first-stage uniform mode, a first-stage non-uniform mode, a multi-stage non-uniform mode and a user-defined cross mode, wherein the first-stage uniform mode is used for completing training under the condition of no rest, for example, running for a distance under the condition of no rest; the non-uniform mode is to complete the training under the condition of rest, and still taking running as an example, at least one rest time can be set in running for a distance. The multi-section uniform mode is to divide a training into a plurality of sections, and each section is a section of uniform mode; the multi-segment non-uniform pattern also divides a training into multiple segments, but each segment is a segment of non-uniform pattern. The user-defined cross mode can be a combination of at least two modes of a one-section uniform mode, a one-section non-uniform mode, a multi-section uniform mode and a multi-section non-uniform mode, and a user can select one training mode from the training modes when setting a training scheme for running. After the user sets for the training scheme, the electronic equipment can save the training scheme as a training template, and the user can directly use the training scheme when performing the corresponding movement of the training scheme again, so that the user does not need to set the training scheme again, or the user can adjust the training scheme, and the time is saved compared with the situation that the training scheme is set again.
Fig. 6 is an example of a Graphical User Interface (GUI) of a mobile phone, on which a User can make a training scenario, i.e., a custom training scenario. The GUI illustrated in FIG. 6 is merely an example, not a limitation, of a user's setup for a training regimen in a display screen input mode. Fig. 6 (1) shows a desktop of the mobile phone, where the desktop of the mobile phone displays a plurality of application icons, for example, the desktop of the mobile phone displays a sports application icon, a camera application icon, and the like. The user may click on the sports application icon, the mobile phone runs the sports application, and jump from the desktop displaying fig. 6 (1) to the sports type interface (first interface) displaying fig. 6 (2), and the sports type may include running, riding, swimming, walking, and fitness. If the user sets a training program for running, the user can click on running to jump from the exercise type interface shown in (2) of fig. 6 to the exercise mode interface (second interface) shown in (3) of fig. 6, and the exercise mode interface may include a free mode, a coaching mode, and a professional mode.
The professional mode differs from the coach mode in that: in the professional mode, the user can set the training scheme by himself, for example, in the professional mode, the user can set the training data of each training stage in the training scheme, and the like, and can set the rest time of each training stage. The user may click the professional mode shown in (3) in fig. 6, the mobile phone may display a training scenario selection interface (a third interface) shown in (4) in fig. 6, the training scenario selection interface includes a new training scenario and an existing training scenario, if the user clicks the existing training scenario, the mobile phone may display a training scenario (i.e., the existing training scenario) previously set by the user, and if the user clicks the existing training scenario interface (a sixth interface), the user may select one training scenario from the previously set training scenarios. When the existing training scheme is displayed, the existing training scheme interface can display the name of the existing training scheme and the abstract of the existing training scheme, and the existing training scheme is summarized through the name and the abstract, so that a user can conveniently know the content of the existing training scheme.
If the user clicks the new training scenario, which indicates that the user plans to set a new training scenario, the mobile phone may jump to the training stage setting interface (fourth interface) shown in (5) in fig. 6, and in the training stage setting interface shown in (5) in fig. 6, the user may write down the number of training stages, for example, the user may input "5", which indicates that the training scenario set by the user includes 5 training stages, but the training stage number option may provide a numerical value for the user to select, for example, provide 1 to 10 for the user to select, and the user selects one numerical value from the numerical values as the training stage number option.
After the user determines to set 5 training stages, the mobile phone jumps to a training scheme setting interface (a fifth interface) shown in (6) in fig. 6, where the user may set training data of each training stage in a training stage setting area a of the training scheme setting interface, where the training stage setting area a includes a value setting area A1, and sets a speed target, a distance target, and the like of each training stage in the value setting area A1, where, for example, the user writes the speed target and the distance target, and for example, the value setting area provides some values for the user to select, and the user may select the speed target and the distance target from the provided values, and the manner is not limited. The speed target may also be referred to as a target speed, and may refer to an average speed to be achieved in a training stage, and the distance target may also be referred to as a target distance, and may refer to a distance moved in a training stage. Of course, the user may also set a heart rate goal, a time goal, a stride frequency goal, a stride goal, and the like for one training session, and the training data for different training sessions may be the same or different. The training scheme setting interface further comprises a rest time setting area B, the user can set rest time in the rest time setting area B, and the rest time refers to the time for the user to rest after one training phase is finished and before the next training phase is started. The user may also set the stretch time, etc. in the training scheme. After the training scheme setting is completed, the user may click the "save template" control (which may also be referred to as an option) to save the training scheme set by the user in the training scheme setting interface, where the training scheme is used as an existing training scheme, and in the existing training scheme where the user clicks (5) in fig. 6, the mobile phone may display the training scheme. The number of the training phase setting areas a and the rest time setting areas B is the same as the number of training phases, and fig. 6 (6) illustrates an example, and fig. 6 (6) includes 5 training phase setting areas a and 5 rest time setting areas B.
Fig. 7 shows a signaling diagram of a motion information prompting method provided by the present application, which may include the following steps:
s11, the application layer detects that the user opens the motion application program (namely, the motion APP).
And S12, displaying an interface of the motion application program by the application layer. When the user opens the sport APP, which indicates that the user may want to perform a sport by means of the sport APP, the application layer may display an interface of the sport APP, for example, when the user opens the sport APP, the application layer may display a sport type interface shown in (2) in fig. 6, and the user selects a sport from the sport type interface.
After the user selects a sport from the sport type interface, the application layer may display a sport mode interface shown in (3) of fig. 6, and the sport mode interface may include a free mode, a coaching mode, and a professional mode, and the user may select a mode from the three modes. In one example, the user may select the professional mode, jump to a training scenario selection interface associated with the professional mode, and the user may select from the training scenario selection interface whether to set a new training scenario. For example, the application layer may display a training scenario selection interface shown in (4) of fig. 6, and the user may select a new training scenario option or an existing training scenario option. Whether the user sets a new training scheme through the new training scheme or selects an existing training scheme through the existing training scheme, the user may trigger the application layer to perform step S13 after determining a training scheme.
And S13, the application layer acquires and stores training data of a training scheme set in the interface by the user. The training data corresponds to a training scheme set by a user, the training scheme comprises a plurality of training stages, the training data of the training scheme comprises training data of the plurality of training stages, each training stage specifies at least one moving object, and a rest time can be set after one training stage. For example, a running training scheme, each training phase includes moving objects such as time and distance, the moving objects are training data of the training phase, and a rest time can be set after one training phase.
S14, the application layer judges whether the user starts training, if so, the step S17 is executed, and if not, the application layer continues to monitor whether the user starts training. Whether the user starts training or not refers to whether the user starts a training scheme or not, the user can manually start the training scheme, and if the application layer monitors that the user starts to click manually, the application layer judges that the user starts training.
In some examples, the user may set an on time of the training scheme, the application layer may obtain a running time of the electronic device, and the application layer may determine to start training if the running time is the on time of the training scheme. However, when the user does not move within the starting time, the application layer automatically judges that the user starts training through the running time and the starting time, and misjudgment may occur. The prompt information is used for prompting the user that the training scheme can be started, the user can select to start the training scheme or ignore the training scheme, and the user can consider that the training scheme is not started by the user.
And S15, the hardware layer collects the motion data of the user. The hardware layer can call a CLK module, a GPS module, a PPG module, an A + G (gravity sensor and gyroscope sensor) module to acquire motion data, the motion data comprise time, distance, heart rate and step frequency, the motion data further comprise a step and a speed, the step is obtained according to the distance and the step frequency, and the speed is obtained according to the distance and the time. During the process of using the electronic equipment by the user, the hardware layer can continuously collect the motion data of the user.
And S16, sending the motion data of the user to an application layer through a kernel layer, a HAL layer, a system library and an application framework layer in sequence.
The motion data can be continuously sent to the application layer through the kernel layer, the HAL layer, the system library and the application framework layer, so that the application layer can continuously acquire the motion data of the user to continuously update the motion data of the replacement user, such as continuous transmission time, distance, heart rate and stride frequency, and then the application layer can acquire the stride and the speed calculated by the application layer from the processor. In this embodiment, the motion data of the user may be periodically or intermittently transmitted to the application layer through the kernel layer, the HAL layer, the system library, and the application framework layer. In some examples, the motion data of the user is sent to the application layer after being changed; in some examples, the sending data of the user may be sent to the application layer periodically, which is not limited herein.
Step S15 and step S16 may be executed in parallel with step S11 to step S14, and in the process that the application layer detects that the user opens the exercise APP to set the training scheme, the application layer may obtain the exercise data of the user, so that after the user starts training, the application layer may obtain the exercise data of the user in time.
S17, the application layer can compare the training data and the motion data of the currently monitored training stage to determine whether the training data and the motion data are matched. A training phase also includes a rest period to control the automatic start of the next training phase after the end of the currently monitored training phase.
S18, the application layer determines whether the training data and the motion data of the currently monitored training stage are matched, if not, the step S19 is executed, and if so, the step S20 is executed. If the motion parameters and the motion data of the currently monitored training stage are the same, determining that the motion parameters and the motion data are matched; and if the motion parameters and the motion data of the currently monitored training stage are not the same, determining that the two are not matched.
One training stage may include a plurality of exercise parameters, and the application layer may compare each exercise parameter in the training stage with data having the same meaning in the exercise data to determine whether the training data and the exercise data match, that is, compare each data of the same type in the two data. For example, the exercise parameters of the training phase include distance and time, distance is one type, time is one type, and the alignment is performed by aligning the distances in the two data and aligning the times in the two data. If the distance of the training stage is the same as that of the motion data, and the time of the training stage is the same as that of the motion data, determining that the training data is matched with the motion data; the training data and the athletic data are determined to not match if the distance of the training phase and the distance in the athletic data are different, and/or the time of the training phase and the time in the athletic data are different.
And S19, the application layer broadcasts to prompt the user that the training in the training stage is not completed, and the step S17 is returned to be executed so as to continuously acquire the exercise data of the user for comparison.
And S20, broadcasting by an application layer to prompt a user to finish the training of the training stage and the training result of the training stage. For example, the end of the training phase is prompted, whether the training phase reaches the standard or not is prompted, and whether the training phase reaches the standard or not can be represented by the training result, for example, taking the example that the moving target includes distance and time, the moving target indicates that the moving target runs for M distance in N minutes, and then if the moving data indicates that the user completes the moving target, the training phase is prompted to reach the standard.
And S21, the application layer broadcasts to prompt the user to rest in the training stage and prepare to enter the next training stage. The start of the next training phase can be automatically started when the rest of the training phase reaches the set rest time.
S22, the application layer judges whether all training stages are finished, if so, the step S23 is executed, and if not, the step S24 is executed. If the last training stage is completed in step S20, it is determined that all training stages are completed, in some examples, the application layer adds 1 to the number of training stages each time the application layer completes training of one training stage, and if the number of training stages calculated by the application layer is the same as the number of training stages in the training data, it is determined that all training stages are completed. In some examples, if it is determined that there is no next training phase when step S21 is ready to enter the next training phase, it is determined that all training phases are completed.
And S23, broadcasting by the application layer to prompt the user that the training is finished.
And S24, the application layer broadcasts to prompt the user that all training is not finished, and the step S17 is returned to be executed so as to continuously acquire the exercise data of the user for comparison.
The exercise information prompting method provided by the application is described below by taking a training scheme of running set by a user as an example. As shown in fig. 8, the running training scheme includes three training phases, each of which includes a speed target and a distance target, for example, each training phase is set to run 1000 meters in 4 minutes, the corresponding distance target is 1000 meters, the speed target is 250 meters/minute, the speed target is an average speed, and each training phase can rest for 3 minutes after finishing.
After the training scheme of running is set, the user may start the training scheme while running, the electronic device may monitor the running of the user based on the training scheme, and a process of the corresponding exercise information prompting method is shown in fig. 9, and may include the following steps:
s101, the electronic equipment acquires and stores training data of each training stage. The training data includes: speed = [ s1, s2, s3], distance = [ d1, d2, d3], each training phase further includes a rest time = [ t1, t2, t3], where s1 represents a speed target of a first training phase, d1 represents a distance target of the first training phase, t1 represents a rest time after the first training phase is ended, similarly, s2 and d2 represent a speed target and a distance target of a second training phase respectively, t2 represents a rest time after the second training phase is ended, s3 and d3 represent a speed target and a distance target of a third training phase respectively, and t3 represents a rest time after the third training phase is ended.
The acquisition time of the training data may be acquired when the user sets the training scheme, or may be acquired when the user enters a training scheme starting interface, which is not limited herein.
S102, the electronic equipment acquires and stores motion data in real time from an application program framework layer, wherein the motion data comprises: s (velocity), d (distance), t (time), expressed as data [ s, d, t ] in an array. The real-time may be that the motion data is collected at the hardware layer and then sent to the application framework layer, and then the application layer obtains the motion data from the application framework layer.
S103, the electronic device starts training, and when training is started, the training scheme shown in fig. 8 is started, where the training scheme may be manually started by a user.
S104, the electronic equipment carries out distance comparison, the electronic equipment obtains a distance data [1] from the motion data during the distance comparison, and obtains the distance in the current training stage from the training data, if the current training stage is i, the distance [ i ] is obtained, and the distance [ i ] represents the distance of the ith training stage.
S105, the electronic equipment judges whether the data [1] is larger than or equal to distance [ i ]; if the data [1] is larger than or equal to the distance [ i ], executing the step S106 and the step S108, and if the data [1] is smaller than the distance [ i ], returning to the step S104 and continuing the distance comparison.
S106, the electronic equipment compares the speed, acquires the speed data [0] from the motion data when the speed is compared, and acquires the speed in the current training stage from the training data, and acquires the distance [ i ] to represent the speed of the ith training stage if the current training stage is i.
S107, the electronic equipment judges whether the data [0] is larger than or equal to speed [ i ]; if the data [0] is larger than or equal to the speed [ i ], broadcasting a notice of finishing the target, namely broadcasting a target for prompting the user to finish the ith training stage, and if the data [0] is smaller than the speed [ i ], giving and broadcasting a motion suggestion of the next stage, such as reducing the speed target of the next stage or reducing the distance target of the next stage, so as to adjust the training scheme according to the physical function of the user.
In some examples, if data [0] is greater than or equal to speed [ i ], the electronic device may also give a motion suggestion for the next stage, such as increasing the speed target or increasing the distance target for the next stage.
And S108, the electronic equipment broadcasts to inform the user of taking a rest. Step S108 and step S106 may be performed in parallel.
S109, the electronic equipment carries out time comparison, the electronic equipment acquires time data [2] from the motion data during the time comparison, acquires the time in the current training stage from the training data, and acquires distance [ i ] to represent the time of the ith training stage if the current training stage is i.
S110, the electronic equipment judges whether the data [2] is larger than or equal to time [ i ]; if the data [2] is more than or equal to the time [ i ], starting the next stage of motion, namely starting the next training stage, returning to the step S104, and starting to compare with the training data of the next training stage until the last training stage is completed; if the data [2] is less than the time [ i ], returning to execute the step S109 and continuing to perform time comparison.
Also for example, a training regimen for user-defined running has a multi-segment non-uniform pattern, the training regimen including four training segments, each training segment having a segment non-uniform pattern. For example, the first training phase comprises three phases, each with a distance target of 800 meters, a time target of 2 minutes 35 seconds, and a rest time of 3 minutes after each phase; the second training phase comprises three phases, each of which has a distance target of 800 meters, a time target of 2 minutes 40 seconds, and a rest time of 3 minutes after each phase; the third training phase comprises two phases, each of which has a distance target of 800 meters, a time target of 2 minutes and 50 seconds, and a rest time of 3 minutes after each phase; the fourth training phase consists of two phases, each of which is 800 meters distant target, 3 minutes time target, and 3 minutes of rest time between the two phases.
After the electronic device starts the training scheme, the electronic device implements a motion information prompting method, performs a monitoring prompt on the motion process of the user with reference to the training scheme, for example, performs the monitoring prompt according to the schematic diagram shown in fig. 10, and performs a broadcast prompt after each stage is completed, for example, whether the target of the stage is completed or not, a prompt of the next stage, and the like are broadcasted. And automatically start the next stage of monitoring by monitoring the rest time, etc.
In addition, the application also provides an electronic device, which comprises a display screen, a broadcasting module, one or more processors and a memory; the display screen is used for displaying an interface, and the broadcasting module is used for broadcasting the motion prompt information; the storage has stored thereon a program that, when executed by one or more processors, causes the electronic device to perform the above-described motion information prompting method.
The application further provides a readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the method for prompting the motion information is implemented.
The application also provides a motion information prompting device, which is applied to the electronic equipment, and the motion information prompting device comprises: display module, operation module and report module.
The display module is used for responding to the selection operation of the motion application in the electronic equipment and displaying a first interface, and the first interface displays at least one motion type; responding to the selection operation of the motion type in the first interface, displaying a second interface, wherein the second interface displays at least one motion mode, the at least one motion mode comprises a professional mode, the professional mode is used for customizing a training scheme, the training scheme comprises at least two training stages, and the next training stage in the two adjacent training stages is automatically started after the previous training stage is finished.
The operation module is used for operating the customized training scheme in the professional mode; and the broadcasting module is used for broadcasting the motion prompt information, and the motion prompt information is obtained based on a user-defined training scheme and motion data acquired by the electronic equipment. In the application, the electronic equipment can enable a user to customize a training scheme through a professional mode in the second interface, so that the electronic equipment has the function of the customized training scheme, and the function of the electronic equipment is improved. The next training stage in two adjacent training stages in the user-defined training scheme is automatically started after the last training stage is finished, so that the operation that a user manually starts the next training stage is omitted, and the electronic equipment can also broadcast the motion prompt information, so that the user does not need to manually check the motion prompt information, and the user operation is reduced.
In a possible implementation manner, the display module is further configured to display a third interface in response to a selection operation of the professional mode, wherein the third interface displays a new training scheme option; responding to the selection operation of the new training scheme option, and displaying a fourth interface, wherein the fourth interface displays a training stage number option which is used for setting the number of training stages of the training scheme; and displaying a fifth interface in response to the completion of the setting of the number of the training stages, wherein the fifth interface displays training stage setting areas matched with the set number of the training stages, each training stage setting area comprises at least one value setting area of the motion parameter, and the value set in the value setting area of the motion parameter is used for obtaining the training scheme. In the application, the electronic equipment completes the self-definition of the number of the training stages in the training scheme through the fourth interface and completes the self-definition of the training data of each training stage through the fifth interface, so that a user can define a training scheme through the fourth interface and the fifth interface.
In a possible implementation manner, the third interface further displays an existing training scheme option, the display module is further configured to display a sixth interface in response to a selection operation of the existing training scheme option, the sixth interface displays an existing training scheme of a selected motion type, and at least displays a name of the existing training scheme and an abstract of the existing training scheme when the existing training scheme is displayed, wherein the existing training scheme is a self-defined training scheme; and in response to the operation of selecting the existing training scheme in the sixth interface, determining the selected existing training scheme as the training scheme. In the application, the user can also determine a training scheme from the existing training schemes through the sixth interface, so that the operation of re-customizing the training scheme by the user is omitted, and the customized existing training scheme can be reused.
In a possible implementation manner, the exercise information prompting apparatus further includes a saving module, configured to, in response to a selection operation of a saving template option in the fourth interface, save the training scheme set in the fourth interface as an existing training scheme. When the same exercise type is selected again, the existing training scheme can be directly determined as the training scheme to be used currently, and the training scheme can be reused.
In one possible implementation, the training setting area includes: at least one numerical setting area of a heart rate setting area, a speed setting area, a time setting area, a step frequency setting area, a step length setting area and a distance setting area; the fifth interface further comprises a rest time setting area, wherein the rest time setting area is used for setting rest time, and the rest time is used for controlling the automatic starting of the next training stage; the training scheme is obtained based on the values set by the value setting area and the rest time set by the rest time setting area. In the application, the electronic device can complete at least one exercise target of heart rate, speed, time, stride frequency, stride and distance by utilizing a heart rate setting area, a speed setting area, a time setting area, a stride frequency setting area and a distance setting area, and the set exercise target is used as training data in a training phase. And the electronic equipment can automatically start the next training stage by using the rest time, so that manual starting of a user is omitted.
In one possible implementation, the motion hint information includes: at least one of information for starting countdown, information for starting timing, information for judging whether the process of each training stage reaches the standard, information for reminding the end of the training stage, information for judging whether the training stage reaches the standard, information for reminding rest time, suggestion of the next training stage, information for starting countdown of the next training stage and information for judging whether the overall movement reaches the standard.
In one possible implementation manner, the motion information prompting device further includes: the monitoring module is used for responding to the starting operation of the training scheme and determining the training stage of the current monitoring; based on the training data of the currently monitored training stage and the motion data collected by the electronic equipment, the broadcasting module is triggered to broadcast the motion prompt information.
In one possible implementation, the monitoring module includes: the device comprises an acquisition unit, a comparison unit and a control unit. The acquisition unit is used for acquiring training data of a currently monitored training stage and acquiring motion data; the comparison unit is used for comparing the training data and the motion data of the currently monitored training stage to determine whether the training data and the motion data of the currently monitored training stage are matched; the control unit is used for triggering the broadcasting module to at least broadcast the motion prompt information for finishing the training of the currently monitored training stage if the training data of the currently monitored training stage is matched with the motion data; if the training data of the training stage monitored currently are not matched with the motion data, the broadcasting module is triggered to broadcast at least motion prompt information of the training stage not monitored currently.
In one possible implementation, if each of the same type of data in the training data and the athletic data matches, determining that the training data and the athletic data of the currently monitored training phase match; and if one of the training data and the exercise data is matched with the same type of data, determining that the training data and the exercise data in the currently monitored training stage are not matched.
In a possible implementation manner, the control unit is further configured to trigger the broadcast module to broadcast motion prompt information for starting rest and preparing a next training stage if the training data of the currently monitored training stage is matched with the motion data; determining that the rest is finished based on the rest time of the currently monitored training stage, and automatically starting the next training stage; and determining the next training stage as the currently monitored training stage, and broadcasting the motion prompt information based on the training data of the currently monitored training stage and the motion data acquired by the electronic equipment.
In a possible implementation manner, the control unit is further configured to trigger the broadcast module to broadcast the motion prompt information for completing all the training stages if the currently monitored training stage is the last training stage of the training scheme; if the training stage monitored currently is not the last training stage of the training scheme, the broadcasting module is triggered to broadcast the motion prompt information of not finishing all the training stages, and the next training stage is determined as the training stage monitored currently.
In a possible implementation manner, the control unit is further configured to broadcast the exercise prompt information of the exercise advice of the next training stage based on a comparison result between the currently monitored training data of the training stage and the exercise data.
In one possible implementation manner, the motion data is collected through a hardware layer of the electronic device, the motion data is sent to an application layer of the electronic device through a kernel layer, a hardware abstraction layer, a system library and an application framework layer of the electronic device, and the application layer of the electronic device is used for broadcasting the motion prompt information based on the currently monitored training data in the training stage and the motion data collected by the electronic device.
In one possible implementation, the collecting of the motion data by the hardware layer of the electronic device includes: acquiring time through a clock module of a hardware layer; the method comprises the steps of collecting distance through a global positioning system module of a hardware layer; acquiring a heart rate through a photoplethysmography module of a hardware layer; acquiring frequency conversion through a gravity sensor and a gyroscope sensor of a hardware layer; wherein distance and time are used to derive speed and distance and stride frequency are used to derive stride length.

Claims (15)

1. A motion information prompting method is applied to electronic equipment, and comprises the following steps:
responding to the selected operation of the motion application in the electronic equipment, and displaying a first interface, wherein the first interface displays at least one motion type;
responding to the selection operation of the motion type in the first interface, displaying a second interface, wherein the second interface displays at least one motion mode, the at least one motion mode comprises a professional mode, the professional mode is used for customizing a training scheme, the training scheme comprises at least two training stages, and the next training stage in two adjacent training stages is automatically started after the previous training stage is finished;
and operating the customized training scheme in the professional mode, and broadcasting motion prompt information, wherein the motion prompt information is obtained based on the customized training scheme and the motion data acquired by the electronic equipment.
2. The method of claim 1, wherein customizing the training regimen in the Pro mode comprises:
responding to the selection operation of the professional mode, and displaying a third interface, wherein the third interface displays a new training scheme option;
responding to the selection operation of the new training scheme option, and displaying a fourth interface, wherein the fourth interface displays a training stage quantity option which is used for setting the quantity of training stages of the training scheme;
and displaying a fifth interface in response to the completion of the setting of the number of the training stages, wherein the fifth interface displays training stage setting areas matched with the set number of the training stages, each training stage setting area comprises at least one value setting area of the motion parameter, and the value set in the value setting area of the motion parameter is used for obtaining the training scheme.
3. The method of claim 2, wherein the third interface further displays existing training scenario options, and customizing the training scenario in the Pro mode further comprises:
responding to the selection operation of the existing training scheme option, displaying a sixth interface, wherein the sixth interface displays the existing training scheme of the selected motion type, and at least displays the name of the existing training scheme and the abstract of the existing training scheme when the existing training scheme is displayed, and the existing training scheme is a self-defined training scheme;
in response to the operation of selecting the existing training scheme in the sixth interface, determining the selected existing training scheme as the training scheme.
4. The method of claim 2 or 3, wherein the custom training scenario in the Pro mode further comprises:
and responding to the selected operation of the saving template option in the fourth interface, and saving the training scheme set by the fourth interface as the existing training scheme.
5. The method of any of claims 2 to 4, wherein the training setting area comprises: at least one numerical setting area of a heart rate setting area, a speed setting area, a time setting area, a step frequency setting area, a step length setting area and a distance setting area;
the fifth interface further comprises a rest time setting area, wherein the rest time setting area is used for setting rest time, and the rest time is used for controlling the automatic starting of the next training stage; the training scheme is obtained based on the values set by the value setting area and the rest time set by the rest time setting area.
6. The method of any one of claims 1 to 5, wherein the motion hint information comprises: at least one of information for starting countdown, information for starting timing, information for judging whether the process of each training stage reaches the standard, information for reminding the end of the training stage, information for judging whether the training stage reaches the standard, information for reminding rest time, suggestion of the next training stage, information for starting countdown of the next training stage and information for judging whether the overall movement reaches the standard.
7. The method according to any one of claims 1 to 6, further comprising:
determining a currently monitored training phase in response to a start operation of the training scheme;
and broadcasting motion prompt information based on the currently monitored training data in the training stage and the motion data collected by the electronic equipment.
8. The method of claim 7, wherein broadcasting motion prompt information based on the currently monitored training data of the training phase and the motion data collected by the electronic device comprises:
acquiring training data of a currently monitored training stage and acquiring the motion data;
comparing the training data of the currently monitored training stage with the exercise data to determine whether the training data of the currently monitored training stage is matched with the exercise data;
if the training data of the currently monitored training stage is matched with the motion data, at least broadcasting motion prompt information for finishing the training of the currently monitored training stage;
and if the training data of the currently monitored training stage is not matched with the exercise data, at least broadcasting exercise prompt information which does not finish the training of the currently monitored training stage.
9. The method according to claim 7 or 8, wherein the broadcasting of the motion prompt information based on the currently monitored training data of the training phase and the motion data collected by the electronic device comprises: if the training data of the currently monitored training stage is matched with the exercise data, broadcasting exercise prompt information for starting rest and preparing the next training stage;
determining that a break is over based on the break time of the currently monitored training phase, and automatically starting a next training phase;
and determining the next training stage as the currently monitored training stage, and broadcasting motion prompt information based on the training data of the currently monitored training stage and the motion data acquired by the electronic equipment.
10. The method according to any one of claims 7 to 9, further comprising: if the currently monitored training stage is the last training stage of the training scheme, broadcasting motion prompt information for completing all training stages;
if the training stage monitored currently is not the last training stage of the training scheme, broadcasting the exercise prompt information of not finishing all the training stages, and executing the step of determining the next training stage as the training stage monitored currently.
11. The method according to any one of claims 7 to 10, wherein the broadcasting of the motion prompt information based on the currently monitored training data of the training phase and the motion data collected by the electronic device comprises: and broadcasting the exercise prompt information of the exercise suggestion of the next training stage based on the comparison result of the training data of the currently monitored training stage and the exercise data.
12. The method according to any one of claims 7 to 11, wherein the motion data is collected by a hardware layer of the electronic device, the motion data is sent to an application layer of the electronic device by a kernel layer, a hardware abstraction layer, a system library and an application framework layer of the electronic device, and the application layer of the electronic device is configured to broadcast motion prompt information based on the training data of the currently monitored training phase and the motion data collected by the electronic device.
13. The method of claim 12, wherein the motion data being collected by a hardware layer of the electronic device comprises:
acquiring time through a clock module of the hardware layer;
acquiring a distance through a global positioning system module of the hardware layer;
acquiring a heart rate through a photoplethysmography module of the hardware layer;
acquiring frequency conversion through a gravity sensor and a gyroscope sensor of the hardware layer;
and the distance and the time are used for obtaining the speed, and the distance and the step frequency are used for obtaining the stride.
14. An electronic device is characterized by comprising a display screen, a broadcast module, one or more processors and a memory;
the display screen is used for displaying an interface, and the broadcasting module is used for broadcasting the motion prompt information;
the storage has stored thereon a program that, when executed by the one or more processors, causes the electronic device to perform the method of presenting athletic information as recited in any one of claims 1-13.
15. A readable storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method of presenting motion information according to any one of claims 1 to 13.
CN202210686572.4A 2022-06-17 2022-06-17 Motion information prompting method and device Active CN115620866B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210686572.4A CN115620866B (en) 2022-06-17 2022-06-17 Motion information prompting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210686572.4A CN115620866B (en) 2022-06-17 2022-06-17 Motion information prompting method and device

Publications (2)

Publication Number Publication Date
CN115620866A true CN115620866A (en) 2023-01-17
CN115620866B CN115620866B (en) 2023-10-24

Family

ID=84856725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210686572.4A Active CN115620866B (en) 2022-06-17 2022-06-17 Motion information prompting method and device

Country Status (1)

Country Link
CN (1) CN115620866B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090275442A1 (en) * 2008-04-30 2009-11-05 Polar Electro Oy Method and Apparatus in Connection with Exercise
CN106709235A (en) * 2016-11-21 2017-05-24 风跑体育发展(深圳)有限公司 Exercise training data processing method and device
CN108986882A (en) * 2017-06-02 2018-12-11 四川理工学院 A kind of motion scheme management system and method based on Android platform
CN112439180A (en) * 2019-08-30 2021-03-05 华为技术有限公司 Intelligent voice playing method and equipment
CN112489763A (en) * 2020-11-23 2021-03-12 中信银行股份有限公司 Statistical method and device for motion situation, electronic equipment and readable storage medium
US10974122B1 (en) * 2019-04-17 2021-04-13 Donald G. DiPaolo System and method for developing athletes
CN113128283A (en) * 2019-12-31 2021-07-16 沸腾时刻智能科技(深圳)有限公司 Evaluation method, model construction method, teaching machine, teaching system and electronic equipment
CN113778282A (en) * 2021-09-18 2021-12-10 深圳市爱都科技有限公司 Motion type management method and system and mobile terminal
WO2021249073A1 (en) * 2020-06-08 2021-12-16 华为技术有限公司 Health data display method and electronic device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090275442A1 (en) * 2008-04-30 2009-11-05 Polar Electro Oy Method and Apparatus in Connection with Exercise
CN106709235A (en) * 2016-11-21 2017-05-24 风跑体育发展(深圳)有限公司 Exercise training data processing method and device
CN108986882A (en) * 2017-06-02 2018-12-11 四川理工学院 A kind of motion scheme management system and method based on Android platform
US10974122B1 (en) * 2019-04-17 2021-04-13 Donald G. DiPaolo System and method for developing athletes
CN112439180A (en) * 2019-08-30 2021-03-05 华为技术有限公司 Intelligent voice playing method and equipment
CN113128283A (en) * 2019-12-31 2021-07-16 沸腾时刻智能科技(深圳)有限公司 Evaluation method, model construction method, teaching machine, teaching system and electronic equipment
WO2021249073A1 (en) * 2020-06-08 2021-12-16 华为技术有限公司 Health data display method and electronic device
CN112489763A (en) * 2020-11-23 2021-03-12 中信银行股份有限公司 Statistical method and device for motion situation, electronic equipment and readable storage medium
CN113778282A (en) * 2021-09-18 2021-12-10 深圳市爱都科技有限公司 Motion type management method and system and mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZHANG, L 等: "Wearable Product Design for Intelligent Monitoring of Basketball Training Posture Based on Image Processing", 《JOURNAL OF SENSORS》, pages 1 - 15 *
黄东晋 等: "基于Kinect的虚拟健身跑锻炼系统", 《图学学报》, no. 05, pages 789 - 795 *

Also Published As

Publication number Publication date
CN115620866B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
WO2022242213A1 (en) Refresh rate adjustment method and electronic device
KR20160084703A (en) Method for Providing Health Guide
US20170043217A1 (en) Electronic device providing exercise guide and method of operating the electronic device
WO2022042275A1 (en) Distance measurement method, apparatus, electronic device, and readable storage medium
WO2022161037A1 (en) User determination method, electronic device, and computer-readable storage medium
CN115878868A (en) Training plan generation method and device, electronic equipment and readable storage medium
WO2022213834A1 (en) Method for determining exercise guidance information, electronic device, and exercise guidance system
CN113996046B (en) Warming-up judgment method and device and electronic equipment
US20210069552A1 (en) Fitness equipment control system, mobile apparatus and fitness equipment control method thereof
CN113244565B (en) Rope skipping handle, rope skipping and rope skipping counting and determining method
WO2022068887A1 (en) Method for displaying motion track, and electronic device
CN115620866B (en) Motion information prompting method and device
CN114969490A (en) Training course recommendation method and device
CN117112251B (en) Communication method and related equipment
CN114637545B (en) VR interaction method and device
CN115221250A (en) Map display method and related equipment
CN113823377A (en) Motion guiding method and electronic equipment
WO2023207726A1 (en) Exercise guidance method and electronic device
WO2023011356A1 (en) Video generation method and electronic device
CN115445170B (en) Exercise reminding method and related equipment
CN114845145B (en) Action prompt icon sequence generation method, electronic device and readable storage medium
US11663984B2 (en) Method and device for adjusting brightness, and storage medium
CN117389404A (en) Motion prompting method, device and storage medium
WO2023280169A1 (en) Movement picture generation method and electronic device
WO2021254092A1 (en) Rowing stroke frequency recommendation method, apparatus and 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