Summary of the invention
For power information acquisition system in correlation technique, the performance quality problem of testing of power purchase and parameter setting information issued to local communication device and propose the present invention, for this reason, main purpose of the present invention is the method for testing, the Apparatus and system 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 ammeter optimum configurations order for carrying out optimum configurations to ammeter by concentrator to ammeter; Main website receives the response data from ammeter by concentrator, according to the reception condition of response data, adds up the success rate that main website issues ammeter parameter, wherein, when in the effective situation of response data, this main website preserves response data, and records the success of electricity table parameter; When response data is invalid or do not receive response data, main website records the failure of generating table parameter.
Further, main website receives from the response data of ammeter by concentrator, according to the reception condition of response data, adds up the success rate that main website issues ammeter parameter and comprises: main website issues and reads ammeter number order, and obtains the first response data; In the effective situation of the first response data, this main website issues the first setting command by concentrator to ammeter, and obtains the second response data; In the effective situation of the second response data, this main website issues the first reading order by concentrator to ammeter, and obtains the 3rd response data; In the effective situation of the 3rd response data, main website preserves the 3rd response data, and records the success of generating table parameter; Wherein, in the first response data, the second response data, the 3rd response data, any one or more response data is invalid, main website records the failure of generating table parameter.
Further, before acquisition first response data, method also comprises: judge that whether the return time returning the first response data of main website is more than first scheduled time, wherein, be more than or equal to for first scheduled time upon return, main website records the failure of generating table parameter, otherwise main website issues the first setting command.
Further, before main website records the failure of generating table parameter, method also comprises: main website re-issues and reads ammeter number order, if re-issue in main website the number of times reading ammeter number order to exceed pre-determined number, main website records the failure of generating table parameter.
Further, before acquisition second response data, method also comprises: judge that whether the return time returning the second response data of main website is more than second scheduled time, wherein, be more than or equal to for second scheduled time upon return, main website records the failure of generating table parameter, otherwise main website issues the first reading order.
Further, before main website records the failure of generating table parameter, method also comprises: main website re-issues the first setting command, if the number of times that main website re-issues the first setting command exceedes pre-determined number, main website records the failure of generating table parameter.
Further, before acquisition the 3rd response data, method also comprises: judge that whether the return time returning the 3rd response data of main website is more than the 3rd scheduled time, wherein, be more than or equal to for the 3rd scheduled time upon return, main website records the failure of generating table parameter, otherwise main website records the success of generating table parameter.
Further, before main website records the failure of generating table parameter, method also comprises: main website re-issues the first reading order, if the number of times that main website re-issues the first reading order exceedes pre-determined number, main website records the failure of generating table parameter.
Further, before main website obtains any one response data in the first response data, the second response data, the 3rd response data, method also comprises: main website sends to concentrator and ceases and desist order; Main website receives from the acknowledge message of concentrator, and records main website and issue the failure of ammeter parameter.
To achieve these goals, according to a further aspect in the invention, a kind of testing apparatus of power information acquisition system is provided.This device comprises: sending module, issues ammeter optimum configurations order for carrying out optimum configurations to ammeter for making main website by concentrator to ammeter; Statistical module, for main website by the response data of concentrator reception from ammeter, according to the reception condition of response data, add up the success rate that main website issues ammeter parameter, wherein, when in the effective situation of response data, make main website preserve response data, and record the success of electricity table parameter; When response data is invalid, main website is made to record the failure of generating table parameter.
To achieve these goals, according to another aspect of the invention, provide a kind of test macro of power information acquisition system, this system comprises: main website, for issuing the order of ammeter optimum configurations by concentrator to ammeter, and statistics issues the success rate of ammeter parameter command, ammeter parameter comprises: read ammeter number order, arrange number order of period rate and read number order of period rate; Concentrator, for receiving and forwarding the ammeter parameter of main website, and returns response data to main website; Ammeter, forwards for receiving concentrator the ammeter parameter of coming, and generates corresponding response data, response data is transmitted to concentrator.
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 ammeter optimum configurations order for carrying out optimum configurations to ammeter by concentrator to ammeter; Main website receives the response data from ammeter by concentrator, according to the reception condition of response data, adds up the success rate that main website issues ammeter parameter, wherein, when in the effective situation of response data, this main website preserves response data, and records the success of electricity table parameter; When response data is invalid or do not receive response data, main website records the failure of generating table parameter, solve the problem that in correlation technique, power information acquisition system is tested the performance quality that local communication device issues power purchase and parameter setting information, and then reach and investigate power information acquisition system conveniently, efficiently and issue power purchase and parameter setting information, improve and the effect that ammeter parameter obtains success rate and reliability is set.
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, main website, concentrator and ammeter is comprised according to the test macro of the power information acquisition system of the embodiment of the present invention.
Wherein, main website, for issuing the order of ammeter optimum configurations by concentrator to ammeter, and statistics issues the success rate of ammeter parameter command, and ammeter parameter comprises: read ammeter number order, arrange number order of period rate and read number order of period rate; Concentrator, for receiving and forwarding the ammeter parameter of main website, and returns response data to main website; Ammeter, forwards for receiving concentrator the ammeter parameter of coming, and generates corresponding response data, response data is transmitted to concentrator.
The test macro of the above-mentioned power information acquisition system according to the embodiment of the present invention can also comprise: collecting device, is connected with concentrator, gathers all response datas of ammeter.
Test macro (or power information gathers local communication technology detection platform) according to the known power information acquisition system of the embodiment of the present invention is made up of main website, concentrator, collecting device, ammeter and data display system platform.
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 S204:
Main website in step S202, Fig. 1 issues ammeter optimum configurations order for carrying out optimum configurations to ammeter by concentrator to ammeter, carries out optimum configurations to ammeter, and ammeter generates and corresponding arranges structure, and responsively data return to concentrator.
Whether the main website in step S204, Fig. 1 receives the response data from ammeter by concentrator, effective according to response data, add up the success rate that main website issues ammeter parameter, wherein, when in the effective situation of response data, this main website preserves response data, and records the success of electricity table parameter; When response data is invalid, main website records the failure of generating table parameter.
In this embodiment, ammeter parameter command is issued to concentrator batch by using main website, this ammeter parameter command comprises the various parameters in practical power systems, it can be ammeter number, time the information such as segment number or frequency, ammeter parameter is pass-through to ammeter by concentrator, ammeter obtains according to optimum configurations ammeter and arranges result, and return to main website by by arranging the response data that result forms by concentrator, the state of main website to response data is assessed, obtain the success rate issuing ammeter parameter, the carrying out realized local communication device issues in reception the performance quality that response parameter in parametric procedure issues is tested.Wherein, the success rate that main website obtains the data of ammeter response ammeter parameter is higher, 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 investigate power information acquisition system and issue power purchase and parameter setting information, raising arranges ammeter parameter and obtains success rate and reliability, guarantees that resident's power purchase information issues, performs real-time and the reliability of bidding price adjustment from now on.
In the embodiment of the present invention, main website issues to concentrator batch and arranges the order of ammeter optimum configurations, concentrator forwards described ammeter parameter to ammeter, ammeter acquisition ammeter parameter is data and alignment processing of carrying out meets with a response, main website receives the response data from ammeter by concentrator, whether effectively the success rate issuing ammeter parameter according to the statistics main website of response data can comprise: main website issues and reads ammeter number order, and obtains the first response data; In the effective situation of the first response data, this main website issues the first setting command by concentrator to ammeter, and obtains the second response data; In the effective situation of the second response data, this main website issues the first reading order by concentrator to ammeter, and obtains the 3rd response data; In the effective situation of the 3rd response data, main website preserves the 3rd response data, and record the success of generating table parameter, wherein, in the first response data, the second response data, the 3rd response data, any one or more response data is invalid, main website records the failure of generating table parameter.In this embodiment, ammeter parameter can comprise ammeter number, arranges period rate number and read period rate number.
In above-described embodiment before acquisition first response data, method can also comprise: judge that whether the return time returning the first response data of main website is more than first scheduled time, wherein, be more than or equal to for first scheduled time upon return, main website records the failure of generating table parameter, otherwise main website issues the first setting command.Wherein, before main website records the failure of generating table parameter, method also comprises: main website re-issues and reads ammeter number order, if re-issue in main website the number of times reading ammeter number order to exceed pre-determined number, main website records the failure of generating table parameter.In this embodiment, if return the first response data time-out, system starts to re-issue ammeter parameter, if also effectively do not responded, so system can repeat to send this ammeter parameter again, and the number of times repeating to send is restricted, if exceed the number of times of restriction, main website then records the flow process failure that this time issues ammeter parameter, if successfully issue the parameter in this step, main website then issues next step parameter.
In addition, the present embodiment is before acquisition second response data, method can also comprise: judge that whether the return time returning the second response data of main website is more than second scheduled time, wherein, be more than or equal to for second scheduled time upon return, main website records the failure of generating table parameter, otherwise main website issues the first reading order.Wherein, before main website records the failure of generating table parameter, method can also comprise: main website re-issues the first setting command, if the number of times that main website re-issues the first setting command exceedes pre-determined number, main website records the failure of generating table parameter.The same reason, if successfully do not return response data in the scheduled time, or the number of times of repetitive operation exceedes pre-determined number, and so this time issues the flow process failure of ammeter parameter, otherwise enters next step operation.
In the present embodiment before acquisition the 3rd response data, method can also comprise: judge that whether the return time returning the 3rd response data of main website is more than the 3rd scheduled time, wherein, be more than or equal to for the 3rd scheduled time upon return, main website records the failure of generating table parameter, otherwise main website records the success of generating table parameter.Wherein, before main website records the failure of generating table parameter, method also comprises: main website re-issues the first reading order, if the number of times that main website re-issues the first reading order exceedes pre-determined number, main website records the failure of generating table parameter.In this embodiment, if successfully do not return response data in the scheduled time, or the number of times of repetitive operation exceedes pre-determined number, and so this time issues the flow process failure of ammeter parameter, otherwise terminates testing process, records the flow process success that this time issues ammeter parameter.
Preferably, before main website obtains any one response data in the first response data, the second response data, the 3rd response data, method can also comprise: main website sends to concentrator and ceases and desist order; Main website receives from the acknowledge message of concentrator, and records main website and issue the failure of ammeter parameter.
The above embodiment of the present invention is carried out batch by main station system and is issued ammeter parameter, ammeter parameter is pass-through to ammeter by concentrator, and be pass-through to main station system by arranging result, test data (ammeter parameter) in this testing process can use corresponding tentation data to test, and this tentation data is mainly used to the ammeter parameter after the encryption replacing issuing in real system.
This success rate issuing the testing process of parameter can be set as, carry out batch setting ammeter by main station system and operate, concentrator is back to local software by when arranging fructufy, and local software display arranges ammeter reply data and makes successful rate statistics.Wherein, concentrator arranges the order of every block ammeter for three times by issuing, calculating and setting ammeter success rates.
Preferably, the method for testing specific embodiment step of power information acquisition system of the present invention is as follows:
A) order of reading ammeter table number is issued by main website batch.Main website sends the reading table number order in data retransmission to concentrator, in waiting for 40 seconds, concentrator can return to main website confirmation or deny data retransmission, 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 (namely main website reads table number by the forwarding of concentrator), and interval 1S, can perform step B).
B) main website issues after receiving correct response and arranges period rate number order.The period rate number that arranges that main website sends in data retransmission to concentrator is ordered, in waiting for 40 seconds, concentrator can return to main website confirmation or deny data retransmission, 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 (namely main website to be provided with the period rate number of electric energy meter by the forwarding of concentrator), and interval 1S, can perform step C).
C) main website issues after receiving correct response and reads period rate number order.Main website sends the reading period rate number order in data retransmission to concentrator, in waiting for 40 seconds, concentrator can return to main website confirmation or deny data retransmission, 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 main website is by the period rate number of the forwarding reading power meters of concentrator), and testing process terminates.
D) main website preserves data after receiving correct response, 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 testing apparatus of power information acquisition system, as shown in Figure 3, the testing apparatus of this power information acquisition system can comprise sending module 302, statistical module 304.
Wherein, sending module 302 issues ammeter optimum configurations order for ammeter carry out optimum configurations by concentrator to ammeter for making main website; Statistical module 304 is received from the response data of ammeter by concentrator for main website, according to the reception condition of response data, adds up the success rate that main website issues ammeter parameter, wherein, when in the effective situation of response data, make main website preserve response data, and record the success of electricity table parameter; When response data is invalid, main website is made to record the failure of generating table parameter.
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.