Summary of the invention
Be difficult to for power information acquisition system in correlation technique problem that the performance quality of local communication device timing copy reading ammeter is tested and propose the present invention, for this reason, main purpose of the present invention is the method for testing and system, the main website that provide a kind of power information acquisition system, to solve the problem.
To achieve these goals, according to an aspect of the present invention, a kind of method of testing of power information acquisition system is provided.
Method of testing according to power information acquisition system of the present invention comprises: main website issues to concentrator order of checking meter; Concentrator starts local self-timing and checks meter, and repeating query performs and checks meter to one or more ammeter in the given time, to read multiple response datas that each ammeter returns, and records the reception condition of each response data; Main website issues the order of reading all response datas on concentrator; Main website reads all response datas on concentrator, and according to the reception condition of all response datas, add up the success rate of checking meter, wherein, when in the effective situation of response data, main website preserves response data, and record is checked meter successfully; When response data is invalid or do not receive response data, main website record is checked meter unsuccessfully.
Further, concentrator starts local self-timing and checks meter, repeating query performs and checks meter to ammeter in the given time, and read multiple response datas that ammeter returns and comprise: first checks meter step: concentrator forwards and checks meter order to ammeter, complete the copy reading to ammeter data, and obtain the first response data; Concentrator reads the first response data, and records the reception condition of the first response data; Repeat first to each ammeter in the given time to check meter step, the reception condition of all response datas preserved by concentrator.
Further, before concentrator record first response data, method also comprises: judge that whether the return time returning the first response data of concentrator is more than first scheduled time, wherein, when being more than or equal to for first scheduled time upon return, concentrator record first response data is invalid, otherwise concentrator record first response data is effective.
Further, before concentrator record first response data is invalid, method also comprises: concentrator forwards this order of checking meter again to ammeter, and when the number of times re-issuing order of checking meter exceedes pre-determined number, concentrator record first response data is invalid.
Further, before issuing the order of reading response datas all on concentrator in main website, method also comprises: when arriving the scheduled time, and main website forwards stopping by concentrator and checks meter order to ammeter, complete the stopping copy reading to ammeter data, ammeter generates the first acknowledge message; Main website receives the first acknowledge message forwarded by concentrator.
Further, before receiving in main website the first acknowledge message forwarded by concentrator, method also comprises: judge that whether the return time returning the first acknowledge message of main website is more than second scheduled time, wherein, when being more than or equal to for second scheduled time upon return, main website re-issues stopping and checking meter order, otherwise main website issues the order of reading all response datas on concentrator.
Further, main website re-issues the number of times of order of stopping checking meter when exceeding pre-determined number, and main website issues the order of reading all response datas on concentrator.
Further, on main website reading concentrator before all response datas, method also comprises: judge that whether main website reads the reading time of all response datas more than the 3rd scheduled time, wherein, when being more than or equal to for the 3rd scheduled time when reading, main website reads all response datas on concentrator again, otherwise main website starts to add up the success rate of checking meter.
Further, when the number of times that main website reads the order of response datas all on concentrator again exceedes pre-determined number, main website adds up the success rate failure of checking meter.
To achieve these goals, according to a further aspect in the invention, a kind of main website is provided.This main website comprises: the first sending module, issues order of checking meter for making main website to concentrator; Copy reading module, starts local self-timing for making concentrator and checks meter, and repeating query performs and checks meter to one or more ammeter in the given time, to read the response data that each ammeter returns, and records the reception condition of each response data; Second sending module, issues the order of reading response datas all on concentrator for making main website; Statistical module, for making main website read response datas all on concentrator, and whether effective according to all response datas, add up the success rate of checking meter, wherein, when in the effective situation of response data, main website preserves response data, and record is checked meter successfully; When response data is invalid, main website record is checked meter unsuccessfully.
To achieve these goals, according to another aspect of the invention, provide a kind of test macro of power information acquisition system, comprise: main website, for issuing to concentrator order of checking meter, and issue the order of reading response datas all on concentrator, and according to the reception condition of all response datas, add up the success rate of checking meter; Concentrator, check meter for starting local self-timing, repeating query performs and checks meter to one or more ammeter, to read the response data that each ammeter returns in the given time, and record the reception condition of each response data, the reception condition of all response datas is returned to main website; Ammeter, forwards for receiving concentrator the copy reading order of coming, and generates corresponding response data.
Further, system also comprises: collecting device, is connected with concentrator, gathers all response datas of ammeter.
By the present invention, main website is adopted to issue to concentrator order of checking meter; Concentrator starts local self-timing and checks meter, and repeating query performs and checks meter to one or more ammeter in the given time, to read multiple response datas that each ammeter returns, and records the reception condition of each response data; Main website issues the order of reading all response datas on concentrator; Main website reads all response datas on concentrator, and according to the reception condition of all response datas, add up the success rate of checking meter, wherein, when in the effective situation of response data, main website preserves response data, and record is checked meter successfully; When response data is invalid or do not receive response data, main website record is checked meter unsuccessfully, solve the problem being difficult to test the performance quality of power information acquisition system system local communication device, and then reach conveniently, investigate the efficiency of timing copy reading ammeter data in fixed time section efficiently, improve timing meter reading time copy the effect of rate and reliability.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
According to embodiments of the invention, provide a kind of method of testing and system, main website of power information acquisition system.
Fig. 1 is the structural representation of the test macro of power information acquisition system according to the embodiment of the present invention.
As shown in Figure 1, the test macro of the power information acquisition system of the embodiment of the present invention comprises main website, concentrator and ammeter.
Wherein, main website, for issuing to concentrator order of checking meter, and issues the order of reading response datas all on concentrator, and according to the reception condition of all response datas, namely adds up the response data received and whether effectively add up the success rate of checking meter; Concentrator, checks meter for starting local self-timing, and repeating query performs and checks meter to one or more ammeter in the given time, to read the response data that each ammeter returns,, and record the reception condition of each response data, the reception condition of all response datas is returned to main website; Ammeter, forwards for receiving concentrator the copy reading order of coming, and generates corresponding response data.
The test macro of the above-mentioned power information collection according to the embodiment of the present invention can also comprise: collecting device, is connected with concentrator, gathers all response datas of ammeter.
Be made up of main website, concentrator, collecting device, ammeter and data display system platform according to the test macro (or power information gathers local communication technology detection platform) that the known power information of the embodiment of the present invention gathers.
Local communication device comprises concentrator, collecting device, ammeter, form local communication network, main station system by wireless or cable network and concentrator mutual, according to fixing flow process and method of testing, according to the test set meal of customization, automatically complete the detection to local communication device, data display system, to the data analysis detected, finally forms complete test report and test result.Wherein, above-mentioned test macro comprises local communication device and apparatus for remote communication, and apparatus for remote communication comprises main website, data server and data display platform.
Wherein, main website, data server, data display platform can utilize Java to work out main interface, adopt Access database, comprise data communication function, parameter value-added tax function, equipment Management Function, data reading system function, testing of equipment function, testing scheme customization function, anti-cheating function, testing of equipment automation.
Concentrator Functional Design can perform according to state's net company technique standard-required, in communication protocol, substantially can meet the requirement of uplink communication agreement DL/T698.41 and downlink communication agreement DL/T645-1997; Meanwhile, be strengthen test Detection results, the section communication agreement of this test particular/special requirement need be met.
Collecting device can adopt external module form, also can directly be mounted to electric energy meter inside, and communication protocol meets the particular protocol requirement of DL/T645-1997 and this experiment.
Fig. 2 is the flow chart of the method for testing of power information acquisition system according to the embodiment of the present invention.As shown in Figure 2, this method of testing comprises following step S202 to step S208:
Main website in step S202, Fig. 1 issues to concentrator order of checking meter, and starts and carries out copy reading to the data of ammeter.
Concentrator in step S204, Fig. 1 starts local self-timing and checks meter, and repeating query performs and checks meter to one or more ammeter in the given time, to read multiple response datas that each ammeter returns, and records the reception condition of each described response data.Such as, in this step, concentrator can be checked meter to 100 pieces of ammeters simultaneously, reads the data on each ammeter, and the situation of the data of reading can be returned to concentrator and preserve by each ammeter.
Main website in step S206, Fig. 1 issues the order of reading all response datas on concentrator, and in embodiment, this step realizes 2 class data on main website copy reading concentrator.
Main website in step S208, Fig. 1 reads all response datas on concentrator, and according to the reception condition of all response datas, add up the success rate of checking meter, wherein, when in the effective situation of response data, main website preserves response data, and record is checked meter successfully; When response data is invalid or do not receive response data, main website record is checked meter unsuccessfully.
In this embodiment, the order of integral point timing meter reading is issued to concentrator by using main website, concentrator receives this order and starts local software afterwards and carry out the function that self-timing checks meter, what namely realize repetitive cycling in the given time carries out copy reading to all ammeter datas in system, and concentrator preserve the data of each copy reading return results accept situation, namely whether record to preserve the structure of checking meter that at every turn returns effective, and the copy reading to ammeter is stopped when the scheduled time arrives, now main website starts to read all records of checking meter that concentrator is preserved, this is checked meter and is recorded as correspondence and checks meter the success of checking meter of order or the record of failure, main website is by analyzing successful data of checking meter in the given time, the reality counting integral point timing meter reading copies rate, the performance quality realizing carrying out local communication device timing copy reading ammeter process is tested, with improve timing meter reading time copy rate and reliability, ensure in daily most of periods, the copy reading field data that system high efficiency is stable.Wherein, effective response data is more, illustrates that the performance of local communication device is better, otherwise, illustrate that the performance of local communication device is poorer.Thus, by to success rate simple, test efficiently, can facilitate, investigate efficiently the efficiency of timing copy reading ammeter data in fixed time section, improve timing meter reading time copy rate and reliability, guarantee from now on timing copy reading resident's power information and other data time, copy reading field data is efficient and stable.
In the embodiment of the present invention, concentrator is after receiving the order starting timing meter reading, start to start local self-timing to check meter, repeating query performs and checks meter to each ammeter in system in the given time, and read multiple response datas that all ammeters return and comprise: first checks meter step: concentrator forwards and checks meter order to ammeter, complete the copy reading to ammeter data, and obtain the first response data; Concentrator reads the first response data, and records the reception condition of the first response data; Repeat first to each ammeter in the given time to check meter step, the reception condition of all response datas preserved by concentrator.In this step, main website starts concentrator and starts self-timing by issuing order of checking meter and check meter, concentrator completes checking meter to ammeter within the time that a keeper sets, in this time range, concentrator repeats the work of checking meter to obtain multiple response data, and whether record the response data that each ammeter returns effective, effective response data represents checks meter successfully, otherwise represents and check meter unsuccessfully.
In above-described embodiment before concentrator record first response data, method can also comprise: judge that whether the return time returning the first response data of concentrator is more than first scheduled time, wherein, when being more than or equal to for first scheduled time upon return, concentrator record first response data is invalid, otherwise concentrator record first response data is effective.Wherein, before concentrator record first response data is invalid, concentrator forwards this order of checking meter again to ammeter, and when the number of times re-issuing order of checking meter exceedes pre-determined number, concentrator record first response data is invalid.In this step, whether the response data that concentrator returns checking meter at every turn effectively carries out record, for the step of single copy reading failure, carries out repetition copy reading action, but the number of times repeated being limited, checking meter unsuccessfully to exceeding this time of recording that number of repetition also successfully do not check meter.
In addition, the present embodiment issues the order of reading response datas all on concentrator in main website before, method can also comprise: when arriving the scheduled time, main website forwards stopping by concentrator and checks meter order to ammeter, complete the stopping copy reading to ammeter data, ammeter generates the first acknowledge message; Main website receives the first acknowledge message forwarded by concentrator.
Preferably, before receiving in main website the first acknowledge message forwarded by concentrator, method can also comprise: judge that whether the return time returning the first acknowledge message of main website is more than second scheduled time, wherein, when being more than or equal to for second scheduled time upon return, main website re-issues stopping and checking meter order, otherwise, main website issues the order of reading all response datas on concentrator, wherein, main website re-issues the number of times of order of stopping checking meter when exceeding pre-determined number, and main website issues the order of reading all response datas on concentrator.
In above-described embodiment, main website issues to concentrator and stops copy reading order, and obtains all response datas, and now main website starts and whether effectively adds up the success rate of checking meter according to each response data.
To read on concentrator before all response datas in main website in the present embodiment, method can also comprise: judge that whether main website reads the reading time of all response datas more than the 3rd scheduled time, wherein, when being more than or equal to for the 3rd scheduled time when reading, main website reads all response datas on concentrator again, otherwise main website starts to add up the success rate of checking meter.
Preferably, when the number of times that main website reads the order of response datas all on concentrator again exceedes pre-determined number, main website adds up the success rate failure of checking meter.
The response data meeting respective conditions in above-described embodiment represents that this response data is effective, otherwise, if the response data returned does not meet corresponding conditions (such as, return the time time-out of response data, the response data returning mistake or main website to interrupt returning this response data etc.), then represent that above-mentioned response data is invalid, the process of checking meter of main website recording responses data invalid is failed.
The above embodiment of the present invention by main station system wherein concentrator perform the process of timing meter reading, timing copy reading record is returned to main website by concentrator to carry out checking meter the statistics of success rate, due to concentrator be not by check meter at every turn fructufy time return to main website, but the record in accumulation certain hour returns to main website and adds up, improve efficiency and the accuracy of test, all in the scheduled time are recorded as copy reading 2 class data, test process is actual is the quantity of valid data in test 2 class data, thus obtains the success rate of timing copy reading.
The success rate of this testing process of checking meter can be set as, trigger concentrator by main station system and perform timing meter reading function, concentrator repeats the data of all ammeters of copy reading in the given time, and whether successfully to record copy reading, until receive the stopping copy reading order of main website when the scheduled time arrives and stop timing copy reading function, be back to main website after all being recorded in is stopped copy reading, advocate war and start to carry out successful rate statistics.
Preferably, the method for testing specific embodiment step of power information collection of the present invention is as follows:
A) order of integral point timing meter reading is issued by main website.Main website sends to concentrator and restarts order of checking meter, in waiting for 40 seconds, concentrator can return and confirm or deny restarting to check meter to main website, main website can be returned as denied and deny order, or after 40s, main website thinks automatically/nonreply/and send and unsuccessfully order, now main website can retransmit 3 times, main website is as received confirmation (namely concentrator performs this order), interval 5h (this testing time can according to table quantity number arrange, be set to 5h herein), can step B be performed).
B) concentrator starts local software automatic data logging.Main website sends stopping to concentrator and to check meter order, in waiting for 40 seconds, concentrator can return to main website confirmation or deny that stopping is checked meter, main website can be returned as denied and deny order, or after 40s, main website thinks automatically/nonreply/send and unsuccessfully order, now main website can retransmit 3 times, main website is as received confirmation, and interval 1S, can perform step C).
C) the automatic recording timing of local software is checked meter record.Main website sends copy reading 2 class data command to concentrator, in waiting for 40 seconds, concentrator can return to main website confirmation or deny copy reading 2 class data command, main website can be returned as denied and deny order, or after 40s, main website thinks automatically/nonreply/and send and unsuccessfully order, now main website can retransmit 3 times, main website is as received confirmation, and after the complete 2 class data of copy reading, test terminates.
D) main website copies and accepts the data record of concentrator and analyzes, and according to the reply data statistics success rate in above-mentioned steps.
It should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
From above description, can find out, present invention achieves following technique effect: formulate the collection construction scheme that low pressure public affairs become user, solve low-voltage customer acquisition mode indefinite, run the problem being difficult to effectively carry out, the practical work of collection of specification low-voltage customer, the building-up work of Beijing area " all standing, full collection, control in full " power information acquisition system will be accelerated, meet the construction requirements of Guo Wang company strong intelligent marketing system first stage.
Formulate clear and definite local communication technology standard, technical foundation is established in reasonable stable development for Beijing area acquisition technique from now on, for strengthening providing foundation to the technical management of local communication product, realizing the consistency of various product technical standard, suiting the demand that company's acquisition system is built.
Formulate complete local communication technology detection method, carry out the network access testing to all kinds of local communication product, to effectively pass judgment on communication performance and the effect of various types of communication product, form the evaluation result quantized, technical basis is provided for company carries out product type selection, ensure that bid product meets company technique requirement, meet the construction needs of low-voltage customer acquisition system.
As can be seen from the above description, the present invention can facilitate, test the performance quality of power information acquisition system local communication device efficiently.
According to embodiments of the invention, provide a kind of main website, as shown in Figure 3, this main website can comprise the first sending module 302, copy reading module 304, second sending module 306 and statistical module 308.
Wherein, the first sending module 302, issues to concentrator order of checking meter for making main website; Copy reading module 304, starts local self-timing for making concentrator and checks meter, and repeating query performs and checks meter to one or more ammeter in the given time, to read the response data that each ammeter returns, and records the reception condition of each response data; Second sending module 306, issues the order of reading response datas all on concentrator for making main website; Statistical module 308, for making main website read response datas all on concentrator, and whether effective according to all response datas, add up the success rate of checking meter, wherein, when in the effective situation of response data, main website preserves response data, and record is checked meter successfully; When response data is invalid, main website record is checked meter unsuccessfully.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.