Master station protocol supports the method and system of transparent task protocol extension
Technical field
The present invention relates to power informations to acquire communications protocol technical field, is a kind of transparent task agreement of master station protocol support
The method and system of extension.
Background technique
Along with the raising of expanding economy and living standards of the people, the power consumption in life production rapidly increases, and gives
Power network safety operation brings bigger test.As Utilities Electric Co.'s accessing user's quantity is increased sharply, it is based on remote reading system
System, new business are continued to bring out in various regions.Instantly main website-acquisition terminal communications protocol belongs to service-oriented type agreement, that is,
Agreement is formulated for the specific business of each Utilities Electric Co., once the business occurred except agreement cannot be according to existing task flow
Cheng Zhihang.In this case, mainly using concentrator as terminal execute transparent transmission, realize indirectly according to this main website with
The direct interaction of electric energy meter.But existing communications channel imperfect stability, lead to the mission failure rate under such mode
It is 20% to 30%.
Summary of the invention
The present invention provides the method and systems that a kind of master station protocol supports transparent task protocol extension, overcome above-mentioned existing
There is the deficiency of technology, caused by existing transmission channel is unstable when can effectively solve existing implementation power information new business
Communication timeout, the high problem of mission failure rate.
Technical solution of the present invention first is that being realized by following measures: a kind of master station protocol supports transparent task association
The method for discussing extension, it is characterised in that the following steps are included:
The first step is arranged task and defines, and in transparent task, newly-increased data cell is arranged and identifies Fn and measurement point Pn,
Enter second step later;
Second step, query task execute state, identify the execution shape that Fn defines transparent task by newly-increased data cell
State enters third step later;
Third step, task report, and report to the implementing result of transparent task.
Here is the further optimization and/or improvements to invention technology described above scheme:
Above-mentioned the data cell mark Fn is stored in corresponding different application layer function code AFN in the first step, is answered
It include that 1 class data of request, 3 class data of request and data forwarding, the 1 class data are with the corresponding message of layer function code AFN
Real time data, the 3 class data are event data.
It is above-mentioned in the first step, the application level function code AFN is encoded using hexadecimal.
It is above-mentioned in the first step, the described newly-increased corresponding message of data cell mark Fn includes as AFN=10H
Remove transparent task F305, the transparent task F306 of setting and the transparent task F307 of inquiry, the transparent task execution as AFN=OCH
State F305 and transparent task action result F306, the transparent task action result ERC64 event as AFN=OEH.
It is above-mentioned in second step, the execution state of transparent task includes that identity authentication result, event is waited to report and inquire
Whether non-reporting measurement point is had.
Technical solution of the present invention second is that being 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, the acquisition terminal pass through extension
Communication link receives the request message of system main website transmission, communicates to connect between measurement point and acquisition terminal, the request disappears
Breath includes request change electric energy meter authentication effective time, request adjustment electricity price and request acquisition electricity price.
Above-mentioned acquisition terminal can be concentrator.
Above-mentioned measurement point can be electric energy meter.
Only authentication is unconfined etc. this avoids task there are validity period in entire transparent flow of task by the present invention
To, also unified the timeout threshold of whole system, avoid different route time-out time it is different and caused by trouble.Different electricity
Energy table issues task using priority policy, does not influence daily acquisition and transparent electricity price issues task and take turns may be implemented more
Electricity price is successfully issued to all electric energy meters for meeting authentication by secondary execution.Extended Protocol of the invention be suitable for it is all with
The remote task that transparent mission mode executes, the direct initiator of the remote task are concentrator, will be between main website and electric energy meter
Interaction is converted into asynchronous by synchronizing, and improves communication efficiency, reduces main website holding time, effectively increases the success of task transmission
Rate.
Detailed description of the invention
1 embodiment of the present invention 2 of attached drawing changes electric energy meter authentication effective time flow chart.
2 embodiment of the present invention 3 of attached drawing adjusts electric price parameter flow chart.
3 embodiment of the present invention 4 of attached drawing acquires electricity price information flow chart.
The 4 transparent task state unit price of the present invention of attached drawing issues archives checking procedure schematic diagram.
Attached drawing 5 is that the transparent task state electricity price of the present invention issues electricity price setting up procedure schematic diagram.
Specific embodiment
The present invention is not limited by the following examples, can determine according to the technique and scheme of the present invention with actual conditions specific
Embodiment.
In the present invention, for ease of description, the description of the relative positional relationship of each component is according to Figure of description 1
Butut mode be described, such as: front, rear, top, and bottom, left and right positional relationship be the Butut according to Figure of description
Direction determines.
Below with reference to examples and drawings, the invention will be further described:
Embodiment 1: as shown in table 1,2,3,4,5,6, the method that master station protocol supports transparent task protocol extension, including with
Lower step:
The first step is arranged task and defines, and in transparent task, newly-increased data cell is arranged and identifies Fn and measurement point Pn,
Enter second step later;
Second step, query task execute state, identify the execution shape that Fn defines transparent task by newly-increased data cell
State enters third step later;
Third step, task report, and report to the implementing result of transparent task.
Can above-mentioned power information capturing service transparent transmission method be advanced optimized or/and be changed according to actual needs
Into:
As shown in table 1,2,3,4,5,6, in the first step, the data cell mark Fn is stored in corresponding different application
In layer function code AFN, the corresponding message of application level function code AFN includes 1 class data of request, requests 3 class data and data forwarding,
The 1 class data are real time data, and the 3 class data are event data.
As shown in table 1,2,3,4,5,6, in the first step, the application level function code AFN is carried out using hexadecimal
Coding.
As shown in table 1,2,3,4,5,6, in the first step, the newly-increased corresponding message packet of data cell mark Fn
The transparent task F305 of removing, the transparent task F306 of setting and the transparent task F307 of inquiry as AFN=10H are included, as AFN=OCH
When transparent execution status of task F305 and transparent task action result F306, the transparent task action result as AFN=OEH
ERC64 event.
As shown in table 1,2,3,4,5,6, attached drawing 2, in second step, the execution state of transparent task includes that identity is waited to recognize
Card result, event is reported and is inquired whether non-reporting measurement point.
Embodiment 2: as shown in attached drawing 1,4,5, master station protocol supports the protocol extension of transparent task to request change electric energy meter
The method of authentication effective time, comprising the following steps:
Step 1: system main website removes all transparent tasks of terminal, confirmation terminal not being carrying out of the task, it is laggard
Enter second step;
Step 2: batch setting authentication task, task priority, which is higher than, freezes task, enters third step later;
Step 3: waiting authentication task result, the execution duration of task is not limited, enters the 4th step later;
Step 4: having checked whether that event reports, if so, into the 5th step;If it is not, then executing third step;
Step 5: whether having authentication event, if so, into the 6th step;If it is not, then measurement point is not set to function mark
Will enters the 7th step later;
Step 6: the measurement point authentication effective time is arranged, enter the 8th step later;
Step 7: record measurement point setting duration as a result, enter the 8th step later;
Step 8: checking whether the measurement point not reported, if so, then executing third step, if not having, measurement point is set to
Function mark, task terminate.
The protocol extension of transparent task can be supported to request change electric energy meter identity above-mentioned master station protocol according to actual needs
The method of certification effective time makes further optimization and/or improvements:
As shown in Fig. 1, in the third step, authentication task result reports main website by ERC64 event.
As shown in Fig. 1, in step 6, which is 3 minutes.
Embodiment 3: as shown in attached drawing 2,4,5, master station protocol supports the protocol extension of transparent task to request adjustment electricity price
Method, comprising the following steps:
Step 1: system main website removes all transparent tasks of acquisition terminal, the task that terminal is not carrying out is confirmed, it
Enter second step afterwards;
Step 2: batch setting authentication task, task priority, which is higher than, freezes copy reading day, enters third step later;
Step 3: waiting identity authentication result, the execution duration of task is not limited, enters the 4th step later;
Step 4: whether active reporting is to system main website for identity authentication result, if so, into the 5th step;If it is not, then holding
Row third step;
Step 5: the specific tasks of system main website setting measurement point, and batch is issued to terminal, measurement point executes task,
Enter the 6th step later;
Step 6: examination is with the presence or absence of the measurement point not reported, and if it exists, then execute third step, if it does not exist, then enter
7th step;
Step 7: query task executes state, whether confirmation task is completed, if task is completed, measurement point is set to function mark
Will enters the 9th step later;If not completing task, enter the 8th step later;
Step 8: task does not complete, continues delay and wait, execute the 7th step later.
Step 9: batch query task action result, task terminate.
Can according to actual needs, the method for supporting the protocol extension of transparent task to request adjustment electricity price above-mentioned master station protocol
It makes further optimization and/or improvements:
As shown in attached drawing 2,4,5, in the above-mentioned first step, the acquisition terminal is concentrator.
As shown in attached drawing 2,4,5, above-mentioned 5th step, the measurement point is electric energy meter.
Embodiment 4: as shown in Fig. 3,4,5, a kind of master station protocol supports the protocol extension request acquisition electricity price of transparent task
Method, comprising the following steps:
Step 1: system main website removes all transparent tasks of terminal, confirmation terminal not being carrying out of the task, it is laggard
Enter second step;
Step 2: the transparent task of batch setting, task priority, which is higher than, freezes copy reading day, enters third step later;
Step 3: query task executes state, whether confirmation task is completed, if task is completed, measurement point is set to function mark
Will enters the 5th step later;If not completing task, enter the 4th step later;
Step 4: task does not complete, continues delay and wait, execute third step later;
Step 5: 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
It stands, acquisition terminal, measurement point and communication link, the acquisition terminal receive system main website by the communication link extended and send
Request message, communicated to connect between measurement point and acquisition terminal, the request message include request change electric energy meter identity
Authenticate effective time, request adjustment electricity price and request acquisition electricity price.
As shown in Figure 4,5, the acquisition terminal is concentrator.
As shown in Figure 4,5, the measurement point is electric energy meter.
Herein, since system main website is rather than waiting for the reply of concentrator, but by the way of actively calling survey together, so main
Standing between concentrator, electric energy meter, there is no the phenomenons of time-out.
The above technical features constitute embodiments of the present invention, can basis with stronger adaptability and implementation result
Actual needs increases and decreases non-essential technical characteristic, to meet the needs of different situations.