Summary of the invention
The purpose of this invention is to provide a kind of self-adapted adjustment system and method for low-voltage powerline carrier communication, the key parameter of power line spread spectrum carrier communication is adjusted automatically,, reduce the error rate to improve the power line carrier communication reliability.
For achieving the above object, technical scheme of the present invention is as follows: a kind of self-adapted adjustment system of low voltage power line carrier communication, it is characterized in that, comprising: the input signal conditioning module converts input signal to standard signal that collecting device can be discerned by operations such as amplification, filtering; Sampling and filtration module will the time be gone up, continuous analog signal all on the amplitude, and the time that converts to is gone up continuous discrete analog signal on discrete, the amplitude, and carries out digital Filtering Processing; The link-quality detection module detects current communication link quality, and testing result is input to Adaptive adjusting algorithm; The signal strength detection module detects the signal strength signal intensity under the current environment, and testing result is input to Adaptive adjusting algorithm; Comprehensive error detection modules detects parameter such as the final error rate, communication success rate in the current communication system, and testing result is input to the Adaptive adjusting algorithm module; The Adaptive adjusting algorithm module, according to the link-quality that dynamically detects, signal strength signal intensity, these parameters of composition error, Automatic Optimal is adjusted the threshold value of symbol judgement; And the symbol judgement module, according to detected signal, the combined symbol decision threshold rules out traffic symbols.
Above-mentioned Adaptive adjusting algorithm module comprises: fuzzy normalization module, the detected unit different data of dimension are converted to nondimensional data, and carry out Fuzzy processing simultaneously; The fuzzy rule module comprises a series of fuzzy inference rules, for the inference machine module provides the reasoning foundation; The inference machine module is carried out fuzzy reasoning according to fuzzy rule, determines The reasoning results, i.e. the fuzzy language value of optimum decision threshold value adjustment amount; Decision-making decision threshold module, the fuzzy language value of the decision threshold adjustment amount that inference machine is definite carries out the defuzzification processing, but is transformed into the symbol judgement threshold value of practical application.
A kind of self-adapting regulation method of low voltage power line carrier communication is characterized in that, comprising: (1) converts input signal to standard signal that collecting device can be discerned by operations such as amplification, filtering; (2) will the time go up, all continuous standard signal on the amplitude, the time that converts to is gone up continuous discrete analog signal on discrete, the amplitude, and carries out digital Filtering Processing; (3) according to detected signal, the combined symbol decision threshold rules out communications data symbols; Wherein, by detecting the signal strength signal intensity under current communication link quality, the current environment, the composition error in the current communication system, and testing result is input to Adaptive adjusting algorithm, Automatic Optimal is adjusted the threshold value of symbol judgement.
Self-adapted adjustment system and method that the present invention proposes, parameters such as link-quality, signal strength signal intensity and comprehensive mistake by the check communication system, from motion tracking and adjust the spread spectrum communication decision threshold, make communication system performance reach optimum, the success rate of promptly communicating by letter is issued to peak at the work at present environment.Solve the not high problem of carrier wave spread spectrum communication communication success rate, improved the communication success rate.
Embodiment
As shown in Figure 1, the self-adapted adjustment system of the low voltage power line carrier communication that present embodiment provides comprises seven functional modules, illustrates respectively below in conjunction with accompanying drawing.
The input signal conditioning module converts input signal to standard signal that collecting device (AD converting unit) can be discerned by amplification, filtering operation; This functional module is realized by hardware circuit, finishes the signal condition function by integrated transporting discharging, RC bandwidth-limited circuit.Fig. 2 a is the input signal schematic diagram, and Fig. 2 b is through the standard signal schematic diagram after amplification, the Filtering Processing.
Sampling and filtration module, with the above-mentioned time go up, all continuous standard signal on the amplitude, the time that converts to is gone up continuous discrete analog signal on discrete, the amplitude, and carries out digital Filtering Processing.Fig. 3 a is an analog signal, and Fig. 3 b is the discrete analog signal behind the equal interval sampling.According to nyquist sampling theorem, sample frequency will be the twice of signal highest frequency at least, and the present invention adopts sampling of 4 frequencys multiplication and Tchebyshev band pass filter to carry out digital filtering in the specific implementation.
The link-quality detection module detects current communication link quality, and testing result is input to Adaptive adjusting algorithm; Link-quality detects and comprises three steps: digital frequency discrimination, digital demodulation, related operation, the related operation result is link-quality.
The signal strength detection module detects the signal strength signal intensity under the current environment, and testing result is input to Adaptive adjusting algorithm; Signal strength detection adopts sliding window formula computational methods, and the data that sample by the time integration, are promptly obtained current demand signal intensity.
Comprehensive error detection modules detects the comprehensive mistake of current communication system, and comprehensive mistake comprises the error rate and communication success rate in the present embodiment, and testing result is input to the Adaptive adjusting algorithm module.The error rate detects by the method for code element coupling, i.e. the code element matching rate; The communication success rate detects by frame check, if frame check mistake or the imperfect then communication failure of frame are once, otherwise then communicates by letter successfully once, and number of communications in statistics a period of time and communication number of success, and then calculate the communication success rate.Take all factors into consideration the error rate and communication success rate, give the error rate and the weight of success rate of communicating by letter respectively, promptly obtain comprehensive error rate.
The Adaptive adjusting algorithm module, according to the link-quality that dynamically detects, signal strength signal intensity, comprehensive these parameters of mistake, Automatic Optimal is adjusted the threshold value of symbol judgement.
The symbol judgement module, according to detected signal, the combined symbol decision threshold rules out traffic symbols.
As shown in Figure 4, in the present embodiment, the Adaptive adjusting algorithm module comprises four submodules, describes in detail respectively below.
Fuzzy normalization module:, carry out Fuzzy processing simultaneously, so that carry out follow-up fuzzy reasoning because the unit dimension difference of detected data need be converted to nondimensional data.Following normalization formula is adopted in the normalization of data, and normalization is in the scope of [1 1]:
Wherein, Y is an input variable, and [a, b] is the range ability of Y, and y is the output of normalization.
Data after the normalization will be carried out Fuzzy processing, divide according to each fuzzy class that detects data (link-quality, signal strength signal intensity, composition error) respectively, obtain the fuzzy language value E of each data volume respectively
LQU, E
RSSI, E
FCSDivide no aliasing, no neutral gear for the fuzzy domain that makes variable Y in addition, zero span is divided and will be guaranteed control precision simultaneously, and present embodiment obfuscation rule is as follows: fuzzy class is divided and is adopted inhomogeneous stepping, is divided into 7 class.And design zero span interval value minimum, along with class increases, corresponding interval value strengthens successively.
In the following formula: sgn (y) is the symbol of peek value y.
The fuzzy rule module: comprising a series of fuzzy inference rules, for inference machine provides the reasoning foundation, is the core of Adaptive adjusting algorithm; Fuzzy control rule is the foundation of fuzzy control, and its form is as follows: 1 AND condition 2...AND condition n THEN conclusion or the action of IF condition.
The fuzzy rule that present embodiment adopted includes three conditions, is respectively link-quality condition, signal strength conditions and composition error condition, the fuzzy language value E that the conclusion of fuzzy rule is adjusted for the symbol judgement threshold value
ValList a rule below: IF E
FCS=0 AND E
LQU=-2 AND E
RSSI=-1 THEN E
Val=-2; With E
FCS=0 o'clock series of rules is summarised in together, has just obtained E as shown in the table
FCS=0 o'clock, by E
RSSIAnd E
LQUInfer E
ValInference rule.E is worked as in same also can putting in order out
FCSInference rule during for other numerical value.
Inference machine module: carry out the fuzzy reasoning computing according to fuzzy rule, determine the fuzzy language value of the adjustment amount of The reasoning results (being the optimum decision threshold value); Decision-making decision threshold module: the fuzzy language value that inference machine is determined carries out the defuzzification processing, but is transformed into the symbol judgement threshold value of practical application.The process of defuzzification adopts following formula:
In the following formula: V
N+1: the symbol judgement threshold value V when next time adjudicating
N: the symbol judgement threshold value V during this judgement
T: symbol judgement upper threshold V
B: symbol judgement threshold value lower limit V
P: the adjustment step-length E of symbol judgement threshold value
Val: the The reasoning results of inference machine output, the fuzzy class of decision threshold, span [3,3] E
MAX: the fuzzy class maximum of decision threshold, get among the present invention and illustrate above-mentioned adaptive fuzzy adjustment algorithm below " 3 ".
With the link-quality is example explanation normalization and fuzzification process.The span of supposing link-quality is [10 60], i.e. a=10, b=60.Certain detected link-quality of the moment is 45, promptly imports Y=45, and this moment, the normalization of link-quality was exported:
So the fuzzy language value of link-quality is:
The following describes fuzzy reasoning process.Suppose to obtain the fuzzy language value of link-quality, signal strength signal intensity, three data of composition error, numerical value is as follows respectively: E
LQU=2, E
PSSI=1, E
FCS=0; By fuzzy inference rule, promptly look into E
FCS=0 pairing fuzzy reasoning table gets the fuzzy language value that decision threshold is adjusted: E
Val=2.
The following describes the defuzzification process.Suppose that corresponding data is as follows: the symbol judgement threshold value V during this judgement
N=56; Symbol judgement upper threshold V
T=70; Symbol judgement threshold value lower limit V
B=50; The adjustment step-length V of symbol judgement threshold value
P=3; Get by the defuzzification formula:
Promptly obtain optimum decision threshold value V next time
N+1=58.
If above-mentioned defuzzification formula obtains optimum decision threshold value V
N+1〉=V
T, then get V
N+1=V
T=70, if above-mentioned defuzzification formula obtains optimum decision threshold value V
N+1≤ V
B, then get V
N+1=V
B=50.
Above embodiment only is fully open unrestricted the present invention, for example, three features that the foregoing description is selected: the composition error in the signal strength signal intensity under current communication link quality, the current environment, the current communication system, only think and necessary and important feature should not limit the feature that adds other for present embodiment; In like manner, described comprehensive mistake should not limit the factor that also has other yet except that comprising the error rate and communication success rate, can depend on the circumstances; In addition, the setting of the parameter in the specific algorithm, threshold value, condition only is the preferred embodiment under the application-specific.So, replace based on any non-creativeness of keynote idea of the present invention, should belong to the scope that the present invention discloses.