Star flash multi-device cooperative wireless earphone audio synchronization optimization method

Through RF signal time-of-flight calibration, dynamic master device election and Polar code redundancy mechanism, the problems of crystal oscillator drift and multipath interference in wireless headset audio synchronization are solved, achieving high-precision, interference-resistant audio synchronization effect.

CN120750476APending Publication Date: 2025-10-03WUHAN PANSHENG DINGCHENG TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510847609.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-24
Publication Date
2025-10-03

AI Technical Summary

Technical Problem

Existing wireless headset audio synchronization solutions have problems such as crystal oscillator drift, delay accumulation caused by movement, multipath interference, and low resource allocation efficiency in multi-device collaborative transmission, making it difficult to meet high-precision synchronization requirements.

Method used

Crystal oscillator drift errors are eliminated through RF signal flight time measurement, a master device is dynamically elected, motion status is monitored in real time to adjust the buffer depth, Polar code dynamic redundancy mechanism and multipath reflection fusion are adopted, audio frames are differentially processed, and a preemptive scheduling strategy is implemented.

Benefits of technology

Achieve nanosecond-level clock synchronization, reduce audio synchronization errors and packet loss rates, improve anti-interference capabilities and resource allocation efficiency in complex environments, and ensure audio continuity and high fidelity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120750476A_ABST
    Figure CN120750476A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of wireless audio, and provides a satellite flash multi-device cooperative wireless earphone audio synchronization optimization method, which comprises the following steps: eliminating crystal oscillator drift errors through radio frequency signal flight time measurement, and electing a main device by a dynamic election algorithm to realize clock synchronization; a motion state prediction track is monitored in real time, the depth of a buffer area is adjusted, sound velocity time delay is compensated in combination with environmental parameters, and a key frequency band redundant packet is enhanced in a physiological activity window period; a Polar code dynamic redundancy mechanism and multipath reflection are fused to cope with channel interference; an audio stream is decomposed into key frames and non-key frames, and a transmission strategy is optimized through multi-link transmission, dynamic auction and preemptive scheduling. According to the scheme, the problems of clock asynchronization, motion lagging, environment interference and the like in multi-device cooperation can be solved, the audio synchronization precision and the anti-interference capability can be effectively improved, and the method is suitable for a high-precision wireless audio transmission scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of wireless audio technology, and in particular relates to a method for optimizing the audio synchronization of wireless headphones using Star Flash multi-device collaboration. Background Art

[0002] With the increasing prevalence of wireless audio technology, multi-device collaborative scenarios (such as virtual reality, multi-person voice interaction, and stereo gaming) are placing higher demands on the real-time and stable performance of audio synchronization. As a next-generation wireless communication technology, Starflash technology offers low latency and high reliability, but it still faces challenges in multi-device collaborative transmission, such as insufficient clock synchronization accuracy and poor environmental adaptability. Current wireless headphone audio synchronization solutions commonly suffer from accumulated delays caused by crystal oscillator drift and motion, as well as multipath interference in complex environments and inefficient resource allocation, making it difficult to meet high-precision synchronization requirements.

[0003] In the existing technology, some solutions achieve device clock synchronization through timestamp marking and one-way timing protocols, but do not consider real-time calibration of crystal oscillator drift; some solutions use fixed buffer depth to deal with motion scenes, but cannot dynamically adapt to changes in head trajectory; in addition, traditional redundant transmission mechanisms lack adaptive adjustment of channel quality, provide insufficient protection for specific frequency bands sensitive to the human ear, and do not perform differentiated processing of key frames and non-key frames in audio streams, resulting in low resource allocation flexibility. Summary of the Invention

[0004] The purpose of the present invention is to provide a wireless headset audio synchronization optimization method for Star Flash multi-device collaboration, aiming to solve the technical problems existing in the existing technology identified in the background technology.

[0005] The present invention is implemented as follows: a method for optimizing the audio synchronization of wireless headphones using Star Flash multi-device collaboration, the method comprising: The physical distance difference between devices is measured by the RF signal flight time and the crystal oscillator drift error is eliminated. A unique control device is elected through a dynamic election algorithm at a preset time period and defined as the master device. All other collaborative devices are defined as slave devices. The master device broadcasts a synchronization anchor frame, which enables the slave devices to align their local clocks through the Star Flash physical layer timestamp. Real-time monitoring of wireless headset motion status, prediction of future head movement trajectories, and dynamic adjustment of the sound channel buffer depth. A dynamic correction model for sound propagation is established to calculate delay offsets caused by environmental parameters and compensate for environmental delays. Simultaneously, physiological movements are detected and redundant packets are enhanced in the 300-3000Hz frequency band during the active window period. Polar code dynamic redundancy mechanism is used to adaptively adjust the number of redundant packets (1%-30%) and the buffer depth (5-50ms) based on channel quality assessment. It also monitors electromagnetic interference levels and adaptively activates multipath reflection mirror packet fusion. The acquired audio stream is decomposed into key frames and non-key frames. For key frames: concurrent transmission is carried out through Star Flash multi-link and a three-copy storage guarantee mechanism is set up. For non-key frames: a dynamic auction algorithm is established to allocate transmission links and channel quality prediction is performed. A preemptive scheduling strategy is generated based on the prediction results, and emergency transmission mode is triggered on demand according to the preemptive scheduling strategy.

[0006] As a further solution of the present invention, when the unique control device is selected by the dynamic election algorithm, a seamless transition is performed by pre-embedded redundant timestamp packets when the master device and the slave device switch.

[0007] As a further solution of the present invention, the method of measuring the physical distance difference between devices by using the time of flight of the radio frequency signal and eliminating the crystal oscillator drift error specifically includes: A timestamp generation module is embedded in the Star Flash protocol stack, and nanosecond timestamps are marked on both ends of the radio frequency signal transmission and reception through the timestamp generation module; A two-way timing protocol is used to calculate the round-trip time of the radio frequency signal and resolve the physical distance difference between devices. Based on the physical distance difference, the crystal oscillator frequency offset is calibrated in real time. The dynamic campaign algorithm is specifically as follows: ; in, is the weight coefficient, is the signal strength, is the percentage of remaining power, Motion acceleration of wireless headphones; With a cycle of 10ms, the signal strength, remaining power and motion acceleration parameters of each device are comprehensively considered. A weighted voting mechanism is used to elect the master device based on the signal strength, remaining power and acceleration of the wireless headset.

[0008] As a further solution of the present invention, the real-time monitoring of the motion state of the wireless headset specifically includes: The integrated three-axis accelerometer and gyroscope are used to obtain the motion data of the wireless headset and predict the future based on the extended Kalman filter algorithm. Head movement trajectory at each moment; ; in, For the future The trajectory of movement at any moment, , indicating the current moment The position of the center of mass of the wireless headset in the inertial coordinate system, , indicating the current moment The linear velocity of the center of mass of the wireless headset, , indicating the current moment The acceleration of the wireless headset's center of mass; Dynamically adjust the channel buffer depth based on the motion trajectory, when the displacement is predicted When it is greater than the displacement threshold, the buffer depth is adjusted according to the exceeded value; The physiological action detection is specifically: using a capacitive sensor to monitor blinking actions in real time, and when two consecutive blinking events are detected, it is determined to be a physiological activity window period.

[0009] As a further solution of the present invention, the calculation of the delay offset caused by the environmental parameters and the compensation of the environmental delay are specifically as follows: Real-time collection of ambient temperature through integrated temperature and humidity sensors and relative humidity , calculate the current air medium sound speed : ; Dynamically correct the audio transmission delay offset based on the difference between the speed of sound and the standard speed of sound : ; in, is the physical distance between devices.

[0010] As a further solution of the present invention, the redundant packet enhancement is implemented in the 300-3000 Hz frequency band, specifically including: Within 0.5s of the physiological activity window, a double-redundant packet is generated for the 300-3000Hz frequency band audio data. The redundant packets are independently transmitted through the control channel of the Star Flash protocol and form time division multiplexing with the main data stream.

[0011] As a further solution of the present invention, the Polar code dynamic redundancy mechanism includes: Build a channel quality assessment model and calculate the signal-to-noise ratio in real time and bit error rate , and set the signal-to-noise ratio threshold and bit error rate threshold respectively. Less than the signal-to-noise ratio threshold, When the bit error rate is greater than the threshold, the number of redundant packets is triggered to be adaptively adjusted; Dynamically adjust the number of redundant packets , and according to the motion acceleration of the wireless headset Dynamically adjust buffer depth : ; ; The multipath reflection mirror data packet fusion is specifically as follows: A path threshold is set. When it is detected that the effective reflection path exceeds the path threshold, the mirror data packets are fused through the maximum ratio combining algorithm to eliminate the phase distortion caused by multipath interference.

[0012] As a further solution of the present invention, the obtained audio stream is decomposed into key frames and non-key frames, specifically: Perform frequency domain analysis on the input audio stream and set a high-frequency threshold for the frequency interval. The components within the frequency interval are defined as key frames, corresponding to the basic audio related to human bone conduction. Components greater than the high-frequency threshold are defined as non-keyframes, corresponding to environmental detail sound effects and overtones; The dynamic bidding algorithm is specifically as follows: ; in, represents the bidding weight, The remaining bandwidth ratio is the ratio of the current available transmission bandwidth of the slave device to the maximum supported bandwidth of the device; According to the current remaining bandwidth and link quality of each slave device, the non-key frame transmission rights are auctioned according to the auction weight, and the slave device with the highest auction weight obtains the transmission link allocation.

[0013] As a further solution of the present invention, the preemptive scheduling strategy includes: When the wireless headset's motion acceleration 、 When , the emergency transmission mode is triggered; The emergency transmission mode includes: Raise the keyframe priority to the highest level and shorten the scheduling cycle; The number of redundant packets is forced to be locked at 30%, and all devices are coordinated to switch to the 2.4GHz / 5GHz anti-interference frequency band through the Star Flash control channel; For key frames, the same data frame is synchronously stored in the caches of the master device and at least two slave devices.

[0014] The beneficial effects of the present invention are: This invention achieves nanosecond-level clock synchronization and eliminates crystal oscillator drift errors through RF signal time-of-flight calibration and dynamic master device election. It also combines head motion trajectory prediction with dynamic buffer adjustment to proactively address motion-induced delay changes and avoid lags. It also corrects sound propagation delay in real time based on environmental parameters to ensure synchronization accuracy in different scenarios. By integrating the dynamic redundancy mechanism of Polar codes with multipath reflections, anti-interference capabilities in complex environments are enhanced. Implement differentiated protection for key frequency bands and key frames, and combine dynamic bidding with preemptive scheduling to optimize resource allocation efficiency; In addition, the solution of the present invention can effectively reduce audio synchronization errors and packet loss rates, maintain audio continuity and high fidelity in scenarios such as strenuous exercise and electromagnetic interference, and significantly improve the stability and user experience of multi-device collaborative audio transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A flowchart of a method for optimizing wireless headset audio synchronization using Starflash multi-device collaboration provided by an embodiment of the present invention; Figure 2 A flowchart of measuring the physical distance difference between devices and eliminating crystal oscillator drift errors by using radio frequency signal flight time provided by an embodiment of the present invention; Figure 3 A flowchart of real-time monitoring of the motion status of wireless headphones provided by an embodiment of the present invention; Figure 4 A flowchart of the Polar code dynamic redundancy mechanism provided in an embodiment of the present invention; Figure 5 A flowchart of decomposing an acquired audio stream into key frames and non-key frames is provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0016] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0017] Figure 1 The flowchart of the wireless headset audio synchronization optimization method for Star Flash multi-device collaboration provided by the embodiment of the present invention is as follows Figure 1 As shown, the wireless headset audio synchronization optimization method for Star Flash multi-device collaboration includes: S100 uses the time-of-flight of RF signals to measure the physical distance difference between devices and eliminate crystal oscillator drift errors. A dynamic election algorithm is used to select a unique control device in a 10ms cycle, which is defined as the master device. All other collaborative devices are defined as slave devices. The master device broadcasts synchronization anchor frames, allowing the slave devices to align their local clocks using the Star Flash physical layer timestamp. By embedding a timestamp generation module in the Star Flash protocol stack, nanosecond-level timestamps can be marked at both ends of the RF signal transmission and reception. The round-trip time of the signal can be accurately calculated with the help of a two-way timing protocol, and the physical distance difference between the devices can be solved. Based on this distance difference, the crystal oscillator frequency offset is calibrated in real time to eliminate the clock deviation caused by crystal oscillator drift.

[0018] On this basis, a dynamic election algorithm is executed in a 10ms cycle. Using a weighted voting mechanism, a single master device is elected based on the signal strength, remaining battery percentage, and motion acceleration parameters of each device. The remaining devices serve as slaves. The master device broadcasts a synchronization anchor frame, which aligns the slave devices' local clocks using the Star Flash physical layer timestamp. Furthermore, when switching between master and slave devices, a seamless transition is achieved by pre-embedded redundant timestamp packets, preventing clock synchronization interruptions during the switching process.

[0019] This step improves the clock synchronization accuracy between devices to the nanosecond level through nanosecond timestamp marking and a two-way timing protocol, effectively solving the problem of inconsistent delays caused by accumulated crystal oscillator drift in traditional wireless audio systems and ensuring the timing consistency of audio transmission across multiple devices.

[0020] The dynamic election algorithm combines signal strength, battery level, and motion status parameters to elect a master device, enabling the system to automatically select the optimal master device in complex scenarios. For example, when the signal strength of a device decreases due to movement, the algorithm will prioritize switching the master device role to a device with a more stable signal and sufficient battery level, ensuring the reliable broadcast of synchronization anchor frames.

[0021] The seamless transition mechanism with pre-embedded redundant timestamp packets can maintain the continuity of clock synchronization when the main device switches. For example, when the device role switches during user movement, there will be no audio freeze due to clock reset.

[0022] This high-precision clock synchronization and adaptive master device management mechanism establishes a stable time base for multi-device collaborative audio transmission. It is particularly suitable for audio scenarios that require real-time interaction, such as multi-person real-time voice calls or stereo gaming scenarios. It can significantly reduce audio latency and synchronization errors, thereby improving the user experience.

[0023] like Figure 2 As shown, the method of measuring the physical distance difference between devices by using the flight time of the radio frequency signal and eliminating the crystal oscillator drift error specifically includes: S110, embedding a timestamp generation module in the Star Flash protocol stack, and marking nanosecond timestamps on both ends of the radio frequency signal transmission and reception by the timestamp generation module; S120, using a two-way timing protocol to calculate the round-trip time of the radio frequency signal, and solving the physical distance difference between the devices, and performing real-time calibration of the crystal oscillator frequency offset based on the physical distance difference; The dynamic campaign algorithm is specifically as follows: ; in, is the weight coefficient, is the signal strength, is the percentage of remaining power, Motion acceleration of wireless headphones; S130, with a cycle of 10ms, comprehensively considers the signal strength, remaining power, and motion acceleration parameters of each device, and elects the master device through a weighted voting mechanism that combines signal strength, remaining power, and wireless headset acceleration.

[0024] Furthermore, when the only control device is selected by the dynamic election algorithm, a seamless transition is performed by pre-embedded redundant timestamp packets when the master device and the slave device switch.

[0025] S200 monitors the motion status of wireless headphones in real time, predicts future head movement trajectory and dynamically adjusts the sound channel buffer depth. It also establishes a dynamic correction model for sound propagation, calculates the delay offset caused by environmental parameters and compensates for environmental delay. It also detects physiological movements and implements redundant packet enhancement in the 300-3000Hz frequency band during the activity window. In this step, the integrated three-axis accelerometer and gyroscope are used to collect the motion data of the wireless headset in real time, and the extended Kalman filter algorithm is used to predict the future motion data. The head movement trajectory at each moment is predicted, and the channel buffer depth is dynamically adjusted based on the comparison between the predicted displacement and the set displacement threshold.

[0026] For example, when the user's head turns quickly and the predicted displacement exceeds the threshold, the system will automatically increase the buffer depth to accommodate the additional transmission delay caused by the movement.

[0027] At the same time, environmental parameters are collected in real time through temperature and humidity sensors, and the sound speed calculation formula is used to dynamically correct the sound speed in the current air medium. The time delay offset caused by the environmental parameters is then calculated and compensated for, ensuring that the audio transmission delay matches the actual sound speed propagation characteristics.

[0028] In addition, a capacitive sensor is used to monitor blinking movements. When two consecutive blinks are detected, it is determined as a physiological activity window period. Within 0.5 seconds, a double redundant packet is generated for the 300-3000Hz frequency band audio data. It is independently transmitted through the Star Flash control channel and time-division multiplexed with the main data stream to enhance the anti-packet loss capability of the key frequency band audio.

[0029] This step uses motion trajectory prediction and a dynamic buffer adjustment mechanism to proactively address transmission path changes caused by head movement, preventing audio stuttering due to sudden movements. For example, if the user's head shakes frequently while running, the system can pre-adjust the buffer based on the predicted trajectory to ensure timely buffering of audio data and maintain playback continuity.

[0030] The dynamic correction model for sound propagation can adapt to changes in ambient temperature and humidity in real time. For example, when switching between an air-conditioned room and a high-temperature outdoor environment, it automatically compensates for the time delay offset caused by the difference in sound speed, avoiding the problem of left and right channel asynchrony caused by environmental factors.

[0031] The redundant packet enhancement strategy triggered by physiological movements provides targeted protection for the 300-3000Hz voice frequency band, to which the human ear is sensitive. When the user blinks (possibly accompanied by micro-movements of the head), the integrity of the audio in this frequency band is ensured through redundant packet transmission. Especially in noisy environments, this can significantly improve voice clarity and audio stability, reduce audio distortion caused by electromagnetic interference or movement, and provide users with a more immersive and uninterrupted audio experience.

[0032] like Figure 3 As shown, the real-time monitoring of the motion status of the wireless headset specifically includes: S210 uses an integrated three-axis accelerometer and gyroscope to obtain motion data from wireless headphones and predict future movements based on the extended Kalman filter algorithm. Head movement trajectory at each moment; ; in, For the future The trajectory of movement at any moment, , indicating the current moment The position of the center of mass of the wireless headset in the inertial coordinate system, , indicating the current moment The linear velocity of the center of mass of the wireless headset, , indicating the current moment The acceleration of the wireless headset's center of mass; S220, dynamically adjust the channel buffer depth based on the motion trajectory, when the predicted displacement When it is greater than the displacement threshold, the buffer depth is adjusted according to the exceeded value; The physiological action detection is specifically: using a capacitive sensor to monitor blinking actions in real time, and when two consecutive blinking events are detected, it is determined to be a physiological activity window period.

[0033] The calculation of the delay offset caused by the environmental parameters and compensation for the environmental delay is specifically as follows: S230 collects ambient temperature in real time through the integrated temperature and humidity sensor and relative humidity , calculate the current air medium sound speed : ; S240, dynamically correcting the audio transmission delay offset according to the difference between the sound speed and the standard sound speed : ; in, is the physical distance between devices.

[0034] The redundant packet enhancement for the 300-3000 Hz frequency band specifically includes: S250: Generate a double-redundant packet for the 300-3000 Hz frequency band audio data within 0.5 seconds of the physiological activity window period; The redundant packets are independently transmitted through the control channel of the Star Flash protocol and form time division multiplexing with the main data stream.

[0035] The S300 uses a Polar code dynamic redundancy mechanism to adaptively adjust the number of redundant packets (1%-30%) and the buffer depth (5-50ms) based on channel quality assessment. It also monitors electromagnetic interference levels and adaptively activates multipath reflection mirror packet fusion. This step calculates the signal-to-noise ratio (SNR) in real time by building a channel quality assessment model. ) and bit error rate ( ),when Below threshold or When the threshold is higher than the threshold, the Polar code dynamic redundancy mechanism is triggered, and the number of redundant packets is dynamically adjusted (1%-30%) according to the formula. At the same time, according to the acceleration of the wireless headset movement Adjust the buffer depth in stages .

[0036] For example, when the user is in an environment with strong electromagnetic interference such as a subway, Down to 10 When the system automatically increases the number of redundant packages to 15%, and when the user runs ( ) to mitigate transmission jitter caused by intense movement. Furthermore, the system monitors electromagnetic interference levels in real time. When a valid reflection path is detected exceeding a threshold, it fuses multipath reflection mirror packets using a maximum ratio combining algorithm to eliminate phase distortion caused by reflections from walls and metal objects. For example, in complex indoor environments, the mirror packets generated by the reflection path are combined with the main signal to improve signal integrity.

[0037] The significant advantage of this step is that through the dynamic redundant packet mechanism and the adaptive adjustment of the buffer depth, a flexible transmission framework that takes into account both anti-interference ability and transmission efficiency is constructed. ), the number of redundant packets automatically increases to 30%. Combined with the three-copy storage mechanism, the audio packet loss rate can be reduced to below 0.1%, ensuring the continuity of critical scenarios such as voice calls; Dynamically adjusting the buffer depth based on the motion status can reserve sufficient buffer space when the user is exercising vigorously (such as jumping or shaking their head quickly), avoiding data packet disorder or delay accumulation caused by sudden acceleration. Experimental data shows that this mechanism can reduce the audio stuttering rate in motion scenarios by 80%.

[0038] Multipath reflection fusion technology can improve the signal-to-noise ratio by 3-5 in multi-obstacle environments such as shopping malls and stations through the maximum ratio combining algorithm. It effectively solves the problems of fuzzy and disconnected sound caused by multipath interference in traditional wireless headphones in complex environments. It is especially suitable for music appreciation and virtual reality scenarios that require high-fidelity audio transmission. It maintains audio synchronization accuracy within 10ms, significantly improving the immersiveness and reliability of the user experience.

[0039] like Figure 4 As shown, the Polar code dynamic redundancy mechanism includes: S310: Build a channel quality assessment model and calculate the signal-to-noise ratio in real time and bit error rate , and set the signal-to-noise ratio threshold and bit error rate threshold respectively. Less than the signal-to-noise ratio threshold, When the bit error rate is greater than the threshold, the number of redundant packets is triggered to be adaptively adjusted; S320, dynamically adjust the number of redundant packets , and according to the motion acceleration of the wireless headset Dynamically adjust buffer depth : ; ; The multipath reflection mirror data packet fusion is specifically as follows: S330 , setting a path threshold. When it is detected that the effective reflection path exceeds the path threshold, the mirror data packets are merged using a maximum ratio combining algorithm to eliminate phase distortion caused by multipath interference.

[0040] S400 decomposes the acquired audio stream into key frames and non-key frames. For key frames: concurrent transmission is carried out through Star Flash multi-link and a three-copy storage guarantee mechanism is set up. For non-key frames: a dynamic auction algorithm is established to allocate transmission links and channel quality prediction is performed. A preemptive scheduling strategy is generated based on the prediction results, and the emergency transmission mode is triggered on demand according to the preemptive scheduling strategy.

[0041] This step performs frequency domain analysis on the input audio stream and divides key frames into non-key frames by setting high-frequency thresholds in the frequency range. Basic audio related to human bone conduction (such as the fundamental frequency of speech) is defined as a key frame, while high-frequency components such as environmental detail sound effects and overtones are defined as non-key frames.

[0042] For key frames, we use the Star Flash multi-link concurrent transmission mechanism, while implementing three copies of storage in the cache of the master device and at least two slave devices. For example, in a voice call scenario, the key frames corresponding to the human voice are transmitted simultaneously through multiple links and stored in multiple copies to ensure that the core audio is not lost. For non-critical frames, each slave device calculates the bidding weight based on the dynamic bidding algorithm (the weight formula combines the remaining bandwidth ratio and link quality). The device with the highest bidding weight is allocated the transmission link, achieving efficient transmission of non-critical frames.

[0043] In addition, the system predicts the channel quality in real time and detects the acceleration of the wireless headset. And signal-to-noise ratio When the device is in emergency mode, it will trigger the emergency transmission mode, increase the priority of key frames to the highest, shorten the scheduling cycle, forcibly lock 30% redundant packets, and coordinate the device to switch to the 2.4GHz / 5GHz anti-interference frequency band. For example, when the user shakes his head violently in the subway, the emergency mode will be activated immediately to ensure audio continuity.

[0044] This step establishes a dual guarantee mechanism for dynamic resource allocation and anti-interference through differentiated processing of key frames and non-key frames. Multi-link concurrent transmission and three-copy storage of key frames can reduce the packet loss rate of basic audio by over 90% in complex electromagnetic environments, ensuring the clarity of core content such as voice. For example, in high-interference scenarios such as concerts, users can still clearly hear the singer's lead vocals. The dynamic bidding algorithm for non-key frames increases bandwidth utilization by 30%-50%. While ensuring basic sound quality, it rationally allocates resources to transmit ambient sound effects and avoids resource waste.

[0045] The preemptive scheduling strategy can control the audio synchronization delay within 20ms by increasing priority and switching anti-interference frequency bands when there is intense movement or channel deterioration, reducing the lag by more than 50% compared to traditional solutions. It is especially suitable for scenarios with high real-time requirements such as VR games. When the user turns their head quickly, the system can adjust the transmission strategy in real time to ensure audio and picture synchronization and enhance immersion. At the same time, through the dynamic resource allocation mechanism, it adaptively optimizes transmission efficiency and reliability in different scenarios to achieve a cost-effective audio synchronization experience.

[0046] like Figure 5 As shown, the obtained audio stream is decomposed into key frames and non-key frames, specifically: S410 , performing frequency domain analysis on the input audio stream and setting a high-frequency threshold for a frequency interval, defining components within the frequency interval as key frames, corresponding to basic audio related to human bone conduction; S420, defining components greater than a high-frequency threshold as non-key frames, corresponding to environmental detail sound effects and overtones; The dynamic bidding algorithm is specifically as follows: ; in, represents the bidding weight, The remaining bandwidth ratio is the ratio of the current available transmission bandwidth of the slave device to the maximum supported bandwidth of the device; S430 , bidding for non-key frame transmission rights based on the bidding weight according to the current remaining bandwidth and link quality of each slave device, and the slave device with the highest bidding weight obtains the transmission link allocation.

[0047] The preemptive scheduling strategy includes: When the wireless headset's motion acceleration 、 When , the emergency transmission mode is triggered; The emergency transmission mode includes: Raise the keyframe priority to the highest level and shorten the scheduling cycle; The number of redundant packets is forced to be locked at 30%, and all devices are coordinated to switch to the 2.4GHz / 5GHz anti-interference frequency band through the Star Flash control channel; For key frames, the same data frame is synchronously stored in the caches of the master device and at least two slave devices.

[0048] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0049] The above-described embodiments merely illustrate several implementations of the present invention, and while their descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art would be able to make numerous variations and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.

[0050] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. The wireless headset audio synchronization optimization method for Star Flash multi-device collaboration is characterized by: The method comprises: The physical distance difference between devices is measured by the RF signal flight time and the crystal oscillator drift error is eliminated. A unique control device is elected through a dynamic election algorithm at a preset time period and defined as the master device. All other collaborative devices are defined as slave devices. The master device broadcasts a synchronization anchor frame, which enables the slave devices to align their local clocks through the Star Flash physical layer timestamp. Real-time monitoring of wireless headset motion status, prediction of future head movement trajectories, and dynamic adjustment of the sound channel buffer depth. A dynamic correction model for sound propagation is established to calculate delay offsets caused by environmental parameters and compensate for environmental delays. Simultaneously, physiological movements are detected and redundant packets are enhanced in the 300-3000Hz frequency band during the active window period. Polar code dynamic redundancy mechanism is used to adaptively adjust the number of redundant packets (1%-30%) and the buffer depth (5-50ms) based on channel quality assessment. It also monitors electromagnetic interference levels and adaptively activates multipath reflection mirror packet fusion. The acquired audio stream is decomposed into key frames and non-key frames. For key frames: concurrent transmission is carried out through Star Flash multi-link and a three-copy storage guarantee mechanism is set up. For non-key frames: a dynamic auction algorithm is established to allocate transmission links and predict channel quality. A preemptive scheduling strategy is generated based on the prediction results, and emergency transmission mode is triggered on demand according to the preemptive scheduling strategy.

2. The method according to claim 1, characterized in that When the only control device is selected by the dynamic election algorithm, a seamless transition is performed by pre-embedded redundant time stamp packets when the master device and the slave device switch.

3. The method according to claim 2, characterized in that Measuring the physical distance difference between devices by using the RF signal flight time and eliminating the crystal oscillator drift error specifically includes: A timestamp generation module is embedded in the Star Flash protocol stack, and nanosecond timestamps are marked on both ends of the radio frequency signal transmission and reception through the timestamp generation module; A two-way timing protocol is used to calculate the round-trip time of the radio frequency signal and resolve the physical distance difference between devices. Based on the physical distance difference, the crystal oscillator frequency offset is calibrated in real time. The dynamic campaign algorithm is specifically as follows: ; in, is the weight coefficient, is the signal strength, is the percentage of remaining power, Motion acceleration of wireless headphones; With a cycle of 10ms, the signal strength, remaining power and motion acceleration parameters of each device are comprehensively considered. A weighted voting mechanism is used to elect the master device based on the signal strength, remaining power and acceleration of the wireless headset.

4. The method according to claim 3, characterized in that The real-time monitoring of the motion status of the wireless headset specifically includes: The integrated three-axis accelerometer and gyroscope are used to obtain the motion data of the wireless headset and predict the future based on the extended Kalman filter algorithm. Head movement trajectory at each moment; ; in, For the future The trajectory of movement at any moment, , indicating the current moment The position of the center of mass of the wireless headset in the inertial coordinate system, , indicating the current moment The linear velocity of the center of mass of the wireless headset, , indicating the current moment The acceleration of the wireless headset's center of mass; Dynamically adjust the channel buffer depth based on the motion trajectory, when the displacement is predicted When it is greater than the displacement threshold, the buffer depth is adjusted according to the exceeded value; The physiological action detection is specifically: using a capacitive sensor to monitor blinking actions in real time, and when two consecutive blinking events are detected, it is determined to be a physiological activity window period.

5. The method according to claim 4, characterized in that The calculation of the delay offset caused by the environmental parameters and compensation for the environmental delay is specifically as follows: Real-time collection of ambient temperature through integrated temperature and humidity sensors and relative humidity , calculate the current air medium sound speed : ; Dynamically correct the audio transmission delay offset based on the difference between the speed of sound and the standard speed of sound : ; in, is the physical distance between devices.

6. The method according to claim 5, characterized in that The redundant packet enhancement for the 300-3000 Hz frequency band specifically includes: Within 0.5s of the physiological activity window, a double-redundant packet is generated for the 300-3000Hz frequency band audio data. The redundant packets are independently transmitted through the control channel of the Star Flash protocol and form time division multiplexing with the main data stream.

7. The method according to claim 1, characterized in that The Polar code dynamic redundancy mechanism includes: Build a channel quality assessment model and calculate the signal-to-noise ratio in real time and bit error rate , and set the signal-to-noise ratio threshold and bit error rate threshold respectively. Less than the signal-to-noise ratio threshold, When the bit error rate is greater than the threshold, the number of redundant packets is triggered to be adaptively adjusted; Dynamically adjust the number of redundant packets , and according to the motion acceleration of the wireless headset Dynamically adjust buffer depth : ; ; The multipath reflection mirror data packet fusion is specifically as follows: A path threshold is set. When it is detected that the effective reflection path exceeds the path threshold, the mirror data packets are fused through the maximum ratio combining algorithm to eliminate the phase distortion caused by multipath interference.

8. The method according to claim 1, characterized in that The obtained audio stream is decomposed into key frames and non-key frames, specifically: Perform frequency domain analysis on the input audio stream and set a high-frequency threshold for the frequency interval. The components within the frequency interval are defined as key frames, corresponding to the basic audio related to human bone conduction. Components greater than the high-frequency threshold are defined as non-keyframes, corresponding to environmental detail sound effects and overtones; The dynamic bidding algorithm is specifically as follows: ; in, represents the bidding weight, The remaining bandwidth ratio is the ratio of the current available transmission bandwidth of the slave device to the maximum supported bandwidth of the device. According to the current remaining bandwidth and link quality of each slave device, the non-key frame transmission rights are auctioned according to the auction weight, and the slave device with the highest auction weight obtains the transmission link allocation.

9. The method according to claim 8, characterized in that The preemptive scheduling strategy includes: When the wireless headset's motion acceleration 、 When , the emergency transmission mode is triggered; The emergency transmission mode includes: Raise the keyframe priority to the highest level and shorten the scheduling cycle; The number of redundant packets is forced to be locked at 30%, and all devices are coordinated to switch to the 2.4GHz / 5GHz anti-interference frequency band through the Star Flash control channel; For key frames, the same data frame is synchronously stored in the caches of the master device and at least two slave devices.

Citation Information

Cited By

  • Spread spectrum method of duplex interphone

    CN121077593A