Clock synchronization method and system, and devices and storage medium

By acquiring and analyzing the action and trigger time in physiological signals and utilizing the light speed propagation characteristics of physiological signals, high-precision clock synchronization between electronic devices has been achieved, solving the problem of insufficient clock synchronization accuracy in existing technologies and meeting the high-precision requirements of the medical and health field.

WO2026113241A1PCT designated stage Publication Date: 2026-06-04GOERTEK INC

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
GOERTEK INC
Filing Date
2025-04-24
Publication Date
2026-06-04

AI Technical Summary

Technical Problem

Existing technologies suffer from insufficient accuracy in clock synchronization of multimodal data, especially in data acquisition in the medical and health field, where they cannot achieve the accuracy requirement of <1ms, which affects the accuracy of health management.

Method used

By acquiring the target user's physiological signals, determining the action and trigger time, and sending them to the worn electronic device to achieve clock synchronization, the synchronization accuracy is improved by utilizing the light speed propagation characteristics of physiological signals.

Benefits of technology

It improves the clock synchronization accuracy between electronic devices, meeting the demand for high-precision clock synchronization in the medical and health field.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025090960_04062026_PF_FP_ABST
    Figure CN2025090960_04062026_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present invention are a clock synchronization method and system, and devices and a storage medium. The method comprises: acquiring a first physiological signal of a target user; determining a first action corresponding to the first physiological signal and a first trigger time of the first physiological signal; and sending the first action and the first trigger time to a second electronic device worn by the target user, such that the second electronic device performs clock synchronization with respect to the first electronic device on the basis of the first action and the first trigger time.
Need to check novelty before this filing date? Find Prior Art

Description

A clock synchronization method, device, system, and storage medium

[0001] This application claims priority to Chinese Patent Application No. 202411718118.8, filed on November 27, 2024, entitled "A Clock Synchronization Method, Device, System and Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field

[0002] The present invention relates to the field of clock synchronization technology, and more specifically, to a clock synchronization method, a first electronic device, a second electronic device, a clock synchronization system, and a readable storage medium. Background Technology

[0003] With current technological advancements, wearable devices for chronic disease management have become a consensus. Health data collection has evolved from single devices to multiple wearable devices, and from single-point location on the body to multiple collection points. Synchronizing multimodal data helps improve the accuracy of health management; however, clock synchronization of multimodal data remains a significant challenge.

[0004] Existing solutions typically rely on mobile phone links to achieve clock synchronization among multiple wearable devices, with an accuracy of tens or even hundreds of milliseconds, which cannot meet the requirements of digital signal processing in the medical and health field. For example, in heart sounds and electrocardiograms, the duration of the third heart sound is 40ms. If we want to find the characteristics of heart sounds and electrocardiograms at this moment, an accuracy of less than 1ms is required to be meaningful. Therefore, high-precision clock synchronization is very important. Summary of the Invention

[0005] One object of the present invention is to provide a clock synchronization method, apparatus, system, and readable storage medium.

[0006] According to a first aspect of the present invention, a clock synchronization method is provided, applied to a first electronic device, the method comprising:

[0007] Acquire the target user's first physiological signals;

[0008] Determine the first action corresponding to the first physiological signal and the first trigger time of the first physiological signal;

[0009] The first action and the first trigger time are sent to the second electronic device worn by the target user, so that the second electronic device can synchronize its clock with the first electronic device according to the first action and the first trigger time.

[0010] Optionally, the method further includes:

[0011] Detect whether a synchronization clock event has occurred;

[0012] Upon detecting the occurrence of the synchronization clock event, a clock synchronization request is sent to the second electronic device;

[0013] Upon receiving the first confirmation message returned by the second electronic device in accordance with the clock synchronization request, the step of acquiring the first physiological signal of the target user is performed.

[0014] Optionally, determining the first action corresponding to the first physiological signal and the first triggering time of the first physiological signal includes:

[0015] If the amplitude of the first physiological signal is detected to exceed a set first threshold, the first timestamp when the amplitude of the first physiological signal exceeds the first threshold is determined as the first trigger time.

[0016] The first signal segment in the first physiological signal is extracted based on the first trigger time and the set duration.

[0017] The first action is determined based on the first signal segment.

[0018] Optionally, determining the first action based on the first signal segment includes:

[0019] Obtain the first signal feature of the first signal segment;

[0020] Based on the pre-trained classification model, the action corresponding to the first signal feature is determined and taken as the first action.

[0021] According to a second aspect of the present invention, a clock synchronization method is provided, applied to a second electronic device, the method comprising:

[0022] Acquire the target user's second physiological signal;

[0023] Determine the second action corresponding to the second physiological signal, and the second trigger time of the second action;

[0024] The system receives a first action and a first trigger time sent by a first electronic device worn by the target user; wherein the first action and the first trigger time are determined based on a first physiological signal of the target user acquired by the first electronic device.

[0025] Based on the first action, the second action, the first trigger time, and the second trigger time, control the second electronic device to synchronize its clock with the first electronic device.

[0026] Optionally, determining the second action corresponding to the second physiological signal and the second triggering time of the second action includes:

[0027] If the amplitude of the second physiological signal is detected to exceed a set second threshold, a second timestamp in which the amplitude of the second physiological signal exceeds the second threshold is determined as the second trigger time;

[0028] The second signal segment is extracted from the second physiological signal based on the second trigger time and the set duration.

[0029] The second action is determined based on the second signal segment.

[0030] Optionally, controlling the second electronic device to synchronize its clock with the first electronic device based on the first action, the second action, the first trigger time, and the second trigger time includes:

[0031] Determine whether the first action and the second action match.

[0032] If the first action matches the second action, a first time difference between the first trigger time and the second trigger time is determined;

[0033] The second electronic device is controlled to synchronize its clock with the first electronic device based on the first time difference.

[0034] Optionally, the method further includes:

[0035] Obtain the third timestamp of receiving the first action and the first trigger time;

[0036] Determine a second time difference between the third timestamp and the second trigger time;

[0037] If the second time difference is less than or equal to a set third threshold, the step of controlling the second electronic device to synchronize its clock with the first electronic device is executed.

[0038] Optionally, the method further includes:

[0039] Detect whether a deletion event has occurred;

[0040] In the event of the deletion event, the second action and the second trigger time are deleted.

[0041] Optionally, the method further includes:

[0042] Receive a clock synchronization request sent by the first electronic device in the event of a clock synchronization event;

[0043] The system returns a first confirmation message to the first electronic device according to the clock synchronization request, and performs the step of acquiring the second physiological signal of the target user.

[0044] Optionally, after controlling the second electronic device to synchronize its clock with the first electronic device, the method further includes:

[0045] Send a second confirmation message to the first electronic device to cause the first electronic device to stop acquiring the first physiological signal;

[0046] Stop acquiring the second physiological signal.

[0047] According to a third aspect of the present invention, a first electronic device is provided, comprising a first processor and a first memory, the first memory being configured to store a first computer program, and the first processor being configured to execute the method described in the first aspect of the present invention under the control of the first computer program.

[0048] According to a fourth aspect of the present invention, a second electronic device is provided, including a second processor and a second memory, the second memory being used to store a second computer program, and the second processor being used to execute the method as described in the second aspect of the present invention under the control of the second computer program.

[0049] According to a fifth aspect of the present invention, a clock synchronization system is provided, comprising a first electronic device as described in the third aspect of the present invention and a second electronic device as described in the fourth aspect of the present invention, wherein a communication connection is established between the first electronic device and the second electronic device.

[0050] According to a sixth aspect of the present invention, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method as described in the first or second aspect of the present invention.

[0051] In this embodiment, the clock synchronization accuracy between the first electronic device and the second electronic device can be improved by controlling the second electronic device to synchronize the clock with the first electronic device based on physiological signals.

[0052] Other features and advantages of this specification will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description

[0053] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments of the invention and, together with their description, serve to explain the principles of the invention.

[0054] Figure 1 is a block diagram illustrating the hardware configuration of a clock synchronization system that can implement an embodiment of the present invention;

[0055] Figure 2 is a communication schematic diagram of a clock synchronization system according to an embodiment of the present invention;

[0056] Figure 3 is a communication schematic diagram of a clock synchronization system according to another embodiment of the present invention;

[0057] Figure 4 is a flowchart of a clock synchronization method according to a first embodiment of the present invention;

[0058] Figure 5 is a flowchart of a clock synchronization method according to a second embodiment of the present invention;

[0059] Figure 6 is a flowchart of a clock synchronization method according to a third embodiment of the present invention;

[0060] Figure 7 is a block diagram of a first electronic device according to an embodiment of the present invention;

[0061] Figure 8 is a block diagram of a second electronic device according to an embodiment of the present invention;

[0062] Figure 9 is a block diagram of a clock synchronization system according to an embodiment of the present invention.

[0063] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0064] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0065] It should be noted that if the embodiments of the present invention involve directional indicators (such as up, down, left, right, front, back, etc.), the directional indicators are only used to explain the relative positional relationship and movement of the components in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicators will also change accordingly.

[0066] Furthermore, if the embodiments of this invention involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the meaning of "and / or" throughout the text includes three parallel solutions; for example, "A and / or B" includes solution A, solution B, or a solution where both A and B are satisfied simultaneously. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by this invention.

[0067] <Hardware Configuration>

[0068] Figure 1 is a block diagram illustrating the hardware configuration of a clock synchronization system that can implement an embodiment of the present invention.

[0069] As shown in Figure 1, the clock synchronization system 1000 may include a first electronic device 1100 and at least one second electronic device 1200, and each second electronic device 1200 may be communicatively connected to the first electronic device 1100.

[0070] In this embodiment, as shown in FIG2, the second electronic device 1200 can communicate directly with the first electronic device 1100. As shown in FIG3, the second electronic device 1200 can also communicate with the first electronic device 1100 through other electronic devices 2000.

[0071] In this embodiment, the first electronic device 1100 and the second electronic device 1200 can communicate with each other via Bluetooth, WiFi or other means.

[0072] In this embodiment, the first electronic device 1100 and the second electronic device 1200 can be wearable devices such as headphones, watches, and glasses.

[0073] As shown in Figure 1, the first electronic device 1100 may include a processor 1110, a memory 1120, an interface device 1130, a communication device 1140, a display device 1150, an input device 1160, a speaker 1270, a microphone 1280, etc. The processor 1110 may be a central processing unit (CPU), a microprocessor (MCU), etc. The memory 1120 may include, for example, ROM (Read-Only Memory), RAM (Random Access Memory), or non-volatile memory such as a hard disk. The interface device 1130 may include, for example, a USB interface, a headphone jack, etc. The communication device 1140 may be capable of wired or wireless communication. The display device 1150 may be, for example, a liquid crystal display (LCD), a touch screen, etc. The input device 1160 may include, for example, a touch screen, a keyboard, etc. The user can input / output voice information through the speaker 1170 and the microphone 1180.

[0074] The second electronic device 1200 may include a processor 1210, a memory 1220, an interface device 1230, a communication device 1240, a display device 1250, an input device 1260, a speaker 1270, a microphone 1280, etc. The processor 1210 may be a central processing unit (CPU), a microprocessor (MCU), etc. The memory 1220 may include, for example, ROM (Read-Only Memory), RAM (Random Access Memory), or non-volatile memory such as a hard disk. The interface device 1230 may include, for example, a USB interface, a headphone jack, etc. The communication device 1240 may be capable of wired or wireless communication. The display device 1250 may be, for example, a liquid crystal display (LCD), a touch screen, etc. The input device 1260 may include, for example, a touch screen, a keyboard, etc. The user can input / output voice information through the speaker 1270 and the microphone 1280.

[0075] The clock synchronization system 1000 shown in Figure 1 is merely illustrative and is by no means intended to limit the invention, its application, or its uses.

[0076] In an embodiment of the present invention, the memory 1120 of the first electronic device 1100 is used to store instructions for controlling the processor 1110 to perform any one of the clock synchronization methods for the first electronic device provided in the embodiments of the present invention. The memory 1220 of the second electronic device 1200 is used to store instructions for controlling the processor 1210 to perform any one of the clock synchronization methods for the second electronic device provided in the embodiments of the present invention.

[0077] Those skilled in the art will understand that although multiple devices are shown for both the first electronic device 1100 and the second electronic device 1200 in FIG1, the present invention may relate only to some of these devices. For example, the first electronic device 1100 may only involve the processor 1110 and the memory 1120, or the second electronic device 1200 may only involve the processor 1210 and the memory 1220, etc. Those skilled in the art can design instructions based on the disclosed scheme of the present invention. How the instructions control the processor to operate is well known in the art and will not be described in detail here.

[0078] <First Method Implementation>

[0079] This invention provides a clock synchronization method, which can be implemented by a first electronic device. The first electronic device can be the first electronic device 1100 in the foregoing embodiments.

[0080] Figure 4 is a flowchart of a clock synchronization method according to an embodiment of the present invention.

[0081] As shown in Figure 4, the method includes the following steps S4100 to S4300:

[0082] Step S4100: Obtain the first physiological signal of the target user.

[0083] In this embodiment, the first physiological signal can be any electrical signal representing a human body characteristic, such as nerve signals, skin signals, muscle signals, electrocardiogram signals, or electroencephalogram signals. Specifically, the first physiological signal refers to the physiological signal of the target user's body at the first electronic device.

[0084] In this embodiment, the first electronic device is worn on the body of the target user to obtain the target user's first physiological signal.

[0085] In one embodiment of the present invention, before executing step S4100, the method may further include: detecting whether a synchronization clock event has occurred; if a synchronization clock event is detected, sending a clock synchronization request to a second electronic device; and if a first confirmation message is received from the second electronic device in accordance with the clock synchronization request, executing steps S4100 to S4300 of this embodiment.

[0086] In this embodiment, the synchronization clock event may include at least one of the following: reaching a set time, receiving a synchronization clock instruction, or receiving a synchronization clock operation.

[0087] In embodiments where the synchronization clock event includes reaching a set time, the set time can be determined based on a synchronization cycle preset by the user according to their actual needs. For example, the synchronization cycle can be 1 hour, 1 day, 1 week, etc. Alternatively, the set time can also be preset according to actual needs, for example, the set time can be 9 o'clock every day.

[0088] In embodiments where the synchronization clock event includes receiving a synchronization clock command, the synchronization clock command may be sent from other electronic devices such as mobile phones, computers, and tablets to the first electronic device, or it may be a voice command input by the target user.

[0089] In embodiments where the synchronization clock event includes receiving a synchronization clock operation, the synchronization clock operation may be pre-set according to the application scenario or specific requirements. For example, the synchronization clock operation may be the operation of the target user clicking the corresponding button in the first electronic device, or the target user performing the corresponding gesture, etc.

[0090] Upon receiving a clock synchronization request, the second electronic device may return a first confirmation message to the first electronic device if the clock synchronization conditions are met.

[0091] Furthermore, the second electronic device may confirm that it meets the clock synchronization condition when it is powered on; or, the second electronic device may confirm that it meets the clock synchronization condition when it receives a clock synchronization request; or, the second electronic device may confirm that it meets the clock synchronization condition when it is idle.

[0092] Upon receiving the first confirmation message, the first electronic device enters a waiting process. Upon sending the first confirmation message to the first electronic device, the second electronic device enters a waiting process.

[0093] During the waiting process, the first electronic device executes step S4100 of this embodiment to acquire the first physiological signal of the target user, and the second electronic device also acquires the second physiological signal of the target user. The second physiological signal is the physiological signal of the target user's body at the second electronic device.

[0094] Step S4200: Determine the first action corresponding to the first physiological signal and the first trigger time of the first physiological signal.

[0095] When the brain commands hand movements, it sends out neural electrical signals that are transmitted to the hand via the central and peripheral nervous systems, causing changes in the muscle's electrical signals and producing movement. By performing digital signal processing on these primary physiological signals, fixed gestures or intentions can be extracted and analyzed.

[0096] In one embodiment of the present invention, determining the first action corresponding to the first physiological signal and the first trigger time of the first physiological signal includes: when the signal amplitude of the first physiological signal is detected to exceed a set first threshold, determining a first timestamp of the signal amplitude of the first physiological signal exceeding the first threshold as the first trigger time; extracting a first signal segment from the first physiological signal according to the first trigger time and a set duration; and determining the first action according to the first signal segment.

[0097] In this embodiment, if the amplitude of the first physiological signal does not exceed the first threshold, it can be determined that the target user is in a static state and has not performed any action. If the amplitude of the first physiological signal exceeds the first threshold, it can be determined that the target user has performed an action. Therefore, in order to reduce the interference of the first physiological signal on action recognition when the target user has not performed any action, the signal segment corresponding to the target user performing an action can be extracted from the first physiological signal for action recognition.

[0098] In this embodiment, a target interruption can be triggered when the amplitude of the first physiological signal exceeds a first threshold. The timestamp of the received target interruption is the first timestamp, which serves as the first trigger time.

[0099] Upon receiving a target interruption, a signal segment of a predetermined duration will be extracted from the first physiological signal, starting from the first timestamp; this segment will be known as the first signal segment. The predetermined duration can be set in advance based on the application scenario or specific requirements. For example, the predetermined duration could be 1 second.

[0100] In one embodiment of the present invention, determining a first action based on a first signal segment includes: acquiring a first signal feature of the first signal segment; and determining an action corresponding to the first signal feature based on a pre-trained classification model, as the first action.

[0101] In this embodiment, the first signal segment may be filtered first, and then the first signal segment may be analyzed to obtain the first signal features.

[0102] Specifically, low-pass and band-pass filters can be used to filter out useless information in the first signal segment, so as to make the obtained action recognition results more accurate.

[0103] Furthermore, wavelet transform, fast Fourier transform, or other methods can be used to extract time-domain and frequency-domain information from the first signal segment as the first signal feature.

[0104] Furthermore, the first signal features can be input into a classification model to obtain a score for each set action corresponding to the first physiological signal. The set action with the highest score can be used as the first action; alternatively, a set action with a score greater than or equal to the corresponding score threshold can be used as the first action. If the score for each action is less than the corresponding score threshold, it can be determined that the target user has not performed the set action, and step S4300 is not executed; steps S4100 to S4200 are then executed.

[0105] In this embodiment, the set action can be preset according to the application scenario. For example, the set action can include raising a hand, a victory gesture, a thumbs-up gesture, etc.

[0106] In step S4300, the first action and the first trigger time are sent to the second electronic device worn by the target user so that the second electronic device can synchronize its clock with the first electronic device according to the first action and the first trigger time.

[0107] In this embodiment, the first electronic device can send the first action and the first trigger time to the second electronic device worn by the target user through a communication connection with the second electronic device. Specifically, the first electronic device can directly send the first action and the first trigger time to the second electronic device worn by the target user, or it can send the first action and the first trigger time to the second electronic device worn by the target user through other relay devices (such as mobile phones, computers, tablets, etc.).

[0108] In this embodiment, an identifier for each preset action can be pre-set. Therefore, determining the first action can involve determining the identifier corresponding to the first action. Correspondingly, the identifier of the first action and the corresponding first trigger time can be sent to the second electronic device.

[0109] In this embodiment, upon recognizing the first action and the corresponding first trigger time, the first action and the first trigger time can be sent to the second electronic device worn by the target user.

[0110] During the waiting process, the second electronic device acquires the second physiological signal of the target user, determines the second action corresponding to the second physiological signal, and the second trigger time of the second physiological signal; upon receiving the first action and the first trigger time, it can control the second electronic device to synchronize its clock with the first electronic device based on the first action, the second action, the first trigger time, and the second trigger time.

[0111] Specifically, the second electronic device may, when entering a waiting process, acquire the second physiological signal of the target user; determine the second action corresponding to the second physiological signal and the second trigger time of the second action; receive the first action and the first trigger time sent by the first electronic device worn by the target user; and control the second electronic device to synchronize its clock with the first electronic device based on the first action, the second action, the first trigger time and the second trigger time.

[0112] In this embodiment, the second physiological signal can be any electrical signal representing a human body characteristic, such as nerve signals, skin signals, muscle signals, electrocardiogram signals, or electroencephalogram signals. Specifically, the second physiological signal is the physiological signal of the target user's body at the second electronic device.

[0113] In this embodiment, the second electronic device is worn on the target user's body to obtain the target user's second physiological signal.

[0114] In this embodiment, the first electronic device and the second electronic device are worn on the body of the same target user.

[0115] In this embodiment, determining the second action corresponding to the second physiological signal and the second trigger time of the second physiological signal can be done by referring to the step S4200 in this embodiment, which determines the first action corresponding to the first physiological signal and the first trigger time of the first physiological signal, and will not be repeated here.

[0116] In one embodiment of the present invention, controlling the second electronic device to synchronize clocks with the first electronic device according to a first action, a second action, a first trigger time, and a second trigger time includes: determining whether the first action and the second action match; if the first action and the second action match, determining a first time difference between the first trigger time and the second trigger time; and controlling the second electronic device to synchronize clocks with the first electronic device according to the first time difference.

[0117] In this embodiment, the second electronic device can sequentially traverse all second actions in the local cache according to the corresponding second trigger time and match them with the first action. Specifically, the second actions can be traversed in ascending order of the second trigger time, that is, the last obtained second action is traversed first.

[0118] Furthermore, if the second action being traversed is the same as the first action, then the second action is determined to match the first action. Specifically, this can be determined if the identifier of the second action is the same as the identifier of the first action.

[0119] Furthermore, if none of the second actions cached by the second electronic device matches the first action, then the process continues with step S5400 after waiting for another set time. This other set time can be pre-set according to the application scenario or specific requirements. For example, the other set time could be 50 milliseconds.

[0120] When a first action and a second action are matched, a first time difference can be determined between the first trigger time corresponding to the first action and the second trigger time corresponding to the second action. For example, if the first trigger time corresponding to the first action is T1 and the second trigger time corresponding to the second action that matches the first action is T2, the first time difference can be determined as ΔT1 = T1 - T2.

[0121] In this embodiment, controlling the second electronic device to synchronize its clock with the first electronic device based on the first time difference can be achieved by determining the sum of the current time of the second electronic device and the first time difference as a fourth timestamp, and writing the fourth timestamp into the clock of the second electronic device, thereby synchronizing the clocks of the second electronic device and the first electronic device.

[0122] In this embodiment, when the first action and the second action are matched, the clock synchronization between the second electronic device and the first electronic device is controlled according to the first time difference between the first trigger time and the second trigger time, which can improve the clock synchronization accuracy between the first electronic device and the second electronic device.

[0123] In one embodiment of the present invention, the method further includes: obtaining a third timestamp of receiving the first action and the first trigger time; determining a second time difference between the third timestamp and the second trigger time; and, if the second time difference is less than or equal to a set third threshold, performing a step of controlling the second electronic device to synchronize the clock with the first electronic device.

[0124] In this embodiment, the third threshold can be a value set in advance according to the application scenario or specific needs, representing the maximum network latency of two electronic devices that need time synchronization. For example, the third threshold can be 100 milliseconds.

[0125] In this embodiment, when the third timestamp is T3 and the second trigger time corresponding to the second action that matches the first action is T2, the second time difference can be determined as △T2=T3-T2.

[0126] If the second time difference is greater than the third threshold, it can be considered that the network delay between the first electronic device and the second electronic device is too large. The second action and the corresponding second trigger time are invalid, and the clock synchronization between the second electronic device and the first electronic device is not controlled according to the second action and the corresponding second trigger time.

[0127] Since the speed of propagation of physiological signals is the speed of light, the neural transmission distance between the detection positions of the first electronic device and the second electronic device on the target user's body is less than 2 meters. Therefore, the time difference between the first electronic device and the second electronic device receiving the physiological signal triggered by the same action is less than 10 ns. Thus, synchronizing the clocks of the first electronic device and the second electronic device based on the physiological signal can improve the clock synchronization accuracy between the first electronic device and the second electronic device.

[0128] In this embodiment, the clock synchronization accuracy between the first electronic device and the second electronic device can be improved by controlling the second electronic device to synchronize the clock with the first electronic device based on physiological signals.

[0129] <Second Method Implementation>

[0130] This invention provides a clock synchronization method, which can be implemented by a second electronic device. The second electronic device can be the second electronic device 1200 in the foregoing embodiments.

[0131] Figure 5 is a flowchart of a clock synchronization method according to an embodiment of the present invention.

[0132] As shown in Figure 5, the method includes the following steps S5100 to S5400:

[0133] Step S5100: Obtain the second physiological signal of the target user.

[0134] In this embodiment, the second physiological signal can be any electrical signal representing a human body characteristic, such as nerve signals, skin signals, muscle signals, electrocardiogram signals, or electroencephalogram signals. Specifically, the second physiological signal is the physiological signal of the target user's body at the second electronic device.

[0135] In this embodiment, the second electronic device is worn on the target user's body to obtain the target user's second physiological signal.

[0136] In this embodiment, the first electronic device and the second electronic device are worn on the body of the same target user.

[0137] In one embodiment of the present invention, before performing step S5100, the method may further include: receiving a clock synchronization request sent by a first electronic device when a synchronization clock event is detected; returning a first confirmation message to the first electronic device according to the clock synchronization request; and performing the step of acquiring the second physiological signal of the target user.

[0138] Upon receiving a clock synchronization request, the second electronic device may return a first confirmation message to the first electronic device if the clock synchronization conditions are met.

[0139] Furthermore, the second electronic device may confirm that it meets the clock synchronization condition when it is powered on; or, the second electronic device may confirm that it meets the clock synchronization condition when it receives a clock synchronization request; or, the second electronic device may confirm that it meets the clock synchronization condition when it is idle.

[0140] In this embodiment, the second electronic device may enter a waiting process after sending a first confirmation message to the first electronic device. When the second electronic device enters the waiting process, it executes steps S5100 to S5400 of this embodiment.

[0141] Step S5200: Determine the second action corresponding to the second physiological signal and the second trigger time of the second action.

[0142] When the brain commands hand movements, it sends out neural electrical signals that are transmitted to the hand via the central and peripheral nervous systems, causing changes in muscle electrical signals and producing movement. By performing digital signal processing on these secondary physiological signals, fixed gestures or intentions can be extracted and analyzed.

[0143] In one embodiment of the present invention, determining the second action corresponding to the second physiological signal and the second trigger time of the second physiological signal includes: when the signal amplitude of the second physiological signal is detected to exceed a set second threshold, determining a second timestamp where the signal amplitude of the second physiological signal exceeds the second threshold as the second trigger time; extracting a second signal segment from the second physiological signal according to the second trigger time and a set duration; and determining the second action according to the second signal segment.

[0144] In this embodiment, if the amplitude of the second physiological signal does not exceed the second threshold, it can be determined that the target user is in a static state and has not performed any action. If the amplitude of the second physiological signal exceeds the second threshold, it can be determined that the target user has performed an action. Therefore, in order to reduce the interference of the second physiological signal on action recognition when the target user has not performed any action, the signal segment corresponding to the target user performing an action can be extracted from the second physiological signal for action recognition.

[0145] In this embodiment, a target interruption can be triggered when the amplitude of the second physiological signal exceeds the second threshold. The timestamp of receiving the target interruption is the second timestamp, which serves as the second trigger time.

[0146] Upon receiving a target interruption, a signal segment of a predetermined duration will be extracted from the second physiological signal, starting from the second timestamp; this segment will be the second signal segment. The predetermined duration can be set in advance according to the application scenario or specific requirements. For example, the predetermined duration could be 1 second.

[0147] In one embodiment of the present invention, determining a second action based on a second signal segment includes: acquiring a second signal feature of the second signal segment; and determining an action corresponding to the second signal feature based on a pre-trained classification model, as the second action.

[0148] In this embodiment, the second signal segment may be filtered first, and then analyzed to obtain the second signal features.

[0149] Specifically, low-pass and band-pass filters can be used to filter out useless information in the second signal segment, so as to make the obtained action recognition results more accurate.

[0150] Furthermore, wavelet transform, fast Fourier transform, and other methods can be used to extract time-domain and frequency-domain information from the second signal segment as second signal features.

[0151] Furthermore, the second signal features can be input into a classification model to obtain a score for each set action corresponding to the second physiological signal. The set action with the highest score can be used as the second action; alternatively, a set action with a score greater than or equal to the corresponding score threshold can be used as the second action. If the score for each action is less than the corresponding score threshold, it can be determined that the target user has not performed the set action, and steps S5100–S5200 can continue.

[0152] In this embodiment, the set action can be preset according to the application scenario. For example, the set action can include raising a hand, a victory gesture, a thumbs-up gesture, etc.

[0153] In one embodiment of the present invention, the second action and the corresponding second trigger time may be recorded after obtaining the second action and the corresponding second trigger time.

[0154] In this embodiment, each set action may be pre-defined with an identifier. Therefore, determining the second action may involve determining the identifier corresponding to the second action.

[0155] Step S5300: Receive a first action and a first trigger time sent by a first electronic device worn by the target user; wherein the first action and the first trigger time are determined based on the first physiological signal of the target user acquired by the first electronic device.

[0156] In this embodiment, the steps of the first electronic device determining and sending the first action and the first trigger time can be referred to in steps S4200 and S4300 of the aforementioned embodiment, and will not be repeated here.

[0157] In this embodiment, the execution order of steps S5300 and S5200 is not limited. Step S5200 can be executed first and then step S5300 can be executed, or step S5300 can be executed first and then step S5200 can be executed, or steps S5200 and S5300 can be executed simultaneously.

[0158] Step S5400: Based on the first action, the second action, the first trigger time, and the second trigger time, control the second electronic device to synchronize the clock with the first electronic device.

[0159] In this embodiment, controlling the second electronic device to synchronize with the first electronic device's clock can be achieved by setting the clock of the second electronic device to be synchronized with the clock of the first electronic device.

[0160] Since the speed of propagation of physiological signals is the speed of light, the neural transmission distance between the detection positions of the first electronic device and the second electronic device on the target user's body is less than 2 meters. Therefore, the time difference between the first electronic device and the second electronic device receiving the physiological signal triggered by the same action is less than 10 ns. Thus, synchronizing the clocks of the first electronic device and the second electronic device based on the physiological signal can improve the clock synchronization accuracy between the first electronic device and the second electronic device.

[0161] In one embodiment of the present invention, controlling the second electronic device to synchronize clocks with the first electronic device according to a first action, a second action, a first trigger time, and a second trigger time includes: determining whether the first action and the second action match; if the first action and the second action match, determining a first time difference between the first trigger time and the second trigger time; and controlling the second electronic device to synchronize clocks with the first electronic device according to the first time difference.

[0162] In this embodiment, the second electronic device can sequentially traverse all second actions in the local cache according to the corresponding second trigger time and match them with the first action. Specifically, the second actions can be traversed in ascending order of the second trigger time, that is, the last obtained second action is traversed first.

[0163] Furthermore, if the second action being traversed is the same as the first action, then the second action is determined to match the first action. Specifically, this can be determined if the identifier of the second action is the same as the identifier of the first action.

[0164] Furthermore, if none of the second actions cached by the second electronic device matches the first action, then the process continues with step S5400 after waiting for another set time. This other set time can be pre-set according to the application scenario or specific requirements. For example, the other set time could be 50 milliseconds.

[0165] When a first action and a second action are matched, a first time difference can be determined between the first trigger time corresponding to the first action and the second trigger time corresponding to the second action. For example, if the first trigger time corresponding to the first action is T1 and the second trigger time corresponding to the second action that matches the first action is T2, the first time difference can be determined as ΔT1 = T1 - T2.

[0166] In this embodiment, controlling the second electronic device to synchronize its clock with the first electronic device based on the first time difference can be achieved by determining the sum of the current time of the second electronic device and the first time difference as a fourth timestamp, and writing the fourth timestamp into the clock of the second electronic device, thereby synchronizing the clocks of the second electronic device and the first electronic device.

[0167] In this embodiment, when the first action and the second action are matched, the clock synchronization between the second electronic device and the first electronic device is controlled according to the first time difference between the first trigger time and the second trigger time, which can improve the clock synchronization accuracy between the first electronic device and the second electronic device.

[0168] In one embodiment of the present invention, the method further includes: obtaining a third timestamp of receiving the first action and the first trigger time; determining a second time difference between the third timestamp and the second trigger time; and, if the second time difference is less than or equal to a set third threshold, performing a step of controlling the second electronic device to synchronize the clock with the first electronic device.

[0169] In this embodiment, the third threshold can be a value set in advance according to the application scenario or specific needs, representing the maximum network latency of two electronic devices that need time synchronization. For example, the third threshold can be 100 milliseconds.

[0170] In this embodiment, when the third timestamp is T3 and the second trigger time corresponding to the second action that matches the first action is T2, the second time difference can be determined as △T2=T3-T2.

[0171] If the second time difference is greater than the third threshold, it can be considered that the network delay between the first electronic device and the second electronic device is too large. The second action and the corresponding second trigger time are invalid, and the clock synchronization between the second electronic device and the first electronic device is not controlled according to the second action and the corresponding second trigger time.

[0172] In one embodiment of the present invention, the method further includes: detecting whether a deletion event has occurred; and if a deletion event has occurred, deleting the second action and the second triggering time.

[0173] In this embodiment, the deletion event may include at least one of the following: the third time difference between the current event and the second trigger time is greater than or equal to a set fourth threshold; the second time difference is greater than the third threshold.

[0174] In embodiments where the deletion event includes a third time difference between the current event and the second trigger time that is greater than or equal to a fourth threshold, the fourth threshold may be preset according to the application scenario or specific requirements. For example, the fourth threshold may be 1 day, 1 hour, etc.

[0175] In an embodiment where the deletion event includes a second time difference greater than a third threshold, the second time difference is the time difference between the third timestamp of receiving the first action and the first trigger time and the second trigger time.

[0176] In this embodiment, the second action and the second trigger time are deleted when the deletion event occurs. This can delete the second action and the corresponding second trigger time that cannot be used to control the clock synchronization between the two electronic devices and the first electronic device, thereby speeding up the time synchronization.

[0177] In one embodiment of the present invention, after performing step S5400, the method may further include: sending a second confirmation message to the first electronic device to cause the first electronic device to stop acquiring the first physiological signal; and stopping acquiring the second physiological signal.

[0178] In this embodiment, when the second electronic device sends a second confirmation message to the first electronic device, the second electronic device exits the waiting process, stops acquiring the second physiological signal, and stops executing steps S5100 to S5400 of this embodiment. Correspondingly, when the first electronic device receives the second confirmation message, the first electronic device also exits the waiting process, stops acquiring the first physiological signal, and stops executing steps S4100 to S4300 of this embodiment.

[0179] In this embodiment, after the first electronic device and the second electronic device are synchronized in time, the acquisition of physiological signals is stopped, which can reduce the power consumption of the first electronic device and the second electronic device.

[0180] <Third Method Implementation Example>

[0181] This invention provides a clock synchronization method, which can be implemented by a first electronic device and a second electronic device. The first electronic device can be the first electronic device 1100 in the foregoing embodiments, and the second electronic device can be the second electronic device 1200 in the foregoing embodiments.

[0182] Figure 6 is a flowchart of a clock synchronization method according to an embodiment of the present invention.

[0183] As shown in Figure 6, the method includes the following steps:

[0184] Step S6101: The first electronic device detects whether a synchronization clock event has occurred.

[0185] In step S6102, when the first electronic device detects that a synchronization clock event has occurred, it sends a clock synchronization request to the second electronic device.

[0186] In step S6201, the second electronic device returns the first confirmation message.

[0187] Step S6103: The first electronic device acquires the first physiological signal of the target user.

[0188] In step S6104, the first electronic device determines the first action corresponding to the first physiological signal and the first trigger time of the first physiological signal.

[0189] In step S6105, the first electronic device sends the first action and the first trigger time to the second electronic device worn by the target user.

[0190] Step S6202: The second electronic device acquires the second physiological signal of the target user.

[0191] In step S6203, the second electronic device determines the second action corresponding to the second physiological signal and the second trigger time of the second action.

[0192] In step S6204, the second electronic device controls the first electronic device to synchronize its clock with the first electronic device according to the first action, the second action, the first trigger time, and the second trigger time.

[0193] In step S6205, the second electronic device sends a second confirmation message to the first electronic device.

[0194] In step S6206, the second electronic device stops acquiring the second physiological signal.

[0195] In step S6106, the first electronic device stops acquiring the first physiological signal.

[0196] <First Electronic Device Embodiment>

[0197] This embodiment provides a first electronic device, as shown in FIG7. The first electronic device 7000 may include a first processor 7100 and a first memory 7200. The first memory 7200 is used to store a first computer program, and the first processor 7100 is used to execute method steps performed by the first electronic device as in any embodiment of the present invention under the control of the first computer program.

[0198] <Second Electronic Device Embodiment>

[0199] This embodiment provides a second electronic device, as shown in FIG8. The second electronic device 8000 may include a second processor 8100 and a second memory 8200. The second memory 8200 is used to store a second computer program, and the second processor 8100 is used to execute method steps performed by the second electronic device as in any embodiment of the present invention under the control of the second computer program.

[0200] <System Implementation Example>

[0201] This embodiment also provides a clock synchronization system 9000, as shown in FIG9. The clock synchronization system 9000 may include the first electronic device 7000 and the second electronic device 8000 of the aforementioned embodiments.

[0202] <Example of a readable storage medium>

[0203] This embodiment provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs the method described in any of the method embodiments of the present invention.

[0204] This invention can be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the invention.

[0205] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination thereof. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.

[0206] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0207] The computer program instructions used to perform the operations of this invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing state information from the computer-readable program instructions. This electronic circuitry can execute the computer-readable program instructions to implement various aspects of the invention.

[0208] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.

[0209] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0210] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0211] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions. It will be known to those skilled in the art that implementation in hardware, implementation in software, and implementation using a combination of software and hardware are equivalent.

[0212] The various embodiments of the present invention have been described above. These descriptions are exemplary and not exhaustive, and are not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or technical improvements to the embodiments in the market, or to enable others skilled in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims

1. A method of clock synchronization, characterized by, Applied to a first electronic device, the method includes: Acquire the target user's first physiological signals; Determine the first action corresponding to the first physiological signal and the first trigger time of the first physiological signal; The first action and the first trigger time are sent to the second electronic device worn by the target user, so that the second electronic device can synchronize its clock with the first electronic device according to the first action and the first trigger time.

2. The method of claim 1, wherein, The method further includes: Detect whether a synchronization clock event has occurred; Upon detecting the occurrence of the synchronization clock event, a clock synchronization request is sent to the second electronic device; Upon receiving the first confirmation message returned by the second electronic device in accordance with the clock synchronization request, the step of acquiring the first physiological signal of the target user is performed.

3. The method of claim 1, wherein, The determination of the first action corresponding to the first physiological signal and the first trigger time of the first physiological signal includes: If the amplitude of the first physiological signal is detected to exceed a set first threshold, the first timestamp when the amplitude of the first physiological signal exceeds the first threshold is determined as the first trigger time. The first signal segment in the first physiological signal is extracted based on the first trigger time and the set duration. The first action is determined based on the first signal segment.

4. The method of claim 3, wherein, Determining the first action based on the first signal segment includes: Obtain the first signal feature of the first signal segment; Based on the pre-trained classification model, the action corresponding to the first signal feature is determined as the first action.

5. A clock synchronization method characterized by, Applied to a second electronic device, the method includes: acquiring a second physiological signal of a target user; Determine the second action corresponding to the second physiological signal, and the second trigger time of the second action; The system receives a first action and a first trigger time sent by a first electronic device worn by the target user; wherein the first action and the first trigger time are determined based on a first physiological signal of the target user acquired by the first electronic device. Based on the first action, the second action, the first trigger time, and the second trigger time, control the second electronic device to synchronize its clock with the first electronic device.

6. The method of claim 5, wherein, The determination of the second action corresponding to the second physiological signal and the second trigger time of the second action includes: If the amplitude of the second physiological signal is detected to exceed a set second threshold, a second timestamp in which the amplitude of the second physiological signal exceeds the second threshold is determined as the second trigger time; The second signal segment is extracted from the second physiological signal based on the second trigger time and the set duration. The second action is determined based on the second signal segment.

7. The method of claim 5, wherein, The step of controlling the second electronic device to synchronize its clock with the first electronic device based on the first action, the second action, the first trigger time, and the second trigger time includes: Determine whether the first action and the second action match. If the first action matches the second action, a first time difference between the first trigger time and the second trigger time is determined; The second electronic device is controlled to synchronize its clock with the first electronic device based on the first time difference.

8. The method of claim 5, wherein, The method further includes: Obtain the third timestamp of receiving the first action and the first trigger time; Determine a second time difference between the third timestamp and the second trigger time; If the second time difference is less than or equal to a set third threshold, the step of controlling the second electronic device to synchronize its clock with the first electronic device is executed.

9. The method of claim 5, wherein, The method further includes: Detect whether a deletion event has occurred; In the event of the deletion event, the second action and the second trigger time are deleted.

10. The method of claim 5, wherein, The method further includes: Receive a clock synchronization request sent by the first electronic device in the event of a clock synchronization event; The system returns a first confirmation message to the first electronic device according to the clock synchronization request, and performs the step of acquiring the second physiological signal of the target user.

11. The method of claim 5, wherein, After controlling the second electronic device to synchronize its clock with the first electronic device, the method further includes: Send a second confirmation message to the first electronic device to cause the first electronic device to stop acquiring the first physiological signal; Stop acquiring the second physiological signal.

12. A first electronic device, comprising: It includes a first processor and a first memory, the first memory being used to store a first computer program, and the first processor being used to execute the method as described in any one of claims 1 to 4 under the control of the first computer program.

13. A second electronic device, comprising: It includes a second processor and a second memory, the second memory being used to store a second computer program, and the second processor being used to execute the method as described in any one of claims 5 to 11 under the control of the second computer program.

14. A clock synchronization system, characterized by It includes the first electronic device as described in claim 12 and the second electronic device as described in claim 13, wherein a communication connection is established between the first electronic device and the second electronic device.

15. A computer-readable storage medium having a computer program stored thereon, the computer program implementing the method as described in any one of claims 1 to 11 when executed by a processor.