Exercise heat display method and electronic equipment
By unifying the exercise calorie calculation method of the exercise module and the health module in sports health applications, we ensure that the total exercise calories displayed during the same exercise are consistent, solving the problems of inconsistencies in the existing technology and improving the user experience.
Patent Information
- Application Number
- CN202410011704.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-02
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2044-01-02
AI Technical Summary
In existing sports and health applications, the exercise module and the health module calculate the exercise calories in different ways, resulting in inconsistent total exercise calories displayed on the interface, affecting the user experience.
By providing the first and second parameter interfaces in sports health applications, we ensure that the exercise heat displayed by the exercise module and the health module during the same exercise is consistent, and a unified calculation method is used to obtain the total exercise heat and time-sharing exercise heat, including real-time exercise heat, total exercise heat and exercise heat for each time period.
The consistency of the total exercise calories displayed by the exercise module and the health module during the same exercise is achieved, improving the user experience.
Smart Images

Figure CN120301964A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of terminals, and in particular, to a method for displaying exercise calories and an electronic device. Background Art
[0002] A sports health application can be installed on an electronic device (such as a mobile phone). The sports health application can include a sports module and a health module. After the sports module is enabled, it can record the calories consumed by the user during exercise. At the same time, the health module can also record the calories consumed by the user during exercise. However, in the current solution, due to different calorie calculation methods, the exercise calories displayed on the interface corresponding to the sports module are inconsistent with the exercise calories displayed on the interface corresponding to the health module. In this way, the user experience will be affected. Summary of the Invention
[0003] The present application provides a method for displaying exercise calories and an electronic device, which are used to make the exercise calories displayed on the interface corresponding to the sports module consistent with the exercise calories displayed on the interface corresponding to the health module during the same exercise process after the sports module in the sports health application is enabled.
[0004] To achieve the above object, the present application adopts the following technical solutions:
[0005] In a first aspect, a method for displaying exercise calories is provided, which is applied to an electronic device including a sports health application. The sports health application can provide a first type of parameter interface and a second type of parameter interface. Among them, the first type of parameter interface is used to display the exercise parameters of the user during exercise, and the second type of parameter interface is used to display the health parameters of the user. Both the exercise parameters and the health parameters include the exercise calories of the user. The method includes:
[0006] First, in response to the start exercise operation in the sports health application, a first interface is displayed. The first interface is used to record the real-time exercise parameters during the exercise process starting from the first moment, and the real-time exercise parameters include real-time exercise calories.
[0007] Then, in response to the end exercise operation at the second moment on the first interface, a second interface is displayed. The second interface includes the total exercise parameters within the first time period. The total exercise parameters include total exercise calories. The first time period starts from the first moment and ends at the second moment. Both the second interface and the first interface are of the first type of parameter interface.
[0008] Next, in response to the first operation in the sports health application, a third interface is displayed. The third interface includes the first exercise calories. The first exercise calories are the sum of the total exercise calories and the total exercise calories recorded by the electronic device at the first moment.
[0009] Finally, in response to a second operation on the third interface, a fourth interface is displayed. The fourth interface includes N third exercise calories. The N third exercise calories are obtained based on the real-time exercise calories within the first time period, and each third exercise calorie corresponds to the total exercise calories within one of the N second time periods within the first time period. Both the third interface and the fourth interface are second-type parameter interfaces, and the durations of the N second time periods are equal.
[0010] In summary, the exercise parameters displayed on the second-type parameter interface in this application can be sourced from the data displayed on the first-type parameter interface. That is to say, during the same exercise process, the exercise calories displayed on the second-type parameter interface can be recorded by the first-type parameter interface. Thus, when the total exercise calories recorded by the electronic device at the first moment on the third interface is 0, the first exercise calorie displayed on the third interface is the same as the total exercise calorie displayed on the second interface. Therefore, for the same exercise process, the total exercise calories retrieved on the first-type parameter interface can be consistent with the total exercise calories retrieved on the second-type parameter interface.
[0011] In a possible implementation manner of the first aspect, before displaying the fourth interface, the method further includes: First, the electronic device obtains the real-time exercise calorie corresponding to the end time of the nth second time period among the N second time periods, and the real-time exercise calorie corresponding to the end time of the (n - 1)th second time period, based on the real-time exercise calories within the first time period; Then, the electronic device takes the difference between the real-time exercise calorie corresponding to the end time of the nth second time period and the real-time exercise calorie corresponding to the end time of the (n - 1)th second time period as the third exercise calorie corresponding to the nth second time period. Wherein, n takes values in sequence from {N, N - 1, ……, 2, 1}.
[0012] In another possible implementation manner of the first aspect, the first interface is used to record the real-time exercise parameters during the exercise process of the first exercise type starting from the first moment. The real-time exercise parameters further include real-time exercise distance and real-time exercise time. The above method further includes: First, the electronic device obtains the user's weight in response to the above start exercise operation; Then, the electronic device substitutes the real-time exercise distance, real-time exercise time, and the user's weight into the first calorie calculation formula corresponding to the first exercise type to obtain the real-time exercise calorie.
[0013] In another possible implementation manner of the first aspect, the above first calorie calculation formula is:
[0014] CurrentCalorie = MET × Weight × Time
[0015] Wherein, CurrentCalorie is the real-time exercise calorie; MET is the metabolic equivalent, which corresponds to the first exercise type. Different exercise types have different corresponding metabolic equivalents, and the metabolic equivalent is related to the real-time exercise distance and real-time exercise time; Weight is the user's weight; Time is the real-time exercise time.
[0016] In another possible implementation manner of the first aspect, the above-mentioned first exercise type is running. The metabolic equivalent is:
[0017]
[0018] Wherein, Dis tan ce is the real-time exercise distance; a, b, and c are constants.
[0019] In another possible implementation manner of the first aspect, the above-mentioned first exercise type is walking. The metabolic equivalent is:
[0020]
[0021] Wherein, Dis tan ce is the real-time exercise distance; a, d, and c are constants.
[0022] In another possible implementation manner of the first aspect, the above-mentioned first exercise type is cycling. The metabolic equivalent is:
[0023]
[0024] Wherein, Dis tan ce is the real-time exercise distance; a, d, and c are constants.
[0025] In another possible implementation manner of the first aspect, the sports health application includes a sports module and a health module. The sports module provides a first type of parameter interface, and the health module provides a second type of parameter interface. The above method further includes:
[0026] In response to the start exercise operation in the sports health application, the sports module obtains the real-time exercise calorie, obtains the third activity calorie corresponding to each second time period based on the real-time exercise calorie, and provides the third activity calorie corresponding to the second time period to the health module.
[0027] In another possible implementation manner of the first aspect, the sports health application includes a sports module and a health module. The sports module provides a first type of parameter interface, and the health module provides a second type of parameter interface. The above method further includes:
[0028] In response to the start exercise operation in the sports health application, the sports module obtains the real-time exercise calorie, provides the real-time exercise calorie to the health module; the health module obtains the third activity calorie corresponding to each second time period based on the real-time exercise calorie.
[0029] In a second aspect, the present application provides an electronic device, including: a memory, a display screen, a motion sensor, and one or more processors. The memory, the display screen, and the motion sensor are coupled to the processor. Computer program code is stored in the memory, and the computer program code includes instructions. When the processor executes the instructions, the electronic device executes the method as described in the first aspect and any one of its embodiments.
[0030] In a third aspect, a computer-readable storage medium is provided, including instructions that, when executed on an electronic device, enable the electronic device to execute the method as described in the first aspect and any one of its embodiments.
[0031] In a fourth aspect, a computer program product including instructions is provided. When the instructions run on the above-mentioned electronic device, the electronic device is enabled to execute the method as described in the first aspect and any one of its embodiments.
[0032] In a fifth aspect, a chip system is provided. The chip system includes a processor for supporting the electronic device to implement the functions involved in the first aspect above. In a possible design, the electronic device further includes an interface circuit. The interface circuit can be used to receive signals from other devices (such as a memory), or to send signals to other devices (such as a communication interface). The chip system can include chips and can also include other discrete devices.
[0033] Among them, for the technical effects of the second aspect to the fifth aspect, reference can be made to the technical effects of the first aspect and any one of its embodiments, which will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 One of the schematic diagrams of the interface of an electronic device in the conventional technology;
[0035] Figure 2 Another schematic diagram of the interface of an electronic device in the conventional technology;
[0036] Figure 3 One of the schematic diagrams of the interface of an electronic device provided in an embodiment of the present application;
[0037] Figure 4 The schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0038] Figure 5 The schematic diagram of the software architecture of an application provided in an embodiment of the present application;
[0039] Figure 6 One of the schematic flowcharts of a method for displaying exercise calories provided in an embodiment of the present application;
[0040] Figure 7The second flowchart of a method for displaying exercise calories provided by an embodiment of the present application;
[0041] Figure 8 The third flowchart of a method for displaying exercise calories provided by an embodiment of the present application;
[0042] Figure 9 The second interface diagram of an electronic device provided by an embodiment of the present application;
[0043] Figure 10 The fourth flowchart of a method for displaying exercise calories provided by an embodiment of the present application;
[0044] Figure 11 The relationship diagram between real-time exercise calories and first-time-slot calories in an embodiment of the present application;
[0045] Figure 12 The fifth flowchart of a method for displaying exercise calories provided by an embodiment of the present application;
[0046] Figure 13 The sixth flowchart of a method for displaying exercise calories provided by an embodiment of the present application;
[0047] Figure 14 The third interface diagram of an electronic device provided by an embodiment of the present application;
[0048] Figure 15 The structural diagram of a chip system provided by an embodiment of the present application. Detailed implementation manners
[0049] The terms "first", "second", etc. involved in the embodiments of the present application are only used for the purpose of distinguishing the same type of features, and cannot be understood as indicating relative importance, quantity, order, etc.
[0050] The terms "exemplary" or "for example" etc. involved in the embodiments of the present application are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly speaking, using the terms "exemplary" or "for example" etc. aims to present relevant concepts in a specific manner.
[0051] The terms "coupled", "connected" involved in the embodiments of the present application should be understood in a broad sense. For example, it can refer to a direct physical connection, or an indirect connection realized through electronic devices, such as a connection realized through resistors, inductors, capacitors or other electronic devices.
[0052] An electronic device can provide sports health functions. For example, a sports health application is installed on the electronic device. The sports health application can include a sports module and a health module. Among them, the sports module is used to provide a first type of parameter interface, and the health module is used to provide a second type of parameter interface. The first type of parameter interface can be used to display the user's sports parameters, such as speed, sports distance, sports calories, etc. The second type of parameter interface can be used to display the user's health parameters, such as heart rate, blood pressure, sports calories, etc. That is to say, both the first type of parameter interface and the second type of parameter interface can display sports calories.
[0053] Generally, during the process of the user carrying the electronic device for exercise, the health module can directly record and directly display on the second type of parameter interface the total sports calories generated by the user during the entire exercise process (such as the first time period), and display the second sports calories generated by the user within each third time period within a certain time period (such as one day, one week, or one month), and the third sports calories generated by the user within each second time period within the above-mentioned first time period. Among them, the first time period is the total exercise duration of the user on the same day, so the maximum of the first time period is 24 hours. The second time period and the third time period are obtained by dividing the above-mentioned certain time period according to different granularities.
[0054] During the process of the user carrying the electronic device for exercise, the sports module is enabled. The sports module can record and display on the first type of parameter interface the total sports calories generated during the entire exercise process.
[0055] However, since the calculation method for the sports module to obtain sports calories is different from that of the health module to obtain sports calories, during the same exercise process, the total sports calories displayed on the first type of parameter interface are inconsistent with the total sports calories displayed on the first type of parameter interface. In this way, the user experience is poor.
[0056] Taking the electronic device as a mobile phone, the first time period as a continuous 1 hour, the second time period as 1 minute, and the third time period as half an hour as an example, and the second type of parameter interface including a health directory interface, a first detail interface, and a second detail interface, and the first type of parameter interface including a sports directory interface, a sports process interface, and a sports end interface as an example, the display interfaces of the sports health application installed in the mobile phone during the process of the user carrying the mobile phone for exercise for 1 hour will be introduced.
[0057] Figure 1 One of the interface schematic diagrams of an electronic device in the conventional technology is shown. Figure 2 Another interface schematic diagram of an electronic device in the conventional technology is shown.
[0058] Such as Figure 1As shown by A in [description], in response to a user's triggering operation (such as a click operation) on the icon of the sports and health application on the mobile phone 100, the mobile phone 100 displays the health directory interface 110. The health directory interface 110 can be the home page interface of the health application. The health directory interface 110 can display the controls corresponding to the four function modules in the sports and health application and the calorie consumption card 111. Among them, the four function modules and the controls corresponding to the four function modules are: the health control 112 corresponding to the health module, the sports control 113 corresponding to the sports module, the device control 114 corresponding to the device module, and the my control 115 corresponding to the my module. The total active calories recorded by the health module shown in the calorie consumption card 111 is 0 kcal.
[0059] As Figure 1 As shown by B in [description], in response to a user's triggering operation on the sports control 113, the mobile phone 100 switches from the health directory interface 110 to the sports directory interface 120. The sports directory interface 120 can display the start sports control 121 and multiple sports type controls. Among them, one sports type control corresponds to one sports type. The multiple sports type controls can include: the outdoor running control 122, the indoor running control, the walking control, etc.
[0060] As Figure 1 As shown by C in [description], in response to a user's sequential triggering operations on the outdoor running control 122 and the start sports control 121, the sports module of the sports and health application is enabled. At this time, the mobile phone 100 switches from the sports directory interface 120 to the sports process interface 130. The sports process interface 130 can display the corresponding map 131, the first sports record card 132, and the end control 133 during the user's outdoor running. Among them, the first sports record card 132 shows the real-time sports parameters during this sports process. For example, real-time sports distance, real-time sports calories, real-time sports time, real-time pace, real-time heart rate, etc.
[0061] As Figure 1 As shown by D in [description], in response to a user's triggering operation on the end control 133, this sports session ends. At this time, the mobile phone 100 switches from the sports process interface 130 to the sports end interface 140. The sports end interface 140 can display the second sports record card 141. The second sports record card 141 shows the total sports parameters and the average sports parameters of this sports session. For example, the total sports parameters can include total sports time, total sports calories, total sports distance, etc. The average sports parameters can include average pace, average speed, average step frequency, etc. Among them, the second sports record card 141 shows that the calorie consumption for this time is 300 kcal. That is to say, the sports module of the sports and health application records the total sports calories generated by this sports session as 300 kcal.
[0062] Next, as Figure 2As shown by A in [description], after returning from the exercise end interface 140 to the health directory interface 110, the calorie consumption card 111 on the health directory interface 110 shows that 260 kcal has been consumed. That is to say, the health module of the sports health application records the total exercise calories generated by this exercise as 260 kcal.
[0063] Comparing Figure 1 D in [description] and Figure 2 A in [description], it can be seen that for the same exercise, the total exercise calories recorded by the health module of the sports health application in the conventional technology are inconsistent with the total exercise calories recorded by the exercise module.
[0064] As Figure 2 shown by B in [description], in response to the user's triggering operation on the consumption control 210 in the health directory interface 110, the mobile phone 100 switches from the health directory interface 110 to the first detailed interface 220. The first detailed interface 220 can respectively display the exercise calories recorded by the health module within one day, within one week, within one month, and within one year through statistical methods in units of day, week, month, and year. Among them, in the statistical method in units of day, the first detailed interface 220 can display the second exercise calories generated by the user every half hour recorded by the health module in one day. For example, within the half hour from 08:00 to 08:30, the exercise calories are 120 kcal, and within the half hour from 08:30 to 9:00, the exercise calories are 140 kcal. The first detailed interface 220 can also display the details control 221.
[0065] As Figure 2 shown by C in [description], in response to the user's triggering operation on the details control 221, the mobile phone 100 switches from the first detailed interface 220 to the second detailed interface 230. The second detailed interface 230 can display the third exercise calories generated by the user per minute recorded by the health module on the same day.
[0066] In summary, in the sports health application installed on the electronic device in the conventional technology, the calculation method for the exercise module to obtain exercise calories is different from the calculation method for the health module to obtain exercise calories, resulting in the total exercise calories displayed on the first type of parameter interface provided by the exercise module being different from the total exercise calories displayed on the second type of parameter interface provided by the health module, which will affect the user experience.
[0067] Therefore, the embodiments of the present application provide a method for displaying exercise calories and an electronic device. An improved sports health application is installed in the electronic device. When recording and displaying the total exercise calories generated by the user within a period of time, the improved sports health application adopts the method for displaying exercise calories provided by the embodiments of the present application.
[0068] Specifically, within a period of time after the exercise module of the sports and health application is enabled, the total exercise calories displayed on the second type of parameter interface are the total exercise calories obtained from the first type of parameter interface, and the third exercise calories corresponding to each second time period displayed on the second type of parameter interface are obtained based on the real-time exercise calories obtained by the first type of parameter interface within the first time period. That is to say, during the same exercise process, the exercise calories displayed on the second type of parameter interface can all be recorded by the first type of parameter interface. In this way, for the same exercise process, the total exercise calories recorded on the first type of parameter interface are consistent with the total exercise calories recorded on the second type of parameter interface.
[0069] Figure 3 FIG. 1 shows one of the interface schematic diagrams of an electronic device provided by an embodiment of the present application. The following will be described by taking the example that the health module does not record exercise calories before the exercise module of the sports and health application is enabled. For example, before the exercise module of the sports and health application is enabled and the health module does not record exercise calories, it may be the case where the exercise module is immediately enabled after the sports and health application is started.
[0070] As Figure 3 shown in A of FIG. 2, after the exercise ends, the mobile phone 100 displays an exercise end interface 140. The exercise end interface 140 shows that the calorie consumption during this exercise process is 300 kcal. As Figure 3 shown in B of FIG. 2, the health directory interface 110 shows that 300 kcal is consumed during this exercise process.
[0071] Comparing Figure 3 A in FIG. 2 and Figure 3 B in FIG. 2, it can be seen that for the same exercise, in the sports and health application provided by the embodiment of the present application, the total exercise calories displayed on the first type of parameter interface are consistent with the total exercise calories displayed on the second type of parameter interface.
[0072] As Figure 3 shown in C of FIG. 2, the first detail interface 220 shows that within half an hour from 08:00 to 08:30, the exercise calories are 140 kcal. Additionally, within the next half hour from 08:30 to 09:00, the exercise calories are 160 kcal ( Figure 3 not shown in C of FIG. 2). It can be seen that within one hour from 08:00 to 09:00, the total exercise calories in the first detail interface are consistent with the total exercise calories recorded by the exercise end interface 140.
[0073] As Figure 3 shown in D of FIG. 2, the second detail interface 230 shows that the calorie consumption data generated per minute within one hour from 08:00 to 09:00 is also recorded by the exercise module.
[0074] The electronic device involved in the embodiments of this application can be a device with communication functions, motion data collection, and recording functions. The electronic device can be a mobile terminal device. The electronic device can be deployed on land (such as indoors or outdoors, handheld or vehicle-mounted, etc.), on water (such as a ship, etc.), or in the air (such as an airplane, a balloon, etc.). This electronic device can be referred to as a user equipment (UE), access terminal, terminal unit, subscriber unit, terminal station, mobile station (MS), mobile phone, terminal agent, or terminal device, etc. For example, the electronic device can be a mobile phone, a tablet computer, etc. The embodiments of this application do not limit the specific type and structure of the electronic device. A possible structure of the electronic device will be described below.
[0075] Taking the electronic device as a mobile phone as an example, Figure 4 FIG. shows a schematic hardware structure diagram of an electronic device 400 provided by the embodiments of this application. The electronic device 400 may include: a processor 410, a memory 420, a universal serial bus (USB) interface 430, a power management module 440, an antenna, a communication module 450, a display screen 460, an audio module 470, a camera 480, a sensor module 490, etc.
[0076] It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 400. In other embodiments, the electronic device 400 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
[0077] The processor 410 may include one or more processing units. For example, the processor 410 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors. The controller may be the nerve center and command center of the electronic device 400. The controller may generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
[0078] A memory may also be provided in the processor 410 for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. This memory may save the instructions or data that the processor 410 has just used or recycled. If the processor 410 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 410, and thus improves the efficiency of the system.
[0079] In some embodiments, the processor 410 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface 430, etc.
[0080] It can be understood that the interface connection relationships between the modules illustrated in this embodiment are only illustrative descriptions and do not constitute a structural limitation on the electronic device. In other embodiments, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0081] The memory 420 can be used to store computer-executable program codes, and the executable program codes include instructions. The processor 410 executes various functional applications and data processing of the electronic device by running the instructions stored in the memory 420. The memory 420 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system and applications required for at least one function (such as a sound playback function, an interface display function, etc.). The data storage area can store data created during the use of the electronic device (such as notification messages). In addition, the memory 420 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0082] The power management module 440 is used to connect the battery to the processor 410. The power management module 440 receives battery and / or power input and supplies power to the processor 410, the memory 420, the communication module 450, the display screen 460, the display screen 460, and the camera 480, etc. The power management module 440 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 440 may also be disposed in the processor 410.
[0083] The communication module 450 may provide solutions for wireless communications applied to the electronic device 400, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite systems (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The communication module 450 may be one or more devices integrating at least one communication processing module. The communication module 450 receives electromagnetic waves via an antenna, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 410. The communication module 450 may also receive signals to be sent from the processor 410, perform frequency modulation on them, amplify them, and convert them into electromagnetic waves through the antenna for radiation.
[0084] In some embodiments, the antenna of the electronic device 400 is coupled to the communication module 450, enabling the electronic device 400 to communicate with the network and other devices through wireless communication technologies. The wireless communication technologies may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, Global Navigation Satellite System (GNSS), WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include Global Positioning System (GPS), Beidou Navigation Satellite System (BDS), Global Navigation Satellite System (GLONASS), and / or Galileo Satellite Navigation System (GALILEO).
[0085] The electronic device 400 implements the display function through the GPU, the display screen 460, and the application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 460 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 410 may include one or more GPUs, which execute program instructions to generate or change the display information.
[0086] The display screen 460 is used to display images, videos, etc. The display screen 460 includes a display panel. The display panel can 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-LED, a Micro-OLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In the embodiments of the present application, the display screen 460 can be used to display the material metadata of shared files in a shared application.
[0087] The electronic device 400 can implement the shooting function through an ISP, a camera 480, a video codec, a GPU, a display screen 460, an application processor, etc.
[0088] The audio module 470 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 470 can also be used to encode and decode audio signals. In some embodiments, the audio module 470 can be disposed in the processor 410, or some functional modules of the audio module 470 can be disposed in the processor 410.
[0089] The camera 480 is used to capture still images or videos. An object generates an optical image through a lens and projects it onto a photosensitive element. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, etc. format.
[0090] The sensor module 490 can be a motion sensor. For example, the motion sensor can include a step counting management module, a step counting sensor, a positioning module, etc., but is not limited thereto. During the process of a user carrying the electronic device to move, the step counting sensor is used to record the number of steps of the user's movement. The positioning module is used to obtain the location information of the user. Then, the electronic device can calculate the movement distance of the user according to the number of steps and the location information.
[0091] Generally speaking, the applications installed on an electronic device can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. In the embodiments of this application, taking the layered architecture as an example, the software architecture of the sports health application will be exemplarily described.
[0092] Figure 5 The schematic diagram of the software architecture of an application provided by the embodiments of this application is shown.
[0093] The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the application is divided into four layers, from top to bottom, namely the shell layer, the business module layer, the basic layer, and the general library.
[0094] Among them, the shell layer may include the attribute information of the application. The attribute information is used to indicate information such as the function, type, and identity of the application. According to the attribute information of an application, the category, function, etc. of the application can be identified.
[0095] Among them, the business module layer may include the functional modules of the application. As Figure 3 shown, the business module layer of the sports health application may include: a device module, a sports module, a health module, and a my module.
[0096] Specifically, the sports module may include a sports record sub-module. The sports record sub-module is used to record the sports data of the user during the sports process and store the sports data in the database of the general library. The sports data may include: sports time, sports distance, calorie consumption data within the first time period, calorie consumption data within the third time period, etc.
[0097] The health module may include a consumption sub-module. The consumption sub-module is used to record the sports data of the user during the sports process, such as the calorie consumption data within the first time period, the calorie consumption data within the second time period, and the calorie consumption data within the third time period. The consumption sub-module can also call the calorie consumption data within the third time period recorded by the sports module from the database in the general library.
[0098] The my module may include a personal information sub-module. The personal information sub-module is used to record the personal data of the user, such as weight, age, gender, etc.
[0099] Among them, the basic layer may include an account sub-module, a map sub-module, an interface sub-module, a device management sub-module, etc.
[0100] Specifically, the account sub-module can be used to record the account information of the sports health application, and one account information corresponds to one personal data in the my module.
[0101] The map sub-module includes a map. After the motion module is started, the map in the map sub-module can be called to display the user's location in real time during the user's motion and display the user's motion trajectory after the motion ends.
[0102] The interface sub-module can provide an interface for data transmission between various modules of the application.
[0103] The device management sub-module can be used to implement functions such as connecting to a wearable device and obtaining data in the wearable device.
[0104] Among them, the general library can include a database. The database can store the motion parameters recorded by the motion module and the health module, as well as the motion data recorded by the wearable device, etc.
[0105] Next, in combination with different scenarios, the motion calorie display method provided by the embodiments of the present application will be introduced.
[0106] In one scenario, after the motion health application is started, the motion module is not enabled. At this time, the electronic device records the motion calories through the health module of the motion health application. Figure 6 FIG. shows one of the flow diagrams of a motion calorie display method involved in the embodiments of the present application. As Figure 6 shown, the motion calorie display method provided by the embodiments of the present application may include:
[0107] S601. In response to a user's startup operation on the motion health application at a first moment, the electronic device displays a third interface included in the second type of parameter interface of the motion health application.
[0108] Exemplarily, the third interface included in the second type of parameter interface may be Figure 1 , Figure 3 the health directory interface 110 shown in Figure 1 As shown by A in , the first interface corresponding to the health module may include a calorie consumption card 111. The historical motion calories can be displayed in the calorie consumption card 111. Among them, the historical motion calories may include the total motion calories recorded by the motion health application at the first moment.
[0109] In the embodiments of the present application, after the electronic device receives the operation of the user to start the motion health application, it can record the motion calories through the motion health application. Therefore, before this step, if the motion health application has never been started, the historical motion calories in this step are 0 kcal. Before this step, if the motion health application has been started, the historical motion calories in this step are greater than 0 kcal.
[0110] In some embodiments, the historical exercise calories may be recorded by the exercise module of the exercise and health application. Or, the historical exercise calories may be recorded by the health module of the exercise and health application. Or, a part of the historical exercise calories is recorded by the exercise module of the exercise and health application, and another part of the historical exercise calories is recorded by the health module of the exercise and health application.
[0111] In some embodiments, the third interface included in the first type of parameter interface may be the home page interface of the exercise and health application.
[0112] S602. The electronic device displays the first exercise calories on the third interface at the second moment.
[0113] When the user is exercising while carrying the electronic device provided in the embodiment of the present application, if the exercise module is not enabled, the electronic device may determine the total amount of exercise generated during this exercise process through the health module corresponding to the second type of parameter interface. At the same time, the electronic device determines the sum of the total exercise calories generated during this exercise process and the historical exercise calories as the first exercise calories, and displays them on the third interface. This exercise process refers to the first time period starting from the first moment and ending at the second moment.
[0114] Among them, as Figure 1 shown in B in, the non - enabling of the exercise module means that the start exercise control 121 is not triggered, and the electronic device does not receive the trigger operation of the user on the start exercise control 121. The above - mentioned start exercise control 121 is used to trigger the electronic device to start the exercise module to record the user's exercise parameters.
[0115] For the sake of easy distinction, hereinafter, the total exercise calories recorded by the health module will be referred to as the first total calories. The following introduces the principle of the health module to determine the first total calories generated during this exercise process:
[0116] In one embodiment, the first total calories can be calculated by the following formula (1):
[0117]
[0118] Among them, TotalCalorie1 is the first total calories; Calorie n is the first sub - time calorie. The first sub - time calorie refers to the third exercise calories generated in each second time period (such as 1 minute) during this exercise process. In this embodiment, the first exercise calories on the third interface can be updated every other second time period starting from the first moment, but not limited to this. In the embodiment of the present application, the second time period is taken as 1 minute for introduction.
[0119] Exemplarily, the third exercise calories can be calculated by the following formula (2):
[0120] Calorie n = Factor × Step n (2)
[0121] Wherein, Factor is the calorie consumption factor, used to represent the relative energy metabolism level; Step n is the cumulative number of exercise steps within each second time period. The cumulative number of exercise steps within each second time period is obtained from the step counting management module in the electronic device. The step counting management module is used to obtain the cumulative number of exercise steps generated by the user within each second time period starting from the first moment.
[0122] In the embodiments of the present application, the calorie consumption factor is a constant. That is to say, the calorie consumption factor corresponding to any user and any exercise type is the same.
[0123] Continuing as shown in Figure 1 A in, the calorie consumption card 111 may include a consumption control 210.
[0124] S603. In response to a trigger operation on the consumption control in the third interface, the electronic device displays a sixth interface included in the second type of parameter interface of the sports health application. The sixth interface includes M second exercise calories. The M second exercise calories are obtained based on the first exercise calorie.
[0125] Wherein, the total exercise calorie within a third time period of the first exercise calorie is the second exercise calorie (or second time-sharing calorie) of this third time period.
[0126] Exemplarily, the sixth interface included in the second type of parameter interface may be Figure 2 , Figure 3 the first detailed interface 220 shown in. As shown in Figure 2 C in, the sixth interface can display the total exercise calories generated in each third time period (such as half an hour). Herein, the total exercise calories generated in a third time period can be called the second time-sharing calorie. The duration of each of the M third time periods is equal.
[0127] Continuing as shown in Figure 2 C in, the sixth interface may include a details control 221.
[0128] S604. In response to a trigger operation on the details control in the sixth interface, the electronic device displays a fourth interface included in the second type of parameter interface of the sports health application. The fourth interface includes N third exercise calories included in the first time period.
[0129] Exemplarily, the fourth interface included in the second type of parameter interface may be Figure 2 , Figure 3 the second detailed interface 230 shown in. AsFigure 2 As shown by D in , the fourth interface included in the second type of parameter interface can display the third exercise calories generated in each second time period (such as 1 minute), that is, the first minute-by-minute calories. Referring to the above S602, it can be known that each first minute-by-minute calorie in this embodiment is determined by the health module.
[0130] In summary, when the exercise module is not enabled, during exercise, the electronic device determines the exercise calories in different time periods through the health module.
[0131] In the above embodiment, when the exercise module is not enabled, a method for displaying exercise calories provided by an embodiment of the present application is introduced from the perspective of the electronic device as the execution subject. The specific implementation of this method requires the support of each software and hardware module in the electronic device. The following combines Figure 7 to introduce a method for displaying exercise calories provided by an embodiment of the present application through the interaction of each software and hardware module in the electronic device.
[0132] In one embodiment, the electronic device may include a sports health application. The sports health application may include a health module. The electronic device may further include a step counting sensor, a step counting management module, and a display module. Among them, the step counting management module is used to count the cumulative number of exercise steps obtained through the step counting sensor in each second time period. The display module includes a display screen for displaying the interface of the sports health application.
[0133] Figure 7 FIG. shows a second schematic flowchart of a method for displaying exercise calories according to an embodiment of the present application. As Figure 7 shown, the method for displaying exercise calories provided by an embodiment of the present application may include:
[0134] S701. In response to an operation of starting the sports health application at the first moment, the health module sends a step counting request message to the step counting management module.
[0135] After the sports health application is started, it will send a step counting request message to the step counting management module. In this embodiment, since the exercise module is not enabled, the health module sends the step counting request message to the step counting management module. The step counting request information is used to instruct the step counting management module to obtain the cumulative number of exercise steps in each second time period starting from the first moment.
[0136] S702. The step counting management module sends a step counting command to the step counting sensor.
[0137] S703. The step counting management module receives the newly added number of steps sent by the step counting sensor.
[0138] S704. The step counting management module counts the real-time number of exercise steps and obtains the cumulative number of exercise steps in each second time period from the real-time number of exercise steps.
[0139] S705. The step counting management module sends the cumulative number of exercise steps within each second time period to the health module.
[0140] S706. The health module substitutes the cumulative number of exercise steps within each second time period into the time-sharing calorie calculation formula to obtain the corresponding first time-sharing calorie for each second time period.
[0141] Among them, the time-sharing calorie calculation formula is the above formula (2).
[0142] S707. The health module sends each first time-sharing calorie to the display module.
[0143] In some embodiments, the health module also sends the first time-sharing calorie to the database for storing the first time-sharing calorie. Among them, the database is used to store each first time-sharing calorie for subsequent call. The database can also store historical exercise calories.
[0144] S708. The display module displays each first time-sharing calorie on the fourth interface.
[0145] It should be understood that the health module sends the first time-sharing calorie to the display module for display in the display module. However, after receiving the first time-sharing calorie, the display module does not immediately display the first time-sharing calorie. Instead, when the electronic device responds to a trigger operation on a second type of parameter interface (such as the above fourth interface), the display module will display the first time-sharing calorie.
[0146] Exemplarily, as shown in C of Figure 2 the fourth interface is the second detailed interface 230. The second detailed interface 230 displays each first time-sharing calorie corresponding to each second time period.
[0147] S709. The health module determines the sum of each first time-sharing calorie within the first time period as the first total calorie at the second moment.
[0148] The health module can call each first time-sharing calorie within the first time period from the database and determine the sum of each first time-sharing calorie within the first time period as the first total calorie. In this step, the above formula (1) can be called for calculation.
[0149] S710. The health module determines the sum of the first total calorie and the historical exercise calorie as the first exercise calorie.
[0150] S711. The health module sends the first exercise calorie to the display module.
[0151] S712. The display module displays the first exercise calorie on the third interface.
[0152] This step is the same as S708 and will not be elaborated herein.
[0153] Exemplarily, as Figure 2 shown in A of [], the third interface is the health directory interface 110. The health directory interface 110 includes the first exercise calories.
[0154] S713. The health module determines the total exercise calories of the first exercise calories within a third time period as the second sub-time period calories of this third time period.
[0155] Suppose the historical exercise calories are 40 kcal, which are recorded from 8:00 to 8:15. The first total calories are 220 kcal, which are recorded from 8:16 to 9:00, and 60 kcal of which are recorded from 8:16 to 8:30. Suppose a third time period is half an hour. Based on this, the first exercise calories are 260 kcal. The second sub-time period calories within the first third time period starting from 8:00 are 100 kcal, and the second sub-time period calories within the second third time period are 160 kcal.
[0156] S714. The health module sends each second sub-time period calorie to the display module.
[0157] In some embodiments, the health module also sends the second sub-time period calories to the database for storing the second sub-time period calories.
[0158] S715. The display module displays each second sub-time period calorie on the sixth interface.
[0159] This step is the same as S708 and will not be elaborated herein.
[0160] Exemplarily, as Figure 2 shown in B of [], the display module displays the second detail interface 230. The second detail interface 230 includes each second sub-time period calorie.
[0161] In another scenario, after the sports health application is started, the sports module is enabled. Figure 8 FIG. shows the third flow diagram of a sports calorie display method involved in the embodiments of the present application. As Figure 8 shown, the sports calorie display method provided by the embodiments of the present application may include:
[0162] S801. In response to an activation operation on the sports health application, the electronic device displays the third interface of the sports health application.
[0163] Among them, the third interface is one of the second type of parameter interfaces of the sports health application. The second type of parameter interface is provided by the health module of the sports health application for displaying the user's health parameters. The health parameters include the user's exercise calories.
[0164] Exemplarily, the third interface may beFigure 1 , Figure 3 the health directory interface 110 shown in. As Figure 1 shown in A of, the health directory interface 110 may include a motion control 113.
[0165] S802. In response to a first switching operation on the third interface of the sports health application, the electronic device displays a fifth interface of the sports health application.
[0166] Among them, the fifth interface is one of the first type of parameter interfaces of the sports health application. The first type of parameter interface is provided by the sports module of the sports health application and is used to display the sports parameters during the user's exercise. Among them, the sports parameters may include: exercise time, exercise distance, exercise calories, etc.
[0167] Exemplarily, the fifth interface may be Figure 1 the sports directory interface 120 shown in. As Figure 1 shown in C of, the fifth interface may display a start exercise control 121. The fifth interface may also display a plurality of sports type controls including a first sports control (such as an outdoor running control 122). Each sports type control corresponds to a sports type. The first sports type control may be an outdoor running control. That is to say, the first sports type is outdoor running. The fifth interface may also display the cumulative exercise distance.
[0168] Exemplarily, as Figure 1 shown in A of, the first switching operation on the third interface may include: an operation of triggering the motion control 113 in the health directory interface 110.
[0169] S803. In response to a start exercise operation on the fifth interface of the sports health application, the electronic device displays a first interface. The first interface may display the real-time sports parameters during the exercise starting from the first moment.
[0170] Among them, the first interface is one of the first type of parameter interfaces of the sports health application. The first interface may also include an end control 133. The real-time sports parameters may include: real-time sports distance, real-time sports time, real-time sports calories.
[0171] Exemplarily, the first interface may be Figure 1 the exercise process interface 130 shown in.
[0172] In one embodiment, in response to a start exercise operation on the sports health application, the electronic device displays the first interface, which may include: in response to a triggering operation on the first sports type control and the start exercise control in the fifth interface in sequence, the electronic device switches from displaying the fifth interface to displaying the first interface. The above first moment may be the moment when the start exercise control is triggered.
[0173] Among them, in response to a triggering operation on the first exercise type control in the fifth interface, the electronic device can call the first calorie calculation formula corresponding to the first exercise type. Then, in response to a triggering operation on the start exercise control in the fifth interface, the electronic device can obtain the user's weight, the real-time exercise distance and real-time exercise time during the exercise process starting from the first moment. Next, the electronic device substitutes the user's weight, real-time exercise distance, and real-time exercise time into the first calorie calculation formula corresponding to the first exercise type to obtain the real-time exercise calorie. In this scenario, if the exercise module is enabled, the exercise module obtains the exercise calorie.
[0174] Exemplarily, the first calorie formula can be represented by the following formula (3):
[0175] CurrentCalorie=MET×Weight×Time (3)
[0176] Among them, CurrentCalorie is the real-time exercise calorie; MET is the metabolic equivalent; Weight is the user's weight; Time is the real-time exercise time.
[0177] Among them, the metabolic equivalent is used to represent the relative energy metabolism level. The metabolic equivalent corresponds to the first exercise type, and different exercise types have different corresponding metabolic equivalents, and the metabolic equivalent is related to the real-time exercise distance and real-time exercise time.
[0178] The following introduces the metabolic equivalent calculation formula for calculating the metabolic equivalent according to the exercise type.
[0179] Exemplarily, when the exercise type is running (such as outdoor running, indoor running), the metabolic equivalent calculation formula can be represented by the following formula (4):
[0180]
[0181] Among them, Dis tan ce is the real-time exercise distance; a, b, c are constants, for example, a = 3.5, b = 0.2, c = 1.
[0182] Exemplarily, when the exercise type is walking (such as outdoor running), the metabolic equivalent calculation formula can be represented by the following formula (5):
[0183]
[0184] Among them, Dis tan ce is the real-time exercise distance; a, d, c are constants, for example, a = 3.5, d = 0.1, c = 1.
[0185] Exemplarily, when the type of exercise is cycling (such as outdoor cycling), the metabolic equivalent calculation formula can be expressed by the following formula (6):
[0186]
[0187] where Distance is the real-time exercise distance; a, b, and c are constants. For example, a = 3.5, b = 0.2, and c = 1.
[0188] In summary, in this scenario, when the exercise module obtains exercise calories, it jointly determines the exercise calories in combination with the type of exercise, the user's weight, exercise time, and exercise distance. Compared with the health module that determines exercise calories only based on the number of exercise steps and the calorie consumption factor, and the calorie consumption factor is fixed, the accuracy of the exercise calories obtained by the exercise module is higher. Therefore, in this scenario, the exercise data recorded by the exercise module will be displayed on the first type of parameter interface provided by the exercise module and also on the second type of parameter interface provided by the health module. That is to say, after the exercise module is enabled, part of the first exercise calories displayed on the second type of parameter interface provided by the health module can be recorded by the exercise module.
[0189] In this step, the electronic device obtains the user's weight, which may include the following different methods:
[0190] In one embodiment, the user's personal information such as weight and age is stored in the exercise health application. At this time, in response to the trigger operation on the start exercise control, the electronic device can directly obtain the user's weight in the exercise health application.
[0191] It should be noted that the personal information involved in the embodiments of the present application is obtained after the user's authorization.
[0192] In another embodiment, the user's personal information is not stored in the exercise health application. At this time, in response to the trigger operation on the start exercise control, the electronic device can display a first pop-up window. The first pop-up window is used to record the user's weight. Then, in response to the editing operation in the first pop-up window, the electronic device can obtain the user's weight.
[0193] Figure 9 Shows the second schematic diagram of the interface of an electronic device provided by an embodiment of the present application.
[0194] Exemplarily, such as Figure 9As shown, the mobile phone 100 displays a sports process interface 130. The sports process interface includes a first pop-up window 910. The first pop-up window 910 includes a first prompt message 911. For example, the first prompt message is: Please fill in your weight. The first pop-up window 910 also includes multiple weight options 912, a weight filling area 913, a cancel control 914, and a confirm control 915. Among them, in response to a sliding operation on the multiple weight options 912, one weight option among the multiple weight options 912 will be displayed in the weight filling area 913. Of course, in another example, the weight filling area 913 may include a weight edit box ( Figure 9 not shown). In response to an editing operation in the weight edit box, the weight will be displayed in the weight filling area 913. It should be understood that in the embodiments of the present application, the way of obtaining the weight is not limited to this.
[0195] Continuing as Figure 9 shown, after a weight option (such as 59) is displayed in the weight filling area 913, in response to the user's triggering operation on the confirm control 915, the mobile phone 100 determines the weight corresponding to the weight option displayed in the weight filling area 913 (such as 59 kilograms) as the user's weight.
[0196] In response to the user's triggering operation on the cancel control 914, the mobile phone 100 determines the preset weight corresponding to the gender in the user information as the user's weight.
[0197] S804. In response to the end-of-motion operation at the second moment on the first interface, the electronic device displays a second interface. The second interface can display the total motion parameters within the first time period.
[0198] Among them, the second interface is one of the first type of parameter interfaces of the sports health application. The total motion parameters may include total motion calories, total motion distance, and total motion time. The first time period starts from the first moment and ends at the second moment.
[0199] Exemplarily, the second interface may be Figure 3 the end-of-motion interface 140 shown in
[0200] It should be understood that the total motion calories displayed on the second interface may be the last real-time motion calories displayed on the first interface. The total motion distance displayed on the second interface may be the last real-time motion distance displayed on the first interface. The total motion time displayed on the second interface may be the last real-time motion time displayed on the first interface.
[0201] Among them, the end-of-motion operation at the second moment on the first interface may be: triggering the end control operation of the first interface at the second moment.
[0202] S805. In response to a first operation on the sports health application, the electronic device displays a third interface. The third interface may include the first exercise calories. The first exercise calories are the sum of the total exercise calories displayed on the second interface and the total exercise calories recorded by the electronic device at the first moment.
[0203] Among them, the third interface is one of the second type of parameter interfaces of the sports health application. The second type of parameter interface is provided by the health module of the sports health application and is used to display the user's health parameters. The health parameters include the user's exercise calories. The total exercise calories recorded by the electronic device at the first moment are historical exercise calories.
[0204] Exemplarily, the third interface may be Figure 1 the health directory interface 110 shown in
[0205] Among them, the total exercise calories recorded by the electronic device at the first moment may be recorded by the third interface. Or, the total exercise calories recorded by the electronic device at the first moment may be recorded by the second interface. Or, the total exercise calories recorded by the electronic device at the first moment may be jointly recorded by the third interface and the second interface. That is to say, the historical exercise calories may be recorded by the exercise module of the sports health application. Or. The historical exercise calories may be recorded by the health module of the sports health application. Or, a part of the historical exercise calories is recorded by the exercise module of the sports health application, and another part of the historical exercise calories is recorded by the health module of the sports health application.
[0206] In one embodiment, in response to a first operation on the sports health application, the electronic device displays a third interface, which may include: First, in response to a return operation on the second interface, the electronic device displays the first interface. Then, in response to a switching operation on the first interface, the electronic device displays the third interface.
[0207] Exemplarily, as shown in A of Figure 3 , the exercise end interface 140 may include a return control 142. In response to a triggering operation on the return control 142, as shown in B of Figure 1 , the mobile phone 100 displays the exercise directory interface 120. The exercise directory interface 120 may include a health control 112. In response to a triggering operation on the health control 112, as shown in B of Figure 3 , the mobile phone 100 displays the health directory interface 110.
[0208] S806. In response to a second operation on the third interface, the electronic device displays a fourth interface. The fourth interface may include N third exercise calories. The N third exercise calories are obtained based on the real-time exercise calories within the first time period, and each third exercise calorie corresponds to the total exercise calories within one of the N second time periods within the first time period.
[0209] Among them, the fourth interface is one of the second type of parameter interfaces of the sports health application. The durations of the N second time periods are equal. For example, the second time period is 1 minute.
[0210] Exemplarily, the fourth interface may be Figure 2 , Figure 3 the second detailed interface 230 in
[0211] In one embodiment, in response to a second operation on the third interface, the electronic device displays the fourth interface, which may include: First, in response to a third operation on the third interface, the electronic device displays the sixth interface. Then, in response to a fourth operation on the sixth interface, the electronic device displays the fourth interface.
[0212] Exemplarily, as shown in A of Figure 2 , the health directory interface 110 may include a consumption control 210. The third operation on the third interface may be a trigger operation on the consumption control 210. The sixth interface may be Figure 2 the first detailed interface 220 shown in B of
[0213] In summary, in the embodiments of the present application, the first exercise parameters displayed on the second type of parameter interface may include the total exercise parameters displayed on the first type of parameter interface. In some scenarios, when the total exercise calories recorded by the electronic device at the first moment is 0, the first exercise parameters displayed on the second type of parameter interface are equal to the total exercise parameters displayed on the first type of parameter interface. That is to say, during the same exercise process, the total exercise parameters displayed on the second type of parameter interface are equal to the total exercise parameters displayed on the first type of parameter interface.
[0214] Furthermore, before the above S806, the electronic device needs to obtain the third exercise calories corresponding to each second time period for display on the second type of parameter interface provided by the health module.
[0215] In one embodiment, as shown in Figure 10 , before S806, the method for determining the third exercise calories may include:
[0216] S1001. The electronic device obtains the real-time exercise calories corresponding to the end moment of the nth second time period among the N second time periods, and the real-time exercise calories corresponding to the end moment of the (n - 1)th second time period, based on the real-time exercise calories within the first time period.
[0217] Among them, N is a positive integer, n is a positive integer, and n takes values in sequence in {N, N - 1, ……, 2, 1}.
[0218] Specifically, the electronic device substitutes the real-time movement distance, real-time movement time, and the user's weight corresponding to the end time of the nth second time period into the calculation formula corresponding to the first movement type to obtain the real-time movement calories corresponding to the end time of the nth second time period.
[0219] Specifically, the electronic device substitutes the real-time movement distance, real-time movement time, and the user's weight corresponding to the end time of the (n - 1)th second time period into the calculation formula corresponding to the first movement type to obtain the real-time movement calories corresponding to the end time of the (n - 1)th second time period.
[0220] S1002. The electronic device uses the difference between the real-time movement calories corresponding to the end time of the nth second time period and the real-time movement calories corresponding to the end time of the (n - 1)th second time period as the third movement calories corresponding to the nth second time period.
[0221] Exemplarily, each third movement calorie can be calculated by the following formula (7):
[0222] Calorie n =CurrentCalorie n -preCalorie n-1 (7)
[0223] Where, Calorie n is the third movement calorie; CurrentCalorie n is the real-time movement calorie corresponding to the end time of the nth second time period; preCalorie n-1 is the real-time movement calorie corresponding to the end time of the (n - 1)th second time period
[0224] Exemplarily, Figure 11 the A in Figure 11 shows the relationship between the real-time movement calorie at the end time within the first time period and the third movement calories of each second time period in this embodiment. Among them, the real-time movement calorie at the end time within the first time period is the total movement calorie within the first time period.
[0225] Specifically, Figure 11 the A in Figure 11 shows the relationship between the total movement calorie within the first time period and the total movement calorie / total movement time. Figure 11Taking as an example the case where B in [[]] obtains the third exercise calorie of the second second time period specifically from the real-time exercise calorie corresponding to the end moment of the second second time period and the real-time exercise calorie corresponding to the end moment of the first second time period.
[0226] In another embodiment, as Figure 12 shown, before S806, the method for determining the third exercise calorie may include:
[0227] S1201. The electronic device obtains the real-time exercise distance corresponding to the end moment of the nth second time period and the real-time exercise distance corresponding to the end moment of the (n - 1)th second time period among N second time periods based on the real-time exercise distance within the first time period.
[0228] Where N is a positive integer, n is a positive integer, and n takes values in sequence from {N, N - 1, ……, 2, 1}.
[0229] S1202. The electronic device takes the difference between the real-time exercise distance corresponding to the end moment of the nth second time period and the real-time exercise distance corresponding to the end moment of the (n - 1)th second time period as the exercise distance corresponding to the nth second time period.
[0230] In this embodiment, the exercise distance corresponding to each second time period is obtained by means of differential calculation. In other embodiments, the electronic device can obtain the exercise distance within each second time period separately. For example, after the electronic device obtains the exercise distance within the first second time period, it will clear the exercise distance within the first second time period, and then the electronic device obtains the exercise distance within the second second time period.
[0231] S1203. The electronic device substitutes the exercise time of each second time period and the exercise distance of each second time period into the second calorie calculation formula corresponding to the first exercise type to obtain each third exercise calorie.
[0232] Exemplarily, in combination with the above formulas (3) - (6), it can be seen that the exercise calorie is positively correlated with (exercise distance / exercise time). Therefore, the first calorie calculation formula corresponding to the first exercise type can be simplified to the following formula (8):
[0233] TotalCalorie2 = CalculateCalorie(Distance, Time) (8)
[0234] In this article, the simplified formula of the first calorie calculation formula corresponding to the first exercise type is called the second calorie calculation formula corresponding to the first exercise type.
[0235] Exemplarily, Figure 11 A in [[]] andFigure 11 In this, C shows the relationship between the real-time exercise calories and each third exercise calorie within the first time period in this embodiment.
[0236] Specifically, Figure 11 In this, C shows the relationship between the third exercise calorie of each second time period and the exercise distance of each second time period / the exercise time of each second time period.
[0237] In the above embodiment, from the perspective of the electronic device as the execution subject, a method for displaying exercise calories provided by the embodiments of the present application is introduced. For the specific implementation of this method, the support of various software and hardware modules in the electronic device is required. The following combines Figure 13 , and through the interaction of various software and hardware modules in the electronic device, a method for displaying exercise calories provided by the embodiments of the present application is introduced.
[0238] In one embodiment, the electronic device may include a sports health application. The sports health application may include a health module, a sports module, and a my module. The electronic device may also include a step counting sensor, a step counting management module, and a display module. Among them, the step counting management module is used to count the exercise steps obtained through the step counting sensor. The display module includes a display screen for displaying the interface of the sports health application. The my module is used to record the user's weight.
[0239] Figure 13 shows the sixth flow diagram of a method for displaying exercise calories involved in the embodiments of the present application. As Figure 13 shown, the method for displaying exercise calories provided by the embodiments of the present application may include:
[0240] S1301. In response to clicking the outdoor running control, the sports module determines that the exercise type is outdoor running.
[0241] S1302. In response to clicking the start exercise control at the first moment, the sports module sends a weight query message to the my module, sends a step counting request message to the step counting management module, and sends a positioning request message to the positioning module.
[0242] S1303. The my module sends the user's weight to the sports module.
[0243] S1304. The step counting management module sends a step counting command to the step counting sensor.
[0244] S1305. The step counting sensor sends the newly added steps to the step counting management module.
[0245] S1306. The step counting management module counts the real-time exercise steps.
[0246] S1307. The step counting management module sends the real-time exercise steps to the sports module.
[0247] S1308. The positioning module sends real-time position information to the motion management module.
[0248] It should be understood that S1303, S1304 and S1305, S1308 are all after S1302, and there is no sequence between them.
[0249] S1309. The motion module determines the real-time motion distance according to the real-time position information and the real-time motion steps.
[0250] S1310. The motion module determines the real-time motion calories according to the real-time motion distance, the real-time motion time, the motion type, and the user's weight.
[0251] In this step, reference can be made to S803 above, which will not be elaborated herein.
[0252] S1311. The motion module sends the real-time motion calories, the real-time motion distance, and the real-time motion time to the display module.
[0253] S1312. The display module displays the real-time motion calories, the real-time motion distance, and the real-time motion time on the first interface.
[0254] It should be understood that the motion module sends the real-time motion calories, the real-time motion distance, and the real-time motion time to the display module for display in the display module. However, after receiving the real-time motion calories, the real-time motion distance, and the real-time motion time, the display module does not immediately display the real-time motion calories, the real-time motion distance, and the real-time motion time. Instead, when the electronic device responds to a trigger operation on a first type of parameter interface (such as the above first interface), the display module will display the real-time motion calories, the real-time motion distance, and the real-time motion time.
[0255] S1313. The motion module determines the first split-time calories in each second time period based on the real-time motion calories, the real-time motion distance, the real-time motion time at each moment, and the duration of the second time period.
[0256] In this step, after the first moment, the motion module will obtain the real-time motion calories, the real-time motion distance, and the real-time motion time at the end moment of each second time period based on the duration of the second time period and the real-time motion calories, the real-time motion distance, and the real-time motion time at each moment. The process of determining each first split-time calorie can refer to S1001 - S1002 or S1201 - S1203.
[0257] S1314. The motion module sends each first split-time calorie to the health module.
[0258] In this embodiment, the first time - shared calorie is obtained by the exercise module and provided to the health module. In some other embodiments, the first time - shared calorie is directly obtained by the health module based on the real - time exercise parameters provided by the exercise module, such as the real - time exercise calorie.
[0259] S1315. In response to clicking the end control at the second moment, the exercise module determines the second total calorie.
[0260] In this step, reference can be made to S804 above. In this step, the second total calorie refers to the total exercise calorie recorded by the exercise module within the first time period.
[0261] S1316. The exercise module sends the second total calorie to the display module.
[0262] S1317. The display module displays the second total calorie on the second interface.
[0263] S1318. The health module sums up each first time - shared calorie and the historical calorie to obtain the first exercise calorie.
[0264] Among them, the historical calorie is the total exercise calorie recorded by the electronic device through the exercise health application at the first moment.
[0265] S1319. The health module determines the total exercise calorie of the first exercise calorie within a third time period as the second time - shared calorie of this third time period.
[0266] This step can refer to S713 above.
[0267] S1320. The health module sends the first exercise calorie, the first time - shared calorie, and the second time - shared calorie to the display module.
[0268] S1321. The display module displays the first exercise calorie on the third interface, the first time - shared calorie on the fourth interface, and the second time - shared calorie on the sixth interface.
[0269] Figure 14 Figure 3 shows a schematic diagram of the interface of an electronic device provided by an embodiment of the present application.
[0270] Exemplarily, as Figure 14 shown at A in, the first detailed interface 220 (i.e., the sixth interface) displays the exercise details card 1410. For example, the exercise type, the calorie consumption data generated by various exercise types, and the proportion of the calorie consumption data generated by different exercise types in the first total calorie. Among them, the exercise type is the exercise type included in the exercise module in the exercise health application.
[0271] Further, the electronic device can establish a communication connection (such as a Bluetooth connection) with the wearable device. During exercise, the wearable device can obtain heat parameters such as real-time exercise calories, total exercise calories, first-time segment calories, second-time segment calories, etc., and provide them to the electronic device. The first exercise calories displayed on the interface corresponding to the health module of the electronic device can include the heat parameters obtained from the wearable device. Alternatively, the wearable device is only used to collect exercise information such as exercise steps, exercise distance, exercise time, etc., and provide it to the electronic device. The electronic device obtains the corresponding heat parameters based on this exercise information.
[0272] Among them, the wearable device is a device with a simpler structure than the electronic device, such as a sports watch, a sports bracelet, etc.
[0273] As Figure 14 As shown in B, when the electronic device is in communication connection with the wearable device, the exercise type supported by the wearable device, such as yoga, can be displayed in the exercise details card 1410.
[0274] As Figure 15 As shown, the embodiment of the present application also provides a chip system. The chip system 1500 includes at least one processor 1510 and at least one interface circuit 1520. The at least one processor 1510 and the at least one interface circuit 1520 can be interconnected by a line. The processor 1510 is used to support the electronic device to implement each step in the above method embodiment, and the at least one interface circuit 1520 can be used to receive signals from other devices (such as a memory), or send signals to other devices (such as a communication interface). The chip system can include a chip and can also include other discrete devices.
[0275] The embodiment of the present application also provides a computer storage medium. The computer storage medium includes instructions. When the instructions run on the above-mentioned electronic device, the electronic device is caused to execute each step in the above method embodiment.
[0276] The embodiment of the present application also provides a computer program product including instructions. When the instructions run on the above-mentioned electronic device, the electronic device is caused to execute each step in the above method embodiment.
[0277] Regarding the technical effects of the chip system, computer storage medium, and computer program product, refer to the technical effects of the foregoing method embodiment.
[0278] It should be understood that in various embodiments of the present application, the magnitudes of the serial numbers of the above processes do not mean the order of execution. The order of execution of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
[0279] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of this application.
[0280] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and modules described above can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.
[0281] In several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of devices or modules can be in electrical, mechanical, or other forms.
[0282] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they can be located in one device, or distributed to multiple devices. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0283] In addition, the functional modules in each embodiment of this application can be integrated in one device, or each module can exist physically alone, or two or more modules can be integrated in one device.
[0284] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer storage medium or transmitted from one computer storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wirelessly (such as infrared, wireless, microwave, etc.). The computer storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more integrated media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.
[0285] As described above, the above are only the specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present application can easily think of changes or substitutions, which should all be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A method for displaying exercise calories, characterized in that, Applied to an electronic device, the electronic device includes a sports health application, and the sports health application provides a first type of parameter interface and a second type of parameter interface; wherein, the first type of parameter interface is used to display the sports parameters during the user's exercise, and the second type of parameter interface is used to display the user's health parameters; both the sports parameters and the health parameters include the user's exercise calories. In response to the start exercise operation in the sports health application, display a first interface; the first interface is used to record the real-time sports parameters during the exercise process starting from the first moment, and the real-time sports parameters include real-time exercise calories. In response to the end exercise operation at the second moment on the first interface, display a second interface; the second interface includes the total sports parameters within the first time period, and the total sports parameters include the total exercise calories; the first time period starts from the first moment and ends at the second moment; both the second interface and the first interface are the first type of parameter interface. In response to the first operation in the sports health application, display a third interface; the third interface includes a first exercise calorie, and the first exercise calorie is the sum of the total exercise calories and the total exercise calories recorded by the electronic device at the first moment. In response to the second operation on the third interface, display a fourth interface; the fourth interface includes N third exercise calories, and the N third exercise calories are obtained based on the real-time exercise calories within the first time period, and each third exercise calorie corresponds to the total exercise calories within one of the N second time periods within the first time period; both the third interface and the fourth interface are the second type of parameter interface, and the durations of the N second time periods are equal.
2. The method according to claim 1, wherein Before displaying the fourth interface, the method further includes: Based on the real-time exercise calories within the first time period, obtain the real-time exercise calorie corresponding to the end moment of the nth second time period among the N second time periods, and the real-time exercise calorie corresponding to the end moment of the (n - 1)th second time period. Take the difference between the real-time exercise calorie corresponding to the end moment of the nth second time period and the real-time exercise calorie corresponding to the end moment of the (n - 1)th second time period as the third exercise calorie corresponding to the nth second time period. Wherein, n takes values in sequence from {N, N - 1, ……, 2, 1}.
3. The method according to claim 1 or 2, characterized in that, The first interface is used to record the real-time sports parameters during the exercise process starting from the first moment with the first exercise type. The real-time sports parameters further include real-time exercise distance and real-time exercise time. The method further includes: In response to the start exercise operation, obtain the weight of the user. Substitute the real-time exercise distance, the real-time exercise time, and the weight of the user into the first calorie calculation formula corresponding to the first exercise type to obtain the real-time exercise calorie.
4. The method according to claim 3, wherein The first calorie calculation formula is: CurrentCalorie = MET × Weight × Time Wherein, CurrentCalorie is the real-time exercise calorie; MET is the metabolic equivalent, which corresponds to the first exercise type. Different exercise types have different corresponding metabolic equivalents, and the metabolic equivalent is related to the real-time exercise distance and the real-time exercise time; Weight is the weight of the user; Time is the real-time exercise time.
5. The method according to claim 4, wherein The first exercise type is running, and the metabolic equivalent is: Wherein, Distan ce is the real-time exercise distance; a, b, and c are constants.
6. The method according to claim 4, wherein The first exercise type is walking, and the metabolic equivalent is: Wherein, Distan ce is the real-time exercise distance; a, d, and c are constants.
7. The method according to claim 4, wherein The first exercise type is cycling, and the metabolic equivalent is: Wherein, Distance is the real-time exercise distance; a, d, and c are constants.
8. The method according to any one of claims 1-7, characterized in that The sports health application includes a sports module and a health module. The sports module provides the first type of parameter interface, and the health module provides the second type of parameter interface; The method further includes: In response to the start exercise operation in the sports health application, the sports module obtains the real-time exercise calorie, obtains the third activity calorie corresponding to each second time period based on the real-time exercise calorie, and provides the third activity calorie corresponding to the second time period to the health module.
9. The method according to any one of claims 1 to 7, characterized in that, The sports health application includes a sports module and a health module. The sports module provides the first type of parameter interface, and the health module provides the second type of parameter interface; The method further includes: In response to the start exercise operation in the sports health application, the sports module obtains the real-time exercise calorie and provides the real-time exercise calorie to the health module; The health module obtains the third activity calorie corresponding to each second time period based on the real-time exercise calorie.
10. An electronic device, characterized in that, It includes: A memory, a display screen, a motion sensor, and one or more processors; the memory, the display screen, and the motion sensor are coupled to the processor; The memory stores computer program code, and the computer program code includes instructions; when the processor executes the instructions, the electronic device executes the method according to any one of claims 1-9.
11. A computer-readable storage medium, characterized in that, It includes instructions that, when executed on an electronic device, cause the electronic device to execute the method according to any one of claims 1-9.