Disclosure of Invention
In view of the above problems in the prior art, a method for training a receiver of a two-way transmission cable communication system is provided.
The specific technical scheme is as follows:
the invention includes a bidirectional transmission wired communication system receiver training method, is suitable for the training course of the said bidirectional transmission wired communication system receiver; the method is characterized by comprising the following steps:
step A, judging whether the transmitting terminal and the receiving terminal establish line connection:
if yes, turning to step B;
if not, returning to the step A;
b, the transmitting end trains the reflected signal eliminator and then transmits a training sequence to the receiving end;
step C, the receiving end trains a receiving equalizer according to the training sequence, and then feeds the training sequence back to the transmitting end;
and D, the transmitting end receives the training sequence and finishes the training process of the bidirectional transmission wired communication system receiver.
Preferably, the signal energy between the transmitting end and the receiving end is detected in advance when the transmitting end and the receiving end establish good line connection, and an energy threshold is set according to the detection result; and
detecting a jump value of signal energy between the transmitting terminal and the receiving terminal when the transmitting terminal and the receiving terminal establish good line connection in advance, and setting a jump threshold according to a detection result;
the step A specifically comprises the following steps:
a1, counting the signal energy in a preset time period, and calculating to obtain a predicted value of the signal energy according to a counting result;
step A2, comparing the predicted value with the energy threshold, and comparing the jump state of the predicted value with the jump threshold:
if the predicted value is lower than the energy threshold or the hopping state of the predicted value is lower than the hopping threshold, judging that the line connection between the transmitting terminal and the receiving terminal is established;
and if the predicted value is not lower than the energy threshold and the jumping state of the predicted value is not lower than the jumping threshold, judging that the line connection between the transmitting terminal and the receiving terminal is not established.
Preferably, in the step a1, the predicted value is calculated according to the following formula:
wherein the content of the first and second substances,
x (i) is the sampling value of the ith analog-to-digital converter, k is the serial number of the signal energy statistic value, and N is the number of sampling values of single signal energy statistic.
Preferably, the energy threshold is calculated according to the following formula:
Ethres=(Econ+Ediscon)/2
wherein the content of the first and second substances,
Ethresfor representing said energy threshold, EconFor the pre-measured values of the signal energy when the line connection is good, EdisconThe predicted value of the signal energy is obtained for a previously measured line when the line is disconnected.
Preferably, the hopping threshold is calculated according to the following formula:
Ethres_jump=2*(Econ/Ediscon)
wherein the content of the first and second substances,
Ethres_jumpfor indicating the transition threshold, EconFor the pre-measured values of the signal energy when the line connection is good, EdisconThe predicted value of the signal energy is obtained for a previously measured line when the line is disconnected.
Preferably, the step B specifically includes:
step B1, the transmitting terminal starts to transmit training sequence and trains the reflected signal eliminator of the transmitting terminal according to the training sequence;
step B2, after training the reflected signal canceller at the transmitting end, the transmitting end transmits the training sequence to the receiving end, and waits for the receiving end to feed back the training sequence.
Preferably, the step C specifically includes:
step C1, the receiving end detects the training sequence and trains the receiving equalizer of the receiving end according to the training sequence;
step C2, the receiving end starts to transmit the training sequence and trains the reflected signal eliminator of the receiving end according to the training sequence;
step C3, after training the reflected signal canceller at the receiving end, the receiving end feeds back the training sequence to the transmitting end.
Preferably, the step D specifically includes:
step D1, the transmitting terminal detects the training sequence fed back by the receiving terminal, and trains the receiving equalizer of the transmitting terminal according to the training sequence;
and D2, finishing the training process of the bidirectional transmission wired communication system receiver after the reflected signal eliminator of the receiving end and the receiving equalizer of the transmitting end are trained.
The technical scheme of the invention has the beneficial effects that: the method for detecting the line connection does not need to use an additional matching detection circuit, is simple and beneficial to implementation, saves cost, and does not cause any problem of compatibility.
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 invention includes a training method of a bidirectional transmission wired communication system receiver, which is suitable for the training process of the bidirectional transmission wired communication system receiver, as shown in figure 2, and is characterized by comprising the following steps:
step A, judging whether the transmitting terminal and the receiving terminal establish line connection:
if yes, turning to step B;
if not, returning to the step A;
step B, the transmitting end trains the reflected signal eliminator, and then transmits a training sequence to the receiving end, which specifically comprises the following steps:
step B1, the transmitting terminal starts to transmit the training sequence and trains the reflected signal eliminator of the transmitting terminal according to the training sequence;
step B2, after training the reflected signal eliminator of the transmitting terminal, the transmitting terminal transmits the training sequence to the receiving terminal and waits for the receiving terminal to feed back the training sequence;
step C, the receiving end trains the receiving equalizer according to the training sequence, and then feeds back the training sequence to the transmitting end, which specifically comprises:
step C1, the receiving end detects the training sequence and trains the receiving equalizer of the receiving end according to the training sequence;
step C2, the receiving end starts to transmit the training sequence and trains the reflected signal eliminator of the receiving end according to the training sequence;
step C3, after training the reflected signal eliminator of the receiving end, the receiving end feeds back the training sequence to the transmitting end;
step D, the transmitting end receives the training sequence and completes the training process of the bidirectional transmission wired communication system receiver, which specifically comprises the following steps:
step D1, the transmitting terminal detects the training sequence fed back by the receiving terminal, and trains the receiving equalizer of the transmitting terminal according to the training sequence;
and D2, finishing the training process of the bidirectional transmission wired communication system receiver after the reflected signal eliminator of the receiving end and the receiving equalizer of the transmitting end are trained.
Through the above embodiment, as shown in fig. 2, step a, i.e., line connection detection, is added before the training process specified by the bidirectional transmission wired communication system standard, and only after step a determines that the line has been connected and well matched, the transmitting end will start step B, i.e., the transmitting end will start training the local reflected signal canceller, while the training process of the receiving end is completely consistent with the training process of the receiving end specified by the bidirectional transmission wired communication system standard, and the receiving end does not have any perception on the line connection detection of step a, which will not cause any problem of compatibility.
Further, step B, step C, step D are in a progressive relationship, step C is triggered only after step B is completed, step D is further triggered after step C is completed, when step A, B, C, D is completed, the reflected signal cancellers and the receiving equalizers of the transmitting end and the receiving end both work normally, the reflected signal cancellers cancel the reflected signals, and the receiving equalizers compensate for channel distortion, so that the receiving end can correctly receive the information sent by the transmitting end.
Furthermore, the line connection detection in the step A does not need to use an additional matching detection circuit, and the method is simple and beneficial to implementation and saves cost.
In a preferred embodiment, the signal energy between the transmitting end and the receiving end is detected when a good line connection is established between the transmitting end and the receiving end in advance, and an energy threshold is set according to the detection result; and
when a good line connection is established between the transmitting terminal and the receiving terminal, a jump value of signal energy between the transmitting terminal and the receiving terminal is detected in advance, and a jump threshold is set according to a detection result.
Specifically, according to the method of adc (analog-to-digital converter) sampling square accumulation to obtain a stable and reliable energy prediction value, the calculation formula is as follows:
wherein the content of the first and second substances,
x (i) is the sampling value of the ith analog-to-digital converter, k is the serial number of the signal energy statistic value, and N is the number of sampling values of single signal energy statistic.
In this embodiment, 100 sets of analog-to-digital converter sampling values are counted, k is any integer within 1 to 100, and 100 sets of signal energy statistical values E when the line connection is good are obtained through the above calculation formulacon(1) To Econ(100) Taking the average value to obtain the predicted value E of the signal energy when the line connection is goodcon(ii) a Respectively obtaining 100 groups of signal energy statistical values E when the lines are not connected through the calculation formuladiscon(1) To Ediscon(100) Taking the average value to obtain the predicted value E of the signal energy when the line is not connecteddisconThen, the energy threshold E is calculated by the following formulathresComprises the following steps:
Ethres=(Econ+Ediscon)/2
further, the predicted value E of the signal energy when the connection is good through the lineconPredicted value E of signal energy when line is disconnecteddisconCalculating to obtain the jump threshold E according to the following formulathres_jumpComprises the following steps:
Ethres_jump=2*(Econ/Ediscon)
in a preferred embodiment, step a specifically includes:
a1, counting the signal energy in a preset time period, and calculating to obtain a predicted value E (k) of the signal energy according to the counting result;
step A2, predicting values E (k) and energy gateLimit of EthresComparing the jump state of the predicted value E (k) with a jump threshold Ethres_jumpAnd (3) comparison:
if the predicted value E (k) is lower than the energy threshold EthresOr the jump state of the predicted value E (k) is lower than the jump threshold Ethres_jumpJudging that the line connection between the transmitting end and the receiving end is established;
if the predicted value E (k) is not lower than the energy threshold EthresAnd the jump state of the predicted value E (k) is not lower than the jump threshold Ethres_jumpIf yes, it is determined that the line connection between the transmitting end and the receiving end is not established.
Specifically, according to the method of adding up the adc samples by square to obtain the predicted value e (k) of the signal energy, the calculation formula is as follows:
wherein the content of the first and second substances,
x (i) is the sampling value of the ith analog-to-digital converter, k is the serial number of the signal energy statistic value, and N is the number of sampling values of single signal energy statistic.
The jump state of the predicted value E (k) is further calculated according to the following formula:
E(k)/E(k-2)
further, the preset value E (k) and the energy threshold E are comparedthresIn comparison, the indication of line connection can be expressed by the following formula:
connect_flag=(E(k)<Ethres)
the jumping state E (k)/E (k-2) of the preset value and a jumping threshold Ethres_jumpIn comparison, the indication of line connection can be expressed by the following formula:
connect_flag_jump=(E(k)/E(k-2)<Ethres_jump)
specifically, the two determination methods can be combined to improve the probability of successful detection, and if any flag in the two formulas of the line connection is established, the line connection is determined to be successful, that is, the preset value is lower than the energy threshold or the jump state of the preset value is lower than the jump threshold, the line connection can be determined to be successful.
Further, the premise of the transmitting end in the step B transmitting the training sequence training reflected signal canceller is that the line between the transmitting end and the receiving end is successfully connected, the step a is added before the step B, and if the step a determines that the line is successfully connected, the transmitting end transmits the training sequence; if the step A judges that the line is not matched well or is in an open circuit state, the step B cannot be carried out, namely the transmitting end cannot transmit the training sequence.
The technical scheme of the invention has the beneficial effects that: the method for detecting the line connection does not need to use an additional matching detection circuit, is simple and beneficial to implementation, saves cost, and does not cause any problem of compatibility.
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.