Bluetooth earphone secret communication state distinguishing method and system based on periodic background sound prompt
By integrating user operations, communication links, and environmental audio parameters to determine the communication status of the Bluetooth headset, and generating periodic background sound signals that are fused with the main call voice, the problem of forgetting, compatibility, and anti-counterfeiting of secure communication status prompts for Bluetooth headsets is solved, achieving accurate prompts throughout the entire lifecycle and improved security.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-07
- Publication Date
- 2026-04-07
AI Technical Summary
Existing secure communication status prompts in Bluetooth headsets are easily forgotten during long calls, have poor adaptability to different scenarios, lack anti-counterfeiting capabilities, and have weak status synchronization capabilities, leading to the risk of information leakage.
By integrating user operation commands, communication link encryption status parameters, and environmental audio parameters, the system uses dual verification logic to determine the communication status and generates periodic background sound signals through multi-dimensional background sound encoding rules. These signals are then integrated with the main call voice in real time to perform status matching verification and anomaly alerts.
It enables full-cycle alerts for secure communication status, improving the accuracy of status perception, scenario adaptability, and security reliability, while reducing the false judgment rate and the risk of information leakage.
Smart Images

Figure CN121814746A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wireless communication technology, and in particular to a method and system for distinguishing the secure communication status of Bluetooth headsets based on periodic background sound prompts. Background Technology
[0002] With the popularization of digital office work and the increasing awareness of privacy protection, Bluetooth headsets, as convenient wireless communication terminals, have been widely used in scenarios such as private calls and encrypted meetings between individuals and enterprises. Users' demand for "real-time knowledge of whether the current communication is confidential" is becoming increasingly urgent. In recent years, the secure communication function of Bluetooth headsets has gradually evolved from supporting basic encryption protocols to multi-mode encryption adaptation. Early status prompts mainly relied on LED indicator lights, using fixed colors or flashing patterns to distinguish between connection and encryption status; later, single voice prompts or tactile feedback from buttons were introduced to convey status information to users at the moment of mode switching. However, these methods are all designed around "instantaneous prompts" or "proactive inquiries," and have not formed a continuous prompting solution for the entire call cycle, making it difficult to adapt to complex usage scenarios such as long calls.
[0003] Furthermore, existing technologies have several significant shortcomings: First, continuous prompts are lacking. Current methods only provide one-time feedback when switching modes or starting a call, making it easy for users to forget their current status during long calls and unable to perceive abnormal changes in the encryption status midway. Second, perceptual adaptability is poor. LED indicator lights rely on visual confirmation, making them difficult to identify in low light or driving scenarios. Single voice prompts are easily ignored, while continuous voice prompts can interfere with normal calls. Third, anti-spoofing and status synchronization capabilities are weak. There is a lack of a mechanism to identify forged status prompts. Attackers may deceive users by forging indicator lights or prompts, and in multi-party call scenarios, users cannot confirm whether the confidentiality status of all participants is consistent. Fourth, status anomaly feedback is delayed. When the encryption link experiences anomalies due to network fluctuations, key expiration, or other reasons, users cannot detect them in real time, leading to the risk of information leakage. Summary of the Invention
[0004] The purpose of this invention is to provide a method and system for distinguishing the secure communication status of Bluetooth headsets based on periodic background sound prompts. By integrating user operation commands, communication link encryption status parameters, and environmental audio parameters, communication status is determined and background sound is generated and fused to achieve full-cycle prompts for secure communication status and improve the accuracy, scene adaptability, and security reliability of secure communication status perception of Bluetooth headsets.
[0005] To achieve the above objectives, the present invention provides the following solution: A method for distinguishing the secure communication status of a Bluetooth headset based on periodic background sound cues includes the following steps: The user operation commands of the Bluetooth headset, the encryption status parameters of the communication link, and the environmental audio parameters are integrated into the status determination data source, and the current communication status is determined through dual verification logic. The communication status includes: normal call status, point-to-point encrypted call status, multi-party encrypted conference status, and encryption abnormal status. Based on the communication status, a periodic background sound signal is generated through multi-dimensional background sound encoding rules; The system collects the main call audio in real time and uses a three-stage mixing algorithm to fuse the background noise signal with the main call audio in real time to obtain a mixed audio stream. The matching degree between the current communication status and the background sound signal is periodically checked. If the check status is consistent, the output of the background sound signal is maintained. If the check status is abnormal, the abnormal prompt sound is switched. When the communication status changes, handover verification, confirmation tone synthesis, background sound synchronization update, and peer status synchronization processing are performed.
[0006] Optionally, the user operation commands from the Bluetooth headset, communication link encryption status parameters, and environmental audio parameters are integrated into a status determination data source, and the current communication status is determined through dual verification logic, including: The system collects double-click, triple-click, and long-press operations from Bluetooth headsets to obtain user operation commands; it also collects key synchronization status, data frame encryption identifiers, and data packet loss rate to obtain communication link encryption status parameters; and it collects ambient noise amplitude and frequency distribution to obtain ambient audio parameters. The encryption status parameters of the communication link are standardized, and the environmental audio parameters are denoised using a sliding window. Determine whether the user operation command is a preset valid command to complete the first verification judgment; determine whether the communication link encryption status parameters meet the preset command status threshold requirements to complete the second verification judgment; output the communication status only when both the first and second verification judgments pass.
[0007] Optionally, based on the communication status, a periodic background sound signal is generated through multi-dimensional background sound encoding rules, including: Construct multi-dimensional background sound encoding rules based on communication status; Adjust the timbre details based on the frequency distribution characteristics in the environmental audio parameters to obtain the actual timbre frequency; The preset period is dynamically adjusted based on the actual timbre frequency to obtain the adjusted period; Background sound signals are generated based on the adjusted period and combined with multi-dimensional background sound encoding rules.
[0008] Optionally, a multi-dimensional background sound encoding rule is constructed based on the communication status, including: When the communication status is normal call status, the encoding rule is to generate no background noise and output a clean main voice stream; When the communication status is point-to-point encrypted call status, the encoding rule is a single waveform, and a hidden check code is inserted once every 8 cycles; When the communication status is a multi-party encrypted conference, the encoding rule is a double-sound superimposed waveform, and a hidden check code is inserted once every 6 cycles; When the communication status is in an encryption error state, the encoding rule is a sawtooth wave, and the period is fixed at 2 seconds.
[0009] Optionally, the main call audio is acquired in real time, and the background noise signal is fused with the main call audio in real time using a three-stage mixing algorithm to obtain a mixed stream, including: The peak level and voice activity status of the main call voice are collected, and the main call voice is decomposed into multiple spectrum bands through short-time Fourier transform; The background sound signal is adjusted for spectrum adaptation based on the communication status and frequency band. The volume of the spectrum-adjusted background sound signal is adjusted based on the peak level, speech activity level, and ambient noise amplitude to obtain optimized background sound. The optimized background audio is linearly superimposed with the main call audio, and the phase difference between the optimized background audio and the main call audio is calculated. If the phase difference exceeds the preset deviation threshold, the phase is adjusted by a phase shift algorithm to obtain a fused audio signal. The fused audio signal is then subjected to amplitude limiting processing to obtain a mixed audio stream.
[0010] Optionally, the matching degree between the current communication status and the background sound signal is periodically checked. If the check status matches, the background sound signal output is maintained; if the check status is abnormal, an error prompt tone is switched, including: The verification period is determined based on the stability of the communication link. Collect current communication status data, full parameters of the current output background sound signal, and environmental interference data; the current communication status data includes: communication status identifier, background sound status identifier, link key synchronization status, and data frame encryption integrity verification result; the full parameters of the current output background sound signal include: timbre frequency, period, phase difference, hidden check code, and dynamic identifier; The total matching degree is calculated based on the current communication status data, the full parameters of the current output background sound signal, and environmental interference data. Determine the preset matching threshold When the total matching degree is ≥ If the status is found to be consistent, the current background audio signal output will be maintained; 0.7 ≤ when total matching degree < If the condition is judged as slightly abnormal, the background music will not be changed and a micro-amplitude cue pulse will be embedded; if the total matching degree is <0.7 The system is then identified as a serious abnormality and switches to an abnormality alert tone.
[0011] Optionally, the total matching degree is calculated based on the current communication status data, the full parameters of the current output background sound signal, and environmental interference data, including: The status identifier matching score is obtained based on the degree of matching between the communication status identifier and the background sound status identifier; The signal parameter matching score is obtained based on the degree of matching between the current output background sound signal's full parameters and the theoretical parameters; The link deep matching score is determined based on the link key synchronization status and the data frame encryption integrity verification result. Determine the environmental interference correction score based on the interference results from the environmental interference data; The total matching degree is calculated based on the status identifier matching score, signal parameter matching score, link depth matching score, and environmental interference correction score.
[0012] Optionally, when the communication state changes, handover verification, acknowledgment tone synthesis, background sound synchronization update, and peer state synchronization processing are performed, including: When the communication status changes, the current communication status is determined by double verification logic; When the communication status changes, the volume of the current background sound signal is increased by 3dB to generate an acknowledgment tone; When the communication status changes, a new background sound signal is generated using multi-dimensional background sound encoding rules after the confirmation sound has finished playing. When the communication status changes, the LED indicator light status of the Bluetooth headset is adjusted according to the new background sound signal.
[0013] A Bluetooth headset secure communication status differentiation system based on periodic background sound cues, comprising: The signal acquisition module integrates user operation commands from the Bluetooth headset, communication link encryption status parameters, and environmental audio parameters into a status determination data source, and determines the current communication status through dual verification logic. The communication status includes: normal call status, point-to-point encrypted call status, multi-party encrypted conference status, and encryption anomaly status. The prompt sound generation module is used to generate periodic background sound signals based on communication status and through multi-dimensional background sound encoding rules; The voice fusion module is used to collect the main call voice in real time and fuse the background sound signal with the main call voice in real time through a three-way mixing algorithm to obtain a mixed stream; The status detection module is used to periodically check the matching degree between the current communication status and the background sound signal. If the check status is consistent, the output of the background sound signal is maintained; if the check status is abnormal, the abnormal prompt sound is switched. The state switching module is used to perform switching verification, confirmation tone synthesis, background sound synchronization update, and peer state synchronization processing when the communication state changes.
[0014] According to specific embodiments provided by the present invention, the following technical effects are disclosed: The present invention provides a method and system for distinguishing the secure communication status of a Bluetooth headset based on periodic background sound prompts. The method includes: integrating user operation commands, communication link encryption status parameters, and environmental audio parameters of the Bluetooth headset into a status determination data source, and determining the current communication status through dual verification logic; the communication status includes: normal call status, point-to-point encrypted call status, multi-party encrypted conference status, and encryption anomaly status; generating periodic background sound signals based on the communication status through multi-dimensional background sound encoding rules; acquiring the main call voice in real time, and fusing the background sound signal with the main call voice in real time through a three-way mixing algorithm to obtain a mixed stream; periodically verifying the matching degree between the current communication status and the background sound signal; if the verification status is consistent, maintaining the output of the background sound signal; if the verification status is abnormal, switching to an abnormal prompt tone; when the communication status changes, performing switching verification, confirmation tone synthesis, background sound synchronization update, and peer status synchronization processing. This method integrates user operation commands, communication link encryption status parameters, and environmental audio parameters to determine the communication status and generate and fuse background sounds, thereby achieving full-cycle prompts for secure communication status and improving the accuracy of Bluetooth headset secure communication status perception, scene adaptability, and security reliability. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a flowchart of the Bluetooth headset secure communication status differentiation method of the present invention; Figure 2 This is a schematic diagram of the Bluetooth headset secure communication status differentiation system of the present invention. Detailed Implementation
[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0018] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0019] like Figure 1 As shown, the present invention provides a method for distinguishing the secure communication status of a Bluetooth headset based on periodic background sound prompts, comprising the following steps: Step 100: Integrate the user operation commands of the Bluetooth headset, the encryption status parameters of the communication link, and the environmental audio parameters into a status determination data source, and determine the current communication status through dual verification logic; the communication status includes: normal call status, point-to-point encrypted call status, multi-party encrypted conference status, and encryption abnormal status. Step 200: Based on the communication status, generate a periodic background sound signal using multi-dimensional background sound encoding rules; Step 300: Real-time acquisition of the main call audio, and real-time fusion of the background sound signal and the main call audio using a three-way mixing algorithm to obtain a mixed stream; Step 400: Periodically check the matching degree between the current communication status and the background sound signal. If the check status is consistent, maintain the output of the background sound signal. If the check status is abnormal, switch to the abnormal prompt sound. Step 500: When the communication status changes, perform handover verification, confirmation tone synthesis, background sound synchronization update, and peer status synchronization processing.
[0020] Preferably, the user operation commands from the Bluetooth headset, communication link encryption status parameters, and environmental audio parameters are integrated into a status determination data source, and the current communication status is determined through dual verification logic, including: The system collects double-click, triple-click, and long-press operations from Bluetooth headsets to obtain user operation commands; it also collects key synchronization status, data frame encryption identifiers, and data packet loss rate to obtain communication link encryption status parameters; and it collects ambient noise amplitude and frequency distribution to obtain ambient audio parameters. The encryption status parameters of the communication link are standardized, and the environmental audio parameters are denoised using a sliding window. Determine whether the user operation command is a preset valid command to complete the first verification judgment; determine whether the communication link encryption status parameters meet the preset command status threshold requirements to complete the second verification judgment; output the communication status only when both the first and second verification judgments pass.
[0021] In the specific implementation process, step 100 monitors the triggering behavior of physical buttons in real time via Bluetooth headset. The operation recognition rules are as follows: double-click is two consecutive short presses, with a single press duration of 0.1s-0.3s and an interval of ≤300ms between the two presses; triple-click is three consecutive short presses, with a single press duration of 0.1s-0.3s and an interval of ≤300ms between adjacent presses; long press is a single press duration of ≥1.5s. Press duration <1.5s is judged as a short press and is not included in the valid operation. The button status is scanned every 10ms, and the trigger time, press duration, and number of consecutive triggers are recorded. Operations that meet the operation recognition rules are converted into recognizable instruction codes: double-click corresponds to instruction code C1, triple-click corresponds to C2, and long press corresponds to C3. Operations that do not meet the rules are marked as invalid instruction C0.
[0022] The Bluetooth headset's encryption processing unit establishes a real-time interactive channel with the paired device's encryption module, sending a key synchronization query request every 50ms. The paired device then responds with the key synchronization flag S. key S key =1 indicates that the local key and the paired device key have been synchronized (encryption is available), S key =0 indicates that the key is not synchronized (encryption is unavailable), and this flag is directly collected as the key synchronization status parameter. Each frame header in the communication link contains a 1-bit encryption flag F. enc F enc =1 indicates that the data frame was encrypted using AES-256. enc =0 indicates that the data frame is not encrypted. When receiving each frame of data, the F value in the frame header is read first. enc The encryption identifier for each frame is recorded in time sequence to form a data frame encryption identifier parameter sequence. A statistical period T = 1 second is set, and within each statistical period, the total number N of data packets theoretically transmitted within that period is recorded. total And the number of data packets that were not successfully received, N loss Through formula R loss =N loss / N total Calculate the packet loss rate R loss .
[0023] The sampling parameters are set via the built-in microphone of the Bluetooth headset: sampling frequency 44.1kHz, sampling precision 16bit, and sampling duration 200ms / sample. Each sampling yields an original audio sampling sequence x(n) (n=1,2,...,8820), and the ambient noise amplitude and frequency distribution are extracted based on this sequence. The absolute value of each sampling point in the sampling sequence is calculated, and the maximum value is taken as the current ambient noise amplitude. A Fast Fourier Transform is performed on the original sampling sequence to convert the time-domain signal into a frequency-domain signal, and the signal is divided into four frequency bands: low frequency (20Hz-200Hz), mid-low frequency (200Hz-1kHz), mid-high frequency (1kHz-4kHz), and high frequency (4kHz-20kHz). The total energy of the frequency domain signal in each frequency band is calculated, and then the proportion of energy in each frequency band to the total energy is calculated to obtain the ambient noise frequency distribution.
[0024] Then, regarding the binary parameter S... key and F enc Standardization was performed using a direct mapping method. If the packet loss rate was within the range [0,1], it was directly retained; if the packet loss rate was greater than 1, it was truncated to a standardized packet loss rate of 1; if the packet loss rate was less than 0, it was truncated to a standardized packet loss rate of 0. A window size of W=5 and a window sliding step of 1 were set. The average amplitude of five samples within the window was calculated as the denoised environmental noise amplitude. For the energy proportion of each frequency range, the average energy proportion of five samples within the window was calculated as the denoised frequency distribution.
[0025] The first verification then focuses on whether the user's operation command is valid, with a preset set of valid commands C. valid ={C1,C2,C3}, and each valid command corresponds to a unique target communication state. C1 corresponds to a normal call state, C2 corresponds to a point-to-point encrypted call state, and C3 corresponds to a multi-party encrypted conference state. Collect the current user operation command. If the current user operation command belongs to C... valid If the first check passes, it is recorded as V1=1; if the current user operation command does not belong to C... validIf the first verification fails, it is recorded as V1=0. If V1=0, the user operation command is re-acquired and the first verification is executed until V1=1 is obtained or five consecutive acquisitions are all invalid commands. The second verification focuses on whether the communication link encryption status parameters meet the target status threshold. If the target communication status corresponding to the current user operation command that passed the first verification is a normal call status, the key synchronization status threshold is set to 0, the data frame encryption flag threshold is set to 0, and the data packet loss rate threshold is set to 0.05. If the communication status is a point-to-point encrypted call status or a multi-party encrypted conference status, the key synchronization status threshold is set to 1, the data frame encryption flag threshold is set to 1, and the data packet loss rate threshold is set to 0.05. The standardized parameters are compared with the thresholds for the corresponding target states. If the target state is a normal call state, the parameter combination must simultaneously meet the following conditions to be considered valid: key synchronization status parameter ≥ 0, data frame encryption identifier ≥ 0, and data packet loss rate ≤ 0.05. If the target state is a point-to-point or multi-party encrypted call state, the parameter combination must simultaneously meet the following conditions to be considered valid: key synchronization status parameter ≥ 1, data frame encryption identifier ≥ 1, and data packet loss rate ≤ 0.05. When all parameters fully meet the threshold requirements for the corresponding target state, the second verification is considered successful, and V2=1 is recorded. If any parameter fails to meet the threshold requirements, the second verification is considered unsuccessful, and V2=0 is recorded. If V2=0, the communication link encryption status parameters are re-collected, and the standardization process and second verification are re-executed until V2=1 or three consecutive verifications fail.
[0026] Finally, the current communication status is output only when both V1=1 and V2=1 pass; if V1=0 and 5 consecutive acquisitions are invalid, or if V1=0 and 3 consecutive verifications fail, an encryption error status is output.
[0027] Preferably, based on the communication status, a periodic background sound signal is generated through multi-dimensional background sound encoding rules, including: Construct multi-dimensional background sound encoding rules based on communication status; Adjust the timbre details based on the frequency distribution characteristics in the environmental audio parameters to obtain the actual timbre frequency; The preset period is dynamically adjusted based on the actual timbre frequency to obtain the adjusted period; Background sound signals are generated based on the adjusted period and combined with multi-dimensional background sound encoding rules.
[0028] In the specific implementation process, step 200 first constructs a multi-dimensional background sound encoding rule, clarifying the core parameters that need to be defined for each state to ensure that the encoding rule for each state is unique and distinguishable. Specifically, when the communication state is a normal call state, the encoding rule is to generate no background sound, that is, the background sound signal amplitude is 0, and only the pure stream of the main call voice is output; at the same time, the mute flag M is set to 0. When the communication state is a point-to-point encrypted call state, the waveform type of the encoding rule is selected as a monophonic sine wave, and the check code insertion rule is to insert a hidden check code once every 8 background sound cycles. The hidden check code is a low-frequency pulse with a duration of 50ms, a frequency of 200Hz, and an amplitude of 60% of the main background sound waveform. The start time of the check code is aligned with the end of the cycle, the cycle reference value is preset to 4s, and the amplitude reference value is preset to 1 / 3 of the average amplitude of the main call voice. When the communication status is a multi-party encrypted conference, the waveform type for the encoding rule is a binaural superimposed sine wave. The checksum insertion rule is to insert a hidden checksum once every 6 background sound cycles. The checksum parameters are the same as in the point-to-point status, but the insertion frequency is higher to increase the frequency of status confirmation. The period reference value is preset to 3 seconds, and the amplitude reference value is the same as in the point-to-point status to avoid excessively high amplitude after superposition. When the communication status is an encrypted abnormal status, the waveform type for the encoding rule is a sawtooth wave, the period is fixed at 2 seconds, no hidden checksum is inserted, and the amplitude reference value is preset to 1 / 2 of the average amplitude of the main call voice.
[0029] Then, the frequency distribution P of the ambient noise after sliding window denoising was statistically analyzed. filtered The energy percentage of each frequency band in the [P1, P2, P3, P4] is used to identify high-interference frequency bands with an energy percentage ≥30%. Specifically, P1 represents the energy percentage in the 20-200Hz low-frequency band, P2 in the 200-1kHz mid-low-frequency band, P3 in the 1-4kHz mid-high-frequency band, and P4 in the 4-20kHz high-frequency band. When the current communication state is point-to-point encryption (monoacoustic sine wave), the initial frequency range of the background sound's main frequency is determined to be 1.5-3kHz; when the current communication state is multi-party encryption (dual-sound superposition wave), the initial frequency range of the background sound's main frequency is determined to be 1.8-2.5kHz, and the initial range of the secondary frequency is 2.3-3kHz; when the current communication state is encryption anomaly (sawtooth wave), the initial frequency range of the background sound's main frequency is determined to be 800-1.5kHz. The initial frequency range is compared with the high-interference frequency band. If the initial range does not overlap with the high-interference frequency band, the median value of the range is directly selected as the initial master frequency. If there is overlap, the initial frequency range is shifted towards the low-interference frequency band with an energy proportion of ≤20%, and the median value of the shifted range is taken as the initial master frequency. The initial master frequency is then fine-tuned by ±10% to obtain the actual timbre frequency. Specifically, if the current state is multi-party encryption, the secondary frequency needs to be based on the adjusted master frequency f. am The calculation is obtained, and the formula is: fas =f am +500Hz.
[0030] Next, in point-to-point mode, the period reference value is 4s and the reference frequency is 2kHz; in multi-party encryption mode, the period reference value is 3s and the reference frequency is 2.2kHz; in encryption anomaly mode, since the period is fixed, no adjustment is needed. The ratio of the actual timbre frequency to the reference frequency is used as the period adjustment coefficient k. If k < 1, the period is shortened; if k > 1, the period is lengthened. The period reference value is then multiplied by the adjustment coefficient k to obtain the initial adjustment period. Specifically, to avoid the period being too short or too long, the effective range of the period is set to [1s, 5s]. If the initial adjustment period < 1s, the initial adjustment period is forcibly determined to be 1s; if the initial adjustment period > 5s, the initial adjustment period is forcibly determined to be 5s; if 1s ≤ 5s, the initial adjustment period is directly retained to one decimal place as the adjusted period.
[0031] Finally, based on the waveform type of the current communication state, the corresponding waveform generation algorithm is invoked to generate the basic waveform for a single cycle. Specifically, the formula for a single-tone sine wave waveform in point-to-point communication is: ,in As a point-to-point amplitude reference, The actual timbre frequency; the formula for the superimposed sine wave waveform in multi-channel encryption is: ,in As the amplitude benchmark for multi-party encryption states, The actual timbre frequency of the dominant frequency. The actual timbre frequency of the sub-frequency; the waveform formula for the sawtooth wave (rising edge) in the encryption anomaly state is: The waveform formula for a sawtooth wave (falling edge) is: ,in As a baseline for the magnitude of encrypted abnormal states, To adjust the cycle, Furthermore, for communication states requiring the insertion of a checksum, following the rule of inserting a checksum once every N cycles, the checksum is inserted at the end of the Nth cycle. The checksum waveform is a low-frequency sine wave with a duration of 50ms, a frequency of 200Hz, and an amplitude of 60% of the basic waveform. The basic waveform of a single cycle is repeatedly spliced together to generate a continuous periodic background sound signal.
[0032] It should be noted that step 200 constructs a multi-dimensional background sound encoding rule based on communication status. Through differentiated design and amplitude control, it achieves uninterrupted full-cycle prompts, clear status distinctions, and minimized call interference. An environmental audio dynamic adaptation mechanism is introduced. By analyzing the frequency distribution of environmental noise, high-interference frequency bands are identified, and the actual timbre frequency of the background sound is adjusted to avoid disruptive areas. Simultaneously, a period adjustment coefficient is calculated based on the actual timbre frequency, dynamically optimizing the preset period to a comfortable range of 1-5 seconds for human hearing. This solves the problems of LED prompts relying on visual perception and fixed voice prompts being easily masked by noise. Furthermore, by matching frequency and period to the laws of human hearing perception, it overcomes the limitations of existing technologies with fixed prompt modes that cannot adapt to complex environments, significantly improving the clarity of prompts in different environments. In addition, a hidden verification code embedding mechanism is designed in the encrypted state. A low-frequency pulse verification code is inserted every 6-8 cycles, providing a unique identifier for subsequent status matching verification, forming a closed loop and enhancing anti-counterfeiting capabilities. Specifically, by constructing a three-in-one adaptive prompting system of "state-driven, environment-adaptive, and perception-optimized", a secure communication status prompting effect that is continuously perceptible, adaptable to the environment, and resistant to spoofing is achieved.
[0033] Preferably, the main call audio is acquired in real time, and the background noise signal is fused with the main call audio in real time using a three-stage mixing algorithm to obtain a mixed stream, including: The peak level and voice activity status of the main call voice are collected, and the main call voice is decomposed into multiple spectrum bands through short-time Fourier transform; The background sound signal is adjusted for spectrum adaptation based on the communication status and frequency band. The volume of the spectrum-adjusted background sound signal is adjusted based on the peak level, speech activity level, and ambient noise amplitude to obtain optimized background sound. The optimized background audio is linearly superimposed with the main call audio, and the phase difference between the optimized background audio and the main call audio is calculated. If the phase difference exceeds the preset deviation threshold, the phase is adjusted by a phase shift algorithm to obtain a fused audio signal. The fused audio signal is then subjected to amplitude limiting processing to obtain a mixed audio stream.
[0034] In the specific implementation process, a speech activity detection algorithm is used to identify whether there is valid speech in each frame of speech data in the main speech. The first criterion is that the short-time energy of the current frame of speech is greater than the energy threshold -30dBFS, and the second criterion is that the zero-crossing rate of the current frame is within the speech feature range of 100-300 times / second. If both conditions are met, it is determined that there is speech. A Hanning window is applied to each frame of speech data, and then the time domain signal is converted into a frequency domain signal through short-time Fourier transform (STFT). It is divided into three core frequency bands according to the frequency bands sensitive to human hearing: low (200-1kHz, the basic frequency band of speech), medium (1-4kHz, the key frequency band of speech intelligibility), and high (4-8kHz, the frequency band of speech detail). At the same time, the energy proportion of each frequency band is calculated.
[0035] The background audio signal is then framed with the same frame length and frame shift as the main speech. A Hanning window is applied to each frame, and an STFT is performed to obtain the frequency domain signal, extracting the core frequency and corresponding frequency band of the background audio. The energy percentage of each frequency band in the main speech is compared, and frequency bands with an energy percentage ≥40% are identified as high-energy interference bands. If the core frequency of the background audio is in a high-energy interference band, a frequency band shifting and amplitude attenuation strategy is used. Specifically, when the interference band bandwidth is narrow, the core frequency of the background audio is shifted to the edge of the interference band, and the amplitude of the background audio at other frequency points is adjusted through linear interpolation to maintain waveform continuity. When the interference band bandwidth is wide, the frequency domain amplitude of the background audio is attenuated by 30%-50% within the interference band, while the original amplitude is maintained in non-interference bands. If the core frequency of the background audio is not in a high-energy interference band, only the amplitude of the background audio in the overlapping part of the interference band is finely adjusted, while the non-overlapping part remains unchanged to reduce unnecessary adjustments. Finally, an inverse short-time Fourier transform is performed on the adjusted background audio frequency domain signal to obtain the spectrum-adapted background audio time domain signal.
[0036] Next, a three-dimensional volume adjustment coefficient model is constructed, and the total adjustment coefficient is calculated. ,in Peak level coefficient, This is the speech activity coefficient. This represents the ambient noise figure. In some embodiments, when the peak level is ≥ -10 dBFS... When the peak level is <-10dBFS and ≥-20dBFS When the peak level is <-20dBFS When the speech activity state is "speech present" When the voice activity state is no voice When the real-time amplitude of the current ambient noise is ≥45dB When the real-time amplitude of the current ambient noise is ≥30dB and <45dB When the real-time amplitude of the current ambient noise is <30dB The overall adjustment factor is then multiplied by the amplitude of the background sound after spectrum adaptation to obtain the optimized background sound amplitude. Each sampling point of the background sound time domain signal is then multiplied by the overall adjustment factor to obtain the background sound signal with optimized volume.
[0037] Finally, STFT is performed on both the main speech signal and the optimized background sound signal to obtain two phase spectra, and the phase difference is calculated. If the phase difference is ≤30°, phase coordination is determined; if the phase difference is >30°, the background sound phase spectrum is adjusted to ensure that the phase difference is ≤5°. Then, the current frame of the main speech signal is linearly superimposed with the phase-optimized background sound signal to obtain a fused audio signal. Amplitude limiting is then applied to ensure that the total amplitude does not exceed 75% of the maximum output amplitude of the headphones, and the amplitude change rate is ≤3dB / ms to avoid sudden volume surges.
[0038] It should be noted that step 300 first uses short-time Fourier transform to split the main speech into low-frequency, mid-frequency, and high-frequency key frequency bands and identifies high-energy interference areas with an energy ratio of ≥40%. Then, it dynamically adjusts the background audio spectrum to avoid auditory masking caused by spectrum conflicts. At the same time, it combines speech activity detection to distinguish between the presence / absence of speech, judges the volume intensity by the peak level of the main speech, and adapts the ambient noise amplitude to the scenario, constructing a three-dimensional volume adjustment coefficient model to achieve dynamic balance of speech. This solves the contradiction of fixed volume mixing causing unclear prompts or interference with the call in different stages and environments.
[0039] Specifically, in some other embodiments, the generated background sound signal is not mixed with the main call voice; the two signals are pronounced independently or the background sound is inserted during a silence period.
[0040] Preferably, the matching degree between the current communication status and the background sound signal is periodically checked. If the check status is consistent, the background sound signal output is maintained; if the check status is abnormal, an error prompt tone is switched, including: The verification period is determined based on the stability of the communication link. Collect current communication status data, full parameters of the current output background sound signal, and environmental interference data; the current communication status data includes: communication status identifier, background sound status identifier, link key synchronization status, and data frame encryption integrity verification result; the full parameters of the current output background sound signal include: timbre frequency, period, phase difference, hidden check code, and dynamic identifier; The total matching degree is calculated based on the current communication status data, the full parameters of the current output background sound signal, and environmental interference data. Determine the preset matching threshold When the total matching degree is ≥ If the status is found to be consistent, the current background audio signal output will be maintained; 0.7 ≤ when total matching degree < If the condition is judged as slightly abnormal, the background music will not be changed and a micro-amplitude cue pulse will be embedded; if the total matching degree is <0.7 The system is then identified as a serious abnormality and switches to an abnormality alert tone.
[0041] In the specific implementation process, the formula for calculating the verification period in step 400 is as follows: ; in, This is a normalized value for communication link stability, i.e., the ratio of the current data packet loss rate to the maximum allowable loss rate, with a value ranging from 0 to 1. Then, three core data types are collected synchronously: current communication status data, all parameters of the current output background sound signal, and environmental interference data. When the current communication status identifier matches the status identifier corresponding to the background sound, the status identifier matching score S1 = 1.0; otherwise, S1 = 0. The actual output parameters of the current background sound are compared with the theoretical parameters parameter by parameter. For each parameter deviation ≤ 5%, the signal parameter matching score S2 increases by 0.2; if the total deviation ≤ 10%, S2 = 1.0; for every deviation exceeding 5%, S2 decreases by 0.2, with a minimum of 0. When the key synchronization status is normal and the data frame encryption integrity verification pass rate is ≥ 98%, the link deep matching score S3 = 1.0; if any item is abnormal, S3 = 0. When there is no sudden interference, the environmental interference correction score S4 = 1.0; when there is sudden interference, S4 = 0.8; when the sudden interference lasts ≥ 50ms, S4 = 0.5. Then, according to formula S... z The total matching degree S is calculated as S1×0.4+S2×0.3+S3×0.2+S4×0.1. z Simultaneously, a preset matching threshold is established. In normal call mode =0.8, in point-to-point encrypted call mode =0.9, in multi-party encrypted conference mode =0.95.
[0042] Preferably, when the communication state changes, handover verification, acknowledgment tone synthesis, background sound synchronization update, and peer state synchronization processing are performed, including: When the communication status changes, the current communication status is determined by double verification logic; When the communication status changes, the volume of the current background sound signal is increased by 3dB to generate an acknowledgment tone; When the communication status changes, a new background sound signal is generated using multi-dimensional background sound encoding rules after the confirmation sound has finished playing. When the communication status changes, the LED indicator light status of the Bluetooth headset is adjusted according to the new background sound signal.
[0043] In the specific implementation process, when the communication status changes due to changes in user operation commands, abnormal communication link encryption parameters, or drastic fluctuations in environmental audio parameters, step 500 first re-collects new user operation commands, communication link encryption status parameters, and environmental audio parameters. Then, it performs a first verification to determine whether the new user operation command belongs to a preset valid set. After the first verification passes, a second verification is performed to determine whether the standardized encryption parameters meet the threshold requirements of the new target status. The new status is confirmed to be valid only when both verifications pass, to avoid erroneous switching. Next, based on the real-time amplitude of the current background sound, a 3dB boost is used to generate an acknowledgment sound amplitude. The acknowledgment sound waveform uses a 1kHz single-frequency sine wave with a fixed duration of 200ms. Immediately after the confirmation audio playback ends, background audio synchronization is performed. Multi-dimensional background audio encoding rules are invoked, and the waveform type, checksum insertion rules, and period reference value are determined based on the newly confirmed communication status. Then, combined with the new environmental frequency distribution after noise reduction, high-interference frequency bands are identified, and the actual timbre frequency of the background audio is adjusted to avoid interference areas. Simultaneously, a period adjustment coefficient is calculated based on the actual timbre frequency and the new status reference frequency, and the period reference value is dynamically adjusted. Finally, a new background audio signal is generated and replaces the original background audio, achieving a seamless update. Finally, peer status synchronization processing is performed. The Bluetooth headset's LED indicator status is adjusted, and a status synchronization data packet is sent to the paired device and other Bluetooth headsets in multi-party calls via the Bluetooth communication link. After receiving the data packet, the peer device parses the parameters and synchronously updates its own background audio generation rules and LED indicator status to ensure consistent status prompts for all users.
[0044] like Figure 2 As shown, the present invention also provides a Bluetooth headset secure communication status differentiation system based on periodic background sound prompts, comprising: The signal acquisition module integrates user operation commands from the Bluetooth headset, communication link encryption status parameters, and environmental audio parameters into a status determination data source, and determines the current communication status through dual verification logic. The communication status includes: normal call status, point-to-point encrypted call status, multi-party encrypted conference status, and encryption anomaly status. The prompt sound generation module is used to generate periodic background sound signals based on communication status and through multi-dimensional background sound encoding rules; The voice fusion module is used to collect the main call voice in real time and fuse the background sound signal with the main call voice in real time through a three-way mixing algorithm to obtain a mixed stream; The status detection module is used to periodically check the matching degree between the current communication status and the background sound signal. If the check status is consistent, the output of the background sound signal is maintained; if the check status is abnormal, the abnormal prompt sound is switched. The state switching module is used to perform switching verification, confirmation tone synthesis, background sound synchronization update, and peer state synchronization processing when the communication state changes.
[0045] The beneficial effects of this invention are as follows: 1) By constructing a dedicated mapping system between communication status and encoding rules, differentiated background sound parameters were designed for four statuses: ordinary call, point-to-point encryption, multi-party encrypted conference, and encryption anomaly. This solves the problem of ambiguous status differentiation and easy misjudgment of traditional LED or single voice prompts, enabling users to quickly and accurately identify the current confidentiality status, accurately distinguish the confidential communication status in multiple scenarios, eliminate perceptual confusion, and reduce the misjudgment rate. 2) Based on the three-link mixing algorithm, the main audio segment is first split and the background audio spectrum is adjusted to avoid high-energy areas. Then, a three-dimensional volume coefficient is constructed based on the peak level of the main speech, the speech activity state and environmental noise. Finally, the amplitude cancellation is eliminated through phase compensation, so that the control range of the background sound amplitude is stable. This ensures that the status prompts are clear and perceptible, and avoids masking the details of the main speech. It achieves interference-free fusion of background sound and main speech, and ensures call quality. 3) An environmental audio dynamic perception mechanism was introduced. By using a sliding window to denoise and extract the frequency distribution and real-time amplitude of environmental noise, the actual timbre frequency, period and volume of the background sound were dynamically adjusted. This solved the problem that the traditional fixed prompt method was either "covered up" or "too abrupt" in different scenarios such as noisy streets and quiet offices, and enhanced the environmental adaptability. 4) The hidden verification code embedding mechanism in the encrypted state avoids malicious forgery of the communication state. The dual verification and multi-device synchronization mechanism during state switching ensures that the paired devices and multi-party call terminals are in the same state, which improves the anti-interference and anti-counterfeiting capabilities of the secure communication link, as well as the security and reliability of secure communication.
[0046] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0047] Specific examples have been used to illustrate the principles and implementation methods of this invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this invention. Furthermore, those skilled in the art will recognize that, based on the ideas of this invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this invention.
Claims
1. A method for distinguishing the secure communication status of a Bluetooth headset based on periodic background sound cues, characterized in that, Includes the following steps: The user operation commands of the Bluetooth headset, the encryption status parameters of the communication link and the environmental audio parameters are integrated into the status determination data source, and the current communication status is determined through dual verification logic. The communication states include: normal call state, point-to-point encrypted call state, multi-party encrypted conference state, and encryption anomaly state; Based on the communication status, a periodic background sound signal is generated using multi-dimensional background sound encoding rules; The background noise signal is collected in real time and the background noise signal is fused with the main voice call in real time using a three-way mixing algorithm to obtain a mixed stream. The matching degree between the current communication status and the background sound signal is periodically checked. If the check status is consistent, the output of the background sound signal is maintained. If the check status is abnormal, the abnormal prompt sound is switched. When the communication state changes, a handover verification, confirmation tone synthesis, background sound synchronization update, and peer state synchronization processing are performed.
2. The method for distinguishing the secure communication status of a Bluetooth headset based on periodic background sound prompts according to claim 1, characterized in that, The user operation commands from the Bluetooth headset, communication link encryption status parameters, and environmental audio parameters are integrated into a status determination data source, and the current communication status is determined through dual verification logic, including: The user operation commands are obtained by collecting double-click, triple-click, and long-press operations of the Bluetooth headset; the communication link encryption status parameters are obtained by collecting key synchronization status, data frame encryption identifier, and data packet loss rate; and the environmental audio parameters are obtained by collecting ambient noise amplitude and ambient noise frequency distribution. The communication link encryption status parameters are standardized, and the environmental audio parameters are denoised using a sliding window. The system determines whether the user operation command is a preset valid command, thus completing the first verification judgment; it determines whether the communication link encryption status parameter meets the preset command status threshold requirement, thus completing the second verification judgment; and outputs the communication status only when both the first verification judgment and the second verification judgment pass.
3. The method for distinguishing the secure communication status of a Bluetooth headset based on periodic background sound prompts according to claim 2, characterized in that, Based on the communication state, a periodic background sound signal is generated using multi-dimensional background sound encoding rules, including: The multi-dimensional background sound encoding rules are constructed based on the communication status. Adjust the timbre details according to the frequency distribution characteristics in the environmental audio parameters to obtain the actual timbre frequency; The preset period is dynamically adjusted based on the actual timbre frequency to obtain the adjusted period. Based on the adjusted period, a background sound signal is generated in conjunction with the multi-dimensional background sound encoding rules.
4. The method for distinguishing the secure communication status of a Bluetooth headset based on periodic background sound prompts according to claim 3, characterized in that, The multi-dimensional background sound encoding rules are constructed based on the communication status, including: When the communication state is the normal call state, the encoding rule is to generate no background noise and output a clean main voice stream; When the communication state is the point-to-point encrypted call state, the encoding rule is a single-tone waveform, and a hidden check code is inserted once every 8 cycles; When the communication state is the multi-party encrypted conference state, the encoding rule is a dual-sound superimposed waveform, and the hidden check code is inserted once every 6 cycles; When the communication state is the encryption abnormal state, the encoding rule is a sawtooth wave, and the period is fixed at 2 seconds.
5. The method for distinguishing the secure communication status of a Bluetooth headset based on periodic background sound prompts according to claim 4, characterized in that, The system acquires the main call audio in real time and fuses the background noise signal with the main call audio in real time using a three-stage mixing algorithm to obtain a mixed audio stream, including: The peak level and voice activity state of the main call voice are collected, and the main call voice is decomposed into multiple spectrum bands through short-time Fourier transform; The background sound signal is spectrally adapted and adjusted according to the communication status and the frequency band. The volume of the spectrum-adjusted background sound signal is adjusted based on the peak level, the voice activity state, and the ambient noise amplitude to obtain an optimized background sound. The optimized background sound is linearly superimposed with the main call speech, and the phase difference between the optimized background sound and the main call speech is calculated. If the phase difference exceeds a preset deviation threshold, the phase is adjusted by a phase offset algorithm to obtain a fused audio signal. The fused audio signal is then subjected to amplitude limiting processing to obtain the mixed stream.
6. The method for distinguishing the secure communication status of a Bluetooth headset based on periodic background sound prompts according to claim 5, characterized in that, The matching degree between the current communication state and the background sound signal is periodically checked. If the check state is consistent, the output of the background sound signal is maintained; if the check state is abnormal, an error prompt tone is switched, including: The verification period is determined based on the stability of the communication link. Collect current communication status data, full parameters of the current output background sound signal, and environmental interference data; the current communication status data includes: communication status identifier, background sound status identifier, link key synchronization status, and data frame encryption integrity verification result; the full parameters of the current output background sound signal include: timbre frequency, period, phase difference, hidden check code, and dynamic identifier; The total matching degree is calculated based on the current communication status data, the full parameters of the current output background sound signal, and the environmental interference data. Determine the preset matching threshold When the total matching degree is ≥ If the verification status is found to be consistent, the current output of the background sound signal will be maintained; 0.7 ≤ when the total matching degree < If the condition is determined to be slightly abnormal, the background music will not be switched and a micro-amplitude prompt pulse will be embedded; if the total matching degree is <0.7 If the condition is deemed serious, the system will switch to the aforementioned error message tone.
7. The method for distinguishing the secure communication status of a Bluetooth headset based on periodic background sound prompts according to claim 6, characterized in that, The total matching degree is calculated based on the current communication status data, the full parameters of the current output background sound signal, and the environmental interference data, including: A status identifier matching score is obtained based on the matching degree between the communication status identifier and the background sound status identifier; The signal parameter matching score is obtained based on the degree of matching between the current output background sound signal's full parameters and the theoretical parameters; The link deep matching score is determined based on the link key synchronization status and the data frame encryption integrity verification result. The environmental interference correction score is determined based on the interference results of the environmental interference data. The total matching degree is calculated based on the status identifier matching score, the signal parameter matching score, the link depth matching score, and the environmental interference correction score.
8. The method for distinguishing the secure communication status of a Bluetooth headset based on periodic background sound prompts according to claim 7, characterized in that, When the communication state changes, handover verification, acknowledgment tone synthesis, background sound synchronization update, and peer state synchronization processing are performed, including: When the communication state changes, the current communication state is determined by dual verification logic. When the communication state changes, the volume of the current background sound signal is increased by 3dB to generate the confirmation tone; When the communication state changes, a new background sound signal is generated by the multi-dimensional background sound encoding rule after the confirmation sound has finished playing. When the communication state changes, the LED indicator status of the Bluetooth headset is adjusted according to the new background sound signal.
9. A Bluetooth headset secure communication status differentiation system based on periodic background sound prompts, characterized in that, include: The signal acquisition module is used to integrate the user operation commands of the Bluetooth headset, the encryption status parameters of the communication link, and the environmental audio parameters into a status determination data source, and determine the current communication status through dual verification logic. The communication states include: normal call state, point-to-point encrypted call state, multi-party encrypted conference state, and encryption anomaly state; The prompt sound generation module is used to generate periodic background sound signals based on the communication status and through multi-dimensional background sound encoding rules; The voice fusion module is used to collect the main call voice in real time and fuse the background sound signal with the main call voice in real time through a three-way mixing algorithm to obtain a mixed stream; The status detection module is used to periodically check the matching degree between the current communication status and the background sound signal. If the check status is consistent, the output of the background sound signal is maintained; if the check status is abnormal, the abnormal prompt sound is switched. The state switching module is used to perform switching verification, confirmation tone synthesis, background sound synchronization update, and peer state synchronization processing when the communication state changes.