Summary of the invention
To power information acquisition system in the correlation technique local communication device is issued and to purchase the problem that electricity and the performance quality of parameter setting information test and propose the present invention; For this reason; Main purpose of the present invention is to provide a kind of method of testing, Apparatus and system of power information acquisition system, to address the above 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 the ammeter parameter that is used for ammeter is carried out the parameter setting through concentrator to ammeter order is set; Main website receives the response data from ammeter through concentrator, according to the reception condition of response data, adds up the success rate that main website issues the ammeter parameter; Wherein, Under the effective situation of response data, this main website preserves response data, and notes the success of electricity table parameter; Invalid or do not receive under the situation of response data when response data, main website notes the failure of generating table parameter.
Further, main website receives the response data from ammeter through concentrator, and according to the reception condition of response data, add up the success rate that main website issues the ammeter parameter and comprise: main website issues and reads electric table number order, and obtains first response data; Under the effective situation of first response data, this main website issues first through concentrator to ammeter order is set, and obtains second response data; Under the effective situation of second response data, this main website issues first reading order through concentrator to ammeter, and obtains the 3rd response data; Under the effective situation of the 3rd response data, main website preserves the 3rd response data, and notes the success of generating table parameter; Wherein, under the situation that any one or more response datas are invalid in first response data, second response data, the 3rd response data, main website notes the failure of generating table parameter.
Further; Before obtaining first response data, method also comprises: whether the return time of judging first response data of returning main website surpassed for first scheduled time, wherein; When return time more than or equal to first scheduled time; Main website notes the failure of generating table parameter, otherwise main website issues first order is set.
Further, before main website noted the failure of generating table parameter, method also comprised: main website issues again and reads electric table number order, surpasses pre-determined number if issue the number of times that reads electric table number order again in main website, and main website notes the failure of generating table parameter.
Further; Before obtaining second response data, method also comprises: whether the return time of judging second response data of returning main website surpassed for second scheduled time, wherein; When return time more than or equal to second scheduled time; Main website notes the failure of generating table parameter, otherwise main website issues first reading order.
Further, before main website noted generating table parameter failure, method also comprises: main website issued first again order is set, if main website issue again first order is set number of times surpass pre-determined number, main website notes the failure of generating table parameter.
Further; Before obtaining the 3rd response data, method also comprises: whether the return time of judging the 3rd response data of returning main website surpassed for the 3rd scheduled time, wherein; When return time more than or equal to the 3rd scheduled time; Main website notes the failure of generating table parameter, otherwise main website notes the success of generating table parameter.
Further, before main website noted the failure of generating table parameter, method also comprises: main website issued first reading order again, surpassed pre-determined number if main website issues the number of times of first reading order again, and main website notes the failure of generating table parameter.
Further, before main website obtained any response data in first response data, second response data, the 3rd response data, method also comprised: main website sends to concentrator and ceases and desist order; Main website receives the affirmation message from concentrator, and the record main website issues 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 is used to make main website to issue the ammeter parameter that is used for ammeter is carried out the parameter setting through concentrator to ammeter order is set; Statistical module is used for main website and receives the response data from ammeter through concentrator, according to the reception condition of response data; Add up main website and issue the success rate of ammeter parameter, wherein, under the effective situation of response data; Make main website preserve response data, and note the success of electricity table parameter; Under the invalid situation of response data, make main website note the failure of generating table parameter.
To achieve these goals; According to another aspect of the invention; A kind of test macro of power information acquisition system is provided, and this system comprises: main website is used for issuing the ammeter parameter through concentrator to ammeter order is set; And statistics issues the success rate of ammeter parameter command, and the ammeter parameter comprises: read electric table number order, the period rate is set number orders and read number order of period rate; Concentrator is used to receive and transmit the ammeter parameter of main website, and returns response data to main website; Ammeter is used to receive concentrator and transmits the ammeter parameter of coming, and generates the corresponding response data, and response data is transmitted to concentrator.
Further, system also comprises collecting device, is connected with concentrator, gathers all response datas of ammeter.
Through the present invention, adopt main website to issue the ammeter parameter that is used for ammeter is carried out the parameter setting to ammeter order is set through concentrator; Main website receives the response data from ammeter through concentrator, according to the reception condition of response data, adds up the success rate that main website issues the ammeter parameter; Wherein, Under the effective situation of response data, this main website preserves response data, and notes the success of electricity table parameter; Invalid or do not receive under the situation of response data when response data; Main website notes the failure of generating table parameter; Solved power information acquisition system in the correlation technique local communication device has been issued the problem that the performance quality of purchasing electricity and parameter setting information is tested; And then reached convenience, investigate the power information acquisition system efficiently and issue and purchase electricity and parameter setting information, improve the effect that the ammeter parameter gets success rate and reliability is set.
Embodiment
Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.Below with reference to accompanying drawing and combine embodiment to specify the present invention.
According to embodiments of the invention, a kind of method of testing and system, main website of power information acquisition system is provided.
Fig. 1 is the structural representation according to the test macro of the power information acquisition system of the embodiment of the invention.
As shown in Figure 1, comprise main website, concentrator and ammeter according to the test macro of the power information acquisition system of the embodiment of the invention.
Wherein, main website is used for issuing the ammeter parameter through concentrator to ammeter order is set, and statistics issues the success rate of ammeter parameter command, and the ammeter parameter comprises: read electric table number order, the period rate is set number orders and read number order of period rate; Concentrator is used to receive and transmit the ammeter parameter of main website, and returns response data to main website; Ammeter is used to receive concentrator and transmits the ammeter parameter of coming, and generates the corresponding response data, and response data is transmitted to concentrator.
The test macro of above-mentioned power information acquisition system according to the embodiment of the invention can also comprise: collecting device, be connected with concentrator, and gather all response datas of ammeter.
The test macro (perhaps power information is gathered local communication technology detection platform) that can know the power information acquisition system according to the embodiment of the invention is that platform is formed by main website, concentrator, collecting device, ammeter and data display.
Local communication device comprises concentrator, collecting device, ammeter; Constitute local communication network, main station system is through wireless or cable network is mutual with concentrator, according to the flow process and the method for testing of fixing; Test set meal according to customization; Automatically accomplish the detection to local communication device, the data display system analyzes the data that detect, and 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 the Access database, comprise data communication function, parameter value-added tax function, Equipment Management Function, data copy reading function, testing of equipment function, testing scheme customization function, anti-cheating function, testing of equipment automation.
The design of concentrator function can be netted the company technique standard-required according to state and carried out, and aspect communication protocol, can satisfy the requirement of uplink communication agreement DL/T698.41 and downlink communication agreement DL/T645-1997 basically; Simultaneously, detect effect, need satisfy the part communication protocol of this test specific (special) requirements for strengthening test.
Collecting device can adopt external modular form, also can directly be mounted to electric energy meter inside, and communication protocol satisfies the particular protocol requirement of DL/T645-1997 and this experiment.
Fig. 2 is the flow chart according to the method for testing of the power information acquisition system of the embodiment of the invention.As shown in Figure 2, this method of testing comprises that following step S202 is to step S204:
Step S202, the main website among Fig. 1 issues the ammeter parameter that is used for ammeter is carried out the parameter setting through concentrator to ammeter order is set, and ammeter is carried out the parameter setting, and ammeter generates the corresponding structure that is provided with, and returns to concentrator as response data.
Step S204, whether the main website among Fig. 1 receives the response data from ammeter through concentrator, effective according to response data; Add up main website and issue the success rate of ammeter parameter, wherein, under the effective situation of response data; This main website preserves response data, and notes the success of electricity table parameter; Under the invalid situation of response data, main website notes the failure of generating table parameter.
In this embodiment; Through using main website to issue the ammeter parameter command in batches to concentrator, this ammeter parameter command comprises the various parameters in the practical power systems, can be electric table number, the time information such as segment number or frequency; Concentrator with ammeter parameter transparent transmission to ammeter; Ammeter is provided with ammeter according to parameter and obtains the result is set, and will return to main website through concentrator by the response data that the result constitutes is set, and main website assesses the state of response data; Obtain issuing the success rate of ammeter parameter, realize local communication device is issued fine or not the testing of performance that response parameter issues in the parametric procedure in reception.Wherein, the success rate of data that main website obtains ammeter response ammeter parameter is high more, explains that the performance of local communication device is good more, otherwise, explain that the performance of local communication device is poor more.Thereby; Through to success rate simply, efficiently the test; Can investigate the power information acquisition system and issue and purchase electricity and parameter setting information, improve and the ammeter parameter is set gets success rate and reliability, guarantee that the resident will purchase real-time and the reliability that electrical information issued, carried out the electricity price adjustment from now on.
In the embodiment of the invention; Main website issues in batches to concentrator and the ammeter parameter is set order is set; Concentrator is transmitted said ammeter parameter to ammeter, and ammeter obtains the ammeter parameter and carries out the corresponding position and manage the data that meet with a response, and main website receives the response data from ammeter through concentrator; Whether effectively adding up the success rate that main website issues the ammeter parameter and can comprise according to response data: main website issues and reads electric table number order, and obtains first response data; Under the effective situation of first response data, this main website issues first through concentrator to ammeter order is set, and obtains second response data; Under the effective situation of second response data, this main website issues first reading order through concentrator to ammeter, and obtains the 3rd response data; Under the effective situation of the 3rd response data; Main website preserves the 3rd response data; And it is successful to note generating table parameter; Wherein, under the situation that any one or more response datas are invalid in first response data, second response data, the 3rd response data, main website notes the failure of generating table parameter.The ammeter parameter can comprise electric table number, period rate number is set and reads period rate number among this embodiment.
In the foregoing description before obtaining first response data; Method can also comprise: whether the return time of judging first response data of returning main website surpassed for first scheduled time; Wherein, when return time more than or equal to first scheduled time, main website notes generating table parameter failure; Otherwise main website issues first order is set.Wherein, before main website noted the failure of generating table parameter, method also comprised: main website issues again and reads electric table number order, surpasses pre-determined number if issue the number of times that reads electric table number order again in main website, and main website notes the failure of generating table parameter.Among this embodiment, if it is overtime to return first response data, system begins to issue again electric table number parameter; If also effectively do not responded, can repeat once more to send should electricity table number parameter in system so, and the number of times that repeats to send has restriction; If surpass the number of times of restriction; Main website then writes down the flow process failure that this time issues the ammeter parameter, if successfully issue the parameter in this step, main website then issues next step parameter.
In addition; Present embodiment is before obtaining second response data, and method can also comprise: whether the return time of judging second response data of returning main website surpassed for second scheduled time, wherein; When return time more than or equal to second scheduled time; Main website notes the failure of generating table parameter, otherwise main website issues first reading order.Wherein, before main website noted generating table parameter failure, method can also comprise: main website issued first again order is set, if main website issue again first order is set number of times surpass pre-determined number, main website notes the failure of generating table parameter.The same reason, if successfully do not return response data at the fixed time, perhaps the number of times of repetitive operation surpasses pre-determined number, this time issues the flow process failure of ammeter parameter so, otherwise gets into next step operation.
In the present embodiment before obtaining the 3rd response data; Method can also comprise: whether the return time of judging the 3rd response data of returning main website surpassed for the 3rd scheduled time; Wherein, when return time more than or equal to the 3rd scheduled time, main website notes generating table parameter failure; Otherwise main website notes the success of generating table parameter.Wherein, before main website noted the failure of generating table parameter, method also comprises: main website issued first reading order again, surpassed pre-determined number if main website issues the number of times of first reading order again, and main website notes the failure of generating table parameter.Among this embodiment, if successfully do not return response data at the fixed time, perhaps the number of times of repetitive operation surpasses pre-determined number, and this time issues the flow process failure of ammeter parameter so, otherwise finishes testing process, writes down the flow process success that this time issues the ammeter parameter.
Preferably, before main website obtained any response data in first response data, second response data, the 3rd response data, method can also comprise: main website sends to concentrator and ceases and desist order; Main website receives the affirmation message from concentrator, and the record main website issues the failure of ammeter parameter.
The above embodiment of the present invention is carried out batch by main station system and is issued the ammeter parameter; Concentrator with ammeter parameter transparent transmission to ammeter; And transparent transmission will be set as a result to main station system; Test data in this testing process (ammeter parameter) can use corresponding tentation data to test, the ammeter parameter after the encryption that this tentation data mainly is used for replacing issuing in the real system.
This success rate that issues the testing process of parameter can be set at, and carries out the operation of batch setting ammeter by main station system, and concentrator is back to local software in the time of will fructufy being set, and the local software demonstration is provided with the ammeter reply data and makes power statistic.Wherein, concentrator is provided with every ammeter order for three times, calculating and setting ammeter success ratio through issuing.
Preferably, the embodiment step that the method for testing of power information acquisition system of the present invention is concrete is following:
A) issue in batches by main website and read ammeter table number order.Main website sends to concentrator and reads the table number order in the data forwarding, waits for 40 seconds in, concentrator can return to the main website affirmation or deny data forwarding; As deny returning main website and deny order, or behind the 40s, main website is thought/no response/transmission failure order automatically; This moment, main website can retransmit 3 times; Main website is as receiving affirmation (be main website through concentrator forwarding read table number), and 1S at interval can execution in step B).
B) issue after main website receives and correctly replys period rate data command is set.Main website sends to concentrator and in the data forwarding number order of period rate is set, waits for 40 seconds in, concentrator can return to the main website affirmation or deny data forwarding; As deny returning main website and deny order, or behind the 40s, main website is thought/no response/transmission failure order automatically; This moment, main website can retransmit 3 times; Main website is as receiving affirmation (forwarding that is main website through concentrator is provided with the period rate number of electric energy meter), and 1S at interval can execution in step C).
C) issue after main website receives and correctly replys and read period rate data command.Main website sends to concentrator and reads number order of period rate in the data forwarding, waits for 40 seconds in, concentrator can return to the main website affirmation or deny data forwarding; As deny to return main website and deny order; Or behind the 40s, main website thinks automatically/no response/transmission failure order that this moment, main website can retransmit 3 times; Main website is as receiving affirmation (be main website read the period rate number of electric energy meter through the forwarding of concentrator), and testing process finishes.
D) main website receives and correctly replys back preservation data, and according to the statistics of the reply data in above-mentioned steps success rate.
Need to prove; Can in computer system, carry out in the step shown in the flow chart of accompanying drawing such as a set of computer-executable instructions; And; Though logical order has been shown in flow chart, in some cases, can have carried out step shown or that describe with the order that is different from here.
From above description; Can find out; The present invention has realized following technique effect: formulate the public user's of change of low pressure collection construction scheme, solve the problem that the low-voltage customer acquisition mode is indeterminate, operation is difficult to effectively carry out, the collection practicability work of standard low-voltage customer; To accelerate the building-up work of Beijing area " all standing, full collection, control in full " power information acquisition system, satisfy state's construction requirements of net strong intelligent marketing system phase I of company.
Formulate clear and definite local communication technology standard; To establish technical foundation for the reasonable stable development of Beijing area acquisition technique from now on; For strengthening foundation being provided to the technical management of local communication products, realize the consistency of various product technical standard, suit the demand that company's acquisition system is built.
Formulate complete local communication technology detection method; Carry out network access testing to all kinds of local communication products; With the communication performance of effectively passing judgment on the various types of communication product and effect, form the evaluation result that quantizes, for company carries out the product type selecting technical basis is provided; Guarantee that the bid product meets the company technique requirement, satisfies the construction needs of low-voltage customer acquisition system.
From above description, can find out that the present invention can make things convenient for, efficiently the performance quality of power information acquisition system local communication device tested.
According to embodiments of the invention, a kind of testing apparatus of power information acquisition system is provided, 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 is used to make main website to issue the ammeter parameter that is used for ammeter is carried out the parameter setting through concentrator to ammeter order is set; Statistical module 304 is used for main website and receives the response data from ammeter through concentrator, according to the reception condition of response data, adds up the success rate that main website issues the ammeter parameter; Wherein, Under the effective situation of response data, make main website preserve response data, and note the success of electricity table parameter; Under the invalid situation of response data, make main website note the failure of generating table parameter.
Obviously, it is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize with the general calculation device; They can concentrate on the single calculation element; Perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element; Thereby; Can they be stored in the storage device and carry out, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize by calculation element.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.