Low-complexity optimization decoding algorithm for low-power-consumption Bluetooth

By optimizing the decoding algorithm with low complexity, including signal preprocessing and error correction, combined with the deep neural network and Viterbi algorithm, the problem of high complexity of the traditional low-power Bluetooth decoding algorithm is solved, the signal quality and communication stability are improved, and it is suitable for Bluetooth low energy communication scenario.

CN118574100APending Publication Date: 2024-08-30SHENZHEN BRANDSOUND TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410608209.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The traditional low-power Bluetooth decoding algorithm is highly complex and computationally intensive, resulting in reduced device endurance and unstable performance in complex channel environments, affecting the reliability and real-time performance of communications.

Method used

Adopt low-complexity optimized decoding algorithm, including signal preprocessing, error correction and finite state machine control, noise suppression and signal enhancement through deep neural network model, combined with Viterbi algorithm and Fourier transform, dynamically adjust the threshold to adapt to channel conditions , simplifying the decoding process and reducing power consumption.

Benefits of technology

It significantly improves the signal quality and decoding accuracy, reduces the complexity and power consumption of the decoding algorithm, improves the stability and efficiency of the communication system, is suitable for equipment with limited resources, and meets the needs of real-time communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118574100A
    Figure CN118574100A
Patent Text Reader

Abstract

The invention relates to the technical field of low-power-consumption Bluetooth, in particular to a low-complexity optimization decoding algorithm for low-power-consumption Bluetooth, which comprises the following steps of: S1, receiving a digital signal: receiving a low-power-consumption Bluetooth digital signal from a transmission channel; s2, signal preprocessing: preprocessing the digital signal; s3, signal demodulation: carrying out demodulation processing on the digital signal; s4, error code correction: performing error code correction processing on the digital signal; s5, implementing a low-complexity decoding algorithm: decoding the low-power-consumption Bluetooth digital signal subjected to the error code correction processing; s6, finite-state machine control: designing a control logic of a decoding algorithm by using a finite-state machine; and S7, outputting the decoded data: outputting the decoded low-power-consumption Bluetooth data signal to a target device. According to the invention, the efficient execution of the decoding algorithm ensures the rapid and accurate data processing, and meets the requirements of real-time communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of low-power Bluetooth, and in particular to a low-complexity optimized decoding algorithm for low-power Bluetooth. Background Art

[0002] With the rapid development of the Internet of Things, smart wearable devices, and medical health monitoring, low-power Bluetooth technology has been widely used as a key wireless communication technology. With its low power consumption, low cost, and short-distance transmission, it has become an ideal choice for connecting various smart devices. However, since low-power Bluetooth signal transmission is often affected by environmental interference, signal attenuation, and multipath effects, the decoding receiver needs to deal with complex channel conditions to ensure accurate analysis of the data transmitted by the sender.

[0003] Traditional low-power Bluetooth decoding algorithms are often highly complex and computationally intensive, which not only increases hardware costs, but also consumes a lot of energy, resulting in a decrease in the device's battery life. In addition, traditional algorithms are prone to unstable performance when faced with complex channel environments, affecting the reliability and real-time nature of communications. Therefore, in order to improve the stability, efficiency and reliability of low-power Bluetooth communication systems, a low-complexity, high-performance decoding algorithm is urgently needed to meet these challenges. Summary of the invention

[0004] Based on the above objectives, the present invention provides a low-complexity optimized decoding algorithm for low-power Bluetooth.

[0005] A low-complexity optimized decoding algorithm for low-power Bluetooth comprises the following steps:

[0006] S1, receiving digital signal: at the receiving end, a low-power Bluetooth digital signal from a transmission channel is received through a low-power Bluetooth unit;

[0007] S2, signal preprocessing: preprocessing the received low-power Bluetooth digital signal, including noise suppression, signal enhancement and feature extraction;

[0008] S3, signal demodulation: demodulating the pre-processed low-power Bluetooth digital signal to restore the original digital signal;

[0009] S4, error correction: error correction processing is performed on the demodulated low-power Bluetooth digital signal to repair data errors or losses caused by channel transmission;

[0010] S5, implementing a low-complexity decoding algorithm: applying a low-complexity optimized decoding algorithm to decode the low-power Bluetooth digital signal after error correction processing;

[0011] S6, finite state machine control: Use finite state machine to design the control logic of the decoding algorithm, simplify the control flow of the decoding process, and reduce the complexity and power consumption of low-complexity decoding algorithms;

[0012] S7, outputting decoded data: outputting the decoded low-power Bluetooth data signal to the target device to complete data transmission of the low-power Bluetooth communication.

[0013] Furthermore, the received digital signal in S1 includes:

[0014] S11, setting the scanning mode: setting the low-power Bluetooth unit of the receiving end to the scanning mode to scan the surrounding low-power Bluetooth channels;

[0015] S12, receiving a signal: when the low-power Bluetooth unit at the receiving end receives a signal, the signal is received through a radio frequency receiving circuit.

[0016] Furthermore, the signal preprocessing in S2 includes:

[0017] S21, Noise Suppression: Establish an adaptive noise model and apply it to the received low-power Bluetooth digital signal;

[0018] The adaptive noise model adopts a deep neural network model, and the model is expressed as:

[0019]

[0020] in, is the predicted noise model output, x is the input Bluetooth low energy digital signal, and are the weight matrix and bias vector of the i-th hidden layer, σ is the activation function, and L noise is the number of hidden layers, ∈ is the noise;

[0021] S22, signal enhancement: Design a signal enhancement model to enhance the received low-power Bluetooth digital signal by learning the characteristics and structure of the signal;

[0022] The signal enhancement model adopts a deep neural network model, and the model is expressed as:

[0023]

[0024] in, is the predicted enhanced signal, x is the input low-power Bluetooth digital signal, and are the weight matrix and bias vector of the i-th hidden layer, σ is the activation function, and L enhance is the number of hidden layers, ∈ is the noise;

[0025] S23, feature extraction: extract features from the received low-power Bluetooth digital signal, including spectrum features and timing features. Feature extraction uses Fourier transform.

[0026] Furthermore, the signal demodulation in S3 includes:

[0027] S31, frequency offset correction: perform frequency offset correction on the preprocessed low-power Bluetooth digital signal to eliminate the frequency offset. The frequency offset correction adopts the maximum likelihood frequency estimation method, and the calculation formula is:

[0028]

[0029] Among them, f offset is the frequency offset, N is the length of the signal, and x(n) is the sample data of the received low-power Bluetooth digital signal;

[0030] S32, clock recovery: Apply the Costas cycle algorithm to synchronize the clock signals of the receiving and transmitting ends. The calculation formula is:

[0031] I(t) = r(t)·cos(θ(t));

[0032] Q(t) = r(t)·sin(θ(t));

[0033] Where I(t) and Q(t) are the output signals of the Costas cycle, representing the real and imaginary parts respectively, r(t) is the received signal, and θ(t) is the phase difference between the received signal and the local oscillator;

[0034] S33, symbol synchronization: perform symbol synchronization processing to restore the symbol sequence of the digital signal sent by the transmitter. The symbol synchronization processing adopts the Gardner algorithm, and the calculation formula is:

[0035] Error Gardner (k) = Re{r(kT s )·[r((k-1)T s )-r((k+1)T s )] *};

[0036] Where k is the sampling index, T s is the symbol interval, r(t) is the received low-power Bluetooth digital signal, Re{·} represents the real part, (·) * represents complex conjugate.

[0037] Further, the bit error correction in S4 includes:

[0038] S41, error detection: error detection is performed on the demodulated low-power Bluetooth digital signal to identify errors or losses in the data. Error detection uses parity check, and the calculation formula is:

[0039]

[0040] Among them, x i is the data bit, n is the number of data bits, and P is the parity bit;

[0041] S42, error correction code decoding: Apply the Hamming code algorithm to correct the identified errors or lost data. The calculation formula is:

[0042]

[0043] in, is the corrected codeword, c is the code space, d(y,c) is the distance between the received signal y and the codeword c;

[0044] S43, error bit correction: For data errors that cannot be decoded by the error correction code, a cyclic redundancy check (CRC) is used to correct the error bits. The calculation formula is:

[0045]

[0046] Where D(x) is the data bit to be checked, G(x) is the generating polynomial, k is the number of redundant bits, and R is the check bit.

[0047] Further, the implementation of the low-complexity decoding algorithm in S5 includes:

[0048] S51, decoder configuration: configure the decoder to adapt to the characteristics of the low-power Bluetooth digital signal and the data format after error correction, including setting the parameters and status of the decoder;

[0049] S52, decoding algorithm execution: executing a low-complexity optimized decoding algorithm to decode the low-power Bluetooth digital signal that has undergone error correction processing.

[0050] Furthermore, the low-complexity optimized decoding algorithm adopts the Viterbi algorithm, and the Viterbi algorithm includes:

[0051] State metric update: A dynamic threshold strategy is introduced to dynamically adjust the state metric value according to the received signal quality. The calculation formula is:

[0052] L i (t) = max j {L j (t-1)+logP(s i |s j,y(t))-λ(t)};

[0053] Among them, L i (t) is the state s at time t i The measurement value, P(s i |s j ,y(t)) is given the previous state s j and the received signal y(t), the state s i The transition probability, λ(t) is the dynamically adjusted threshold;

[0054] Path selection: According to the state metric update strategy, path selection is performed and the path with the maximum metric value is selected as the optimal path at the current moment. The calculation formula is:

[0055] π i (t) = arg max j {L j (t)+h(j,t)};

[0056] Among them, π i (t) is the state s reached at time t i The index of the previous state on the optimal path, h( j ,t) is the heuristic function of path pruning, which means reaching state s at time t j The probability of the path;

[0057] Decoding output: Determine the decoding output based on the final path selection result. The calculation formula is:

[0058]

[0059] in, is the decoding output at time t, p(s i |y(t)) is the state s under the condition of the received signal y(t) i The posterior probability distribution of .

[0060] Furthermore, the finite state machine control in S6 includes:

[0061] S61, define states: determine the states in the decoding process and assign a unique identifier to each state, where the states represent different stages in the decoding algorithm, including a start state (an initial state where the decoding algorithm starts to execute), a receiving state (a state where a low-power Bluetooth signal is received), a signal demodulation state (a state where the received signal is demodulated), a signal preprocessing state (a state where the demodulated signal is preprocessed, such as noise suppression, signal enhancement, etc.), an error correction state (a state where the preprocessed signal is error corrected), a decoding state (a state where a low-complexity decoding algorithm is implemented), and a decoding completion state (a state where the decoding algorithm is executed);

[0062] S62, determining a state transition rule: for each state, determining a state transition rule, that is, a rule for transitioning from one state to another state under a given condition, where the given condition is a received symbol (a digital signal symbol received from a low-power Bluetooth signal) or a variable in a decoding process (state information used during the execution of a decoding algorithm, which may include a current state, a historical state, a path metric value, etc.);

[0063] S63, Design control logic: Design the control logic of the decoding algorithm based on the defined states and state transition rules;

[0064] S64, simplifying the decoding process: through finite state machine control, the decoding process is decomposed into a series of simplified states and state transitions, thereby simplifying the decoding process;

[0065] S65, optimize state transfer: optimize state transfer rules according to the characteristics and performance requirements of the low-complexity optimized decoding algorithm.

[0066] Furthermore, the control logic of the decoding algorithm includes:

[0067] Determine the time to transition to the next state: Determine the time to transition from the current state to the next state based on the actual needs and performance requirements of the decoding algorithm, including the computation time, latency, and response time required for state transition;

[0068] Method for performing decoding operations based on the current state: For each state, determine the method for performing the corresponding decoding operation, including calling a predefined decoding algorithm, updating state variables, calculating path metric values, selecting a decoding operation based on the characteristics and requirements of the current state, and ensuring the correctness and effectiveness of the operation.

[0069] Furthermore, the decoded data output in S7 includes:

[0070] S71, data conversion: performing data format conversion on the decoded low-power Bluetooth digital signal, including converting the digital signal into text, image, and audio;

[0071] S72, data transmission: transmitting the converted low-power Bluetooth digital signal to a target device through a data transmission interface provided in the low-power Bluetooth protocol stack;

[0072] S73, target device receiving: the target device receives the transmitted low-power Bluetooth digital signal and performs corresponding processing, including data analysis, storage, and display.

[0073] Beneficial effects of the present invention:

[0074] The present invention significantly improves the signal quality in the decoding process by introducing an adaptive noise model and a signal enhancement model. The noise suppression and signal enhancement strategies constructed using a deep neural network can effectively handle complex signal interference and ensure the accuracy and stability of signal demodulation. In addition, the feature extraction step uses Fourier transform to further improve the accuracy of signal processing and provide high-quality input data for the subsequent decoding process, thereby improving the performance of the entire decoding system.

[0075] The present invention simplifies the control logic of the entire decoding process by using a finite state machine, clarifies the conversion rules between different states, and significantly reduces the complexity and power consumption of the decoding algorithm by designing an optimized state transition strategy. This method makes the decoding process more efficient and reliable, reduces the demand for resources, and makes the decoding algorithm more suitable for running on resource-constrained devices. In addition, the efficient execution of the decoding algorithm ensures fast and accurate data processing, meeting the needs of real-time communication.

[0076] The present invention makes the decoding process more efficient and reliable by adopting the Viterbi algorithm. The strategy of dynamically adjusting the threshold effectively adapts to the changes in signal quality under different channel conditions, thereby optimizing the updating method of the state metric value and improving the accuracy and stability of decoding. The heuristic function of path pruning further optimizes the selection of state transition and reduces the complexity of the decoding algorithm, making it more suitable for application scenarios of low-power Bluetooth communication, improving the decoding efficiency and reducing the energy consumption of the decoding algorithm, thereby providing a more reliable and efficient data transmission solution for low-power Bluetooth communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0078] Figure 1 A schematic diagram of a decoding algorithm flow chart of an embodiment of the present invention;

[0079] Figure 2 Schematic diagram of finite state machine control according to an embodiment of the present invention. DETAILED DESCRIPTION

[0080] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.

[0081] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0082] like Figure 1-Figure 2 As shown, a low-complexity optimized decoding algorithm for low-power Bluetooth includes the following steps:

[0083] S1, receiving digital signal: at the receiving end, a low-power Bluetooth digital signal from a transmission channel is received through a low-power Bluetooth unit;

[0084] S2, signal preprocessing: preprocessing the received low-power Bluetooth digital signal, including noise suppression, signal enhancement and feature extraction, to improve the accuracy and stability of demodulation;

[0085] S3, signal demodulation: demodulating the pre-processed low-power Bluetooth digital signal to restore the original digital signal;

[0086] S4, error correction: error correction processing is performed on the demodulated low-power Bluetooth digital signal to repair data errors or losses caused by channel transmission;

[0087] S5, implementing a low-complexity decoding algorithm: applying a low-complexity optimized decoding algorithm to decode the low-power Bluetooth digital signal that has been processed by error correction, and converting it into understandable data;

[0088] S6, finite state machine control: Use finite state machine to design the control logic of the decoding algorithm, simplify the control flow of the decoding process, and reduce the complexity and power consumption of low-complexity decoding algorithms;

[0089] S7, outputting decoded data: outputting the decoded low-power Bluetooth data signal to the target device to complete the data transmission of the low-power Bluetooth communication;

[0090] Through the above content, the stability and efficiency of the decoding process are effectively improved, making the decoding algorithm perform well in low-power Bluetooth communication and providing a reliable and efficient solution for data transmission.

[0091] The received digital signal in S1 includes:

[0092] S11, setting the scanning mode: setting the low-power Bluetooth unit of the receiving end to the scanning mode to scan the surrounding low-power Bluetooth channels;

[0093] S12, receiving a signal: when the low-power Bluetooth unit at the receiving end receives a signal, the signal is received through a radio frequency receiving circuit.

[0094] Signal preprocessing in S2 includes:

[0095] S21, Noise Suppression: Establish an adaptive noise model and apply it to the received low-power Bluetooth digital signal to suppress noise interference and improve signal quality;

[0096] The adaptive noise model uses a deep neural network model, which is expressed as:

[0097]

[0098] in, is the predicted noise model output, x is the input Bluetooth low energy digital signal, and are the weight matrix and bias vector of the i-th hidden layer, σ is the activation function, and L noise is the number of hidden layers, ∈ is the noise;

[0099] The calculation formula of the activation function σ is:

[0100] Where x is the input and e is the base of the natural logarithm;

[0101] S22, signal enhancement: Design a signal enhancement model to enhance the received low-power Bluetooth digital signal by learning the characteristics and structure of the signal to improve the clarity and stability of the signal;

[0102] The signal enhancement model uses a deep neural network model, which is expressed as:

[0103]

[0104] in, is the predicted enhanced signal, x is the input low-power Bluetooth digital signal, and are the weight matrix and bias vector of the i-th hidden layer, σ is the activation function, and L enhance is the number of hidden layers, ∈ is the noise;

[0105] S23, feature extraction: extracting features from the received low-power Bluetooth digital signal, including spectrum features and timing features, for subsequent demodulation and decoding processes. Feature extraction uses Fourier transform;

[0106] The Fourier transform includes:

[0107] Discrete Time Fourier Transform (DTFT):

[0108] Among them, X(e jω ) is the complex number representation in the frequency domain, x(n) is the time domain signal, and ω is the angular frequency;

[0109] Discrete Fourier Transform (DFT):

[0110] Where X(k) is the complex number representation in the frequency domain, x(n) is the time domain signal, N is the length of the signal, and k is the frequency index;

[0111] Through the above steps, the low-power Bluetooth digital signal is preprocessed, which can effectively improve the signal quality, improve the accuracy and stability of the decoding algorithm, and thus optimize the performance and efficiency of low-power Bluetooth communication.

[0112] Signal demodulation in S3 includes:

[0113] S31, frequency offset correction: Perform frequency offset correction on the preprocessed low-power Bluetooth digital signal to eliminate the frequency offset to ensure that the signal frequency at the receiving end is consistent with that at the transmitting end. The frequency offset correction adopts the maximum likelihood frequency estimation method, and the calculation formula is:

[0114]

[0115] Among them, f offset is the frequency offset, which is used to correct the frequency offset of the signal, N is the length of the signal, and x(n) is the sample data of the received low-power Bluetooth digital signal;

[0116] S32, clock recovery: Apply the Costas cycle algorithm to synchronize the clock signals of the receiving and transmitting ends to ensure that the received signal is correctly sampled and processed at the receiving end. The calculation formula is:

[0117] I(t) = r(t)·cos(θ(t));

[0118] Q(t) = r(t)·sin(θ(t));

[0119] Where I(t) and Q(t) are the output signals of the Costas cycle, representing the real and imaginary parts respectively, r(t) is the received signal, and θ(t) is the phase difference between the received signal and the local oscillator;

[0120] S33, symbol synchronization: symbol synchronization processing is performed to restore the symbol sequence of the digital signal sent by the transmitter so that the subsequent decoding process can accurately identify and analyze the digital signal. The symbol synchronization processing adopts the Gardner algorithm, and the calculation formula is:

[0121] Error Gardner (k) = Re{r(kT s )·[r((k-1)T s )-r((k+1)T s )] *};

[0122] Where k is the sampling index, T s is the symbol interval, r(t) is the received low-power Bluetooth digital signal, Re{·} represents the real part, (·) * represents complex conjugate;

[0123] Through the above steps, the received low-power Bluetooth digital signal can be effectively processed to restore the original digital signal, providing accurate input data for the subsequent decoding process.

[0124] Error correction in S4 includes:

[0125] S41, error detection: error detection is performed on the demodulated low-power Bluetooth digital signal to identify errors or losses in the data. Error detection uses parity check, and the calculation formula is:

[0126]

[0127] Among them, x i is the data bit, n is the number of data bits, and P is the parity bit;

[0128] S42, error correction code decoding: Apply the Hamming code algorithm to correct the identified errors or lost data. The calculation formula is:

[0129]

[0130] in, is the corrected codeword, C is the code space, d(y,c) is the distance between the received signal y and the codeword c;

[0131] S43, error bit correction: For data errors that cannot be decoded by the error correction code, a cyclic redundancy check (CRC) is used to correct the error bits. The calculation formula is:

[0132]

[0133] Where D(x) is the data bit to be checked, G(x) is the generating polynomial, k is the number of redundant bits, and R is the check bit;

[0134] Through the above steps, data errors or losses caused by channel transmission can be repaired, ensuring that the receiving end obtains accurate digital signals, and ensuring the reliability and stability of subsequent data processing and applications.

[0135] The low-complexity decoding algorithms implemented in S5 include:

[0136] S51, decoder configuration: configuring the decoder to adapt to the characteristics of the low-power Bluetooth digital signal and the data format after error correction, including setting the parameters and state of the decoder to ensure that the signal can be effectively decoded and the data can be extracted;

[0137] S52, decoding algorithm execution: executing a low-complexity optimized decoding algorithm to decode the low-power Bluetooth digital signal that has been processed by error correction, and selecting a suitable decoding algorithm and optimization strategy to improve decoding efficiency and accuracy;

[0138] Through the above steps, the low-power Bluetooth digital signal that has undergone error correction processing can be effectively decoded and converted into understandable data, providing reliable input for subsequent data processing and applications.

[0139] The low-complexity optimized decoding algorithm uses the Viterbi algorithm, which includes:

[0140] State metric update: A dynamic threshold strategy is introduced to dynamically adjust the state metric value according to the received signal quality. The calculation formula is:

[0141] L i (t) = max j {L j (t-1)+logP(s i |s j ,y(t))-λ(t)};

[0142] Among them, L i (t) is the state s at time t i The measure value represents the log-likelihood of the maximum possibility of the partial sequence observed in this state, P(s i |s j ,y(t)) is given the previous state s j and the received signal y(t), the state s i The transition probability of λ(t) is the dynamically adjusted threshold, which is dynamically determined according to the received signal quality and channel conditions;

[0143] The adjustment logic of threshold λ(t) is:

[0144] If the signal-to-noise ratio SNR(t) is greater than or equal to the high signal-to-noise ratio threshold SNR high , then the threshold is the high threshold HighThreshold;

[0145] If the signal-to-noise ratio SNR(t) is less than the low signal-to-noise ratio threshold SNR low , then the threshold is the low threshold LowThreshold;

[0146] If the signal-to-noise ratio SNR(t) is neither greater than the high signal-to-noise ratio threshold SNR high , nor less than the low signal-to-noise ratio threshold SNR low , then the threshold is calculated by linear interpolation, and the calculation formula is:

[0147]

[0148] Path selection: According to the state metric update strategy, path selection is performed and the path with the maximum metric value is selected as the optimal path at the current moment. The calculation formula is:

[0149] π i (t) = argmax j {L j (t)+h(j,t)};

[0150] Among them, π i (t) is the state s reached at time t i The index of the previous state on the optimal path is used to backtrack the path. h(j,t) is the heuristic function of path pruning, which means that the state s is reached at time t. j The probability of the path;

[0151] The calculation formula of the heuristic function h(j,t) of path pruning is:

[0152] h(j,t)=PathMetric(j,t)+DynamicThreshold(t);

[0153] Among them, PathMetric(j,t) is the path metric of state j at the tth moment, and DynamicThreshold(t) is the threshold dynamically adjusted according to the current moment;

[0154] Decoding output: Determine the decoding output based on the final path selection result. The calculation formula is:

[0155]

[0156] in, is the decoding output at time t, p(s i |y(t)) is the state s under the condition of the received signal y(t) i The posterior probability distribution of ;

[0157] Through the above content, a dynamic threshold strategy is introduced to dynamically adjust the update method of the state metric value according to the received signal quality to adapt to the signal transmission characteristics and noise levels under different channel conditions, which can improve the decoding performance and reliability and enable the decoder to better adapt to the decoding requirements of low-power Bluetooth digital signals.

[0158] The finite state machine control in S6 includes:

[0159] S61, define states: determine the states in the decoding process and assign a unique identifier to each state, where the states represent different stages in the decoding algorithm, including a start state (an initial state where the decoding algorithm starts to execute), a receiving state (a state where a low-power Bluetooth signal is received), a signal demodulation state (a state where the received signal is demodulated), a signal preprocessing state (a state where the demodulated signal is preprocessed, such as noise suppression, signal enhancement, etc.), an error correction state (a state where the preprocessed signal is error corrected), a decoding state (a state where a low-complexity decoding algorithm is implemented), and a decoding completion state (a state where the decoding algorithm is executed);

[0160] S62, determining a state transition rule: for each state, determining a state transition rule, that is, a rule for transitioning from one state to another state under a given condition, where the given condition is a received symbol (a digital signal symbol received from a low-power Bluetooth signal) or a variable in a decoding process (state information used during the execution of a decoding algorithm, which may include a current state, a historical state, a path metric value, etc.);

[0161] The state transition rules specifically include:

[0162] The rule for transition from the start state to the receiving state: When the decoding algorithm starts to execute, the state is transferred from the start state to the receiving state, indicating that the low-power Bluetooth signal is started to be received;

[0163] The transition rule from the receiving state to the signal demodulation state: after receiving the low-power Bluetooth signal, the signal is demodulated;

[0164] The transition rule from the signal demodulation state to the signal preprocessing state: After the signal demodulation is completed, the signal preprocessing is performed, such as noise suppression, signal enhancement, etc.

[0165] The transition rule from the signal preprocessing state to the error correction state: After signal preprocessing, error correction is performed to correct data errors or losses caused by channel transmission;

[0166] The rule for the transition from the error correction state to the decoding state is: after the error correction is completed, the decoding algorithm is started;

[0167] The transition rule from the decoding state to the decoding completion state: when the decoding algorithm is executed and the decoded data is output, it is transferred to the decoding completion state;

[0168] S63, Design control logic: Design the control logic of the decoding algorithm based on the defined states and state transition rules;

[0169] S64, simplifying the decoding process: decomposing the decoding process into a series of simplified states and state transitions through finite state machine control, thereby simplifying the decoding process, which can reduce the complexity of the decoding algorithm and reduce the power consumption of the processor or circuit;

[0170] S65, optimize state transfer: optimize state transfer rules according to the characteristics and performance requirements of the low-complexity optimized decoding algorithm to improve decoding efficiency and accuracy;

[0171] Through finite state machine control, the complex decoding process can be decomposed into manageable states and transitions, thereby reducing the complexity and power consumption of the decoding algorithm and achieving a more efficient decoding process.

[0172] The control logic of the decoding algorithm includes:

[0173] Determine the time to transition to the next state: According to the actual needs and performance requirements of the decoding algorithm, determine the time to transition from the current state to the next state, including the calculation time, delay, and response time required for state transition, to ensure the timeliness and effectiveness of state transition, so as to improve the execution efficiency of the decoding algorithm;

[0174] Methods for performing decoding operations based on the current state: For each state, determine the method for performing the corresponding decoding operation, including calling a predefined decoding algorithm, updating state variables, calculating path metrics, selecting a decoding operation based on the characteristics and requirements of the current state, and ensuring the correctness and effectiveness of the operation;

[0175] Through the above steps, the control logic of the designed decoding algorithm can effectively manage the decoding process, achieve efficient decoding of low-power Bluetooth signals, and meet the performance requirements of the decoding algorithm.

[0176] The output decoded data in S7 includes:

[0177] S71, data conversion: performing data format conversion on the decoded low-power Bluetooth digital signal, including converting the digital signal into text, image, and audio for subsequent processing and application;

[0178] S72, data transmission: transmitting the converted low-power Bluetooth digital signal to a target device through a data transmission interface provided in the low-power Bluetooth protocol stack;

[0179] S73, target device receiving: the target device receives the transmitted low-power Bluetooth digital signal and performs corresponding processing, including data analysis, storage, and display, to achieve the final application purpose of the data;

[0180] Through the above steps, the decoded low-power Bluetooth data signal can be smoothly output to the target device and complete the data transmission of low-power Bluetooth communication.

[0181] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present invention is limited to these examples. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity.

[0182] The present invention is intended to cover all such substitutions, modifications and variations that fall within the broad scope of the claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A low-complexity optimized decoding algorithm for low-power Bluetooth, characterized in that: The following steps are involved: S1, receiving digital signal: at the receiving end, a low-power Bluetooth digital signal from a transmission channel is received through a low-power Bluetooth unit; S2, signal preprocessing: preprocessing the received low-power Bluetooth digital signal, including noise suppression, signal enhancement and feature extraction; S3, signal demodulation: demodulating the pre-processed low-power Bluetooth digital signal to restore the original digital signal; S4, error correction: error correction processing is performed on the demodulated low-power Bluetooth digital signal to repair data errors or losses caused by channel transmission; S5, implementing a low-complexity decoding algorithm: applying a low-complexity optimized decoding algorithm to decode the low-power Bluetooth digital signal after error correction processing; S6, finite state machine control: Use finite state machine to design the control logic of the decoding algorithm, simplify the control flow of the decoding process, and reduce the complexity and power consumption of low-complexity decoding algorithms; S7, outputting decoded data: outputting the decoded low-power Bluetooth data signal to the target device to complete data transmission of the low-power Bluetooth communication.

2. The low complexity optimized decoding algorithm for low power Bluetooth according to claim 1, characterized in that: The received digital signal in S1 includes: S11, setting the scanning mode: setting the low-power Bluetooth unit of the receiving end to the scanning mode to scan the surrounding low-power Bluetooth channels; S12, receiving a signal: when the low-power Bluetooth unit at the receiving end receives a signal, the signal is received through a radio frequency receiving circuit.

3. The low complexity optimized decoding algorithm for low power Bluetooth according to claim 1, characterized in that: The signal preprocessing in S2 includes: S21, Noise Suppression: Establish an adaptive noise model and apply it to the received low-power Bluetooth digital signal; The adaptive noise model adopts a deep neural network model, and the model is expressed as: in, is the predicted noise model output, x is the input Bluetooth low energy digital signal, and are the weight matrix and bias vector of the i-th hidden layer, σ is the activation function, and L noise is the number of hidden layers, ∈ is the noise; S22, signal enhancement: Design a signal enhancement model to enhance the received low-power Bluetooth digital signal by learning the characteristics and structure of the signal; The signal enhancement model adopts a deep neural network model, and the model is expressed as: in, is the predicted enhanced signal, x is the input low-power Bluetooth digital signal, and are the weight matrix and bias vector of the i-th hidden layer, σ is the activation function, and L enhance is the number of hidden layers, ∈ is the noise; S23, feature extraction: extract features from the received low-power Bluetooth digital signal, including spectrum features and timing features. Feature extraction uses Fourier transform.

4. The low complexity optimized decoding algorithm for low power Bluetooth according to claim 1, characterized in that: The signal demodulation in S3 includes: S31, frequency offset correction: perform frequency offset correction on the preprocessed low-power Bluetooth digital signal to eliminate the frequency offset. The frequency offset correction adopts the maximum likelihood frequency estimation method, and the calculation formula is: Among them, f offset is the frequency offset, N is the length of the signal, and x(n) is the sample data of the received low-power Bluetooth digital signal; S32, clock recovery: Apply the Costas cycle algorithm to synchronize the clock signals of the receiving and transmitting ends. The calculation formula is: I(t) = r(t)·cos(θ(t)); Q(t) = r(t)·sin(θ(t)); Where I(t) and Q(t) are the output signals of the Costas cycle, representing the real and imaginary parts respectively, r(t) is the received signal, and θ(t) is the phase difference between the received signal and the local oscillator; S33, symbol synchronization: perform symbol synchronization processing to restore the symbol sequence of the digital signal sent by the transmitter. The symbol synchronization processing adopts the Gardner algorithm, and the calculation formula is: Error Gardner (k)=Re{r(kT s )·[r((k-1)T s )-r((k+1)T s )}; Where k is the sampling index, T s is the symbol interval, r(t) is the received low-power Bluetooth digital signal, Re{·} represents the real part, (·) * represents complex conjugate.

5. The low complexity optimized decoding algorithm for low power Bluetooth according to claim 1, characterized in that: The error correction in S4 includes: S41, error detection: error detection is performed on the demodulated low-power Bluetooth digital signal to identify errors or losses in the data. Error detection uses parity check, and the calculation formula is: Among them, x i is the data bit, n is the number of data bits, and P is the parity bit; S42, error correction code decoding: Apply the Hamming code algorithm to correct the identified errors or lost data. The calculation formula is: in, is the corrected codeword, C is the code space, d(y, c) is the distance between the received signal y and the codeword c; S43, error bit correction: For data errors that cannot be decoded by the error correction code, a cyclic redundancy check is used to correct the error bits. The calculation formula is: Where D(x) is the data bit to be checked, G(x) is the generating polynomial, k is the number of redundant bits, and R is the check bit.

6. The low complexity optimized decoding algorithm for low power Bluetooth according to claim 1, characterized in that: The implementation of the low complexity decoding algorithm in S5 includes: S51, decoder configuration: configure the decoder to adapt to the characteristics of the low-power Bluetooth digital signal and the data format after error correction, including setting the parameters and status of the decoder; S52, decoding algorithm execution: executing a low-complexity optimized decoding algorithm to decode the low-power Bluetooth digital signal that has undergone error correction processing.

7. The low complexity optimized decoding algorithm for low power Bluetooth according to claim 6, characterized in that: The low-complexity optimized decoding algorithm adopts the Viterbi algorithm, and the Viterbi algorithm includes: State metric update: A dynamic threshold strategy is introduced to dynamically adjust the state metric value according to the received signal quality. The calculation formula is: L i (t)=max j {L j (t-1)+logP(s i |s j ,y(t))-λ(t)}; Among them, L i (t) is the state s at time t i The measurement value, P(s i |s j , y(t)) is given the previous state s j and the received signal y(t), the state s i The transition probability, λ(t) is the dynamically adjusted threshold; Path selection: According to the state metric update strategy, path selection is performed and the path with the maximum metric value is selected as the optimal path at the current moment. The calculation formula is: π i (t)=arg max j {L j (t)+h(j,t)}; Among them, π i (t) is the state s reached at time t i The index of the previous state on the optimal path, h(j,t) is the heuristic function of path pruning, indicating that the state s is reached at time t. j The probability of the path; Decoding output: Determine the decoding output based on the final path selection result. The calculation formula is: in, is the decoding output at time t, p(s i |y(t)) is the state s under the condition of the received signal y(t) i The posterior probability distribution of .

8. The low complexity optimized decoding algorithm for low power Bluetooth according to claim 7, characterized in that: The finite state machine control in S6 includes: S61, define states: determine states in the decoding process and assign a unique identifier to each state, where the states represent different stages in the decoding algorithm, including a start state, a receiving state, a signal demodulation state, a signal preprocessing state, an error correction state, a decoding state, and a decoding completion state; S62, determining a state transition rule: for each state, determining a state transition rule, that is, a rule for transitioning from one state to another state under a given condition, where the given condition is a received symbol or a variable in a decoding process; S63, Design control logic: Design the control logic of the decoding algorithm based on the defined states and state transition rules; S64, simplifying the decoding process: through finite state machine control, the decoding process is decomposed into a series of simplified states and state transitions, thereby simplifying the decoding process; S65, optimize state transfer: optimize state transfer rules according to the characteristics and performance requirements of the low-complexity optimized decoding algorithm.

9. The low complexity optimized decoding algorithm for low power Bluetooth according to claim 8, characterized in that: The control logic of the decoding algorithm includes: Determine the time to transition to the next state: Determine the time to transition from the current state to the next state based on the actual needs and performance requirements of the decoding algorithm, including the computation time, latency, and response time required for state transition; Method for performing decoding operations based on the current state: For each state, determine the method for performing the corresponding decoding operation, including calling a predefined decoding algorithm, updating state variables, calculating path metric values, selecting a decoding operation based on the characteristics and requirements of the current state, and ensuring the correctness and effectiveness of the operation.

10. The low complexity optimized decoding algorithm for low power Bluetooth according to claim 1, characterized in that: The decoded data output in S7 includes: S71, data conversion: performing data format conversion on the decoded low-power Bluetooth digital signal, including converting the digital signal into text, image, and audio; S72, data transmission: transmitting the converted low-power Bluetooth digital signal to a target device through a data transmission interface provided in the low-power Bluetooth protocol stack; S73, target device receiving: the target device receives the transmitted low-power Bluetooth digital signal and performs corresponding processing, including data analysis, storage, and display.

Citation Information

Cited By

  • College international overseas student accommodation management system and method

    CN120263315A