Analog echo cancellation method

By updating the filter coefficients of the filter device using the delayed least mean square algorithm, the problem of signal-to-noise ratio reduction caused by near-end echo in the full-duplex transmission device is solved, achieving the effect of reducing near-end echo and improving the signal-to-noise ratio, and has a relatively high Low cost and complexity.

CN115589236BActive Publication Date: 2024-09-03REALTEK SEMICON CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110760562.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-06
Publication Date
2024-09-03
Estimated Expiration
2041-07-06

AI Technical Summary

Technical Problem

In a full-duplex transmission device, near-end echo occupies the dynamic range of the analog-to-digital converter, resulting in a reduction in signal-to-noise ratio. Existing technologies are difficult to effectively reduce near-end echo and increase the complexity and cost of the transmission device.

Method used

The delayed least mean square (LMS) algorithm is used to reduce the near-end echo and improve the signal-to-noise ratio of the received signal by updating the filter coefficients of the filter device.

Benefits of technology

It effectively reduces near-end echo, improves the dynamic range of the analog-to-digital converter, reduces costs, and does not increase the complexity of the transmission device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115589236B
    Figure CN115589236B
Patent Text Reader

Abstract

An analog echo cancellation method includes the following steps: generating a first signal according to a digital signal; filtering the first signal according to a first filter coefficient of a first filter device to generate a second signal; adding a first reference signal to the second signal to form a third signal; performing digital-to-analog conversion according to the first signal and the third signal and outputting to generate an echo signal; performing analog-to-digital conversion according to the echo signal to generate a fourth signal; generating a fifth signal according to the digital signal and the fourth signal; and updating the first filter coefficient according to the fifth signal. Generating the fifth signal includes: generating a second filter coefficient of a second filter device; updating the second filter coefficient; obtaining the first and second representative coefficients of the second filter coefficient; and generating the fifth signal according to the first and second representative coefficients.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a communication method, in particular to a communication method for eliminating simulated echo. Background Art

[0002] In a full-duplex transmission device, when there is impedance mismatch in the transmission line or mismatch in the hybrid architecture of the receiving end of the transmission device, the transmission signal will leak back to the receiving end, forming near-end echo and far-end echo, which reduces the signal-to-noise ratio of the analog received signal. The near-end echo is usually much larger than the far-end echo, and the near-end echo is related to the analog output signal of the transmission device itself. When the transmission device performs analog-to-digital conversion on the analog received signal, if the echo is too large, the dynamic range of the analog-to-digital converter in the receiving end will be occupied by the echo, so that the dynamic range that can be used by the analog-to-digital converter is reduced, causing the transmission device to require complex hardware and high costs to improve the dynamic range of the analog-to-digital converter. Therefore, how to effectively reduce the near-end echo without excessively increasing the complexity and cost of the transmission device has become one of the problems that the art is eager to solve. Summary of the invention

[0003] The present invention discloses an analog echo cancellation method, which includes the following steps: generating a first signal according to a digital signal; filtering the first signal according to a plurality of first filter coefficients of a first filter device to generate a second signal; adding a first reference signal to a second signal to form a third signal; performing digital-to-analog conversion according to the first signal and the third signal and outputting to generate an analog echo signal; performing analog-to-digital conversion according to the analog echo signal to generate a fourth signal; generating a fifth signal according to the digital signal and the fourth signal; and updating the first filter coefficients according to the fifth signal. The step of generating the fifth signal according to the digital signal and the fourth signal includes: generating a plurality of second filter coefficients of a second filter device; updating the second filter coefficients of the second filter device according to the second reference signal and the fourth signal; obtaining a first representative coefficient and a second representative coefficient among the second filter coefficients; and generating the fifth signal according to the first representative coefficient and the second representative coefficient.

[0004] The analog echo cancellation method of the present application utilizes a delayed least mean square (delayed LMS) algorithm to reduce near-end echo and increase the signal-to-noise ratio of the received signal to maintain the dynamic range of the analog-to-digital converter that can be effectively used. Compared with the prior art, the method has a lower cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] The various embodiments of the present application can be best understood when reading the following embodiments and the accompanying drawings. It should be noted that the various features in the drawings are not drawn to scale in accordance with standard operating practices in the art. In fact, the size of certain features may be deliberately enlarged or reduced in order to be clearly described.

[0006] Figure 1 Schematic diagram of a transmission device in some embodiments of the present invention.

[0007] Figure 2 It is a schematic diagram of some details of the transmission device in some embodiments of the present invention.

[0008] Explanation of symbols

[0009] 10: Transmission device

[0010] 100: Transmission circuit

[0011] 200: Receiving circuit

[0012] 300: Echo cancellation circuit

[0013] 400: Processing circuit

[0014] S0: Signal

[0015] SD: Signal

[0016] 110: Memory

[0017] 120: Oversampling circuit

[0018] 130: Shaping circuit

[0019] 140: Filtering device

[0020] 141: Filter

[0021] 142: Filter

[0022] 150: Shaping circuit

[0023] 160: Digital to Analog Converter

[0024] 170: Digital to Analog Converter

[0025] 210: Front-end circuit

[0026] 220: Analog-to-digital converter

[0027] 230: Analog-to-digital converter

[0028] 240: Memory

[0029] 250: Memory

[0030] 260: Filter

[0031] 270: Filter

[0032] 310: Pseudo-random number generator

[0033] 320: Memory

[0034] 330: Storage device

[0035] 340: Filtering device

[0036] 341: Filter

[0037] 342: Filter

[0038] 350: Filter

[0039] 360: Filtering device

[0040] 361: Filter

[0041] 362: Filter

[0042] AD1: Adder

[0043] AD2: Adder

[0044] AD3: Adder

[0045] AD4: Adder

[0046] AD5: Adder

[0047] AD6: Adder

[0048] S1: Signal

[0049] S2: Signal

[0050] S3: Signal

[0051] S4: Signal

[0052] S5: Signal

[0053] S6: Signal

[0054] S7: Signal

[0055] S8: Signal

[0056] S9: Signal

[0057] S10: Signal

[0058] S11: Signal

[0059] S12: Signal

[0060] S13: Signal

[0061] S14: Signal

[0062] S15: Signal

[0063] S16: Signal

[0064] S17: Signal

[0065] S18: Signal

[0066] S19: Signal

[0067] S20: Signal

[0068] SP1: Shaping signal

[0069] SP2: Shaping the signal

[0070] SP3: Shaped signal

[0071] S4A: Signal

[0072] PN: Reference signal

[0073] SR1: Reference signal

[0074] SR2: Reference Signal

[0075] STX: Analog output signal

[0076] SRX: Analog input signal

[0077] EC: echo cancellation signal

[0078] STXE: Simulate echo signal DETAILED DESCRIPTION

[0079] Figure 1 Schematic diagram of a transmission device 10 according to some embodiments of the present invention. The transmission device 10 adopts full-duplex technology. For example, the transmission device 10 transmits and receives signals through two transmission lines, wherein the first transmission line can be used to output an analog output signal STX, and the second transmission line can be used to receive an analog input signal SRX. In some embodiments, the transmission device 10 is applied to an Ethernet system.

[0080] like Figure 1 As shown, the transmission device 10 includes a transmission circuit 100, a receiving circuit 200, an echo cancellation circuit 300 and a processing circuit 400. The transmission circuit 100 is coupled to the receiving circuit 200, the echo cancellation circuit 300 and the processing circuit 400, the receiving circuit 200 is coupled to the echo cancellation circuit 300 and the processing circuit 400, and the echo cancellation circuit 300 is further coupled to the processing circuit 400.

[0081] The transmission circuit 100 receives a digital signal S1 and performs a digital-to-analog conversion to generate an analog output signal STX which is output from a first transmission line. In some embodiments, the signal S1 is a signal generated after being encoded from a media access control layer (MAC layer), but the present application is not limited thereto. In addition to receiving the analog input signal SRX, the second transmission line close to the transmission circuit 100 also receives an analog echo signal STXE formed due to impedance mismatch and received by the receiving circuit 200. Therefore, what the receiving circuit 200 actually receives is the result of the superposition of the analog input signal SRX and the analog echo signal STXE. Therefore, the transmission circuit 100 generates an echo cancellation signal SE to offset the analog echo signal STXE. The receiving circuit 200 is also used to perform an analog-to-digital conversion to generate a signal SD.

[0082] The echo cancellation circuit 300 and the processing circuit 400 reduce the analog echo signal STXE on the second transmission line according to the signal S1, so that the signal received by the receiving circuit 200 can have a higher signal-to-noise ratio (SNR). Because the signal processed by the receiving circuit 200 includes the analog input signal SRX and the analog echo signal STXE, when performing analog-to-digital conversion, the effective dynamic range of the analog-to-digital converter (ADC) is related to the analog echo signal STXE. The effective dynamic range can be represented by the effective number of bits (ENOB). A lower analog echo signal STXE can effectively use a larger dynamic range, while a higher analog echo signal STXE can only use a smaller dynamic range.

[0083] In order to enable the receiving circuit 200 to use the full dynamic range when performing analog-to-digital conversion, the transmission device 10 of the present application can reduce the analog echo signal STXE using the echo cancellation signal SE before entering the receiving circuit 200, thereby improving the SNR and ENOB. The details are as follows.

[0084] refer to Figure 2 . Figure 2 FIG. 1 is a schematic diagram of some details of the transmission device 10 in some embodiments of the present invention.

[0085] The transmission circuit 100 includes a memory 110 , an oversampling circuit 120 , a shaping circuit 130 , a filtering device 140 , a shaping circuit 150 , a digital-to-analog converter (DAC) 160 , and a DAC 170 .

[0086] In some embodiments, the memory 110 is implemented as a register capable of executing a first in first out (FIFO) procedure, for example, the memory 110 is implemented as an asynchronous FIFO register. The memory 110 is used to receive a signal S1 of a first clock domain SYSC and generate a signal S2 of a second clock domain TXC. The oversampling circuit 120 is used to oversample the signal S2 and generate a signal S3. In some embodiments, the frequency of the signal S2 is 400 MHz, and the frequency of the signal S3 is 1.6 GHz. The shaping circuit 130 generates a shaping signal SP1 according to the signal S3. Then, the ADC 160 performs a digital-to-analog conversion on the shaping signal SP1 to generate an analog output signal STX.

[0087] The filter device 140 includes a filter 141 and a filter 142. In some embodiments, the filter 141 and the filter 142 are finite impulse filters (FIR), which respectively have a plurality of filter coefficients, wherein the filter coefficients show the response of the filter to the signal, and when the filter coefficients are changed, the filtering result of the filter on the signal is also changed. The filter device 140 has filter coefficients forming a sequence, wherein the filter coefficients of the filter device 140 are composed of the filter coefficients of the filter 141 and the filter 142. More specifically, the filter coefficients of the filter 141 and the filter coefficients of the filter 142 are the filter coefficients of the odd-bit and even-bit numbers in the filter device 140, respectively. The filter 141 and the filter 142 respectively have a plurality of taps, wherein the number of taps is equal to the number of filter coefficients. For example, the filter 141 and the filter 142 respectively have 12 filter coefficients and 12 taps forming a sequence. The filter 141 and the filter 142 filter the signal S2 according to the filter coefficients to generate the signal S4 and the signal S5, respectively. The filter 141 and the filter 142 use the least mean square (LMS) algorithm to filter the signal S2 through the echo cancellation circuit 300 and the processing circuit 400, and the details are described below. The shaping circuit 150 generates a shaped signal SP2 according to the signal S4 and the signal S5. Then, the shaped signal SP1 and the shaped signal SP2 are added by an adder AD1, and then the added shaped signal SP3 is converted from digital to analog by the DAC 170 to generate the echo cancellation signal SE output.

[0088] The receiving circuit 200 includes a front-end circuit 210, an ADC 220, an ADC 230, a memory 240, a memory 250, a filter 260, and a filter 270. The front-end circuit 210 is coupled to the ADC 220 and the ADC 230, the ADC 220 and the ADC 230 are respectively coupled to the memory 240 and the memory 250, and the memory 240 and the memory 250 are respectively coupled to the filter 260 and the filter 270.

[0089] After the analog input signal SRX and the analog echo signal STXE are superimposed, they pass through the adder AD2 to deduct the echo cancellation signal SE, and are received by the front-end circuit 210 to generate a signal S6. The ADC 220 and the ADC 230 perform analog-to-digital conversion on the signal S6 to generate a signal S7 and a signal S8 of the third clock domain RXC, respectively. In some embodiments, the memory 240 and the memory 250 are implemented as asynchronous FIFO registers. The memory 240 and the memory 250 are respectively used to receive the signal S7 and the signal S8 of the third clock domain RXC, and generate a signal S9 and a signal S10 of the first clock domain SYSC. Then, the filter 260 and the filter 270 perform filtering according to the signal S9 and the signal S10, respectively, to generate a signal S11 and a signal S12. Then, the adder AD3 is used to add the signal S11 and the signal S12 to generate a signal SD.

[0090] The echo cancellation circuit 300 includes a pseudo-random number generator 310, a memory 320, a storage device 330, a filter device 340, a memory 350, and a filter device 360. The pseudo-random number generator 310 is coupled to the memory 320 and the storage device 330, the memory 320 is coupled to the transmission circuit 100, the storage device 330 is coupled to the filter device 340, the filter device 340 is coupled to the receiving circuit 200 and the processing circuit 400, the memory 350 is coupled to the transmission circuit 100 and the filter device 360, and the filter device 360 ​​is coupled to the processing circuit 400.

[0091] The echo cancellation circuit 300 generates a reference signal PN through a pseudo-random number generator 310, receives the reference signal PN through a memory 320, and generates a reference signal SR1 for transmission to the transmission circuit 100. In some embodiments, the reference signal PN is a pseudo-random number signal. In some embodiments, the memory 320 is implemented as an asynchronous FIFO register. The memory 320 receives the reference signal PN of the first clock domain SYSC, and generates a reference signal SR1 of the second clock domain TXC. In the transmission circuit 100, the reference signal SR1 is added to the signal S4 by an adder AD4 to generate a signal S4A, and the shaping circuit 150 then shapes the signal S4A and the signal S5 to generate a shaped signal SP2. Therefore, the echo cancellation signal SE generated by the transmission circuit 100 includes information about the reference signal PN, and the signals S9 and S10 generated inside the receiving circuit 200 also carry information about the reference signal PN.

[0092] The reference signal PN generated by the pseudo-random number generator 310 is also received by the storage device 330 and generates a reference signal SR2 to the filtering device 340. In some embodiments, the storage device 330 includes a dynamic FIFO register. The storage device 330 is used to receive the reference signal PN of the first clock domain SYSC, and invert the reference signal PN to generate the reference signal SR2 of the first clock domain SYSC. In other words, the reference signal PN and the reference signal SR2 are opposite in sign. The filtering device 340 includes a filter 341 and a filter 342. In some embodiments, the filter 341 and the filter 342 are FIR. The filter 341 and the filter 342 filter the reference signal SR2 according to their own filter coefficients to generate the signal S13 and the signal S14 respectively, and transmit the signal S13 and the signal S14 to the receiving circuit 200. In the receiving circuit 200 , the adder AD5 is used to add the signal S9 and the signal S13 to generate a signal S15 and transmit it to the filter 260 , and the adder AD6 is used to add the signal S10 and the signal S14 to generate a signal S16 and transmit it to the filter 270 .

[0093] When the echo cancellation circuit 300 transmits the reference signal SR1 to the transmission circuit to generate the echo cancellation signal SE, the signal received by the receiving circuit 200 includes the information of the reference signal SR1. However, the reference signal SR1 does not belong to the content of the analog input signal SRX, so the echo cancellation circuit 300 needs to transmit the signal S13 and the signal S14 containing the information of the reference signal SR2 to the receiving circuit 200, so that after receiving the content containing the information of the reference signal SR1, the receiving circuit 200 uses the signal S13 and the signal S14 containing the information of the reference signal SR2 (inverted with the reference signal SR1) to offset the information of the reference signal SR1.

[0094] In some embodiments, the reference signal SR1 transmitted to the receiving circuit 200 through the transmission circuit 100 and the reference signal SR2 transmitted to the receiving circuit 200 through the filter device 340 generate different phase shifts, so there is a phase difference between the information about the reference signal SR1 and the information about the reference signal SR2 at the adder AD5 and the adder AD6. The above phase difference can be known from the generated signal S15 and the signal S16. In order to adjust the information about the reference signal SR1 and the reference signal SR2 contained in the signals S9, S10 and the signals S13, S14 to be in phase, the filter 341 and the filter 342 adjust the filter coefficients through the signal S15 and the signal S16 respectively.

[0095] The echo cancellation circuit 300 receives the signal S1 through the memory 350 and generates a signal S17, and then the filter device 360 ​​filters the signal S17. In some embodiments, the signal S1 is the same as the signal S17. The filter device 360 ​​includes a filter 361 and a filter 362. In some embodiments, the filter 361 and the filter 362 are FIR. The filter 361 and the filter 362 filter the signal S17 according to the filter coefficient to generate a signal S18 and a signal S19 respectively, and transmit them to the processing circuit 400.

[0096] In some embodiments, the filter device 340 and the filter device 360 ​​respectively have filter coefficients forming a series, wherein the filter coefficient of the filter device 340 is composed of the filter coefficients of the filter 341 and the filter 342, and the filter coefficient of the filter device 360 ​​is composed of the filter coefficients of the filter 361 and the filter 362. More specifically, the filter coefficient of the filter 341 and the filter coefficient of the filter 342 are the filter coefficients of the odd-numbered and even-numbered numbers in the filter device 340, respectively, and the filter coefficient of the filter 361 and the filter coefficient of the filter 362 are the filter coefficients of the odd-numbered and even-numbered numbers in the filter device 360, respectively.

[0097] The processing circuit 400 is used to generate a signal S20 to the transmission circuit 100 according to the signal S1, the signal S9 and the signal S10, and the transmission circuit 100 then updates the filter coefficient of the filter device 140 according to the signal S20. In this embodiment, the processing circuit 400 generates the signal S20 according to the Delayed LMS algorithm in the LMS algorithm, so that the filter device 140 can use the Delayed LMS mechanism to filter the signal S2.

[0098] In some embodiments, the processing circuit 400 has two algorithms to achieve the effect of the Delayed LMS algorithm. More specifically, the processing circuit 400 uses one of the two algorithms to determine the filter coefficient of the filter device 360 ​​according to the filter coefficient of the filter device 340. After the filter coefficient of the filter device 360 ​​is determined, the processing circuit 400 generates the signal S20 according to the signal S9, the signal S10, the signal S18 and the signal S19. The details of the above two algorithms are described as follows.

[0099] The processing circuit 400 takes the absolute value of the filter coefficient of the filter device 340 and obtains the first representative coefficient with the maximum value. Then, the previous filter coefficient of the first representative coefficient is compared with the next filter coefficient. When the absolute value of the previous filter coefficient is greater than or equal to the absolute value of the next filter coefficient, the processing circuit 400 sets the previous filter coefficient as the second representative coefficient. When the absolute value of the previous filter coefficient is less than the absolute value of the next filter coefficient, the processing circuit 400 sets the next filter coefficient as the second representative coefficient.

[0100] In the first operation method, after determining the first representative coefficient and the second representative coefficient in the filter coefficient of the filter device 340, the processing circuit 400 determines the weights of the first representative coefficient and the second representative coefficient according to the preset first reference value and the second reference value. In some embodiments, the first reference value and the second reference value are related to the process parameters of the filter device 340, wherein the first reference value is greater than the second reference value, for example, the first reference value is equal to 0.93, and the second reference value is equal to 0.73.

[0101] When the absolute value of the second representative coefficient is greater than the absolute value of the first representative coefficient multiplied by the first reference value, the processing circuit 400 determines that the second representative coefficient has a larger weight, and sets the value of the filter coefficient of the filter device 360 ​​corresponding to the second representative coefficient of the filter device 340 to the value of the second representative coefficient, and sets the remaining filter coefficients to 0.

[0102] When the absolute value of the second representative coefficient is smaller than the absolute value of the first representative coefficient multiplied by the second reference value, the processing circuit 400 determines that the first representative coefficient has a larger weight, and sets the value of the filter coefficient of the filter device 360 ​​corresponding to the first representative coefficient of the filter device 340 to the value of the first representative coefficient, and sets the remaining filter coefficients to 0.

[0103] When the absolute value of the second representative coefficient is less than or equal to the absolute value of the first representative coefficient multiplied by the first reference value and greater than or equal to the absolute value of the first representative coefficient multiplied by the second reference value, the processing circuit 400 determines that the first representative coefficient and the second representative coefficient have the same weight, and sets the values ​​of the filter coefficients of the filter device 360 ​​corresponding to the first representative coefficient and the second representative coefficient of the filter device 340 to the values ​​of the first representative coefficient and the second representative coefficient, respectively, and the remaining filter coefficients are set to 0.

[0104] In the second operation method, the processing circuit 400 sums up the filter coefficients of the filter 341 and the filter coefficients of the filter 342 to obtain an odd sum value and an even sum value, and subtracts the odd sum value from the even sum value to obtain an even-odd difference value. The processing circuit 400 then sums up the absolute values ​​of the filter coefficients of the filter device 340 to obtain an absolute sum value. After obtaining the even-odd difference value and the absolute sum value, the processing circuit 400 determines the weights of the first representative coefficient and the second representative coefficient according to the third reference value and the fourth reference value. The third reference value is equal to the fourth reference value multiplied by -1. For example, the third reference value is 1 / 32, and the fourth reference value is -1 / 32.

[0105] When the even-odd difference is greater than the absolute sum value multiplied by the third reference value, the processing circuit 400 determines that the filter coefficient of the filter 341 has a greater weight. The processing circuit 400 selects the first representative coefficient and the second representative coefficient, whichever is located at an odd number in the filter coefficient of the filter device 340, and determines that the first representative coefficient or the second representative coefficient located at an odd number has a greater weight. When the first representative coefficient is located at an odd number, the processing circuit 400 sets the value of the filter coefficient of the filter device 360 ​​corresponding to the first representative coefficient of the filter device 340 to the value of the first representative coefficient, and sets the remaining filter coefficients to 0. When the second representative coefficient is located at an odd number, the processing circuit 400 sets the value of the filter coefficient of the filter device 360 ​​corresponding to the second representative coefficient of the filter device 340 to the value of the second representative coefficient, and sets the remaining filter coefficients to 0.

[0106] When the even-odd difference is less than the absolute sum value multiplied by the fourth reference value, the processing circuit 400 determines that the filter coefficient of the filter 342 has a greater weight. The processing circuit 400 selects the first representative coefficient and the second representative coefficient, whichever is located at an even number of the filter coefficients of the filter device 340, and determines that the first representative coefficient or the second representative coefficient located at an even number has a greater weight. When the first representative coefficient is located at an even number, the processing circuit 400 sets the value of the filter coefficient of the filter device 360 ​​corresponding to the first representative coefficient of the filter device 340 to the value of the first representative coefficient, and sets the remaining filter coefficients to 0. When the second representative coefficient is located at an even number, the processing circuit 400 sets the value of the filter coefficient of the filter device 360 ​​corresponding to the second representative coefficient of the filter device 340 to the value of the second representative coefficient, and sets the remaining filter coefficients to 0.

[0107] When the even-odd difference value is greater than or equal to the absolute sum value multiplied by the fourth reference value and less than or equal to the absolute sum value multiplied by the third reference value, the processing circuit 400 determines that the filter coefficients of the filter 341 and the filter 342 have the same weights, and sets the values ​​of the filter coefficients of the filter device 360 ​​corresponding to the first representative coefficient and the second representative coefficient of the filter device 340 to the values ​​of the first representative coefficient and the second representative coefficient, respectively, and sets the remaining filter coefficients to 0.

[0108] When the filter coefficient of the filter device 360 ​​is determined according to the first algorithm or the second algorithm, the filter device 360 ​​filters the signal S17 according to the determined filter coefficient to generate the signal S18 and the signal S19. The processing circuit 400 then multiplies the signal S9 by the signal S18 and multiplies the signal S10 by the signal S19 to obtain the signal S20.

[0109] After the filter coefficient of the filter device 140 is updated, the transmission circuit 100 can adjust the echo cancellation signal SE accordingly to reduce the analog echo signal STXE.

[0110] In conventional technology, using the LMS algorithm to update the filter coefficients requires a lot of computational cost. However, the transmission device 10 provided by the present invention sets most of the filter coefficients of the filter device 360 ​​to 0, thus significantly reducing power consumption when performing signal multiplication without excessively affecting the echo cancellation effect.

[0111] The above description briefly presents the features of certain embodiments of the present application, so that those skilled in the art to which the present application belongs can more fully understand the various implementation methods of the present application. Those skilled in the art to which the present application belongs should understand that they can easily use the present application as a basis to design or change other processes and structures to achieve the same purpose and / or achieve the same advantages as the implementation methods herein. Those skilled in the art to which the present application belongs should understand that these equal implementation methods still belong to the concept and scope of the present application, and they can be subjected to various changes, substitutions and changes without deviating from the concept and scope of the present application.

Claims

1. A communication method for eliminating analog echo, comprising the following steps: Generate a first signal according to a digital signal; filtering the first signal according to a plurality of first filter coefficients of a first filter device to generate a second signal; Adding a first reference signal to the second signal to form a third signal; Performing digital-to-analog conversion according to the first signal and the third signal and outputting the conversion to generate an analog echo signal, wherein an echo cancellation signal is generated according to the plurality of first filter coefficients, wherein the echo cancellation signal is used to reduce the analog echo signal; Performing analog-to-digital conversion according to the analog echo signal to generate a fourth signal; Generating a fifth signal according to the digital signal and the fourth signal, comprising: generating a plurality of second filter coefficients of a second filter device; updating the plurality of second filter coefficients of the second filter device according to a second reference signal and the fourth signal; Obtain a first representative coefficient and a second representative coefficient from the plurality of second filter coefficients ; and generating the fifth signal according to the first representative coefficient and the second representative coefficient; and The plurality of first filter coefficients are updated according to the fifth signal.

2. The communication method as claimed in claim 1, wherein the step of updating the plurality of second filter coefficients of the second filter device according to the second reference signal and the fourth signal comprises: filtering the second reference signal according to the second filter coefficients of the second filter device to generate a sixth signal, wherein the second reference signal and the first reference signal are inversely phased with each other; Adding the sixth signal to the fourth signal to generate a seventh signal; and The plurality of second filter coefficients are updated according to the seventh signal.

3. The communication method as claimed in claim 2, wherein the step of generating the fifth signal according to the first representative coefficient and the second representative coefficient comprises: generating a plurality of third filter coefficients of a third filter device according to the first representative coefficient and the second representative coefficient; filtering the digital signal according to the third filter coefficients of the third filter device to generate an eighth signal; and The fourth signal is multiplied by the eighth signal to generate the fifth signal.

4. The communication method as claimed in claim 3, wherein the step of obtaining the first representative coefficient and the second representative coefficient in the plurality of second filter coefficients comprises: Take absolute values ​​of the plurality of second filter coefficients, and obtain the first representative coefficient having the maximum value therefrom, compare a previous filter coefficient and a subsequent filter coefficient of the first representative coefficient, when the absolute value of the previous filter coefficient is greater than the absolute value of the subsequent filter coefficient, the previous filter coefficient is the second representative coefficient, when the absolute value of the previous filter coefficient is less than the absolute value of the subsequent filter coefficient, the subsequent filter coefficient is the second representative coefficient, and when the absolute value of the previous filter coefficient is equal to the absolute value of the subsequent filter coefficient, the previous filter coefficient is the second representative coefficient.

5. The communication method as claimed in claim 4, wherein the step of generating the plurality of third filter coefficients of the third filter device according to the first representative coefficient and the second representative coefficient comprises: The absolute value of the second representative coefficient, the product of the absolute value of the first representative coefficient and a first reference value, and the product of the absolute value of the first representative coefficient and a second reference value are compared, wherein the first reference value is greater than the second reference value.

6. The communication method as claimed in claim 5, wherein when the absolute value of the second representative coefficient is greater than the product of the absolute value of the first representative coefficient and the second reference value and less than the product of the absolute value of the first representative coefficient and the first reference value, the step of generating the plurality of third filter coefficients of the third filter device according to the first representative coefficient and the second representative coefficient further comprises: Set corresponding two of the plurality of third filter coefficients as the first representative coefficient and the second representative coefficient, wherein the positions of the first representative coefficient and the second representative coefficient in the plurality of second filter coefficients are the same as the positions of the first representative coefficient and the second representative coefficient in the plurality of third filter coefficients. ; and The third filter coefficients other than the determined first representative coefficient and the second representative coefficient are set to 0, When the absolute value of the second representative coefficient is less than the product of the absolute value of the first representative coefficient and the second reference value, the step of generating the plurality of third filter coefficients of the third filter device according to the first representative coefficient and the second representative coefficient further comprises: setting a corresponding one of the plurality of third filter coefficients as the first representative coefficient, wherein a position of the first representative coefficient in the plurality of second filter coefficients is the same as a position determined as the first representative coefficient in the plurality of third filter coefficients; and The plurality of third filter coefficients other than the determined first representative coefficient are set to 0, When the absolute value of the second representative coefficient is greater than the product of the absolute value of the first representative coefficient and the first reference value, the step of generating the plurality of third filter coefficients of the third filter device according to the first representative coefficient and the second representative coefficient further comprises: Setting a corresponding one of the plurality of third filter coefficients as the second representative coefficient, wherein a position of the second representative coefficient in the plurality of second filter coefficients is the same as a position determined as the second representative coefficient in the plurality of third filter coefficients; and The plurality of third filter coefficients other than the determined second representative coefficient are set to 0.

7. The communication method as claimed in claim 4, wherein the step of generating the plurality of third filter coefficients of the third filter device according to the first representative coefficient and the second representative coefficient comprises: summing up the odd-bit second filter coefficients to obtain an odd sum value; summing up the plurality of second filter coefficients having even bits to obtain an even sum value; Subtracting the even sum value from the odd sum value to obtain an odd-even difference value; summing up the absolute values ​​of the plurality of second filter coefficients to obtain an absolute sum value; The parity difference value, the product of the absolute sum value and a third reference value and the product of the absolute sum value and a fourth reference value are compared, wherein the third reference value is a positive number less than 1, and the fourth reference value is equal to the third reference value multiplied by -1.

8. The communication method as claimed in claim 7, wherein when the parity difference value is greater than the product of the absolute sum value and the fourth reference value and less than the product of the absolute sum value and the third reference value, the step of generating the plurality of third filter coefficients of the third filter device according to the first representative coefficient and the second representative coefficient further comprises: Set corresponding two of the plurality of third filter coefficients as the first representative coefficient and the second representative coefficient, wherein the positions of the first representative coefficient and the second representative coefficient in the plurality of second filter coefficients are the same as the positions of the first representative coefficient and the second representative coefficient in the plurality of third filter coefficients. ; and The third filter coefficients other than the determined first representative coefficient and the second representative coefficient are set to 0, When the parity difference is greater than the product of the absolute sum and the third reference value, the step of generating the plurality of third filter coefficients of the third filter device according to the first representative coefficient and the second representative coefficient further comprises: When the first representative coefficient is an odd number among the plurality of second filter coefficients, setting a corresponding one of the plurality of third filter coefficients to the first representative coefficient, and setting the plurality of third filter coefficients other than the determined first representative coefficient to 0, wherein the position of the first representative coefficient among the plurality of second filter coefficients is the same as the position determined as the first representative coefficient among the plurality of third filter coefficients; and When the second representative coefficient is an odd number among the plurality of second filter coefficients, a corresponding one of the plurality of third filter coefficients is set as the second representative coefficient, and the plurality of third filter coefficients other than the determined second representative coefficient among the plurality of third filter coefficients are set to 0, wherein the position of the second representative coefficient among the plurality of second filter coefficients is the same as the position determined as the second representative coefficient among the plurality of third filter coefficients, When the parity difference is greater than the product of the absolute sum and the third reference value, the step of generating the plurality of third filter coefficients of the third filter device according to the first representative coefficient and the second representative coefficient further comprises: When the first representative coefficient is an even number among the plurality of second filter coefficients, setting a corresponding one of the plurality of third filter coefficients to the first representative coefficient, and setting the plurality of third filter coefficients other than the determined first representative coefficient to 0, wherein the position of the first representative coefficient in the plurality of second filter coefficients is the same as the position determined as the first representative coefficient in the plurality of third filter coefficients; and When the second representative coefficient is an even number among the multiple second filter coefficients, a corresponding one of the multiple third filter coefficients is set as the second representative coefficient, and the multiple third filter coefficients except the determined second representative coefficient are set to 0, wherein the position of the second representative coefficient in the multiple second filter coefficients is the same as the position determined as the second representative coefficient in the multiple third filter coefficients.

9. The communication method as claimed in claim 1, further comprising: A pseudo-random signal is generated by a pseudo-random number generator, and the first reference signal and the second reference signal are generated according to the pseudo-random signal.