Baseband decoding method based on differential edge detection in combination with fast adaptive decision threshold
By combining differential edge detection and fast adaptive decision threshold methods in baseband decoding, the impact of signal-to-noise ratio and DC offset on decoding in large dynamic variable offset signals is solved, and efficient and accurate baseband decoding is achieved, meeting the requirements Real-time requirements.
Patent Information
- Application Number
- CN202411055553.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-08-02
AI Technical Summary
The existing technology cannot effectively avoid the impact of signal-to-noise ratio and DC offset on decoding accuracy when processing large dynamic variable offset signals, and cannot meet high real-time decoding requirements.
It adopts a baseband decoding method based on differential edge detection combined with fast adaptive decision threshold, eliminates DC offset through median filtering, and uses windowing statistical method to quickly update the decision threshold to ensure that under the conditions of uncertain changes in signal amplitude and signal-to-noise ratio Accurately detects signal edges.
It improves the accuracy and efficiency of baseband decoding, achieves efficient and fast decoding of large dynamic variable bias signals, meets real-time requirements, avoids edge misjudgments and reduces hardware and software complexity.
Smart Images

Figure CN118764134A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of communication technology, and further relates to a baseband decoding method based on differential edge detection combined with fast adaptive decision threshold in the field of wireless communication technology. The present invention can be used for efficient baseband decoding of signals with uncertain signal-to-noise ratio, amplitude varying over a wide range, strong dynamics, and accompanied by uncertain DC offset components. Background Art
[0002] In wireless communication technology, the transmitter performs source coding and channel coding on the original baseband signal, and then converts it into a high-frequency signal suitable for transmission in the channel through modulation technology and sends it; the receiver recovers the original baseband signal from the received high-frequency signal through demodulation. The demodulated original baseband signal is an analog signal. In order to be compatible with the subsequent digital signal processing system, it needs to be further converted into a digital signal through an analog-to-digital converter (ADC), and then the original data information is recovered through baseband decoding. Channel decoding detects and corrects errors in transmission, and source decoding recovers the original compressed data, and finally the data is restored to the original information available to the user. In wireless communication scenarios, large dynamic variable bias signals refer to signals with uncertain signal-to-noise ratios, amplitudes that vary over a large range, strong dynamics, and uncertain DC bias components in complex environments due to factors such as multipath effects, shadow fading, and interference. The difficulty of baseband decoding of large dynamic variable bias signals lies in the fact that the decoding method needs to be able to adapt to different noise levels and signal amplitudes, while being able to eliminate the influence of uncertain DC bias components. This requires that the decoding algorithm not only has high sensitivity and accuracy, but also has to have a fast enough response speed to accurately identify and extract valid information from the signal when the signal quality changes rapidly.
[0003] Aerospace Information Co., Ltd. disclosed a correlator-based radio frequency identification (RFID) baseband decoding system in its patent application "A signal processing device and reader" (patent application number CN 201810889628.X, application publication number CN 110830086 A). The baseband decoding system consists of a register group, taps set for different rate offsets, a correlator array, and a decoding correlator array. The method steps of using the baseband decoding system to solve the receiver error problem caused by large rate offset in the RFID system are that the correlators in the correlator array select corresponding taps according to the preset rate offset, and perform correlation operations on the baseband signal output by the register group and the local signal to obtain a first correlation value and a preamble in the baseband signal. The decoding correlator in the decoding correlator array decodes the baseband signal according to the received synchronization flag. Although this method has high precision and high flexibility, it still has two shortcomings. First, the correlation operation used by the correlator depends on the absolute level of the signal and the known signal template, and the variable DC bias will change the absolute level of the signal, resulting in the signal characteristics not matching the preset signal template, thereby reducing the decoding accuracy. Second, in a large dynamic variable bias signal environment, the computational complexity and processing time of the correlation operation will increase significantly, and it is impossible to meet the real-time requirements. Therefore, this method is not suitable for large dynamic variable bias signals.
[0004] The baseband decoding based on edge detection makes data judgment by detecting the signal edge, focusing on the relative change of the signal level rather than the absolute value. This method has the ability to resist DC bias, does not rely on the constancy of the signal-to-noise ratio, is sensitive to strong dynamic signals, and is suitable for large dynamic bias signals. The decision threshold plays a vital role in edge detection. The fixed threshold detection technology is difficult to accurately determine the edge position when applying a strong dynamically changing signal, while the adaptive decision threshold technology can automatically adjust the decision threshold according to the change in the received signal strength, and has a wider dynamic range and higher detection accuracy.
[0005] In their paper “Optimization of OOK / FSO System Performance by Adaptive Decision Threshold and DC Extraction Technology” ([J] Journal of Quantum Electronics, 2018, 35(01)), Zhu Baoqin et al. proposed an adaptive decision threshold method for obtaining the current symbol decision threshold based on the quantized voltage of the decided signal. This method obtains the decision threshold of the current symbol by using the quantized voltage of the decided signal, that is, in each symbol period, the DC component in the signal is extracted and analyzed, and the decision threshold is dynamically adjusted according to its changes. This method has important reference value for baseband decoding of large dynamic variable bias signals. However, this method still has two shortcomings. First, it relies on the decided signal and the extracted DC component to adjust the threshold, resulting in a slow response when the channel conditions change rapidly. Second, this method requires the use of complex DC extraction technology to accurately extract the DC component, which increases the complexity of practical applications. Summary of the invention
[0006] The purpose of the present invention is to address the deficiencies of the above-mentioned prior art and to propose a baseband decoding method based on differential edge detection combined with a fast adaptive decision threshold, aiming to solve the problem that the existing related technology cannot avoid the influence of variable signal-to-noise ratio and variable DC bias on decoding accuracy for baseband decoding of large dynamic variable bias signals, and cannot meet the high real-time decoding requirements of large dynamic signals.
[0007] The idea of realizing the purpose of the present invention is that the present invention is aimed at baseband decoding of large dynamic variable bias signals. For the digital signal sampled and quantized by ADC, the median filter is first used for processing to filter out the pulse noise while retaining the signal edge information; secondly, the edge detection method based on differentiation is adopted, and the uncertain DC bias component existing in the original signal is eliminated by the differentiation algorithm, thereby solving the problem that the absolute level of the signal changes uncertainly due to the variable DC bias, thereby causing edge misjudgment. At the same time, the present invention adopts a fast adaptive decision algorithm based on window statistics, which can adaptively update the decision threshold within several code element periods according to the change of the signal amplitude, ensure accurate and fast detection of the signal edge under the conditions of large-scale changes in the signal amplitude and uncertain changes in the signal-to-noise ratio, realize the reconstruction of the baseband signal at the receiving end, solve the edge misjudgment caused by the signal level being lower than the noise tolerance at certain sampling moments due to the inflexibility of the fixed threshold, and meet the real-time requirements, thereby improving the decoding accuracy and efficiency, and realizing efficient and fast baseband decoding of large dynamic variable bias signals.
[0008] The implementation steps of the present invention are as follows:
[0009] Step 1, using a median filter algorithm based on a sliding window to perform median filtering on the digital signal sampled and quantized by the ADC;
[0010] Step 2, using the first-order forward difference formula, to perform differentiation processing on the filtered digital signal;
[0011] Step 3, using the windowed statistical method, the adaptive decision threshold is calculated by comparing the signal differential level at each sampling moment with the windowed statistical threshold;
[0012] Step 4, using an adaptive decision threshold to perform edge detection on the signal after differential processing;
[0013] Step 5, using a continuous detection window to perform a consistency test on the edge detection result;
[0014] Step 6: reconstruct the signal waveform according to the continuity detection result to restore the original data information.
[0015] Compared with the prior art, the present invention has the following advantages:
[0016] First, the present invention adopts a differential-based edge detection method, which completely eliminates the DC bias component and avoids the problem of edge misjudgment caused by uncertain changes in the absolute level of the signal due to the variable DC bias in the prior art. The present invention can accurately detect the signal edge under any DC bias condition, thereby improving the reliability of baseband decoding.
[0017] Second, the present invention adopts a fast adaptive decision algorithm to quickly and adaptively update the decision threshold according to the change of signal amplitude, ensuring accurate detection of signal edges under conditions of large-scale changes in signal amplitude and uncertain changes in signal-to-noise ratio, overcoming the edge misjudgment caused by the inflexibility of the fixed threshold in the prior art at certain sampling moments when the signal level is lower than the noise tolerance.
[0018] Third, compared with the baseband decoding system composed of correlators, the present invention does not require complex correlation array circuits in hardware implementation; compared with the DC component extraction technology combined with adaptive decision thresholds, the present invention also avoids complex edge detection algorithms in software implementation, so that the present invention can meet the real-time requirements in a large dynamic environment, thereby realizing efficient baseband decoding of large dynamic variable bias signals. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is a flow chart of the present invention;
[0020] Figure 2 It is a structural block diagram of a full-duplex visible light communication system based on FPGA according to an embodiment of the present invention;
[0021] Figure 3 This is a diagram showing the implementation results of a full-duplex visible light communication system based on FPGA according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0023] Figure 2 The application of the present invention in a full-duplex visible light communication system based on a field programmable gate array (FPGA) is demonstrated, and 10Mbps two-way communication is achieved when the distance between the transmitter and the receiver varies in the range of 0.5-5cm. The transmitting circuit interface uses the J30J interface module to input the RS-422 signal, which is converted into a logic level (TTL, Transistor-Transistor Logic) signal through the isolated RS-422 conversion chip ADM2682. The signal is then modulated and converted into an analog signal through the digital-to-analog conversion module DAC (Digital-to-Analog Converter). The LED driver module drives two LED lamp beads, one of which transmits a TX+ signal and the other transmits a TX- signal. The receiving circuit uses two identical photodetectors, one receives the RX+ signal (corresponding to the transmission of TX+) and the other receives the RX- signal (corresponding to the transmission of TX-). The RX+ and RX- signals are transmitted to the signal amplification module for amplification, and then the amplified signal is demodulated. The demodulated signal is sampled and quantized using a 12-bit precision ADC, and output to the adaptive decoding module. Finally, the TTL level output by the adaptive decoding module is converted into an RS-422 signal through the level conversion module. The adaptive decoding module is implemented by FPGA, and its internal clock is 200M. Through the method of the present invention, baseband decoding within the input range of 6mV-1V can be achieved (the allowable input voltage variation is up to 166 times).
[0024] Reference Figure 1 and Figure 2 , the implementation steps of the embodiments of the present invention are further described in detail.
[0025] Step 1: Use a median filter algorithm based on a sliding window to perform median filtering on the digital signal sampled by the ADC.
[0026] The width of the sliding window is W, which is an odd number selected in the range of [3,11] according to the ADC sampling frequency. If W is less than 3, the median filtering effect is not obvious; if W is greater than 11, the signal edge will be destroyed; in the embodiment of the present invention, a sliding window with W of 5 is selected to perform median filtering on the digital signal sampled and quantized by the ADC.
[0027] The median filter algorithm is a nonlinear filtering method that can effectively remove pulse noise while retaining the edge information of the signal. The steps of performing median filtering on the digital signal sampled and quantized by the ADC are as follows:
[0028] In the first step, all signal levels in the set sliding window are initialized to 0, and the signal levels sampled and quantized by the ADC are moved into the sliding window one by one; each time the sliding window receives a new signal level, all signal levels in the sliding window are shifted left by 1 numerical unit, and the leftmost signal level is removed;
[0029] The second step is to sort the signal levels in the sliding window at each sampling moment. Only when the number of non-zero signal levels in the sliding window is greater than or equal to (W1+1) / 2, the values of W1 and W are equal. The middle value of the sorting in the sliding window is used as the signal level of the median filter output at the current sampling moment to ensure that the sliding window contains a sufficient number of valid signal levels so that the signal level of the median filter output is not 0.
[0030] Step 2: Differentiate the filtered digital signal using the following first-order forward difference formula:
[0031] Δx=x[n+1]-x[n]
[0032] Where Δx represents the differential level of the signal level of the median filter output at the nth sampling moment after differential processing, x[n+1] represents the signal level of the median filter output at the n+1th sampling moment, and x[n] represents the signal level of the median filter output at the nth sampling moment. When n is greater than 0, the output is Δx calculated using the first-order forward difference formula. n .
[0033] Step 3, using the windowed statistical method, the adaptive decision threshold is calculated by comparing the signal differential level at each sampling moment with the windowed statistical threshold.
[0034] The steps of using the windowed statistical method to calculate the adaptive decision threshold by comparing the signal differential level at each sampling moment with the windowed statistical threshold are as follows:
[0035] The first step is to collect a section of environmental noise without signal, analyze its amplitude range, and set the value of D level values higher than the maximum amplitude of the collected environmental noise as the windowed statistical threshold. The value of D is a rational number selected in the range of [1,20]. If D is less than 1, the adaptive decision threshold will be too low. If D is greater than 20, the adaptive decision threshold will be too high. In the embodiment of the present invention, the maximum amplitude of the environmental noise is 30, D is set to 5, and the windowed statistical threshold is 35;
[0036] The second step is to set a statistical window with a width of N, where N is an integer selected in the range of [10, 1000] according to the sampling frequency. If N is less than 10, the statistical values in the statistical window do not have sufficient statistical characteristics. If N is greater than 1000, the adaptive decision threshold maintains the initial decision threshold unchanged for too long, and all values in the set statistical window are initialized to 0. In the embodiment of the present invention, N is set to 10.
[0037] The third step is to select a value greater than the windowed statistical threshold and less than the minimum absolute value of the differential level at the first N1+1 sampling moments as the initial positive decision threshold, where the value of N1 is equal to N. The initial positive decision threshold is used to provide an initial reference value before the statistical window is full of valid data to ensure that edge detection can be performed directly. In the embodiment of the present invention, the initial positive decision threshold is set to 62;
[0038] The fourth step, when the absolute value of the differential level is greater than the windowed statistical threshold, the cumulative sum of the absolute values of the differential levels corresponding to the current sampling moment, the previous sampling moment and the next sampling moment of the current sampling moment is moved into the statistical window, and the values in the statistical window are shifted left by one numerical unit as a whole, and the leftmost value is removed; at each sampling moment when N2 non-zero differential level absolute values are not accumulated in the statistical window, the positive decision threshold is always maintained as the initial positive decision threshold, and the value of N2 is equal to N; when N2 non-zero differential level absolute values are continuously accumulated in the statistical window, starting from the next sampling moment, at each sampling moment in the statistical window, the statistical values in the statistical window are averaged and then divided by a fixed statistical parameter D as the positive decision threshold of the current sampling moment, and the value of D is a rational number selected within the range of [2,5]. In the embodiment of the present invention, D is set to 2.8;
[0039] The fifth step is to invert the positive decision threshold at each sampling moment as the negative decision threshold of the current sampling moment. Since the sampling signal is symmetrical as a whole, setting the negative decision threshold can effectively detect the negative edge, thereby improving the overall edge detection method.
[0040] Step 4: Use the adaptive decision threshold to perform edge detection on the signal after differential processing.
[0041] The edge detection of the signal after differential processing by using the decision threshold refers to judging the differential level of the signal at each sampling moment. When the differential level of the signal is greater than 0 and greater than the positive decision threshold value of the current sampling moment, it is judged that the signal at the current sampling moment rises, the signal jumps from 0 to 1, and the rising edge flag of the signal is 1. When the differential level of the signal is less than 0 and less than the negative decision threshold value, it is judged that the signal at the current moment falls, the signal jumps from 1 to 0, and the falling edge flag of the signal is 1; in other cases, it is judged that the signal remains unchanged, and the rising edge flag of the signal and the falling edge flag of the signal are both 0.
[0042] Step 5, using a continuous detection window to perform a consistency test on the edge detection result;
[0043] The continuous detection window refers to setting two continuous detection windows of the same width and both of which are K, namely C1 and C2, where the value of K is an integer selected in the range of [2,10]. If K is less than 2, it will result in the inability to effectively filter out the false edges caused by transient noise or short-term interference. If K is greater than 10, it will result in the inability to track the true edge of the signal. In the embodiment of the present invention, C1 and C2 are set to 3;
[0044] The continuity test of the edge detection result refers to filtering out the continuous edge mutations caused by single-point noise or short-term interference by performing continuity test on the edge detection result after the signal edge is detected, so as to ensure that only one of the multiple continuous edges detected is valid. The steps are as follows:
[0045] The first step is to initialize all the values in the continuous detection windows C1 and C2 to 0, and initialize the count values of the continuous rising edge counter and the continuous falling edge counter to 0;
[0046] In the second step, if the rising edge flag bit of the signal at the current sampling moment is 1, the rising edge flag bit of the signal is moved into the continuous detection window C1, and the count value of the continuous rising edge counter is increased by 1. Each time a new rising edge flag bit of the signal is received, the value in C1 is shifted left by one numerical unit as a whole, and the leftmost value in C1 is removed; similarly, if the falling edge flag bit of the signal at the current sampling moment is 1, the falling edge flag bit of the signal is moved into the continuous detection window C2, and the count value of the continuous falling edge counter is increased by 1. Each time a new falling edge flag bit of the signal is received, the value in C2 is shifted left by one numerical unit as a whole, and the leftmost value in C2 is removed;
[0047] In the third step, when the count value of the continuous rising edge counter is equal to K, the signal rising edge flag corresponding to the count value of the rising edge counter in C1 is determined to be 1 as a valid signal rising edge flag, and the valid signal rising edge flag is output; when the count value of the continuous falling edge counter is equal to K, the signal falling edge flag corresponding to the count value of the falling edge counter in C2 is determined to be 1 as a valid signal falling edge flag, and the valid signal falling edge flag is output.
[0048] Step 6: reconstruct the signal waveform according to the continuity detection result to restore the original data information.
[0049] When no signal transmission is set according to the baseband signal characteristics, the receiving end level is always 0 or 1. When a valid signal rising edge flag is detected, the receiving end signal level is set to 1; when a valid signal falling edge flag is detected, the receiving end signal level is set to 0; in other cases, the receiving end signal level remains unchanged. In the embodiment of the present invention, when no signal transmission is set, the receiving end level is always 1.
[0050] Combine the following Figure 3 The effect of the present invention is further described in the implementation result diagram.
[0051] The effect of full-duplex visible light communication baseband decoding based on FPGA of the embodiment of the invention observed by an oscilloscope is as follows: Figure 3 As shown. The yellow signal waveform is the digital baseband signal waveform output after ADC sampling and quantization, and the purple signal waveform is the signal waveform containing the original data information obtained after baseband decoding by the algorithm of the present invention. By directly comparing the two waveforms, it can be intuitively seen that the present invention reconstructs the digital baseband signal waveform within several symbol periods, realizes efficient decoding of the digital baseband signal, solves the shortcomings of the prior art for baseband decoding of large dynamic variable bias signals, and has accuracy and reliability.
Claims
1. A baseband decoding method based on differential edge detection combined with fast adaptive decision threshold, It is characterized in that The digital signal after ADC sampling, quantization and median filtering is subjected to differential processing; the adaptive decision threshold is quickly determined according to the windowing statistical threshold and the differential level of the signal at each sampling moment, and the digital signal before differential processing is subjected to edge detection; the steps of the baseband decoding method include the following: Step 1, using a median filter algorithm based on a sliding window to perform median filtering on the digital signal sampled and quantized by the ADC; Step 2, using the first-order forward difference formula, to perform differentiation processing on the filtered digital signal; Step 3, using the windowed statistical method, the adaptive decision threshold is calculated by comparing the signal differential level at each sampling moment with the windowed statistical threshold; Step 4, using an adaptive decision threshold to perform edge detection on the signal after differential processing; Step 5, using a continuous detection window to perform a consistency test on the edge detection result; Step 6: reconstruct the signal waveform according to the continuity detection result to restore the original data information.
2. The baseband decoding method based on differential edge detection combined with fast adaptive decision threshold according to claim 1, It is characterized in that The width of the sliding window in step 1 is W, where W is an odd number selected in the range of [3,11] according to the ADC sampling frequency.
3. The baseband decoding method based on differential edge detection combined with fast adaptive decision threshold according to claim 1, It is characterized in that The steps of the median filtering algorithm described in step 1 for performing median filtering on the digital signal sampled and quantized by the ADC are as follows: In the first step, all signal levels in the set sliding window are initialized to 0, and the signal levels sampled and quantized by the ADC are moved into the sliding window one by one; each time the sliding window receives a new signal level, all signal levels in the sliding window are shifted left by 1 numerical unit, and the leftmost signal level is removed; The second step is to sort the signal levels in the sliding window at each sampling moment, and only when the number of non-zero signal levels in the sliding window is greater than or equal to (W 1 +1) / 2, W 1 The value of W corresponds to the value of W, and the middle value of the sort in the sliding window is used as the signal level of the median filter output at the current sampling moment.
4. The baseband decoding method based on differential edge detection combined with fast adaptive decision threshold according to claim 1, It is characterized in that The first-order forward difference formula in step 2 is as follows: Δx n =x[n+1]-x[n] Where Δx n represents the differential level of the signal level of the median filter output at the nth sampling moment after differential processing, x[n+1] represents the signal level of the median filter output at the n+1th sampling moment, x[n] represents the signal level of the median filter output at the nth sampling moment, and n is an integer greater than or equal to 0.
5. The baseband decoding method based on differential edge detection combined with fast adaptive decision threshold according to claim 1, It is characterized in that The differential processing described in step 2 means that when n is greater than 0, the output is Δx calculated using the first-order forward difference formula n .
6. The baseband decoding method based on differential edge detection combined with fast adaptive decision threshold according to claim 1, It is characterized in that The steps of using the windowed statistical method in step 3 to calculate the adaptive decision threshold by comparing the signal differential level at each sampling moment with the windowed statistical threshold are as follows: The first step is to collect a section of environmental noise without signals, and set the values of D level values higher than the maximum amplitude of the collected environmental noise as the windowing statistical threshold, where the value of D is a rational number selected in the range of [1,20]; The second step is to set a statistical window with a width of N, where the value of N is an integer selected in the range of [10,1000] according to the sampling frequency; initialize all differential levels in the statistical window to 0; The third step is to select a value that is greater than the windowing statistical threshold and less than the first N 1 The value of the minimum absolute value of the differential level at +1 sampling time is used as the initial positive decision threshold, N 1 The value of is equal to that of N; Step 4: If the absolute value of the differential level at the current sampling moment is greater than the windowed statistical threshold, the cumulative sum of the absolute values of the differential levels corresponding to the current sampling moment, the previous sampling moment, and the next sampling moment is moved into the statistical window, and the differential level in the statistical window is shifted left by one numerical unit as a whole, and the leftmost differential level is removed; if the differential level is not accumulated to the full N in the statistical window, 2 At each sampling moment, the positive decision threshold always remains at the initial positive decision threshold. 2 The value of is equal to N; when the continuous accumulation in the statistical window reaches N 2 When the absolute value of the differential level is non-zero, starting from the next sampling moment, at each sampling moment in the statistical window, the statistical values in the statistical window are averaged and then divided by the fixed statistical parameter D as the positive decision threshold of the current sampling moment. The value of D is a rational number selected in the range of [2,5]. In the fifth step, at each sampling moment, the calculated positive decision threshold is inverted as the negative decision threshold of the current sampling moment.
7. The baseband decoding method based on differential edge detection combined with fast adaptive decision threshold according to claim 1, It is characterized in that The use of the adaptive decision threshold to perform edge detection on the differentially processed signal in step 4 refers to judging the differential level of the signal at each sampling moment. When the differential level of the signal is greater than 0 and greater than the positive decision threshold value at the current sampling moment, it is determined that the signal at the current sampling moment rises, the signal jumps from 0 to 1, and the rising edge flag of the signal is set to 1; When the differential level of the signal is less than 0 and less than the negative decision threshold, the signal is judged to be falling at the current moment, the signal jumps from 1 to 0, and the signal falling edge flag is 1; in other cases, the signal is judged to remain unchanged, and the signal rising edge flag and the signal falling edge flag are both 0.
8. The baseband decoding method based on differential edge detection combined with fast adaptive decision threshold according to claim 1, It is characterized in that The continuous detection window in step 5 refers to setting two continuous detection windows with the same width and both K, namely C and 1 , C 2 , the value of K is an integer selected in the range of [2,10].
9. The baseband decoding method based on differential edge detection combined with fast adaptive decision threshold according to claim 1, It is characterized in that The steps for performing continuity check on the edge detection result described in step 5 are as follows: The first step is to set the continuous detection window C 1 and C 2 The value is initialized to 0, and the count values of the continuous rising edge counter and the continuous falling edge counter are initialized to 0; In the second step, if the rising edge flag of the signal at the current sampling moment is 1, move the rising edge flag of the signal into the continuous detection window C. 1 , and add 1 to the count value of the continuous rising edge counter. Each time a new signal rising edge flag is received, C 1 The internal value is shifted left by one value unit, and C is removed. 1 Similarly, if the falling edge flag of the signal at the current sampling moment is 1, the falling edge flag of the signal is moved into the continuous detection window C. 2 , and add 1 to the count value of the continuous falling edge counter. Each time a new falling edge flag is received, C 2 The internal value is shifted left by one value unit, and C is removed. 2 The leftmost value in ; Step 3: When the count value of the continuous rising edge counter is equal to K, determine C 1 The signal rising edge flag bit corresponding to the count value of the rising edge counter being 1 is a valid signal rising edge flag bit, and the valid signal rising edge flag bit is output; When the count value of the continuous falling edge counter is equal to K, it is determined that C 2 The signal falling edge flag corresponding to the count value of 1 in the falling edge counter is a valid signal falling edge flag, and the valid signal falling edge flag is output.
10. The baseband decoding method based on differential edge detection combined with fast adaptive decision threshold according to claim 1, It is characterized in that The signal waveform is reconstructed according to the coherence detection result in step 6 to restore the original data information, which means that when there is no signal transmission, the receiving end level is always 0 or 1 according to the baseband signal characteristics, and when a valid signal rising edge flag is detected, the receiving end signal level is set to 1; When a valid signal falling edge flag is detected, the receiving end signal level is set to 0; In other cases, the signal level at the receiving end remains unchanged.
Citation Information
Patent Citations
Self-adapting signal detecting method for eliminating frequency offset interference
CN101895491A
R wave detection circuit, method and defibrillator
CN102894970A
Frequency domain anti-interference method and device based on adaptive threshold judgment
CN104076369A
Joint measurement method of time domain and modulation domain parameters of barker code signal
CN106597410A
OFDM (orthogonal frequency division multiplexing) system synchronization device and method based on sliding window peak detection
CN106789825A
Cited By
Adaptive wheel speed decoding method and system based on AK protocol
CN120110397A
