Disclosure of Invention
In view of the above problems of the prior art in the communication device processing echo, a method and a communication device for resisting signal attenuation are provided, wherein the method aims at the slave device in the communication device to perform signal attenuation without training again when receiving an amplified superposed signal.
The specific technical scheme is as follows:
a method for resisting signal attenuation based on wired communication is applied to communication equipment of wired communication, wherein a master device and a slave device connected with the master device are provided, the slave device comprises a first sending end and a first receiving end, the master device comprises a second sending end and a second receiving end, and the first receiving end is provided with an equalizer; the method specifically comprises the following steps:
step S1, the master device sends a first communication signal to the slave device through the second sending end;
step S2, the slave device trains the received first communication signal through the equalizer to form a first equalization coefficient;
step S3, after receiving the first communication signal, the slave device sends a second communication signal to the second receiving end through the first sending end;
step S4, the slave device superimposes the first communication signal on the second communication signal to form a received signal, and amplifies the received signal to obtain a gain value;
step S5, the slave device multiplies the first equalization coefficient by the gain value to obtain a second equalization coefficient;
step S6, the equalizer of the slave device performs attenuation processing on the signal sent again by the master device according to the second equalization coefficient.
Preferably, the equalizer is an adaptive filter.
Preferably, in step S4, the slave device amplifies the received signal by an amplifier.
Preferably, the first receiving end of the slave device is further provided with an echo filter, and after the equalizer completes training according to the received signal, the slave device trains the echo filter according to the received signal to obtain a filter coefficient;
and the slave equipment performs echo cancellation processing on the data sent by the master equipment according to the filter coefficient.
Preferably, the echo filter is an adaptive filter.
Preferably, the communication device is a subscriber telephone.
The technical scheme has the following advantages or beneficial effects: when the slave device in the communication device receives the superposed signal, namely the received signal in the scheme, the slave device can perform anti-fading processing on the current received signal without training the current received signal again through an equalizer, and the defects that the slave device in the communication device in the prior art needs to train the superposed signal again and consumes longer time and has training failure are overcome.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The invention is further described with reference to the following drawings and specific examples, which are not intended to be limiting.
The technical scheme of the invention comprises a method for resisting signal attenuation based on wired communication.
A method for resisting signal attenuation based on wired communication is applied to communication equipment of wired communication, and is characterized in that a main device and a slave device connected with the main device are provided, the slave device comprises a first sending end and a first receiving end, the main device comprises a second sending end and a second receiving end, and the first receiving end is provided with an equalizer; as shown in fig. 1, the method specifically comprises the following steps:
step S1, the master device sends a first communication signal to the slave device through the second sending end;
step S2, the slave device trains the received first communication signal through the equalizer to form a first equalization coefficient;
step S3, after receiving the first communication signal, the slave device sends a second communication signal to the second receiving end through the first sending end;
step S4, the slave device superimposes the first communication signal on the second communication signal to form a received signal, and amplifies the received signal to obtain a gain value;
step S5, the slave device multiplies the first equalization coefficient by the gain value to obtain a second equalization coefficient;
in step S6, the equalizer of the slave device performs attenuation processing on the signal retransmitted by the master device according to the second equalization coefficient.
In the prior art, after receiving a communication signal sent by a master device, a slave device may train an equalizer at a receiving end for the first time to reduce interference of the signal, and when the slave device sends the communication signal to the master device, the sent communication signal may be superimposed on the communication signal sent by the master device as a local signal, and after the superimposed communication signal is subjected to amplification processing, the strength of the signal has changed, and the equalizer trained before is not applicable, so that the equalizer in the slave device needs to train the current signal after being superimposed and amplified again, which results in a long training time, and if there is a large interference in a received signal, a large number of errors may occur in the finally received signal, resulting in a failure of the entire training process.
In the invention, the first training is completed after the slave device receives the first communication signal sent by the master device to obtain the first equalization coefficient of the equalizer, when the slave device sends the second communication signal to the master device, the first communication signal and the second communication signal are superposed to form a received signal, the received signal is amplified to obtain the amplification multiple, namely gain, the first equalization coefficient is multiplied by the gain value to form the second equalization coefficient, and the equalizer can perform attenuation processing on the signal sent again by the master device according to the second equalization coefficient.
In a preferred embodiment, the equalizer is an adaptive filter.
In a preferred embodiment, in step S4, the slave device amplifies the received signal by an amplifier.
In the above technical solution, the amplifier is a signal amplifier, and a method for amplifying a signal by the signal amplifier is well known to those skilled in the art and will not be described herein again.
In a preferred embodiment, the first receiving end of the slave device is further provided with an echo filter, and after the equalizer completes training according to the received signal, the slave device trains the echo filter according to the received signal to obtain a filter coefficient;
and the slave equipment performs echo cancellation processing on the data sent by the master equipment according to the filter coefficient.
In a preferred embodiment, the echo filter is an adaptive filter.
In the above technical solution, the method for obtaining the filter coefficient by training the signal through the adaptive filter is a technique well known to those skilled in the art, and is not described herein again.
In a preferred embodiment, the communication device is a subscriber telephone.
In the above technical solution, the communication device includes a master device and a slave device, the slave device completes a first training after receiving a first communication signal sent by the master device to obtain a first equalization coefficient of the equalizer, when the slave device sends a second communication signal to the master device, the first communication signal and the second communication signal are superposed to form a received signal, and after amplification processing, gain, which is a multiple of amplification, is obtained, the first equalization coefficient is multiplied by a gain value to form a second equalization coefficient, and the equalizer can perform attenuation processing on a signal sent again by the master device according to the second equalization coefficient.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.