Summary of the invention
In view of this, the object of the present invention is to provide the code length adaptive spread spectrum modulator approach in a kind of power line carrier kilowatt meter reading-out system, this method reduces bandwidth waste when reliable communication can be provided.
In order to achieve the above object, the invention provides the code length adaptive spread spectrum modulator approach in a kind of power line carrier kilowatt meter reading-out system, described power line carrier kilowatt meter reading-out system comprises concentrator, meter reading terminal; This method may further comprise the steps:
A, when concentrator need be gathered the data message of meter reading terminal, generate data request information, select spreading code described meter reading terminal;
B, concentrator use the spreading code of selecting that described data request information is carried out band spectrum modulation, and the data request information after the band spectrum modulation sent to described meter reading terminal, judge whether in maximum response time, to receive receiveing the response of described meter reading terminal, if, then going to step C carries out, otherwise
During the length of the longest spreading code in the default a plurality of different length spreading codes of being shorter in length than of the employed spreading code of current transmission data request information, go to step D and carry out, otherwise, go to step e and carry out;
C, concentrator carry out demodulation with the spreading code of selecting to described receiveing the response, and receiveing the response after the demodulation handled, and finish this data acquisition;
D, concentrator are selected longer spreading code, return step B and carry out;
E, this data acquisition failure, the concentrator processing of failing.
The described concentrator of step C carries out further comprising before the demodulation to described receiveing the response with the spreading code of selecting: concentrator is recorded as the employed spreading code of current transmission data request information the spreading code of the last use when communicating by letter with described meter reading terminal;
The method of the described selection spreading code of steps A is: judge whether concentrator is to communicate by letter first with described meter reading terminal, if then select the short spreading code in the spreading code of default a plurality of different lengths; Otherwise, the spreading code that concentrator the last time of selection record uses when communicating by letter with described meter reading terminal.
Set in advance signal-noise ratio threshold;
The described concentrator of step C is separated timing and is further comprised described receiveing the response with the spreading code of selecting, and judges the signal to noise ratio of described echo message, and described signal to noise ratio record is the last signal to noise ratio of receiveing the response that receives described meter reading terminal;
The concentrator of described selection record is the last when communicating by letter with described meter reading terminal, and the method for the spreading code of use is: whether the signal to noise ratio when concentrator the last time of judging described record receives receiveing the response of described meter reading terminal is less than signal-noise ratio threshold, if, the spreading code that uses when then concentrator the last time of selection record communicates by letter with described meter reading terminal, otherwise, the spreading code of use is the short spreading code in a plurality of different length spreading codes of presetting if the concentrator of described record is the last when communicating by letter with described meter reading terminal, then select this short spreading code, if the spreading code that the concentrator of described record is the last to be used when communicating by letter with described meter reading terminal is not the short spreading code in a plurality of different length spreading codes of presetting, then select the spreading code of the spreading code weak point of use when communicating by letter with described meter reading terminal than the concentrator of described record is the last.
Concentrator is stored the address information tabulation of all meter reading terminals under its control in advance, if concentrator was communicated by letter with any one meter reading terminal wherein, then described address information tabulation comprises also that concentrator is the last when communicating by letter with this meter reading terminal employed spreading code, concentrator the last time receives the signal to noise ratio of receiveing the response of this meter reading terminal;
Describedly judge whether concentrator is that method for communicating is first with described meter reading terminal: in the address information tabulation, search employed spreading code when whether having that concentrator is the last communicates by letter with this meter reading terminal according to the address information of described meter reading terminal, if have, then not to communicate by letter first, otherwise, be to communicate by letter first.
The method of the spreading code that the spreading code that uses when described selection is communicated by letter with described meter reading terminal than the concentrator of described record is the last is short is: if the spreading code length of current use is 2
n-1, then n is deducted 1, the length of longer spreading code is 2
N-1-1; The length of the more short spreading code of described selection is not shorter than the length of the short spreading code in default a plurality of different length spreading codes;
The method of the longer spreading code of the described selection of step D is: if the spreading code length of current use is 2
n-1, then n is added 1, the length of longer spreading code is 2
N+1-1; The length of the longer spreading code of described selection is no longer than the length of the longest spreading code in default a plurality of different length spreading codes.
Described meter reading terminal sets in advance the spreading code of a plurality of different lengths, and the spreading code of a plurality of different lengths that the spreading code of described default a plurality of different lengths and described concentrator are default is identical;
The data request information of the described concentrator of step B after with band spectrum modulation sends to after the described meter reading terminal, judges further to comprise before determining to receive the receiveing the response of described meter reading terminal:
B0, described meter reading terminal continue the carrier signal of the spreading code of the default a plurality of different lengths of detection, if detect the data request information carrier signal that concentrator is sent, then this data request information carrier signal is carried out synchronous demodulation, demodulate data request information and record employed spreading code when detecting described data request information, go to step B1 and carry out;
B1, described meter reading terminal generate according to described data request information and receive the response, and service recorder detect described data request information the time employed spreading code described receiveing the response carried out sending to concentrator after the band spectrum modulation.
The described meter reading terminal of step B1 generates to receive the response according to described data request information and further comprises before: whether the destination address of judging described data request information is this meter reading terminal, if not, then return step B0 and carry out.
The present invention also provides the concentrator in a kind of power line carrier kilowatt meter reading-out system, and this concentrator comprises administration module, communication module; Wherein,
Described administration module when being used for concentrator at its place and need carrying out data acquisition to meter reading terminal, generates described meter reading terminal data request information, and described data request information is sent to communication module; When being used to receive receiveing the response after the demodulation that communication module sends, receiveing the response after the demodulation handled; When being used to receive the data acquisition failed message that communication module sends, the processing of failing.
Described communication module is used to set in advance spreading code, the maximum response time of a plurality of different lengths; Be used for when receiving the data request information that administration module sends, selecting spreading code, use described spreading code that described data request information is carried out band spectrum modulation and sent to described meter reading terminal; When being used in maximum response time, receiving the receiveing the response of described meter reading terminal, described receiveing the response carried out synchronous demodulation, receiveing the response after the demodulation sent to administration module; Be used in maximum response time, not receiving receiveing the response and the spreading code of current use when being shorter than the longest spreading code of spreading code of default a plurality of different lengths of described meter reading terminal, the spreading code that selection is longer than the spreading code of described current use uses described longer spreading code that described data request information is carried out band spectrum modulation and sent to described meter reading terminal; Be used in maximum response time, not receiving receiveing the response and the spreading code of current use when being the longest spreading code of spreading code of a plurality of different lengths of presetting of described meter reading terminal, send the data acquisition failed message to administration module.
Described communication module comprises memory module, modulation module, spreading code administration module, spread spectrum data detection module, D/A converter module;
Described memory module; Be used to receive and preserve the data request information that administration module is sent; The data request information that is used for preserving sends to the modulation module and carries out band spectrum modulation; Be used to receive and preserve the echo message after the demodulation that the modulation module sends; Echo message after the demodulation that is used for preserving sends to administration module;
Described modulation module, the spreading code that is used to use the spreading code administration module to send will carry out band spectrum modulation from the data request information that memory module is sent, and send to D/A converter module; Be used for and carry out synchronous demodulation from the echo message that the spread spectrum data detection module is sent, and the echo message after the demodulation is sent to memory module;
Described spreading code administration module is used to set in advance spreading code, maximum response time, the signal-noise ratio threshold of a plurality of different lengths; When the concentrator that is used for its place communicates with meter reading terminal first, select the short spreading code in the spreading code of default a plurality of different lengths and the spreading code of selecting sent to the modulation module; Be used to preserve the concentrator at its place is the last when communicating with meter reading terminal employed spreading code and the last signal to noise ratio that receives the echo message of meter reading terminal; When being used for the concentrator at its place and meter reading terminal and communicating, the signal to noise ratio of echo message that receives meter reading terminal in the last time is during less than signal-noise ratio threshold, employed spreading code when selecting concentrator the last time to communicate with meter reading terminal, and the spreading code of selecting sent to the modulation module, otherwise, when employed spreading code is short spreading code in the spreading code of a plurality of different lengths of presetting if the concentrator at its place is the last when communicating with meter reading terminal, select this short spreading code, and the spreading code of selecting sent to the modulation module, employed spreading code is not the short spreading code in the spreading code of a plurality of different lengths of presetting if the concentrator at its place is the last when communicating with meter reading terminal, the shorter spreading code of employed spreading code length when then selecting to communicate with meter reading terminal than the concentrator at its place is the last, and the spreading code of selection sent to the modulation module;
Described spread spectrum data detection module is used for continue detecting the carrier signal that D/A converter module is sent, and when receiveing the response during carrier signal of detecting that meter reading terminal sends, the described carrier signal of receiveing the response is sent to the modulation module carry out synchronous demodulation;
Described D/A converter module, the data request information carrier signal that is used for modulation that the modulation module is sent is converted to analog signal and sends to meter reading terminal; The carrier signal of receiveing the response that is used for the modulation that will receive from meter reading terminal is converted to digital signal and sends to the spread spectrum data detection module.
The present invention also provides the meter reading terminal in a kind of power line carrier kilowatt meter reading-out system, and this meter reading terminal comprises communication module, administration module; Wherein,
Described communication module is used to set in advance the spreading code of a plurality of different lengths; Be used for continuing to detect the carrier signal of various spreading code length, when detecting the data request information carrier signal that concentrator sends, the data request information carrier signal is carried out synchronous demodulation, and the data after demodulating request message sent to administration module, and record employed spreading code when detecting described data request information; Be used to receive from receiveing the response that administration module is sent, employed spreading code carries out band spectrum modulation when using the described data request information of detecting of record to receiveing the response, and information after the band spectrum modulation is sent to described concentrator;
Described administration module, be used for the data request information after the demodulation that the received communication module sends, whether the destination address of judging the data request information after the described demodulation is the meter reading terminal at administration module place, if, then data are handled and generated echo message, the echo message of described generation is sent to communication module.
Described communication module comprises memory module, modulation module, spreading code administration module, spread spectrum data detection module, D/A converter module;
Described memory module; Be used to receive and preserve the echo message that administration module is sent; The echo message that is used for preserving sends to the modulation module and carries out band spectrum modulation; Be used to receive and preserve the data request information after the demodulation that the modulation module sends; Data request information after the demodulation that is used for preserving sends to administration module;
Described modulation module, be used to use that the spreading code administration module preserves when detecting the data request information carrier signal of the modulation that concentrator sends that employed spreading code will carry out band spectrum modulation from the echo message that memory module is sent, and send to D/A converter module; The data request information carrier signal that is used for the modulation that will send from the spread spectrum data detection module is carried out synchronous demodulation, and sends to memory module;
Described spreading code administration module is used to set in advance the spreading code of a plurality of different lengths; Employed spreading code when being used to preserve the spread spectrum data detection module and detecting the data request information carrier signal that concentrator sends, and the spreading code of record sent to the modulation module;
Described spread spectrum data detection module, be used for continuing to detect the carrier signal that D/A converter module is sent, when detecting the data request information carrier signal of the modulation that concentrator sends, described data request information carrier signal is sent to the modulation module carry out synchronous demodulation;
Described D/A converter module, the carrier signal of receiveing the response that is used for modulation that the modulation module is sent is converted to analog signal and sends to concentrator; The data request information carrier signal that is used for modulation that the concentrator that receives is sent is converted to digital signal and sends to the spread spectrum data detection module.
By top technical scheme as can be known, the present invention sets in advance the spreading code of a plurality of different lengths, when the concentrator image data, select short spreading code to attempt communicating with meter reading terminal, if in Preset Time, do not receive receiveing the response of meter reading terminal, then in no longer than the spreading code of default a plurality of different lengths, attempt communicating by increasing spreading code length under the situation of maximum spreading code length with meter reading terminal, if a spreading code in the spreading code of a plurality of different lengths that use is default can successfully receive receiveing the response of meter reading terminal, then communicate by letter successfully, when if concentrator reaches the longest spreading code in default a plurality of different length spreading codes in the spreading code length of selecting, still can not receive receiveing the response of meter reading terminal, then communication failure.This method of the present invention by progressively attempting increasing spreading code length, finds the mode of suitable spreading code, reduces bandwidth waste when can provide reliable communication.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
Main thought of the present invention is: when concentrator is gathered the data message of meter reading terminal at needs, at first attempt communicating by letter with meter reading terminal with short spreading code, increase the length of spreading code then gradually, can make communicate by letter with the meter reading terminal spreading code of success of concentrator up to finding, thereby when making concentrator and meter reading terminal carry out reliable communication, reduce bandwidth waste.
Referring to Fig. 1, Fig. 1 is the process chart of embodiment of the invention concentrator, may further comprise the steps:
Step 101, startup are provided with running parameter.
In this step, the running parameter of the concentrator that is set in advance by administrative staff according to actual conditions comprises: the spreading code of a plurality of different lengths, signal-noise ratio threshold, maximum response time; Wherein,
In the spreading code of a plurality of different lengths, the length of each spreading code is 2
n-1, wherein n is a natural number, supposes that the length of short spreading code in the spreading code of a plurality of different lengths is 2
x-1, the longest spreading code length is 2
y-1, then the length of the spreading code of a plurality of different lengths is respectively 2
X+1-1,2
X+2-1,2
X+3-1, and the like, up to 2
y-1; For example, the shortest spreading code length is 2
3-1, the longest spreading code length is 2
7-1, then a plurality of different length spreading codes comprise that length is respectively 2
3-1,2
4-1,2
5-1,2
6-1,2
7Five spreading codes of-1.
Signal-noise ratio threshold, being used at concentrator and meter reading terminal is not under the situation of communicating by letter first, the signal to noise ratio of receiveing the response that receives meter reading terminal when communicating by letter with meter reading terminal with the last time is compared, as determine to use the last spreading code that uses when communicating by letter with this meter reading terminal or be shorter than the last selection foundation of the spreading code of the spreading code length of use when communicating by letter with this meter reading terminal;
Maximum response time is used for concentrator after meter reading terminal sends data request information, waits for the maximum latency of receiveing the response that receives meter reading terminal;
Step 102, when concentrator will be gathered the data message of meter reading terminal, generate data request information to this meter reading terminal.
Step 103, judge whether according to the address of meter reading terminal be and the communicating by letter first of this meter reading terminal, if, then go to step 104 and carry out, otherwise, go to step 105 and carry out.
Here, stored the address information tabulation of all meter reading terminals under the concentrator control in the concentrator in advance, if concentrator was communicated by letter with any one meter reading terminal wherein, then also preserve the signal to noise ratio of receiveing the response that receives this meter reading terminal when the spreading code, the concentrator that use when concentrator is the last communicates by letter with this meter reading terminal are the last communicates by letter with this meter reading terminal in the address information tabulation; If concentrator was not communicated by letter with any one meter reading terminal wherein, or attempted communicating by letter, but communication is unsuccessful, think that then concentrator do not communicate by letter with this meter reading terminal, at this moment, the address information of having only this meter reading terminal in the address information tabulation, the spreading code information of using when not having the last time to communicate by letter and the signal to noise ratio of receiveing the response that receives this meter reading terminal with this meter reading terminal.
In this step, concentrator searches according to the address information of meter reading terminal whether the spreading code that uses when concentrator is the last communicates by letter with this meter reading terminal is arranged in the address information tabulation, if having, then concentrator is not to communicate by letter first with this meter reading terminal, otherwise, be to communicate by letter first.
Step 104, select the short spreading code in the spreading code of a plurality of different lengths set in advance, go to step 109 and carry out.
In this step,, then select the shortest spreading code in the spreading code of a plurality of different lengths set in advance, attempt modulation and send data if be to communicate by letter first between concentrator and the meter reading terminal.
Whether step 105, judgement the last time receive the signal to noise ratio of receiveing the response of this meter reading terminal less than default signal-noise ratio threshold when communicating by letter, if, then go to step 106 and carry out, otherwise, go to step 107 execution.
Whether step 106, the spreading code of judging the last use when communicating by letter with this meter reading terminal are the short spreading codes in a plurality of different length spreading codes of presetting, if then execution in step 107, otherwise execution in step 108.
Step 107, the spreading code that uses when selecting the last time to communicate by letter with this meter reading terminal go to step 109 and carry out.
In this step, if concentrator receives the signal to noise ratio of receiveing the response of this meter reading terminal when communicating by letter with this meter reading terminal is the last smaller, less than the signal-noise ratio threshold of presetting, the spreading code that uses when then selecting to continue to use the last communication, otherwise, may guarantee communication reliability.
Step 108, select a spreading code that is shorter than the last spreading code length of using when communicating by letter, go to step 109 execution with this meter reading terminal.
In this step, concentrator receives this meter reading terminal when communicating by letter with this meter reading terminal the is the last signal to noise ratio of receiveing the response is bigger, greater than default signal-noise ratio threshold, and the spreading code of use was not the short spreading code in a plurality of different length spreading codes of presetting when concentrator communicate by letter with this meter reading terminal is the last, then can select a spreading code that is shorter than the spreading code that used when communicating by letter last time, thereby reduce utilized bandwidth as much as possible.
Here, because the length of spreading code is 2
n-1, wherein, n is a natural number, so selects the method for the spreading code of a spreading code length of using when being shorter than the last communication to be: the spreading code length of using when supposing the last communication is 2
n-1, the length of then selecting of short spreading code is with 2
nN value in-1 deducts 1, and the short spreading code of also promptly selecting is 2
N-1-1, for example, the spreading code length of using during the last communication is 2
7-1, then the length of selecting here than short spreading code is 2
6-1.Here, selection be shorter than the last communication the time spreading code length used the length of spreading code be not shorter than the length of the short spreading code in default a plurality of different length spreading codes.
Step 109, concentrator carry out band spectrum modulation with the spreading code of selecting to the data request message, and the data request information after the band spectrum modulation is sent to meter reading terminal.
Step 110, concentrator detect whether receive receiveing the response of meter reading terminal in default maximum response time, if, then go to step 111 and carry out, otherwise, go to step 112 and carry out.
Here, the carrier signal of the spreading code of a plurality of different lengths that the detection that the receiver port of concentrator can continue is default, at concentrator after meter reading terminal has sent data request information, if in default maximum response time, detect receiveing the response that meter reading terminal sends, then this is communicated by letter successfully, still do not receive receiveing the response of meter reading terminal otherwise surpass default maximum response time, then this communication failure.
Step 111, the presently used spreading code of concentrator record to this meter reading terminal, use presently used spreading code to carry out the signal to noise ratio of receiveing the response of synchronous demodulation and judgement and recorder to receiveing the response to this meter reading terminal, data after demodulating is handled, gone to step 115 and carry out.
In this step, after this communicates by letter successfully, concentrator need write down presently used to this meter reading terminal spreading code, and the signal to noise ratio of receiveing the response that has received, be used for when communicating with this meter reading terminal next time, employed spreading code and the signal to noise ratio of receiveing the response that receives this meter reading terminal when communicating by letter with this meter reading terminal as the last time select spreading code that foundation is provided when communicating by letter with this meter reading terminal for next time.
Here, same as the prior art to the processing of data after demodulating, repeat no more.
Step 112, concentrator judge whether the spreading code of selecting is shorter than the longest spreading code in default a plurality of different length spreading codes, if, then go to step 113 and carry out, otherwise, go to step 114 and carry out.
In this step, behind this communication failure, concentrator determines whether also will continue to adjust spreading code length according to the spreading code length of current use, attempts once more communicating by letter with meter reading terminal.
Step 113, the longer spreading code of selection return step 109 and carry out.
Here, because the length of spreading code is 2
n-1, wherein, n is a natural number, therefore selects the method for a longer spreading code to be: the spreading code length of using when supposing the last communication is 2
n-1, then the length of the longer spreading code of Xuan Zeing is with 2
nN value in-1 adds 1, and also the longer spreading code of promptly selecting is 2
N+1-1, for example, the spreading code length of using during the last communication is 2
6-1, then the length of the longer spreading code of selecting here is 2
7-1.Here, the length of the longer spreading code of selection is no longer than the length of the longest spreading code in default a plurality of different length spreading codes.
Step 114, this sends failure, the concentrator processing of failing.
In this step, if concentrator is repeatedly attempted sending data request information and is not all received to meter reading terminal and receive the response by increasing spreading code length, if spreading code length reaches the longest spreading code length in default a plurality of different length spreading codes, still do not receive receiveing the response of meter reading terminal, then no longer continue to attempt sending data request information, but the processing of failing as the case may be, it can be the operations such as meter reading terminal of record communication failure that the failure is here handled, owing to be not the emphasis of invention, repeat no more.
Step 115, this data acquisition finish.
Here, after the data acquisition end of concentrator to this meter reading terminal, can return step 102 and continue other meter reading terminals are carried out data acquisition.
Be the handling process of concentrator side in the code length adaptive spread spectrum modulator approach in the power line carrier kilowatt meter reading-out system above, introduce the handling process of meter reading terminal below in detail.
Referring to Fig. 2, Fig. 2 is the process chart of embodiment of the invention meter reading terminal, may further comprise the steps:
Step 201, startup are provided with running parameter.
This step is only carried out when meter reading terminal initially uses, and the running parameter of the meter reading terminal that is set in advance by administrative staff according to actual conditions comprises: the spreading code of a plurality of different lengths.Here, the spreading code of a plurality of different lengths that are provided with in the spreading code of a plurality of different lengths of meter reading terminal setting and the concentrator is consistent.
Whether step 202, detection receive the data request information carrier signal that concentrator is sent, if then go to step 203 and carry out.
In this step, after meter reading terminal starts, the carrier signal of the spreading code of a plurality of different lengths that the detection that can continue sets in advance, if detect the data request information carrier signal of a spreading code modulation in the spreading code of the default a plurality of different lengths of use that concentrator sends, then 203 pairs of these data request information carrier signals of execution in step are handled, otherwise, continue the lasting carrier signal that detects the spreading code of a plurality of different lengths that set in advance.
Here, meter reading terminal carries out the detection of carrier signal with the spreading code of a plurality of different lengths that set in advance simultaneously.
Step 203, the data request information carrier signal that receives is carried out synchronous demodulation, demodulate data request information, and the employed spreading code of data request information carrier signal that arrives of recorder.
The spreading code of this place record is used for using same spreading code to carry out band spectrum modulation when the concentrator transmission is receiveed the response to receiveing the response.
Step 204, judge whether the destination address of the described data request information that receives is this meter reading terminal, if, then go to step 205 and carry out, otherwise, go to step 202 and carry out.
Step 205, generate according to data request information and to receive the response, and the spreading code of service recorder carries out band spectrum modulation to receiveing the response, and receiveing the response after the band spectrum modulation sent to concentrator, return step 202 and carry out.
The present invention also provides the concentrator in a kind of power line carrier kilowatt meter reading-out system.
Referring to Fig. 3, Fig. 3 is the structural representation of embodiment of the invention concentrator, and this concentrator comprises administration module 310, communication module 320; Wherein,
Administration module 310 when being used for concentrator at its place and need carrying out data acquisition to meter reading terminal, generates described meter reading terminal data request information, and described data request information is sent to communication module 320; When being used to receive receiveing the response after the demodulation that communication module 320 sends, receiveing the response after the demodulation handled; When being used to receive the data acquisition failed message that communication module 320 sends, the processing of failing.
Communication module 320 is used to set in advance spreading code, the maximum response time of a plurality of different lengths; Be used for when receiving the data request information that administration module 310 sends, selecting spreading code, use described spreading code that described data request information is carried out band spectrum modulation and sent to described meter reading terminal; When being used in maximum response time, receiving the receiveing the response of described meter reading terminal, described receiveing the response carried out synchronous demodulation, receiveing the response after the demodulation sent to administration module 310; Be used in maximum response time, not receiving receiveing the response and the spreading code of current use when being shorter than the longest spreading code of spreading code of default a plurality of different lengths of described meter reading terminal, the spreading code that selection is longer than the spreading code of described current use uses described longer spreading code that described data request information is carried out band spectrum modulation and sent to described meter reading terminal; Be used in maximum response time, not receiving receiveing the response and the spreading code of current use when being the longest spreading code of spreading code of a plurality of different lengths of presetting of described meter reading terminal, send the data acquisition failed message to administration module 310.
Need to prove, the administration module 310 main function realizations of being responsible for link layer, network layer, reaching the application layer contour level here, identical with the processing of prior art; And communication module 320 mainly is to be responsible for the realization of physical layer bottom function.
Described communication module 320 comprises memory module 321, modulation module 322, spreading code administration module 323, spread spectrum data detection module 324, D/A converter module 325;
Memory module 321; Be used to receive and preserve the data request information that administration module 310 is sent; The data request information that is used for preserving sends to modulation module 322 and carries out band spectrum modulation; Be used to receive and preserve the echo message after the demodulation that modulation module 322 sends; Echo message after the demodulation that is used for preserving sends to administration module 310;
Modulation module 322, the spreading code that is used to use spreading code administration module 323 to send will carry out band spectrum modulation from the data request information that memory module 321 is sent, and send to D/A converter module 325; The echo message that is used for the modulation that will send from spread spectrum data detection module 324 carries out synchronous demodulation, and the echo message after the demodulation is sent to memory module 321;
Spreading code administration module 323 is used to set in advance spreading code, maximum response time, the signal-noise ratio threshold of a plurality of different lengths; When the concentrator that is used for its place communicates with meter reading terminal first, select the short spreading code in the spreading code of default a plurality of different lengths and the spreading code of selecting sent to modulation module 322; Be used to preserve the concentrator at its place is the last when communicating with meter reading terminal employed spreading code and the last signal to noise ratio that receives the echo message of meter reading terminal; When being used for the concentrator at its place and meter reading terminal and communicating, the signal to noise ratio of echo message that receives meter reading terminal in the last time is during less than signal-noise ratio threshold, employed spreading code when selecting concentrator the last time to communicate with meter reading terminal, and the spreading code of selecting sent to modulation module 322, otherwise, when employed spreading code is short spreading code in the spreading code of a plurality of different lengths of presetting if the concentrator at its place is the last when communicating with meter reading terminal, select this short spreading code, and the spreading code of selecting sent to modulation module 322, when employed spreading code is not short spreading code in the spreading code of a plurality of different lengths of presetting if the concentrator at its place is the last when communicating with meter reading terminal, the shorter spreading code of employed spreading code length when selecting to communicate with meter reading terminal than the concentrator at its place is the last, and the spreading code of selection sent to modulation module 322;
Spread spectrum data detection module 324, be used for continuing to detect the carrier signal that D/A converter module 325 is sent, when receiveing the response during carrier signal of a spreading code modulation in the spreading code that detects the default a plurality of different lengths of use that meter reading terminal sends, the described carrier signal of receiveing the response is sent to modulation module 322 carry out synchronous demodulation;
D/A converter module 325, the data request information carrier signal that is used for modulation that modulation module 322 is sent is converted to analog signal and sends to meter reading terminal; The carrier signal of receiveing the response that is used for the modulation that will receive from meter reading terminal is converted to digital signal and sends to spread spectrum data detection module 324.
The present invention also provides the meter reading terminal in a kind of power line carrier kilowatt meter reading-out system.
Referring to Fig. 4, Fig. 4 is the structural representation of embodiment of the invention meter reading terminal, and this concentrator comprises administration module 410, communication module 420; Wherein,
Communication module 420 is used to set in advance the spreading code of a plurality of different lengths; Be used for the lasting carrier signal that detects the spreading code of default a plurality of different lengths, when detecting use that concentrator sends and use the data request information carrier signal of a spreading code modulation in the spreading code of default a plurality of different lengths, record detects the employed spreading code of described data request information carrier signal, described data request information carrier signal is carried out synchronous demodulation, and the data after demodulating request message is sent to administration module 410; Be used to receive from receiveing the response that administration module 410 is sent, employed spreading code carries out band spectrum modulation when using the described data request information of detecting of record to receiveing the response, and information after the band spectrum modulation is sent to described concentrator;
Administration module 410, be used for the data request information after the demodulation that received communication module 420 sends, whether the destination address of judging the data request information after the described demodulation is the meter reading terminal at administration module 410 places, if, then data are handled and generated echo message, the echo message of described generation is sent to communication module 420.
Described communication module 420 comprises memory module 421, modulation module 422, spreading code administration module 423, spread spectrum data detection module 424, D/A converter module 425;
Memory module 421; Be used to receive and preserve the echo message that administration module 410 is sent; The echo message that is used for preserving sends to modulation module 422 and carries out band spectrum modulation; Be used to receive and preserve the data request information after the demodulation that modulation module 422 sends; Data request information after the demodulation that is used for preserving sends to administration module 410;
Modulation module 422, be used to use that spreading code administration module 423 preserves when detecting the data request information carrier signal of the modulation that concentrator sends that employed spreading code will carry out band spectrum modulation from the echo message that memory module 421 is sent, and send to D/A converter module 425; The data request information carrier signal that is used for the modulation that will send from spread spectrum data detection module 424 is carried out synchronous demodulation, and sends to memory module 421;
Spreading code administration module 423 is used to set in advance the spreading code of a plurality of different lengths; Employed spreading code when being used to preserve spread spectrum data detection module 424 and detecting the data request information carrier signal that concentrator sends, and the spreading code of record sent to modulation module 422;
Spread spectrum data detection module 424, be used for continuing to detect the carrier signal that D/A converter module 425 is sent, when detecting the data request information carrier signal of the modulation that concentrator sends, described data request information carrier signal is sent to modulation module 422 carry out synchronous demodulation;
D/A converter module 425, the carrier signal of receiveing the response that is used for modulation that modulation module 422 is sent is converted to analog signal and sends to concentrator; The data request information carrier signal that is used for modulation that the concentrator that receives is sent is converted to digital signal and sends to spread spectrum data detection module 424.
By top embodiment as can be known, the adaptive band spectrum modulation mode of this employing spreading code length of the present invention, can be according to the present case of communication channel, Dynamic Selection spreading code length, be complementary with channel as far as possible, different spreading gain and bandwidth is provided, and the complexity of adaptation applied environment that can maximum possible has improved effective bandwidth and communication reliability greatly.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.