A kind of bifrequency power-line carrier communication method
Technical field
The present invention relates to power line carrier communication field, particularly a kind of communication means and communicator that utilizes different frequency sending and receivings.
Background technology
Power line carrier communication is by the communication mode of high pressure or low-voltage power line transmission information with high-frequency carrier signal.Traditional power line carrier device uses single frequency to communicate, and centre frequency filter circuit after selected designs as center.The shortcoming of this unifrequency system is to process co-channel interference, and on power line, common frequency-selecting decays.So-called co-channel interference refers to that interfering frequency approaches centre carrier frequency, causes filter circuit invalid.And frequency-selecting decay refers on power line that distributed inductance and capacitance parameter have formed bandreject filtering, serious to a certain frequency decay.In addition, two different unifrequency systems, owing to interconnecting, bring the difficulty in engineering also to the enforcement of power line carrier.
Summary of the invention
The present invention is directed to traditional power line carrier device at present and use single frequency to communicate, cannot process co-channel interference, and the deficiency of common frequency-selecting decay on power line, a kind of bifrequency power-line carrier communication method and communicator are provided.
The present invention for current use two frequency 270KHZ and 421KHZ comparatively widely, can accomplish and existed system compatibility especially, can be used as again switching node the unifrequency equipment of two different frequencies can be interconnected.
The present invention for the technical scheme that completes its technical purpose and adopt is: a kind of bifrequency power-line carrier communication method, and the method is selected arbitrarily in the carrier signal of two frequencies arbitrary carrier signal modulate generation modulated signal to data-signal at information source end and is sent to stay of two nights end by power line channel; Lock the carrier frequency receiving at stay of two nights end by detecting, select corresponding demodulation passage to carry out demodulation to modulated signal and obtain data-signal;
Comprise the following steps at information source end:
Select the carrier wave of arbitrary frequency, adopt selected carrier signal to modulate and produce modulated signal data-signal, and the step that modulated signal is sent by power line carrier;
Comprise the following steps at stay of two nights end:
Determine in accordance with the following methods the step of frequency of carrier signal:
A, adopt in two frequencies the band pass filter of frequency centered by any one to receive the signal in the time slot of a power line carrier power frequency zero crossing;
B, adopt the band pass filter of frequency centered by another frequency to receive the signal in the time slot of a back to back power line carrier power frequency zero crossing;
The quality of the signal that C, determining step A and step B receive, and be frequency of carrier signal by the centre frequency initial setting of the band pass filter of signal good signal quality;
Signal in the time slot of the back to back next power line carrier power frequency zero crossing of band pass filter reception of D, employing frequency centered by the frequency of carrier signal of initial setting, the signal quality that judgement receives again, as twice signal quality is all greater than predetermined threshold value, determine that this frequency is frequency of carrier signal, otherwise, turn to steps A;
Signal through band pass filter is carried out to demodulation, the step of outputting data signals.
Further, in above-mentioned bifrequency power-line carrier communication method: the carrier signal of two frequencies is used respectively 421KHZ and 270KHZ.
Further, in above-mentioned bifrequency power-line carrier communication method: described modulation system is FSK modulation.
Further, in above-mentioned bifrequency power-line carrier communication method: when the frequency of carrier signal using is during for 421KHZ, the time slot of power frequency zero crossing is that before and after zero crossing, each 1.5ms is transmission time groove, and bit rate is 13.33KHZ; When the frequency of carrier signal using is during for 270KHZ, bit rate is 20.83KHZ, and transmission means is the zero crossing transmission in each 1.512ms time slot before and after transmission continuously or zero crossing.
The present invention also provides a kind of bifrequency device for power line carrier communications, realize high-frequency power line carrier communication and low frequency power line carrier communication, comprise bifrequency dispensing device and bifrequency receiving system, comprise and receive signal(-) carrier frequency determination module at described bifrequency receiving system, described reception signal(-) carrier frequency determination module comprises by the high freguency bandpass filter centered by high-frequency of microprocessor control and the low frequency bandpass filter centered by low frequency.
Further, in above-mentioned bifrequency device for power line carrier communications: the beat frequency oscillator and the frequency mixer that also comprise the difference that produces high and low frequency in described bifrequency receiving system, the input of described frequency mixer accesses respectively low frequency power line carrier communication signal or the high-frequency power line carrier communication signal of difference frequency signal and reception, described difference frequency signal input mixer is by microprocessor control, intermediate frequency filtering and the demodulator circuit of the bifrequency receiving system described in the output termination of described frequency mixer.
Further, in above-mentioned bifrequency device for power line carrier communications: described high-frequency is 421KHz, low frequency is 270KHz.
Further, in above-mentioned bifrequency device for power line carrier communications: also comprise power line power frequency zero-crossing detection circuit, described power line power frequency zero-crossing detection circuit is connected with microprocessor.
The present invention can combine the carrier equipment of two different frequencies, because recipient can differentiate the frequency of transmit leg immediately, therefore can with original unifrequency system compatible, realize single-frequency seamlessly transitting to double frequency.The present invention adopts suitching type filter circuit, can be to two frequency filtering respectively that distance is larger, and the filter effect of single frequency is consistent with original system, need to not cover two frequencies to increase bandwidth.Use after bifrequency, system can effectively be tackled co-channel interference and frequency-selecting decay, and communication is more reliable and more stable.
Below by specific embodiment by reference to the accompanying drawings, the present invention is further detailed.
Brief description of the drawings
Accompanying drawing 1, embodiment of the present invention bifrequency dispensing device theory diagram.
Accompanying drawing 2, embodiment of the present invention bifrequency receiving system theory diagram.
Accompanying drawing 3, be embodiment of the present invention bifrequency receive signal schematic representation.
Accompanying drawing 4, be that embodiment of the present invention bifrequency receives signal spectrum figure.
Accompanying drawing 5, embodiment of the present invention bifrequency dispensing device principle sketch.
Accompanying drawing 6, embodiment of the present invention bifrequency receiving system principle sketch.
Accompanying drawing 7, embodiment of the present invention bifrequency communicator switch figure.
Mixing principle sketch in accompanying drawing 8, embodiment of the present invention bifrequency receiving system.
Embodiment
The present embodiment is the bifrequency carrier communication device of a kind of 421KHZ and 270KHz, and transmitting terminal selects arbitrary frequency carrier signal to carry out FSK modulation to data-signal, then modulated signal is sent by power line carrier; Meanwhile, confirm by detection that at receiving terminal the carrier frequency that transmitting terminal adopts is in 421KHZ or 270KHz carrier signal, and the modulated signal receiving is carried out to demodulation.
Two channels of the present embodiment use respectively 421KHZ and 270KHZ frequency.Two channels are FSK modulation system, and 421KHZ is taking each 1.5ms before and after zero crossing as transmission time groove, i.e. so-called zero passage transmission means, and bit rate is 13.33KHZ; 270KHZ is taking 3.024ms as a chip, and bit rate is 20.83KHZ, and transmission means is transmission continuously or zero crossing transmission.
Power frequency zero-crossing detection circuit provides A phase time reference for microprocessor.B phase and C phase zero crossing can be calculated by software.
Suitching type filtering adopts diverter switch SGM4717, and as shown in Fig. 5,6,7, transformer BT1/BT2 inductance value is respectively 94uH/28uH, and when corresponding 421KHZ, pairing capacitance is 1.5nF/5.1nF, when corresponding 270KHZ, and pairing capacitance 3.7nF/12.4nF.BT1 is used for accepting filter, and BT2 is used for sending filtering.
Dispensing device as shown in Figure 1 and Figure 5, the modulated carrier signal of 421KHz or 270KHz is by after a band-pass filter, send by power line carrier, as shown in Figure 1, in the present embodiment, band pass filter is by a switch control, when select be high-frequency modulated carrier signal time, utilize two electric capacity of processor MCU control parallel connection to disconnect, here, the centre frequency of band pass filter will be 421KHz, if what select is will send low-frequency signal time, MCU control switch closure, now, the centre frequency of band pass filter is 270KHz.The frequency spectrum of two kinds of signal bandpass filterings as shown in Figure 4.
As shown in Figure 5, Figure 7, when transmission, Micro-processor MCV produces square wave output SSCOUT or the SSCOUT1 of corresponding frequencies, and both transmitted powers are had any different, and software is selection intensity as required.BT2 and C26 C27 composition 421KHZ filter network, and in the time that analog switch is connected NO2 and COM2 as shown in Figure 7, increase C4 C5 composition 270KHZ filter network.BT2 filter network produces two reverse sine wave drive VT1 and VT2, sends signal to BT1 and is coupled to power line.
Equally, in receiving system, also there is the device that similarly changes band pass filter centre frequency by conversion capacitance size, as shown in Figure 2, physical circuit as shown in Figure 6, simultaneously, as shown in Figure 8, also pass through switch, the low-frequency signals receiving is carried out to mixing rate, produce the signal consistent with high-frequency signal, then carry out demodulation, while receiving low-frequency signal, it in the present embodiment, is the signal of 270KHz, need to carry out producing intermediate-freuqncy signal after mixing through the mixing chip of MC3361, here poor is 151KHz, the intermediate-freuqncy signal producing is exactly the high-frequency signal of 421KHz.Therefore, here can receive two kinds of carrier signals of 421KHz or 270KHz, if receive the signal of 270KHz, also need to produce 421KHz signal by mixing and the slip frequency signal mixing of the local 151KHz producing, whether mixing rate device adds by the output of MCU control timer realizes.If receive to be 421KHz signal MCU will control not to the slip frequency signal that adds 151KHz in frequency mixer, add the signal of 0Hz, the mixing chip of MC3361 will be only an amplifier like this, 421KHz signal be amplified, so that later demodulation.Therefore, this receiving circuit, compared with single-frequency receiver, has only increased this mixting circuit, has increased in addition one and whether select the selector switch of shunt capacitance in receiving filter, and this switch is synchronizeed with the difference signal being input in mixting circuit.
Signal frequency is confirmed the course of work: the 3ms taking A phase zero crossing as benchmark is for receiving 421KHZ, microprocessor switches the connection that disconnects COM1 and NC1, now C16 C17 is connected with BT1_6 BT1_8, composition 421KHZ frequency-selective network, MCU closes 151KHz clock simultaneously, MC3361 frequency mixer uses as amplifier, after signal is amplified, exports restituted signal from FM demodulator.Microprocessor carries out AD sampling to FSK restituted signal, detects wherein whether there is effective frame head data, if had, record is once confirmed.The 3.024ms of second zero crossing (B phase zero crossing) time slot, microprocessor switched conductive COM1 and NC1, in parallel with C16 C17 and BT1_6 BT1_8 after now C1 C2 series connection C21, composition 270KHZ frequency-selective network, MCU opens 151KHZ clock simultaneously, the work of MC3361 frequency mixer, will obtain 421kHz intermediate frequency after the mixing of 270KHZ signal, demodulation output after ceramic filter filtering.Microprocessor is sampled to restituted signal, detects and wherein whether has effective frame head data, if any once confirmation of record.The 3rd zero crossing (when C phase zero crossing), reaffirms the frequency that samples useful signal, as two frequencies have signal, the quality of signal is compared, and only the good frequency of signal quality is reaffirmed at the 3rd zero crossing.
The course of work of the present embodiment is as follows:
A kind of bifrequency power-line carrier communication method, the method can be selected arbitrarily in the carrier signal of 270KHz or two frequencies of 421KHz arbitrary carrier signal modulate generation modulated signal to data-signal at information source end and be sent to stay of two nights end by power line channel; Lock the carrier frequency receiving at stay of two nights end by detecting, select corresponding demodulation passage to carry out demodulation to modulated signal and obtain data-signal;
Comprise the following steps at information source end:
Select the carrier signal of arbitrary frequency, adopt selected carrier signal to modulate and produce modulated signal data-signal, and the step that modulated signal is sent from power line carrier power frequency zero crossing time slot;
Comprise the following steps at stay of two nights end:
1, determine in accordance with the following methods the step of frequency of carrier signal: as shown in Figure 3
A, adopt in two frequencies the band pass filter of frequency centered by any one to receive the signal in the time slot of a power line carrier power frequency zero crossing;
B, adopt the band pass filter of frequency centered by another frequency to receive the signal in the time slot of a back to back power line carrier power frequency zero crossing;
The quality of the signal that C, determining step A and step B receive, and be frequency of carrier signal by the centre frequency initial setting of the band pass filter of signal good signal quality;
Signal in the time slot of the back to back next power line carrier power frequency zero crossing of band pass filter reception of D, employing frequency centered by the frequency of carrier signal of initial setting, the signal quality that judgement receives again, as twice signal quality is all greater than predetermined threshold value, determine that this frequency is frequency of carrier signal, otherwise, turn to steps A.
2, the signal through band pass filter is carried out to demodulation, the step of output modulation signal.