System capable of switching audio output between earphone and charging bin

Through composite sensor detection and adaptive calibration algorithm, combined with a multi-link dynamic management Bluetooth communication module, low-latency, smooth and fully automatic audio switching is achieved between the earphones and the charging case, solving the problems of low automation and high latency in existing technologies, and improving user experience and system reliability.

CN120812466APending Publication Date: 2025-10-17VISION INTELLIGENCE CO LTD

Patent Information

Application Number
CN202510998560.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-18
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

The existing technology has low automation, high latency, poor data continuity, insufficient multi-device coordination, and weak environmental adaptability when switching audio output between headphones and charging cases, resulting in a poor user experience.

Method used

A Bluetooth communication module that uses composite sensor detection, adaptive calibration algorithm, and multi-link dynamic management enables low-latency, smooth, and fully automatic audio switching between the earphones and the charging case.

Benefits of technology

It achieves seamless audio switching between earphones and charging case, improves user experience and system reliability, reduces latency and misjudgment rate, and extends device battery life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120812466A_ABST
    Figure CN120812466A_ABST
Patent Text Reader

Abstract

The invention discloses a system capable of switching audio output between an earphone and a charging bin, and the system automatically switches audio output to corresponding equipment through detecting the state of the earphone in real time, thereby achieving seamless audio experience. According to the system, the connection sensing module is adopted, and the double Hall sensors and the three-contact PIN detection unit are combined, so that the position of the earphone is accurately sensed. And the control module rapidly switches the audio output path according to the detection result to ensure that the switching response time is short. The system realizes extremely low delay in the audio switching process by pre-loading audio data and quickly adjusting parameters, and a user hardly feels interruption. In addition, the system adopts dynamic link management and anti-interference design, so that the reliability of seamless experience is improved. According to the invention, seamless connection of audio output between the earphone and the charging bin is realized, the audio can be automatically switched to the corresponding equipment with extremely low delay no matter what a user takes out or puts in the earphone, the playing process is smooth and unobstructed, and intelligent and efficient use experience is brought to the user.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of Bluetooth communication technology, in particular to a system capable of switching audio output between earphones and charging boxes. BACKGROUND

[0002] With the rapid development of wireless audio transmission technology, Bluetooth technology and its low-power version are increasingly widely used in audio devices. In recent years, the combination of true wireless stereo (TWS) earphones and charging boxes has gradually become the market mainstream, and users' demand for flexible switching of audio output between earphones and charging boxes is increasing, which reflects users' pursuit of seamless connection, intelligent operation and high-quality audio experience. However, the existing technology faces many challenges in realizing the switching of audio output between earphones and charging boxes, including low automation, high delay, poor data continuity, insufficient multi-device collaboration and weak environmental adaptability.

[0003] In traditional Bluetooth earphone and charging box design, the functions of earphones and charging boxes are relatively independent. The earphones are mainly responsible for audio collection, playback and Bluetooth connection with external devices (such as mobile phones) to receive audio signals, while the charging box only bears the functions of charging and storing the earphones. This design has many inconveniences in actual use. For example, the earphones cannot continue to play audio when charging, and the user's audio demand during charging cannot be met. In addition, there is a lack of intelligent audio output switching mechanism based on real-time state detection between earphones and charging boxes, and users often need manual intervention, which is tedious and not smooth enough. Therefore, how to realize the intelligent and automatic switching of audio output between earphones and charging boxes has become a technical problem to be solved in the field.

[0004] There have been some attempts to solve the audio switching problem in the existing technology, but there are still obvious limitations. For example, the patent with publication number CN116405826A discloses an audio switching method based on terminal device preset shortcut keys. This method sets the correspondence between the shortcut keys and the audio switching operation on the terminal device (such as a mobile phone) in advance, and when the user triggers the shortcut key, the terminal device sends a switching instruction to the Bluetooth audio device, thereby realizing the switching of the audio output device. The advantage of this scheme is that it simplifies the traditional menu operation process, and the user can complete the switching without navigating through a complex interface. However, its limitation lies in its high dependence on manual triggering by the user, which cannot automatically complete the audio switching according to the changes in the earphone state (such as the earphone being put into or taken out of the charging box), and the automation level is low. In addition, this scheme mainly targets the switching between the terminal device and a single Bluetooth device, and is difficult to extend to complex scenarios involving multiple devices such as earphones and charging boxes, and does not consider real-time sensor detection and low-delay transmission. In a frequent switching environment, the user needs to operate the shortcut key multiple times, reducing the convenience and intelligence level.

[0005] Another example is the patent with publication number CN111654845A, which proposes a switching method based on multi-terminal link management. By establishing parallel links between the Bluetooth master device and multiple audio devices, the method uses time slot allocation and link parameter transmission technology to achieve audio output switching. This method optimizes data transmission efficiency to some extent, reduces data packet loss and delay, and is suitable for multi-device connection scenarios. However, this solution also has shortcomings: first, in complex wireless environments, its anti-interference ability is weak, and external signal interference can cause switching failure; second, this method does not fully consider real-time detection of earphone status, making it difficult to achieve automatic switching based on device status changes; in addition, in the specific application scenario of earphones and charging boxes, this solution lacks optimization for dynamic role allocation between the two, limiting its application range, and does not involve sensor fusion or adaptive threshold adjustment, making it ineffective in dealing with environmental changes.

[0006] Further, the patent with publication number CN111988689A discloses a TWS earphone master-slave switching method. When the master earphone receives an in-position instruction, it sends the connection information between the master earphone and the terminal to the slave earphone, so that the slave earphone initiates a connection request to the terminal and establishes a connection; or when the slave earphone receives an out-of-position instruction, the slave earphone initiates a connection request to the terminal and establishes a connection, while the charging box sends a switching instruction to the master earphone to disconnect its connection with the terminal. The in-position / out-of-position instructions are generated based on the charging box detecting the earphone position. The advantage of this solution is that it realizes automatic switching of the master-slave role when the earphone is placed into or taken out of the charging box, avoiding disconnection problems. However, its limitations are that it only focuses on master-slave connection switching and does not involve the transfer of the audio output path from the earphone to the charging box speaker, and the detection mechanism relies on a single charging circuit state judgment, lacking the high precision and anti-interference design of composite sensors such as dual-Hall array and PIN foot fusion, which is prone to misjudgment in strong magnetic fields or complex environments; in addition, this method does not optimize low-latency audio transmission and multi-link management, resulting in possible audio interruption during the switching process.

[0007] In addition, the patent with publication number CN113225693A discloses an audio switching system for a wireless earphone charging box, which realizes audio playback through the built-in speaker of the charging box and a simple switch, but the switching relies on user manual operation or basic Bluetooth protocol. This solution attempts to use the charging box as a backup audio output device, but it has the following shortcomings: low automation, unable to detect earphone position in real time and automatically switch; single detection mechanism, lacking adaptive calibration algorithm or data fusion processing, susceptible to environmental noise and interference; at the same time, lacking dynamic link management and preloading mechanism, resulting in high switching delay and inability to achieve seamless audio experience.

[0008] In view of the above deficiencies of the prior art, the existing solutions mostly rely on manual triggering or preset instructions by the user, and fail to achieve adaptive switching based on the device state, which cannot meet the user's demand for intelligent experience. In the switching process, link reconnection or parameter negotiation may cause interruption or lag of audio data, affecting the user experience. Single sensor is mostly used to detect the device state, lacking a composite detection mechanism, resulting in a high misjudgment rate in complex environments. At the same time, the anti-interference ability is insufficient and is easily affected by external signals. Frequent link pairing and parameter negotiation increase the computational burden and energy consumption of the system, affecting the endurance of the device. The existing solutions do not fully consider the dynamic role switching demand between the earphone and the charging pod, multi-link parallel management and low latency optimization, limiting the realization of seamless switching.

[0009] To overcome the above deficiencies of the prior art, the present application provides an innovative audio output switching system, which realizes low latency, smooth and fully automatic audio switching between the earphone and the charging pod through the composite sensor detection of the connection sensing module, the adaptive calibration algorithm of the control module and the multi-link dynamic management of the Bluetooth communication module, significantly improving the user experience and system reliability. SUMMARY

[0010] In view of the deficiencies of the prior art, the present application provides a multi-link parallel management integrated system, which realizes low latency, smooth and fully automatic audio switching between the earphone and the charging pod, significantly improving the user experience and system reliability.

[0011] To achieve the above purpose, the present application provides the following technical solutions:

[0012] A system capable of switching audio output between earphone and charging pod, including charging pod main body, which contains audio processing module for processing audio signal, Bluetooth communication module for establishing Bluetooth connection with external device and receiving audio source request, storage module for storing audio file, power management module for powering charging pod main body and earphone, control module for coordinating audio switching according to earphone state and audio source request (wherein audio switching logic unit dynamically adjusts output path according to earphone state, switches to earphone when earphone is taken out of charging pod main body, and switches to audio output module when placed in charging pod main body), audio output module for outputting audio signal; earphone includes connection sensing module for detecting whether earphone is placed in charging pod main body and sending state information to control module, earphone battery module for powering earphone and cooperating with power management module for charging; wherein, the system switches audio signal to earphone or audio output module according to state by detecting earphone position; the Bluetooth communication module can simultaneously establish multiple communication links (including classic Bluetooth link and low-power Bluetooth link, used for transmitting audio data, control signal and state information) between mobile phone, charging pod and earphone, supports dynamic allocation of device role (when earphone is placed in charging pod, configure charging pod as master device to establish first communication link with mobile phone, when taken out, configure earphone as master device to establish second communication link, first link extends connection interval and uses first frequency hopping table, second link shortens interval and enables low-latency mode), connection sensing module detects action to generate state information, control module switches audio channel accordingly, optimizes power consumption for non-master link, maintains control sub-link, Bluetooth communication module has pre-stored and loaded link parameter set in built-in storage unit; the Bluetooth communication module binds relationship through three-party Bluetooth pairing record, establishes first link (mobile phone-charging pod classic audio transmission), second link (charging pod-earphone low-power state monitoring), third link (mobile phone-earphone standby low-latency, activated when taken out), forms a triangular communication architecture, and coordinates time slot allocation, adjusts protocol stack parameters, queries stored time slot table to perform role switching and data transmission through time division multiplexing mechanism; the Bluetooth communication module implements audio switching: detects when put in / wear / request to issue update / switch instruction to adjust parameters, stores historical pairing to directly load configuration, retains multiple connection records without disconnection switching, routes audio stream according to detection signal; the connection sensing module is configured as a dual-Hall sensor array and a three-contact self-cleaning PIN foot detection unit, detection algorithm includes synchronous acquisition of magnetic field / voltage signal, low-pass filtering, differential calculation of magnetic flux gradient, impedance calculation, data fusion (weighted average or Kalman filtering), threshold comparison and temperature compensation, forming state output sent to control module;The audio switching logic unit is configured to determine the earphone position and switch the output based on the voltage / magnetic field signal exceeding the threshold value, the control module executes the adaptive calibration algorithm, collects the reference signal in the earphone out state to dynamically adjust the threshold value, calculates the weighted average plus increment as a new threshold value in a strong magnetic field environment (set range limit), and restores the original threshold value after the earphone is repositioned or taken out; The control module determines the voltage / electromagnetic data in parallel, including synchronous acquisition and conversion of digital data, filtering and differential acquisition of characteristic values (FIR filtering, absolute difference, temperature compensation), acquisition of dynamic threshold value, parallel comparison, logical and determination of position, sending of results to the switching unit and fast switching of audio; The low-power connection state monitoring unit is configured in the Bluetooth communication module, the signal strength is received by real-time analysis of the host control interface event sampling, digital filtering, weight calculation quality index, monitoring of the transmission state machine and aggregation of information to the control module; When the link is disturbed, the control module collects quality data (intensity / signal-to-noise ratio / bit error rate), pre-processes, calculates a new frequency hopping table, encapsulates the instructions and delivers them to the control module; When the trigger signal is triggered, the control module establishes a dedicated channel (independent processor, parallel interruption) to pre-load audio data (acquisition, low bit rate encoding, 5ms packet storage buffer); The system also includes a multi-mode audio output optimization unit, an adaptive output mode that selects a loudspeaker or device according to the external situation, a scene recognition mode (conference priority external / internal, shared synchronization, private only earphone), a user preference setting mode that selects a preset path through a button / application, an audio quality enhancement module that dynamically balances and adjusts and environmental noise compensation.

[0013] Compared with the prior art, the present application provides a system that can switch audio output between earphones and charging compartments, with the following advantages:

[0014] Firstly, the system can detect the status of earphones in the charging compartment or taken out in real time and automatically switch the audio output to the corresponding device earphones or charging compartment loudspeaker without manual intervention. This function relies on a connection sensing module that uses a dual-Hall sensor array and a three-contact self-cleaning PIN pin detection unit to accurately perceive the physical location of the earphones. The dual-Hall sensor detects whether the earphones are in the compartment by magnetic field changes, while the three-contact design further confirms the status through electrical contact signals, combined with multiple data fusion algorithms such as weighted average and Kalman filtering to ensure the accuracy of the detection results. At the same time, the module supports adaptive calibration algorithms that dynamically adjust thresholds in different environments, such as calculating weighted averages and setting range limits in strong magnetic field scenarios to reduce false positive rates, and adapting to environmental changes through a temperature compensation mechanism; the reference signal acquisition includes voltage division ADC periodic sampling to determine the loop state and Hall magnetic field change detection. Once the earphones are repositioned and taken out, the threshold returns to the original state. This dual detection mechanism of voltage and Hall sensors works in parallel and synchronously combined with an "and logic" decision strategy, effectively overcoming the interference limitations of single detection, filtering false positive signals, and ensuring high accuracy in decision-making. Once the earphone status changes, such as being taken out of the charging compartment, the control module will immediately receive the signal and quickly trigger the switching of the audio output path, switching the audio from the charging compartment loudspeaker to the earphones. When the earphones are put back into the charging compartment, the control module automatically switches the audio output path back to the charging compartment audio output module. This process does not require the user to operate any keys or settings, the response time of the switch is low, ensuring the continuity of audio playback, and providing users with a smart and convenient user experience.

[0015] Secondly, the system realizes extremely low latency in the audio switching process through preloading audio data and rapid parameter adjustment, ensuring that users hardly feel any interruption during switching and providing a smooth listening experience. The audio processing module will load audio data into the buffer in advance when it detects that the earphone state is about to change. For example, when the sensor detects that the earphone is about to be taken out, the system will pre-cache the next few seconds of audio stream, ensuring seamless playback at the moment of switching and avoiding audio interruption. In addition, the control module can quickly adjust the connection parameters of the Bluetooth communication module during the switching process, thereby ensuring the real-time nature of audio transmission. When the earphone is taken out, the system quickly establishes a direct audio link between the phone and the earphone while maintaining the control link between the charging dock and the phone, ensuring stable communication during the switching process. This multi-link management optimizes Bluetooth time slot allocation through time division multiplexing technology, avoids communication conflicts, and dynamically switches device roles according to the earphone state, such as switching from the charging dock as the master device to the earphone as the master device, reducing unnecessary communication overhead. The synergistic effect of these technologies controls the audio switching delay at a very low level, and users hardly perceive any pause or stutter when the earphone is taken out or put into the charging dock, and the audio is smooth and natural. At the same time, the preloading unit uses a dedicated data transmission channel independent of the central processor, supports parallel processing and interruption mechanisms to collect audio data from the Bluetooth communication module or storage module, perform low-bit-rate encoding, and divide the data into packets according to a fixed time length for storage in the buffer, further improving data preparation efficiency and switching smoothness.

[0016] To further enhance the reliability of seamless experience, the system also adopts dynamic link management and anti-interference design. In dynamic link management, the system pre-stores historical pairing information and link parameter sets, such as Bluetooth address and key, when the earphone state switches, the control module directly loads these configurations, without the need to re-establish the connection, thereby reducing the switching time. At the same time, the anti-interference ability is realized through dynamic frequency hopping optimization: when environmental interference such as Wi-Fi signal causes communication quality to decline, the control module will quickly adjust the frequency hopping table to select a better communication channel, maintaining the clarity and stability of audio transmission. The low-power connection state monitoring unit built-in Bluetooth communication module monitors signal strength and signal-to-noise ratio at a high sampling rate, and takes immediate countermeasures once an anomaly is detected, ensuring the continuity of audio output. The system reduces the energy consumption burden of the device through dynamic adjustment of link connection interval and power consumption optimization strategy. For example, the connection interval is extended on the non-primary link to reduce power consumption, while maintaining the control sub-link between the charging case and the earphone to transmit state information without frequent reconnection. In addition, the preloaded data transmission channel runs independently of the central processor, supporting parallel processing and reducing the occupation of computing resources. These optimization measures effectively extend the battery life of the earphone and charging case, meeting the needs of users for long-term use. At the same time, when link interference is detected, the control module collects multi-dimensional quality data such as signal strength, signal-to-noise ratio, and bit error rate, generates a new frequency hopping table through a pre-set algorithm and issues it, ensuring stable transmission in complex wireless environments, further strengthening the robustness of the system.

[0017] Finally, the system further improves the flexibility and sound quality of user experience through a multi-mode audio output optimization unit and an audio quality enhancement module. The optimization unit dynamically adjusts the output mode according to the current audio source type, user scenario and device state, including adaptive output mode automatically selecting built-in speaker or external device when earphone is put in, resuming earphone and pausing other paths when taken out, scene recognition mode prioritizing external or built-in speaker in conference mode, sharing mode synchronizing to earphone, private mode outputting only to earphone, and user priority setting mode through button or application preset priority. The audio quality enhancement module provides dynamic equalization adjustment, real-time optimization of parameters and environmental noise compensation through sensor detection of noise level to adjust volume and frequency response, ensuring optimal auditory effect in various scenarios. These functions work in coordination with the aforementioned technologies to achieve personalized and intelligent audio management.

[0018] The present application realizes seamless connection of audio output between earphone and charging case. No matter where and when the user takes out or puts in the earphone, the audio can be automatically switched to the corresponding device with extremely low delay, ensuring smooth and uninterrupted playback process, providing users with intelligent and efficient use experience. BRIEF DESCRIPTION OF DRAWINGS

[0019] ATTACHMENT Figure 1: The overall architecture diagram of the audio output switching system in the present invention;

[0020] Attachment Figure 2 : Flowchart of the audio switching method of the present invention;

[0021] Attachment Figure 3 : Exploded view of the charging case and earphones in the present invention;

[0022] Attachment Figure 4 : Logic diagram for voltage and magnetic field signal acquisition and conversion;

[0023] Attachment Figure 5 : Line graph of threshold comparison and logic decision.

[0024] Among them: 1-charging box body, 2-earphone, 3-1-earphone positive contact, 3-2-charging box positive PIN foot, 4-1-earphone negative contact,

[0025] 4-2-Charging case negative PIN pin, 5-Magnetic component inside the earphone, 6-Charging case auxiliary ground PIN pin DETAILED DESCRIPTION

[0026] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0027] This invention provides an intelligent switching system designed to seamlessly switch audio output between headphones and a charging pod, enhancing the user experience. The system consists of two main components: the charging pod and the headphones. The charging pod is a rectangular structure that integrates multiple functional modules. The headphones are independent components that interact with the charging pod through physical contact and wireless communication.

[0028] To more intuitively demonstrate the physical structure of the charging case and the earphones and their interaction method in one embodiment of the present invention, first refer to the attached Figure 3 Attached Figure 3 The diagram schematically shows the partial structure of the charging case main body 1 and an exploded view of an earphone 2, revealing the key physical components for achieving precise position perception.

[0029] Specifically, in the attached Figure 3In the embodiment shown, the charging pod body 1 has a precisely designed receiving slot inside for the earphone 2. The earphone 2 is provided with metal charging / signal contacts at a suitable location on its housing, such as the stem or the lower edge of the body, as shown as 3-1 and 4-1. When the earphone 2 is placed into the charging pod body 1, these earphone contacts will form a reliable physical and electrical connection with the corresponding elastic PIN pins (as shown as 3-2 and 4-2, and possibly auxiliary PIN pins such as 6 for grounding or additional signal detection) in the receiving slot of the charging pod body 1. This connection not only serves for the charging of the earphone battery, but also serves as the basis for the PIN pin detection unit in the connection sensing module to determine the in-place status of the earphone.

[0030] In addition, in order to realize magnetic induction detection, a magnetic element is fixed or integrated inside the earphone 2, such as the component 5 (e.g. a permanent magnet) shown schematically in the figure. Correspondingly, a corresponding location (although not explicitly marked in the attached Figure 3 schematics, it is necessary for the function to be implemented) inside the charging pod body 1 will be installed with a Hall sensor. The insertion and removal of the earphone will directly change the relative position and magnetic field strength between the magnet 5 and the Hall sensor, thereby causing the Hall sensor to generate a detectable electrical signal.

[0031] These physical structures shown in the attached Figure 3 schematics, including the charging pod body 1, the earphone 2, the contacts on the earphone (3-1, 4-1), the PIN pins in the charging pod (3-2, 4-2, 6), and the magnetic component (5) in the earphone, collectively constitute the physical basis on which the connection sensing module operates. Through the precise cooperation of these components, the system can accurately perceive the "in-pod" or "out-pod" status of the earphone, providing key input information for the subsequent intelligent audio switching logic. The composition, function and mutual relationship of each part, as well as the cooperation of each functional module of the system, are described in detail below.

[0032] On the printed circuit board are arranged:

[0033] An audio processing module, which is responsible for the decoding, enhancement and output adaptation of audio signals. The audio processing module uses a high-performance audio decoding chip (such as Cirrus Logic CS47L90), supports decoding of multiple audio formats such as MP3, AAC, FLAC, and integrates a multi-band equalizer and active noise reduction function to ensure high fidelity and purity of audio output. The module is connected to the control module through a 12S (Inter-IC Sound) interface, receives audio data and performs real-time processing.

[0034] Bluetooth communication module, which enables wireless communication with the phone and earphone, adopts Bluetooth 5.0 protocol, supports multi-point connection and low-power mode, and the communication distance can reach 10 meters. The Bluetooth communication module communicates with the control module through the UART (Universal Asynchronous Receiver-Transmitter) interface, responsible for receiving audio source requests, transmitting audio data and control instructions, and ensuring the collaborative work of multiple devices.

[0035] Storage module, which is used to store audio files, configuration parameters and historical connection records. Adopting 16MB SPINOR flash memory, supporting FAT32 file system, connected with the control module through SPI (Serial Peripheral Interface). This module provides data persistence support for the system, ensuring quick loading of historical parameters and audio data during switching.

[0036] Power management module, which manages the power supply of the charging case and earphone. Built-in 2000mAh lithium polymer battery, supports USB-C fast charging, and charges the earphone through constant current and constant voltage (CC-CV) mode. The power management module supplies power to each module through the internal power bus, while monitoring the battery level to ensure stable operation of the system.

[0037] Control module, as the brain of the system, adopts STM32F4 series microcontroller (MCU), responsible for coordinating the work of each module, executing audio switching logic and communication management. This module communicates with the audio processing module, Bluetooth communication module, storage module and power management module through the internal bus, receives status information and issues control instructions.

[0038] Audio output module, which includes a speaker and a class-D audio amplifier, used to play audio when the earphone is in the charging case. The speaker output power is 2W, and the frequency response range is 20Hz-20kHz, ensuring the clarity and volume of audio output. The audio output module is directly connected to the audio processing module, receiving the processed audio signal and outputting it.

[0039] The above modules are interconnected by signal lines and power lines on the PCB inside the charging case. The audio processing module communicates with the control module through the I2S interface, the Bluetooth communication module communicates with the control module through the UART interface, the storage module is connected to the control module through the SPI interface, and the power management module supplies power to each module through the power bus.

[0040] The earphone, as the execution unit of audio playback, interacts with the charging case main body through physical contact and wireless communication, and its internal contains the following key modules:

[0041] The connection sensing module is the core component of the earphone and charging pod audio switching system, responsible for real-time detection of whether the earphone is placed in the charging pod, and sending state information to the control module to achieve intelligent switching of audio output. This module uses composite sensing technology, combining a dual-Hall sensor array and a PIN foot detection unit based on a three-contact self-cleaning structure, significantly improving detection accuracy and reliability.

[0042] The dual-Hall sensor array detects the change in the magnetic field caused by the magnet in the earphone to determine the position of the earphone. Two sensors are distributed in the charging pod to provide redundant detection to enhance anti-interference capability. After amplification, filtering and analog-to-digital conversion of the magnetic field signal, a digital output is generated. The PIN foot detection unit assists in judgment through the electrical contact state (on-off circuit) between the earphone and the charging pod. The three-contact design ensures stable connection, and the self-cleaning function removes dirt from the contacts through friction, ensuring long-term use. After processing the two signals separately, the final state signal is generated through a weighted fusion algorithm (e.g. Hall signal accounts for 60%, PIN foot signal accounts for 40%), with a false positive rate of less than 1%.

[0043] The fused state signal (in-pod or out-pod) is quickly transmitted to the control module through the GPIO or I2C interface, with a transmission delay of less than 20 milliseconds, ensuring real-time audio switching. The module design takes into account high precision (multi-source data fusion), high reliability (redundancy and self-cleaning), fast response (high-frequency detection) and strong anti-interference capability (magnetic field gradient and impedance detection), laying the foundation for seamless audio experience.

[0044] The earphone battery module provides power to the earphone and cooperates with the power management module of the charging pod for charging. The earphone battery module uses a 50mAh lithium polymer battery, supporting fast charging and low power consumption management, ensuring long-term use of the earphone.

[0045] The earphone establishes a wireless connection with the charging pod and the phone through the Bluetooth communication module, receives audio data and plays it, and at the same time charges and detects the state through physical contact with the charging pod.

[0046] The audio switching function in this embodiment is one of the important features of the smart earphone and charging pod system, aiming to automatically adjust the audio output device according to the position state of the earphone. Figure 2 The detailed implementation process of the audio switching function is shown, which consists of three main steps:

[0047] Step 1: Detect earphone state

[0048] In this embodiment, a connection sensing module is used to detect the position of the earphone in the charging compartment. The module includes a dual-Hall sensor array, a PIN pin detection unit, a signal processing circuit, and a microcontroller. The dual-Hall sensor array is installed on the left and right sides of the earphone placement slot in the charging compartment, and the PIN pin detection unit is realized through three PIN pin contacts on the contact surface between the charging compartment and the earphone. The signal processing circuit is responsible for amplifying, filtering, and analog-to-digital converting the sensor signals, and the microcontroller performs data fusion and state judgment.

[0049] In this embodiment, the dual-Hall sensor array uses two linear Hall sensors of model SS495A with a spacing of 10 mm. A neodymium iron boron permanent magnet (size 3 mm x 2 mm x 1 mm, magnetic field strength 100 mT) is embedded inside the earphone. When the earphone is placed in the charging compartment, the permanent magnet approaches the sensor, changing the magnetic field distribution, and the sensor output voltage changes accordingly. The signal processing flow includes: the sensor output analog voltage (0-5V) is amplified to 0-3.3V by an LM358 operational amplifier, and then converted to a digital signal by an ADS1015 12-bit ADC with a sampling rate of 100 Hz. The microcontroller differentially calculates the signals of the two sensors to obtain ΔV = |Vleft - Vright|, and compares it with the threshold value of 0.5V to determine the position of the earphone.

[0050] The PIN pin detection unit includes three PIN pin contacts: VCC, GND, and SIG, made of gold-plated copper alloy material with a spring pressure of 0.5N and a self-cleaning function. During detection, a 1kHz, 100mV sinusoidal AC excitation signal is applied to the SIG contact, and the response voltage and current are measured by an INA219 current sensor to calculate the impedance Z = V / I. If Z < 50Ω, it is determined as "earphone in compartment"; if Z ≥ 50Ω, it is determined as "earphone out of compartment".

[0051] In this embodiment, the microcontroller normalizes the signals of the Hall sensor and the PIN pin detection unit, with the Hall signal normalized value being Δv / 3V and the PIN pin signal normalized value being 1-Z / 1MΩ. Then, a weighted fusion is used with weights of 60% and 40% respectively to calculate the fusion signal. If the fusion signal ≥ 0.5, it is determined as "earphone in compartment"; if < 0.5, it is determined as "earphone out of compartment". The consistency of the data from 10 consecutive samples is detected to ensure that the false positive rate is less than 1%.

[0052] The fused state signal is transmitted to the control module through the GPIO pin with a signal level of 3.3V, where high level represents "earphone in compartment" and low level represents "earphone out of compartment". To prevent interference, a PC817 optocoupler isolation device is connected in series with the GPIO line. The delay of the entire detection process is controlled within 20ms, and the sampling rate is 100Hz.

[0053] In the environment of 25℃, when the earphone is inserted into the charging bin, the Hall differential value is 2.8V, the PIN pin impedance is 5Ω, the fusion signal is 0.92, the time consumption is 18ms, and the misjudgment rate is 0.8%. In the environment of -10℃, after temperature compensation, the fusion signal is 0.88, the time consumption is 19ms, and it can still be accurately judged. In the rapid plug-in test, the state switching response time is less than 20ms.

[0054] The double detection mechanism connected with the sensing module in the embodiment realizes high reliability earphone state sensing through the parallel and synchronous work of the voltage detection unit and the Hall detection unit. The voltage detection unit collects voltage signals in real time through the electrodes arranged between the earphone and the charging bin body, specifically charges / communicates through the contacts of the charging bin body and the earphone, and periodically samples through the voltage division mode connected to the ADC interface of the control module. For example, when the earphone is inserted into the charging bin, the contacts form a loop, a voltage appears at the negative terminal, the ADC interface detects that the voltage at the voltage division point rises, indicating that the earphone enters the charging state; if the earphone is not inserted, no loop is formed, there is no voltage at the negative terminal, and the ADC detects zero value, determining that the earphone is not inserted into the bin. The Hall detection unit detects the change of the magnetic field through the double Hall sensor array arranged in the charging bin body and the magnetic part on the earphone. The array is distributed on the left and right sides of the earphone placing slot, each Hall sensor synchronously collects the magnetic field signal, carries out digital low-pass filtering processing on the collected signal, sets the cutoff frequency of the finite impulse response low-pass filter to filter out high-frequency interference, carries out differential calculation on the filtered signals of adjacent sensors, calculates the absolute value difference to obtain the magnetic flux gradient, and adjusts the characteristic value in combination with the temperature compensation mechanism to adapt to environmental changes. For example, in a strong magnetic field environment, if the earphone is not inserted into the bin but the magnetic field strength exceeds the normal threshold value due to external interference, the Hall sensor detects abnormal magnetic field change, and the system starts the dynamic adjustment mechanism.

[0055] The three-contact self-cleaning structure maintains contact stability through spring-type conductive elements. The PIN pin detection unit applies an alternating excitation signal of a predetermined frequency and amplitude to the PIN pin, synchronously measures the response voltage and current of each contact, calculates the alternating impedance value of each contact according to Ohm's law, and compares the impedance value with the calibration reference data to generate a detection signal. For example, when the earphone contact is poor, the impedance value may rise to 60Ω, exceeding the 50Ω bin insertion threshold, and it is determined as an uninserted bin state. After the detection data of the double Hall sensor array and the PIN pin detection unit are normalized, the weights are determined according to the measurement error and signal-to-noise ratio of each data, the weighted average or Kalman filtering algorithm is used for data fusion processing, and the final state detection output is formed after threshold comparison and logical judgment. The detection output is sent to the control module through the internal transmission interface, and the characteristic value is adjusted in combination with the temperature compensation mechanism to adapt to environmental changes.

[0056] As shown in FIG. 8, the earphone state detection system includes a control module 1, a voltage detection unit 2, a Hall detection unit 3, a PIN pin detection unit 4, a temperature compensation unit 5, and a data fusion unit 6. Figure 4As shown, the analog voltage signal of the voltage detection unit and the analog magnetic field signal of the Hall detection unit are synchronously and parallelly collected and converted into digital data through the ADC interface, wherein the charging bin negative terminal divided voltage and the magnetic field conversion voltage are respectively processed and then judged according to the digital quantity, and the two states are logically AND operated to determine whether the earphone is placed in the charging bin. For example, in actual testing, when the earphone is correctly inserted into the charging bin, the divided voltage reaches 2.5V, and the magnetic field gradient difference is 0.6V, both of which exceed the respective threshold values, and the logical AND operation result is “true”, confirming that the earphone is in the bin. The control module further executes the adaptive calibration algorithm to collect the reference signal in the state that the earphone is not placed in the charging bin main body, and dynamically adjusts the first threshold value and the second threshold value according to the reference value. For example, if the external strong magnetic field interference causes the magnetic field strength to continuously exceed the original second threshold value of 0.5V, and the voltage signal does not reach the first threshold value of 1.5V, the system judges that it is in a strong magnetic field environment, and starts dynamic adjustment, calculates the weighted average value of the magnetic field strength within 10 seconds (such as an average value of 0.7V), and adds a preset increment (such as 0.2V) as a new second threshold value of 0.9V. The calculated threshold value is limited in a range (such as 0.5V to 1.2V), and if it exceeds, it is adjusted to the boundary value. When the earphone is placed in and taken out again, the second threshold value returns to 0.5V.

[0057] As shown in the accompanying drawings, Figure 5 After obtaining the current threshold value, the digital voltage data is compared with the first threshold value, and the magnetic field characteristic value is compared with the second threshold value in parallel. The earphone is determined to be placed in the charging bin main body only when the digital voltage data exceeds the first threshold value and the magnetic field characteristic value exceeds the second threshold value, otherwise the earphone is determined not to be placed in the charging bin main body. For example, if the divided voltage is 1.8V, which is lower than the first threshold value of 1.5V, or the magnetic field gradient is 0.4V, which is lower than the second threshold value of 0.5V, the logical AND operation result is “false”, and it is determined that the earphone is not in the bin. If the divided voltage is 2.5V, which is higher than 1.5V, and the magnetic field gradient is 0.6V, which is higher than 0.5V, the result is “true”, confirming that the earphone is in the bin. The final determination result is sent to the audio switching logic unit as the basis for executing the audio output path switching and quickly switching the audio after determining that the earphone is in the bin. This double detection parallel determination mechanism effectively overcomes the limitations of single detection, improves the accuracy and reliability in complex environments, and ensures the seamlessness of audio switching.

[0058] Through the above embodiments, the connection sensing module of the present application can realize high-precision, low-delay earphone position state detection, which is suitable for audio switching and charging management in a smart earphone system.

[0059] Step 2: Determine the audio source

[0060] is the bridge from state detection to switching execution. The core task of this stage is to intelligently determine the target device of audio output according to the change of earphone state, and to determine the best switching opportunity, providing accurate basis for subsequent audio switching.

[0061] In this embodiment, the control module uses a high-performance microcontroller as the core hardware, which is responsible for receiving multiple trigger signals from the connection sensing module and the mobile phone end, and running the built-in audio switching algorithm to generate corresponding switching instructions. When the user takes the earphone out of the charging case and wears it, the system immediately starts the decision-making process, and the input signals mainly come from the earphone state signals provided by the double Hall sensor and the PIN pin detection unit, as well as the switching request transmitted by the mobile phone end through the Bluetooth protocol. These signals enter the control module through the general input-output interface and the internal communication bus, and after 10 milliseconds of debouncing processing and continuous multiple sampling confirmation, it is ensured that the user's operation can be accurately captured in complex environments.

[0062] After receiving the signals, the control module uses the hardware interrupt mechanism to quickly collect and analyze the data with the highest priority, and converts various trigger signals into standardized state codes. For example, when the earphone is taken out, the Hall sensor detects that the magnetic field strength is significantly weakened, and the output level changes, while the wearing sensor captures the user's wearing action, generating corresponding high and low level signals; while the switching command of the mobile phone end is transmitted into the system with a predetermined code. After multiple continuous sampling confirmations, the system integrates these data, and if no valid signal is detected within the specified time, it will maintain the current state and actively send a status prompt to the mobile phone, thereby improving the fault tolerance of the overall system.

[0063] After the analysis is completed, the audio switching algorithm built-in the control module starts to run, its main task is to comprehensively analyze and process all trigger signals to generate switching parameters. The algorithm first determines the target device according to the state code: when the earphone out-of-case signal is detected, the system infers that the user wants to use the earphone to listen to music, so the target device is set to the earphone; if the earphone is detected to be in the case, it is judged that the user may be using the external speaker module of the charging case; at the same time, if the mobile phone end sends an explicit switching request, its priority is the highest, and the system will directly use the output target specified by the mobile phone. To further optimize the decision, the algorithm also reads the earphone battery level, Bluetooth connection status and other information in real time through the internal communication interface, and combines the historical use preference data loaded in the storage module to adjust the priority of the target device, ensuring that the decision is closer to the user's actual use habits.

[0064] In the target device and switching timing determination process, the system monitors the current audio stream state and buffer data in real time through the Bluetooth protocol layer. When detecting that the audio packet is being transmitted, the algorithm delays the switching operation until the data transmission is completed to avoid interruption or lag; if the audio is in a suspended state or natural gap, the switching is immediately started. At the same time, the system reads the remaining data in the buffer through the internal interface, and only when the data amount meets the preset safety threshold, the switching operation is executed to ensure the continuity of audio transmission. The link quality detection module monitors the key indicators such as the received strength of wireless signal, packet loss rate and signal-to-noise ratio in real time. Only when the link conditions are ideal, the algorithm will choose to execute the switching operation, and combined with user behavior prediction technology, the necessary parameters are preloaded in advance to further shorten the response time and realize seamless switching.

[0065] In order to further improve the response speed and communication quality of the system, the control module also integrates a dynamic link management mechanism. This mechanism relies on the firmware of the Bluetooth communication subsystem to evaluate the current connection state by collecting quality indicators (such as RSSI, packet loss rate, SNR and link delay) of each communication link in real time. The Bluetooth module maintains multiple links between the phone and the charging compartment, the charging compartment and the earphone, and the phone and the earphone. The control module judges whether the link quality meets the requirements according to the real-time monitoring data and the preset threshold. When detecting that a link is below the standard due to interference or signal attenuation, the system triggers the link adjustment process, acquires the latest data through hardware interruption or periodic polling, and calculates the trend of connection quality change using adaptive algorithm, then sends HCI command to the Bluetooth module to dynamically adjust the connection interval (such as shortening the default 50ms to 7.5ms to reduce delay) and update the frequency hopping table to avoid the current interference frequency band. At the same time, the historical pairing information (including device address, authorization key and parameter configuration when the last successful connection) pre-stored in the storage module can be quickly loaded to reduce the time of re-pairing and parameter negotiation, and ensure smooth transition in a multi-device environment. The system also designs a multi-connection record retention mechanism, when switching the audio output path, the original link will not be disconnected immediately, but will be retained for a short time to allow the new link to smoothly take over the audio data stream.

[0066] The entire decision-making process, from signal collection and analysis to switching instruction generation and issuance, is completed in a very short time, ensuring millisecond-level response speed. When detecting the presence of interference or a sudden drop in signal quality in the wireless link environment, the control module performs frequency hopping updates at the protocol stack level, dynamically adjusts link parameters, and performs switching operations when the environment returns to an ideal state, thereby ensuring that the entire system can maintain stable audio transmission and fast response under complex interference conditions. Through this series of hardware and software collaborative design, the system realizes intelligent and seamless switching between the earphone and the charging compartment and other audio output devices, greatly improving user experience and the overall system reliability and stability.

[0067] Step 3: Perform audio switching

[0068] In this embodiment, the execution process of audio switching is the core link for realizing seamless audio output between the earphone and the charging compartment, ensuring efficient redirection of audio data streams between different devices, and providing stable, fast, and user- unaware switching experience.

[0069] When the system is running, the control module acts as the central processing unit, continuously monitoring the earphone state and responding to external switching requests. The connection sensing module detects the insertion or removal action of the earphone by connecting the sensing module. The connection sensing module adopts a composite detection system composed of a double Hall sensor array and a PIN pin detection unit. The Hall sensor generates a positioning signal by detecting the magnetic field change of the built-in magnet in the earphone. The signal is processed by a digital low-pass filter to remove high-frequency noise, and then the weak change characteristics are amplified by differential calculation, enhancing the detection accuracy. The PIN pin detection unit is designed with a multi-point contact structure on the contact surface of the earphone and the charging compartment. The spring-type conductive element maintains the stability of the contact, measures the impedance change after applying an alternating excitation signal, and determines the contact state through a logic decision algorithm combined with the calibration value. The two detection signals are integrated through weighted fusion or adaptive filtering technology. The fusion process considers environmental interference and sensor sensitivity differences to form a high-reliability state output, which is then transmitted to the control module through a high-speed general-purpose input-output interface. The external switching request is received through the Bluetooth communication module. This module supports multiple Bluetooth protocol stacks and has adaptive channel allocation and anti-interference capabilities. It interacts with the mobile phone end through an encrypted control channel to ensure the priority and security of the request signal. The control module generates switching instructions based on the fused state information or external requests. The instruction structure includes target device identification (distinguishing between earphones or charging compartments), switching timing (based on audio stream state or buffer conditions), audio parameters (related to encoding format and sound quality configuration), and check fields. Redundancy coding technology is used to improve fault tolerance. The instruction is transmitted to the audio processing module through a high-speed internal communication interface. The interface uses bidirectional differential signal transmission and shielding layer design to reduce electromagnetic interference and crosstalk. The control module sends instructions and waits for an acknowledgement signal through a handshake protocol. If no response is received in time, an exponential backoff retransmission mechanism is triggered, and error events are recorded to the log buffer to ensure the reliability of instruction transmission, supporting the technical features of efficient instruction transmission in the claims.

[0070] After receiving the switching instruction, the audio processing module uses the built-in hardware state machine for rapid analysis. The state machine realizes multi-task synchronous execution through parallel processing units and state registers. The analysis process first verifies the check field to confirm the integrity of the instruction. If an error is detected, the control module is notified through the feedback channel to request retransmission. Then the target device identifier, switching opportunity and audio parameters are extracted. According to the target device identifier, the module dynamically configures the audio output path: when the target is earphones, the audio data stream is switched to the wireless transmission path, supporting multiple audio encoding formats to adapt to different audio quality requirements. The encoding selection is driven by a preset mapping table, combined with device capabilities for adaptive adjustment; when the target is the charging case, the audio stream is transmitted to the audio output unit through the internal interface, taking advantage of the low delay characteristics of wired transmission, and realizing signal routing switching through a multiplexer. Before switching, the module initializes key audio processing components, including decoders, clock synchronization units and digital signal processing units. The decoder supports dynamic loading of multiple formats, and reduces initialization overhead through firmware calls to optimize algorithms; the clock synchronization unit uses phase-locked loop technology to ensure accurate alignment of audio sampling and target device clock, avoiding audio distortion caused by timing deviation; the digital signal processing unit pre-allocates resources to provide hardware support for subsequent sound processing and dynamic optimization. The path switching and initialization process is coordinated through the hardware interrupt mechanism to ensure response speed and system stability, supporting the technical claims in the claims about seamless redirection of audio streams.

[0071] To further improve the communication efficiency and stability of the audio switching system, the system implements multi-link dynamic configuration and management in the Bluetooth communication module. By establishing three communication links between the phone, charging case and earphones, a flexible and efficient communication architecture is formed, supporting fast response and stable transmission during the audio switching process, ensuring the continuity and high quality of user experience. The following is an enhanced description of multi-link establishment, using a coherent narrative style, integrating technical details of three-party Bluetooth pairing, link role configuration, protocol selection, parameter optimization and dynamic management, reflecting the improvement of communication efficiency and stability.

[0072] At the beginning of system operation, the user starts the pairing mode, triggering the three-way Bluetooth pairing process between the mobile phone, the charging compartment and the earphone. The pairing adopts the secure simple pairing (SSP) protocol of Bluetooth, supports digital comparison or password input mode, and ensures the establishment of a trusted communication relationship between devices and enhances security by displaying the pairing code on the mobile phone screen or manually entering the password. After pairing is completed, the control module, as the central processing unit of the system, records the Bluetooth address (BD ADDR) of the mobile phone, the device ID of the charging compartment and the serial number of the earphone, forming a unique binding relationship. This binding relationship is stored in the non-volatile memory of the storage module, and the flash memory technology is used to ensure that even if the device is powered off, the binding information can still be permanently saved, avoiding the user from repeating the pairing operation in subsequent use and improving the convenience of use. During the pairing process, the control module distributes initial communication parameters, including frequency hopping table seed and key, through an encrypted channel. These parameters lay the foundation for subsequent multi-link establishment, ensuring the initialization of communication links with consistency and security.

[0073] After pairing is completed, the system first establishes the first communication link, i.e. the audio transmission channel between the mobile phone and the charging compartment. In this link, the mobile phone is configured as the audio source master device, responsible for initiating and controlling the audio data stream, while the charging compartment acts as a slave device, receiving and processing audio data from the mobile phone. The link adopts the classic Bluetooth protocol to achieve high-bandwidth audio stream transmission through A2DP (Advanced Audio Distribution Profile), supporting multiple audio encoding formats such as SBC and AAC. The control module dynamically selects the encoding format according to device capabilities and user preferences, for example, preferring AAC on high-performance devices to improve sound quality, and selecting SBC in bandwidth-limited scenarios to ensure transmission efficiency, balancing sound quality and real-time performance. In terms of link parameter design, the connection interval is set to 10ms, which balances the real-time performance and power consumption requirements of audio transmission, and is suitable for stable audio stream transmission requirements. To ensure communication stability, the frequency hopping table is generated based on the AFH (Adaptive Frequency Hopping) algorithm of the Bluetooth standard, and the Bluetooth communication module monitors the channel quality in real time, detects the interference of coexisting frequency bands such as Wi-Fi and dynamically avoids affected channels, ensuring the continuity and anti-interference ability of the audio data stream. When the connection is established, the mobile phone sends a link establishment instruction to the charging compartment through the Bluetooth protocol stack, which contains audio transmission profile information. After receiving it, the charging compartment configures its protocol stack, and the two parties negotiate the supported encoding format and transmission rate, complete the link initialization and enter the stable transmission state, forming a reliable audio transmission channel.

[0074] Next, the system establishes a second communication link: a status monitoring channel between the charging case and the earbuds. In this link, the charging case is configured as the master device, responsible for initiating communication, while the earbuds act as slaves, responding to the charging case's requests. This link utilizes the Bluetooth Low Energy (BLE) protocol, specifically designed for transmitting earbud status information, such as non-real-time data like battery level, connection status, or firmware version. The link parameters set the connection interval to 50ms. This longer interval, combined with low-power mode, significantly extends device battery life and is ideal for periodic status monitoring, requiring low-data transmission. During data transmission, the charging case periodically sends status query requests to the earbuds, which respond and transmit status data. Data packets are encapsulated in lightweight format (such as the GATT attribute protocol), which reduces transmission overhead and improves communication efficiency by compressing header information and optimizing data structures. When the connection is established, the charging case sends a link establishment command to the earbuds via the Bluetooth Low Energy protocol. Upon receiving the command, the earbuds configure their protocol stack and, after initialization, enter periodic low-power communication mode, ensuring efficient transmission of status information while maintaining low power consumption.

[0075] The system then establishes a third communication link, serving as a backup audio transmission channel between the phone and the headset. In this link, the phone acts as the master device and the headset acts as the slave device. This link utilizes a low-latency transmission profile (such as aptX LL), designed for low-latency audio streaming and particularly suitable for scenarios requiring rapid switching after the headset is removed from the charging case. The link parameters set the connection interval to 7.5ms. This short interval ensures low latency for audio transmission, meeting the requirements of real-time audio streaming, and particularly ensuring audio continuity during dynamic switching. To avoid potential channel conflicts with the primary communication link, the frequency hopping table is generated using an independent pseudo-random seed, isolated from the primary link's frequency hopping table. This effectively reduces interference and improves communication stability, especially when both the primary and third links are active simultaneously. This link maintains two connection modes: When the headset is in the charging case, the link remains in a pre-connected state, periodically sending heartbeat packets to maintain connection activity without transmitting audio data, thereby reducing power consumption. When the headset is removed from the charging case, the link quickly activates, enabling audio transmission. This activation process is optimized using a priority scheduling algorithm, keeping switching latency below the user's perceived threshold (approximately 20ms) to ensure a seamless experience. When the connection is established, the mobile phone sends a pre-connection command to the headset through the Bluetooth protocol stack. After receiving it, the headset configures its protocol stack and enters standby mode, ready to switch to the active link at any time, providing fast response capability for audio switching.

[0076] Through the above steps, the system forms a triangular communication architecture among the mobile phone, the charging bin and the earphone. The Bluetooth communication module utilizes the multi-connection function of the protocol stack to enable the charging bin to maintain a first communication link with the mobile phone and a second communication link with the earphone at the same time, while the mobile phone maintains a third communication link with the earphone. This architecture ensures communication isolation and efficient cooperation between links through independent frequency hopping tables and flexible role configuration, especially when the earphone state changes, it can quickly adjust the link state to support the audio switching requirement. To further coordinate the operation of multiple links, the Bluetooth communication module adopts a time division multiplexing mechanism to divide the Bluetooth basic time slot (625 μs) into multiple sub-slots, which are allocated to the first or second communication link according to a preset allocation strategy. The time slot table is stored in the storage module and contains sub-slot numbers and their allocation information. The module queries the time slot table through the time slot counter to dynamically switch roles and perform data transmission, improving the efficiency of multi-link parallel processing.

[0077] In addition, the system optimizes link management through dynamic role allocation. When the earphone is in the charging bin, the charging bin communicates with the mobile phone as the master device, the connection interval of the first communication link is extended to optimize power consumption, and the second communication link maintains a low power consumption state; when the earphone is taken out, the earphone establishes a third communication link with the mobile phone as the master device, the connection interval is shortened to 7.5 ms and the low-latency transmission mode is enabled, the first communication link is converted to a non-master state to reduce power consumption, and the second communication link continues to transmit state information. Role switching is driven by the control module command, and the switching time is controlled within 50 ms. The module has a built-in storage unit that pre-stores a set of link parameters, which are quickly applied through a hardware acceleration loading mechanism, reducing protocol negotiation time and further improving switching efficiency.

[0078] To ensure communication quality, the system integrates a multi-level monitoring mechanism. The Bluetooth connection state monitoring unit monitors the received signal strength (RSSI) at a sampling rate of 100 Hz, and calculates the communication quality index through digital filtering and weight allocation; the link environment interference detection mechanism generates a new frequency hopping table and distributes it to the Bluetooth communication module when interference is detected, ensuring communication stability. These enhanced multi-link establishment and management mechanisms significantly improve the communication efficiency and robustness of the audio switching system, providing users with stable, fast and high-quality audio experience.

[0079] To ensure the communication quality and stability during the switching process, the system integrates multi-level connection state and link quality monitoring mechanisms. The Bluetooth connection state monitoring unit continuously monitors the received signal strength through high-frequency sampling technology, uses a digital filter to smooth the signal fluctuations, and evaluates the communication quality through a weight distribution algorithm. The audio data transmission state monitoring module decomposes the transmission state machine, detects the transmission delay and loss of data frames, analyzes real-time performance using sliding window technology, and monitors the results through an internal bus to the control module for optimizing switching decisions and link parameter adjustments. The link environment interference detection mechanism plays a role when external interference or signal quality degradation is detected. The control module collects multi-dimensional quality data (such as signal strength, signal-to-noise ratio, and bit error rate), analyzes the characteristics of the interference source through an interference identification algorithm, generates an optimized frequency hopping table, and ensures that the interference frequency band is avoided based on a pseudo-random sequence and channel occupancy evaluation. The new frequency hopping table is issued to the Bluetooth communication module through the downlink control channel, and the module updates the communication parameters through the channel switching protocol. The entire process is coordinated by hardware triggers to avoid data transmission interruptions. The composite detection of the connection sensing module works in conjunction with the Bluetooth monitoring mechanism to provide multi-source state information, enhance the system's adaptability to complex environments, and support the technical claims in the claims regarding dynamic optimization of link quality.

[0080] The management and preloading of audio data streams are technical links to ensure switching continuity. The audio processing module maintains a multi-channel ring buffer that supports efficient data read and write operations. The buffer design uses a double-buffering structure to achieve seamless switching. Before switching, the module monitors the buffer filling state through the internal interface's direct memory access controller. If the data volume is insufficient to support continuous playback, the preloading unit is triggered to start data collection. The preloading unit continuously collects data from the Bluetooth communication module's input queue or the audio buffer area of the storage module through a dedicated data transmission channel. The collection process uses parallel transmission technology to reduce CPU load. The collected audio data is processed through a low-bit-rate encoding algorithm, divided into small data packets, and stored in the buffer. The encoding algorithm optimizes compression efficiency and decoding speed to ensure fast access. After switching is complete, the audio data stream is transmitted to the target device's buffer channel, such as through a wireless transmission path to the earphone or through the internal interface's high-speed bus to the audio output unit in the charging case. Pipeline technology is used during transmission to improve throughput and ensure uninterrupted playback. Buffer management combined with the preloading mechanism provides multi-level data reserves and supports the technical features in the claims regarding data stream continuity.

[0081] To achieve a seamless audio switching experience, the audio processing module employs cross-fade technology, which gradually adjusts the volume through the volume control unit. The current device volume is gradually reduced to zero, while the target device volume is gradually increased to the target value. The transition process calculates the volume curve through a linear interpolation algorithm to ensure auditory smoothness. The DSP module monitors the audio stream quality in real time. If transient noise or distortion is detected, the gain curve is dynamically adjusted or a low-pass filter is applied for smoothing processing. The filter design is based on a finite impulse response structure, which optimizes the computational efficiency and frequency response characteristics. During the switching process, the module dynamically optimizes the audio configuration based on the target device: in earphone mode, the sound quality enhancement function is enabled, and the clarity of specific frequency bands is improved through a graphic equalizer. The equalizer uses a multi-order filter bank that supports real-time parameter adjustment. In the charging case mode, the low-frequency performance is optimized, and the bass effect of the audio output unit is enhanced through anti-phase feedback technology. These optimization measures are executed through a hardware acceleration unit, combined with pre-set sound effect templates and real-time feedback for adaptive adjustment, supporting the technical claims in the claims regarding smooth transition and sound quality optimization.

[0082] Taking the user removing the earphone from the charging case as an example, the connection sensing module detects the earphone removal action through double Hall sensors and PIN foot detection units. The Hall sensor signal is filtered and differentially processed, and the PIN foot detects impedance changes. The high-precision state information generated after the fusion of the two is sent to the control module. The control module generates a switching instruction based on the state, specifying the target as the earphone, and transmits it to the audio processing module through the internal communication interface. The audio processing module analyzes the instruction and configures the audio data stream to the wireless transmission path. The Bluetooth communication module dynamically adjusts the role, activates the communication link between the phone and the earphone, loads the pre-stored low-latency parameters to optimize transmission efficiency, and updates the frequency hopping table to avoid potential interference. The pre-loading unit collects audio data from the storage module and fills the buffer through a dedicated channel to ensure sufficient data reserves. The module performs cross-fade, gradually reduces the charging case volume and increases the earphone volume, and the DSP monitors the audio stream and adjusts the equalizer. The sound quality enhancement function of the earphone mode is enabled, and the whole process is completed quickly, providing the user with a seamless audio output switching experience without perceptible interruption or sound quality degradation.

[0083] This embodiment realizes audio switching between the earphone and the charging case through efficient instruction transmission, multi-link dynamic configuration, accurate state detection, link quality optimization, data pre-loading, smooth transition technology, and multiple fault-tolerant mechanisms. Its technical features lie in multi-module collaboration, multi-level optimization, and adaptive adjustment capabilities, ensuring efficient and stable switching process, reflecting the high reliability and intelligent advantages of the system in complex scenarios, fully supporting the technical content of the claims, and being suitable for various audio application requirements.

[0084] The present embodiment realizes intelligent management and efficient switching of audio output through the collaborative work of multi-mode audio output optimization unit, adaptive output mode, scene recognition mode, and user priority setting mode. These functions work together to ensure efficient redirection of audio between different devices and usage scenarios, providing users with stable, fast, and personalized auditory enjoyment. The implementation of these functions and their mutual cooperation will be described in detail below.

[0085] Firstly, the multi-mode audio output optimization unit is the core component of the system, responsible for dynamically adjusting the audio output mode according to the current audio source type, user usage scenario, and device state. This unit, through cooperation with the control module and sensor module, collects audio source information (such as music, phone or video audio), user scenario data, and device connection state (such as whether the earphone is in the charging dock, whether the external device is connected) in real time, and selects the best audio output mode based on the pre-set optimization algorithm. For example, when detecting that the audio source is high-fidelity music and the earphone is in use, the unit will preferentially select earphone output and optimize the sound quality parameters; if the earphone is put into the charging dock and the external audio device is connected, it will switch to the external audio interface output. This dynamic adjustment capability lays the foundation for the realization of subsequent functions, ensuring that the system can flexibly respond to different usage conditions.

[0086] Based on the dynamic management capability of the multi-mode audio output optimization unit, the adaptive output mode further improves the automation level of audio switching. When the earphone is put into the charging dock, the system detects the earphone state through the connection sensing module and automatically selects the appropriate audio output path according to the connection of the external device. If the charging dock is connected to an external audio device, the audio will be output through the external audio interface; if there is no external device, it will be played through the built-in speaker of the charging dock. Conversely, when the earphone is taken out of the charging dock, the system preferentially restores the earphone audio output, while suspending other audio paths (such as the charging dock speaker or external device), ensuring that the audio stream is quickly switched back to the earphone. This adaptive switching process relies on real-time monitoring by the connection sensing module and fast response by the control module, realizing user-unaware audio redirection and providing great convenience for daily use.

[0087] On the basis of the adaptive output mode, the scene recognition mode further optimizes the flexibility of audio output by introducing intelligent scene analysis. This mode identifies the current use scene through sensors (such as acceleration sensors, ambient light sensors) or user input information (such as application settings), and automatically adjusts the audio output mode according to the scene. For example, in the conference mode, the system detects that the user may be in a conference scene (judged by calendar data or microphone input), and the optimization unit will preferentially select the external audio interface or the built-in speaker output to meet the audio sharing needs; in the sharing mode, when the user chooses to share audio with others, the built-in speaker will output synchronously with the earphone, realizing multi-device audio playback and facilitating multiple people to listen at the same time; in the private mode, when the system recognizes a quiet environment or the user manually selects the privacy setting, only the earphone outputs audio, shielding the charging dock speaker and external interface, ensuring the privacy of the audio. The implementation of the scene recognition mode relies on the fusion processing of multiple source data, enabling the audio output to accurately adapt to the actual needs of the user.

[0088] To meet the user's individual preferences, the user priority setting mode allows the user to preset the audio output priority through the physical button on the charging dock or the external device application, and the system automatically switches the output path according to these settings. For example, the user can quickly switch the audio output mode through the button on the charging dock, and pressing the button can cycle through the earphone, charging dock speaker, or external device as the primary output device. In addition, the user can also set the priority more meticulously through the mobile phone application, such as specifying the earphone as the preferred output device at all times, or preferentially using the external audio interface in specific scenarios. These setting information is stored in the system's storage module and called by the control module when switching, ensuring that the audio output strictly follows the user's preset rules. This user-led setting mode complements the automation features of the aforementioned functions, further enhancing the flexibility and user control of the system.

[0089] The implementation of the above functions cannot be achieved without the coordinated work of various modules. When the earphone state changes, the connection sensing module first senses the putting-in or taking-out action and transmits the state information to the control module. The control module generates audio switching instructions according to the dynamic adjustment rules of the multi-mode audio output optimization unit, combining the logic of the adaptive output mode, the scene recognition mode, and the user priority setting mode. The audio processing module receives the instructions, dynamically configures the output path, and optimizes the audio stream, ensuring the efficiency and stability of the switching process. At the same time, the communication module of the system manages the audio data transmission between multiple devices through the Bluetooth link, ensuring low delay and high reliability in the transmission process. For example, when the earphone is taken out of the charging dock, the audio processing module quickly redirects the audio stream to the earphone, suspends the charging dock speaker output, and shields other paths when the scene recognition mode detects a private scene, the entire process is fast and seamless.

[0090] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

Claims

1. A system for switching audio output between earphones and a charging case, characterized in that: include: The charging compartment body includes: An audio processing module, used for processing audio signals; A Bluetooth communication module, used to establish a Bluetooth connection with an external device and receive audio source requests; A storage module, used for storing audio files; Power management module, used to power the charging case and earphones; The control module is used to coordinate audio switching based on the headset status and audio source requests, including: Audio switching logic unit, used to dynamically adjust the audio output path based on the headset status and audio source request; Wherein, the audio switching logic unit is configured as follows: When the earphones are taken out of the charging case, the audio output is switched to the earphones; When the earphones are placed in the charging case, the audio output is switched to the audio output module; Audio output module, used for outputting audio signals; Headphones, including: The connection sensing module is used to detect whether the earphones are placed in the charging compartment and send status information to the control module; The earphone battery module is used to power the earphones and charge them in collaboration with the power management module; The system implements audio switching in the following manner: Check whether the earphones are placed in the charging case; According to the status of the earphone, the audio signal is switched to the earphone or audio output module output.

2. A system capable of switching audio output between earphones and a charging case according to claim 1, characterized in that: The connection sensing module includes a voltage detection unit and a Hall detection unit; The voltage detection unit collects voltage signals in real time through electrodes arranged between the earphones and the charging case body; The Hall detection unit detects the change in magnetic field caused by the proximity of the earphones through a Hall sensor provided in the charging compartment body and a magnetic component provided on the earphones; The voltage detection unit and the Hall detection unit work in parallel, synchronously collect their respective detection signals and send them to the control module.

3. The system for switching audio output between earphones and a charging case according to claim 2, characterized in that: The connection sensing module is configured as a dual Hall sensor array and a PIN foot detection unit based on a three-contact self-cleaning structure, wherein the dual Hall sensor array is distributed on the left and right sides of the earphone placement slot in the charging case body, and the three-contact self-cleaning structure maintains contact stability through a spring-type conductive element; the detection algorithm of the dual Hall sensor array includes each Hall sensor synchronously collecting magnetic field signals, performing digital low-pass filtering on the collected signals, performing differential calculation on the filtered signals of adjacent sensors to obtain a magnetic flux gradient, and comparing the gradient value with a preset threshold one by one to generate positioning data; the detection algorithm of the PIN foot detection unit includes PI An AC excitation signal of a predetermined frequency and amplitude is applied to the N pin, and the response voltage and current of each contact are synchronously measured. The AC impedance value of each contact is calculated according to Ohm's law, and the impedance value is compared with the calibration reference data to generate a detection signal. After the detection data of the dual Hall sensor array and the PIN pin detection unit are normalized, the weight is determined according to the measurement error and signal-to-noise ratio of each data, and a weighted average or Kalman filter algorithm is used for data fusion processing. After threshold comparison and logical judgment, the final state detection output is formed. This detection output is sent to the control module through the internal transmission interface, and the characteristic value is adjusted to adapt to environmental changes in combination with the temperature compensation mechanism.

4. The system for switching audio output between earphones and a charging case according to claim 3, characterized in that: The audio switching logic unit in the control module is further configured to determine that the earphone is placed in the charging compartment body and switch the audio output to the audio output module when the voltage signal collected by the voltage detection unit exceeds a preset first threshold and the change in magnetic field strength detected by the Hall detection unit exceeds a preset second threshold; otherwise, it is determined that the earphone is not placed in the charging compartment body and the audio output is switched to the earphone; the control module is further configured to execute an adaptive calibration algorithm by collecting signals from the voltage detection unit and the Hall detection unit as reference values ​​when the earphone is not placed in the charging compartment body, and dynamically adjusting the first threshold and / or the second threshold according to the reference values, wherein when the voltage signal of the voltage detection unit does not reach the first threshold and the Hall detection unit detects that the magnetic field strength continues to exceed the original second threshold, it is determined to be a strong magnetic field environment and dynamic adjustment is initiated; the collection of the reference signal includes the voltage detection unit charging / communicating through the contacts of the charging compartment body and the earphone, connecting to the ADC interface of the control module in a voltage divider manner for periodic sampling, and determining the loop formation state based on the sampled digital quantity to determine the earphone position, charging or communication status; The Hall detection unit detects changes in the magnetic field through the magnetic components on the earphones and the Hall sensor in the charging case, and determines the status of the earphones entering or exiting the charging case based on the changes in magnetic field strength; The dynamic adjustment is for magnetic field strength detection: in a strong magnetic field environment, the weighted average value of the magnetic field strength within a preset time period is calculated, and this average value plus a preset increment is used as the new second threshold. The calculated threshold is set with a range limit. If the calculated new threshold exceeds the preset upper or lower limit range, it is adjusted to the corresponding boundary value; when the earphones are placed in the charging case body again and taken out, the second threshold returns to its original state.

5. The system for switching audio output between earphones and a charging case according to claim 4, characterized in that: The control module is further configured to perform a parallel determination on the voltage data and the electromagnetic data by: a. synchronously and parallelly collect the analog voltage signal of the voltage detection unit and the analog magnetic field signal of the Hall detection unit, and convert them into digital data; Among them, the ADC interface collects the divided voltage at the negative end of the charging compartment, converts it and determines the status based on the digital value; similarly, the magnetic field conversion voltage is processed and the status is determined; the two states are logically ANDed to determine whether the earphones are placed in the charging compartment; b. Digital low-pass filtering is performed on the digital magnetic field data to remove noise. The absolute difference is then calculated using a dual Hall sensor array to obtain the magnetic flux gradient characteristic value. The array is distributed on both sides of the charging slot; c. Obtain the currently valid first and second thresholds. These thresholds are dynamically updated using an adaptive calibration algorithm. When the earbuds are not placed in the charging compartment, the reference signals of the voltage detection unit and the Hall detection unit are collected. The thresholds are adjusted based on the reference values ​​to adapt to environmental changes. A weighted average is calculated and range limits are set in a strong magnetic field environment. The original thresholds are restored after the earbuds are reinserted and removed. d. Comparing the digital voltage data with the first threshold in parallel and comparing the magnetic field characteristic value with the second threshold; e. If and only if the digital voltage data exceeds the first threshold and the magnetic field characteristic value exceeds the second threshold, it is determined that the headset is placed in the charging compartment body; Otherwise, it is determined that the earphones are not placed in the charging case; f. Send the final judgment result to the audio switching logic unit as the basis for it to switch the audio output path, and quickly switch the audio after determining that the headphones are in the warehouse.

6. The system for switching audio output between earphones and a charging case according to claim 1, characterized in that: The Bluetooth communication module can simultaneously establish multiple communication links between the mobile phone, charging compartment and headset, including classic Bluetooth links and low-power Bluetooth links, for transmitting audio data, control signals and status information; The Bluetooth communication module supports dynamic allocation of device roles, specifically: When the headset is placed in the charging compartment, the charging compartment is configured as a master device to establish a first communication link with the mobile phone; When the headset is taken out of the charging case, the headset is configured as the primary device and a second communication link is established with the mobile phone; In the first communication link, extending the connection interval and adopting the first frequency hopping table; In the second communication link, shortening the connection interval to below a preset threshold and enabling a low-latency transmission mode; The connection sensing module detects the insertion or removal of the earphones and generates status information. Based on this status information, the control module switches the phone's main audio transmission channel to the corresponding communication link, extends the connection interval and optimizes power consumption for the non-primary link, while maintaining the control sub-link between the charging case and the earphones to transmit status information. The Bluetooth communication module has a built-in storage unit that pre-stores a set of link parameters corresponding to the headset insertion and removal states, including a connection interval, a frequency hopping table, and transmission mode parameters. When the headset state changes, the Bluetooth communication module loads the corresponding parameter set within a preset time.

7. The system for switching audio output between earphones and a charging case according to claim 6, characterized in that: The Bluetooth communication module establishes multiple communication links between the mobile phone, the charging compartment and the headset through the following methods: Perform three-way Bluetooth pairing of the mobile phone, charging case, and headset. After pairing is completed, the control module records the binding relationship between the mobile phone Bluetooth address, the charging case device ID, and the headset serial number; A first communication link is established between the mobile phone and the charging pod, with the mobile phone configured as the audio source master device and the charging pod as the audio receiving slave device. The mobile phone sends a link establishment instruction to the charging pod via the audio transmission profile of the Bluetooth protocol stack. The charging pod receives the instruction and configures its Bluetooth protocol stack to respond to the audio transmission request. The link uses the classic Bluetooth protocol to transmit audio data streams and playback control instructions. The link parameters include a preset connection interval and a first frequency hopping table. The first frequency hopping table is generated by the mobile phone and transmitted to the charging pod through initial pairing. Establish a second communication link between the charging pod and the headset, configure the charging pod as the control master device and the headset as the control slave device, and send a status monitoring link establishment instruction to the headset via the low-power Bluetooth protocol. The headset receives the instruction and configures its Bluetooth protocol stack to respond to the status query request; A third communication link is pre-established between the mobile phone and the headset, with the mobile phone configured as the master connection node and the headset as the slave connection node. The mobile phone sends a pre-connection instruction to the headset via a low-latency transmission profile of the Bluetooth protocol stack. The headset receives the instruction and configures its Bluetooth protocol stack to maintain a standby connection state. The audio transmission function is activated when the headset is removed from the charging compartment. The link parameters include a connection interval below a preset threshold and a third frequency hopping table. The third frequency hopping table is generated by the mobile phone and transmitted to the headset via the pre-connection. Through the multi-connection function of the Bluetooth protocol stack, the charging case simultaneously maintains a first communication link with the mobile phone and a second communication link with the headset, while the mobile phone maintains a third communication link with the headset, forming a triangular communication architecture; The Bluetooth communication module coordinates the time allocation of the first communication link and the second communication link through a time division multiplexing mechanism, specifically: Divide the Bluetooth basic time slot into multiple sub-time slots and allocate them to the first communication link or the second communication link according to a preset allocation strategy; at the beginning of each sub-time slot, adjust the Bluetooth protocol stack parameters of the charging pod according to the allocation of the current sub-time slot to switch to a slave device or a master device; The time slot table is stored in the storage module and includes sub-time slot numbers and their allocation information. The Bluetooth communication module uses the time slot counter to query the time slot table, determine the current sub-time slot allocation, and perform role switching and data transmission accordingly.

8. The system for switching audio output between earphones and a charging case according to claim 7, characterized in that: The Bluetooth communication module is further configured to implement audio switching by the following method: When it detects that the headset is being put into storage, worn, or a switching request is issued by the mobile phone, the control module sends a connection parameter update instruction or a role switching instruction to the corresponding link, dynamically adjusting the frequency hopping table or connection interval to adapt to the current status; The control module stores historical pairing information of the phone, charging case, and earphones, including Bluetooth addresses, authorization keys, and previously used link parameters. When switching between external speaker mode and earphone private playback mode, the connection configuration of the corresponding link is directly loaded, reducing re-pairing time. After each communication link is established, multiple connection records are kept for the three pairs of devices, allowing the control module to switch the audio output path without disconnecting the existing link; An earphone entry detection device is set in the charging compartment, or a wearing detection unit is set on the earphone side. The control module selects to route the audio data stream to the charging compartment external speaker or the earphone end according to the earphone entry / exit signal or wearing / removal signal, and realizes fast switching by adjusting the connection parameters; the Bluetooth communication module is equipped with a low-power Bluetooth connection status monitoring unit, which realizes status detection by real-time analysis of host control interface events. Specifically, the built-in sampling circuit is used to continuously sample the received signal strength at a sampling rate of 100 times per second, and the analog-to-digital conversion module performs digital filtering processing, and a weight distribution algorithm is used to calculate the communication quality index, and the communication quality parameter is extracted from the data link; Set up an audio data transmission status monitoring module to perform multi-level state decomposition and real-time monitoring of the audio data transmission state machine, and monitor state transitions, transmission delays, and data frame losses; The sampling data, communication quality parameters and audio transmission status information are aggregated through the internal data transmission interface and transmitted to the control module.

9. The system for switching audio output between earphones and a charging case according to claim 2, wherein: When interference or signal quality degradation is detected in the link environment, the control module executes the following steps by calling the frequency hopping update function in the protocol stack: collecting link quality data such as signal strength, signal-to-noise ratio, and bit error rate from the receiving end, and preprocessing the collected data; using a preset frequency hopping update algorithm to calculate the preprocessed data to generate new frequency hopping table data for the first communication link, the second communication link, or the third communication link; encapsulating the newly generated frequency hopping table data into a control instruction containing parameter identifiers, target values, and verification information, and sending it to the Bluetooth communication module through the downlink control channel in the Bluetooth protocol stack; and integrating the above-mentioned collected data, the calculated communication quality indicators, the audio transmission status information, and the frequency hopping update control information through the internal data transmission interface and transmitting them to the control module.

10. The system for switching audio output between earphones and a charging case according to claim 2, characterized in that: When a valid trigger signal is detected, the control module sends a preloading start signal through the internal bus and establishes a dedicated data transmission channel between the memory and the peripheral device. The channel is pre-configured with the transmission source address, destination address, data block size and transmission mode. The data transmission process is independent of the central processing unit, and high-speed and low-latency data exchange is achieved through parallel signal processing and interrupt mechanism, and supports multi-channel independent configuration and parallel transmission; the preloading unit uses the channel to continuously collect audio data from the Bluetooth communication module or storage module, and performs low-bit rate encoding processing on the collected data, and divides the encoded audio data into data packets with a fixed length of five milliseconds and stores them in a preset audio buffer. The data packets are then called by the audio output module; the system also includes a multi-mode audio output optimization unit for optimizing the audio data according to the current audio source type and user usage scenario. And the audio output mode is dynamically adjusted according to the device status, specifically including adaptive output mode: when the earphones are placed in the charging case, the built-in speaker output is automatically selected or switched to the external audio device according to the connection status of the external device. When the earphones are taken out of the charging case, the earphone audio output is restored first, and other audio paths are paused at the same time; scene recognition mode: the usage scenario is identified through sensors or user input information, and the audio output method is automatically adjusted according to the scenario, including the conference mode giving priority to the external audio interface or built-in speaker output, the sharing mode built-in speaker output and synchronization to the earphones to achieve multi-device audio sharing, and the private mode only outputs audio through the earphones and shields the charging case speaker and external interface; user priority setting mode: the user can preset the audio output priority through the button on the charging case or the external device application, and the system automatically switches the output path according to the setting; The audio quality enhancement module includes a dynamic equalization adjustment function that optimizes audio parameters in real time according to the audio content type to ensure the best listening experience, and an environmental noise compensation function that dynamically adjusts the audio output volume and frequency response to adapt to the environment by detecting the external noise level through environmental sensors.

Citation Information

Patent Citations

  • Bluetooth multi-terminal link switching method, Bluetooth audio equipment and Bluetooth system

    CN111654845A

  • Master-slave switching method of TWS earphone

    CN111988689A

  • Bluetooth connection method, device and system

    CN113225693A

  • Audio switching method, terminal device and Bluetooth device

    CN116405826A

Cited By

  • Charging bin adaptive to earphone specification

    CN122027945A

  • An adaptive earpiece specification charging pod

    CN122027945B