Summary of the invention
The object of the present invention is to provide a kind of power line carrier meter register method and system, solve in the master-slave communication process existing in prior art and use and process in turn successively the way of communication service, cause the work efficiency of whole centralized meter-reading system low, the problem that centralized meter-reading system functional reliability is lower.
For solving the problems of the technologies described above, the present invention adopts following technical scheme:
A meter register method, said method comprising the steps of:
Step S1: concentrator issues continuously all collection and copies command message by channel is disposable to a plurality of collectors that are attached thereto;
Step S2: described in each, a plurality of collectors are copied command message by the collection on monitor channel, reception includes the collection of this collector local address and copies command message;
Step S3: described in each, a plurality of collectors send acquiring electric energy information order to a plurality of intelligent electric meters that are attached thereto;
Step S4: described a plurality of intelligent electric meters monitor after described acquiring electric energy information order, receives only the acquiring electric energy information order that includes this intelligent electric meter local address, and self the energy information data gathering are sent to the collector being attached thereto;
Step S5: described a plurality of collectors receive the energy information data of its a plurality of intelligent electric meters that are connected, and the connected concentrator that described energy information data are reported, described concentrator by the energy information data feedback of described a plurality of collectors to system.
Further, in above-mentioned power line carrier meter register method, described step S2 comprises: each collector is monitored all collection that issue of concentrator and copied in command message, whether one of them grouping includes local address, and if so, described collector receives described collection and copies command message; If not, be that described collector does not respond.
Further, in above-mentioned power line carrier meter register method, described step S4 comprises:
Described in each, a plurality of intelligent electric meters are monitored all of collector and are issued in acquiring electric energy information message whether have the grouping that includes local address, and if so, described intelligent electric meter receives and process described acquiring electric energy information order; If not, be that described intelligent electric meter does not respond.
Further, in above-mentioned power line carrier meter register method, a plurality of collectors described in described step S5 receive the energy information data of its a plurality of intelligent electric meters that are connected, and the connected concentrator that described energy information data are reported comprises:
During described collector active reporting response message, first on monitor channel, whether have reported data, time delay random time is monitor channel again, if twice of front and back monitor channel is the free time, described collector returns to response message.
Further, in above-mentioned power line carrier meter register method, in described step S5, described concentrator distributes the buffer zone of different non-overlapping copies for a plurality of collectors described in each, and described concentrator, when receiving the response message of described a plurality of collectors, according to the collector address of described response message, is put into buffer zone each other by described response message, one side processing response task, Yi Bian produce receive interruption.
The present invention also provides a kind of power line carrier meter reading system, comprises a plurality of collectors, and described a plurality of collectors are upwards connected to a concentrator, and described in each, a plurality of collectors are connected with a plurality of intelligent electric meters downwards, and described concentrator comprises:
Collection is copied command message sending module, for concentrator, to a plurality of collectors that are attached thereto, by channel is disposable, issues continuously all collection and copies command message;
Described collector comprises:
Message receiver module, copies command message for a plurality of collectors described in each by the collection on monitor channel, and reception includes the collection of this collector local address and copies command message;
Acquiring electric energy information order sending module, sends acquiring electric energy information order for a plurality of collectors described in each to a plurality of intelligent electric meters that are attached thereto;
Described intelligent electric meter comprises:
Acquiring electric energy information order receiver module, receives for described a plurality of intelligent electric meters the acquiring electric energy information order that includes this collector local address;
Energy information data transmission blocks, sends to by self the energy information data gathering the collector being attached thereto for described intelligent electric meter.
Further, in above-mentioned power line carrier meter reading system, described collector also comprises: energy information data receiver reporting module, and for the connected concentrator that the described energy information data that receive are reported.
Further, in above-mentioned power line carrier meter reading system, described concentrator also comprises: data feedback module, for described concentrator by the energy information data feedback of described a plurality of collectors to system.
Further, in above-mentioned power line carrier meter reading system, described concentrator is also included as a plurality of collectors distribute described in each difference and the buffer zone of non-overlapping copies.
Further, in above-mentioned power line carrier meter reading system, described concentrator is when receiving the response message of described a plurality of collectors, according to the collector address of described response message, described response message is put into described buffer zone each other, when focusing on reported data, respond the receive interruption of new reported data.
A kind of power line carrier meter register method of the present invention and system issue continuously collection by all primary processors (collector or concentrator) and copy task, all from processor (intelligent electric meter or collector) Processing tasks concurrently, respond competitive orderlyly, like this by processing concurrently the way of communication service in macroscopic view, avoid repeating waiting for, improve work efficiency, simplified collection and copied flow process, improved real-time and the reliability of centralized meter-reading system.
Embodiment
Below in conjunction with accompanying drawing, describe the preferred embodiment of a kind of power line carrier meter register method of the present invention in detail.
A kind of power line carrier meter register method of the present invention proposes a kind of primary processor downward message, allly from processor, process concurrently the task that primary processor issues, handle after task, all from processor competition respond, the communication process that has solved prior art existence is too loaded down with trivial details, in master-slave communication process, use the way of communication service, the problem that communication efficiency is low processed in turn successively.
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 power line carrier meter register method of the present invention application communication framework comprises a plurality of collectors 1, and described a plurality of collectors 1 are upwards connected to a concentrator 2, and described in each, a plurality of collectors 1 are connected with a plurality of intelligent electric meters 3 downwards.Wherein, described concentrator 2 works in primary processor pattern, collector 1 both as concentrator 2 from processor, simultaneously also as the primary processor of a plurality of intelligent electric meters 3, each collector 1 is upwards only connected with a concentrator 2, can hang down many intelligent electric meters 3 downwards, described many intelligent electric meters 3 work in from processor mode, are only connected with a collector 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 issues continuously all collection and copies command message by channel is disposable to a plurality of collectors that are attached thereto.
Wherein, described concentrator is as primary processor, while hanging collector energy information under needs copy reading, disposablely issues continuously all collection and copies command message.
Step S2: described in each, a plurality of collectors are copied command message by the collection on monitor channel, reception includes the collection of this collector local address and copies command message.
Wherein, described in each, a plurality of collectors are received message on channel, each collector is just monitored message information, see if there is the grouping of oneself, the all collection that issue that are that each collector is monitored concentrator copy in command message, whether there is the grouping that includes local address, if so, described collector receives described collection and copies command message; If not, be that described collector does not respond.
Step S3: described in each, a plurality of collectors send acquiring electric energy information order to a plurality of intelligent electric meters that are attached thereto.
Step S4: described a plurality of intelligent electric meters monitor after described acquiring electric energy information order, receives only the acquiring electric energy information order that includes this intelligent electric meter local address, and self the energy information data gathering are sent to the collector being attached thereto.
Wherein, described in each, a plurality of intelligent electric meters are received message on channel, each intelligent electric meter is just monitored message information, judge whether the grouping of oneself, what be that a plurality of intelligent electric meters are monitored collectors described in each allly issues in acquiring electric energy information message, whether there is the grouping that includes local address, if so, described intelligent electric meter receives and processes described acquiring electric energy information order; If not, be that described intelligent electric meter does not respond.
Step S5: described a plurality of collectors receive the energy information data of its a plurality of intelligent electric meters that are connected, and the connected concentrator that described energy information data are reported, described concentrator by the energy information data feedback of described a plurality of collectors to system.
Wherein, a plurality of collectors described in step S5 receive the energy information data of its a plurality of intelligent electric meters that are connected, and the connected concentrator that described energy information data are reported comprises: during described collector active reporting response message, first on monitor channel, whether there is reported data, time delay random time is monitor channel again, if twice of front and back monitor channel is the free time, described collector returns to response message.Can prevent like this that data collision or data from knocking into the back produces collision, from the effect of planning as a whole, each collector almost at the same time between in receive that the collection of concentrator copies order, so each collector is processed and lower communication service of hanging intelligent electric meter separately simultaneously.
In step S5, described concentrator distributes the buffer zone of different non-overlapping copies for a plurality of collectors described in each, and described concentrator is when receiving the response message of described a plurality of collectors, according to the collector address of described response message, described response message is put into buffer zone each other, one side processing response task, Yi Bian produce receive interruption.
Below in conjunction with specific embodiment, power line carrier meter register method of the present invention is described.
Refer to Fig. 3 and Fig. 4, wherein A is concentrator grouping, and B is concentrator packet configuration, and C is collector grouping, and D is collector packet configuration.
The frame structure communication process of power line carrier meter register method of the present invention is as follows:
First, concentrator sends concentrator grouping A continuously to connected collector;
Then, connected N the collector of described concentrator is in receiving the process of concentrator grouping A, each collector only extracts the concentrator packet configuration B that mails to self address, and described concentrator packet configuration B is converted into collector separately grouping C, finally each collector mails to connected intelligent electric meter separately by the collector C that divides into groups;
Again, all intelligent electric meters that a described N collector is connected are in receiving the process of collector grouping C, only extract the collector packet configuration D that mails to self address, and described collector packet configuration D is made an explanation and responded, then the response frame form that returns to collector is still collector packet configuration D;
Finally, described each collector receives the collector packet configuration D of its response that all intelligent electric meters return being connected, the collector packet configuration D of this response is formed to collector grouping C, and the collector C that divides into groups is converted into concentrator packet configuration B, the way by Monitor detection sends to concentrator in an orderly manner.
Refer to Fig. 5, the present invention also provides a kind of power line carrier meter reading system, comprises a plurality of collectors 1, and described a plurality of collectors 1 are upwards connected to a concentrator 2, and described in each, a plurality of collectors 1 are connected with a plurality of intelligent electric meters 3 downwards.Described concentrator 2 comprises:
Collection is copied command message sending module 22, for concentrator, to a plurality of collectors that are attached thereto, by channel is disposable, issues continuously all collection and copies command message;
Described collector 1 comprises:
Message receiver module 12, copies command message for a plurality of collectors described in each by the collection on monitor channel, and reception includes the collection of this collector local address and copies command message;
Acquiring electric energy information order sending module 14, sends acquiring electric energy information order for a plurality of collectors described in each to a plurality of intelligent electric meters that are attached thereto.
Described intelligent electric meter 3 comprises:
Acquiring electric energy information order receiver module 32, receives for described a plurality of intelligent electric meters the acquiring electric energy information order that includes this collector local address;
Energy information data transmission blocks 34, sends to by self the energy information data gathering the collector being attached thereto for described intelligent electric meter.
Described collector 1 also comprises:
Energy information data receiver reporting module 16, for the connected concentrator that the described energy information data that receive are reported.
Described concentrator 2 also comprises:
Data feedback module 24, for described concentrator by the energy information data feedback of described a plurality of collectors to system.
Described concentrator 2 is also included as a plurality of collectors 1 distribute described in each difference and the buffer zone of non-overlapping copies, be used for described concentrator 2 when receiving the response message of described a plurality of collector 1, according to the collector address of described response message, described response message is put into described buffer zone each other, when focusing on reported data, respond the receive interruption of new reported data.
Than prior art, a kind of power line carrier meter register method of the present invention and system issue continuously collection by all primary processors (collector or concentrator) and copy task, all from processor (intelligent electric meter or collector) Processing tasks concurrently, respond competitive orderlyly, by processing concurrently the way of communication service in macroscopic view, avoid repeating waiting for like this, improved work efficiency, simplify collection and copied flow process, improved real-time and the reliability of centralized meter-reading system.
Here description of the invention and application is illustrative, not wants by scope restriction of the present invention in the above-described embodiments.Here the distortion of disclosed embodiment and change is possible, and for those those of ordinary skill in the art, the various parts of the replacement of embodiment and equivalence are known.Those skilled in the art are noted that in the situation that not departing from spirit of the present invention or essential characteristic, and the present invention can be with other form, structure, layout, ratio, and realizes with other assembly, material and parts.In the situation that not departing from the scope of the invention and spirit, can carry out other distortion and change to disclosed embodiment here.