Master station protocol supports the method and system of transparent task protocol extension
Technical field
The present invention relates to power information and gather communications protocol technical field, be that a kind of master station protocol supports transparent task agreement
The method and system of extension.
Background technology
Along with expanding economy and the raising of living standards of the people, the power consumption during life produces rapidly increases, and gives
Power network safety operation brings bigger test.Along with Utilities Electric Co.'s access customer number amount is increased sharply, based on remote reading system
System, new business continues to bring out in various places.Instantly main website-acquisition terminal communications protocol belongs to service-oriented type agreement, namely
Formulate agreement for the concrete business of each Utilities Electric Co., once occur that the business outside agreement can not be according to existing task flow
Cheng Zhihang.In this case, mainly concentrator is performed transparent transmission as terminal, the most indirectly achieve main website with
The direct interaction of electric energy meter.But existing communications channel imperfect stability, causes the mission failure rate under this kind of pattern
Be 20% to 30%.
Summary of the invention
The invention provides a kind of master station protocol and support the method and system of transparent task protocol extension, overcome above-mentioned existing
Having the deficiency of technology, the transmission channel instability existed when it can effectively solve existing enforcement power information new business causes
Communication overtime, the problem that mission failure rate is high.
One of technical scheme is realized by following measures: a kind of master station protocol supports transparent task association
The method of view extension, it is characterised in that comprise the following steps:
The first step, arranges definition to task, in transparent task, arranges newly-increased data cell mark Fn and measures some Pn, afterwards
Enter second step;
Second step, query task performs state, is defined the execution state of transparent task by newly-increased data cell mark Fn, it
Rear entrance the 3rd step;
3rd step, task reports, and reports the execution result of transparent task.
Further optimization and/or improvements to foregoing invention technical scheme are presented herein below:
Above-mentioned in the first step, described data cell mark Fn leaves in corresponding different application layer function code AFN, application layer
Message corresponding to function code AFN includes asking 1 class data, asking 3 class data and data to forward, and 1 described class data are real-time
Data, 3 described class data are event data.
Above-mentioned in the first step, described application level function code AFN uses hexadecimal to encode.
Above-mentioned in the first step, described newly-increased message corresponding for data cell mark Fn includes as AFN=10H
Remove transparent task F305, transparent task F306 is set and inquires about transparent task F307, the transparent tasks carrying as AFN=OCH
State F305 and transparent task action result F306, the transparent task action result ERC64 event as AFN=OEH.
Above-mentioned in second step, the execution state of transparent task includes waiting identity authentication result, reporting events and inquiry
Whether there is non-reporting measurement point.
The two of technical scheme are realized by following measures: a kind of master station protocol supports transparent task
Protocol extension system, including system main website, acquisition terminal, measurement point and communication link, described acquisition terminal is by extension
Communication link accepts the request message that system main website sends, and measures and communicates to connect between point and acquisition terminal, and described request disappears
Breath includes that the request change effective duration of electric energy meter authentication, request adjust electricity price and request gathers electricity price.
Above-mentioned acquisition terminal can be concentrator.
Above-mentioned measurement point can be electric energy meter.
There is effect duration in the present invention only authentication in whole transparent flow of task, it is unconfined etc. that this avoids task
Treat, also unified the timeout threshold of whole system, it is to avoid different route time-out times is different and the trouble that causes.Different electricity
The task that issues of energy table uses priority policy, does not affect daily collection and transparent electricity price issues task and can realize taking turns more
Secondary execution, is successfully issued to all electric energy meters meeting authentication by electricity price.The Extended Protocol of the present invention be applicable to all with
The remote task that transparent mission mode performs, the direct initiator of this remote task is concentrator, by between main website and electric energy meter
It is converted into by synchronization asynchronous alternately, improves communication efficiency, reduce main website holding time, be effectively increased the success that task sends
Rate.
Accompanying drawing explanation
Accompanying drawing 1 embodiment of the present invention 2 changes electric energy meter authentication effective duration flow chart.
Accompanying drawing 2 embodiment of the present invention 3 adjusts electric price parameter flow chart.
Accompanying drawing 3 embodiment of the present invention 4 gathers electricity price information flow chart.
Accompanying drawing 4 present invention transparent task state unit price issues archives checking procedure schematic diagram.
Accompanying drawing 5 issues electricity price setting up procedure schematic diagram for the present invention transparent task state electricity price.
Detailed description of the invention
The present invention is not limited by following embodiment, can determine specifically according to technical scheme and practical situation
Embodiment.
In the present invention, for the ease of describing, the description of the relative position relation of each parts is all according to Figure of description 1
Butut mode be described, such as: the position relationship of forward and backward, upper and lower, left and right etc. is based on the Butut of Figure of description
Direction determines.
Below in conjunction with embodiment and accompanying drawing, the invention will be further described:
Embodiment 1: as shown in table 1,2,3,4,5,6, master station protocol supports the method for transparent task protocol extension, including following step
Rapid:
The first step, arranges definition to task, in transparent task, arranges newly-increased data cell mark Fn and measures some Pn, afterwards
Enter second step;
Second step, query task performs state, is defined the execution state of transparent task by newly-increased data cell mark Fn, it
Rear entrance the 3rd step;
3rd step, task reports, and reports the execution result of transparent task.
According to actual needs above-mentioned power information capturing service transparent transmission method can be made further optimization and/or improvements:
As shown in table 1,2,3,4,5,6, in the first step, described data cell mark Fn leaves corresponding different application layer merit in
In energy code AFN, message corresponding for application level function code AFN includes asking 1 class data, asking 3 class data and data to forward, described
1 class data be real time data, 3 described class data are event data.
As shown in table 1,2,3,4,5,6, in the first step, described application level function code AFN uses hexadecimal to carry out
Coding.
As shown in table 1,2,3,4,5,6, in the first step, described newly-increased message bag corresponding for data cell mark Fn
Include transparent task F305 of the removing as AFN=10H, transparent task F306 is set and inquires about transparent task F307, work as AFN=OCH
Time transparent execution status of task F305 and transparent task action result F306, the transparent task action result as AFN=OEH
ERC64 event.
As table 1,2,3,4,5,6, shown in accompanying drawing 2, in second step, the execution state of transparent task includes waiting that identity is recognized
Whether card result, reporting events and inquiry have non-reporting measurement point.
Embodiment 2: as shown in accompanying drawing 1,4,5, master station protocol supports the protocol extension request change electric energy meter of transparent task
The method of the effective duration of authentication, comprises the following steps:
The first step: system main website removes all transparent tasks of terminal, confirms the terminal task of not being carrying out, and enters the afterwards
Two steps;
Second step: batch setting authentication task, task priority, higher than freezing task, enters the 3rd step afterwards;
3rd step: wait authentication task result, is not intended to the execution duration of task, enters the 4th step afterwards;
4th step: checked whether reporting events, the most then enter the 5th step;If it is not, then perform the 3rd step;
5th step: whether have authentication event, the most then enter the 6th step;If it is not, then measure point do not put Success Flag, it
Rear entrance the 7th step;
6th step: this measurement point effective duration of authentication is set, enters the 8th step afterwards;
7th step: record is measured point and arranged duration result, enters the 8th step afterwards;
8th step: check whether the measurement point not reported, if having, then performs the 3rd step, if not having, then measures point and is set to merit mark
Will, task terminates.
According to actual needs, above-mentioned master station protocol can be supported the protocol extension request change electric energy meter identity of transparent task
The method of the effective duration of certification makes further optimization and/or improvements:
As shown in Figure 1, in the third step, authentication task result is by ERC64 reporting events main website.
As shown in Figure 1, in the 6th step, when this measurement point authentication is effective a length of 3 minutes.
Embodiment 3: as shown in accompanying drawing 2,4,5, master station protocol supports that the protocol extension request of transparent task adjusts electricity price
Method, comprises the following steps:
The first step: system main website removes all transparent tasks of acquisition terminal, confirms the terminal task of not being carrying out, laggard
Enter second step;
Second step: batch setting authentication task, task priority, higher than day freezing copy reading, enters the 3rd step afterwards;
3rd step: wait identity authentication result, is not intended to the execution duration of task, enters the 4th step afterwards;
4th step: whether active reporting is to system main website for identity authentication result, the most then enter the 5th step;If it is not, then perform
Three steps;
5th step: system main website arranges the specific tasks measuring point, and batch is issued to terminal, measures some execution task, afterwards
Enter the 6th step;
6th step: whether examination exists the measurement point not reported, if existing, then performs the 3rd step, if not existing, then enters the 7th
Step;
7th step: query task performs state, and whether confirmation task completes, if task completes, then measures point and puts Success Flag, it
Rear entrance the 9th step;If not completing task, enter the 8th step afterwards;
8th step: task is not fully complete, continues time delay and waits, performs the 7th step afterwards.
9th step: batch query task action result, task terminates.
According to actual needs, above-mentioned master station protocol can be supported the method that the protocol extension request of transparent task adjusts electricity price
Make further optimization and/or improvements:
As shown in accompanying drawing 2,4,5, in the above-mentioned first step, described acquisition terminal is concentrator.
As shown in accompanying drawing 2,4,5, above-mentioned 5th step, described measurement point is electric energy meter.
Embodiment 4: as shown in Fig. 3,4,5, a kind of master station protocol supports that the protocol extension request of transparent task gathers electricity price
Method, comprise the following steps:
The first step: system main website removes all transparent tasks of terminal, confirms the terminal task of not being carrying out, and enters the afterwards
Two steps;
Second step: the transparent task of batch setting, task priority, higher than day freezing copy reading, enters the 3rd step afterwards;
3rd step: query task performs state, and whether confirmation task completes, if task completes, then measures point and puts Success Flag, it
Rear entrance the 5th step;If not completing task, enter the 4th step afterwards;
4th step: task is not fully complete, continues time delay and waits, performs the 3rd step afterwards;
5th step: batch query task action result, terminates.
Embodiment 5: as shown in Figure 4,5, a kind of master station protocol supports the protocol extension system of transparent task, including system master
Stand, acquisition terminal, measurement point and communication link, described acquisition terminal accepts system main website by the communication link of extension and sends
Request message, measure point and acquisition terminal between communicate to connect, described request message include request change electric energy meter identity
The effective duration of certification, request adjust electricity price and request gathers electricity price.
As shown in Figure 4,5, described acquisition terminal is concentrator.
As shown in Figure 4,5, described measurement point is electric energy meter.
Here, owing to system main website is rather than waiting for the reply of concentrator, but use the mode actively calling survey together, thus main
Stand and between concentrator, electric energy meter, there is not overtime phenomenon.
Above technical characteristic constitutes embodiments of the invention, and it has stronger adaptability and implementation result, can basis
It is actually needed the non-essential technical characteristic of increase and decrease, meets the demand of different situations.