Time sequence dynamic key flexible pairing wireless audio transmission system
Through the two-way timestamp interaction and dynamic key negotiation mechanism between the transmitter and receiver, the problems of communication interruption and insufficient pairing flexibility caused by dynamic key timing asynchrony in traditional wireless audio devices are solved, low-cost, high-precision time synchronization and key management are achieved, and the reliability and adaptability of the equipment are improved.
Patent Information
- Application Number
- CN202511039873.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-25
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2045-07-25
AI Technical Summary
Traditional wireless audio devices are prone to communication interruptions and insufficient flexibility in multi-device pairing when dynamic key timing is out of sync. This is especially difficult to meet flexible adaptation requirements in professional audio scenarios, and existing solutions increase hardware costs or complexity, which is contrary to the low-cost design goal.
The time offset calibration value is calculated through two-way timestamp interaction between the transmitter and receiver, RTC clock drift is compensated in real time, and a dynamic key negotiation mechanism is embedded in the pairing mode to ensure that both parties maintain timing consistency during dynamic key switching. A two-way communication negotiation mechanism is used to support multiple receivers to initiate pairing simultaneously. Software algorithm optimization and system architecture innovation are used to achieve low-cost, high-precision time synchronization and key management.
It significantly improves the pairing flexibility and long-term reliability of wireless audio devices, reduces the risk of communication interruption, improves pairing efficiency in multi-device scenarios, adapts to RTC drift in extreme environments, supports flexible adaptation of more types of receivers, and reduces hardware costs and after-sales maintenance costs.
Smart Images

Figure CN120640437A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of wireless microphones, and in particular to a time-series dynamic key flexible pairing wireless audio transmission system. Background Art
[0002] In the field of wireless audio transmission, the 2.4G frequency band is widely used in devices such as headphones and microphones due to its low cost and strong compatibility. However, traditional solutions generally face two major technical bottlenecks: communication interruption caused by dynamic key timing asynchrony and insufficient flexibility in multi-device pairing.
[0003] Existing dynamic key-based pairing schemes typically use a fixed time window (e.g., ±30 seconds) to tolerate RTC drift between the transmitter and receiver. However, due to individual device variations (e.g., crystal oscillator aging, ambient temperature fluctuations), RTC errors accumulate over time (typically exceeding ±10ppm), leading to frequent timing deviations during dynamic key switching, ultimately causing packet loss or even disconnection. To address this issue, some solutions rely on Bluetooth modules to assist with time synchronization or add dedicated clock calibration chips. While these solutions improve synchronization accuracy, they significantly increase hardware cost and system complexity, contradicting the design goals of low-cost wireless audio devices.
[0004] Furthermore, traditional pairing processes often rely on one-way key negotiation (e.g., only the transmitter initiates pairing), with the receiver responding passively. Furthermore, they lack a real-time clock calibration mechanism, making it impossible to dynamically compensate for RTC drift. This results in a decrease in pairing success rates over time for older devices or those that have been in use for extended periods of time (measured pairing failure rates exceed 20% after one year). For professional audio scenarios requiring frequent switching of pairing partners (such as multi-device collaboration on stage), this "static pairing" model struggles to meet the flexible adaptation requirements, becoming a common technical pain point in the industry.
[0005] Therefore, a system is urgently needed to solve at least one of the above problems. Summary of the Invention
[0006] This application provides a time-series dynamic key flexible pairing wireless audio transmission system, which aims to achieve flexible and secure dynamic pairing without increasing hardware costs and making full use of existing 2.4G radio frequency and MCU resources.
[0007] In a first aspect, the present application provides a time-sequential dynamic key flexible pairing wireless audio transmission system for achieving pairing of a preset transmitter and receiver; The transmitter includes a first timing key module, a first communication engine and a first key management unit, and the receiver includes a second timing key module, a second communication engine and a second key management unit; the first timing key module and the second timing key module respectively generate a first dynamic key and a second dynamic key for the transmitter and the receiver based on corresponding RTC clocks; the first communication engine and the second communication engine both support pairing mode; the pairing mode is used to complete initial time synchronization and key negotiation between the transmitter and the receiver; the first key management unit and the second key management unit respectively store the first dynamic key and the second dynamic key, and both store a time offset calibration value and a dynamic key validity period for compensating for drift of the corresponding RTC clocks of the transmitter and the receiver; Among them, after receiving the pairing request, the transmitter and the receiver respectively obtain the first RTC timestamp and the second RTC timestamp of the corresponding RTC clock, and the first timing key module and the second timing key module respectively calculate the first dynamic key and the second dynamic key according to the corresponding first RTC timestamp and the second RTC timestamp; in the pairing mode, the receiver broadcasts the pairing request packet corresponding to the first dynamic key, the transmitter listens to the pairing request packet and completes the key negotiation according to the first dynamic key and the second dynamic key, the time offset calibration value and the dynamic key validity period. After the key negotiation is passed, the transmitter generates a pairing response packet and broadcasts it to the receiver to complete the pairing of the transmitter and the receiver.
[0008] In some embodiments, the first key management unit and the second key management unit respectively store a preset root key; after the key negotiation is passed, the transmitter generates a pairing response packet and broadcasts it to the receiver, the first key management unit obtains and stores the second dynamic key and receiver identification information corresponding to the receiver, and the second key management unit obtains the first dynamic key and transmitter identification information corresponding to the transmitter to complete the pairing of the transmitter and the receiver; and completes the transmission of the preset audio signal according to the root key.
[0009] In some embodiments, the first communication engine and the second communication engine further support a transmission mode for securely transmitting audio data based on a preset encryption algorithm in the transmission mode.
[0010] In some embodiments, the transmission mode is used to perform radio frequency transmission in a preset frequency band, and the preset frequency band corresponds to a frequency band range of 2400 to 2483.5 MHz.
[0011] In some embodiments, the receiver is connected to a preset host terminal; the second dynamic key is generated by the host terminal and written into a key injection interface corresponding to the second sequential key module.
[0012] In some embodiments, the second dynamic key is a time-based one-time dynamic key, and the generation of the second dynamic key is based on the HMAC-SHA1 algorithm.
[0013] In some embodiments, the transmitter detects the type of the connected device through a preset compatible mode switching module. When it is determined that the device type is an old receiver, the transmitter switches to a fixed key protocol that matches the old receiver for communication.
[0014] In some embodiments, the first timing key module and the second timing key module respectively write the first key information and the second key information to the first communication engine and the second communication engine based on a preset extended instruction set to complete the generation of the pairing request packet and key negotiation; wherein the extended instruction set includes instruction information for writing the key.
[0015] In some embodiments, the first dynamic key and the second dynamic key are generated by a preset algorithm based on time synchronization, and the preset algorithm includes a time-based one-time password algorithm.
[0016] In some embodiments, the transmitter and the receiver include a first user interaction interface and a second user interaction interface, respectively, and the pairing request is generated when the first user interaction interface and the second user interaction interface are triggered.
[0017] This application belongs to the field of wireless microphone technology, specifically to a wireless audio transmission system based on the 2.4G frequency band. To address the problems existing in the prior art, a flexible pairing system based on timing dynamic keys is proposed. The system calculates a time offset calibration value through two-way timestamp interaction between the transmitter and receiver, compensates for RTC clock drift in real time, and embeds a dynamic key negotiation mechanism in the pairing mode to ensure that both parties maintain timing consistency during dynamic key switching. Unlike existing solutions, the present invention does not require additional hardware modules (such as Bluetooth chips). It achieves low-cost, high-precision time synchronization and key management solely through software algorithm optimization and system architecture innovation, fundamentally resolving the communication interruption problem caused by dynamic key switching and significantly improving the pairing flexibility and long-term reliability of wireless audio devices. By calculating a time offset calibration value through two-way timestamp interaction during pairing, the RTC clock drift of the transmitter and receiver is compensated in real time, ensuring strict alignment of dynamic key generation timing and completely resolving the packet loss and disconnection problems caused by asynchronous key switching. Pairing mode utilizes two-way communication negotiation (the receiver broadcasts a pairing request packet, and the transmitter actively responds). Unlike traditional one-way pairing processes, it supports simultaneous pairing by multiple receivers and dynamically adjusts key generation parameters based on the device's real-time clock (RTC) status. This allows a single transmitter to flexibly adapt to 10+ different receiver models (traditional solutions only support 3-5 fixed models), significantly improving pairing efficiency in multi-device scenarios. This design does not rely on Bluetooth modules or dedicated calibration chips. Instead, it utilizes a software-defined timing key module and communication engine dual-mode design, reusing existing 2.4G communication hardware resources to achieve high-precision time synchronization within the MCU's computing power, meeting the low-cost mass production requirements of consumer devices.
[0018] The dynamic key validity period (default ±30 seconds) stored in the key management unit provides a flexible tolerance window for timing deviation. Combined with the real-time calibration value update mechanism, it can automatically adapt to RTC drift caused by factors such as temperature changes (-20℃~60℃) and device aging, thereby improving the pairing success rate of devices in extreme environments, significantly outperforming traditional fixed window solutions.
[0019] In summary, the present invention breaks through the timing synchronization bottleneck of traditional 2.4G wireless audio devices through the system architecture innovation of "bidirectional timestamp calibration + dynamic key negotiation" without increasing hardware costs, and achieves the technical effects of "high-precision synchronization, low-cost adaptation, and strong environmental adaptability". Its core creativity lies in the deep integration of RTC clock management, key generation algorithm and communication protocol to form a self-calibrating dynamic pairing mechanism, providing a new technical path for the large-scale application of wireless audio devices.
[0020] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0022] Figure 1 This is a schematic block diagram of the structure of the first time-series dynamic key flexible pairing wireless audio transmission system provided by an embodiment of the present application; Figure 2 This is a schematic block diagram of the structure of the second time-series dynamic key flexible pairing wireless audio transmission system provided by an embodiment of the present application; Figure 3 This is a schematic diagram of the original solution of the time-series dynamic key flexible pairing wireless audio transmission system provided by an embodiment of the present application; Figure 4 This is a schematic diagram of a first improved solution of a time-series dynamic key flexible pairing wireless audio transmission system provided by an embodiment of the present application; Figure 5 This is a schematic diagram of a second improved solution of the time-series dynamic key flexible pairing wireless audio transmission system provided by an embodiment of the present application.
[0023] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0025] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, combined, or partially merged, so the actual execution order may vary depending on the actual situation.
[0026] It should be understood that, in order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, terms such as "first" and "second" are used to distinguish between identical or similar items having substantially the same functions and effects. Those skilled in the art will understand that terms such as "first" and "second" do not limit the quantity or order of execution, and that terms such as "first" and "second" do not necessarily define differences.
[0027] It should be understood that the terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0028] It will also be understood that the term "and / or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0029] The following describes some embodiments of the present application in detail with reference to the accompanying drawings. In the absence of conflict, the following embodiments and features therein may be combined with each other.
[0030] In the field of wireless audio transmission, the 2.4G frequency band is widely used in devices such as headphones and microphones due to its low cost and strong compatibility. However, traditional solutions generally face two major technical bottlenecks: communication interruption caused by dynamic key timing asynchrony and insufficient flexibility in multi-device pairing.
[0031] Existing dynamic key-based pairing schemes typically use a fixed time window (e.g., ±30 seconds) to tolerate RTC drift between the transmitter and receiver. However, due to individual device variations (e.g., crystal oscillator aging, ambient temperature fluctuations), RTC errors accumulate over time (typically exceeding ±10ppm), leading to frequent timing deviations during dynamic key switching, ultimately causing packet loss or even disconnection. To address this issue, some solutions rely on Bluetooth modules to assist with time synchronization or add dedicated clock calibration chips. While these solutions improve synchronization accuracy, they significantly increase hardware cost and system complexity, contradicting the design goals of low-cost wireless audio devices.
[0032] Furthermore, traditional pairing processes often rely on one-way key negotiation (e.g., only the transmitter initiates pairing), with the receiver responding passively. Furthermore, they lack a real-time clock calibration mechanism, making it impossible to dynamically compensate for RTC drift. This results in a decrease in pairing success rates over time for older devices or those that have been in use for extended periods of time (measured pairing failure rates exceed 20% after one year). For professional audio scenarios requiring frequent switching of pairing partners (such as multi-device collaboration on stage), this "static pairing" model struggles to meet the flexible adaptation requirements, becoming a common technical pain point in the industry.
[0033] To address these issues, the present invention proposes a flexible pairing system based on time-based dynamic keys. This system calculates a time offset calibration value through bidirectional timestamp interaction between the transmitter and receiver, compensating for RTC clock drift in real time. A dynamic key negotiation mechanism is embedded within the pairing mode to ensure timing consistency between the two parties during dynamic key switching. Unlike existing solutions, this system eliminates the need for additional hardware modules (such as Bluetooth chips) and achieves low-cost, high-precision time synchronization and key management solely through software algorithm optimization and system architecture innovation. This fundamentally addresses the communication interruption caused by dynamic key switching, significantly improving the pairing flexibility and long-term reliability of wireless audio devices.
[0034] Please refer to Figure 1 , the present application provides a timing dynamic key flexible pairing wireless audio transmission system for realizing the pairing of a preset transmitter 10 and a receiver 20; the transmitter 10 includes a first timing key module 11, a first communication engine 12 and a first key management unit 13, and the receiver 20 includes a second timing key module 21, a second communication engine 22 and a second key management unit 23; the first timing key module 11 and the second timing key module 21 respectively generate a first dynamic key and a second dynamic key for the transmitter 10 and the receiver 20 based on the corresponding RTC clock; the first communication engine 12 and the second communication engine 22 both support pairing mode; the pairing mode is used to complete the initial time synchronization and key negotiation between the transmitter 10 and the receiver 20; the first key management unit 13 and the second key management unit 23 respectively store the first dynamic key and the second dynamic key, and both store A time offset calibration value and a dynamic key validity period are stored for compensating for the drift of the corresponding RTC clocks of the transmitter 10 and the receiver 20; wherein, after receiving a pairing request, the transmitter 10 and the receiver 20 respectively obtain the first RTC timestamp and the second RTC timestamp of the corresponding RTC clock, and the first timing key module 11 and the second timing key module 21 respectively calculate the first dynamic key and the second dynamic key according to the corresponding first RTC timestamp and the second RTC timestamp; in pairing mode, the receiver 20 broadcasts a pairing request packet corresponding to the first dynamic key, the transmitter 10 listens to the pairing request packet and completes the key negotiation according to the first dynamic key and the second dynamic key, the time offset calibration value and the dynamic key validity period. After the key negotiation is passed, the transmitter 10 generates a pairing response packet and broadcasts it to the receiver 20, completing the pairing of the transmitter 10 and the receiver 20.
[0035] Specifically, the present invention provides a wireless audio transmission system with flexible pairing of timing dynamic keys, which realizes high-precision pairing and secure communication without relying on a Bluetooth module through a two-way time synchronization and dynamic key negotiation mechanism between a transmitter 10 and a receiver 20.
[0036] The first and second timing key modules 11 and 21 (on the transmitter 10 and receiver 20 sides) have built-in high-precision RTC clocks (with an error of ≤ ±10ppm). Based on TOTP (Time-Based One-Time Password) or similar timing algorithms, they generate dynamic keys (e.g., updated every 30 seconds) from the local RTC timestamp. This strong binding of the dynamic keys to the timestamp ensures that the transmitter 10 and receiver 20 generate the same key within the synchronized time window, thus preventing communication failures caused by key inconsistencies.
[0037] The first communication engine 12 and the second communication engine 22 (transmitter 10 / receiver 20 end) support dual-mode operation: pairing mode: through plain text transmission of control instructions (such as timestamps, key negotiation requests), complete the initial time synchronization and key negotiation, laying the foundation for subsequent encrypted communication; transmission mode: use the AES-128 encryption algorithm to securely transmit audio data to ensure that link layer data is anti-eavesdropping.
[0038] The first key management unit 13 and the second key management unit 23 (transmitter 10 / receiver 20 end) store three core parameters: dynamic key: a real-time key generated by the instantaneous key module, used to encrypt / decrypt audio data; time offset calibration value: calculated through two-way timestamp interaction during pairing, to compensate for individual differences in the RTC clocks of the transmitter 10 and receiver 20 (such as crystal oscillator drift); dynamic key validity period: defines the allowable timing deviation tolerance window (default ±30 seconds) to ensure that both parties can still generate valid keys when the RTC drifts slightly.
[0039] Different from traditional one-way pairing (only the transmitter 10 initiates the request), this system adopts a two-way interactive mode in which the receiver 20 actively broadcasts and the transmitter 10 responds intelligently: Time synchronization: During pairing, the two parties exchange RTC timestamps, calculate the initial time offset (such as the difference ΔT between the transmitter 10 timestamp T1 and the receiver 20 timestamp T2), and store ΔT as a calibration value. The offset is automatically compensated when the dynamic key is subsequently generated (key generation time = local time - ΔT); Key negotiation: The transmitter 10 verifies the consistency of the keys of both parties within the time window based on its own dynamic key, the receiver 20 dynamic key, the calibration value and the validity period, ensuring that only devices with synchronized timing complete pairing and preventing incorrect connection of devices with different timing sequences.
[0040] In some embodiments, the transmitter 10 / receiver 20 both integrate a low-cost MCU (such as STM32F103), a 2.4G wireless transceiver chip (such as nRF24L01), and a high-precision RTC module (external 32.768kHz crystal oscillator, error ±10ppm); the dynamic key algorithm adopts the TOTP algorithm (HMAC-SHA1), and the key generation formula is: dynamic key = TOTP (key seed, current RTC timestamp, time step 30 seconds), where the key seed is generated through negotiation during pairing and stored in the key management unit; time offset calculation: through the two-way timestamp interaction formula ΔT = (T2 send - T1 receive + T1 send - T2 receive) / 2, the influence of signal transmission delay is eliminated and the calibration accuracy is improved.
[0041] By pressing and holding the physical pairing button on transmitter 10 / receiver 20 for 3 seconds, the blue LED light flashes, the devices enter pairing mode, and the communication engine switches to broadcast / listen mode. Receiver 20's second timing key module 21 retrieves the current RTC timestamp T2 and generates a second dynamic key K2. Second communication engine 22 encapsulates a pairing request packet (containing the device ID, T2, and a hash of K2) and broadcasts it to the 2.4 GHz band at 200ms intervals for 10 seconds. After receiving the request packet, transmitter 10's first communication engine 12 extracts the hash values of T2 and K2, and simultaneously retrieves its own RTC timestamp T1 to generate a first dynamic key K1. It then calculates the initial time offset ΔT = T1 - T2 and verifies that K1 and K2 correspond to the same timing key within a window of ΔT ± the dynamic key validity period (±30 seconds) (i.e., K1 = K2(local time - ΔT)). If verification succeeds, the process proceeds to the next step. If verification fails (e.g., due to a large timing offset), the process waits for the next request packet and recalculates ΔT (retrying up to three times to avoid wasted power). The first communication engine 12 generates a pairing response packet (containing T1, ΔT, key seed, and validity period parameters) and broadcasts it to the receiver 20. Upon receiving the packet, the receiver 20 stores ΔT as a time offset calibration value. When subsequently generating dynamic keys, the receiver automatically uses the local time minus ΔT as the input timestamp to ensure timing alignment with the transmitter 10. The key management units on both sides synchronously update the dynamic key validity period parameters (e.g., user-customizable to ±15 seconds to ±60 seconds via the app). The LED indicator turns solid blue, and the communication engine switches to AES-128 encryption mode, encrypting the audio data for transmission based on the synchronized dynamic key. During transmission, a timestamped calibration packet (containing the current RTC time) is inserted into every 10 audio data packets to monitor ΔT changes in real time. If the offset exceeds 80% of the validity period (e.g., ±24 seconds), an automatic calibration value update is triggered to prevent cumulative errors from causing disconnection.
[0042] Through a bidirectional timestamp calibration mechanism, the timing deviation between transmitter 10 and receiver 20 is converted from the traditional "fixed window tolerance" to "real-time dynamic compensation." This reduces the number of disconnections from 15 to 0 in 24 hours of continuous operation, completely eliminating packet loss during key handovers (bit error rate reduced from 10^-3 to 10^-6). The receiver 20 can proactively initiate pairing requests, and a single transmitter 10 can simultaneously respond to pairing broadcasts from 10+ receivers 20 (compared to traditional solutions that only support 3-5 one-way pairings). This makes it ideal for rapidly networking multiple devices in scenarios like stage performances and conference systems, improving pairing efficiency by 300% (from 5 minutes per group for manual pairing to 10 seconds per group through automatic negotiation). This solution does not rely on Bluetooth modules or dedicated clock chips, but instead achieves high-precision synchronization through existing 2.4G hardware and optimized algorithms. Compatible with mainstream MCU platforms (such as ESP32 and STM32), it is suitable for mass production of consumer headphones and microphones.
[0043] The key management unit's dynamic calibration value update mechanism automatically adapts to factors such as temperature changes (RTC drift compensation efficiency is improved between -20°C and 60°C) and device aging, increasing the pairing success rate for three-year-old devices and significantly reducing after-sales maintenance costs.
[0044] The TOTP algorithm, combined with AES-128 encryption, features dynamically adjustable key update cycles and time windows (minimum 15 seconds), making key cracking over 100 times more difficult than traditional fixed-key schemes. This meets the needs of data-security-sensitive scenarios such as medical monitoring and live broadcasting. Negotiation time is reduced in pairing mode, and encryption latency is reduced in transmission mode. Overall latency is superior to the Bluetooth 5.0 standard, supporting latency-critical applications such as instrument monitoring and live broadcasting.
[0045] This invention builds a self-calibrating timing synchronization system in the 2.4G wireless transmission architecture through a closed-loop mechanism of "two-way interaction of timestamps → dynamic calibration value generation → key negotiation solidification". It transforms the "passive tolerance of timing deviations" in traditional solutions into "active compensation of timing differences", breaking through the core bottleneck of dynamic key pairing at the system level and setting a new technical standard for the reliability and flexibility of low-cost wireless audio devices.
[0046] In some embodiments, the first key management unit 13 and the second key management unit 23 respectively store a preset root key; after the key negotiation is passed, the transmitter 10 generates a pairing response packet and broadcasts it to the receiver 20, the first key management unit 13 obtains and stores the second dynamic key corresponding to the receiver 20 and the identification information of the receiver 20, and the second key management unit 23 obtains the first dynamic key corresponding to the transmitter 10 and the identification information of the transmitter 10, completing the pairing of the transmitter 10 and the receiver 20; and completes the transmission of the preset audio signal according to the root key.
[0047] By introducing a root key system based on key negotiation, the device stores mutually recognized dynamic keys and identification information after pairing, enabling secure audio signal transmission based on the root key. The transmitter 10 and receiver 20 pre-store the root key (a master key burned into the device at the factory). After successful pairing, each device stores the other's dynamic key and device ID (such as MAC address) in both directions. During audio transmission, the session key is derived from the root key, forming a two-layer security system of "root key + dynamic key."
[0048] The root key is pre-configured by writing the same root key (such as a 128-bit AES root key) into the transmitter 10 and the receiver 20 during the production phase using a secure burning tool and stored in a secure storage area (tamper-proof Flash) of the key management unit. The root key is only used for identity authentication during the key negotiation phase and does not directly participate in data encryption.
[0049] The pairing response packet generated by the transmitter 10 includes: its own dynamic key K1 (encrypted by the root key); transmitter 10 identification information (such as a 16-bit device ID); and a root key verification code (used by the receiver 20 to verify the legitimacy of the identity).
[0050] Key and identification storage: After receiving the response packet, the receiver 20 uses the local root key to decrypt K1, stores it in the second key management unit 23, and records the transmitter 10 ID; the transmitter 10 synchronously stores the receiver 20's K2 and ID to form a device pairing list (supports storage of 5-10 groups of pairing information).
[0051] Audio transmission encryption: When transmitting audio, the root key is used as the seed and combined with the current dynamic key to generate a session key (such as an AES-128 session key) to perform block encryption on the PCM audio data.
[0052] The root key prevents malicious devices from forging pairing responses, and the dynamic key avoids the risk of key leakage, making it 50 times more difficult to crack than a single key scheme. Device binding uniqueness: By storing the device ID, it prevents unpaired devices from impersonating access (for example, the transmitter 10 only responds to requests from the receiver 20 in the list), which is suitable for professional audio scenarios with high security requirements. The root key is fixed and the dynamic key is updated regularly, reducing the computing power consumption of frequently generating high-strength keys (key derivation takes less than 50μs).
[0053] In some embodiments, the first communication engine 12 and the second communication engine 22 further support a transmission mode for securely transmitting audio data based on a preset encryption algorithm in the transmission mode.
[0054] The communication engine supports dual-mode switching, entering transmission mode (encrypted transmission) after pairing mode (plaintext negotiation), and ensuring audio data security based on preset encryption algorithms (such as AES-128).
[0055] Mode switching logic: Pairing mode: The communication engine operates on the unencrypted control channel (channel 0x66), transmits control commands (timestamps, key negotiation packets), and the baud rate is set to 250kbps (taking into account stability and power consumption). Transmission mode: After pairing is completed, it switches to the encrypted channel (channel 0xAA), enables the AES-128 encryption module, and increases the baud rate to 2Mbps (meeting the 44.1kHz audio transmission bandwidth requirement).
[0056] Encryption process implementation: Transmitter 10 divides the audio PCM data into 128-bit data blocks, encrypts it with AES-ECB using the current dynamic key, and adds a 16-bit CRC check code. After receiving the encrypted data, receiver 20 decrypts it using the local dynamic key, verifies the CRC and restores the PCM signal.
[0057] Plain text transmission during the pairing phase ensures negotiation speed (<200ms), and encryption during the transmission phase prevents audio eavesdropping, balancing security and real-time performance. Support for international encryption standards such as AES-128 meets CE, FCC and other certification requirements, reducing product compliance costs. The transmission mode uses frequency hopping technology (combined with 2.4G channel division) and encryption processing to reduce the signal bit error rate in complex electromagnetic environments.
[0058] In some embodiments, the transmission mode is used to perform radio frequency transmission in a preset frequency band, and the preset frequency band corresponds to a frequency band range of 2400 to 2483.5 MHz.
[0059] The transmission mode clearly uses the 2.4G ISM frequency band (2400-2483.5MHz), supports globally unlicensed radio frequency transmission, and is compatible with mainstream 2.4G wireless chips.
[0060] Frequency band division and channel configuration divide the data transmission into 10 channels (2402MHz-2480MHz, with an interval of 8MHz), supporting automatic frequency hopping (AFH) to avoid interference; pairing mode fixedly uses channel 2402MHz (public negotiation channel), and transmission mode dynamically switches to the optimal channel based on signal strength (channel quality is scanned every 5 seconds).
[0061] RF parameters can be configured with software-adjustable transmit power from 0dBm (indoor scenarios) to 10dBm (outdoor expansion); and receive sensitivity from -95dBm (250kbps) to -85dBm (2Mbps) to accommodate different transmission distance requirements. Using the universal 2.4GHz frequency band, the device can directly access mainstream markets such as Europe, the United States, Japan, and South Korea without requiring additional frequency band authorization. Dynamic frequency hopping and frequency band division effectively avoid co-channel interference from Wi-Fi (2.4GHz) and Bluetooth devices, resulting in improved transmission stability in complex environments.
[0062] like Figure 2 As shown, in some embodiments, the receiver 20 is connected to a preset upper terminal 30 ; the second dynamic key is generated by the upper terminal 30 and written into the key injection interface corresponding to the second sequential key module 21 .
[0063] The receiver 20 supports connection with a host terminal 30 (such as a PC or mobile phone app). The terminal generates a dynamic key and writes it to the receiver 20. This is suitable for batch configuration or remote management scenarios.
[0064] In some embodiments, the connection mode of the upper terminal 30 is: wired connection: connected to the PC configuration tool through the Micro-USB interface, and dynamic key parameters are written in batches using dedicated software; wireless connection: communicate with the mobile phone APP through the Bluetooth BLE module (optional) of the receiver 20, and the APP generates a dynamic key and transmits it to the second timing key module 21 via BLE.
[0065] Key writing process: The upper terminal 30 generates a dynamic key seed (such as a 128-bit random number), encrypts it through AES and transmits it to the receiver 20; the second key management unit 23 of the receiver 20 receives and decrypts the seed, stores it in the security register, and the subsequent timing key module generates a dynamic key based on the seed.
[0066] It supports fast initialization during mass production (configuration time for 100 devices is less than 5 minutes), avoiding the inefficiency of manual pairing one by one. It also updates the receiver 20 key in real time through a mobile phone app (for example, remotely invalidating the old key if the device is lost), improving the management efficiency of enterprise-level devices. The upper terminal 30 generates keys as a trusted source, reducing the key generation computing power requirements of the terminal device (suitable for low-power MCU scenarios).
[0067] In some embodiments, the second dynamic key is a time-based one-time dynamic key, and the generation of the second dynamic key is based on the HMAC-SHA1 algorithm.
[0068] By specifying that the dynamic key adopts the time-based one-time password algorithm (TOTP), which is specifically implemented as the HMAC-SHA1 hash function, it ensures that the key changes dynamically over time and is one-way unpredictable.
[0069] TOTP algorithm parameters: Time step: 30 seconds (default, configurable to 15 seconds or 60 seconds); Key seed: 16-byte random number (generated through root key negotiation during pairing); Hash function: HMAC-SHA1 (outputs a 20-byte digest, with the first 6 bits used as the dynamic key).
[0070] Key generation formula: Dynamic key = HMAC-SHA1(key seed, floor(current timestamp / time step)). The timestamp is based on the RTC clock (with 1ms accuracy). Transmitter 10 and receiver 20 use a time offset calibration value to ensure timestamp alignment. Dynamic keys are resistant to replay attacks: Each key is valid for only 30 seconds and automatically expires after the expiration date, providing improved replay attack resistance compared to fixed key schemes. TOTP is an internationally accepted standard, making it easy to integrate with existing security systems (such as identity authentication systems) and reducing development complexity. HMAC-SHA1 has low computational complexity (the STM32F103 can complete the calculation in 1μs), making it suitable for low-cost MCU platforms.
[0071] In some embodiments, the transmitter 10 detects the type of the connected device through a preset compatible mode switching module. When it is determined that the device type is an old receiver 20, the transmitter 10 switches to a fixed key protocol matching the old receiver 20 for communication.
[0072] By integrating a compatible mode switching module into the transmitter 10, when an old receiver 20 is detected, it automatically switches to fixed key protocol communication, solving the compatibility problem between new and old devices.
[0073] Device type detection mechanism: In pairing mode, the transmitter 10 first broadcasts a "protocol detection packet" containing a protocol version number field (e.g., 0x01 for a new protocol, 0x00 for an old protocol). When the receiver 20 responds, it returns the protocol version it supports. If it is an old version (version < V1.0), compatibility mode is triggered.
[0074] Dual-stack implementation: New protocol stack: supports dynamic keys + time synchronization (Examples 1-5); Old protocol stack: uses a fixed key (factory preset, such as 0x12345678), turns off the time synchronization function, and is compatible with old devices that only support fixed keys.
[0075] This allows new transmitters 10 to communicate with older receivers 20 from three years ago (e.g., models without time synchronization), extending product lifecycles (compatibility increased to over 95%). This eliminates the need to force users to replace old devices during product iterations, enhancing brand loyalty. The detection process takes less than 50ms, and the switching process is imperceptible to the user, ensuring a plug-and-play experience.
[0076] In some embodiments, the first timing key module 11 and the second timing key module 21 respectively write the first key information and the second key information to the first communication engine 12 and the second communication engine 22 based on a preset extended instruction set to complete the generation of the pairing request packet and the key negotiation; wherein the extended instruction set includes instruction information for writing the key.
[0077] The timing key module writes key information to the communication engine through an extended instruction set. The extended instruction set contains dedicated key writing instructions to ensure the standardization of communication between modules.
[0078] The extended instruction set architecture design defines dedicated instruction codes, such as 0x01 for writing a dynamic key and 0x02 for writing a time offset calibration value. The instruction format is [instruction code][data length][key information / calibration value]. A 16-bit CRC checksum is used to ensure data integrity. After the timing key module generates a dynamic key, it encapsulates it into an 8-byte instruction 0x01+0x08+K1 and sends it to the communication engine via the SPI interface. After parsing the instruction, the communication engine extracts K1, which is then used to encapsulate a pairing request packet or encrypt audio data.
[0079] The standardized extended instruction set decouples the timing key module from the communication engine, facilitating independent upgrades (such as replacing communication chips from different manufacturers) and shortening the development cycle. The CRC check mechanism prevents errors when transmitting key information between modules, ensuring key consistency during pairing and encryption. Extended instruction codes (such as 0x03-0xFF) are reserved to support future new features (such as firmware upgrade instructions) without modifying the hardware interface.
[0080] In some embodiments, the first dynamic key and the second dynamic key are generated by a preset algorithm based on time synchronization, and the preset algorithm includes a time-based one-time password algorithm.
[0081] By explicitly specifying that dynamic key generation relies on a time synchronization algorithm, the core uses TOTP (Time-based One-Time Password) or a similar algorithm to ensure that the transmitter 10 and the receiver 20 generate the same key within a synchronized time window.
[0082] The time synchronization reference is based on the RTC clocks of transmitter 10 and receiver 20. Nanosecond-level time alignment (error ≤ ±10ppm, or ≤864μs over a 24-hour period) is achieved through bidirectional timestamp exchange (ΔT calibration value) during pairing. The dynamic key generation formula requires the input parameter "local time - ΔT" to ensure that both parties use the same virtual timestamp. Timing algorithms such as TOTP (default) and HOTP (event-counting) are supported, selected via the key management unit configuration bits (e.g., 0x00 = TOTP, 0x01 = HOTP).
[0083] The time synchronization algorithm solves the key asynchrony problem at the source, and the key matching success rate is improved compared with the traditional "independent key generation + time window tolerance" solution; algorithms such as TOTP are open standards, which facilitates docking with third-party security audit systems (such as verifying the compliance of key generation logic); time synchronization is only activated during the pairing phase and calibration package transmission. Normally, the RTC module operates in low-power mode (current <1μA), extending device battery life (improving headphone battery life).
[0084] In some embodiments, the transmitter 10 and the receiver 20 include a first user interaction interface and a second user interaction interface, respectively, and a pairing request is generated when the first user interaction interface and the second user interaction interface are triggered.
[0085] The transmitter 10 and receiver 20 are equipped with a user interaction interface (physical button / software trigger), which generates a pairing request after being triggered, supplemented by LED status indication to enhance the user operation experience.
[0086] Interactive interface hardware design: Physical button: A touch-sensitive button is used. Press and hold for 3 seconds to trigger pairing (anti-mistouch design), and a short press switches the device status (such as headphone mode / microphone mode). LED indicator: Red and blue dual-color LED, red and blue flash alternately during pairing (1Hz frequency). The blue light is always on after successful pairing, and the red light flashes quickly (3Hz) in case of an abnormality.
[0087] The software trigger extension can support receiving pairing instructions from the mobile phone APP via Bluetooth BLE through the receiver 20 (an external BLE module is required). Clicking the "Pairing" button on the APP is equivalent to triggering it with a physical button.
[0088] Through physical buttons and LED status feedback, the problem of "blind pairing" of traditional wireless devices is avoided, and the pairing success rate is increased from 70% relying on the manual to 95% through intuitive operation; a long press for 3 seconds to trigger prevents accidental pairing during daily carrying (such as squeezing the button when putting it in a pocket), improving reliability; it supports both physical buttons and software triggers, covering consumer-level (physical buttons) and enterprise-level (APP batch pairing) scenarios, adapting to different user needs.
[0089] In some embodiments, a time series prediction machine learning model, based on traditional NTP / APP clock calibration, dynamically adjusts the time offset calibration strategy by analyzing historical RTC error data. Based on the LSTM (Long Short-Term Memory) algorithm, the model learns the RTC drift patterns of different devices under different temperatures and usage durations, achieving high-precision clock synchronization prediction and further reducing the time base error of dynamic key generation from ±10ppm to within ±5ppm.
[0090] Data collection and model training involve collecting real-time RTC error data from over 100,000 devices (using NTP synchronization to obtain real time and calculate the deviation from the local RTC). Environmental parameters such as temperature, device usage time, and battery voltage are annotated as features. An LSTM model is used for training, with the input being the error sequence and environmental parameters from the previous 72 hours, and the output being the error prediction for the next hour. The training cycle automatically updates the model weights once a week.
[0091] The real-time calibration strategy uses a model to predict the current RTC error (e.g., +8ms for the next 30 seconds) before each pairing with the receiver 20. This is combined with the historical average offset to generate a dynamic calibration value (rather than a fixed ±10ppm). When the transmitter 10 receives the pairing request packet, it synchronously obtains the predicted error value from the receiver 20, bidirectionally calibrating the time base and ensuring the consistency of the dynamic key generation timestamp.
[0092] For high and low temperature scenarios (e.g., -20°C to 60°C), RTC error calibration accuracy is improved, increasing pairing success rates and completely resolving timing drift issues in extreme environments. The model automatically learns RTC drift caused by device aging (e.g., a 5ppm error increase after one year of use), dynamically adjusting calibration strategies without manual intervention. Synchronization accuracy remains stable throughout the device's lifecycle. The LSTM model utilizes a lightweight architecture (≤100,000 parameters) and achieves inference time of ≤1ms on the STM32H7 series MCU, meeting real-time requirements without increasing hardware costs.
[0093] In some embodiments, a fuzzy logic controller is introduced to dynamically adjust the dynamic key validity period (30 seconds base ±15 seconds) based on parameters such as the current electromagnetic interference intensity and device connection distance. The stronger the interference and the longer the distance, the shorter the validity period (minimum 15 seconds), reducing the risk of key interception. In a clean environment, the validity period is extended (maximum 45 seconds), improving pairing error tolerance.
[0094] Interference parameter detection involves receiver 20 monitoring channel noise power (in dBm) and packet loss rate (the percentage of 10 consecutive packets lost) in real time through the 2.4G communication engine, while transmitter 10 detects received signal strength (RSSI). Fuzzy input variables are defined: interference level (low / medium / high) and connection distance (near / medium / far). The output variable is the validity period adjustment value (-15s / 0 / +15s).
[0095] Fuzzy rule engine: Rule example: If the interference level is high and the distance is far, then the validity period is -15 seconds; if the interference level is low and the distance is close, then the validity period is +15 seconds. Each time pairing is triggered, the controller calculates the validity period based on real-time parameters (for example, if the current interference environment is medium and the distance is medium, the validity period is maintained at 30 seconds) and synchronizes this value to the transmitter 10 via a broadcast packet.
[0096] In complex electromagnetic environments (such as those with multiple Bluetooth devices), the key validity period is automatically shortened to 15 seconds, reducing the probability of key sniffing and cracking by 70%. In pure environments, it is extended to 45 seconds, increasing user error tolerance by 50%, making it particularly suitable for elderly users or in high-frequency pairing scenarios. No manual user configuration is required; the system automatically detects environmental changes and adjusts security policies, improving attack and defense adaptability by more than three times compared to fixed validity period solutions. Extending the validity period in low-interference scenarios reduces the device's MCU power consumption during frequent key generation, thereby improving battery life.
[0097] In some embodiments, a transfer learning model is introduced into the compatibility mode switching module to quickly identify device types and pre-match the corresponding fixed key protocol using a small amount of legacy device feature data. Based on the ResNet-18 architecture, the model is trained on universal device ID features and fine-tuned on a small sample size for newly emerging legacy models (such as the unlisted V1.2 version), addressing the limitations of traditional compatibility modes that rely on a pre-defined model library.
[0098] The basic model training uses a publicly available device ID feature dataset (containing the first 4 digits of the ID codes and protocol version numbers for over 100 older models) to train the ResNet-18 model and learn the mapping between ID codes and protocol types (for example, an ID starting with "0x01" corresponds to the AES-128 V1.0 protocol).
[0099] Online migration and adaptation involves sending a protocol probe packet (containing trial keys for three common legacy protocols) when the transmitter 10 detects an unlisted legacy device ID (such as a new model starting with "0x03"). The receiver 20 then determines the correct protocol based on the response signal strength. The transmitter then collects ID-protocol mapping data for the new device (requiring only five samples). Using transfer learning, the model is fine-tuned, adapting to the new protocol within five minutes, and updating the local model library.
[0100] Breaking through the limitations of traditional pre-set model libraries, the adaptation success rate for previously unadapted older devices (such as models discontinued for five years) has increased from 60% to 95%, completely resolving the industry challenge of "unknown older devices being unable to connect." When connecting new and older devices for the first time, the protocol is automatically identified through a small number of trial packets, without requiring user feedback or remote firmware upgrades from the manufacturer. Device compatibility is self-evolving. Transfer learning fine-tuning takes less than 200ms, without affecting the user's normal pairing process. The total time required for the first connection to an unknown older device is kept within 2 seconds, and the user is unaware of the adaptation process.
[0101] In some embodiments, an anomaly detection neural network is integrated into the key management unit to monitor abnormal behavior in the dynamic key verification process in real time (such as more than 10 incorrect verifications in a short period of time), triggering a temporary key enhancement mechanism: generating a more complex 8-digit dynamic key (containing a mixture of letters and numbers), and shortening the validity period to 10 seconds, while recording attack characteristics for model updates.
[0102] The anomaly detection model is constructed by defining the characteristics of normal verification behavior: ≤3 verifications per minute per device, verification interval >15 seconds, and key matching time <500ms. Using a three-layer fully connected neural network, the model takes as input 10-dimensional features, including the number of verifications, interval, and matching time over the past five minutes. The model outputs a "normal" or "abnormal" label, keeping the false positive rate below 0.1%.
[0103] Dynamic response mechanisms include: Upon detecting anomalies in authentication (such as brute force cracking attempts), the system automatically switches to enhanced mode. The key generation algorithm is upgraded from TOTP (6-digit numbers) to HMAC-SHA256 (8-digit alphanumeric combination), increasing cracking complexity by a factor of 10^4. The validity period is forcibly shortened to 10 seconds, and a flashing LED alerts users to the risk of an attack. After each anomaly, attack signatures (such as high-frequency authentication IP addresses and timestamp patterns) are fed into the model for incremental learning, improving subsequent detection accuracy.
[0104] Traditional fixed-key schemes can be cracked in an average of 30 minutes against brute-force attacks. This embodiment extends this time to over 72 hours, improving security by over 20 times. By learning attack patterns in real time, the model's detection accuracy for new attacks improves by 5% every 24 hours, forming a closed "detection-response-learning" loop without relying on cloud-based updates. There is no additional computational overhead during normal use; the enhancement mechanism is triggered only when an attack is detected, balancing security and user experience, and reducing the probability of false triggers in false alarm scenarios.
[0105] In some embodiments, a dynamic channel quality assessment module is embedded in the 2.4G communication engine to monitor parameters such as channel noise and packet loss rate in real time. Using an adaptive algorithm, the AES encryption mode (CBC / CTR / GCM) and key update frequency are dynamically adjusted to ensure security while minimizing transmission latency. For weakly noisy channels, the low-computation CTR mode (latency ≤ 15ms) is used, while for strongly interfering channels, the more tamper-resistant GCM mode (with included integrity check) is switched to achieve a dynamic balance between security and efficiency.
[0106] Real-time channel status monitoring uses the communication engine to collect channel parameters every 50ms: signal strength (RSSI), signal-to-noise ratio (SNR), and the number of consecutive packet losses (>3 is considered strong interference). Three channel states are defined: excellent (SNR>20dB), good (10dB≤SNR≤20dB), and poor (SNR<10dB).
[0107] Dynamic encryption strategy switching: In excellent channels, CTR (counter mode) is used, with a rekey frequency set to once per minute to reduce the MCU's encryption computational load. In good channels, CBC mode (with IV vector) is used by default, with a rekey frequency of once every 10 minutes, balancing security and efficiency. In poor channels, GCM mode is enforced (including AAD authentication data), with a rekey frequency increased to once every 30 seconds and forward error correction (FEC) enabled to ensure encrypted data integrity. This switching logic is implemented using an embedded decision tree algorithm trained on data from transmission tests in over 100 typical electromagnetic environments, such as Wi-Fi-intensive areas and industrial RF interference zones.
[0108] In complex electromagnetic environments (such as exhibitions with multiple devices), audio transmission latency is reduced from 30ms in the traditional fixed mode to less than 20ms, and the bit error rate is reduced from 10^-4 to 10^-6, meeting broadcast-grade real-time transmission requirements. Encryption module power consumption is reduced by 40% in optimal channels (CTR mode requires three fewer hash operations than GCM), and device battery life is extended by 25% (from 6 hours to 7.5 hours in typical scenarios). In high-interference scenarios, GCM mode's integrity check mechanism can 100% detect data tampering, improving its tamper resistance fivefold compared to the traditional CBC mode, completely eliminating transmission failures such as "silent freezes."
[0109] In some embodiments, a density clustering algorithm (DBSCAN) is introduced for multiple transmitter 10 and receiver 20 pairing scenarios, such as stages and conference rooms. This algorithm automatically groups devices based on their RSSI signal strength distribution to prevent mispairing across different groups. Transmitters 10 broadcast pairing packets containing device location fingerprints (calculated via RSSI triangulation). After clustering, the system assigns an independent key space to each group, enabling simultaneous, conflict-free pairing of multiple devices.
[0110] Location fingerprint collection and clustering: Upon initialization, each receiver 20 sends a signal strength detection packet to three reference transmitters 10. Using trilateration, the receiver calculates its own coordinates (with an accuracy of ±0.5 meters) and generates a location fingerprint containing X / Y coordinates. A central coordinator (e.g., the master receiver 20) collects all device location data and clusters them using the DBSCAN algorithm (with a defined density threshold of ≥3 devices within a 2-meter radius), forming logical groups (e.g., "stage left" and "auditorium area").
[0111] The group key management mechanism generates a separate root key for each group (using the HMAC-SHA256 algorithm, seeded by a hash of the group device ID). Transmitters 10 and receivers 20 within a group only respond to pairing requests from devices in the same group. Cross-group pairing requests (e.g., transmitter 10 in group A receiving a signal from receiver 20 in group B) are ignored, preventing key collisions in a multi-device environment. (Traditional schemes have a collision probability that increases with the number of devices, while this scheme reduces it to O(1)).
[0112] It supports simultaneous pairing of over 100 devices in a single area, minimizing mispairing errors and resolving the industry pain point of "chaotic multi-device pairing." No manual grouping is required; devices automatically cluster within 30 seconds of powering on. This makes it ideal for temporary performances and conferences, improving deployment efficiency by 80%. Independent root keys between groups ensure that even if a key in one group is compromised, it will not affect devices in other groups. This triples system-level security and complies with enterprise-level device management standards.
[0113] In some embodiments, for miniature audio devices powered by button batteries / solar energy, an energy harvesting module (piezoelectric / electromagnetic induction) and dynamic key generation algorithm optimization are integrated to dynamically adjust the key generation strategy based on real-time energy reserves: when energy is sufficient, the TOTP algorithm (high security) is used; when energy is critical, it switches to the lightweight HMAC-MD5 algorithm (power consumption is reduced by 60%), ensuring that the device continues to work in extremely low-power scenarios.
[0114] The energy management unit monitors the battery voltage in real time (above 3.0V is sufficient, 2.5V to 3.0V is medium, and below 2.5V is critical) and calculates the available energy budget based on the real-time power generation of the energy harvesting module (μA-level current).
[0115] Dynamic key algorithm switching: In the sufficient state, the TOTP algorithm (SHA-1 hash, 6-digit key) is enabled, with key generation power consumption of approximately 50μA*ms. In the intermediate state, the HMAC-MD5 algorithm (128-bit hash, extracting the first 6 digits) is switched, reducing power consumption to 20μA*ms. In the critical state, fixed key mode (factory-preset key, verification only, not generation) is temporarily enabled, with power consumption as low as 5μA*ms. A slow-flashing LED indicates charging is required. This switching strategy is implemented using a finite state machine (FSM), ensuring that key generation is not interrupted during state transitions.
[0116] In scenarios where energy harvesting is insufficient (such as solar-powered devices in low-light environments), device battery life is extended from the traditional four hours to 12 hours, meeting the long-term needs of all-day meetings and outdoor live broadcasts. A fixed key mode in critical conditions acts as a fallback solution, preventing device offline due to energy exhaustion and ensuring communication continuity in critical scenarios such as live surgical broadcasts.
[0117] The combination of energy harvesting modules and algorithm optimization reduces the device's dependence on batteries by 40%, complies with relevant environmental standards, and reduces the generation of electronic waste.
[0118] In some embodiments, a lightweight blockchain architecture is incorporated into the key management unit, recording each key generation / update operation as a block in a hash chain. Each block contains the previous block's hash value, a timestamp, and a key digest (SHA-256), forming an unalterable log of key operations. The receiver 20 and transmitter 10 cross-verify the integrity of the hash chain, eliminating the risk of man-in-the-middle attacks that could tamper with the key.
[0119] Hash chain construction and synchronization: When transmitter 10 generates a dynamic key, it creates a new block: Block(n) = [PrevHash, Timestamp, KeyHash(SHA-256(key)), Nonce], and broadcasts the block header (including PrevHash, Timestamp, and KeyHash) over the 2.4G channel. Receiver 20 maintains a local hash chain. Each time a new block is received, it verifies that PrevHash equals the hash value of the last block in the local chain and that KeyHash is consistent with the received key. This dual verification ensures that the key has not been tampered with.
[0120] Abnormal tampering detection includes if the PrevHash verification of three consecutive blocks fails (such as a man-in-the-middle attack replacing the key and forging a block), the system triggers the safety fuse mechanism: disconnection, the LED light turns red, and an alarm is sent to the paired terminal (requires cooperation with the APP function).
[0121] The tamper-proof nature of the blockchain hash chain reduces the probability of key tampering to less than 10^-20, completely eliminating the risk of key substitution during transmission in traditional solutions. All key operations are traceable (e.g., verifying the validity of a key at a specific moment), meeting the strict audit requirements of industries such as healthcare and finance for communication security. Only block headers (approximately 64 bytes per block) are recorded, and the chain length is limited to the most recent 10 blocks (total storage less than 1KB). This system runs on low-cost MCUs without performance bottlenecks and uses less memory than traditional logging systems.
[0122] The technology stack covers the physical layer (channel modulation), data link layer (packet clustering), and application layer (blockchain management), breaking through the limitations of single-module optimization. All algorithms run on the device's local MCU (no cloud dependency required), adapting to offline scenarios. Lightweight design (such as simplified DBSCAN density thresholds and blockchain block count limits) ensures low computing power consumption. Each implementation includes quantitative performance parameters for the three core metrics of professional audio transmission: real-time performance (<20ms latency), reliability (bit error rate <10^-6), and security (AES-128+ encryption), directly meeting the needs of high-end application scenarios such as broadcasting, television, and healthcare.
[0123] In some embodiments, Figure 3 This is the most original 2.4G imitation Bluetooth pairing improvement solution, which can achieve flexible adaptation, but there are defects such as periodic switching of dynamic keys. During the switching process, the timing of the transmitter and receiver is offset, which will cause packet loss or even disconnection. The optimized solution is as follows Figure 4 As shown, by using the dynamic key as a pairing pass, the actual transmission uses the preset fixed key. Figure 4 The solution shown can achieve the effect of stable signal transmission after flexible adaptation. However, the old receiver RX that users are already using does not have the RTC clock chip and dynamic key generation function, so users are forced to purchase a new receiver to achieve the flexible adaptation function.
[0124] Another option is Figure 5 As shown, the host terminal connected to the legacy receiver RX generates a dynamic key via an app / software and uses it as a pairing pass to pair with the new transmitter (equipped with an RTC clock chip and dynamic key calculation process). Actual transmission uses a pre-set fixed key. This solution requires no additional hardware, fully utilizing existing 2.4G radio and MCU resources while maintaining cost. It breaks the limitations of factory-fixed keys, allowing users to freely add and replace transmitters, and the receiver can manage multiple transmitters. Dynamic keys significantly reduce the risk of reverse engineering or mass cracking of keys. Each pairing uses a different key. Data transmission continues using the low-latency, high-reliability proprietary 2.4G protocol, unaffected by Bluetooth stack overhead and potential interference.
[0125] This application belongs to the field of wireless microphone technology, specifically to a wireless audio transmission system based on the 2.4G frequency band. To address the problems existing in the prior art, a flexible pairing system based on timing dynamic keys is proposed. The system calculates a time offset calibration value through two-way timestamp interaction between the transmitter and receiver, compensates for RTC clock drift in real time, and embeds a dynamic key negotiation mechanism in the pairing mode to ensure that both parties maintain timing consistency during dynamic key switching. Unlike existing solutions, the present invention does not require additional hardware modules (such as Bluetooth chips). It achieves low-cost, high-precision time synchronization and key management solely through software algorithm optimization and system architecture innovation, fundamentally resolving the communication interruption problem caused by dynamic key switching and significantly improving the pairing flexibility and long-term reliability of wireless audio devices. By calculating a time offset calibration value through two-way timestamp interaction during pairing, the RTC clock drift of the transmitter and receiver is compensated in real time, ensuring strict alignment of dynamic key generation timing and completely resolving the packet loss and disconnection problems caused by asynchronous key switching. Pairing mode utilizes two-way communication negotiation (the receiver broadcasts a pairing request packet, and the transmitter actively responds). Unlike traditional one-way pairing processes, it supports simultaneous pairing by multiple receivers and dynamically adjusts key generation parameters based on the device's real-time clock (RTC) status. This allows a single transmitter to flexibly adapt to 10+ different receiver models (traditional solutions only support 3-5 fixed models), significantly improving pairing efficiency in multi-device scenarios. This design does not rely on Bluetooth modules or dedicated calibration chips. Instead, it utilizes a software-defined timing key module and communication engine dual-mode design, reusing existing 2.4G communication hardware resources to achieve high-precision time synchronization within the MCU's computing power, meeting the low-cost mass production requirements of consumer devices.
[0126] The dynamic key validity period (default ±30 seconds) stored in the key management unit provides a flexible tolerance window for timing deviation. Combined with the real-time calibration value update mechanism, it can automatically adapt to RTC drift caused by factors such as temperature changes (-20℃~60℃) and device aging, thereby improving the pairing success rate of devices in extreme environments, significantly outperforming traditional fixed window solutions.
[0127] In summary, the present invention breaks through the timing synchronization bottleneck of traditional 2.4G wireless audio devices through the system architecture innovation of "bidirectional timestamp calibration + dynamic key negotiation" without increasing hardware costs, and achieves the technical effects of "high-precision synchronization, low-cost adaptation, and strong environmental adaptability". Its core creativity lies in the deep integration of RTC clock management, key generation algorithm and communication protocol to form a self-calibrating dynamic pairing mechanism, providing a new technical path for the large-scale application of wireless audio devices.
[0128] It should be understood that the terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit the application. It should be understood that when an element or layer is referred to as "on ... ", "adjacent to ... ", "connected to " or "coupled to" other elements or layers, it can be directly on other elements or layers, adjacent to them, connected to or coupled to other elements or layers, or there can be intervening elements or layers. On the contrary, when an element is referred to as "directly on ... ", "directly adjacent to ... ", "directly connected to " or "directly coupled to" other elements or layers, there are no intervening elements or layers. It should be understood that although the terms first, second, third, etc. can be used to describe various elements, components, areas, layers and / or parts, these elements, components, areas, layers and / or parts should not be limited by these terms. These terms are only used to distinguish an element, component, area, layer or part from another element, component, area, layer or part. Therefore, without departing from the teachings of the application, the first element, component, area, layer or part discussed below can be represented as the second element, component, area, layer or part.
[0129] Spatially relative terms such as "under," "beneath," "below," "under," "above," "above," etc., may be used herein for convenience of description to describe the relationship of one element or feature shown in the figures to other elements or features. It should be understood that the spatially relative terms are intended to include different orientations of the device in use and operation in addition to the orientations shown in the figures. For example, if the device in the drawings is flipped, then the elements or features described as "under" or "beneath" or "beneath" the other elements will be oriented as "over" the other elements or features. Thus, the exemplary terms "under" and "under" may include both the upper and lower orientations. The device may be oriented otherwise (rotated 90 degrees or in other orientations) and the spatial descriptors used herein are interpreted accordingly.
[0130] The purpose of the terms used herein is only to describe specific embodiments and is not intended to limit the present application. When used herein, the singular forms "a", "an", and "the" are intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "comprising" and / or "including", when used in this specification, determine the presence of the features, integers, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, parts and / or groups. When used herein, the term "and / or" includes any and all combinations of the relevant listed items.
[0131] It will also be understood that the term "and / or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0132] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and such modifications or substitutions should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A time-series dynamic key flexible pairing wireless audio transmission system, characterized in that: Used to achieve the preset pairing of transmitter and receiver; The transmitter includes a first sequential key module, a first communication engine, and a first key management unit, and the receiver includes a second sequential key module, a second communication engine, and a second key management unit; The first timing key module and the second timing key module respectively generate a first dynamic key and a second dynamic key for the transmitter and the receiver based on corresponding RTC clocks; the first communication engine and the second communication engine both support pairing mode; The pairing mode is used to complete the initial time synchronization and key negotiation between the transmitter and the receiver; The first key management unit and the second key management unit store the first dynamic key and the second dynamic key respectively, and both store a time offset calibration value for compensating for RTC clock drift corresponding to the transmitter and the receiver and a dynamic key validity period; After receiving the pairing request, the transmitter and the receiver respectively obtain the first RTC timestamp and the second RTC timestamp of the corresponding RTC clock, and the first timing key module and the second timing key module respectively calculate the first dynamic key and the second dynamic key according to the corresponding first RTC timestamp and the second RTC timestamp; In the pairing mode, the receiver broadcasts a pairing request packet corresponding to the first dynamic key, the transmitter listens to the pairing request packet and completes key negotiation based on the first dynamic key and the second dynamic key, the time offset calibration value and the dynamic key validity period. After the key negotiation is successful, the transmitter generates a pairing response packet and broadcasts it to the receiver, completing the pairing of the transmitter and the receiver.
2. The system according to claim 1, wherein: The first key management unit and the second key management unit respectively store a preset root key; after the key negotiation is passed, the transmitter generates a pairing response packet and broadcasts it to the receiver, the first key management unit obtains and stores the second dynamic key and receiver identification information corresponding to the receiver, and the second key management unit obtains the first dynamic key and transmitter identification information corresponding to the transmitter to complete the pairing of the transmitter and the receiver; and completes the transmission of the preset audio signal according to the root key.
3. The system according to claim 1, wherein: The first communication engine and the second communication engine further support a transmission mode, for securely transmitting audio data based on a preset encryption algorithm in the transmission mode.
4. The system according to claim 3, characterized in that The transmission mode is used to perform radio frequency transmission in a preset frequency band, and the frequency band corresponding to the preset frequency band is 2400 to 2483.5 MHz.
5. The system according to claim 1, wherein: The receiver is connected to a preset upper terminal; The second dynamic key is generated by the host terminal and written into the key injection interface corresponding to the second sequential key module.
6. The system according to claim 5, characterized in that The second dynamic key is a time-based one-time dynamic key, and the generation of the second dynamic key is based on the HMAC-SHA1 algorithm.
7. The system according to claim 1, wherein: The transmitter detects the type of the connected device through a preset compatible mode switching module. When it is determined that the device type is an old receiver, the transmitter switches to a fixed key protocol that matches the old receiver for communication.
8. The system according to claim 1, wherein: The first sequential key module and the second sequential key module write the first key information and the second key information to the first communication engine and the second communication engine respectively based on a preset extended instruction set to complete the generation of the pairing request packet and key negotiation; The extended instruction set includes instruction information for writing a key.
9. The system according to claim 1, wherein: The first dynamic key and the second dynamic key are generated by a preset algorithm based on time synchronization, and the preset algorithm includes a time-based one-time password algorithm.
10. The system according to claim 1, wherein: The transmitter and the receiver include a first user interaction interface and a second user interaction interface, respectively, and the pairing request is generated when the first user interaction interface and the second user interaction interface are triggered.
Citation Information
Patent Citations
Time type dynamic token system and authentication method
CN107276767A
Securing peer-to-peer and group communications
US20160065362A1
Non-repudiation protocol using time-based one-time password (TOTP)
US20190097804A1
Authentication method, apparatus and device, and computer-readable storage medium
US20220209951A1