Summary of the invention
To the problem of in the correlation technique power information acquisition system being tested the performance quality of the automatic registering functional of local communication device and propose the present invention; For this reason; Main purpose of the present invention is to provide a kind of method of testing and system, main website 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 automatic log-in command through concentrator to one or more ammeters; Main website receives first confirmation that ammeter returns; Main website issues reading order through concentrator to one or more ammeters; Obtain log-on data, and, add up the main website success rate of registration automatically according to the reception condition of log-on data from each ammeter; Wherein, Under the effective situation of the log-on data that main website receives, this main website preserves log-on data, and is recorded as automatically and succeeds in registration; Invalid or do not receive under the situation of log-on data in log-on data, main website is recorded as automatic registration failure.
Further; After first confirmation that main website reception ammeter returns, method also comprises: whether the return time of judging first confirmation of returning main website surpassed for first scheduled time, wherein; When first confirmation more than or equal to first scheduled time; Main website is recorded as automatic registration failure, otherwise main website issues reading order.
Further, after main website was recorded as automatic registration failure, method also comprised: main website is registration automatically again, if in main website when the number of times of registration surpasses pre-determined number automatically again, main website writes down automatic registration failure, otherwise main website issues reading order.
Further, after the log-on data of obtaining from ammeter, method also comprises: whether the return time of judging the log-on data of returning main website surpassed for second scheduled time; Wherein, When return time more than or equal to second scheduled time, main website is recorded as automatic registration failure, otherwise; Main website preserves the log-on data that receives, and the automatic log-in command that record issues is successful.
Further; After main website was recorded as automatic registration failure, method also comprised: main website issues reading order again, if the number of times that issues reading order again in main website is above pre-determined number; The log-on data that main website receives is invalid, and is recorded as automatic registration failure.
Further, main website through concentrator before one or more ammeters issue automatic log-in command, method also comprises: main website sends to concentrator and empties order, makes the original log-on data of preserving of concentrator deletion; Main website receives second confirmation that concentrator returns; Whether the return time of judging second confirmation return main website surpassed for the 3rd scheduled time, wherein, when return time more than or equal to the 3rd scheduled time, main website issues again and empties order, otherwise main website issues automatic log-in command.
Further, main website issue again empty order before, method also comprises: surpass pre-determined number if main website issues the number of times that empties order again, main website issues automatic log-in command.
Further; Issue reading order through concentrator to one or more ammeters in main website; Obtain log-on data, and according to the reception condition of log-on data, add up main website automatically after the success rate of registration from each ammeter; Method also comprises: main website sends to concentrator and empties order, makes all log-on datas of concentrator deletion; Main website receives the 3rd confirmation that concentrator returns; Whether the return time of judging the 3rd confirmation return main website surpassed for the 4th scheduled time, wherein, when return time more than or equal to the 4th scheduled time, main website issues again and empties order, otherwise main website stops to issue automatic log-in command.
Further, main website issue again empty order before, method also comprises: surpass pre-determined number if main website issues the number of times that empties order again, main website stops automatic registration.
Further, before main website obtained any in first confirmation, second confirmation, the 3rd confirmation, the log-on data, method also comprised: main website sends to concentrator and ceases and desist order; The affirmation that main website receives from concentrator stops message, and the record main website is automatic registration failure.
To achieve these goals, according to a further aspect in the invention, a kind of main website is provided.This main website comprises: sending module is used for main website and issues automatic log-in command through concentrator to one or more ammeters; Receiver module is used for main website and receives first confirmation that ammeter returns; Statistical module is used for main website and issues reading order through concentrator to ammeter, obtains the log-on data from each ammeter; And according to the reception condition of log-on data; Add up the main website success rate of registration automatically, wherein, under the effective situation of the log-on data that main website receives; This main website preserves log-on data, and is recorded as automatically and succeeds in registration; Invalid or do not receive under the situation of log-on data when log-on data, main website is recorded as automatic registration failure.
To achieve these goals; According to another aspect of the invention, a kind of test macro of power information acquisition system is provided, this system comprises: main website; Be used for issuing automatic log-in command to one or more ammeters through concentrator, and the success rate of the automatic registration of statistics; Concentrator is used to receive and transmit the automatic log-in command of main website, and returns the affirmation information and the log-on data of ammeter to main website; Ammeter is used to receive concentrator and transmits the automatic log-in command of coming, and generates corresponding log-on data and confirmation, and log-on data is transmitted to concentrator.
Further, collecting device is connected with concentrator, gathers the log-on data of ammeter.
Through the present invention, adopt main website to issue automatic log-in command to one or more ammeters through concentrator; Main website receives first confirmation that ammeter returns; Main website issues reading order through concentrator to one or more ammeters; Obtain log-on data, and, add up the main website success rate of registration automatically according to the reception condition of log-on data from each ammeter; Wherein, Under the effective situation of the log-on data that main website receives, this main website preserves log-on data, and is recorded as automatically and succeeds in registration; Invalid or do not receive under the situation of log-on data in log-on data; Main website is recorded as automatic registration failure; Solved the problem of in the correlation technique power information acquisition system being tested the performance quality of the automatic registering functional of local communication device, and then reached convenience, investigate the power information acquisition system efficiently and manage log-on message automatically, improve the local communication device success rate of registration and the effect of reliability automatically.
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 automatic log-in command through concentrator to one or more ammeters, and statistics issues the success rate of automatic log-in command; Concentrator is used to receive and transmit the automatic log-in command of main website, and returns the affirmation information and the log-on data of ammeter to main website; Ammeter is used to receive concentrator and transmits the automatic log-in command of coming, and generates corresponding log-on data and confirmation, and log-on data is transmitted to concentrator.
Main website of the present invention issues automatic log-in command through concentrator to ammeter; And the reception condition of the log-on data of returning by ammeter at main website end record whether realize testing automatic register flow path unimpeded; Promptly write down the return time and the state of each log-on data and confirm whether this log-on data is effective; This ammeter succeeds in registration automatically when the log-on data of returning is effective, otherwise the automatic registration failure of ammeter.
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 the log-on data 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 S206:
Step S202, main website issues automatic log-in command through concentrator to one or more ammeters, receives that the ammeter of automatic log-in command gets into automatic login state.
Step S204, main website receives first confirmation that ammeter returns.
Step S206, main website issues reading order through concentrator to one or more ammeters, obtains the log-on data from each ammeter; And according to the reception condition of log-on data; Add up main website and issue the success rate of automatic log-in command, wherein, under the effective situation of the log-on data that main website receives; This main website preserves log-on data, and the automatic log-in command that record issues is successful; Invalid or do not receive under the situation of log-on data when log-on data, main website notes from moving log-in command failure.
In this embodiment; Through using main website to issue automatic log-in command in batches to each ammeter through concentrator; The ammeter of receiving automatic log-in command gets into automatic login state, generates corresponding log-on data, and this log-on data is returned to main website; Main website judges according to the state of the log-on data that receives whether automatic registration is successful, thereby realizes local communication device is carried out fine or not the testing of performance of the automatic registering functional of ammeter in the automatic registration process.Wherein, the success rate of log-on data that main website obtains ammeter response 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, test efficiently, can investigate the power information acquisition system under the situation of ammeter or circuit change, the effect of the automatic management of communication products improves in the actual items success rate and the reliability of registering functional automatically.Suppose in the collecting work of reality, if ammeter has taken place or circuit is cut situation about changing, need communication products accomplish automatically ammeter data report management, reduce work on the spot complexity, increase work efficiency.
In the embodiment of the invention; After first confirmation that main website reception ammeter returns, method can also comprise: whether the return time of judging first confirmation of returning main website surpassed for first scheduled time, wherein; When first confirmation more than or equal to first scheduled time; Main website notes from moving log-in command failure, otherwise main website issues reading order.
Wherein, note after moving log-in command failure in main website, main website issues automatic log-in command again; When if the number of times that issues automatic log-in command again in main website surpasses pre-determined number; Main website notes from moving log-in command failure, otherwise main website issues reading order.
In the foregoing description after the log-on data of obtaining from ammeter; Whether return time that carry out to judge the log-on 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 from moving log-in command failure; Otherwise main website preserves the log-on data that receives, and the automatic log-in command that record issues is successful.Wherein, Note after moving log-in command failure in this main website, main website issues reading order again, if the number of times that issues reading order again in main website is above pre-determined number; The log-on data that main website receives is invalid, and notes from moving log-in command failure.
In the embodiment of the invention, main website through concentrator before ammeter issues automatic log-in command, method can also comprise: main website sends to concentrator and empties order, empties order and is used for the original log-on data of preserving of concentrator deletion; Main website receives second confirmation that concentrator returns; Whether the return time of judging second confirmation return main website surpassed for the 3rd scheduled time, wherein, when return time more than or equal to the 3rd scheduled time, main website issues again and empties order, otherwise main website issues automatic log-in command.Wherein, main website issue again empty order before, surpass pre-determined number if main website issues the number of times that empties order again, main website issues automatic log-in command.
The embodiment of the invention issues reading order through concentrator to ammeter in main website; Obtain log-on data from ammeter; And according to the reception condition of log-on data; Add up main website and issue after the success rate of automatic log-in command, method also comprises: main website sends to concentrator and empties order, empties order and is used for concentrator deletion log-on data; Main website receives the 3rd confirmation that concentrator returns; Whether the return time of judging the 3rd confirmation return main website surpassed for the 4th scheduled time, wherein, when return time more than or equal to the 4th scheduled time, main website issues again and empties order, otherwise main website stops to issue automatic log-in command.
Preferably, in above-mentioned steps main website issue again empty order before, surpass pre-determined number if main website issues the number of times that empties order again, main website stops to issue automatic log-in command.
In the embodiment of the invention, before main website obtained any in first confirmation, second confirmation, the 3rd confirmation, the log-on data, method can also comprise: main website sends to concentrator and ceases and desist order; The affirmation that main website receives from concentrator stops message, and the record main website issues automatic log-in command failure, i.e. this automatic registration process failure.
In the embodiment of the invention, the above embodiment of the present invention is initiated the automatic log-in command of ammeter by main website, and concentrator is issued to power line with this order, receives that the ammeter of this order enters into the automatic login state of ammeter, and the beginning ammeter is registered automatically.Concentrator receive after the automatic registration packet that ammeter uploads the storage table number and on call time (time is as the criterion with the concentrator system time), local software can read the registration table number in real time.For example; Accomplish previous operating procedure (such as stopping meter-reading function) afterwards, main website issues and empties order and empty ammeter table number in the concentrator, and what issue then that automatic log-in command starts the concentrator local software reports the table number function automatically; Can take to write down in per 30 minutes the quantity (reporting the state of log-on data) that goes up form; Report finish after, main station system is analyzed reported data, the success rate of adding up automatic registration ammeter.
Preferably, the embodiment step that the method for testing of power information acquisition system of the present invention is concrete is following:
A) main website sends to concentrator and stops the order of checking meter, waits for 40 seconds in, concentrator can return to the main website affirmation or deny stopping to check meter; 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 (being that concentrator has been carried out this order), interval 1S, meeting execution in step B).
B) main website sends to concentrator and empties the table number order, waits for 40 seconds in, concentrator can return to the main website affirmation or deny; As deny returning main website and deny/order, or behind the 40s, main website is thought/no response/transmission failure order automatically; Main website can retransmit 3 times; Main website is as receiving affirmation, interval 1S, execution in step C).
C) main website sends table number to concentrator and just calls order together, waits for 40 seconds in, concentrator can return to the main website affirmation or deny; 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; (concentrator issues this order, receives that the ammeter of this order enters into the automatic login state of ammeter, and the beginning ammeter is registered automatically as receiving affirmation in main website.Concentrator receive after the automatic registration packet that ammeter uploads the storage table number and on call time), 30min at interval, execution in step D).
D) main website sends to read to concentrator and calls the measurement information order together in 1 type of data, wait for 40 seconds in, concentrator can return to 1 type of data validation or deny; As deny to return main website and deny order; Or behind the 40s, main website thinks automatically/no response/transmission failure order that main website can retransmit 3 times; Main website is replied as receiving 1 type of data validation, can judge whether the testing time of regulation finishes.Do not finish to continue this flow process of repetition, finish 1S at interval, execution in step E).
E) main website sends to concentrator and empties the table number order, waits for 40 seconds in, concentrator can return to the main website affirmation or deny; As deny returning main website and deny/order, or behind the 40s, main website is thought/no response/transmission failure order automatically; Main website can retransmit 3 times; Main website is as receiving affirmation, interval 1S, execution in step F).
F) main website sends to concentrator the ammeter parameter command is set; In waiting for 40 seconds, concentrator can return to the main website affirmation or deny, as denies returning main website and deny/order; Or behind the 40s; Main website thinks automatically/no response/transmission failure order that main website can retransmit 3 times, and main website confirms the back EOT as receiving.
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 main website is provided.Fig. 3 is the structural representation according to the main website of the embodiment of the invention.As shown in Figure 3, this main website can comprise sending module 302, receiver module 304 and statistical module 306.
Wherein, sending module 302 is used for main website and issues automatic log-in command through concentrator to ammeter, receives that the ammeter of automatic log-in command gets into automatic login state; Receiver module 304 is used for main website and receives first confirmation that ammeter returns; Statistical module 306 is used for main website and issues reading order through concentrator to ammeter, obtains the log-on data from ammeter; And according to the reception condition of log-on data; Add up main website and issue the success rate of automatic log-in command, wherein, under the effective situation of the log-on data that main website receives; This main website preserves log-on data, and the automatic log-in command that record issues is successful; Invalid or do not receive under the situation of log-on data when log-on data, main website notes from moving log-in command failure, promptly should automatic registration process fail.
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.