Content of the invention
It is an object of the invention to provide a kind of power line carrier meter register method and system, solve present in prior art
Using the method taking turns stream process communication service successively during master-slave communication, cause the work efficiency of whole centralized meter-reading system low,
The relatively low problem of centralized meter-reading system functional reliability.
For solving above-mentioned technical problem, the present invention adopts the following technical scheme that:
A kind of power line carrier meter register method, the method comprising the steps of:
Step S1:Concentrator disposably continuously issues all collection to the multiple harvesters being attached thereto by channel and copies life
Make message;
Step S2:Each described harvester copies command message by the collection on monitor channel, receives and includes this harvester
Command message copied by the collection of local address;
Step S3:Each described harvester sends acquiring electric energy information order to the multiple intelligent electric meters being attached thereto;
Step S4:After the plurality of intelligent electric meter monitors described acquiring electric energy information order, only receive and include this intelligence
The acquiring electric energy information order of energy ammeter local address, and itself energy information data is activation of collection is given be attached thereto to adopt
Storage;
Step S5:The plurality of harvester receives the energy information data of its connected multiple intelligent electric meter, and will be described
Energy information data reports the concentrator that it is connected, and described concentrator then will be anti-for the energy information data of the plurality of harvester
Feeding system.
Further, in above-mentioned power line carrier meter register method, described step S2 includes:Concentrator monitored by each harvester
All issue collection copies in command message whether one of packet includes local address, if so, then described harvester receives
Command message copied by described collection;If it is not, being then that described harvester is not responding to.
Further, in above-mentioned power line carrier meter register method, described step S4 includes:
Each described intelligent electric meter monitor harvester all issue whether to have in acquiring electric energy information message include this
The packet of way address, if so, then described intelligent electric meter receives and processes described acquiring electric energy information order;If it is not, it is then i.e. described
Intelligent electric meter is not responding to.
Further, in above-mentioned power line carrier meter register method, described in described step S5, multiple harvesters receive its phase
The energy information data of multiple intelligent electric meters even, and described energy information data is reported concentrator that it is connected include:
During described harvester active reporting response message, first listen to whether have reported data on channel, time delay one with
The time of machine monitor channel again, if monitor channel is the free time twice in front and back, described harvester then returns response message.
Further, in above-mentioned power line carrier meter register method, in described step S5, described concentrator is to adopt described in each
The relief area of the different non-overlapping copies of storage distribution, and described concentrator is when receiving the response message of the plurality of harvester,
According to the harvester address of described response message, described response message is put in relief area each other, process and ring
Answer task, produce to receive and interrupt.
The present invention also provides a kind of power line carrier meter reading system, and including multiple harvesters, the plurality of harvester is upwards
It is connected to a concentrator, each described harvester is connected with downwards multiple intelligent electric meters, described concentrator includes:
Command message sending module copied by collection, is disposably connected by channel to the multiple harvesters being attached thereto for concentrator
Issue all collection continuously and copy command message;
Described harvester includes:
Message receiver module, copies command message for harvester each described by the collection on monitor channel, and reception comprises
Command message copied by the collection having this harvester local address;
Acquiring electric energy information order sending module, sends out to the multiple intelligent electric meters being attached thereto for harvester each described
Send acquiring electric energy information order;
Described intelligent electric meter includes:
Acquiring electric energy information Order receiver module, includes this intelligent electric meter for the reception of the plurality of intelligent electric meter local
The acquiring electric energy information order of address;
Itself the energy information data is activation gathering is given by energy information data transmission blocks for described intelligent electric meter
Be connected harvester.
Further, in above-mentioned power line carrier meter reading system, described harvester also includes:On energy information data receiver
Report module, for reporting its connected concentrator by the described energy information data receiving.
Further, in above-mentioned power line carrier meter reading system, described concentrator also includes:Data feedback module, is used for
Described concentrator then by the energy information data feedback of the plurality of harvester to system.
Further, in above-mentioned power line carrier meter reading system, described concentrator also includes dividing for harvester each described
The difference joined and the relief area of non-overlapping copies.
Further, in above-mentioned power line carrier meter reading system, described concentrator is receiving the plurality of harvester
During response message, according to the harvester address of described response message, described response message is put into described buffering each other
Qu Zhong, while focusing on reported data, the reception responding new reported data is interrupted.
A kind of present invention power line carrier meter register method and system are by all primary processors (harvester or concentrator) even
Issue collection continuously and copy task, all respond from processor (intelligent electric meter or harvester) concurrently process task competitive orderlyly,
So pass through macroscopically concurrently to process the method for communication service, it is to avoid repeat to wait, improve work efficiency, simplify collection and copy
Flow process, improves real-time and the reliability of centralized meter-reading system.
Specific embodiment
Describe a kind of preferred embodiment of present invention power line carrier meter register method below in conjunction with the accompanying drawings in detail.
A kind of present invention power line carrier meter register method proposes a kind of primary processor downward message, all parallel from processor
Ground processes the primary processor task of issuing, after having processed task, all respond from processor competition, solve prior art and deposit
Communication process excessively loaded down with trivial details, during master-slave communication, using the method taking turns stream process communication service successively, communication efficiency is low
Under problem.
Refer to Fig. 1, Fig. 1 is the communication framework schematic diagram of power line carrier meter register method of the present invention;
A kind of present invention power line carrier meter register method application communication framework includes multiple harvesters 1, the plurality of collection
Device 1 is connected to a concentrator 2 upwards, and each described harvester 1 is connected with downwards multiple intelligent electric meters 3.Wherein, described concentrator
2 work in master processor mode, harvester 1 both as concentrator 2 from processor, also serve as multiple intelligent electric meters 3 simultaneously
Primary processor, each harvester 1 is only connected with a concentrator 2 upwards, can hang down downwards multiple stage intelligent electric meter 3, described multiple stage
Intelligent electric meter 3 works in from processor mode, is only connected with a harvester 1.
See also Fig. 1 and Fig. 2, power line carrier meter register method of the present invention comprises the following steps:
Step S1:Concentrator disposably continuously issues all collection to the multiple harvesters being attached thereto by channel and copies life
Make message.
Wherein, described concentrator is as primary processor, when needing to hang harvester energy information under copy reading, disposably continuously
Issue all collection and copy command message.
Step S2:Each described harvester copies command message by the collection on monitor channel, receives and includes this harvester
Command message copied by the collection of local address.
Wherein, each described harvester receives and has message on channel, and each harvester is to monitor message information, looks at
Whether have the packet of oneself, that is, each harvester monitor concentrator all issue collection and copy whether to have in command message include
The packet of local address, if so, then described harvester receives described collection and copies command message;If it is not, being then that described harvester does not ring
Should.
Step S3:Each described harvester sends acquiring electric energy information order to the multiple intelligent electric meters being attached thereto.
Step S4:After the plurality of intelligent electric meter monitors described acquiring electric energy information order, only receive and include this intelligence
The acquiring electric energy information order of energy ammeter local address, and itself energy information data is activation of collection is given be attached thereto to adopt
Storage.
Wherein, each described intelligent electric meter receives and has message on channel, and each intelligent electric meter is to monitor message information,
Determine whether the packet of oneself, that is, each described intelligent electric meter is monitored all of harvester and issued in acquiring electric energy information message
Whether there is the packet including local address, if so, then described intelligent electric meter receives and processes described acquiring electric energy information order;
If it is not, being then that described intelligent electric meter is not responding to.
Step S5:The plurality of harvester receives the energy information data of its connected multiple intelligent electric meter, and will be described
Energy information data reports the concentrator that it is connected, and described concentrator then will be anti-for the energy information data of the plurality of harvester
Feeding system.
Wherein, multiple harvesters described in step S5 receive the energy information data of its connected multiple intelligent electric meter, and
Described energy information data is reported its connected concentrator include:During described harvester active reporting response message, first
Whether reported data is had on monitor channel, one monitor channel again of random time of time delay, if monitor channel is equal twice in front and back
For the free time, described harvester then returns response message.So can prevent data collision or data from knocking into the back and producing collision, from pool
Effect from the point of view of, each harvester almost at the same time the interior collection receiving concentrator copy order, then each harvester is located simultaneously
Reason and each lower communication service hanging intelligent electric meter.
In step S5, described concentrator is the relief area of each described harvester distribution difference non-overlapping copies, and described collection
Middle device when receiving the response message of the plurality of harvester, according to the harvester address of described response message, by described sound
Answer message to put in relief area each other, process response task, interrupt while producing and receiving.
Below in conjunction with specific embodiment, power line carrier meter register method of the present invention to be described.
Refer to Fig. 3 and Fig. 4, wherein A is grouped for concentrator, B is concentrator packet configuration, C is grouped for harvester, and D is
Harvester packet configuration.
The frame structure communication process of power line carrier meter register method of the present invention is as follows:
First, concentrator continuously transmits concentrator and is grouped A to the harvester being connected;
Then, during receiving concentrator packet A, each harvester is only for N number of harvester that described concentrator is connected
Extract the concentrator packet configuration B being sent to Self address, and described concentrator packet configuration B is converted into respective harvester and divide
Organize C, finally harvester packet C is sent to respective connected intelligent electric meter by each harvester;
Again, all intelligent electric meters that described N number of harvester is connected, during receiving harvester packet C, only extract
It is sent to the harvester packet configuration D of Self address, and described harvester packet configuration D is explained and responds, then return
Response frame form back to harvester is still harvester packet configuration D;
Finally, each harvester described receives the harvester packet configuration of its connected returned response of all intelligent electric meters
D, the harvester packet configuration D composition harvester packet C that this is responded, and harvester packet C is converted into concentrator packet knot
Structure B, is sent to concentrator in an orderly manner by the method for Monitor detection.
Refer to Fig. 5, the present invention also provides a kind of power line carrier meter reading system, including multiple harvesters 1, the plurality of
Harvester 1 is connected to a concentrator 2 upwards, and each described harvester 1 is connected with downwards multiple intelligent electric meters 3.Described concentrator 2
Including:
Command message sending module 22 copied by collection, passes through channel for concentrator to the multiple harvesters being attached thereto disposable
Continuously issue all collection and copy command message;
Described harvester 1 includes:
Message receiver module 12, copies command message for harvester each described by the collection on monitor channel, receives bag
Command message copied by collection containing this harvester local address;
Acquiring electric energy information order sending module 14, for harvester each described to the multiple intelligent electric meters being attached thereto
Send acquiring electric energy information order.
Described intelligent electric meter 3 includes:
Acquiring electric energy information Order receiver module 32, receives for the plurality of intelligent electric meter and includes this intelligent electric meter originally
The acquiring electric energy information order of way address;
Itself the energy information data is activation gathering is given by energy information data transmission blocks 34 for described intelligent electric meter
The harvester being attached thereto.
Described harvester 1 also includes:
Energy information data receiver reporting module 16, for reporting being connected by the described energy information data receiving
Concentrator.
Described concentrator 2 also includes:
Data feedback module 24, for described concentrator by the energy information data feedback of the plurality of harvester be then
System.
Described concentrator 2 also include for harvester each described 1 distribution difference and non-overlapping copies relief area, for institute
State concentrator 2 when receiving the response message of the plurality of harvester 1, according to the harvester address of described response message, will
Described response message is put in described relief area each other, while focusing on reported data, responds new upper count off
According to reception interrupt.
Compared to prior art, a kind of present invention power line carrier meter register method and system (are adopted by all primary processors
Storage or concentrator) continuously issue collection and copy task, all from processor (intelligent electric meter or harvester) concurrently process task,
Respond competitive orderlyly, so pass through macroscopically concurrently to process the method for communication service, it is to avoid repeat to wait, improve work
Efficiency, simplifies collection and copies flow process, improves real-time and the reliability of centralized meter-reading system.
Here description of the invention and application are illustrative, are not wishing to limit the scope of the invention to above-described embodiment
In.The deformation of embodiments disclosed herein and change are possible, real for those skilled in the art
It is known for applying the replacement of example and equivalent various parts.It should be appreciated by the person skilled in the art that without departing from the present invention
Spirit or essential characteristics in the case of, the present invention can in other forms, structure, arrangement, ratio, and with other assemblies,
Material and part are realizing.In the case of without departing from scope and spirit of the present invention, embodiments disclosed herein can be entered
The other deformation of row and change.