Electric meter simulation test method
Technical field
The present invention relates to a kind of ammeter field, particularly about a kind of electric meter simulation test method.
Background technology
In the existing power system, aspect low-voltage collecting meter reading his-and-hers watches to copy passband undesirable always, before concentrator dispatches from the factory, the test of the performance of checking meter of concentrator needed thousands of table, and the table of various different models, build this environment very consumes resources and cost, can't satisfy the needs in the practical application.
Summary of the invention
In order to overcome above-mentioned the deficiencies in the prior art, the invention provides and a kind ofly can be difficult to dispose the electric meter simulation test method that is difficult to build with test environment by existing big electrometer.
The technical solution adopted for the present invention to solve the technical problems is: a kind of electric meter simulation test method is provided, and it may further comprise the steps: A disposes the ammeter that is used for simulating reality to ammeter;
The B route is provided with, and is configured into walking along the street by information configuration according to the ammeter in the steps A, according to the routing iinformation formation routed path of configuration;
C connects, and is used for the simulation table is connected with concentrator;
The D concentrator sends the order of checking meter, the simulation table compares according to frame of receiving and local configuration routing iinformation, can judge through this route and copy logical purpose table, the search purposes epiphase closes the value of data item again, judges whether to reply the concrete data of terminal according to the passband of copying of simulation table setting;
E forms test report.
The scheme of the further technical solution problem of the present invention is: the content that disposes in the described steps A comprises allocation list, configuration data items, and the occurrence that every ammeter data item is set.
The scheme of the further technical solution problem of the present invention is: the ammeter configuration comprises ammeter numbering, ammeter title, ammeter type, ammeter address and copies logical success ratio.
The scheme of the further technical solution problem of the present invention is: the configuration of the data item of ammeter comprises the data item that the basic parameter of ammeter, of that month electric flux, last month electric flux, the month before last electric flux, maximum demand time of origin Data Identification coding schedule, variable data identification code table, parameter Data Identification coding schedule, electric energy data identification code table, maximum demand Data Identification coding schedule etc. are comprised, according to the project actual needs can this system newly-increased, revise, data item that deletion is concrete.Each data item comprises data item title, data item coding, data layout, data length, data initial value.
The scheme of the further technical solution problem of the present invention is: the occurrence that every ammeter data item is set is the value of the data item of the ammeter that reads according to project needs configurations needs.By interface, other system can be revised the occurrence of the corresponding data item of certain piece ammeter.
The scheme of the further technical solution problem of the present invention is: among the described step B, concentrator copy reading piece ammeter can pass to the purpose table to copy reading information by near carrier wave meter as relaying by power carrier signal, the purpose table receives that copy reading information advanced the relaying carrier wave meter to relevant table information by line of electric force and give concentrator data transfer, the situation of simulation table simulation be the relaying carrier wave meter as wherein certain grade of route, in routing configuration, dispose many routing iinformations as required.
The scheme of the further technical solution problem of the present invention is: among the described step C, described simulation table connects by serial ports and concentrator.
The scheme of the further technical solution problem of the present invention is: among the described step D, the order of checking meter according to the concentrator transmission, the check meter routing condition of order of analysis, whether there is this route according to routing condition inquiry judging in the route information table, if there is this route, the data item that whether has the needs inquiry again in the search purposes table, if exist this data item just to obtain the value that the purpose epiphase closes data item, determine whether to reply the data message of the ammeter that obtains again according to the logical probability of copying of the purpose table that is provided with.
The scheme of the further technical solution problem of the present invention is: in the described step e: the data that produce in the above-mentioned steps are formed document, and described document managed, document content comprises the command frame of checking meter that concentrator sends, command analysis forms the routed path of checking meter to checking meter, the meter reading data item, the simulation table returns frame information, and time of origin.
Compared to prior art, the advantage of electric meter simulation test method of the present invention is: by simulating a large amount of tables, avoided the test concentrator of traditional approach to copy the situation that passband needs several thousand tables, traditional approach is installed several thousand table test concentrators and is copied passband cost height, the environment difficulty is built, can simulate situation in the reality by the simulation table, this mode allocation list is convenient, it is simple that route is set, convenient and quick, can write down the data message in the test process simultaneously again, for later data analysis provides convenience, not only improve testing efficiency, reduced cost of labor again.
Description of drawings
Fig. 1 is the schematic flow sheet of electric meter simulation test method provided by the invention.
Fig. 2 is the simulation table of electric meter simulation test method provided by the invention and the structural representation of concentrator.
Fig. 3 is the frame format structural representation of the order of checking meter of electric meter simulation test method provided by the invention.
Fig. 4 is the frame format structural representation of the data message of the ammeter that obtains of the answer of electric meter simulation test method provided by the invention.
Embodiment
Following content be in conjunction with concrete preferred implementation to further describing that the present invention did, can not assert that concrete enforcement of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.
The invention provides a kind of electric meter simulation test method, it may further comprise the steps:
A disposes the ammeter that is used for simulating reality to ammeter, and the content of configuration comprises allocation list, configuration data items, and the occurrence that every ammeter data item is set;
The B route is provided with, and is configured into walking along the street by information configuration according to the ammeter in the steps A, according to the routing iinformation formation routed path of configuration;
C connects, and is used for the simulation table is connected with concentrator;
The D concentrator sends the order of checking meter, the simulation table compares according to frame of receiving and local configuration routing iinformation, can judge through this route and copy logical purpose table, the search purposes epiphase closes the value of data item again, judges whether to reply the concrete data of terminal according to the passband of copying of simulation table setting;
E forms test report.
In the above-mentioned steps A, the ammeter configuration comprises ammeter numbering, ammeter title, ammeter type, ammeter address and copies logical success ratio.
The configuration of the data item of ammeter comprises the data item that the basic parameter of ammeter, of that month electric flux, last month electric flux, the month before last electric flux, maximum demand time of origin Data Identification coding schedule, variable data identification code table, parameter Data Identification coding schedule, electric energy data identification code table, maximum demand Data Identification coding schedule etc. are comprised, according to the project actual needs can this system newly-increased, revise, data item that deletion is concrete.Each data item comprises data item title, data item coding, data layout, data length, data initial value.
The occurrence of every ammeter data item is set, the value of the data item of the ammeter that reads according to project needs configurations needs.By interface, other system can be revised the occurrence of the corresponding data item of certain piece ammeter.
Concentrator copy reading piece ammeter can pass to the purpose table to copy reading information by near carrier wave meter as relaying by power carrier signal, and the purpose table is given concentrator relevant table information data transfer by line of electric force through the relaying carrier wave meter after receiving copy reading information.The situation of simulation table simulation be the relaying carrier wave meter as wherein certain grade of route, in routing configuration, dispose many routing iinformations as required.
Described simulation table connects by serial ports and concentrator.
The order of checking meter according to the concentrator transmission, the check meter routing condition of order of analysis, whether there is this route according to routing condition inquiry judging in the route information table, if there is this route, the data item that whether has the needs inquiry again in the search purposes table, if exist this data item just to obtain the value that the purpose epiphase closes data item, determine whether to reply the data message of the ammeter that obtains again according to the logical probability of copying of the purpose table that is provided with.
The address field of relaying transmitted frame is one-level relay station address, and the size of transistroute table is by the relaying grade encoding decision of control code, and transistroute table maximum is seven station addresses.For one-level relaying transmitted frame, the transistroute table only has one of address, point of destination, the order of checking meter that concentrator sends, and the frame format of the order of checking meter is as shown in Figure 3.
Address field is one-level transistroute address.The D5-D7 of control code represents the transistroute rank, and the maximum transistroute degree of depth is 7 grades, and D0-D4 is a function code.If direct copy reading piece table, then transistroute table information is empty, and the Senior Three position of control code is 0.
The simulation table is received the check meter routing condition of order of the order post analysis of checking meter of concentrator, whether there is this route according to routing condition inquiry judging in the route information table, just obtain the value that the purpose epiphase closes data item if there is this route, determine whether to reply the data message of the ammeter that obtains again according to the logical probability of copying of the purpose table that is provided with, its frame format as shown in Figure 4.
In the described step e: the data that produce in the above-mentioned steps are formed document, and described document is managed.Document content comprises the command frame of checking meter that concentrator sends, and the command analysis of checking meter is formed the routed path of checking meter, the meter reading data item, and the simulation table returns frame information, and time of origin.
The present invention adopts receiving thread to handle the frame that concentrator sends, after the simulation table is received and is concentrated the frame that sends over, and by frame is analyzed, the routing iinformation that obtains being correlated with according to the situation after analyzing and the data item of needs copy reading.The simulation table inquires about whether there is this routed path according to routing iinformation in the system configuration table, if exist and just whether have the data item that needs copy reading in the search purposes table, show this value if exist this data item just from allocation list, to take out this, form associated frame according to agreement again and send by sending thread.
The invention has the beneficial effects as follows: by simulating a large amount of tables, having avoided the test concentrator of traditional approach to copy passband needs several The situation of thousand tables, traditional approach are installed several thousand table test concentrators and are copied passband cost height, and the environment difficulty is built, by the simulation table Can simulate the situation in the reality, this mode allocation list is convenient, and it is simple that route is set, and is convenient and quick, simultaneously again can record Data message in the test process for later data analysis provides convenience, has not only improved testing efficiency, has reduced again the people Worker's cost.