Motion data synchronization method and electronic device
By synchronizing motion data between electronic devices, the problem of inconsistency in data such as mobile phones and sports watches is solved. Dynamically adjusted data fusion rules and user type preset values are adopted to achieve synchronization consistency of motion data between multiple devices, improving the User experience and data accuracy.
Patent Information
- Application Number
- CN202310621858.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-18
- Filing Date
- 2023-05-29
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2043-05-29
AI Technical Summary
When currently users' mobile phones and sports watches collect sports data, the displayed sports data is inconsistent due to data synchronization problems, which affects the user experience.
By fusing the motion data of itself and the second electronic device when the preset conditions are met, the first electronic device generates the third motion data, and synchronizes it to the other device, ensuring that the motion data in the two devices are consistent. The specific methods include dynamically adjusting the preset value according to the user type and the functions supported by the device, and adopting different data fusion rules, such as MAC address priority, data size priority, etc., and timely synchronizing the data to reflect the user's real movement.
The synchronous consistency of motion data in multiple electronic devices is achieved, which improves the user experience and ensures that the motion data seen by users on different devices is consistent, thereby enhancing the accuracy and reliability of the data.
Smart Images

Figure CN118260360B_ABST
Abstract
Description
[0001] This application claims the priority of 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”, the entire contents of which are incorporated by reference in this application. Technical Field
[0002] Embodiments of the present application relate to the field of electronic technology, and more specifically, to a method and electronic device for synchronizing motion data. Background Art
[0003] Currently, users are paying more and more attention to their daily exercise data. A variety of electronic devices can be used to collect the user's exercise data, for example, the user's mobile phone and sports watch can both collect the user's exercise data. However, there are many reasons that may cause the mobile phone and sports watch to have different exercise data about the same user. Summary of the invention
[0004] The embodiment of the present application provides a method and electronic device for synchronizing sports data. The technical solution can make the sports data displayed by the first electronic device and the second electronic device the same.
[0005] In a first aspect, a method for synchronizing motion data is provided, which 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 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.
[0006] 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 the third motion data, and sends the third motion data to the second electronic device.
[0007] This technical solution can make 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.
[0008] In combination with the first aspect, in an implementation method 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 a 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 a 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.
[0009] 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 of a first electronic device and motion data of a second electronic device, the motion data of the second electronic device shall prevail; if there is data from only one electronic device, the motion data of the 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.
[0010] In combination with the first aspect, in an implementation method 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.
[0011] In the embodiment of the present application, if there are 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.
[0012] Since the MAC address of the 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 when the motion data is fused can be more accurate.
[0013] 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, and before the first electronic device fuses the first motion data and the second motion data according to a fusion rule, the method also includes: determining the user type according to 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.
[0014] 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.
[0015] 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.
[0016] In the 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.
[0017] In combination with the first aspect, in an implementation of the first aspect, the first preset condition is that the first electronic device detects an operation of the user opening the homepage of the target application or a user 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 a 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.
[0018] In an embodiment of the present application, when a user opens the homepage of a target application or pulls down to refresh the homepage of a 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.
[0019] In combination with the first aspect, in an implementation manner of the first aspect, the third motion data includes detailed motion data within a preset time period and summary motion data for the day.
[0020] 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.
[0021] 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.
[0022] 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.
[0023] 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.
[0024] This technical solution can ensure that the motion data displayed in the display interface of the first electronic device and the second electronic device are consistent.
[0025] In combination with the first aspect, in an implementation of the first aspect, the method also 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.
[0026] 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 remain consistent.
[0027] 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.
[0028] 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 remain consistent.
[0029] 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 of 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.
[0030] 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.
[0031] In a second aspect, a method for synchronizing motion data is provided, which is applied to a second electronic device, and the method 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.
[0032] 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.
[0033] This technical solution can make 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.
[0034] 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.
[0035] 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.
[0036] 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 change 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.
[0037] 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.
[0038] In the embodiment of the present application, the motion data displayed in the display interface of the first electronic device and the second electronic device can be kept consistent.
[0039] 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.
[0040] This technical solution can ensure that the target motion data displayed in the first electronic device and the second electronic device are consistent.
[0041] 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.
[0042] 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.
[0043] 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 the 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.
[0044] 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.
[0045] In a fifth aspect, a device is provided, comprising a module for implementing the method for motion data synchronization as described in the first aspect, or the second aspect and any possible implementation manner thereof.
[0046] In a sixth aspect, a chip is provided, comprising 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.
[0047] In the seventh aspect, a chip is provided, comprising 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.
[0048] 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.
[0049] 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.
[0050] In a tenth aspect, a computer program product is provided, the computer program product comprising 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 first aspect and any possible implementation thereof is executed.
[0051] In an eleventh aspect, a computer program product is provided, the computer program product comprising 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
[0052] Figure 1 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0053] Figure 2 It is a schematic diagram of the software structure of the electronic device provided in the embodiment of the present application.
[0054] Figure 3 It 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.
[0055] Figure 4 It is a schematic flowchart of a method for synchronizing motion data provided in an embodiment of the present application.
[0056] Figure 5 It is a schematic flowchart of another method for synchronizing motion data provided in an embodiment of the present application.
[0057] Figure 6 It is a schematic interactive diagram of another method for synchronizing motion data provided in an embodiment of the present application.
[0058] Figure 7 It is a schematic interactive diagram of another method for synchronizing motion data provided in an embodiment of the present application.
[0059] Figure 8 It is a schematic flowchart of a method for synchronizing target motion data provided in an embodiment of the present application.
[0060] Fig. 9 It is a schematic flowchart of another method for synchronizing target motion data provided in an embodiment of the present application.
[0061] Fig.10 It is a schematic flowchart of another method for synchronizing historical target data provided in an embodiment of the present application.
[0062] Fig.11 It is a schematic diagram of a display interface after the motion data of the first device and the second device are synchronized.
[0063] Fig.12 It is a schematic flowchart of a method for synchronizing motion data provided in an embodiment of the present application.
[0064] Fig.13 It is a schematic flowchart of another method for synchronizing motion data provided in an embodiment of the present application.
[0065] Fig.14 It is a schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0066] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0067] The method for dynamically connecting devices in the embodiments of the present application can be applied to electronic devices such as smart phones, 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.
[0068] Among them, wearable devices may include sports watches, sports bracelets, etc.
[0069] Figure 1 1 shows a schematic diagram of the structure of the 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 screen 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.
[0070] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0071] 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 processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0072] 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.
[0073] The processor 110 may also be provided with a memory for storing instructions and data.
[0074] In some embodiments, the processor 110 may include one or more interfaces. The interface 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, etc.
[0075] The charging management module 140 is used to receive charging input from a charger.
[0076] The power management module 141 is used to connect the battery 142 , the charging management module 140 and the processor 110 .
[0077] 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.
[0078] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G etc. applied on the electronic device 100 .
[0079] The modulation and demodulation processor may include a modulator and a demodulator, wherein the modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal, and the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
[0080] The wireless communication module 160 can provide wireless communication solutions for application in 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.
[0081] 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.
[0082] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0083] 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.
[0084] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0085] The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture still images or videos.
[0086] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals.
[0087] The video codec is used to compress or decompress digital video. The electronic device 100 may support one or more video codecs.
[0088] 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 .
[0089] The internal memory 121 may be used to store computer executable program codes, wherein the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121 .
[0090] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0091] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
[0092] The speaker 170A, also called a "horn", is used to convert audio electrical signals into sound signals.
[0093] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals.
[0094] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals.
[0095] The earphone jack 170D is used to connect a wired earphone.
[0096] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194 .
[0097] The gyro sensor 180B may be used to determine the motion posture of the electronic device 100 .
[0098] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0099] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes).
[0100] The distance sensor 180F is used to measure the distance.
[0101] The fingerprint sensor 180H is used to collect fingerprints.
[0102] The touch sensor 180K is also called a “touch panel.” The touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen.”
[0103] Bone conduction sensor 180M can obtain vibration signals.
[0104] Buttons 190 include a power button, a volume button, and the like.
[0105] Motor 191 can generate vibration prompts.
[0106] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0107] The SIM card interface 195 is used to connect a SIM card.
[0108] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes an operating system of a layered architecture as an example to exemplify the software structure of the electronic device 100.
[0109] Figure 2 1 is a software structure diagram of the electronic device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the system library, and the kernel layer. The application layer can include a series of application packages.
[0110] like Figure 2 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, wallet, etc.
[0111] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0112] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0113] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0114] 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.
[0115] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0116] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0117] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0118] The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and disappear automatically after a short stay without user interaction.
[0119] The core library consists of two parts: one part is the function that the Java language needs to call, and the other part is the core library.
[0120] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0121] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0122] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0123] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0124] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0125] A 2D graphics engine is a drawing engine for 2D drawings.
[0126] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0127] 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.
[0128] User portrait: a model that describes user needs. In this application, a user portrait can be used to describe the user's use of a sports health application. For example, an electronic device can classify users into heavy users and non-heavy users based on the frequency of the user's use of the sports health application and the focus of the user's attention.
[0129] Foreground: A foreground service performs actions that the user notices. For example, an audio app uses a foreground service to play an audio track. A foreground service is required to display a notification. A foreground service continues to run even if the user stops interacting with the app.
[0130] Background: Background services perform actions that are not directly noticed by the user. For example, if an app uses a service to compress its storage space, this service is usually a background service.
[0131] Currently, users are paying more and more attention to their daily exercise data. A variety of electronic devices can be used to collect the user's exercise data, for example, the user's mobile phone and sports watch can both collect the user's exercise data. However, there are many reasons that may cause the mobile phone and sports watch to have different exercise data about the same user.
[0132] 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.
[0133] Figure 3 Schematic diagram of a scenario to which the embodiment of the present application can be applied. Figure 3 As shown, the scenario may include at least device 200a, device 200b and cloud 200c. Device 200a may include an application (Application, App) 1 of the sports and health category.
[0134] In the embodiment of the present application, the device 200a and the device 200b can be used to collect the user's motion data respectively. When the device 200a and the device 200b are in a wireless connection state, the device 200a can synchronize the motion data with the device 200b to achieve consistency of the motion data at both ends.
[0135] The exercise data may include steps, calories, distance, activity hours, climbing height data, medium to high intensity, heart rate, and other data that can be used to characterize the user's exercise status.
[0136] For example, App1 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. according to the number of steps, and can also determine the climbing data, heart rate, etc. through other motion sensors. Similarly, device 200b can also collect various motion data of the user.
[0137] It is understandable that the device 200a can store the collected or calculated various motion data in a database and upload it to the cloud 200c. In addition, App1 can also provide various motion data to the user interface (UI) process in real time to refresh the display interface of App1 for the user to view. Similarly, the device 200b can also provide various motion data to the UI process in real time for the user to view.
[0138] In some examples, the user can also set target exercise data in device 200a or device 200b. For example, the user sets the step count target to 10,000 steps, the exercise duration target to 30 minutes, the activity hours target to 12 times, etc. Cloud 200c can manage and issue various achievement medals based on the user's daily exercise data and target exercise data.
[0139] The device 200a can obtain motion data 3 by fusing the motion data 1 of the device 200a with the motion data 2 of the device 200b according to certain rules, and synchronize the motion data 3 to the device 200b.
[0140] Exemplarily, the motion data synchronization may be triggered in the following manner.
[0141] Method 1:
[0142] 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.
[0143] The type of user may be determined based on the user portrait. For example, the user may be determined to be a heavy user or a non-heavy user based on the user portrait. The first type may be understood as a heavy user, and the second type may be understood as a non-heavy user.
[0144] The exercise data may include steps, calories, activity hours, distance, etc.
[0145] 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.
[0146] Method three: 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.
[0147] Mode 4: Periodic synchronization. For example, the device 200a and the device 200b perform motion data synchronization once every preset time period. The preset time period may be 1 hour (hour, h) or 2 hours, etc.
[0148] 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, the motion data synchronization between device 200a and device 200b is achieved.
[0149] Exemplarily, device 200a may be a mobile phone, a tablet, etc., and device 200b may be a sports watch, a sports bracelet, etc.
[0150] In some other examples, the number of the device 200a may be multiple, and the number of the device 200b may be multiple.
[0151] Figure 4 is a schematic flow chart of a method for synchronizing motion data provided by an embodiment of the present application. Figure 4As shown, the method 300 may include steps 310 to 360. The 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 smart phone, and the second device may be a sports watch.
[0152] 310. The first device obtains the number of steps of the first device.
[0153] Exemplarily, the first device may include a motion sensor, which may acquire the number of steps of the user in real time.
[0154] 320. The first device determines whether the user type belongs to the first type.
[0155] 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 according to the user portrait, and the first type may be a heavy user.
[0156] Alternatively, the first device may determine the type of the user based on the frequency of the user logging into the sports health app and the frequency of clicking on the sports data. For example, if the frequency of the user logging into the sports health app and the frequency of clicking on the sports data per week are both greater than a threshold, it may be determined that the user belongs to the first type.
[0157] 330. When it is determined that the user type belongs to the first type, the first device determines whether the change value of the number of steps is greater than a first preset value.
[0158] 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.
[0159] After the first device determines that the change in the number of steps is greater than the first preset value, step 340 may be continued.
[0160] 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.
[0161] 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.
[0162] 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 often logs in to the sports health app and pays more attention to his or her sports data. Therefore, the first preset value can be smaller, so that when the user's sports data changes, the sports data at both ends can be synchronized in time, bringing a good experience to the user.
[0163] When the first device determines that the change in the number of steps is greater than the second preset value, step 340 is continued.
[0164] 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 .
[0165] It should be understood that before step 340 , the first device has received the motion data 2 of the second device at least once.
[0166] 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 rule is as follows.
[0167] For the first device that supports viewing the details of the motion data, the motion data may 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.
[0168] 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.
[0169] If there is only data from the first device in a certain minute, the data from the first device shall prevail; if there is only data from the second device, the data from the second device shall prevail.
[0170] 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 a larger media access control (MAC) address among the second devices shall prevail.
[0171] In this way, since the second device with a large MAC address has been on the market for a short time, the device is relatively new, and the motion sensor used may be more advanced, the collected motion data will be more accurate.
[0172] For the 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 are motion data collected by both the first device and the second device, the motion data collected by the device with the larger device identity document (ID) between the first device and the second device shall prevail.
[0173] In this way, since the device ID is large, its time on the market is short, the device is relatively new, and the motion sensor used may be more advanced, which will make the collected motion data more accurate.
[0174] 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.
[0175] 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.
[0176] 350. The first device sends motion data 3 to the second device.
[0177] 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.
[0178] 360, the first device refreshes the display interface according to the motion data 3.
[0179] 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.
[0180] 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.
[0181] In the embodiment of the present application, the specific execution order of the above steps 310 to 360 is not limited. In other examples, step 350 and step 360 can also be executed simultaneously.
[0182] 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 fusion can also be performed and the fused motion data 3 can be sent to the second device.
[0183] 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.
[0184] 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.
[0185] Figure 5 FIG. 1 is a schematic flow chart of another method for synchronizing motion data provided by an embodiment of the present application. Figure 5 As shown, the method 400 may include steps 410 to 460. The method 400 may be applied to the second device.
[0186] 410. The second device obtains the number of steps of the second device.
[0187] Exemplarily, the second device may include a motion sensor, which can obtain the number of steps of the user in real time.
[0188] 420. The second device determines whether the user type belongs to the first type.
[0189] It should be understood that the way in which the second device determines whether the user type belongs to the first type is the same as the way in which 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.
[0190] 430. When the second device determines that the user type belongs to the first type, determine whether the change value of the number of steps is greater than a first preset value.
[0191] When the second device determines that the change value of the number of steps is greater than the first preset value, step 440 can be executed.
[0192] 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.
[0193] The first preset value and the second preset value can refer to the above description.
[0194] 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.
[0195] 440. The second device sends motion data 2 to the first device.
[0196] Exemplarily, the second device may send the motion data 2 to the first device via Bluetooth, Wi-Fi, etc. After receiving the motion data 2, the first device may fuse the motion data 1 and the motion data 2 according to the fusion rule to obtain the motion data 3; then, the first device may send the motion data 3 to the second device. The fusion rule can refer to the description above.
[0197] 450. The second device receives the motion data 3 sent by the first device.
[0198] 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.
[0199] When the first device combines motion data 1 and motion data 2 to obtain motion data 3, it can generate daily statistics and refresh today's achievement medal. For example, when motion data 3 is greater than or equal to the target motion data, the achievement of today's goal can be achieved.
[0200] The data type of the motion data 3 may include detailed motion data of the current preset duration, such as 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 total steps, calories, medium and high intensity, activity hours, distance, height climbed, etc. This facilitates the second device to perform data statistics within the preset duration and total data statistics after data fusion and draw a bar chart for user reference.
[0201] 460, the second device refreshes the display interface according to the motion data 3.
[0202] 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.
[0203] 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.
[0204] 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.
[0205] Based on the embodiment of the present application, when the second device determines that the detected change in motion data is greater than a preset value, motion data synchronization can be triggered, and motion data 2 can be sent to the first device, so that the first device merges motion data 1 of the first device and motion data 2 of the second device to obtain motion data 3. Afterwards, the first device can send the motion data 3 to the second device, so that the motion data displayed by the first device and the second device are the same.
[0206] Combined with the previous article Figure 4-5 The technical solution of triggering motion data synchronization when the first device or the second device detects that the change in motion data is greater than a threshold is introduced. Figure 6-Figure 7 This section introduces the technical solutions for triggering motion data synchronization in other scenarios.
[0207] Figure 6 is a schematic interactive diagram of another method for synchronizing motion data provided by an embodiment of the present application. Figure 6 As shown, the method 500 may include steps 510 to 550 .
[0208] 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.
[0209] Exemplarily, the first operation may be an operation of the user opening the homepage of the sports health 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.
[0210] 520. The second device sends motion data 2 to the first device according to the motion data synchronization request message.
[0211] After receiving the motion data synchronization request message, the second device may send the collected motion data 2 to the first device.
[0212] 530 , the first device fuses motion data 1 and motion data 2 to obtain motion data 3.
[0213] 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.
[0214] 540. The first device sends motion data 3 to the second device.
[0215] Exemplarily, the motion data 3 may include detailed motion data of a preset duration (e.g., 30 minutes or 60 minutes) of the current day and the previous day, and summary motion data of 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 of the current day and the previous day, and summary motion data of each day of the past 7 days.
[0216] It is understandable that when the sports health app is in the foreground, the time interval between the first device sending two sports data 3 to the second device is not less than 1 second or 2 seconds; if the interval between the two trigger synchronizations is less than 1 second or 2 seconds, the first device can only perform fusion without sending 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 difference in calories between the current sports data and the previous sports data must be greater than 1000 or 500 calories.
[0217] 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. This can avoid the first device from frequently sending sports data to the second device, thereby reducing the power consumption of the electronic device.
[0218] 550 , the first device and the second device refresh the display interface according to the motion data 3 .
[0219] 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.
[0220] In the embodiment of the present application, the specific execution order of step 510 to step 550 is not limited. In other examples, after obtaining the motion data 3, the first device can refresh its own display interface while sending the motion data 3 to the second device.
[0221] Based on the embodiment of the present application, when the user performs a 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.
[0222] Figure 7 is a schematic interactive diagram of another method for synchronizing motion data provided by an embodiment of the present application. Figure 7 As shown, the method 600 may include steps 610 to 640 .
[0223] 610. When the second device detects that the second device and the first device change from a wireless disconnected state to a wireless connected state, the second device sends motion data 2 to the first device.
[0224] Exemplarily, when the first device is not connected to the second device, 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.
[0225] 620 , the first device fuses motion data 1 and motion data 2 to obtain motion data 3.
[0226] 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 foregoing description, and for the sake of brevity, it will not be repeated here.
[0227] 630. The first device sends motion data 3 to the second device.
[0228] Exemplarily, the motion data 3 may include detailed motion data of a preset duration (e.g., 30 minutes or 60 minutes) of the current day and the previous day, and summary motion data of 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 of the current day and the previous day, and summary motion data of each day of the past 7 days.
[0229] It is understandable that the time interval between the first device sending the motion data 3 to the second device twice may be less than the preset time, for example, the preset time may be 30 minutes, so as to avoid frequent triggering of motion data synchronization between the first device and the second device when they are repeatedly disconnected and reconnected due to the distance relationship.
[0230] 640 , the first device and the second device refresh the display interface according to the motion data 3 .
[0231] 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.
[0232] In the embodiment of the present application, the specific execution order of step 610 to step 640 is not limited. In other examples, after obtaining the motion data 3, the first device can refresh its own display interface while sending the motion data 3 to the second device.
[0233] Based on the embodiment of the present application, when the second device detects that the second device and the first device are disconnected and then connected, 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.
[0234] In some cases, the user can modify the target exercise data on the first device or the second device. For example, set or modify the daily target number of steps, target exercise duration, and target activity hours. Figure 8-Figure 10 Introduce the technical solution.
[0235] Figure 8 FIG. 1 is a schematic flow chart of a method for synchronizing target motion data provided by an embodiment of the present application. Figure 8 As shown, the method 700 may include steps 710 to 750 .
[0236] 710. The second device detects an operation of modifying target motion data.
[0237] 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.
[0238] Alternatively, the user can also 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 time from 20 minutes to 30 minutes, and modify the number of active hours from 10 hours to 12 hours.
[0239] 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.
[0240] 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.
[0241] 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 .
[0242] It should be understood that the first device stores target motion data 1 , and when the first device receives target motion data 2 sent by the second device, the timestamp of the target motion data 2 can be compared with the timestamp of the stored target motion data 1 .
[0243] 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.
[0244] It should be understood that when the timestamp of the target motion data 2 is greater than the timestamp of the target motion data 1, it means that the target motion data 2 is the latest modified, and the first device can use the target motion data 2 as the final target motion data for today.
[0245] 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.
[0246] 742, the second device refreshes the display interface according to the target motion data 1.
[0247] 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.
[0248] 750, the first device refreshes the display interface according to the target motion data 2.
[0249] The first device can refresh its display interface according to the latest target motion data 2 so that the displayed target data is updated in real time.
[0250] In this way, after the user modifies the target motion data on the second 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 is used as the basis, which can ensure the real-time nature of the target data.
[0251] 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.
[0252] Combine the following Fig. 9 An operation of a user modifying target motion data on a first device is introduced.
[0253] Fig. 9 FIG. 1 is a schematic flow chart of another method for synchronizing target motion data provided by an embodiment of the present application. Fig. 9 As shown, the method 800 may include steps 810 to 850 .
[0254] 810. The first device detects an operation of modifying target motion data.
[0255] 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.
[0256] Alternatively, the user can also 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 time from 20 minutes to 30 minutes, and modify the number of active hours from 10 hours to 12 hours.
[0257] 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 .
[0258] It should be understood that the first device stores target motion data 1, and 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 stored target motion data 1.
[0259] 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.
[0260] It should be understood that when the timestamp of the target motion data 2 is greater than the timestamp of the target motion data 1, it means that the target motion data 2 is the latest modified, and the first device can use the target motion data 2 as the final target motion data for today.
[0261] 840. The first device sends target motion data 2 to the second device.
[0262] 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.
[0263] 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 .
[0264] 850, the first device refreshes the display interface according to the target motion data 2.
[0265] 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.
[0266] In this way, the target motion data displayed in the first device and the second device are the same.
[0267] 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.
[0268] Fig.10 FIG. 1 is a schematic flow chart of another method for synchronizing historical target data provided by an embodiment of the present application. Fig.10 As shown, the method 900 may include steps 910 to 950 .
[0269] 910. The first electronic device receives historical target motion data 2 of the second device.
[0270] 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 before yesterday in the second device.
[0271] 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 .
[0272] Exemplarily, the historical target motion data 2 may include the target motion data of the 7 days before today (not including today), then each day of the above 7 days of target motion data may correspond to one target motion data, and the target motion data of the 7 days may be the same or different. Similarly, the first device may compare the target motion data of the 7 days with the corresponding daily target motion data in the historical target motion data 1, and determine the minimum target data of each day.
[0273] For example, on 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.
[0274] 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.
[0275] 930 , the first device determines whether the minimum value of the historical target motion data of the day belongs to historical target motion data 1 .
[0276] 940. 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, 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.
[0277] 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.
[0278] 941. When the first device determines that the minimum value of the historical target motion data for the day belongs to the historical target motion data 1, the first device sends the minimum value of the historical target motion data for the day to the second device.
[0279] When the first device determines that the minimum value of the historical target motion data for the day belongs to the 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. At this time, the first device can send the minimum value to the second device, so that the historical target motion data in the first device and the second device are consistent.
[0280] 942, the second device refreshes the display interface according to the minimum value of the historical target motion data for the day.
[0281] It should be understood that when the second device receives the minimum value of the historical target motion data of 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.
[0282] 950. The first device refreshes the display interface according to the minimum value of the historical target motion data for the day.
[0283] In this way, the historical target motion data displayed in the first device and the second device can be made consistent, and the daily achievement medals achieved by the user can be made consistent.
[0284] It should be understood that the various embodiments in the foregoing can be combined with each other or partially combined to form new embodiments, and such technical solutions should not be considered to exceed the protection scope of this application.
[0285] Fig.11 is a schematic diagram of a display interface after the motion data of the first device and the second device are synchronized. Fig.11 As shown, the device 200a may include a display interface 210, which may be a display interface for activity records of a sports health App.
[0286] The display interface 210 may include a date display and vitality three-ring achievement bar 211, a function button bar 212, a vitality three rings 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.
[0287] Among them, 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".
[0288] See also Fig.11 , the device 200b may include a display interface 220. The display interface 220 may include today's exercise data and target exercise data.
[0289] 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".
[0290] From the above description, it can be seen that using the various technical solutions described in the previous text of this application, after the device 200a and the device 200b synchronize the motion data, the motion data and today's target motion data are consistent in the display interface of the device 200a and the display interface of the device 200b.
[0291] Fig.12 is a schematic flow chart of a motion data synchronization method provided in an embodiment of the present application. Fig.12 As shown, the method 1200 may include steps 1210 to 1230 .
[0292] 1210. The first electronic device determines first motion data.
[0293] Exemplarily, the first motion data may include steps, calories, distance, activity hours, climbing data, medium and high intensity, heart rate, etc.
[0294] 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.
[0295] 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 second motion data sent by a second electronic device is received; or, the first preset condition may also be detecting that a user opens the homepage of the target application or that a user pulls down to refresh the homepage of the target application.
[0296] 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 of the first electronic device and motion data of the second electronic device, the motion data of the second electronic device shall prevail; if there is only data of one electronic device, the motion data of the first 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.
[0297] 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.
[0298] Exemplarily, the first electronic device may be the first device mentioned above, and the second electronic device may be the second device mentioned above.
[0299] 1230. The first electronic device sends third motion data to the second electronic device.
[0300] In some examples, method 1200 may also include step 1240 and step 1250 .
[0301] 1240. The first electronic device refreshes a display interface according to the third motion data.
[0302] 1250. The second electronic device refreshes a display interface according to the third motion data.
[0303] 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 the user can see on the first electronic device and the second electronic device are the same, which helps to improve the user experience.
[0304] In some embodiments, the first electronic device fuses the first motion data and the second motion data according to a fusion rule to obtain the third motion data, including: if the first electronic device supports viewing detailed motion data, for the target minute, there are both the first motion data and the 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.
[0305] Exemplarily, the target minute here may refer to a certain minute, for example, the target minute may be 9:01.
[0306] 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 of a first electronic device and motion data of a second electronic device, the motion data of the second electronic device shall prevail; if there is data from only one electronic device, the motion data of the 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.
[0307] 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 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.
[0308] In the embodiment of the present application, if there are 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.
[0309] Since the MAC address of the 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 when the motion data is fused can be more accurate.
[0310] In some embodiments, 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 1200 further includes:
[0311] Determine user type based on user portrait;
[0312] When it is determined that the user type is the first type, determining the preset value to be a first preset value;
[0313] 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.
[0314] Exemplarily, 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.
[0315] 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.
[0316] In some embodiments, the first preset condition is that the first electronic device detects an operation of the user opening the homepage of the target application or a pull-down refresh operation of the 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:
[0317] Sending a motion data synchronization request to the second electronic device;
[0318] Receive second motion data sent by a second electronic device.
[0319] In an embodiment of the present application, when a user opens the homepage of a target application or pulls down to refresh the homepage of a 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.
[0320] In some embodiments, the third motion data includes detailed motion data within a preset time period and summary motion data for the day.
[0321] Exemplarily, the preset duration may be 30 minutes or 60 minutes, etc.
[0322] 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.
[0323] 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.
[0324] 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.
[0325] 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.
[0326] In some embodiments, the method 1200 may further include:
[0327] 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;
[0328] 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;
[0329] Refresh the display interface of the first electronic device according to the second target motion data.
[0330] For example, the user modifies the step goal from 5,000 steps to 6,000 steps.
[0331] 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 remain consistent.
[0332] In some embodiments, the method 1200 may further include:
[0333] Receiving second target motion data sent by a second electronic device;
[0334] 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;
[0335] 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.
[0336] The second target motion data may be target motion data modified by a 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.
[0337] 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 remain consistent.
[0338] In some embodiments, the first electronic device stores the first historical target motion data, and the method 1200 may further include:
[0339] receiving second historical target motion data sent by a second electronic device;
[0340] Determine 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;
[0341] 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;
[0342] 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.
[0343] 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.
[0344] 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.
[0345] Fig.13FIG. 1 is a schematic flow chart of another motion data synchronization method provided in an embodiment of the present application. Fig.13 As shown, the method 1300 may include steps 1310 to 1340 .
[0346] 1310. The second electronic device determines second motion data.
[0347] 1320. When a second preset condition is met, the second electronic device sends second motion data to the first electronic device.
[0348] 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.
[0349] 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.
[0350] For example, the fusion rule may refer to the related description in the foregoing text.
[0351] 1340. The first electronic device sends third motion data to the second electronic device.
[0352] In other examples, the method 1300 may also include step 1350 and step 1360 .
[0353] 1350. The first electronic device refreshes a display interface according to the third motion data.
[0354] 1360. The second electronic device refreshes a display interface according to the third motion data.
[0355] 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 the user can see on the first electronic device and the second electronic device are the same, which helps to improve the user experience.
[0356] In some embodiments, 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. Before sending the second motion data to the first electronic device, the method 1300 further includes:
[0357] Determine user type based on user portrait;
[0358] When it is determined that the user type is the first type, determining the preset value to be a first preset value;
[0359] 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.
[0360] 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.
[0361] In some embodiments, the method 1300 may further include:
[0362] Receiving target motion data sent by a first electronic device;
[0363] Refresh the display interface of the second electronic device according to the target motion data.
[0364] Exemplarily, the target motion data may be the target motion data 1 mentioned above.
[0365] This technical solution can ensure that the target motion data displayed in the first electronic device and the second electronic device are consistent.
[0366] In some embodiments, the method 1300 may further include:
[0367] Receiving historical target motion data sent by a first electronic device;
[0368] Refresh the display interface of the second electronic device according to the historical target motion data.
[0369] Exemplarily, the historical target motion data may be the historical target motion data 1 mentioned above.
[0370] 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.
[0371] Fig.14 is a schematic block diagram of an electronic device provided in an embodiment of the present application. Fig.14 As shown, the electronic device 1400 may include one or more processors 1410; one or more memories 1420; the one or more memories 1420 store one or more computer programs, and the one or more computer programs include instructions. When the instructions are executed by the one or more processors 1410, the method for synchronizing motion data as described in any possible implementation method described above is executed.
[0372] Exemplarily, the electronic device 1000 may be the first device or the second device mentioned above.
[0373] 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.
[0374] This embodiment also provides a computer-readable storage medium, in which computer instructions are stored. 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.
[0375] This embodiment also provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the above-mentioned related steps to implement the method for synchronizing motion data in the above-mentioned embodiment.
[0376] 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 a 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 so that the chip executes the method of motion data synchronization in the above-mentioned method embodiments.
[0377] 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.
[0378] Those of ordinary skill 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 to be beyond the scope of this application.
[0379] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0380] In the several embodiments provided in the present 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 only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, 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.
[0381] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0382] 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.
[0383] 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 can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0384] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope 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; sending the third motion data to the second electronic device; 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 of the first motion data and the second motion data is used as the third motion data; or 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.
2. The method according to claim 1, 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.
3. The method according to claim 1, characterized in that The first preset condition is that the first electronic device receives the second motion data sent by the second electronic device.
4. The method according to claim 1, 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.
5. The method according to any one of claims 1 to 3, characterized in that: The third motion data includes detailed motion data within a preset time period and summary motion data for the day.
6. The method according to claim 4, 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.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: Refresh a display interface of the first electronic device according to the third motion data.
8. The method according to any one of claims 1 to 7, 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.
9. The method according to any one of claims 1 to 7, 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.
10. The method according to any one of claims 1 to 9, 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.
11. 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; receiving third motion data sent by the first electronic device, 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; Wherein, if the first electronic device supports viewing detailed sports data, for the target minute, both the first sports data and the second sports data exist, and the data of the target minute in the third sports data is the data corresponding to the target minute in the second sports data; For the target minute, if only the first exercise data or the second exercise data exists, the data of the target minute in the third exercise data is the data corresponding to the target minute in the first exercise data or the second exercise data; or If the first electronic device does not support viewing detailed motion data, the third motion data is the larger of the first motion data and the second motion data; or If the second motion data includes motion data of multiple second electronic devices, for a target minute, both the first motion data and the second motion data exist, and the data for the target minute in the third motion data is the motion data of the second electronic device with the largest media access control MAC address.
12. The method according to claim 11, 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.
13. The method according to claim 11, 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.
14. The method according to any one of claims 11 to 13, characterized in that The method further comprises: Refresh the display interface of the second electronic device according to the third motion data.
15. The method according to any one of claims 11 to 14, 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.
16. The method according to any one of claims 11 to 15, 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.
17. 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-16 is executed.
18. 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 16 is executed.
19. 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 16 is executed.
