Summary of the invention
In order to overcome the deficiency of above-mentioned prior art, the present invention provides a kind of 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 in 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 configuration needs.Through 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 through near carrier wave meter as relaying through power carrier signal; The purpose table receives that copy reading information advanced the relaying carrier wave meter to relevant table information through 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 said step C, described simulation table connects through serial ports and concentrator.
The scheme of the further technical solution problem of the present invention is: among the said 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,, whether has the data item of needs inquiry again in the search purposes table if there is this route; 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 said step e: the data that produce in the above-mentioned steps are formed document; And said document managed; Document content comprises the command frame of checking meter that concentrator sends, and command analysis forms the routed path of checking meter, meter reading data item to checking meter; 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: through 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, and the environment difficulty is built, and can simulate the situation in the reality through the simulation table; This mode allocation list is convenient, and it is simple that route is set, and is convenient and quick; Can write down simultaneously the data message in the test process again; For later data analysis provides convenience, not only improved testing efficiency, reduced cost of labor again.
Embodiment
Following content is to combine concrete preferred implementation to the further explain that the present invention did, and can not assert that practical implementation of the present invention is confined to these explanations.For the those of ordinary skill of technical field under the present invention, under the prerequisite that does not break away from the present invention's design, can also make some simple deduction or replace, all should be regarded 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 in 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 configuration needs.Through 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 through near carrier wave meter as relaying through power carrier signal, and the purpose table is given concentrator relevant table information data transfer through 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 through 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,, whether has the data item of needs inquiry again in the search purposes table if there is this route; 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 representes 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 is as shown in Figure 4.
In the said step e: the data that produce in the above-mentioned steps are formed document, and said 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 through 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; If exist this data item just from allocation list, to take out this value of this table, form associated frame according to agreement again and send through sending thread.
The invention has the beneficial effects as follows: through 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, and can simulate the situation in the reality through the simulation table, and 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 again simultaneously, for later data analysis provides convenience; Not only improve testing efficiency, reduced cost of labor again.