Motion data synchronization method and electronic equipment

CN121464433APending Publication Date: 2026-02-03HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202480032458.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-05-29
Filing Date
2024-05-11
Publication Date
2026-02-03

AI Technical Summary

Technical Problem

The motion data collected by users' mobile phones and sports watches are often out of sync for multiple reasons, resulting in inconsistent motion data seen by users on different devices, affecting the user's experience.

Method used

By synchronizing motion data between electronic devices, fusion rules are used to merge the motion data of the first electronic device and the second electronic device to ensure data consistency, including dynamically adjusting preset values ​​based on user type and the MAC address of the device, and timely Synchronize data.

Benefits of technology

The motion data on multiple electronic devices is achieved consistently, improving the user experience and ensuring the accuracy and real-timeness of the data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121464433A_ABST
    Figure CN121464433A_ABST
Patent Text Reader

Abstract

The invention provides a motion data synchronization method and electronic equipment. The method can comprise the steps that first electronic equipment determines first motion data, and second electronic equipment determines second motion data; when a preset condition is met, the first electronic equipment fuses the first motion data and the second motion data according to a fusion rule to obtain third motion data; the first electronic equipment sends the third motion data to the second electronic equipment; and the first electronic equipment and the second electronic equipment refresh display interfaces according to the third motion data. According to the technical scheme, the motion data displayed by the first electronic equipment and the second electronic equipment can be the same.
Need to check novelty before this filing date? Find Prior Art

Description

Motion data synchronization method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on May 18, 2023, with application number 202310566390.8 and application name “A method and device for synchronizing motion data”, and the Chinese patent application filed with the State Intellectual Property Office of China on May 29, 2023, with application number 202310621858.9 and invention name “Method and electronic device for synchronizing motion data”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] Embodiments of the present application relate to the field of electronic technology, and more particularly, to a method and electronic device for synchronizing motion data. Background Art

[0003] Nowadays, users are increasingly concerned about their daily exercise data. A variety of electronic devices can be used to collect users' exercise data, such as mobile phones and sports watches. However, there are various reasons why the exercise data collected by a mobile phone and a sports watch for the same user may differ.

[0004] Summary of the Invention

[0005] The present invention provides a method and electronic device for synchronizing motion data, which can ensure that the motion data displayed by a first electronic device and a second electronic device are the same.

[0006] In a first aspect, a method for synchronizing motion data is provided, which is applied to a first electronic device and includes: determining first motion data; when a first preset condition is met, the first electronic device fuses the first motion data and second motion data according to a fusion rule to obtain third motion data, where the second motion data is motion data determined by the second electronic device; and sending the third motion data to the second electronic device.

[0007] Based on the embodiment of the present application, the first electronic device can be used to determine the first motion data. When the first preset condition is met, the first electronic device fuses the first motion data and the second motion data according to the fusion rule to obtain third motion data, and sends the third motion data to the second electronic device.

[0008] This technical solution can keep the motion data in the first electronic device and the second electronic device consistent, so that the motion data that a user can see on the first electronic device and the second electronic device are the same, which helps to improve the user experience.

[0009] In combination with the first aspect, in an implementation of the first aspect, the first electronic device fuses the first motion data and the second motion data according to a fusion rule to obtain third motion data, including: if the first electronic device supports viewing detailed motion data, for the target minute, both the first motion data and the second motion data exist, and the data corresponding to the target minute in the second motion data is used as the data of the target minute in the third motion data; for the target minute, if only the first motion data or the second motion data exists, the data corresponding to the target minute in the first motion data or the second motion data is used as the data of the target minute in the third motion data; or, if the first electronic device does not support viewing detailed motion data, the larger of the first motion data and the second motion data is used as the third motion data.

[0010] In an embodiment of the present application, for electronic devices that support viewing detailed motion data, for the same minute of motion data, if there is both motion data from a first electronic device and motion data from a second electronic device, the motion data from the second electronic device shall prevail; if there is data from only one electronic device, the motion data from that electronic device shall prevail. For electronic devices that do not support viewing detailed motion data, the larger data shall be used as the third motion data. In this technical solution, the first electronic device can adopt different motion data fusion methods for different situations, so that the fused data can be more accurate and better reflect the user's actual motion situation.

[0011] In combination with the first aspect, in an implementation of the first aspect, if the second motion data includes motion data of multiple second electronic devices, the first electronic device fuses the first motion data and the second motion data according to a fusion rule to obtain third motion data, including: for a target minute, both the first motion data and the second motion data exist, and the motion data of the second electronic device with the largest media access control MAC address is used as the data of the target minute in the third motion data.

[0012] In an embodiment of the present application, if there is motion data of multiple second electronic devices, when the first electronic device performs data fusion, for the same minute, the motion data of the second electronic device with the largest MAC address shall prevail.

[0013] Since the MAC address of a newly produced electronic device is larger, the motion sensor it uses may also be more advanced, so that the motion data obtained by the first electronic device during motion data fusion may be more accurate.

[0014] In combination with the first aspect, in an implementation of the first aspect, the first preset condition is that the first electronic device determines that the change in the first motion data is greater than a preset value. Before the first electronic device fuses the first motion data and the second motion data according to the fusion rule, the method also includes: determining the user type based on the user portrait; when it is determined that the user type is the first type, determining the preset value to be the first preset value; when it is determined that the user type is not the first type, determining the preset value to be the second preset value; wherein, the first preset value is less than the second preset value.

[0015] In the embodiment of the present application, different user types may correspond to different preset values, so that the change value of the motion data can be dynamically adjusted, thereby improving the flexibility of motion data synchronization.

[0016] In combination with the first aspect, in an implementation manner of the first aspect, the first preset condition is that the first electronic device receives second motion data sent by the second electronic device.

[0017] In an embodiment of the present application, when the first electronic device receives the second motion data sent by the second electronic device, the motion data can be fused so that the fused motion data can better reflect the user's motion status.

[0018] In combination with the first aspect, in an implementation of the first aspect, the first preset condition is that the first electronic device detects the user's operation of opening the homepage of the target application or the user's operation of pulling down to refresh the homepage of the target application. Before the first electronic device fuses the first motion data and the second motion data according to the fusion rule, the method also includes: sending a motion data synchronization request to the second electronic device; and receiving the second motion data sent by the second electronic device.

[0019] In an embodiment of the present application, when the user opens the homepage of the target application or pulls down to refresh the homepage of the target application, motion data synchronization can be triggered, so that the motion data presented to the user by the first electronic device can be more accurate.

[0020] In combination with the first aspect, in an implementation of the first aspect, the third motion data includes detailed motion data within a preset time period and summary motion data of the day.

[0021] In the embodiment of the present application, the third motion data may include data of multiple data types, so that the motion data can be presented to the user from multiple angles.

[0022] In combination with the first aspect, in an implementation of the first aspect, the third motion data includes detailed motion data within each preset time period of the first preset days and summary motion data of each day of the second preset days.

[0023] In the embodiment of the present application, the third motion data may include data of multiple data types, so that the motion data can be presented to the user from multiple angles.

[0024] In combination with the first aspect, in an implementation manner of the first aspect, the method further includes: refreshing a display interface of the first electronic device according to the third motion data.

[0025] This technical solution can ensure that the motion data displayed on the display interfaces of the first electronic device and the second electronic device remain consistent.

[0026] In combination with the first aspect, in an implementation of the first aspect, the method further includes: in response to an operation of modifying the target motion data, determining whether the timestamp of the modified second target motion data is greater than the timestamp of the stored first target motion data; if it is determined that the timestamp of the second target motion data is greater than the timestamp of the first target motion data, sending the second target motion data to the second electronic device; and refreshing the display interface of the first electronic device according to the second target motion data.

[0027] Based on the embodiments of the present application, when a user modifies target motion data on a first electronic device, the modified target motion data can be automatically synchronized to a second electronic device, so that the target motion data displayed on multiple electronic devices of the user remains consistent.

[0028] In combination with the first aspect, in an implementation of the first aspect, the method also includes: receiving second target motion data sent by the second electronic device; if it is determined that the timestamp of the second target motion data is less than or equal to the timestamp of the stored first target motion data, sending the first target motion data to the second electronic device; if it is determined that the timestamp of the second target motion data is greater than the timestamp of the first target motion data, refreshing the display interface of the first electronic device according to the second target motion data.

[0029] Based on the embodiments of the present application, when a user modifies target motion data on a second electronic device, the modified target motion data can be automatically synchronized to the first electronic device, so that the target motion data displayed on multiple electronic devices of the user remains consistent.

[0030] In combination with the first aspect, in an implementation of the first aspect, the first historical target motion data is stored in the first electronic device, and the method also includes: receiving the second historical target motion data sent by the second electronic device; determining whether the historical daily minimum target motion data in the first historical target motion data and the second historical target motion data belongs to the first historical target motion data; if it is determined that the minimum target motion data belongs to the first historical target motion data, sending the minimum target motion data to the second electronic device; if it is determined that the minimum target motion data does not belong to the first historical target motion data, refreshing the display interface of the first electronic device according to the minimum target motion data.

[0031] Based on the embodiments of the present application, the historical target data of the first electronic device and the second electronic device can be kept consistent.

[0032] In a second aspect, a method for synchronizing motion data is provided, which is applied to a second electronic device and includes: determining second motion data; sending the second motion data to a first electronic device when a second preset condition is met; and receiving third motion data sent by the first electronic device, wherein the third motion data is motion data obtained by the first electronic device by fusing the first motion data and the second motion data according to a fusion rule.

[0033] Based on the embodiment of the present application, the second electronic device can be used to determine the second motion data. When the second preset condition is met, the second electronic device sends the second motion data to the first electronic device and receives the third motion data sent by the first device.

[0034] This technical solution can keep the motion data in the first electronic device and the second electronic device consistent, so that the motion data that a user can see on the first electronic device and the second electronic device are the same, which helps to improve the user experience.

[0035] In combination with the second aspect, in an implementation of the second aspect, the second preset condition is that the second electronic device determines that the change in the second motion data is greater than a preset value, and before sending the second motion data to the first electronic device, the method also includes: determining the user type based on the user portrait; when it is determined that the user type is the first type, determining the preset value to be the first preset value; when it is determined that the user type is not the first type, determining the preset value to be the second preset value; wherein, the first preset value is less than the second preset value.

[0036] In the embodiment of the present application, different user types may correspond to different preset values, so that the change value of the motion data can be dynamically adjusted, thereby improving the flexibility of motion data synchronization.

[0037] In combination with the second aspect, in an implementation of the second aspect, the second preset condition is that the second electronic device detects that the second electronic device and the first electronic device have changed from a wirelessly disconnected state to a wirelessly connected state; or, the second preset condition is that the second electronic device receives a motion data synchronization request sent by the first electronic device.

[0038] In combination with the second aspect, in an implementation manner of the second aspect, the method further includes: refreshing a display interface of the second electronic device according to the third motion data.

[0039] In the embodiment of the present application, the motion data displayed on the display interface of the first electronic device and the second electronic device can be kept consistent.

[0040] In combination with the second aspect, in an implementation manner of the second aspect, the method further includes: receiving target motion data sent by the first electronic device; and refreshing a display interface of the second electronic device according to the target motion data.

[0041] This technical solution can ensure that the target motion data displayed on the first electronic device and the second electronic device are consistent.

[0042] In combination with the second aspect, in an implementation manner of the second aspect, the method further includes: receiving historical target motion data sent by the first electronic device; and refreshing a display interface of the second electronic device according to the historical target motion data.

[0043] Based on the embodiments of the present application, the historical target data of the first electronic device and the second electronic device can be kept consistent.

[0044] In a third aspect, an electronic device is provided, comprising: one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs comprising instructions, which, when executed by one or more processors, enable the method for synchronizing motion data as described in the first aspect and any possible implementation thereof to be executed.

[0045] In a fourth aspect, an electronic device is provided, comprising: one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs comprising instructions, which, when executed by the one or more processors, enable the method for synchronizing motion data as described in the second aspect and any possible implementation thereof to be executed.

[0046] In a fifth aspect, a device is provided, comprising a module for implementing the method for synchronizing motion data as described in the first aspect, or the second aspect and any possible implementation thereof.

[0047] In the sixth aspect, a chip is provided, which includes a processor and a communication interface, wherein the communication interface is used to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the method for synchronizing motion data as described in the first aspect and any possible implementation thereof is executed.

[0048] In the seventh aspect, a chip is provided, which includes a processor and a communication interface, wherein the communication interface is used to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the method for synchronizing motion data as described in the second aspect and any possible implementation thereof is executed.

[0049] In an eighth aspect, a readable storage medium is provided, characterized in that instructions are stored in the readable storage medium, and when the instructions are run on an electronic device, the method for synchronizing motion data as described in the first aspect and any possible implementation thereof is executed.

[0050] In the ninth aspect, a readable storage medium is provided, characterized in that instructions are stored in the readable storage medium, and when the instructions are run on an electronic device, the method for synchronizing motion data as described in the second aspect and any possible implementation thereof is executed.

[0051] In a tenth aspect, a computer program product is provided, which includes a computer program code. When the computer program code is run on a computer, the method for synchronizing motion data as described in the first aspect and any possible implementation thereof is executed.

[0052] In the eleventh aspect, a computer program product is provided, which includes a computer program code, and when the computer program code is run on a computer, the method for synchronizing motion data as described in the second aspect and any possible implementation thereof is executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] FIG1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.

[0054] FIG2 is a schematic diagram of the software structure of the electronic device provided in an embodiment of the present application.

[0055] FIG3 is a schematic diagram of a scenario to which the method for synchronizing motion data provided in an embodiment of the present application can be applied.

[0056] FIG4 is a schematic flowchart of a method for synchronizing motion data provided in an embodiment of the present application.

[0057] FIG5 is a schematic flowchart of another method for synchronizing motion data provided in an embodiment of the present application.

[0058] FIG6 is a schematic interaction diagram of another method for synchronizing motion data provided in an embodiment of the present application.

[0059] FIG7 is a schematic interaction diagram of another method for synchronizing motion data provided in an embodiment of the present application.

[0060] FIG8 is a schematic flowchart of a method for synchronizing target motion data provided in an embodiment of the present application.

[0061] FIG9 is a schematic flowchart of another method for synchronizing target motion data provided in an embodiment of the present application.

[0062] FIG10 is a schematic flowchart of another method for synchronizing historical target data provided in an embodiment of the present application.

[0063] FIG11 is a schematic diagram of a display interface after synchronization of motion data between the first device and the second device.

[0064] FIG12 is a schematic flowchart of a method for synchronizing motion data provided in an embodiment of the present application.

[0065] FIG13 is a schematic flowchart of another method for synchronizing motion data provided in an embodiment of the present application.

[0066] FIG14 is a schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0067] The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.

[0068] The method for dynamically connecting devices in the embodiments of the present application can be applied to electronic devices such as smartphones, smart speakers, smart TVs, tablet computers, laptops, personal computers (PCs), ultra-mobile personal computers (UMPCs), netbooks, vehicle-mounted devices, wearable devices, foldable devices, and Internet of Things (IOT) devices.

[0069] Among them, wearable devices may include sports watches, sports bracelets, etc.

[0070] 1 shows a schematic structural diagram of an electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0071] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0072] The processor 110 may include one or more processing units. For example, the processor 110 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). The different processing units may be independent devices or integrated into one or more processors.

[0073] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0074] The processor 110 may also include a memory for storing instructions and data.

[0075] In some embodiments, the processor 110 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 interface.

[0076] The charging management module 140 is configured to receive charging input from a charger.

[0077] The power management module 141 is used to connect the battery 142 , the charging management module 140 and the processor 110 .

[0078] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0079] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G applied on the electronic device 100.

[0080] The modulation and demodulation processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.

[0081] The wireless communication module 160 can provide wireless communication solutions for application on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Bluetooth low energy (BLE), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.

[0082] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 , and antenna 2 is coupled to wireless communication module 160 , so that electronic device 100 can communicate with the network and other devices through wireless communication technology.

[0083] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0084] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.

[0085] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0086] The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture still images or videos.

[0087] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals.

[0088] The video codec is used to compress or decompress digital video. The electronic device 100 may support one or more video codecs.

[0089] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.

[0090] The internal memory 121 may be used to store computer executable program codes, which include instructions. The processor 110 executes the instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100.

[0091] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0092] The audio module 170 is used to convert digital audio information into analog audio signals for output, and is also used to convert analog audio input into digital audio signals.

[0093] The speaker 170A, also called a "horn", is used to convert audio electrical signals into sound signals.

[0094] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals.

[0095] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals.

[0096] The headphone jack 170D is used to connect a wired headphone.

[0097] The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194 .

[0098] The gyro sensor 180B may be used to determine the motion posture of the electronic device 100 .

[0099] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.

[0100] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes).

[0101] The distance sensor 180F is used to measure distance.

[0102] The fingerprint sensor 180H is used to collect fingerprints.

[0103] The touch sensor 180K is also called a “touch panel.” The touch sensor 180K can be disposed on the display screen 194 . The touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen.”

[0104] The bone conduction sensor 180M can acquire vibration signals.

[0105] The buttons 190 include a power button, a volume button, and the like.

[0106] Motor 191 can generate vibration prompts.

[0107] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.

[0108] The SIM card interface 195 is used to connect a SIM card.

[0109] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the software structure of the electronic device 100 is exemplified by taking an operating system of a layered architecture as an example.

[0110] Figure 2 is a block diagram of the software structure of electronic device 100 according to an embodiment of the present application. A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other via software interfaces. In some embodiments, the operating system is divided into four layers: the application layer, the application framework layer, the system library layer, and the kernel layer, from top to bottom. The application layer may include a series of application packages.

[0111] As shown in FIG2 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, wallet, etc.

[0112] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0113] As shown in FIG2 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.

[0114] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0115] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0116] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0117] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).

[0118] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0119] The notification manager enables applications to display notification information in the status bar, which can be used to convey informational messages and disappear automatically after a short stay without user interaction.

[0120] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the core library.

[0121] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0122] The system library can include multiple functional modules, such as a surface manager, media libraries, a 3D graphics processing library (such as OpenGL ES), and a 2D graphics engine (such as SGL).

[0123] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0124] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0125] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0126] A 2D graphics engine is a drawing engine for 2D drawings.

[0127] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0128] Before introducing the technical solutions of the embodiments of the present application, some technical terms that may be involved in the present application are briefly introduced as follows.

[0129] User profiles are models that depict user needs. In this application, user profiles can be used to describe how users use a sports and health application. For example, an electronic device can categorize users into heavy users and non-heavy users based on how often they use the sports and health application and what they focus on.

[0130] Foreground: A foreground service performs actions that the user notices. For example, an audio app might use a foreground service to play an audio track. A foreground service displays notifications. A foreground service continues to run even if the user stops interacting with the app.

[0131] Background: Background services perform actions that the user won't directly notice. For example, if your app uses a service to compress its storage, this service is typically a background service.

[0132] Nowadays, users are increasingly concerned about their daily exercise data. A variety of electronic devices can be used to collect users' exercise data, such as mobile phones and sports watches. However, there are various reasons why the exercise data collected by a mobile phone and a sports watch for the same user may differ.

[0133] In view of this, the present application provides a method for synchronizing motion data, so that when multiple electronic devices are in a wireless connection state, the same motion data for the same user can be obtained.

[0134] Figure 3 is a schematic diagram of a scenario to which the present invention can be applied. As shown in Figure 3, the scenario may include at least device 200a, device 200b, and cloud 200c. Device 200a may include a sports and health application (Application, App) 1.

[0135] In the embodiment of the present application, device 200a and device 200b can be used to collect the user's motion data. When device 200a and device 200b are in a wireless connection state, device 200a can synchronize motion data with device 200b to ensure that the motion data at both ends remain consistent.

[0136] The exercise data may include steps, calories, distance, activity hours, elevation data, medium to high intensity, heart rate, and other data that can be used to characterize the user's exercise status.

[0137] For example, App 1 of device 200a can be used to monitor the number of steps reported by the sensor of device 200a, and can calculate calories, distance, activity hours, medium and high intensity, etc. based on the number of steps. It can also use other motion sensors to determine climbing data, heart rate, etc. Similarly, device 200b can also collect various sports data of the user.

[0138] It is understood that device 200a can store the collected or calculated motion data in a database and upload it to cloud 200c. In addition, App 1 can also provide the various motion data to the user interface (UI) process in real time to refresh the display interface of App 1 for the user to view. Similarly, device 200b can also provide the various motion data to the UI process in real time for the user to view.

[0139] In some examples, the user can also set target exercise data on device 200a or device 200b. For example, the user sets a step goal of 10,000 steps, a target exercise duration of 30 minutes, a target active hours of 12 times, etc. Cloud 200c can manage and distribute various achievement medals based on the user's daily exercise data and target exercise data.

[0140] The device 200a can fuse the motion data 1 of the device 200a with the motion data 2 of the device 200b according to certain rules to obtain motion data 3, and synchronize the motion data 3 to the device 200b.

[0141] Exemplarily, motion data synchronization may be triggered in the following manner.

[0142] Method 1:

[0143] When the user belongs to the first type, motion data synchronization is triggered when the change in motion data of device 200a or device 200b is greater than threshold A; or, when the user belongs to the second type, motion data synchronization is triggered when the change in motion data of device 200a or device 200b is greater than threshold B.

[0144] The user type can be determined based on the user profile. For example, the user can be determined to be a heavy user or a non-heavy user based on the user profile. The first type can be understood as a heavy user, and the second type can be understood as a non-heavy user.

[0145] The exercise data may include steps, calories, activity hours, distance, etc.

[0146] Method 2: Motion data synchronization is triggered when device 200a and device 200b change from a wireless connection disconnected state to a wireless connection state.

[0147] Method 3: When the device 200a launches a sports and health application (Application, App) such as Huawei Sports Health for the first time, or when the user performs a pull-down refresh operation on the homepage of the application, sports data synchronization is triggered.

[0148] Method 4: Periodic synchronization. For example, the device 200a and the device 200b synchronize their motion data once every preset time interval. The preset time interval can be 1 hour (hour) or 2 hours.

[0149] When device 200a and device 200b are synchronizing motion data, if device 200b needs to transmit motion data to device 200a, device 200b can transmit the motion data 2 collected by itself to device 200a via wireless. The device management module 210 in device 200a can perform byte conversion on the motion data 2 and store it in the data platform 220. The data platform 220 can perform motion data fusion on the motion data 1 determined by the pedometer module and the motion data 2 of device 200b to obtain motion data 3. The device management module reads the motion data 3 from the data platform 220 and sends it to device 200b. Similarly, when the motion data 3 is different from the motion data 1, the pedometer module 230 can read the motion data 3 from the data platform 220 and provide it to the UI for real-time refresh. In this way, motion data synchronization between device 200a and device 200b is achieved.

[0150] Exemplarily, device 200a may be a mobile phone, tablet, etc., and device 200b may be a sports watch, sports bracelet, etc.

[0151] In other examples, there may be multiple devices 200a and multiple devices 200b.

[0152] FIG4 is a schematic flow chart of a method for synchronizing sports data provided by an embodiment of the present application. As shown in FIG4 , method 300 may include steps 310 to 360. Method 300 may be applied to a first device and a second device in a wireless connection state. For example, the first device may be a smartphone, and the second device may be a sports watch.

[0153] 310. The first device obtains the number of steps of the first device.

[0154] For example, the first device may include a motion sensor, which may obtain the number of steps taken by the user in real time.

[0155] 320. The first device determines whether the user type belongs to the first type.

[0156] Exemplarily, the user is a user corresponding to an account logged in on the first device. The first device may determine the type of user based on the user portrait, and the first type may be a heavy user.

[0157] Alternatively, the first device may determine the user's type based on the frequency with which the user logs into a sports and health app and the frequency with which the user clicks on sports data. For example, if the frequency with which the user logs into a sports and health app and the frequency with which the user clicks on sports data are both greater than a threshold each week, the user may be determined to be of the first type.

[0158] 330. When it is determined that the user type belongs to the first type, the first device determines whether the change value of the step count is greater than a first preset value.

[0159] Exemplarily, the first preset value may be 200, or 100, etc. The embodiment of the present application does not limit the specific value of the first preset value.

[0160] After the first device determines that the change in the number of steps is greater than the first preset value, step 340 may be performed.

[0161] 331. When it is determined that the user type does not belong to the first type, the first device determines whether the change value of the step count is greater than a second preset value.

[0162] Exemplarily, the second preset value may be 500 or 600. The embodiment of the present application does not limit the specific value of the second preset value.

[0163] It should be understood that the first preset value should be smaller than the second preset value. In the embodiment of the present application, when the user type belongs to the first type, it means that the user frequently logs into the sports and health app and pays more attention to his or her sports data. Therefore, the first preset value can be set to a smaller value so that the sports data on both ends can be synchronized in time when the user's sports data changes, providing a good user experience.

[0164] When the first device determines that the change in the number of steps is greater than the second preset value, step 340 is continued.

[0165] 340 , the first device fuses the motion data 1 of the first device and the motion data 2 of the second device to obtain motion data 3 .

[0166] It should be understood that before step 340 , the first device has received the motion data 2 of the second device at least once.

[0167] The first device may fuse the motion data 1 of the first device and the motion data 2 of the second device, and the fusion rules are as follows.

[0168] For the first device that supports viewing motion data details, the motion data can be counted by minute. In the same minute, there are both motion data collected by the first device and motion data collected by the second device. The motion data collected by the second device shall prevail.

[0169] For example, at time 9:01, there is motion data collected by the first device and motion data collected by the second device, then the motion data collected by the second device shall prevail.

[0170] If only data from the first device is available at a certain minute, the data from the first device shall prevail; if only data from the second device is available at a certain minute, the data from the second device shall prevail.

[0171] For a first device that supports viewing motion data details, if there are multiple second devices, in the same minute, there are motion data collected by both the first device and multiple second devices. The motion data collected by the device with the larger media access control (MAC) address among the second devices shall prevail.

[0172] In this way, since the second device with a large MAC address has been on the market for a short time and is relatively new, the motion sensor used may also be more advanced, which will make the collected motion data more accurate.

[0173] For a first device that supports viewing motion data details, if the type of the second device is the same as that of the second device, for example, both the first device and the second device are mobile phones, and for the same minute, there is motion data collected by both the first device and the second device, then the motion data collected by the device with the larger device identity document (ID) of the first device and the second device shall prevail.

[0174] In this way, since the device ID is large, its time to market is short, the device is relatively new, and the motion sensor used may also be more advanced, the collected motion data will be more accurate.

[0175] For the first device that does not support viewing the details of the motion data, the maximum value of the number of steps in the motion data collected by the first device and the second device shall prevail.

[0176] It should be understood that the data type of the motion data 3 may include detailed motion data of the current preset duration, such as the number of steps, calories, medium and high intensity, activity hours, etc. within 30 or 60 minutes, and may also include summary motion data of the day, such as the total number of steps, calories, medium and high intensity, activity hours, distance, height climbed, etc.

[0177] 350. The first device sends motion data 3 to the second device.

[0178] It should be understood that after the first device sends motion data 3 obtained by integrating motion data 1 and motion data 2 to the second device, the second device can refresh the motion data in the display interface according to the motion data 3 so that the motion data displayed by the first device and the second device are the same.

[0179] 360. The first device refreshes the display interface according to the motion data 3.

[0180] The first device may refresh the display interface according to the fused motion data 3 so that the motion data displayed in the display interface is updated in real time.

[0181] It is understandable that after receiving the motion data 3, the second device also needs to refresh the display interface so that the motion data displayed by the first device and the second device are the same.

[0182] In the embodiment of the present application, the specific execution order of the above steps 310 to 360 is not limited. In other examples, steps 350 and 360 can also be executed simultaneously.

[0183] In other examples, when the first device determines that the change in heat is greater than a threshold, or when the first device determines that the change in distance is greater than a threshold, or when the first device determines that the number of activity hours has changed, motion data can also be fused and the fused motion data 3 can be sent to the second device.

[0184] For example, when the change in calorie value is greater than 100 calories, or when the change in distance is greater than 1 kilometer, the first device can fuse the motion data and send the fused motion data 3 to the second device.

[0185] Based on the embodiment of the present application, when the first device detects that the change in motion data is greater than a preset value, motion data synchronization can be triggered, so that the first device merges the motion data 1 of the first device and the motion data 2 of the second device to obtain motion data 3, and sends the motion data 3 to the second device and refreshes the display interface so that the motion data displayed by the first device and the second device are the same.

[0186] Figure 5 is a schematic flow chart of another method for synchronizing motion data provided by an embodiment of the present application. As shown in Figure 5, the method 400 may include steps 410 to 460. The method 400 may be applied to the second device.

[0187] 410. The second device obtains the number of steps of the second device.

[0188] For example, the second device may include a motion sensor, which can obtain the number of steps of the user in real time.

[0189] 420. The second device determines whether the user type belongs to the first type.

[0190] It should be understood that the way the second device determines whether the user type belongs to the first type is the same as the way the first device determines whether the user type belongs to the first type in the previous text. For details, please refer to the description in the previous text. For the sake of brevity, it will not be repeated here.

[0191] 430. When the second device determines that the user type belongs to the first type, determine whether the change value of the step count is greater than a first preset value.

[0192] When the second device determines that the change in the number of steps is greater than the first preset value, step 440 may be executed.

[0193] 431. When the second device determines that the user type does not belong to the first type, determine whether the change value of the step count is greater than a second preset value.

[0194] The first preset value and the second preset value can be referred to the description above.

[0195] When the second device determines that the change in the number of steps is greater than the second preset value, step 440 may be executed.

[0196] 440. The second device sends motion data 2 to the first device.

[0197] For example, the second device can send motion data 2 to the first device via Bluetooth, Wi-Fi, or other methods. After receiving motion data 2, the first device can fuse motion data 1 and motion data 2 using a fusion rule to obtain motion data 3. The first device can then send motion data 3 to the second device. The fusion rule can be described above.

[0198] 450. The second device receives the motion data 3 sent by the first device.

[0199] It should be understood that the motion data 3 is obtained by integrating the motion data 1 of the first device and the motion data 2 of the second device.

[0200] When the first device combines motion data 1 and motion data 2 to obtain motion data 3, it can generate daily statistics and refresh the today's achievement badge. For example, when motion data 3 is greater than or equal to the target motion data, the today's goal achievement can be achieved.

[0201] The data type of the motion data 3 may include detailed motion data for the current preset duration, such as steps, calories, medium to high intensity, and activity hours within 30 or 60 minutes, and may also include summary motion data for the day, such as total steps, calories, medium to high intensity, activity hours, distance, height climbed, etc. This facilitates the second device to perform data statistics for the preset duration and overall data statistics after data fusion, and to draw a bar chart for the user's reference.

[0202] 460 , the second device refreshes the display interface according to the motion data 3 .

[0203] After receiving the motion data 3 , the second device may refresh the display interface according to the motion data 3 , so that the motion data displayed by the second device is updated in real time.

[0204] It is understandable that the first device may also refresh the display interface according to the fused motion data 3 so that the motion data displayed by the first device and the second device are the same.

[0205] In other examples, when the second device determines that the change in heat is greater than a threshold, or when the second device determines that the distance is greater than a threshold, or when the second device determines that the number of activity hours has changed, the motion data 2 can also be sent to the first device, and the first device will fuse the motion data and send the fused motion data 3 to the second device.

[0206] According to the embodiment of the present application, when the second device determines that the change in the detected motion data is greater than a preset value, it can trigger motion data synchronization and send motion data 2 to the first device, so that the first device merges the motion data 1 of the first device and the motion data 2 of the second device to obtain motion data 3. The first device can then send this motion data 3 to the second device, so that the motion data displayed by the first and second devices are the same.

[0207] The previous article, combined with Figures 4-5, introduced the technical solution for triggering motion data synchronization when the first device or the second device detects that the change in motion data is greater than a threshold. The following Figures 6-7 will introduce the technical solution for triggering motion data synchronization in other scenarios.

[0208] FIG6 is a schematic interaction diagram of another method for synchronizing motion data provided by an embodiment of the present application. As shown in FIG6 , the method 500 may include steps 510 to 550 .

[0209] 510. When the first device detects the first operation, it sends a motion data synchronization request message to the second device. Correspondingly, the second device receives the motion data synchronization request message.

[0210] For example, the first operation may be an operation of the user opening the homepage of the sports health app on the first device, or the first operation may be an operation of the user pulling down to refresh the homepage of the sports health app.

[0211] 520. The second device sends motion data 2 to the first device according to the motion data synchronization request message.

[0212] After receiving the motion data synchronization request message, the second device may send the collected motion data 2 to the first device.

[0213] 530 , the first device fuses motion data 1 and motion data 2 to obtain motion data 3.

[0214] It should be understood that the specific manner in which the first device fuses motion data 1 and motion data 2 can be found in the above description.

[0215] 540. The first device sends motion data 3 to the second device.

[0216] Exemplarily, the motion data 3 may include detailed motion data of a preset duration (e.g., 30 minutes or 60 minutes) for the current day and the previous day, as well as summary motion data for the past 7 days. For example, when the preset duration is 30 minutes, the motion data 3 may include a total of 48 30-minute level detailed motion data for the current day and the previous day, and summary motion data for each of the past 7 days.

[0217] It is understood that when the Sports Health App is in the foreground, the interval between the first device sending two pieces of exercise data 3 to the second device must be no less than 1 or 2 seconds. If the interval between the two synchronization triggers is less than 1 or 2 seconds, the first device may only perform the fusion without sending the data to the second device, and then send the data to the second device during the next synchronization. Alternatively, when the first device performs data fusion, the calorie difference between the current exercise data and the previous exercise data must be greater than 1000 or 500 calories.

[0218] When the sports health app is in the background, the time interval between the first device sending two sports data 3 to the second device is not less than 1 minute or 2 minutes. If the interval between the two triggered synchronizations is less than 1 minute or 2 minutes, the first device can only perform fusion and not send it to the second device. The data will be sent to the second device during the next synchronization, thereby avoiding the first device from frequently sending sports data to the second device, thereby reducing the power consumption of the electronic device.

[0219] 550 , the first device and the second device refresh the display interface according to the motion data 3 .

[0220] It is understandable that the first device and the second device can refresh their respective display interfaces according to the motion data 3, so that the motion data displayed by the first device and the second device are the same.

[0221] In the embodiment of the present application, the specific execution order of steps 510 to 550 is not limited. In other examples, after obtaining the motion data 3, the first device may refresh its own display interface while sending the motion data 3 to the second device.

[0222] Based on the embodiment of the present application, when the user performs the first operation on the first device, motion data synchronization can be triggered. After receiving the motion data 2 from the second device, the first device can fuse the motion data 1 and the motion data 2 to obtain motion data 3, and send the motion data 3 to the second device. The first device and the second device each refresh the display interface so that the motion data displayed by the first device and the second device are the same.

[0223] FIG7 is a schematic interaction diagram of another method for synchronizing motion data provided by an embodiment of the present application. As shown in FIG7 , the method 600 may include steps 610 to 640 .

[0224] 610. When the second device detects that the second device and the first device are changed from a wireless disconnected state to a wireless connected state, the second device sends motion data 2 to the first device.

[0225] For example, when the first device and the second device are not connected, the first device and the second device can collect the user's motion data separately. When the second device detects that the first device is in a wireless connection state, the second device can send the motion data 2 collected by itself to the first device wirelessly.

[0226] 620 , the first device fuses motion data 1 and motion data 2 to obtain motion data 3.

[0227] It should be understood that the manner in which the first device fuses motion data 1 and motion data 2 can be found in the description above, and for the sake of brevity, it will not be repeated here.

[0228] 630. The first device sends motion data 3 to the second device.

[0229] Exemplarily, the motion data 3 may include detailed motion data of a preset duration (e.g., 30 minutes or 60 minutes) for the current day and the previous day, as well as summary motion data for the past 7 days. For example, when the preset duration is 30 minutes, the motion data 3 may include a total of 48 30-minute level detailed motion data for the current day and the previous day, and summary motion data for each of the past 7 days.

[0230] It is understandable that the time interval between the first device sending the motion data 3 to the second device may be less than a preset time period, for example, the preset time period may be 30 minutes. This can avoid frequent triggering of motion data synchronization between the first device and the second device when they are repeatedly disconnected and reconnected due to distance.

[0231] 640 , the first device and the second device refresh the display interface according to the motion data 3 .

[0232] It is understandable that the first device and the second device can refresh their respective display interfaces according to the motion data 3, so that the motion data displayed by the first device and the second device are the same.

[0233] In the embodiment of the present application, the specific execution order of steps 610 to 640 is not limited. In other examples, after obtaining the motion data 3, the first device may refresh its own display interface while sending the motion data 3 to the second device.

[0234] Based on the embodiment of the present application, when the second device detects that the second device is disconnected and then connected to the first device, motion data synchronization can be triggered. After receiving the motion data 2 of the second device, the first device can fuse the motion data 1 and the motion data 2 to obtain motion data 3, and send the motion data 3 to the second device. The first device and the second device each refresh the display interface so that the motion data displayed by the first device and the second device are the same.

[0235] In some cases, the user can modify target exercise data on the first device or the second device. For example, they can set or modify a daily step target, target exercise duration, target active hours, etc. This technical solution will be described below in conjunction with Figures 8-10.

[0236] FIG8 is a schematic flow chart of a method for synchronizing target motion data provided by an embodiment of the present application. As shown in FIG8 , the method 700 may include steps 710 to 750 .

[0237] 710. The second device detects an operation of modifying target motion data.

[0238] Exemplarily, the user modifies the target motion data in the second device. For example, the user modifies the target number of steps from 5,000 steps to 10,000 steps in the second device.

[0239] Alternatively, the user can modify multiple target exercise data in the second device, for example, modify the target number of steps from 5,000 to 10,000, modify the exercise duration from 20 minutes to 30 minutes, and modify the number of active hours from 10 hours to 12 hours.

[0240] 720. The second device sends the modified target motion data 2 to the first device. Correspondingly, the first device receives the target motion data 2.

[0241] Exemplarily, in the second device, the target motion data modified by the user is target motion data 2, and the second device can send the modified target motion data 2 to the first device.

[0242] 730 , the first device determines whether the timestamp of the target motion data 2 is greater than the timestamp of the stored target motion data 1 .

[0243] It should be understood that the first device stores target motion data 1. When the first device receives target motion data 2 sent by the second device, it can compare the timestamp of the target motion data 2 with the timestamp of the stored target motion data 1.

[0244] 740 , when it is determined that the timestamp of the target motion data 2 is greater than or equal to the timestamp of the stored target motion data 1 , the first device writes the target motion data 2 into the database as the final target motion data.

[0245] It should be understood that when the timestamp of target motion data 2 is greater than the timestamp of target motion data 1, it means that target motion data 2 is the latest modified, and the first device can use target motion data 2 as the final target motion data of today.

[0246] 741 , when it is determined that the timestamp of the target motion data 2 is less than the timestamp of the stored target motion data 1 , the first device sends the target motion data 1 to the second device.

[0247] 742. The second device refreshes the display interface according to the target motion data 1.

[0248] After receiving the target motion data 1 sent by the first device, the second device can refresh its own display interface according to the target motion data 1 so that when the user views the target motion data, the values ​​displayed on the second device side and the first device side are the same.

[0249] 750. The first device refreshes the display interface according to the target motion data 2.

[0250] The first device can refresh its own display interface according to the latest target motion data 2 so that the displayed target data is updated in real time.

[0251] In this way, after the user modifies the target motion data on the second device, the target motion data on the first device and the second device can be guaranteed to be consistent, and the target motion data most recently modified on the day shall prevail, thereby ensuring the real-time nature of the target data.

[0252] In some examples, after a user modifies the target exercise data for the day, if the exercise data for the day has reached the set target value, an achievement medal can be issued to the user.

[0253] The following describes the operation of the user modifying the target motion data on the first device with reference to FIG. 9 .

[0254] FIG9 is a schematic flow chart of another method for synchronizing target motion data provided by an embodiment of the present application. As shown in FIG9 , the method 800 may include steps 810 to 850 .

[0255] 810. The first device detects an operation of modifying target motion data.

[0256] Exemplarily, the user modifies the target motion data in the first device. For example, the user modifies the target number of steps from 5,000 steps to 10,000 steps in the first device.

[0257] Alternatively, the user can modify multiple target exercise data in the first device, for example, modify the target number of steps from 5,000 to 10,000, modify the exercise duration from 20 minutes to 30 minutes, and modify the number of active hours from 10 hours to 12 hours.

[0258] 820 , the first device determines whether the timestamp of the modified target motion data 2 is greater than the timestamp of the stored target motion data 1 .

[0259] It should be understood that the first device stores target motion data 1. When the first device detects that the user modifies the target motion data, the modified target motion data may be target motion data 2. At this time, the first device may compare the timestamp of target motion data 2 with the timestamp of the stored target motion data 1.

[0260] 830 , when it is determined that the timestamp of the target motion data 2 is greater than the timestamp of the target motion data 1 , the first device writes the target motion data 2 into the database as the final target motion data.

[0261] It should be understood that when the timestamp of target motion data 2 is greater than the timestamp of target motion data 1, it means that target motion data 2 is the latest modified, and the first device can use target motion data 2 as the final target motion data of today.

[0262] 840. The first device sends target motion data 2 to the second device.

[0263] The first device sends the target motion data 2 to the second device, so that the target motion data displayed on the first device and the second device are consistent.

[0264] It should be understood that after receiving the target motion data 2 , the second device can refresh the display interface according to the target motion data 2 .

[0265] 850. The first device refreshes the display interface according to the target motion data 2.

[0266] The first device may refresh the display interface according to the latest target motion data 2 so that the target motion data displayed in the display interface is the latest.

[0267] In this way, the target motion data displayed in the first device and the second device are the same.

[0268] Based on the embodiment of the present application, after the user modifies the target motion data on the first device, it can be ensured that the target motion data on the first device and the second device are consistent, and the target motion data most recently modified on the day shall prevail, thereby ensuring the real-time nature of the target data.

[0269] FIG10 is a schematic flow chart of another method for synchronizing historical target data provided by an embodiment of the present application. As shown in FIG10 , the method 900 may include steps 910 to 950 .

[0270] 910 , the first electronic device receives historical target motion data 2 from the second device.

[0271] The historical target motion data 2 can be understood as target motion data with a timestamp before today, for example, target motion data with a timestamp on or before yesterday in the second device.

[0272] 920 , the first device determines the minimum value of the historical target data of the day between the historical target motion data 2 and the historical target motion data 1 .

[0273] For example, the historical target motion data 2 may include target motion data for the 7 days before today (excluding today). In this case, each day of the 7 days of target motion data may correspond to one target motion data, and the target motion data for the 7 days may be the same or different. Similarly, the first device may compare the target motion data for the 7 days with the corresponding daily target motion data in the historical target motion data 1 and determine the minimum target data for each day.

[0274] For example, for May 23, 2023, the target number of steps in the historical target motion data 2 in the second device is 5,000 steps, and the target number of steps in the historical target motion data 1 stored in the first device is 6,000 steps. Then the target motion data on May 23, 2023 shall be 5,000 steps.

[0275] In this way, the integration of historical target motion data by the first device will not affect the target achievement medals that have been achieved in the user's historical data.

[0276] 930 , the first device determines whether the minimum value of the historical target motion data for the day belongs to historical target motion data 1 .

[0277] 940. When the first device determines that the minimum value of the historical daily target motion data does not belong to historical target motion data 1, the minimum value of the historical daily target motion data is written into the database of the first device as the final historical daily target motion data.

[0278] When the first device determines that the minimum value of the historical daily target motion data does not belong to the historical target motion data 1, it means that the minimum value of the historical daily target motion data comes from the second device. At this time, the first device can write the minimum value into the database of the first device to update the historical daily target motion data, so that the historical target motion data in the first device and the second device are consistent.

[0279] 941. When the first device determines that the minimum value of the historical target motion data of the day belongs to historical target motion data 1, the first device sends the minimum value of the historical target motion data of the day to the second device.

[0280] When the first device determines that the minimum value of the historical target motion data for the day belongs to historical target motion data 1, it means that the minimum value of the historical target motion data for the day is the data stored in the first device. In this case, the first device can send the minimum value to the second device to ensure that the historical target motion data in the first device and the second device are consistent.

[0281] 942. The second device refreshes the display interface according to the minimum value of the historical target motion data for the day.

[0282] It should be understood that when the second device receives the minimum value of the historical target motion data for the day sent by the first device, it can refresh the display interface so that when the user views the historical data, the target motion data displayed in the display interface is the same.

[0283] 950. The first device refreshes the display interface according to the minimum value of the historical target motion data for the day.

[0284] In this way, the historical target motion data displayed in the first device and the second device can be kept consistent, and the daily achievement medals achieved by the user can be kept consistent.

[0285] It should be understood that the various embodiments described above can be combined with each other or partially combined to form new embodiments, and such technical solutions should not be considered to exceed the scope of protection of this application.

[0286] Figure 11 is a schematic diagram of a display interface after synchronization of exercise data between a first device and a second device. As shown in Figure 11 , device 200a may include a display interface 210 , which may be a display interface for activity records of a sports health app.

[0287] The display interface 210 may include a date display and a vitality three-ring achievement bar 211, a function button bar 212, a vitality three-ring 213, today's exercise data and target exercise data 214, a display card 215 for today's steps and distance, a display card 216 for exercise reminders, and a display card 217 for calories.

[0288] The today's exercise data and target exercise data 214 may include the user's calorie today's data and target data "55 / 230 kcal", exercise time today's data and target data "5 / 20 minutes", and activity hours "5 / 12 hours".

[0289] 11 , the device 200b may include a display interface 220. The display interface 220 may include today's exercise data and target exercise data.

[0290] Among them, the user's calorie data today and target data are "55 / 230 kcal", exercise time data today and target data are "5 / 20 minutes", and activity hours are "5 / 12 hours".

[0291] From the above description, it can be seen that using the various technical solutions described in the previous text of this application, after device 200a and device 200b synchronize their motion data, the motion data and today's target motion data are consistent in the display interface of device 200a and the display interface of device 200b.

[0292] FIG12 is a schematic flow chart of a motion data synchronization method provided in an embodiment of the present application. As shown in FIG12 , the method 1200 may include steps 1210 to 1230 .

[0293] 1210. The first electronic device determines first motion data.

[0294] Exemplarily, the first motion data may include steps, calories, distance, activity hours, climbing data, medium and high intensity, heart rate, etc.

[0295] 1220. When the first preset condition is met, the first electronic device fuses the first motion data and the second motion data according to a fusion rule to obtain third motion data, where the second motion data is motion data determined by the second electronic device.

[0296] The first preset condition may be that the change in the first motion data is greater than a preset value; or, the first preset condition may be that the second motion data sent by the second electronic device is received; or, the first preset condition may also be that the user opens the homepage of the target application or the user pulls down to refresh the homepage of the target application, etc.

[0297] The fusion rule can be that for electronic devices that support viewing detailed motion data, for the same minute of motion data, if there is both motion data from a first electronic device and a second electronic device, the motion data from the second electronic device will prevail; if there is only data from one electronic device, the motion data from that electronic device will prevail. For electronic devices that do not support viewing detailed motion data, the larger data will be used as the third motion data.

[0298] The second motion data and the third motion data may also include steps, calories, distance, activity hours, climbing height data, medium to high intensity, heart rate, etc.

[0299] Exemplarily, the first electronic device may be the first device mentioned above, and the second electronic device may be the second device mentioned above.

[0300] 1230. The first electronic device sends third motion data to the second electronic device.

[0301] In some examples, method 1200 may also include step 1240 and step 1250 .

[0302] 1240. The first electronic device refreshes a display interface according to the third motion data.

[0303] 1250. The second electronic device refreshes a display interface according to the third motion data.

[0304] In this way, the motion data in the first electronic device and the second electronic device can be kept consistent, so that the motion data that a user can see on the first electronic device and the second electronic device are the same, which helps to improve the user experience.

[0305] In some embodiments, the first electronic device fuses the first motion data and the second motion data according to a fusion rule to obtain third motion data, including: if the first electronic device supports viewing detailed motion data, for the target minute, there are both first motion data and second motion data, and the data corresponding to the target minute in the second motion data is used as the data of the target minute in the third motion data; for the target minute, if only the first motion data or the second motion data exists, the data corresponding to the target minute in the first motion data or the second motion data is used as the data of the target minute in the third motion data; or, if the first electronic device does not support viewing detailed motion data, the larger of the first motion data and the second motion data is used as the third motion data.

[0306] Exemplarily, the target minute here may refer to a certain minute, for example, the target minute may be 9:01.

[0307] In an embodiment of the present application, for electronic devices that support viewing detailed motion data, for the same minute of motion data, if there is both motion data from a first electronic device and motion data from a second electronic device, the motion data from the second electronic device shall prevail; if there is data from only one electronic device, the motion data from that electronic device shall prevail. For electronic devices that do not support viewing detailed motion data, the larger data shall be used as the third motion data. In this technical solution, the first electronic device can adopt different motion data fusion methods for different situations, so that the fused data can be more accurate and better reflect the user's actual motion situation.

[0308] In some embodiments, if the second motion data includes motion data of multiple second electronic devices, the first electronic device fuses the first motion data and the second motion data according to the fusion rule to obtain third motion data, including: for the target minute, both the first motion data and the second motion data exist, and the motion data of the second electronic device with the largest media access control MAC address is used as the data of the target minute in the third motion data.

[0309] In an embodiment of the present application, if there is motion data of multiple second electronic devices, when the first electronic device performs data fusion, for the same minute, the motion data of the second electronic device with the largest MAC address shall prevail.

[0310] Since the MAC address of a newly produced electronic device is larger, the motion sensor it uses may also be more advanced, so that the motion data obtained by the first electronic device during motion data fusion may be more accurate.

[0311] In some embodiments, the first preset condition is that the first electronic device determines that a change in the first motion data is greater than a preset value. Before the first electronic device fuses the first motion data and the second motion data according to the fusion rule, the method 1200 further includes:

[0312] Determine user type based on user portraits;

[0313] When it is determined that the user type is the first type, determining the preset value to be the first preset value;

[0314] When it is determined that the user type is not the first type, the preset value is determined to be a second preset value; wherein the first preset value is smaller than the second preset value.

[0315] For example, the first type may be the heavy user mentioned above. For example, the first motion data includes the number of steps, the first preset value may be 200, 100, etc., and the second preset value may be 500, 600, etc.

[0316] In the embodiment of the present application, different user types may correspond to different preset values, so that the change value of the motion data can be dynamically adjusted, thereby improving the flexibility of motion data synchronization.

[0317] In some embodiments, the first preset condition is that the first electronic device detects an operation by a user opening a homepage of a target application or a pull-down refresh operation by a user on the homepage of the target application. Before the first electronic device fuses the first motion data and the second motion data according to the fusion rule, the method 1200 may further include:

[0318] Sending a motion data synchronization request to the second electronic device;

[0319] Receive second motion data sent by a second electronic device.

[0320] In an embodiment of the present application, when the user opens the homepage of the target application or pulls down to refresh the homepage of the target application, motion data synchronization can be triggered, so that the motion data presented to the user by the first electronic device can be more accurate.

[0321] In some embodiments, the third motion data includes detailed motion data within a preset time period and summary motion data for the day.

[0322] Exemplarily, the preset duration may be 30 minutes or 60 minutes, etc.

[0323] In the embodiment of the present application, the third motion data may include data of multiple data types, so that the motion data can be presented to the user from multiple angles.

[0324] In some embodiments, the third motion data includes detailed motion data within each preset time period of the first preset days and summary motion data of each day of the second preset days.

[0325] Exemplarily, the first preset number of days may be two days, such as today and yesterday, and the second preset number of days may be 7 days or 5 days, etc.

[0326] In the embodiment of the present application, the third motion data may include data of multiple data types, so that the motion data can be presented to the user from multiple angles.

[0327] In some embodiments, the method 1200 may further include:

[0328] In response to an operation to modify the target motion data, determining whether a timestamp of the modified second target motion data is greater than a timestamp of the stored first target motion data;

[0329] If it is determined that the timestamp of the second target motion data is greater than the timestamp of the first target motion data, sending the second target motion data to the second electronic device;

[0330] Refresh the display interface of the first electronic device according to the second target motion data.

[0331] For example, the user modifies the step goal from 5,000 steps to 6,000 steps.

[0332] Based on the embodiments of the present application, when a user modifies target motion data on a first electronic device, the modified target motion data can be automatically synchronized to a second electronic device, so that the target motion data displayed on multiple electronic devices of the user remains consistent.

[0333] In some embodiments, the method 1200 may further include:

[0334] receiving second target motion data sent by a second electronic device;

[0335] If it is determined that the timestamp of the second target motion data is less than or equal to the timestamp of the stored first target motion data, sending the first target motion data to the second electronic device;

[0336] If it is determined that the timestamp of the second target motion data is greater than the timestamp of the first target motion data, the display interface of the first electronic device is refreshed according to the second target motion data.

[0337] The second target motion data may be target motion data modified by the user on the second electronic device, for example, the target number of steps is 6000. The first target motion data may be stored in the first electronic device, for example, the target number of steps is 5000.

[0338] Based on the embodiments of the present application, when a user modifies target motion data on a second electronic device, the modified target motion data can be automatically synchronized to the first electronic device, so that the target motion data displayed on multiple electronic devices of the user remains consistent.

[0339] In some embodiments, the first electronic device stores the first historical target motion data. The method 1200 may further include:

[0340] receiving second historical target motion data sent by a second electronic device;

[0341] Determining whether the historical daily minimum target motion data among the first historical target motion data and the second historical target motion data belongs to the first historical target motion data;

[0342] If it is determined that the minimum target motion data belongs to the first historical target motion data, sending the minimum target motion data to the second electronic device;

[0343] If it is determined that the minimum target motion data does not belong to the first historical target motion data, the display interface of the first electronic device is refreshed according to the minimum target motion data.

[0344] Exemplarily, the first historical target motion data may be the historical target motion data 1 mentioned above, and the second historical target motion data may be the historical target motion data 2 mentioned above.

[0345] Based on the embodiment of the present application, the historical target data of the first electronic device and the second electronic device can be kept consistent. In addition, the daily achievement medals achieved by the user can also be kept consistent.

[0346] FIG13 is a schematic flow chart of another motion data synchronization method provided by an embodiment of the present application. As shown in FIG13 , the method 1300 may include steps 1310 to 1340 .

[0347] 1310. The second electronic device determines second motion data.

[0348] 1320. When a second preset condition is met, the second electronic device sends second motion data to the first electronic device.

[0349] Exemplarily, the second preset condition may be that the second electronic device determines that the change in the second motion data is greater than a preset value; or, the second preset condition may also be that the second electronic device detects that the connection state between the first electronic device and the second electronic device changes from disconnected to connected; or, the second preset condition is that the second electronic device receives a motion data synchronization request sent by the first electronic device, etc.

[0350] 1330. The first electronic device fuses the first motion data and the second motion data according to a fusion rule to obtain third motion data.

[0351] For example, the fusion rule can refer to the relevant description in the above text.

[0352] 1340. The first electronic device sends third motion data to the second electronic device.

[0353] In other examples, the method 1300 may further include step 1350 and step 1360 .

[0354] 1350. The first electronic device refreshes a display interface according to the third motion data.

[0355] 1360. The second electronic device refreshes a display interface according to the third motion data.

[0356] In this way, the motion data in the first electronic device and the second electronic device can be kept consistent, so that the motion data that a user can see on the first electronic device and the second electronic device are the same, which helps to improve the user experience.

[0357] In some embodiments, the second preset condition is that the second electronic device determines that a change in the second motion data is greater than a preset value. Before sending the second motion data to the first electronic device, the method 1300 further includes:

[0358] Determine user type based on user portrait;

[0359] When it is determined that the user type is the first type, determining the preset value to be the first preset value;

[0360] When it is determined that the user type is not the first type, the preset value is determined to be a second preset value; wherein the first preset value is smaller than the second preset value.

[0361] In the embodiment of the present application, different user types may correspond to different preset values, so that the change value of the motion data can be dynamically adjusted, thereby improving the flexibility of motion data synchronization.

[0362] In some embodiments, the method 1300 may further include:

[0363] receiving target motion data sent by the first electronic device;

[0364] Refresh the display interface of the second electronic device according to the target motion data.

[0365] Exemplarily, the target motion data may be the target motion data 1 mentioned above.

[0366] This technical solution can ensure that the target motion data displayed on the first electronic device and the second electronic device are consistent.

[0367] In some embodiments, the method 1300 may further include:

[0368] receiving historical target motion data sent by a first electronic device;

[0369] Refresh the display interface of the second electronic device according to the historical target motion data.

[0370] Exemplarily, the historical target motion data may be the historical target motion data 1 mentioned above.

[0371] Based on the embodiments of the present application, the historical target data of the first electronic device and the second electronic device can be kept consistent.

[0372] Figure 14 is a schematic block diagram of an electronic device provided in an embodiment of the present application. As shown in Figure 14, the electronic device 1400 may include one or more processors 1410; one or more memories 1420; the one or more memories 1420 storing one or more computer programs, each of which includes instructions that, when executed by the one or more processors 1410, enable the motion data synchronization method described in any of the possible implementations described above to be executed.

[0373] Exemplarily, the electronic device 1000 may be the first device or the second device mentioned above.

[0374] An embodiment of the present application also provides a chip, which includes a processor and a communication interface, wherein the communication interface is used to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the method for synchronizing motion data as described in any possible implementation method described above is executed.

[0375] This embodiment also provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method for synchronizing motion data in the above-mentioned embodiment.

[0376] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the method for synchronizing motion data in the above-mentioned embodiment.

[0377] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the motion data synchronization method in the above-mentioned method embodiments.

[0378] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0379] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0380] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0381] In the 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 schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0382] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0383] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0384] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0385] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A method for synchronizing motion data, characterized in that: The method is applied to a first electronic device, and the method includes: determining first motion data; When a first preset condition is met, the first electronic device fuses the first motion data and the second motion data according to a fusion rule to obtain third motion data, where the second motion data is motion data determined by the second electronic device; The third motion data is sent to the second electronic device.

2. The method according to claim 1, characterized in that The first electronic device fuses the first motion data and the second motion data according to a fusion rule to obtain third motion data, including: If the first electronic device supports viewing detailed sports data, and for a target minute, both the first sports data and the second sports data exist, the data corresponding to the target minute in the second sports data is used as the data of the target minute in the third sports data; For the target minute, if only the first exercise data or the second exercise data exists, the data corresponding to the target minute in the first exercise data or the second exercise data is used as the data of the target minute in the third exercise data; or, If the first electronic device does not support viewing detailed motion data, the larger one of the first motion data and the second motion data is used as the third motion data.

3. The method according to claim 1, characterized in that If the second motion data includes motion data of a plurality of second electronic devices, the first electronic device fuses the first motion data and the second motion data according to a fusion rule to obtain third motion data, including: For a target minute, both the first motion data and the second motion data exist, and the motion data of the second electronic device with the largest media access control MAC address is used as the data of the target minute in the third motion data.

4. The method according to any one of claims 1 to 3, characterized in that The first preset condition is that the first electronic device determines that the change amount of the first motion data is greater than a preset value, and before the first electronic device fuses the first motion data and the second motion data according to the fusion rule, the method further includes: Determine user type based on user portrait; When it is determined that the user type is the first type, determining the preset value to be a first preset value; When it is determined that the user type is not the first type, the preset value is determined to be a second preset value; wherein the first preset value is smaller than the second preset value.

5. The method according to any one of claims 1 to 3, characterized in that: The first preset condition is that the first electronic device receives the second motion data sent by the second electronic device.

6. The method according to any one of claims 1 to 3, characterized in that The first preset condition is that the first electronic device detects an operation of a user opening a homepage of a target application or a user pulling down to refresh the homepage of a target application, and before the first electronic device fuses the first motion data and the second motion data according to the fusion rule, the method further includes: Sending a motion data synchronization request to the second electronic device; Receive the second motion data sent by the second electronic device.

7. The method according to any one of claims 1 to 5, characterized in that The third motion data includes detailed motion data within a preset time period and summary motion data for the day.

8. The method according to claim 6, characterized in that The third motion data includes detailed motion data within each preset time period of the first preset days and summary motion data of each day of the second preset days.

9. The method according to any one of claims 1 to 8, characterized in that The method further comprises: Refresh a display interface of the first electronic device according to the third motion data.

10. The method according to any one of claims 1 to 9, characterized in that The method further comprises: In response to the operation of modifying the target motion data, determining whether the timestamp of the modified second target motion data is greater than the timestamp of the stored first target motion data; If it is determined that the timestamp of the second target motion data is greater than the timestamp of the first target motion data, sending the second target motion data to the second electronic device; Refresh the display interface of the first electronic device according to the second target motion data.

11. The method according to any one of claims 1 to 9, characterized in that The method further comprises: receiving second target motion data sent by the second electronic device; If it is determined that the timestamp of the second target motion data is less than or equal to the timestamp of the stored first target motion data, sending the first target motion data to the second electronic device; If it is determined that the timestamp of the second target motion data is greater than the timestamp of the first target motion data, the display interface of the first electronic device is refreshed according to the second target motion data.

12. The method according to any one of claims 1 to 11, characterized in that The first electronic device stores first historical target motion data, and the method further includes: receiving second historical target motion data sent by the second electronic device; Determine whether the historical daily minimum target motion data in the first historical target motion data and the second historical target motion data belongs to the first historical target motion data; If it is determined that the minimum target motion data belongs to the first historical target motion data, sending the minimum target motion data to the second electronic device; If it is determined that the minimum target motion data does not belong to the first historical target motion data, the display interface of the first electronic device is refreshed according to the minimum target motion data.

13. A method for synchronizing motion data, characterized in that: The method is applied to a second electronic device, and the method includes: determining second motion data; When a second preset condition is met, sending the second motion data to the first electronic device; The third motion data sent by the first electronic device is received, where the third motion data is motion data obtained by the first electronic device fusing the first motion data and the second motion data according to a fusion rule.

14. The method according to claim 13, characterized in that The second preset condition is that the second electronic device determines that the change amount of the second motion data is greater than a preset value, and before sending the second motion data to the first electronic device, the method further includes: Determine user type based on user portrait; When it is determined that the user type is the first type, determining the preset value to be a first preset value; When it is determined that the user type is not the first type, the preset value is determined to be a second preset value; wherein the first preset value is smaller than the second preset value.

15. The method according to claim 13, characterized in that The second preset condition is that the second electronic device detects that the second electronic device and the first electronic device change from a wireless disconnected state to a wireless connected state; or, the second preset condition is that the second electronic device receives a motion data synchronization request sent by the first electronic device.

16. The method according to any one of claims 13 to 15, characterized in that The method further comprises: Refresh the display interface of the second electronic device according to the third motion data.

17. The method according to any one of claims 13 to 16, characterized in that The method further comprises: receiving target motion data sent by the first electronic device; Refresh the display interface of the second electronic device according to the target motion data.

18. The method according to any one of claims 13 to 17, characterized in that: The method further comprises: Receiving historical target motion data sent by the first electronic device; Refresh the display interface of the second electronic device according to the historical target motion data.

19. An electronic device, characterized in that: include: one or more processors; One or more memories; the one or more memories store one or more computer programs, the one or more computer programs include instructions, when the instructions are executed by one or more processors, the method for synchronizing motion data as described in any one of claims 1-18 is executed.

20. A chip, characterized in that: The chip includes a processor and a communication interface, wherein the communication interface is used to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the method for synchronizing motion data as described in any one of claims 1 to 18 is executed.

21. A readable storage medium, characterized in that: The readable storage medium stores instructions, and when the instructions are executed on an electronic device, the method for synchronizing motion data as described in any one of claims 1 to 18 is executed.