Multi-terminal light effect vector synchronization method and virtual reality interaction system

By synchronizing the clocks of speakers, augmented reality devices, and wearable devices, obtaining the delay duration, and determining the rendering command timing, the problem of audio-visual asynchrony in high-frequency synchronization of multiple devices was solved, achieving synchronization of audio and lighting effects and improving the user experience.

CN123181793APending Publication Date: 2026-11-27GEER INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611230773.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-13
Publication Date
2026-11-27

Smart Images

  • Figure CN123181793A_ABST
    Figure CN123181793A_ABST
Patent Text Reader

Abstract

The application provides a multi-end light effect vector synchronization method and a virtual reality interaction system. The method synchronizes clocks among a sound box, an augmented reality device and a wearable device in the virtual reality interaction system, determines a sending time of a rendering instruction according to a driving circuit delay time and a rendering pipeline delay time, sends the rendering instruction including a light effect vector based on the sending time, and renders the light effect vector in advance, so that the rendering of the light effect vector is completed at the same time as audio signals reach a loudspeaker in the sound box, sound and picture synchronization is achieved, and dizziness or interruption of immersion is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent display technology, and in particular, to a multi-terminal light effect vector synchronization method and a virtual reality interaction system. Background Art

[0002] Existing multi-device linkage schemes mainly rely on cloud or central gateway forwarding. However, in audio-visual-haptic high-frequency synchronization scenarios involving multiple devices, signal transmission paths differ between devices, resulting in varying signal transmission durations. Additionally, the hardware processing capabilities of multiple devices are not uniform, meaning data processing rates differ between devices. For example, speakers process audio signals relatively quickly, while AR glasses exhibit higher rendering complexity and latency. Differences in signal transmission duration and hardware processing capabilities lead to dizziness or interrupted immersion caused by audio-visual asynchronization.

[0003] The above content is only provided to assist in understanding the technical solution of the present invention, and does not constitute an admission that the above content is prior art. Summary of the Invention

[0004] The main objective of the present invention is to provide a multi-terminal light effect vector synchronization method and a virtual reality interaction system, aiming to solve the technical problem in the prior art where audio-visual asynchronization causes dizziness or interrupted immersion in high-frequency synchronization scenarios involving multiple devices.

[0005] To achieve the above objective, the present invention provides a multi-terminal light effect vector synchronization method applied to a virtual reality interaction system including a speaker, an augmented reality device, and a wearable device, the method comprising: performing clock synchronization on the speaker, the augmented reality device, and the wearable device; acquiring a driver circuit delay duration of the speaker and a rendering pipeline delay duration of the augmented reality device; determining, based on the driver circuit delay duration and the rendering pipeline delay duration, a transmission time for transmitting a rendering instruction including a light effect vector to the augmented reality device; outputting, at the transmission time, the rendering instruction including the light effect vector to the augmented reality device, such that the augmented reality device completes rendering of the light effect vector simultaneously when an audio signal reaches a speaker unit of the speaker.

[0006] Optionally, the multi-terminal light effect vector synchronization method further comprises: controlling the speaker to collect an audio signal to be played, converting an audio attribute of the audio signal into light effect saturation, and simultaneously generating a beat trigger pulse sequence of the audio signal; controlling the wearable device to collect a user's behavioral characteristics and physiological characteristics; generating the light effect vector according to the light effect saturation, the beat trigger pulse sequence, the behavioral characteristics, and the physiological characteristics.

[0007] Optionally, the multi-terminal optical effect vector synchronization method further includes: The wearable device is controlled to collect the user's behavioral characteristics, and the displacement vector within a preset time period is predicted based on the behavioral characteristics. The augmented reality device is controlled to adjust the received light effect vector based on the displacement vector; The augmented reality device is controlled to render based on the adjusted light effect vector.

[0008] Optionally, the multi-terminal optical effect vector synchronization method further includes: The augmented reality device receives the brightness of the light strip on the speaker detected by the ambient light sensor; The augmented reality device is controlled to adjust the brightness of the virtual light effect within the light effect vector according to the brightness of the light strip on the speaker to obtain the adjusted light effect vector; The augmented reality device is controlled to render based on the adjusted light effect vector.

[0009] Optionally, the multi-terminal optical effect vector synchronization method further includes: The augmented reality device is controlled to capture the actual blinking time of the speaker light strip; The augmented reality device is controlled to determine the time deviation between the actual flashing moment and the local virtual rendering moment of the light effect vector; If the time deviation is greater than a preset time deviation, the speaker is controlled to adjust the timing of sending the rendering command.

[0010] Optionally, the multi-terminal optical effect vector synchronization method further includes: Control the augmented reality device to determine the physical location of the speaker; The augmented reality device is controlled to establish the three-dimensional spatial coordinates of the speaker based on the physical location; The augmented reality device is controlled to render the light effect vector to the three-dimensional spatial coordinates.

[0011] Optionally, the step of synchronizing the clocks of the speaker, the augmented reality device, and the wearable device includes: Select a clock source device from the speaker, the augmented reality device, and the wearable device; The clock source device is controlled to output clock synchronization messages to other devices within the virtual reality interaction system, and the feedback messages received from each of the other devices are recorded. The clock synchronization message includes first time information of the time when the clock synchronization message is sent, and the feedback message includes second time information of the time when the clock synchronization message is received. The clock source device is synchronized with the other devices based on the first time information and the second time information.

[0012] Optionally, selecting a clock source device from the speaker, the augmented reality device, and the wearable device includes: The computing power and power supply stability of the chips within the speaker, the augmented reality device, and the wearable device are obtained. The clock source is selected from the speaker, the augmented reality device, and the wearable device based on the chip's computing power and the power supply stability.

[0013] In addition, to achieve the above objectives, the present invention also provides a virtual reality interaction system, comprising: Speakers, augmented reality devices, controllers, and wearable devices; The controller is located inside the speaker, augmented reality device, or wearable device, and is connected to the speaker, augmented reality device, and wearable device. The augmented reality device is connected to the wearable device; The controller is used to execute the multi-terminal optical effect vector synchronization method described above.

[0014] Optionally, the virtual reality interaction system further includes an ambient light sensor, which is connected to the augmented reality device; The augmented reality device is equipped with a camera, which is used to capture the actual blinking time of the speaker light strip; The wearable device is equipped with an inertial measurement sensor, which is used to collect the user's behavioral characteristics.

[0015] This invention provides a multi-terminal light effect vector synchronization method and a virtual reality interaction system. The method synchronizes the clocks of the speaker, the augmented reality device, and the wearable device; obtains the delay duration of the speaker's driving circuit and the delay duration of the augmented reality device's rendering pipeline; under clock synchronization, determines the transmission time of a rendering command including a light effect vector to be sent to the augmented reality device based on the delay duration of the driving circuit and the delay duration of the rendering pipeline; and outputs the rendering command including the light effect vector to the augmented reality device at the transmission time, so that the augmented reality device completes the rendering of the light effect vector simultaneously with the arrival of the audio signal at the speaker in the speaker. In this invention, the speaker, augmented reality device, and wearable device within the virtual reality interaction system are first synchronized with their clocks. Then, the transmission time of the rendering command is determined based on the delay duration of the driving circuit and the delay duration of the rendering pipeline, and then the rendering command including the light effect vector is sent based on this transmission time, thus performing the rendering of the light effect vector in advance. This achieves audio-visual synchronization, avoiding dizziness or interruption of immersion. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.

[0017] Figure 1 This is a flowchart illustrating the first embodiment of the multi-terminal optical effect vector synchronization method proposed in this invention; Figure 2 This is a schematic diagram of the first process of the second embodiment of the multi-terminal optical effect vector synchronization method proposed in this invention; Figure 3 This is a schematic diagram of the second process of the second embodiment of the multi-terminal optical effect vector synchronization method proposed in this invention; Figure 4 This is a schematic diagram of the third process of the second embodiment of the multi-terminal optical effect vector synchronization method proposed in this invention; Figure 5 This is a schematic diagram of the fourth process of the second embodiment of the multi-terminal optical effect vector synchronization method proposed in this invention; Figure 6 This is a flowchart illustrating the third embodiment of the multi-terminal optical effect vector synchronization method proposed in this invention; Figure 7 This is a flowchart illustrating the fourth embodiment of the multi-terminal optical effect vector synchronization method proposed in this invention; Figure 8This is a schematic diagram of the structure of the virtual reality interaction system proposed in this invention.

[0018] 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

[0019] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.

[0020] 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.

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

[0022] Furthermore, the use of terms such as "first" and "second" in this invention is 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 that feature. Additionally, the technical solutions of the various embodiments can be combined with each other, but only on the basis of being achievable by those skilled in the art. When the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed by this invention.

[0023] Reference Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the multi-terminal optical effect vector synchronization method proposed in this invention. Based on Figure 1 The first embodiment of a multi-terminal optical effect vector synchronization method is proposed.

[0024] In this embodiment, the multi-terminal optical effect vector synchronization method includes: Step S10: Synchronize the clocks of the speaker, the augmented reality device, and the wearable device.

[0025] It should be understood that, considering that speakers, augmented reality devices, and wearable devices in a virtual reality interaction system usually operate independently and may have different clock signals, there may be a significant time difference between the audio signal played by the speakers and the image signal rendered by the augmented reality device, resulting in a poor user experience or even dizziness.

[0026] It should be noted that the virtual reality interaction system can be a multi-device collaborative system including speakers, augmented reality devices, and wearable devices. Wearable devices can be smart terminals that can be worn on the user's body, such as watches or bracelets worn on the user's wrist. The virtual reality interaction system realizes data exchange and collaborative control between devices through wired or wireless communication links to achieve a synchronized audio, visual, and tactile experience across terminals. Augmented reality devices can be AR smart glasses.

[0027] It should be noted that clock synchronization is the process of ensuring that the time bases of multiple devices in a virtual reality interaction system are consistent. Clock synchronization is typically achieved using a precision time protocol or a network time protocol. This involves a master clock device periodically broadcasting timestamp messages, while slave clock devices record the received times and calculate path delays to correct local clock deviations. For example, in a virtual reality interaction system, a speaker is selected as the clock source device, and a watch and augmented reality device are selected as clock slave devices. A PTP handshake is used to control the system clock errors of the three devices to the sub-millisecond level.

[0028] In practical implementation, one device from multiple devices in the virtual reality interaction system can be selected as the clock source device for the time reference. Then, messages containing high-precision timestamps are periodically sent to the other two devices via a precise time protocol. Upon receiving the messages, the other two devices record their local time and send back response packets. The virtual reality interaction system calculates the average path delay based on the round-trip time and dynamically compensates for clock deviations at each device, ensuring that the system clocks of the speakers, augmented reality devices, and wearable devices are synchronized.

[0029] Step S20: Obtain the delay duration of the speaker's driving circuit and the delay duration of the augmented reality device's rendering pipeline.

[0030] It should be noted that the drive circuit latency refers to the hardware delay from the output of the audio signal from the speaker's digital signal processor to the sound emitted by the speaker diaphragm. This latency is typically determined by the processing time of the digital-to-analog converter (DAC), the response time of the power amplifier, and the mechanical response time of the speaker. For example, the drive circuit latency of a speaker might be 5 milliseconds, meaning it takes 5 milliseconds from the audio data being sent to the DAC to the speaker emitting sound. The rendering pipeline latency can refer to the processing time from receiving a rendering instruction to displaying a complete lighting effect on the screen. This latency typically includes CPU instruction parsing time, GPU shader compilation and execution time, frame buffer swapping time, and screen refresh waiting time. For example, the rendering pipeline latency of an augmented reality device might be 30 milliseconds, meaning it takes 30 milliseconds from the instruction to the display of the lighting effect.

[0031] It should be understood that when the delay times of the driving circuit and the rendering pipeline are not the same, there will still be a certain time difference between the audio signal and the rendered image if audio signals and rendering commands are output simultaneously. For example, if the delay time of the driving circuit is 5 milliseconds and the delay time of the rendering pipeline is 30 milliseconds, then the user can only observe the rendered image on the augmented reality device 25 milliseconds after the audio signal is output through the speaker.

[0032] In practical implementation, the delay of the speaker's drive circuit can be obtained through factory calibration or online measurement, for example, by measuring the time difference from when audio data is sent to the DAC to when the speaker emits sound. The delay of the augmented reality device's rendering pipeline can be obtained through performance testing or actual rendering time statistics, for example, by measuring the time difference from when the rendering command is issued to when the frame buffer is updated.

[0033] Step S30: Determine the sending time of the rendering command, including the light effect vector, to the augmented reality device based on the delay time of the driving circuit and the delay time of the rendering pipeline; It's important to note that a light effect vector is a multi-dimensional data set used to describe light effect attributes. A light effect vector typically includes color components, brightness values, spatial coordinates, timestamps, and animation parameters, used to drive the rendering of virtual light effects in speaker light strips or augmented reality devices. Rendering commands can be standardized control messages containing light effect vectors and execution parameters. Rendering commands can be generated by the controller and sent to the augmented reality device via multicast, guiding the device to render the image according to the specified light effect vectors. For example, a rendering command can include light effect vector data and a rendering timestamp, instructing the augmented reality device to begin rendering at a specific time. The timing of sending the rendering command ensures that the audio signal and the rendered image are presented simultaneously.

[0034] In practical implementation, once clock synchronization is complete and the delay times of the drive circuit and rendering pipeline are determined, the controller can determine the timing of sending the rendering command to the augmented reality device based on these delay times. Specifically, this can be achieved by comparing the speaker drive circuit delay time and the augmented reality device rendering pipeline delay time, selecting the maximum value as the pre-release lead. The rendering command sending time is set to this lead time before the audio signal reaches the speaker inside the speaker. For example, if the augmented reality device rendering pipeline delay time is 30 milliseconds and the speaker drive circuit delay time is 5 milliseconds, then the rendering command sending time is 30 milliseconds before the audio signal reaches the speaker, meaning the rendering command output to the augmented reality device is sent 25 milliseconds before the audio signal input to the speaker.

[0035] Step S40: At the sending time, output a rendering instruction including the light effect vector to the augmented reality device so that the augmented reality device completes the rendering of the light effect vector at the same time as the audio signal reaches the speaker in the speaker box.

[0036] It should be noted that the audio signal refers to the digital audio data stream decoded and played by the speaker. The audio signal, after digital-to-analog conversion and power amplification, drives the speaker to produce sound, forming the basis of audio output in a virtual reality interactive system.

[0037] In practical implementation, given a predetermined rendering command sending time, the controller can directly send a rendering command containing a light effect vector to the augmented reality device (AR device) at the same time. Upon receiving the rendering command, the AR device immediately starts its rendering pipeline and executes rendering according to the parameters such as color, brightness, and spatial coordinates in the light effect vector. In this case, when the audio signal reaches the speaker after a delay due to the speaker driver circuit, the AR device has just completed rendering the light effect vector and presents it in the user's field of vision, achieving synchronization between audio and light effects. For example, a virtual reality interactive system includes a smart speaker, AR glasses, and a smartwatch. The speaker driver circuit has a delay of 5 milliseconds, and the AR device's rendering pipeline has a delay of 30 milliseconds. After clock synchronization among the three components, the controller calculates a pre-release lead of 30 milliseconds. When the speaker is about to play audio, the controller sends a rendering command containing a light effect vector to the AR device 30 milliseconds before the audio signal reaches the speaker. Upon receiving the command, the AR device immediately begins rendering, and after a 30-millisecond rendering delay, the light effect appears in the user's field of vision. At the same time, the audio signal is emitted from the speaker after a 5-millisecond delay by the drive circuit. The user hears the sound and sees the light effect at the same moment, achieving precise synchronization between audio and light effects.

[0038] Based on the first embodiment of the multi-terminal optical effect vector synchronization method described above, a second embodiment of the multi-terminal optical effect vector synchronization method of the present invention is proposed. (Refer to...) Figure 2 , Figure 2 This is a schematic diagram of the first process of the second embodiment of the multi-terminal optical effect vector synchronization method proposed in this invention.

[0039] In this embodiment, the multi-terminal optical effect vector synchronization method further includes: Step S31: Control the speaker to collect the audio signal to be played, convert the audio attributes of the audio signal into light effect saturation, and generate the beat of the audio signal; It's important to note that audio attributes are a set of parameters in an audio signal that characterize its sound properties. Audio attributes typically include timbre, rhythm, loudness, and frequency distribution. For example, Mel-frequency cepstral coefficients can be used to extract timbre features, and real-time beat count per minute (BPM) algorithms can be used to extract rhythm features. Light effect saturation is a measure of the purity or vibrancy of a color in a light effect. In color models, higher saturation indicates a purer and more vibrant color; lower saturation indicates a color closer to gray. For example, in a color space, saturation ranges from 0% to 100%, where 100% represents a pure color and 0% represents gray. In virtual reality interactive systems, an energetic timbre in audio attributes can be mapped to a high-saturation light effect, and a deep timbre in audio attributes can be mapped to a low-saturation light effect. A beat-triggered pulse sequence is a discrete-time trigger signal sequence generated based on the rhythmic characteristics of the audio signal. Each pulse in the beat-triggered pulse sequence corresponds to a beat point in the audio signal, used to drive the light effect to produce dynamic effects such as flashing, jumping, or color switching at the beat. For example, a song with a tempo of 120 beats per minute generates 2 beat pulses per second, forming a pulse sequence with a period of 500 milliseconds.

[0040] In practice, the controller can control the speaker to acquire and analyze the audio signal to be played in real time. The speaker uses its built-in digital signal processor to deconstruct the audio signal in multiple dimensions. The first dimension involves the speaker extracting the timbre characteristics of the audio signal through Mel-frequency cepstral analysis, mapping audio attributes such as exciting, cheerful, or deep and soothing sounds to saturation parameters of light effects. The second dimension involves the speaker detecting the beat position of the audio signal through a real-time BPM detection algorithm, generating a beat-triggered pulse sequence that corresponds one-to-one with the beat. For example, each time a strong beat is detected, a pulse signal is output.

[0041] Step S32: Control the wearable device to collect the user's behavioral and physiological characteristics; It's important to note that behavioral characteristics are information parameters reflecting a user's limb movement state. These characteristics are typically collected by the inertial measurement unit (IMU) in wearable devices and include data such as acceleration, angular velocity, and posture angles. They are used to identify movement patterns such as arm swinging, wrist rotation, walking, and running. For example, when a user swings their arm from left to right, the acceleration waveform and angular velocity change curve output by the IMU constitute behavioral characteristic data. Physiological characteristics are information parameters reflecting a user's physiological state. These characteristics are typically collected by biosensors in wearable devices and include data such as heart rate, heart rate variability, skin conductivity, and body temperature. They are used to assess a user's emotional state, fatigue level, or excitement level.

[0042] In practical implementation, the controller can control the wearable device to collect the user's behavioral and physiological characteristics. Regarding behavioral characteristic collection, the wearable device continuously collects triaxial acceleration and triaxial angular velocity data at a certain sampling frequency through its built-in inertial measurement unit, and preprocesses the data to extract behavioral characteristics such as the user's arm movement trajectory, swing direction, and speed. Regarding physiological characteristic collection, the wearable device collects heart rate signals through photoelectric sensors and calculates heart rate variability values ​​to assess the user's real-time level of excitement or emotional state.

[0043] Step S33: Generate the light effect vector based on the light effect saturation, the beat trigger pulse sequence, the behavioral characteristics, and the physiological characteristics.

[0044] It should be understood that the controller can uniformly convert heterogeneous data, including the luminous saturation of the speaker's audio signal, the generated beat-triggered pulse sequence, behavioral characteristics collected by the wearable device, and physiological characteristics, into a standardized luminous effect vector through preset mapping rules and fusion algorithms. The luminous effect vector contains a saturation value based on audio attribute mapping, a flashing frequency and timestamp determined based on the beat-triggered pulse sequence, spatial coordinates and motion trajectory direction determined based on behavioral characteristics, and a brightness modulation coefficient determined based on physiological characteristics. For example, in an interactive scenario, the speaker is playing an electronic dance track with a tempo of 128 BPM. The speaker analyzes and identifies the current segment's timbre as energetic, mapping it to a saturation of 85%; simultaneously, it generates a beat-triggered pulse sequence with an interval of approximately 468 milliseconds using a BPM detection algorithm. The user's smartwatch detects that the user is waving their arm to the music; the inertial measurement data, after processing by an LSTM model, outputs a displacement vector from left to right front; the watch's heart rate sensor measures the user's heart rate at 110 beats per minute, with low heart rate variability, indicating that the user is in an excited state. The controller can fuse this data to generate a light effect vector: 85% saturation, a flashing frequency synchronized with 128 BPM, a spatial position 30 cm in front of the end of the user's predicted arm trajectory, and a brightness modulation coefficient of 120%. This light effect vector is then used to generate rendering instructions, which are sent to the augmented reality device for synchronized rendering.

[0045] Reference Figure 3 , Figure 3 This is a second flowchart illustrating the second embodiment of the multi-terminal optical effect vector synchronization method proposed in this invention.

[0046] In this embodiment, the multi-terminal optical effect vector synchronization method further includes: Step S41: Control the wearable device to collect the user's behavioral characteristics, and predict the displacement vector within a preset time period based on the behavioral characteristics.

[0047] It should be understood that the process of rendering light effect vectors by augmented reality devices takes a certain amount of time. Therefore, there may be a time difference between the user's arm movements and the light effects rendered by the augmented reality device, causing the user to perceive a certain delay in the light effects relative to the arm movements.

[0048] It's important to note that a displacement vector is a vector describing the direction and magnitude of an object's position change in three-dimensional space. A displacement vector typically points from a starting point to an ending point. In virtual reality interaction systems, displacement vectors are used to characterize the expected trajectory of a user's limbs over a future period. For example, if a user's arm swings from left to right, the displacement vector can be represented as a directed line segment from the starting coordinates to the ending coordinates, with the direction from left to right and the magnitude being the distance the arm moves. A preset time period refers to the length of a pre-defined time window used to predict the user's future movement state. The value of the preset time period is usually determined based on the application scenario and the accuracy of the prediction model, such as 200 milliseconds or 300 milliseconds. In virtual reality interaction systems, wearable devices utilize temporal prediction models such as Long Short-Term Memory (LSTM) networks to predict the movement trend of the user's limbs within a preset time period based on behavioral characteristic data prior to the current moment.

[0049] In practice, the controller can direct the wearable device to continuously collect user behavior data. The wearable device then inputs this collected data into a miniature model integrated with a Long Short-Term Memory (LSTM) network. Based on a sequence of historical behavior characteristics prior to the current moment, the miniature model predicts the displacement vector of the user's limbs within a preset time period. This displacement vector includes the predicted direction and amplitude of movement.

[0050] Step S42: Control the augmented reality device to adjust the received light effect vector based on the displacement vector.

[0051] It should be understood that the controller can instruct the wearable device to send the predicted displacement vector to the augmented reality device via Bluetooth Low Energy or other wireless communication methods. Upon receiving the displacement vector, the augmented reality device can adjust the previously received light effect vector based on it. The adjustment operations include: adjusting the spatial coordinates of the light effect vector according to the direction of the displacement vector, so that the light effect appears at the end of the predicted trajectory of the user's arm; adjusting the size or intensity of the light effect vector according to the magnitude of the displacement vector, for example, generating virtual particle trails at the end of the predicted trajectory of the user's arm using a shader; and matching the light effect to the amplitude of the user's movement. For example, if the displacement vector points to the right front and has a large amplitude, the spatial coordinates of the light effect vector will be shifted to the right front accordingly, and the size of the light effect will be appropriately increased.

[0052] Step S43: Control the augmented reality device to render based on the adjusted light effect vector.

[0053] It should be understood that the light effect vector adjusted by the displacement vector includes the light effect vector of the user's arm movement trajectory over a period of time. When the controller controls the augmented reality device to perform rendering operations based on the adjusted light effect vector, the augmented reality device generates a virtual light effect image through the shader program according to the color, brightness, spatial coordinates, and animation parameters in the adjusted light effect vector, and overlays the image on the corresponding position in the user's field of vision. At this time, the light effect presented by the augmented reality device can dynamically adjust with the user's actual limb movements, enhancing the integration of virtual light effects with the real world and the sense of interactive immersion.

[0054] For example, a user wearing a smartwatch and AR glasses makes a rapid left-to-right arm swinging motion in a room. The smartwatch collects IMU data at a frequency of 200Hz. Based on behavioral feature data from the past 500 milliseconds, the LSTM model predicts the displacement vector for the next 200 milliseconds: from left to right with an amplitude of 25 centimeters. The smartwatch sends this displacement vector to the AR glasses via Bluetooth. The AR glasses have previously received a light effect vector describing a blue circular halo with a radius of 15 centimeters appearing 50 centimeters in front of the user. The glasses adjust the light effect vector based on the displacement vector: adjusting the spatial coordinates of the halo from directly in front to a position offset 25 centimeters to the right, and increasing the halo radius to 18 centimeters to match the larger amplitude of the movement. Subsequently, the AR glasses render according to the adjusted light effect vector, presenting an enlarged blue halo at the position offset to the right in the user's field of vision, coinciding with the endpoint of the user's arm swing, achieving dynamic tracking of the light effect with the movement.

[0055] Reference Figure 4 , Figure 4 This is a schematic diagram of the third process of the second embodiment of the multi-terminal optical effect vector synchronization method proposed in this invention.

[0056] In this embodiment, the multi-terminal optical effect vector synchronization method further includes: Step S401: Control the augmented reality device to receive the brightness of the light strip on the speaker detected by the ambient light sensor.

[0057] It should be understood that during audio-visual synchronization, the brightness of the LED strip on the speaker may differ from the actual brightness of the LED strip rendered on the augmented reality device. The brightness of the LED strip on the speaker is the brightness it presents in the real environment, while the brightness of the LED strip rendered on the augmented reality device is the theoretical brightness rendered based on theoretical data. Once the environment changes, there may be a certain brightness difference between the two, resulting in a reduction in the realism of the lighting effects observed by the user and the user's immersion.

[0058] It should be noted that the ambient light sensor is a photoelectric conversion device used to detect the intensity of ambient light. An ambient light sensor typically includes a photodiode or phototransistor, which converts the received visible light intensity into a corresponding electrical signal and outputs a digital illuminance value via an analog-to-digital converter. In augmented reality devices, ambient light sensors are usually integrated into the frame or temple of glasses to sense the brightness level of the user's environment or detect the luminous intensity of a specific light source (such as a speaker light strip).

[0059] In practice, the controller can control the augmented reality device to detect the actual brightness of the LED strip on the speaker in real time through its integrated ambient light sensor. The ambient light sensor operates continuously at a certain sampling frequency (e.g., 50Hz), converting the detected brightness data into digital illuminance values, which are then transmitted to the motherboard processor of the augmented reality device via an internal bus. The processor receives and records the current brightness value of the speaker's LED strip.

[0060] Step S402: Control the augmented reality device to adjust the brightness of the virtual light effect within the light effect vector according to the brightness of the light strip on the speaker to obtain the adjusted light effect vector.

[0061] It should be understood that by adjusting the brightness of the light strip on the speaker and the brightness of the virtual light effect within the light effect vector, the brightness of the virtual light effect presented after post-rendering can be made the same as the actual brightness of the light strip on the speaker.

[0062] It should be noted that the virtual lighting effect refers to a non-physical lighting effect generated by the augmented reality device through GPU rendering and presented in the user's field of vision. Virtual lighting effects differ from the physical light emitted by physical light strips; it is a digital visual overlay effect that can manifest as halos, particle trails, beams of light, light curtains, etc. For example, in the display screen of AR glasses, a semi-transparent colored light strip generated along the trajectory of the user's arm movement is a virtual lighting effect.

[0063] In practice, the augmented reality device can adjust the virtual light effect brightness parameters described in the previously received light effect vector based on the detected brightness of the speaker light strip. The purpose of this adjustment is to ensure that the virtual light effect brightness rendered by the augmented reality device is consistent with or creates a harmonious visual relationship with the actual brightness of the speaker's physical light strip. The adjustment can be achieved using a linear interpolation algorithm: a blending coefficient α (e.g., 0.5) is set, and the speaker light strip brightness value is weighted and averaged with the original virtual light effect brightness value to obtain the adjusted virtual light effect brightness value. For example, if the speaker light strip brightness is 80%, the original virtual light effect brightness is 60%, and the blending coefficient is 0.5, then the adjusted virtual light effect brightness is (80%). 0.5 + 60% 0.5) = 70%.

[0064] Step S403: Control the augmented reality device to render based on the adjusted light effect vector.

[0065] It should be understood that augmented reality (AR) devices perform rendering operations based on adjusted light effect vectors. The AR device, according to updated brightness parameters and combined with other attributes in the light effect vector (such as color, spatial coordinates, and animation parameters), generates a virtual light effect image through a shader program and overlays it onto the corresponding position in the user's field of vision. Through this brightness fusion adjustment, the virtual light effect presented by the AR device achieves visual brightness consistency with the light effect of the speaker's physical light strip, enhancing the realism and immersion of the virtual-real fusion. For example, in an interactive scenario, the smart speaker's ring light strip currently emits a warm yellow light effect with a brightness of 70%. The AR glasses worn by the user detect a brightness value of 70% for the speaker light strip through its front ambient light sensor. The AR glasses previously received a light effect vector describing a blue virtual halo with a brightness of 50% displayed 30 cm to the right of the user's field of vision. Based on the detected 70% speaker light strip brightness, the glasses processor adjusts the brightness of the virtual halo using a linear interpolation algorithm (fusion coefficient α = 0.6): adjusted brightness = 70%. 0.6 + 50% 0.4 = 62%. Then, the AR device can render a moderately bright blue virtual halo based on the adjusted 62% brightness, combined with the original blue color and spatial coordinate parameters. This makes the virtual halo more visually harmonious with the warm yellow light effect of the speaker light strip, avoiding the visual abruptness caused by the virtual light effect being too dark or too bright.

[0066] Reference Figure 5 , Figure 5 This is a schematic diagram of the fourth process of the second embodiment of the multi-terminal optical effect vector synchronization method proposed in this invention.

[0067] In this embodiment, the multi-terminal optical effect vector synchronization method further includes: Step S4011: Control the augmented reality device to calibrate the physical location of the speaker.

[0068] It should be understood that during audio-visual synchronization, considering the flickering of LED strips on the speakers, augmented reality (AR) devices typically set the rendered lighting effects directly in the center of the AR device's lens. However, when a user is using the AR device, the center of the lens may not be aligned with the actual physical position of the LED strip on the speaker. This results in a discrepancy between the user's observed lighting effect position and the actual physical position of the LED strip, causing the virtual and real lighting effects to fail to blend in three-dimensional space.

[0069] It's important to note that physical location refers to the actual spatial position of a speaker in the real world, usually described using three-dimensional coordinates or its orientation relative to a reference point. Physical location is objectively real and does not depend on any coordinate system. For example, a speaker placed in the center of a coffee table in the living room is 0.8 meters from the ground, 2 meters from the east wall, and 1.5 meters from the north wall.

[0070] During the calibration process, the augmented reality device (AR) uses its built-in camera and inertial measurement unit (IMU) to calibrate the speaker's physical location using real-time localization (RTD) technology. During initialization or while the user is wearing the device, the camera captures images of the environment, including the speaker, extracts feature points from the images (such as corner points and texture edges of the speaker's outline), and calculates the speaker's pose using IMU data. As the RTD algorithm runs, the AR gradually constructs a 3D sparse point cloud map of the environment and identifies the feature point clusters corresponding to the speaker within the map. By estimating the spatial location of these feature point clusters, the AR calibrates the speaker's physical location in the real world.

[0071] The real-time localization technology mentioned here can be short for Simultaneous Localization and Mapping (SLAM). SLAM technology allows devices to perceive their surroundings in real time in unknown environments using sensors (such as cameras, IMUs, and LiDAR), estimating their own position while building a 3D map of the environment. In augmented reality devices, SLAM technology typically utilizes visual feature points collected by cameras, combined with IMU data, to achieve six-degrees-of-freedom pose tracking and environmental mapping. For example, AR glasses, using SLAM technology, can update their position in a room in real time as the user moves and identify the spatial position of fixed objects such as speakers.

[0072] Step S4012: Control the augmented reality device to establish the three-dimensional spatial coordinates of the speaker based on the physical location.

[0073] It should be understood that, based on the calibrated physical position of the speaker, the augmented reality device assigns a unique set of three-dimensional spatial coordinates to the speaker within the unified spatial coordinate system constructed by SLAM. These three-dimensional spatial coordinates are stored digitally in the augmented reality device's memory, serving as a spatial reference for subsequent lighting effect rendering. For example, the augmented reality device can define a right-handed coordinate system with its initial position as the origin, due north as the positive z-axis, due east as the positive x-axis, and vertically upward as the positive y-axis, and then convert the speaker's physical position into coordinate values ​​within this coordinate system.

[0074] Step S4013: Control the augmented reality device to render the light effect vector to the three-dimensional spatial coordinates.

[0075] It should be understood that, given the speaker's 3D spatial coordinates, the augmented reality (AR) device renders the previously generated light effect vector to the speaker's corresponding 3D spatial coordinate position. When rendering the virtual light effect, the AR device's rendering engine sets the spatial coordinate parameters of the light effect vector to the speaker's 3D spatial coordinates, ensuring the virtual light effect appears in the user's view at the speaker's actual spatial location. At this point, the virtual light effect presented by the AR device is precisely aligned with the speaker's physical location in space, achieving a fusion of virtual and real in 3D space. For example, a user wearing AR glasses enters the living room, where a smart speaker is placed on the coffee table in the center. The AR glasses activate the SLAM (Single-Language-Assisted Mapping) algorithm, capturing feature points of the coffee table and speaker using the camera, and combining this with IMU (Important Memory) data to construct a 3D map of the living room in real time. After a few seconds of scanning and calculation, the SLAM system successfully identifies the speaker's feature point cluster and marks its physical location as the center of the coffee table, 0.75 meters from the ground. Then, the AR glasses establish a 3D spatial coordinate system with their initial position as the origin, calculating the speaker's coordinates in this system as S(0.5, 0.75, 1.2) (in meters). When the system needs to render a blue halo effect, the AR glasses set the spatial coordinates of the light effect vector to (0.5, 0.75, 1.2) at the position corresponding to the display area on the lens, and then use the GPU to render the light effect vector at that position to visually present a semi-transparent blue halo with a radius of 0.2 meters. Through the AR glasses, the user sees the blue halo floating precisely above the real speaker, achieving spatial alignment between the virtual light effect and the physical speaker.

[0076] Based on the first or second embodiment of the multi-terminal optical effect vector synchronization method described above, a third embodiment of the multi-terminal optical effect vector synchronization method of the present invention is proposed.

[0077] Reference Figure 6 , Figure 6 This is a flowchart illustrating the third embodiment of the multi-terminal optical effect vector synchronization method proposed in this invention.

[0078] In this embodiment, the multi-terminal optical effect vector synchronization method further includes: Step S50: Control the augmented reality device to capture the actual blinking moment of the speaker light strip; It should be understood that in the process of controlling audio-visual synchronization, considering that there may be certain time fluctuations in the actual driving or signal transmission process, such as signal transmission delays and packet loss, the actual audio-visual synchronization effect may be relatively poor.

[0079] It should be noted that the actual flashing moment is the precise point in time when the speaker's LED strip actually emits a change in light effect in the physical world. This actual flashing moment is captured by the augmented reality device's camera through image acquisition and analysis, for example, by detecting abrupt changes in the LED strip's brightness or color. The actual flashing moment reflects the true execution of the speaker's lighting effect. Considering that the LED strip on the speaker flashes in response to the audio signal, the specific timing of the audio signal played by the speaker can be represented by the flashing moment of the LED strip; that is, the actual flashing moment of the speaker's LED strip represents every playback moment of the audio signal.

[0080] In practice, the augmented reality device can be controlled to monitor the illumination status of the speaker's LED strip in real time using its built-in camera. The augmented reality device's camera continuously captures images of the speaker's LED strip area at a certain frame rate, and uses image processing algorithms to identify the moments when the LED strip lights up or changes color, recording the corresponding system timestamp as the actual flashing moment.

[0081] Step S60: Control the augmented reality device to determine the time deviation between the actual flashing time and the local virtual rendering time of the light effect vector.

[0082] It's important to note that the local virtual rendering moment is the point in time when the augmented reality (AR) device completes the rendering of virtual lighting effects and displays them on the screen based on rendering instructions and the local clock. This local virtual rendering moment is recorded by the AR device's rendering pipeline, such as the timestamp added by the GPU when it completes frame buffer swapping. The local virtual rendering moment represents the presentation time of the lighting effects on the AR device. Time deviation can be the time difference between the actual flicker moment and the local virtual rendering moment. Time deviation reflects the degree of asynchrony between the speaker's physical lighting effects and the AR device's virtual lighting effects, and can be measured in milliseconds. For example, if the actual flicker moment is T1 and the local virtual rendering moment is T2, then the time deviation is |T2-T1|. A larger time deviation results in worse audio-visual synchronization, and vice versa.

[0083] In practice, the augmented reality device can record the local virtual rendering time by its rendering engine when it completes the rendering of virtual lighting effects and submits them for display. Then, the actual flickering time is compared with the local virtual rendering time, and the absolute value of the difference between the two is calculated to obtain the time deviation.

[0084] Step S70: If the time deviation is greater than the preset time deviation, control the speaker to adjust the timing of sending the rendering command.

[0085] It should be noted that the preset time deviation is a pre-set, maximum allowable time deviation threshold. When the actual time deviation exceeds this threshold, the audio-visual synchronization quality is considered poor, which will affect the user experience and requires calibration adjustment. For example, the preset time deviation can be set to 15 milliseconds, meaning that adjustment will be initiated when the deviation exceeds 15 milliseconds.

[0086] In practice, the time deviation can be determined by checking if it exceeds a preset time deviation. If the time deviation exceeds the preset time deviation, it indicates a visible asynchrony between the speaker's physical lighting effect and the augmented reality device's virtual lighting effect, requiring calibration. At this point, the controller can adjust the timing of subsequent rendering commands. The adjustment method is as follows: if the augmented reality device's virtual lighting effect lags behind the speaker's actual lighting effect (i.e., the time deviation is positive), the timing of the next frame's rendering command is advanced appropriately, adding a fine-tuning amount to the original pre-release advance; if the virtual lighting effect is earlier than the actual lighting effect, the sending time is appropriately delayed. Through this closed-loop feedback adjustment, the time deviation is gradually reduced, ensuring that the lighting effects of the speaker and the augmented reality device remain synchronized within the preset time deviation. For example, in an interactive scene, the augmented reality device's camera monitors the speaker's light strip at a frame rate of 30fps. During a lighting effect trigger, the camera detects that the speaker's light strip suddenly brightens at system time T=1000ms, recording this as the actual flashing moment. Simultaneously, the augmented reality device's rendering engine records the local virtual rendering time as T=1020ms. The processor's calculation time deviation is 20ms, which is greater than the preset time deviation of 15ms. At this point, the augmented reality device sends a feedback signal to the speaker via Bluetooth. Upon receiving the feedback signal, the controller can advance the timing of the next rendering command by 20ms. That is, in the subsequent pre-release logic, the pre-release advance is increased from the original 30ms to 50ms (i.e., an increase of 20ms), thereby making the virtual rendering time of the augmented reality device more consistent with the actual flickering time of the speaker, until the time deviation is controlled within 15ms.

[0087] Based on the first, second, or third embodiments of the above-described multi-terminal optical effect vector synchronization method, a fourth embodiment of the multi-terminal optical effect vector synchronization method of the present invention is proposed.

[0088] Reference Figure 7 , Figure 7 This is a flowchart illustrating the fourth embodiment of the multi-terminal optical effect vector synchronization method proposed in this invention.

[0089] In this embodiment, step S10 includes: Step S11: Select a clock source device from the speaker, the augmented reality device, and the wearable device; It's important to clarify that a clock source device can be a device that serves as a time reference during clock synchronization. The clock source device can be selected from the devices included in the virtual reality interaction system and is responsible for broadcasting time synchronization information to other devices. For example, in a virtual reality interaction system that includes speakers, augmented reality devices, and watches, a speaker with a relatively stable clock can be selected as the clock source device, eliminating the need for an external clock source.

[0090] In a specific implementation, when the virtual reality interaction system performs clock synchronization, it selects one of the following devices as the clock source device: a speaker, an augmented reality device, and a wearable device.

[0091] Step S12: Control the clock source device to output a clock synchronization message to each other device in the virtual reality interaction system, and record the feedback messages received from each of the other devices. The clock synchronization message includes first time information of the time when the clock synchronization message is sent, and the feedback message includes second time information of the time when the clock synchronization message is received. It should be noted that the clock synchronization message can be a standardized data packet used to transmit time synchronization information. The clock synchronization message must at least contain the sender's first time information, such as the current timestamp, sequence number, and protocol identifier, for the receiver to calculate path delay and clock skew. For example, a message based on a precise time protocol carries the precise timestamp T1 of the transmission time in its payload field. Other devices refer to all devices in the virtual reality interaction system other than the clock source device. In a virtual reality interaction system including speakers, augmented reality devices, and watches, if the speakers are selected as the clock source device, then the augmented reality device and the watch are considered other devices. A feedback message is a response data packet sent by other devices to the clock source device after receiving the clock synchronization message. The feedback message typically includes the receiver's recorded reception timestamp and first time information, as well as the transmission timestamp (second time information) when sending the feedback message.

[0092] The first time information refers to the local time value when the clock source device sends the clock synchronization message. This first time information is typically recorded as a high-precision timestamp, with an accuracy down to the microsecond or even nanosecond level. The second time information refers to the local time value when other devices receive the clock synchronization message. This second time information is also recorded as a high-precision timestamp and is used for subsequent delay calculations.

[0093] In the specific workflow, the selected clock source device outputs clock synchronization messages to other devices within the virtual reality interaction system. The clock synchronization message contains the first time information—the timestamp T1 recorded by the speaker—when it is sent. Upon receiving the clock synchronization message, each other device immediately records its local time as the second time information T2 and sends a feedback message to the clock source device. The feedback message contains the reception time T2 and the transmission time T3. Upon receiving the feedback message, the clock source device records the reception time T4.

[0094] Step S13: Synchronize the clock source device with the other devices according to the first time information and the second time information.

[0095] Understandably, given the first and second time information, the path delay between the clock source device and other devices can be calculated based on these two information. The controller can use the calculated path delay to offset the local clocks of other devices, ensuring their clocks are synchronized with the clock source device. Of course, during the path delay calculation, the average path delay can be obtained by averaging multiple sets of data to mitigate potential randomness issues during message transmission. The formula for calculating the average path delay is: T_delay = [(T2-T1) + (T4-T3)] / 2. Here, T_delay is the average path delay, T1 is the time the clock source device sends the clock synchronization message, T2 is the time other devices receive the clock synchronization message, T3 is the time other devices send feedback messages, and T4 is the time the clock source device receives feedback messages from other devices. For example, a virtual reality interactive system includes speakers, AR glasses, and a smartwatch. The system selects the speakers as the clock source device. The speaker sends a clock synchronization message via Wi-Fi to the AR glasses and watch at system time T1 = 1000.000ms. The message carries the time T1 = 1000.000ms. The AR glasses receive this message at local time T2 = 1000.350ms and immediately record T2. Subsequently, the AR glasses send a feedback message to the speaker, containing T2 = 1000.350ms and the transmission time T3 = 1000.380ms. The speaker receives this feedback message at local time T4 = 1000.730ms. The controller can calculate the average path delay: [(1000.350 - 1000.000) + (1000.730 - 1000.380)] / 2 = (0.350 + 0.350) / 2 = 0.350ms. The controller can then send the calculation result to the AR glasses. The AR glasses adjust their local clock accordingly, subtracting 0.350ms from the local time to synchronize with the speaker's clock. Similarly, the watch synchronizes with the speaker's clock through the same process.

[0096] Furthermore, in this embodiment, step S11 specifically includes: Step S111: Obtain the chip computing power and power supply stability in the speaker, the augmented reality device, and the wearable device.

[0097] It should be understood that when selecting a clock source device from speakers, augmented display devices, and wearable devices, the controller can utilize the chips within these devices as carriers, and the clock source of these carriers can be used as a synchronization clock source. Therefore, the computing power of the chips in the speakers, augmented display devices, and wearable devices needs to be considered when selecting a clock source device. Of course, the clock source device needs to provide clock signal synchronization for the other two devices, so the power supply stability of the clock source device also needs to be considered to avoid clock synchronization deviations caused by power instability.

[0098] It's important to note that chip computing power is a metric for the number of computational tasks a chip can execute per unit of time. Chip computing power is typically expressed as floating-point operations per second (Floats Per Second), millions of instructions per second (MUST), or a combination of core frequency and core count. In virtual reality (VR) interactive systems, the computing power of different devices varies significantly. For example, a speaker might use a high-performance application processor, an augmented reality device might use a mid-range mobile processor, while a smartwatch might use a low-power microcontroller. For instance, a speaker's chip computing power might be 1.5 TFLOPS, an augmented reality device's might be 0.5 TFLOPS, and a smartwatch's might be 0.01 TFLOPS. Considering only chip computing power, a speaker could be prioritized as a clock source device. However, smartwatches have lower chip computing power and may not be able to perform high-performance logical operations; therefore, smartwatches are not suitable as controllers, i.e., not suitable as clock source devices. Power supply stability refers to the smoothness of the power supply voltage and current during device operation. Power supply stability is affected by factors such as the power supply method (e.g., battery power or AC power), power management circuit design, and load fluctuations. For example, speakers are powered by AC mains electricity, which is stable and sustainable; augmented reality devices and smartwatches are powered by batteries, whose voltage fluctuates as the battery level drops, resulting in relatively poor power supply stability.

[0099] In practical implementation, when selecting clock source devices, each device can obtain floating-point values ​​through internal self-test programs, such as running benchmark programs, during the system initialization phase. This allows for the assessment of its own chip computing power and the detection of electrical parameters such as whether the power supply is AC or battery, and the current power percentage, to determine the power supply status.

[0100] Step S112: Select the clock source device from the speaker, the augmented reality device, and the wearable device based on the chip's computing power and the power supply stability.

[0101] It should be understood that, given the chip computing power and power supply stability of each device, the most suitable device to serve as the clock source can be selected from speakers, augmented reality devices, and wearable devices based on the obtained chip computing power and power supply stability. The selection principle is that the clock source device needs to frequently send high-precision timestamp messages and process feedback messages, placing high demands on computing power and power continuity. Therefore, the device with the strongest chip computing power and the highest power supply stability is prioritized as the clock source device. In the specific selection process, a comprehensive scoring rule can be set. For example, the chip computing power is normalized and multiplied by a weighting coefficient A, and the power supply stability is normalized and multiplied by a weighting coefficient B. The sum is then used to obtain a total score, and the device with the highest total score is selected as the clock source device, where the sum of A and B is 1. For example, a virtual reality interactive system includes a smart speaker, a pair of AR glasses, and a smartwatch. During system initialization, each device reported its own parameters: the speaker's chip computing power was 1.2 TFLOPS, powered by AC power, and its stability rating was 10; the AR glasses' chip computing power was 0.4 TFLOPS, powered by battery, with a current battery level of 80%, and its stability rating was 7; the smartwatch's chip computing power was 0.02 TFLOPS, powered by battery, with a current battery level of 90%, and its stability rating was 6. After normalizing the chip computing power, the speaker scored 1.0, the glasses scored 0.33, and the smartwatch scored 0.017; the power supply stability scores were 10, 7, and 6 respectively. Overall score: Speaker = 1.0 0.6+10 0.4 = 4.6; glasses = 0.33 0.6+7 0.4 = 2.998; watch = 0.017 0.6+6 0.4 = 2.4102, so the speaker with the highest total score is selected as the clock source device.

[0102] Furthermore, to achieve the above objectives, the present invention also provides a virtual reality interaction system. (Refer to...) Figure 8 , Figure 8 This is a schematic diagram of the structure of the virtual reality interaction system proposed in this invention.

[0103] exist Figure 8 The virtual reality interaction system includes: a speaker 10, an augmented reality device 20, a controller 40, and a wearable device 30; The controller 40 is disposed within the speaker 10, the augmented reality device 20, or the wearable device 30, and is connected to the speaker 10, the augmented reality device 20, and the wearable device 30; the augmented reality device 20 is connected to the wearable device 30. The controller 40 can be used to execute the multi-terminal optical effect vector synchronization method described in any of the above embodiments.

[0104] The speaker 10 may be equipped with an LED strip, a linear or ring-shaped light-emitting device mounted on the speaker housing. The LED strip is typically composed of multiple LED beads, and the color and brightness of each bead can be independently adjusted according to the control signal to achieve dynamic lighting effects such as running lights, breathing lights, and flashing lights.

[0105] The virtual reality interaction system further includes: an ambient light sensor 50, which is connected to the augmented reality device 20; The augmented reality device 20 is equipped with a camera 60, which is used to capture the actual flashing time of the speaker light strip; The wearable device 30 is equipped with an inertial measurement sensor 70, which is used to collect the user's behavioral characteristics.

[0106] It should be noted that camera 60 is an optical imaging device used to capture still images or moving videos. In augmented reality devices, camera 60 typically employs a miniature CMOS image sensor module, integrating a lens and a photosensitive chip, capable of continuously capturing environmental images at a certain frame rate. Camera 60 can be used to monitor the illumination status of speaker light strips in real time, detecting the instantaneous on / off state or color change of the light strips through image processing algorithms. Inertial measurement sensor 70 is a sensor or combination of sensors used to detect the position and attitude information of an object in three-dimensional space. Inertial measurement sensor 70 typically integrates multiple inertial measurement elements, such as accelerometers, gyroscopes, and magnetometers, calculating parameters such as the object's tilt angle, rotation direction, and acceleration through fusion algorithms. In wearable devices, inertial measurement sensor 70 is used to collect the motion trajectory and attitude changes of the user's limbs.

[0107] In its implementation, the ambient light sensor 50 is electrically connected to the augmented reality device 20 via an internal bus to detect the ambient light intensity or the actual brightness of the speaker light strip. The ambient light sensor 50 transmits the detected brightness data to the motherboard processor of the augmented reality device 20 in real time for subsequent virtual lighting effect brightness adjustment. The camera 60 is positioned on the outside of the frame or temple of the augmented reality device. The camera 60 continuously captures environmental images, including the speaker light strip, at a certain frame rate. The motherboard processor of the augmented reality device 20 runs an image processing algorithm to identify the moment when the speaker light strip turns on or off or changes color from the continuous image frames, and records the corresponding system timestamp as the actual flashing moment of the speaker light strip. This actual flashing moment is compared with the local virtual rendering moment of the augmented reality device 20 to calculate the time deviation, providing a basis for closed-loop calibration.

[0108] An inertial measurement sensor 70 is housed within the wearable device. This sensor continuously acquires triaxial acceleration and triaxial angular velocity data of the user's limbs at a high-frequency sampling rate. The wearable device's main control chip filters and reduces noise from the raw data and performs attitude calculations to extract behavioral features such as the user's arm swing direction, speed, and trajectory. This behavioral feature data is then transmitted via Bluetooth Low Energy to an augmented reality device or controller to predict the user's future displacement vector and adjust the spatial position of the light effect vector accordingly.

[0109] In addition, the controller 40 can execute the content of the multi-terminal optical effect vector synchronization method in any of the above embodiments. The specific steps can be referred to the embodiments of the multi-terminal optical effect vector synchronization method described above, and will not be repeated here.

[0110] The above are merely preferred embodiments of the present invention and do not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. A multi-terminal optical effect vector synchronization method, characterized in that, Virtual reality interaction systems applied to speakers, augmented reality devices, and wearable devices include: The speaker, the augmented reality device, and the wearable device are synchronized with clocks. Obtain the delay duration of the speaker's driving circuit and the delay duration of the augmented reality device's rendering pipeline; The timing of sending rendering commands, including light effect vectors, to the augmented reality device is determined based on the delay duration of the driving circuit and the delay duration of the rendering pipeline. At the transmission time, a rendering instruction including the light effect vector is output to the augmented reality device so that the augmented reality device can complete the rendering of the light effect vector at the same time that the audio signal reaches the speaker in the speaker box.

2. The multi-terminal optical effect vector synchronization method as described in claim 1, characterized in that, The multi-terminal optical effect vector synchronization method also includes: The speaker is controlled to acquire the audio signal to be played, and the audio attributes of the audio signal are converted into light effect saturation. At the same time, a beat trigger pulse sequence of the audio signal is generated. The wearable device is controlled to collect the user's behavioral and physiological characteristics; The light effect vector is generated based on the light effect saturation, the beat trigger pulse sequence, the behavioral characteristics, and the physiological characteristics.

3. The multi-terminal optical effect vector synchronization method as described in claim 1, characterized in that, The multi-terminal optical effect vector synchronization method also includes: The wearable device is controlled to collect the user's behavioral characteristics, and the displacement vector within a preset time period is predicted based on the behavioral characteristics. The augmented reality device is controlled to adjust the received light effect vector based on the displacement vector; The augmented reality device is controlled to render based on the adjusted light effect vector.

4. The multi-terminal optical effect vector synchronization method as described in claim 1, characterized in that, The multi-terminal optical effect vector synchronization method also includes: The augmented reality device receives the brightness of the light strip on the speaker detected by the ambient light sensor; The augmented reality device is controlled to adjust the brightness of the virtual light effect within the light effect vector according to the brightness of the light strip on the speaker to obtain the adjusted light effect vector; The augmented reality device is controlled to render based on the adjusted light effect vector.

5. The multi-terminal optical effect vector synchronization method as described in claim 1, characterized in that, The multi-terminal optical effect vector synchronization method also includes: The augmented reality device is controlled to capture the actual blinking time of the speaker light strip; The augmented reality device is controlled to determine the time deviation between the actual flashing moment and the local virtual rendering moment of the light effect vector; If the time deviation is greater than a preset time deviation, the speaker is controlled to adjust the timing of sending the rendering command.

6. The multi-terminal optical effect vector synchronization method as described in claim 1, characterized in that, The multi-terminal optical effect vector synchronization method also includes: Control the augmented reality device to determine the physical location of the speaker; The augmented reality device is controlled to establish the three-dimensional spatial coordinates of the speaker based on the physical location; The augmented reality device is controlled to render the light effect vector to the three-dimensional spatial coordinates.

7. The multi-terminal optical effect vector synchronization method as described in any one of claims 1 to 6, characterized in that, The clock synchronization of the speaker, the augmented reality device, and the wearable device includes: Select a clock source device from the speaker, the augmented reality device, and the wearable device; The clock source device is controlled to output clock synchronization messages to other devices within the virtual reality interaction system, and the feedback messages received from each of the other devices are recorded. The clock synchronization message includes first time information of the time when the clock synchronization message is sent, and the feedback message includes second time information of the time when the clock synchronization message is received. The clock source device is synchronized with the other devices based on the first time information and the second time information.

8. The multi-terminal optical effect vector synchronization method as described in claim 7, characterized in that, The step of selecting a clock source device from the speaker, the augmented reality device, and the wearable device includes: The computing power and power supply stability of the chips within the speaker, the augmented reality device, and the wearable device are obtained. The clock source device is selected from the speaker, the augmented reality device, and the wearable device based on the chip's computing power and the power supply stability.

9. A virtual reality interactive system, characterized in that, include: Speakers, augmented reality devices, controllers, and wearable devices; The controller is located inside the speaker, augmented reality device, or wearable device, and is connected to the speaker, augmented reality device, and wearable device. The augmented reality device is connected to the wearable device; The controller is used to execute the multi-terminal optical effect vector synchronization method according to any one of claims 1 to 8.

10. The virtual reality interactive system as described in claim 9, characterized in that, The virtual reality interaction system further includes an ambient light sensor, which is connected to the augmented reality device. The augmented reality device is equipped with a camera, which is used to capture the actual blinking time of the speaker light strip; The wearable device is equipped with an inertial measurement sensor, which is used to collect the user's behavioral characteristics.