The utility model content
In view of this, the utility model provides a kind of self-adaptive electric power circuit carrier communication apparatus based on OFDM, overcomes the problem that frequency selectivity disturbs.
For this reason, the utility model embodiment adopts following technical scheme:
A kind of self-adaptive electric power wire carrier wave communication device, comprise a test transmitting terminal and a test receiving terminal and other carrier communication apparatus in the electric power networks, the described conduct test receiving terminal that installs receives the timing of test transmitting terminal to the test frame of the test current power line carrier signal quality of the whole network transmission, described device comprises coupling unit, electricity tunable front end transmitting-receiving analog circuit, modulator-demodulator and MCU, also comprise frequency selector and relevant comparator, described frequency selector is under MCU control, provide reference frequency to modulator-demodulator, the orthogonal sub-carriers that described relevant comparator is used for that described modulator-demodulator is produced is carried out convolution algorithm with the reception signal that is superimposed with orthogonal sub-carriers respectively and is compared, the as a comparison result's output of smaller value, become the reference value of current demand signal quality, when described reference value comes from the work at present frequency, if the signal quality reference value is less than the threshold value of setting, described test receiving terminal MCU initiates to change the request of the whole network carrier communication frequency to test transmitting terminal MCU; When reference value comes from the different operating test frequency of power line carrier, choose the corresponding frequency of maximum of signal quality reference value as the optimization frequency.
In whole electrical network, only has just response test frame of test receiving terminal, the order of the switching electrical network orthogonal sub-carriers communication frequency that other carrier communication apparatus response test transmitting terminal sends.
The test transmitting terminal regularly sends the test frame of test current power line carrier signal quality to the whole network, this test frame frequency is the operating frequency under the normal operating conditions before the worker, and its modulation signal is permanent ' 1 ' sequence.
If the test frame frequency is the work at present frequency, so described signal quality reference value will be made comparisons with default thresholding, if less than default thresholding, the test receiving terminal initiates to change the request of the whole network carrier communication frequency to transmitting terminal.
If described test transmitting terminal is received the request of change the whole network carrier communication frequency of test receiving terminal response, then test transmitting terminal by the rule of making an appointment in advance, send successively the test synchronization preamble, the test frequency sequence.
Described test receiving terminal prepares to receive synchronization preamble, keep synchronously with the test transmitting terminal, then receive successively the test frequency of different orthogonal subcarrier, export the signal quality reference value of different test frequency points by relevant comparator, and be stored in the buffering area, determine its corresponding optimization Frequency point according to the maximum in the signal quality reference value in the buffering area, and send the order that the whole network power line carrier communication frequency is switched to described optimization Frequency point.
Can use if the test receiving terminal, then represents current carrier frequency less than not sending the request that changes the whole network carrier communication frequency to the test transmitting terminal, keep current operating frequency.
Technique effect for technique scheme is analyzed as follows:
As seen, in the communication plan that the utility model provides, under normal circumstances, carrier module disturbs minimum frequency as carrier wave with frequency-selecting in the channel, because the different period, different electricity consumption situations is arranged, cause load variations, electric power environmental changes, and frequency-selecting is disturbed also and changed, so system all detects current optimization frequency at set intervals, attempts to switch on the optimization frequency and works.Arrive if detect the channel quality time, and the statistical result showed distorted signals of the relevant comparator output of receiving terminal, just next optimum frequency is sought in request.Otherwise or work with the primary carrier frequency.By the lead code synchronization mechanism, the sending and receiving end begins the subcarrier of transmitting-receiving frequency from 60KHZ to 150KHZ, and last MCU determines current optimized Frequency point according to statistics, and switches to the work of optimization Frequency point, turns back to normal work.
The utility model carries out correlation analysis by increase frequency selector and relevant comparator in existing ofdm communication device to the quality of current demand signal, if determine distorted signals, then Real time request changes frequency, has realized carrier adaptive.Especially, start the lead code synchronization mechanism, receiving terminal is determined the optimization frequency according to the ASSOCIATE STATISTICS result, as the work at present frequency.
The utility model overcome the sub-carrier frequencies that exists in the prior art fix and do not have self-adaptive electric power thread environment (variation of power load, electrical appliance etc.) thus the problem of tightization, communication system performance reduction, waste bandwidth is disturbed in the frequency-selecting that causes.
The device that the utility model provides compared with prior art, has improved the robustness of ofdm communication system, robustness; Reach the advantage that the contrary frequency selectivity is disturbed, reduced the error rate of communication system.
Embodiment
The utility model is determined the optimization Frequency point by correlation analysis in existing communicator based on the OFDM technology, thereby realizes the self adaptation of power line carrier.
In whole electrical network, comprise several carrier communication apparatus, wherein a unique device has the function of test channel quality concurrently, and this device is as the test transmitting terminal, periodically send the test frame of test current power line carrier signal quality to the whole network, for example test frame is complete ' 1 ' frame data.Similarly, in the described carrier communication apparatus of whole electrical network, wherein a unique device has the function of test channel quality concurrently, this device is as the test receiving terminal, only has just response test frame of test receiving terminal, the order of the switching electrical network orthogonal sub-carriers communication frequency that other carrier communication apparatus response test transmitting terminal sends.
The below is described in detail as follows internal structure and the function of test receiving terminal communicator.
Referring to Fig. 1, be the utility model self-adaptive electric power wire carrier wave communication device structural representation.
This device comprises coupling unit 10, electric tunable front end transmitting-receiving analog circuit 20, modulator-demodulator 30, MCU 40, and also comprises frequency selector 50 and relevant comparator 60.Wherein, frequency selector 50 is modules that new especially adds to realize the carrier adaptive function with relevant comparator 60.
The below is described below the annexation between modules function and the module:
Coupling unit 10, the carrier signal in order on the coupling electrical power line namely is coupled to power line to subcarrier, or from power line coupling carrier signal to carrier module.
Electricity tunable front end transmitting-receiving analog circuit 20, be connected with coupling unit 10, modulator-demodulator 30, MCU 40, carry out filtering in order to the power line carrier signal that amplifies the power line carrier signal after modulating or coupling before the demodulation is come in, wherein the filtering parameter of electric tunable front end transmitting-receiving analog circuit 20 is controlled by MCU.
Modulator-demodulator 30, with front end transmitting-receiving analog circuit 20, MCU 40 links to each other, and is used for the parallel digital signal after MCU string and the conversion is modulated to orthogonal sub-carriers, and passes to the transmitting-receiving analog circuit, finally enters electrical network by coupling unit; The signal of orthogonal sub-carriers that perhaps obtained the stack transmit from the transmitting-receiving analogue circuit from electrical network, after the demodulation, parallel-serial conversion is given MCU again.
MCU 40, and with modulator-demodulator 30, frequency selector 50, electric tunable front end transmitting-receiving analogue circuit 20 links to each other, and as the data operation processing and exchanging center of system, the switch test frequency is adjusted electric adjustable end transmitting-receiving analogue circuit parameter.
Frequency selector 50 is used for selecting reference frequency to offer modulator-demodulator 30 under MCU control, that is, frequency selector 50 is subjected to the control of MCU 40, is provided for modulating with current demand signal or the reference frequency of demodulation to modulator-demodulator 30.
Relevant comparator 60, be used for orthogonal sub-carriers that frequency selector 50 is produced by one road carrier wave, 90 degree phase shifts wherein and carry out convolution algorithm and relatively with the reception signal that is superimposed with orthogonal sub-carriers respectively, smaller comparative result offers MCU 40 as the reference value of current demand signal quality.When reference value comes from current normal working frequency, and the frame of receiving is during for complete ' 1 ' test frame, illustrative system is in the current operating frequency of consulting reliable stage whether, this moment, reference value compared with the test thresholding, if signal quality is bad, MCU 40 requests change the work at present frequency of the whole network carrier module.When reference value came from different test frequencies, illustrative system had entered the selection optimization frequency stage, and it is the optimization frequency that system chooses the corresponding test frequency of maximum reference value, finally broadcasted to the whole network carrier module.
As seen, the utility model compared with the prior art, many frequency selector 50 and relevant comparators 60 on the hardware disturb in order to the frequency selectivity that resists power line carrier respectively and lock on the current carrier communication circuit optimization frequency band.The span of frequency selector 50 be from 60K to 150K between, carrier wave input as modulator-demodulator 30, the orthogonal sub-carriers convolution output of modulator-demodulator 30 is as the input of relevant comparator 60, the output of relevant comparator 60 is that the orthogonal sub-carriers convolution is exported smaller value as the signal quality reference value, and the sample of communication system signal quality is then added up in the output of relevant comparator 60 as MCU.
The logic theory that the frequency-selecting of the utility model adaptive channel is disturbed as shown in Figure 2, and is except frequency selector and relevant comparator, consistent with traditional modulation demodulation system based on OFDM.Arrive when the time of detecting the channel communication quality, frequency selector outgoing carrier frequency is inputted as a road of multiplier from 60KHZ to 150KHZ successively, frequency interval is 10KHZ, and each frequency produces the convolution that 32 complete periodic waveforms are used for modulator-demodulator at power line channel.32 orthogonal sub-carriers signal convolution results of each frequency can be input to relevant comparator, and relevant comparator becomes the sample that MCU adds up this frequency signal quality to the conduct output that the signal correction coefficients comparison is little in the orthogonal sub-carriers.
With reference to figure 3, the self-adaptive electric power line carrier communication method that the utility model provides may further comprise the steps:
100: all carrier modules on the whole electrical network work on the current optimization work frequency.
200: whether the detection signal quality is overtime, and namely system detects communication channel time is up and do not have, if the time arrives, then carries out 300, otherwise returns 100.
300: transmitting-receiving based on the test frame of work at present frequency wherein modulation signal be the sequence of perseverance ' 1 ', produce the frame of 32 complete orthogonal sub-carriers period measuring signal qualitys.
400: whether the output of the relevant comparator of test receiving terminal is lower than default thresholding, if carry out 500, otherwise return 100.
500: the request of test receiving terminal changes the operating frequency of power line orthogonal sub-carriers communication in the electrical network.
600: whether the test transmitting terminal response request? if carry out 700, otherwise return 500.
700: test receiving terminal synchronously and monitor whole subcarrier channel communication quality.
The specific operation process of this step 700 is:
The test transmitting terminal sends successively the synchronization preamble frequency and is used for test frequency by the order of acquiescence; Each Frequency point is modulated into orthogonal sub-carriers, is coupled to electrical network after the stack;
The test receiving terminal successively by the synchronization preamble frequency, produces corresponding orthogonal sub-carriers with test frequency by the order of acquiescence, has the signal of this orthogonal sub-carriers to make convolution algorithm with the aliasing that receives respectively;
The test receiving terminal is stored in buffering area with the signal quality reference value of the relevant comparator output of all Frequency points;
The test receiving terminal is determined the optimization Frequency point according to buffer contents.
800: the test receiving terminal is announced current optimization Frequency point to the whole network, and sends the order that the whole network power line carrier communication frequency is switched to described optimization Frequency point.
900: all power line carrier modules, receive switch the power line carrier communication frequency order after, all switch to described optimal frequency point.
As seen, in the communication plan that the utility model provides, under normal circumstances, carrier module disturbs minimum frequency as carrier wave with frequency-selecting in the channel, because the different period, different electricity consumption situations is arranged, cause load variations, electric power environmental changes, and frequency-selecting is disturbed also and changed, so system all detects current optimization frequency at set intervals, attempts to switch on the optimization frequency and works.Arrive if detect the channel quality time, and the statistical result showed distorted signals of the relevant comparator output of receiving terminal, just next optimum frequency is sought in request.Otherwise or work with the primary carrier frequency.By the lead code synchronization mechanism, the sending and receiving end begins the subcarrier of transmitting-receiving frequency from 60KHZ to 150KHZ, and last MCU determines current optimized Frequency point according to statistics, and switches to the work of optimization Frequency point, turns back to normal work.
The utility model carries out correlation analysis by increase frequency selector and relevant comparator in existing ofdm communication device to the quality of current demand signal, if determine distorted signals, then Real time request changes frequency, has realized carrier adaptive.Especially, start the lead code synchronization mechanism, receiving terminal is determined the optimization frequency according to the ASSOCIATE STATISTICS result, as the work at present frequency.
The utility model overcome the sub-carrier frequencies that exists in the prior art fix and do not have self-adaptive electric power thread environment (variation of power load, electrical appliance etc.) thus the problem of tightization, communication system performance reduction, waste bandwidth is disturbed in the frequency-selecting that causes.
The device that the utility model provides compared with prior art, has improved the robustness of ofdm communication system, robustness; Reach the advantage that the contrary frequency selectivity is disturbed, reduced the error rate of communication system.
The above only is preferred implementation of the present utility model; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the utility model principle; can also make some improvements and modifications, these improvements and modifications also should be considered as protection range of the present utility model.