CN104952239A - Testing device and testing method for collector - Google Patents

Testing device and testing method for collector Download PDF

Info

Publication number
CN104952239A
CN104952239A CN201410124168.3A CN201410124168A CN104952239A CN 104952239 A CN104952239 A CN 104952239A CN 201410124168 A CN201410124168 A CN 201410124168A CN 104952239 A CN104952239 A CN 104952239A
Authority
CN
China
Prior art keywords
module
stipulations
test
collector
order line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410124168.3A
Other languages
Chinese (zh)
Inventor
王健海
蔡昭权
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou University
Original Assignee
Huizhou University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou University filed Critical Huizhou University
Priority to CN201410124168.3A priority Critical patent/CN104952239A/en
Publication of CN104952239A publication Critical patent/CN104952239A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to the instrument testing field and discloses a testing device for a collector. The testing device comprises a testing module, a protocol file management module and a communication module, wherein the testing module is connected with the protocol file management module and the communication module respectively, the testing module is connected with a target collector by the communication module, the protocol file management module is used for selecting pre-stored protocol information, the testing module is used for reading and analyzing each command line stored in a protocol file selected by the protocol file management module and acquiring the final testing result of the target collector. With the adoption of the technical scheme, the testing device can be carried conveniently, has strong mobility and low cost, can accurately and rapidly test the performances of the collector and has extremely high application value.

Description

A kind of proving installation of collector and method
Technical field
The present invention relates to Meter Test field, particularly a kind of proving installation of collector and method.
Background technology
Raising utilization rate of electrical and economic benefit are not only the target of power supply department, are also a kind of means of economize energy.In order to tackle the low input of the modern management of power use, high-level efficiency and high-quality requirement, a kind of intelligentized kilowatt meter reading-out system---low-voltage collecting meter reading system arises at the historic moment.Specifically, along with rapid economic development, user and power consumption increase severely, traditional counting cost by gas meter mode not only drops into a large amount of manpower and fund, and inefficiency, and oneself is not suitable with the requirement of Modern Enterprise Administration; On the other hand, power supply department, for improving utilization rate of electrical and economic benefit, needs to understand the more information such as user power utilization energy, electricity consumption Annual distribution, load curve, with to electrical production peak load shifting, reduces waste and loss, formulates more reasonably regulating strategy.These are all the insoluble problems of traditional meter reading method.Power supply department wishes to utilize modern communication, computer technology solves this problem of electricity meter-reading.This creates the terminal low-voltage collecting meter reading system.The structure of low-voltage collecting meter reading system is: main website is connected with multiple concentrator by GPRS or alternate manner, and each large electricity consumption district is equipped with a concentrator, for managing, processing the information of the collector of subordinate; Concentrator is connected with the collector of next stage by power line carrier/485 bus/wireless mode, and each concentrator can connect tens collectors below; Collector is connected with subscriber's meter by power line carrier or 485 buses, responsible under connect subscriber's meter data gather, each collector can connect and connects tens with table.Communication between concentrator and subscriber's meter is realized by such cascade mode.Finally, concentrator is concentrated and data is returned to main website.Concentrator is by power line carrier or 485 buses and repeater communication; Repeater is communicated with collector by power line carrier, 485 buses or wireless mode; Collector is communicated with subscriber's meter by power line carrier or 485 buses.Repeater is also collector in fact, the communications protocol translation function of collector is mainly utilized to convert, to adapt to the nonuniformity of communication mode, as being wireless mode by 485 bus communication patten transformation, repeater only changes communication mode, does not change the data content of the data forwarded by repeater.
Along with computer technology, the widespread use of mechanics of communication in measuring instrument field in recent years, low pressure automatic data logging replaces manual metering to be inexorable trend.The centre management equipment of centralized meter-reading system is concentrator, and it is responsible for the transmission of main website order, the storage of meter reading data, the function such as the execution of automatic data logging task and the record of event.Concentrator data feedback channel adopts GPRS/CDMA mode and master station communication, and the modes such as descending employing RS485, power carrier or RF are wireless, communicate with ammeter, acquisition terminal.Usually short distance low-consumption wireless mode is adopted between concentrator and acquisition terminal, between acquisition terminal and acquisition terminal.Collector is an intermediate equipment of concentrator and ammeter, and Main Function is for the communication between concentrator and electric energy meter provides the conversion of signal relaying and communications protocol, also has process simultaneously, stores the ability of data.Collector up channel is connected with concentrator: possess RS485, carrier wave and wireless communication mode; Down channel is connected with subscriber's meter: possess RS485 and carrier channel.
Collector has following functions:
1, instruction and data forwarding capability: collector receives the electric energy meter data reading system that issues of concentrator and steering order by up channel, and is transmitted to the electric energy meter of the second line of a couplet in real time by protocol transform, then by the reply data information back of electric energy meter to concentrator;
2, data sampling and processing function: the collector of state's net can acquisition tables address be kept at storage portions automatically, and collector also has time clock feature, clocking error≤± 1s/d, also supports that automatic transcription copies and accepts the electricity be kept at storage portions at zero point of day;
3, wireless forwarding function: the RS485 that acquisition terminal can issue concentrator or carrier wave instruction transfer wireless instructions to and send.
If the descending RS485 port of concentrator is connected with the descending RS485 port of terminal, then the RS485 instruction that concentrator can issue by acquisition terminal forwards as wireless instructions issues next terminal;
If what concentrator issued is carrier wave instruction, then acquisition terminal first transfers carrier wave instruction to wireless instructions and is dealt into next terminal, and return if any data, then this subtask terminates, and as not having data to return, then acquisition terminal sends carrier wave instruction again to next terminal.
4, relay function: have wireless relay and carrier-current relaying function, the relaying degree of depth is level Four, arranges by software.
That is, collector is low-voltage collecting meter reading system ingredient, realizes the communication switching function of concentrator and subscriber's meter.The functional completeness of collector is low-voltage collecting meter reading system normal operation necessary condition.Therefore when collector dispatches from the factory, or before collector in-site installation to low-voltage collecting meter reading system, complete, working properly for ensureing collector function, must test collector, can normally work after making collector be fit into low-voltage collecting meter reading system.
Current, be all come by the testing software of PC to the test of collector.Computer resource needed for testing software is very little, and taking a computing machine, to be only used for the test of collector be a kind of waste of resource.And during in-site installation, the test to collector be completed, need again to move computing machine to on-the-spot, these bring inconvenience to test job.Therefore, designing one can meet test request, again low cost, small and exquisite tester that mobility is strong, concerning the test of collector, is necessary.
Summary of the invention
The object of the embodiment of the present invention is the proving installation and the method that provide a kind of collector, and described proving installation is easy to carry, and mobility is strong, and cost is low, can carry out accurately, fast testing to collector performance, have high using value.
The proving installation of a kind of collector that the embodiment of the present invention provides, comprises test module, stipulations document management module and communication module,
Described test module is connected with described stipulations document management module, communication module respectively, and described test module is connected with target collector by described communication module,
Described stipulations document management module, for selecting the predetermined stipulations information stored, described stipulations information comprises protocol type and stipulations file, and described stipulations file is the order line adopting file mode to store, and stores order line described at least one in described stipulations file,
Described test module is used for reading the described stipulations file selected from described stipulations document management module and analyzing each the described order line stored in described stipulations file, obtain the test command corresponding to described order line and send to described target collector, receive described target collector perform described test command after feedback information, draw the test result of this test command according to described feedback information, draw the final testing result of described target collector according to the test result of every bar test command.
Alternatively, described test module comprises order line read module, order line analysis module, test command sending module, feedback information acquisition module and test result calculations module,
Described order line read module is connected with described stipulations document management module, capable for reading order in the described stipulations file from described stipulations document management module selection, and judge whether described order line is the last item order line, if it is terminate to continue to read next command row, export final testing result, if not the last item order line, then continue to read next described order line
Described order line analysis module is connected with described order line read module, for the described order line read according to predetermined rule analysis, obtains the test command corresponding to described order line,
Described test command sending module is connected with described order line analysis module, for the described test command obtained is sent to described target collector by described communication module,
Described feedback signal acquisition module is used for obtaining described target collector by described communication module and performs the feedback information after described test command,
Described test result calculations module is connected with described order line analysis module and described feedback information acquisition module respectively, for drawing the test result of every bar test command according to described feedback information, and draws final testing result.
Alternatively, described communication module adopts serial communication modular, and described serial communication modular comprises to be opened serial port module, closedown serial port module, transmission data module and receives data module,
Described serial port module of opening, for according to the described stipulations file selected, opens serial ports,
Described closedown serial port module is used for closing serial ports after test terminates,
Described transmission data module is used for according to described stipulations file, sends data to described target collector,
Described reception data module is for receiving the feedback information of described target collector.
Alternatively, described test module also comprises Auto-Sensing and selects module, and for the type of target collector described in Auto-Sensing, described stipulations document management module, for automatically selecting the stipulations information of adaptive predetermined storage according to the type of described target collector.
Alternatively, also comprise human-computer interaction module, described human-computer interaction module is connected with described test module, described stipulations document management module, communication module respectively, for obtaining operational order and the display detecting information of user's input, and described operational order is sent to described stipulations document management module, described stipulations document management module, for selecting the predetermined stipulations information stored according to described operational order.
Alternatively, described human-computer interaction module comprises input information receiving module and detecting information output module, and described input information receiving module receives the operational order of user's input by inputting interface; Described detecting information output module is by display window output display detecting information.
Alternatively, described stipulations document management module comprises operational order acquisition module and stipulations information choice module, the described operational order that described operational order acquisition module sends for receiving described human-computer interaction module, described stipulations information choice module is used for protocol type and the stipulations file of selecting predetermined storage according to described operational order.
Alternatively, also comprise test result and preserve module, described test result is preserved module and is connected with described test module and human-computer interaction module respectively, for preserving the test result of every bar test command.
Alternatively, described test result is preserved module and is comprised destination file creation module and test result writing module,
Described destination file creation module is used for naming and creating destination file,
Described test result writing module, for writing the test result of every bar test command, is preserved in described destination file corresponding for the write of the test result of every bar test command.
Present invention also offers a kind of method of testing of collector in addition, comprise the following steps:
Select the predetermined stipulations information stored, described stipulations information comprises protocol type and stipulations file, and described stipulations file is the order line adopting file mode to store, and stores order line described at least one in described stipulations file,
Read from described stipulations file and analyze each described order line, obtaining the test command corresponding to described order line, and sending to described target collector,
Receive described target collector perform described test command after feedback information, draw the test result of this time test according to described feedback information, and calculate the test result of final described target collector.
Alternatively, before the predetermined stipulations information stored of described step selection, also comprise the type of operational order or the described target collection obtaining user's input,
Select the predetermined stipulations information stored, specifically select the predetermined stipulations information stored according to the operational order of user's input, or automatically select the stipulations information of adaptive predetermined storage according to the type that described target gathers.
Alternatively, after step reads and analyzes each described order line from described stipulations file, also comprise and judge whether described order line is the last item order line, if it is terminate to continue to read next command row, export final testing result, if not the last item order line, then continue to read next described order line.
Alternatively, step receive described target collector perform described test command after feedback information, draw the test result of this time test according to described feedback information after, also comprise the test result of preserving every bar test command.
Therefore application the present embodiment technical scheme, described proving installation and method of testing can carry out accurately, fast testing to collector performance, have high using value, and the proving installation of described collector are easy to carry, and mobility is strong, and cost is low.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the proving installation structural representation of a kind of collector provided by the invention;
Fig. 2 is the structural representation of a kind of test module provided by the invention;
Fig. 3 is the structural representation of another kind of test module provided by the invention;
Fig. 4 is the proving installation structural representation of the second collector provided by the invention;
Fig. 5 is a kind of human-computer interaction module structural representation provided by the invention;
Fig. 6 is a kind of inputting interface of human-computer interaction module provided by the invention and the structural representation of display interface;
Fig. 7 is that a kind of user provided by the invention uses proving installation to test the process flow diagram of collector;
Fig. 8 is the structural representation of a kind of stipulations document management module provided by the invention;
Fig. 9 is the proving installation structural representation of the third collector provided by the invention;
Figure 10 is the structural representation that a kind of test result provided by the invention preserves module;
Figure 11 is the structural representation of a kind of communication module provided by the invention;
Figure 12 is the structural representation of another kind of communication module provided by the invention;
Figure 13 is the method for testing process flow diagram of the first collector provided by the invention;
Figure 14 is the method for testing process flow diagram of the second collector provided by the invention;
Figure 15 is the method for testing process flow diagram of the third collector provided by the invention;
Figure 16 is the method for testing process flow diagram of the 4th kind of collector provided by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
embodiment 1:
The present embodiment provides a kind of proving installation of collector, as shown in Figure 1, comprises test module 10, stipulations document management module 20 and communication module 30,
Described test module 10 is connected with described stipulations document management module 20, communication module 30 respectively, and described test module is connected with target collector by described communication module 30,
Described stipulations document management module 20, for selecting the predetermined stipulations information stored, described stipulations information comprises protocol type and stipulations file, and described stipulations file is the order line adopting file mode to store, order line described at least one is stored in described stipulations file
Described test module 10 is for reading in the described stipulations file from described stipulations document management module 20 selection and analyzing each the described order line stored in described stipulations file, obtain the test command corresponding to described order line and send to described target collector, described in every bar, whether a function of the described target collector of test command correspondence test is normal, such as copy the order of forward active energy, described target collector receives feedback information after described test command also performs, such as postback data to concentrator, or send data to subscriber's meter, such as will copy and accept the order of forward active energy and send to subscriber's meter etc.Receive described target collector perform described test command after feedback information, draw the test result of this test command according to described feedback information, draw the final testing result of described target collector according to the test result of every bar test command.
Draw this test result according to the feedback information of described target collector in the present embodiment, can be contrasted by the real response data in expectation response data and described target collector feedback information and determine, such as but be not limited to:
Order line in described stipulations file waits to say the word and combination that the expectation response data of correspondence is formed by presetting rule, and primarily of waiting, test command says the word and estimate that response data forms, the present invention is to the following rule of test command agreement:
Wait to say the word and be divided into two types: return class and without returning class.Returning class is normal order, and target collector can to such command response; Without returning the order that class is mistake, for test needs and increase, target collector does not respond bad command, and every bar returns class order, all increases by two nothings and returns the antijamming capability that class order and bad command carry out test target collector.Adding an identifier " Y " after saying the word, representing that this order belongs to and returning class; After saying the word, adding an identifier " N ", representing that this order belongs to without returning class.Meanwhile, " Y " and " N " Ye Shi circle, every symbol, is exactly wait to say the word on boundary before symbol.
Proving installation mainly builds a simulation JA(junction ambient), complete the test to target collector, the up channel of described target collector connects the concentrator analog end of described proving installation, the down channel of described target collector connects the ammeter analog end of described proving installation, the real response data of described target collector feedback information may return from up channel, also may return from down channel, so add Return Channel identifier " S " on boundary after symbol, represent that real response data return from up channel; After symbol, add Return Channel identifier " X " on boundary, represent that real response data return from down channel.If return class order, after Return Channel identifier, connect the expectation response data corresponding with this order.Such as, arrange test command for waiting to say the word+boundary is every symbol+Return Channel identifier+expectation response data.
As in " broadcasting and TV 485 " stipulations, copying and accepting " (current) forward gain merit total electric energy (9010) " order is " FEFEFE6809000000000068010243C3E21611 ", expectation response data corresponding with it returns from down channel, data content is " FEFEFE6809000000000068010243C3E216 ", according to rule, the order line copying and accepting " (current) forward gain merit total electric energy (9010) " is as follows, adds the order that two nothings return class:
(waiting to say the word) FEFEFE6809000000000068010243C3E21611+(circle is every symbol) Y+(Return Channel identifier) X+(estimates response data) FEFEFE6809000000000068010243C3E21611.
(without returning class order): (check code mistake) FEFEFE6809000000000068010243C3F21611N; (data are imperfect) FEFEFE6809000000000068010243C31611 N.
Described test module 10 receives the real response data fed back after described target collector performs described test command, the real response data obtained and expectation response data are compared, judge that whether described real response data are identical with expectation response data, if identical expression this time test is passed through, otherwise represent that this time test is not passed through, if each described test result is all each normally functioning specification product by, described target collector test by i.e. described target collector, otherwise is the problematic substandard product of some function.
Preferably, described test module 10 comprises test command formatting module, for arrange test command for waiting to say the word+boundary every symbol+Return Channel identifier+expectation response data, in practical application, preferably, "+" symbol that can be above-mentioned.
Therefore the described proving installation in the present embodiment is easy to carry, mobility is strong, and cost is low, can carry out accurately, fast testing to collector performance, have high using value.
embodiment 2:
Test module 10 be test target collector function realize core, whether test accurate, depend on that whether the design of this module is reasonable, the judgement whether main realize target collector real response data of test module 10 are identical with expectation response data, complete this to judge, test module 10 need perform following process: 1. first need from stipulations file read-out command row; 2. then rule analysis order line according to a preconcerted arrangement, therefrom obtains the information waiting to say the word and estimate response data; 3. target collector is then sent a command to; 4. real response data are obtained after waiting for target collector feedback information; 5. the real response data obtained compared with expectation response data, whether discriminating test passes through.
In view of as mentioned above, the difference of the present embodiment and embodiment 1 is, as shown in Figure 2, described test module 10 comprises order line read module 101, order line analysis module 102, test command sending module 103, feedback information acquisition module 104 and test result calculations module 105
Described order line read module 101 is connected with described stipulations document management module 20, capable for reading order in the described stipulations file from described stipulations document management module 20 selection, and judge whether described order line is the last item order line, if it is terminate to continue to read next command row, export final testing result, if not the last item order line, then continue to read next described order line
Described order line analysis module 102 is connected with described order line read module 101, for the described order line read according to predetermined rule analysis, obtains test command, therefrom obtains the information etc. waiting to say the word and estimate response data.
Described test command sending module 103 is connected with described order line analysis module 102, for the described test command obtained is sent to described target collector by described communication module 30,
Described feedback signal acquisition module 104 performs the feedback information after described test command for obtaining described target collector by described communication module 30, namely waits the real response data saying the word and estimate that response data is fed back described in basis,
Described test result calculations module 105 is connected with described order line analysis module 102 and described feedback information acquisition module 104 respectively, for drawing test result according to described feedback information, be that the real response data obtained and expectation response data are compared, judge that whether described real response data are identical with expectation response data, if identical expression test is passed through, otherwise represent that test is not passed through, and draw the test result of every bar test command according to described feedback information, and draw final testing result.
Can be, but not limited to, as shown in Figure 3, described test module 10 also comprises Auto-Sensing and selects module 106, for the type of target collector described in Auto-Sensing, described stipulations document management module 20 is for automatically selecting the stipulations information of adaptive predetermined storage according to the type of described target collector.Like this, can arrange, when directly connecting, obtain the relevant information of target collector, automatically select protocol type or stipulations file, adjust described serial communication modular, realize automatic processing capacity.
embodiment 3:
The difference of the present embodiment and embodiment 2 is, as shown in Figure 4, also comprise described human-computer interaction module 40, described human-computer interaction module 40 is connected with described test module 10, described stipulations document management module 20, communication module 30 respectively, for obtaining operational order and the display detecting information of user's input, and described operational order is sent to described stipulations file management 20 module, described stipulations document management module 20, for selecting the predetermined stipulations information stored according to described operational order.The operational order of user's input can be, but not limited to comprise the input protocol type title suitable with described target collector type, input target collector table number etc.
Can be, but not limited to, as shown in Figure 5, described human-computer interaction module 40 comprises input information receiving module 401 and detecting information output module 402, and described input information receiving module 401 receives the operational order of user's input by inputting interface; Described detecting information output module 402 is by display window output display detecting information.
Preferably, the display window of described human-computer interaction module 40 is display screen, for obtaining and showing input information and detecting information, wherein, the operational order of described input information and user's input comprises the configuration specification type of user's input, target collector table number to be measured etc.Described detecting information comprises described test result, selected stipulations file or testing progress etc.
Preferably, the display screen of described human-computer interaction module 40 adopts flexible liquid crystal screen and control module thereof.Adopt novel flexible liquid crystal screen, easy to carry and use, and in the application, more contribute to preventing display screen from damaging.Further, adopt flexible liquid crystal screen, the proving installation of shape and target collector adaptation can be designed, be more conducive to the design of product one_to_one corresponding.
Human-computer interaction module 40 is that tester carries out test operation platform, as shown in Figure 6, the protocol type title that user's input is suitable with described target collector type, input target collector table number, click " starting test " button at the inputting interface of described human-computer interaction module and can start test, the stipulations information of described display window display input, test result and testing progress etc., Deng test complete after or button that in test, user can click " stop test " stop this testing, specifically as shown in Figure 7, therefore, described proving installation is simple and easy to use, workable.
embodiment 4:
The difference of the present embodiment and embodiment 3 is, as shown in Figure 8, described stipulations document management module 20 comprises operational order acquisition module 201 and stipulations information choice module 202, the described operational order that described operational order acquisition module 201 sends for receiving described human-computer interaction module 40, described stipulations information choice module 202 is for selecting protocol type and the stipulations file of predetermined storage according to described operational order.Different protocol types, corresponding different stipulations files, contains each order line that the described target collector of test will be used in stipulations file.
When testing results, test module 10 is first simulated concentrator and is sent test command to target collector, each test command has expectation response data corresponding with it, judge that whether the real response data that described target collector returns are identical with expectation response data, if the same the corresponding function proper testing of described target collector passes through, otherwise the real response data returned are different with expectation response data, illustrate that the abnormal test of corresponding function of described target collector is not passed through.
embodiment 5:
The difference of the present embodiment and embodiment 4 is, as shown in Figure 9, also comprise test result and preserve module 50, described test result is preserved module 50 and is connected 30 with described test module 10 and human-computer interaction module respectively, and test result preserves module 50 preserves each test command test result by file mode.
Can be, but not limited to, as shown in Figure 10, described test result is preserved module 50 and is comprised destination file creation module 501 and test result writing module 502,
Described destination file creation module 501, for naming and creating destination file, can be, but not limited to, and creates destination file with the table number name of dispatching from the factory of the described target collector of user's input.
Described test result writing module 502, for writing the test result of each test command, preserves the test result of each test command by file mode.
Preserve test result, conveniently from now on test data is imported database, for record of production and the quality testing of collector on the one hand.Facilitate tester to find out the functional test failure of that one side of target collector fast on the other hand, can analyze better and inquire about test result.
embodiment 6:
The difference of the present embodiment and embodiment 5 is, as shown in figure 11, described communication module 30 adopts serial communication modular, and described serial communication modular comprises to be opened serial port module 301, closedown serial port module 302, transmission data module 303 and receives data module 304
Described serial port module 301 of opening, for the described stipulations file according to described target collector type selecting, opens serial ports,
Described closedown serial port module 302 for closing serial ports after test terminates,
Described transmission data module 303, for according to described stipulations file, sends data to described target collector,
Described reception data module 304 is for receiving the feedback information of described target collector.
The communication of described communication module 30 primary responsibility proving installation and target collector, test module 10 sends the real response data of test command and receiving target collector, need the coordination with serial communication modular, the baud rate adopting the target collector of different stipulations to adopt, data bit, check bit, position of rest are all likely different, and these all need serial communication modular to control.
embodiment 7:
The difference of the present embodiment and embodiment 6 is, as shown in figure 12, described communication module 30 also comprises at least one 485 bus conversion module 305, converts RS485 output to for being exported by RS232.Because the embedded board serial ports standard of development and testing instrument is RS232, RS232 output and RS485 output are changed by needs 485 bus conversion module of building of test environment.Such as, described communication module 30 comprises two 485 bus conversion modules, proving installation mainly builds a simulation JA(junction ambient), the function that proving installation simulates concentrator and subscriber's meter has carried out the test to target collector, the up channel of described target collector connects the concentrator analog end of described proving installation, the down channel of described target collector connects the ammeter analog end of described proving installation, concentrator analog end and ammeter analog end to communicate with described target collector respectively by 485 bus conversion modules and are equivalent to the interface of power line carrier 485 bus, only need to be connected with proving installation by 485 buses, just power line carrier can be adapted to, the requirement of 485 buses and different communications protocol such as wireless grade.
Preferably, adopt the proving installation of ARM platform development collector, its cost, far below PC, by utilizing embedded system, can carry out accurately, fast testing to collector performance.Current embedded system uses and popularizes gradually, and embedded system is powerful functional with it, is all applied in a lot of place.ARM embedded chip has powerful processing power, can meet tester hsrdware requirements.So based on the special collector proving installation of ARM platform development one, be used for testing collector, the waste of resource can be greatly reduced.According to the structure of collector access low-voltage collecting meter reading system, proving installation utilizes and build a simulation JA(junction ambient) based on embedded device, completes the test to collector.
Such as, the proving installation of collector adopts ARM9 processor, Windows CE 5.0 is selected to provide system support, Windows CE 5.0 is compact, an efficient and extendible operating system, be applicable to multiple embedded product, it has the operating system of multithreading, multitask, in real time deterministic and characteristics such as formula priority of trying to be the first completely, specially towards the hardware system only having limited resources.Meanwhile, its modular design mode makes system developer and application developer utilize it to customize various product.
Further, embodiments of the invention can also be the proving installations of the collector be mutually combined to form of each technical characteristic of the various embodiments described above.Above-mentioned each technical characteristic combines the formed various embodiments do not enumerated in this manual mutually, is all considered as the scope that instructions of the present invention is recorded.
embodiment 8:
The method of testing of a kind of collector that the present embodiment provides, as shown in figure 13, comprises the following steps:
0011, select the predetermined stipulations information stored, described stipulations information comprises protocol type and stipulations file, and described stipulations file is the order line adopting file mode to store, and stores order line described at least one in described stipulations file,
0012, read from described stipulations file and analyze each described order line,
0013, obtain the test command corresponding to described order line, and send to described target collector,
0014, receive described target collector perform described test command after feedback information, draw the test result of this time test according to described feedback information,
0015 and calculate the test result of final described target collector, the test of described target collector is completed, test can be exited afterwards or continue the next target collector of test.
Can be, but not limited to, as shown in figure 14, before step 0011, also comprise step:
0010, the operational order of user's input or the type of described target collection is obtained, select the predetermined stipulations information stored, specifically select the predetermined stipulations information stored according to the operational order of user's input, or automatically select the stipulations information of adaptive predetermined storage according to the type that described target gathers.Described operational order comprises and arranges protocol type, inputs table number to be measured etc.
Can be, but not limited to, as shown in figure 15, after step 0014, also comprise step:
0016, the test result of preserving every bar test command is also comprised after obtaining this test result.Can be, but not limited to, by the write of this test result to preserve in the destination file of target collector table number name.
Can be, but not limited to, as shown in figure 16, after step 0016, also comprise step:
0017, judge whether described order line is the last item order line, namely judge whether described order line reads complete, if it is terminate to continue to read next command row, export final testing result, if not the last item order line, then continue to read next described order line.
Can be, but not limited to, described test command comprises order to be measured and estimates response data, and the feedback information fed back according to described order to be measured and expectation response data after described target collector performs described test command is real response data,
This test result is drawn specifically according to described feedback information, the real response data obtained are compared with expectation response data, judge that whether described real response data are identical with expectation response data, if identical expression this time test is passed through, otherwise represent that this time test is not passed through.
Concrete reading order from described stipulations file is capable, each reading order line, after reading an order line, analyze described order line and obtain this test command, described test command comprises to be waited to say the word and estimate response data, and the type of order returns class or nothing returns class, the channel of target collector feedback information, then this described test command is sent to described target collector, receive the real response data that described target collector performs the feedback after described test command, the real response data obtained are compared with expectation response data, judge that whether described real response data are identical with expectation response data, if identical expression this time test is passed through, otherwise represent that this time test is not passed through, by the write of this test result to preserve in the destination file of target collector table number name, next command row is read again from stipulations file, carry out the test of next performance.If all order lines have read complete, then export final test result, and terminate test.
Therefore, adopt this technical scheme can carry out accurately, fast testing to collector performance, there is high using value.
Above-described embodiment, does not form the restriction to this technical scheme protection domain.The amendment done within any spirit at above-mentioned embodiment and principle, equivalently to replace and improvement etc., within the protection domain that all should be included in this technical scheme.

Claims (10)

1. a proving installation for collector, is characterized in that, comprises test module, stipulations document management module and communication module,
Described test module is connected with described stipulations document management module, communication module respectively, and described test module is connected with target collector by described communication module,
Described stipulations document management module, for selecting the predetermined stipulations information stored, described stipulations information comprises protocol type and stipulations file, and described stipulations file is the order line adopting file mode to store, and stores order line described at least one in described stipulations file,
Described test module is used for reading the described stipulations file selected from described stipulations document management module and analyzing each the described order line stored in described stipulations file, obtain the test command corresponding to described order line and send to described target collector, receive described target collector perform described test command after feedback information, draw the test result of this test command according to described feedback information, draw the final testing result of described target collector according to the test result of every bar test command.
2. the proving installation of a kind of collector as claimed in claim 1, is characterized in that, described test module comprises order line read module, order line analysis module, test command sending module, feedback information acquisition module and test result calculations module,
Described order line read module is connected with described stipulations document management module, capable for reading order in the described stipulations file from described stipulations document management module selection, and judge whether described order line is the last item order line, if it is terminate to continue to read next command row, export final testing result, if not the last item order line, then continue to read next described order line
Described order line analysis module is connected with described order line read module, for the described order line read according to predetermined rule analysis, obtains the test command corresponding to described order line,
Described test command sending module is connected with described order line analysis module, for the described test command obtained is sent to described target collector by described communication module,
Described feedback signal acquisition module is used for obtaining described target collector by described communication module and performs the feedback information after described test command,
Described test result calculations module is connected with described order line analysis module and described feedback information acquisition module respectively, for drawing the test result of every bar test command according to described feedback information, and draws final testing result.
3. the proving installation of a kind of collector as claimed in claim 1, is characterized in that, described communication module adopts serial communication modular, and described serial communication modular comprises to be opened serial port module, closedown serial port module, transmission data module and receives data module,
Described serial port module of opening, for according to the described stipulations file selected, opens serial ports,
Described closedown serial port module is used for closing serial ports after test terminates,
Described transmission data module is used for according to described stipulations file, sends data to described target collector,
Described reception data module is for receiving the feedback information of described target collector.
4. the proving installation of a kind of collector as claimed in claim 1, it is characterized in that, described test module also comprises Auto-Sensing and selects module, for the type of target collector described in Auto-Sensing, described stipulations document management module, for automatically selecting the stipulations information of adaptive predetermined storage according to the type of described target collector.
5. the proving installation of a kind of collector as claimed in claim 1, it is characterized in that, also comprise human-computer interaction module, described human-computer interaction module is connected with described test module, described stipulations document management module, communication module respectively, for obtaining operational order and the display detecting information of user's input, and described operational order is sent to described stipulations document management module, described stipulations document management module, for receiving the described operational order that described human-computer interaction module sends, select the predetermined stipulations information stored according to described operational order.
6. as the proving installation of a kind of collector as described in arbitrary in claim 1 to 5, it is characterized in that, also comprise test result and preserve module, described test result is preserved module and is connected with described test module and human-computer interaction module respectively, for preserving the test result of every bar test command, result corresponding for the write of the test result of every bar test command is preserved in file.
7. a method of testing for collector, is characterized in that, comprises the following steps:
Select the predetermined stipulations information stored, described stipulations information comprises protocol type and stipulations file, and described stipulations file is the order line adopting file mode to store, and stores order line described at least one in described stipulations file,
Read from described stipulations file and analyze each described order line, obtaining the test command corresponding to described order line, and sending to described target collector,
Receive described target collector perform described test command after feedback information, draw the test result of this time test according to described feedback information, and calculate the test result of final described target collector.
8. the method for testing of a kind of collector as claimed in claim 7, is characterized in that, before the predetermined stipulations information stored of described step selection, also comprises the type of operational order or the described target collection obtaining user's input,
Select the predetermined stipulations information stored, specifically select the predetermined stipulations information stored according to the operational order of user's input, or automatically select the stipulations information of adaptive predetermined storage according to the type that described target gathers.
9. the method for testing of a kind of collector as claimed in claim 7, it is characterized in that, after step reads and analyzes each described order line from described stipulations file, also comprise and judge whether described order line is the last item order line, if it is terminate to continue to read next command row, export final testing result, if not the last item order line, then continue to read next described order line.
10. the method for testing of a kind of collector as claimed in claim 7, it is characterized in that, step receive described target collector perform described test command after feedback information, draw the test result of this time test according to described feedback information after, also comprise the test result of preserving every bar test command.
CN201410124168.3A 2014-03-28 2014-03-28 Testing device and testing method for collector Pending CN104952239A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410124168.3A CN104952239A (en) 2014-03-28 2014-03-28 Testing device and testing method for collector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410124168.3A CN104952239A (en) 2014-03-28 2014-03-28 Testing device and testing method for collector

Publications (1)

Publication Number Publication Date
CN104952239A true CN104952239A (en) 2015-09-30

Family

ID=54166859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410124168.3A Pending CN104952239A (en) 2014-03-28 2014-03-28 Testing device and testing method for collector

Country Status (1)

Country Link
CN (1) CN104952239A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108562804A (en) * 2017-12-29 2018-09-21 武汉中原电子信息有限公司 Intelligent grid terminal real-time detection method and device
CN109683596A (en) * 2019-03-04 2019-04-26 内蒙古一机集团宏远电器股份有限公司 A kind of cab signal collector detection device
CN112350896A (en) * 2020-11-06 2021-02-09 广东电网有限责任公司电力科学研究院 Protocol consistency testing method and system for power equipment state monitoring device
CN114338483A (en) * 2021-12-24 2022-04-12 深圳供电局有限公司 Communication protocol detection method for intelligent Internet of things terminal of power distribution network

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201804100U (en) * 2010-09-15 2011-04-20 浙江涵普电力科技有限公司 Acquisition terminal testing device
CN102063355A (en) * 2010-12-20 2011-05-18 创新科存储技术有限公司 Automatic test server and system of disk array
CN102271066A (en) * 2011-08-22 2011-12-07 中兴通讯股份有限公司 Automatic intelligent command line testing method and system
CN102347973A (en) * 2011-06-22 2012-02-08 深圳市科陆电子科技股份有限公司 Installation testing handset, and testing system and method by utilizing same
CN202602630U (en) * 2012-03-26 2012-12-12 河南省电力公司济源供电公司 Portable collector fault detection tool
CN202677599U (en) * 2012-06-14 2013-01-16 沈阳时尚实业有限公司 Self-adapting watt-hour meter collector
CN103178911A (en) * 2013-03-07 2013-06-26 江苏省电力公司金湖县供电公司 Negative control terminal communication interface bidirectional tester based on electricity larceny preventing device
CN103310620A (en) * 2012-03-13 2013-09-18 周治江 Intelligent meter reading system equipment and communication rate adaptation method for meter module
CN103344858A (en) * 2013-06-29 2013-10-09 国家电网公司 Method and device for testing meter reading port of intelligent electric meter
CN203324407U (en) * 2013-06-29 2013-12-04 国家电网公司 Testing device for meter reading port of intelligent electric meter

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201804100U (en) * 2010-09-15 2011-04-20 浙江涵普电力科技有限公司 Acquisition terminal testing device
CN102063355A (en) * 2010-12-20 2011-05-18 创新科存储技术有限公司 Automatic test server and system of disk array
CN102347973A (en) * 2011-06-22 2012-02-08 深圳市科陆电子科技股份有限公司 Installation testing handset, and testing system and method by utilizing same
CN102271066A (en) * 2011-08-22 2011-12-07 中兴通讯股份有限公司 Automatic intelligent command line testing method and system
CN103310620A (en) * 2012-03-13 2013-09-18 周治江 Intelligent meter reading system equipment and communication rate adaptation method for meter module
CN202602630U (en) * 2012-03-26 2012-12-12 河南省电力公司济源供电公司 Portable collector fault detection tool
CN202677599U (en) * 2012-06-14 2013-01-16 沈阳时尚实业有限公司 Self-adapting watt-hour meter collector
CN103178911A (en) * 2013-03-07 2013-06-26 江苏省电力公司金湖县供电公司 Negative control terminal communication interface bidirectional tester based on electricity larceny preventing device
CN103344858A (en) * 2013-06-29 2013-10-09 国家电网公司 Method and device for testing meter reading port of intelligent electric meter
CN203324407U (en) * 2013-06-29 2013-12-04 国家电网公司 Testing device for meter reading port of intelligent electric meter

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108562804A (en) * 2017-12-29 2018-09-21 武汉中原电子信息有限公司 Intelligent grid terminal real-time detection method and device
CN109683596A (en) * 2019-03-04 2019-04-26 内蒙古一机集团宏远电器股份有限公司 A kind of cab signal collector detection device
CN112350896A (en) * 2020-11-06 2021-02-09 广东电网有限责任公司电力科学研究院 Protocol consistency testing method and system for power equipment state monitoring device
CN114338483A (en) * 2021-12-24 2022-04-12 深圳供电局有限公司 Communication protocol detection method for intelligent Internet of things terminal of power distribution network

Similar Documents

Publication Publication Date Title
CN100495041C (en) Remote automatic centralized control monitoring meter reading system
CN102969796B (en) Near-real-time electric quantity monitoring and dispatching management system for rural power grid
CN110221997A (en) A kind of USB interface-based versatile interface interconnecting device
CN202794497U (en) On-site comprehensive detection equipment for electric energy information acquisition terminal
CN104348673B (en) A kind of method of commissioning, master control borad and business board
Surajudeen-Bakinde et al. Development of an Internet based prepaid energy meter
CN101718820A (en) Power distribution transformer monitoring terminal and method for calculating current complex power precision thereof
CN104952239A (en) Testing device and testing method for collector
CN107357278A (en) A kind of nuclear power plant's control system signal flow diagram generates online and service platform
CN203535208U (en) Verification circuit and verification apparatus for digital electric energy meter calibration instrument
CN100470976C (en) Integrated automation converting station debugging apparatus
CN101794503B (en) Electric energy balance monitoring system for transformer station
CN201435005Y (en) Electric quantity acquisition system
CN202218068U (en) MU emulator used for detection of smart substation
CN105182065A (en) Electricity information acquisition system based on intelligent electric meter
CN103323686B (en) A kind of intelligent grid power quality analyzer
CN202434042U (en) Automatic meter reading system
CN102736594A (en) Modular design method of unified platform of intelligent power distribution terminal
CN102323478A (en) Flexible wide area power grid harmonic synchronous monitoring system
CN107328992A (en) A kind of power information collection monitoring system based on cloud
CN104680769A (en) Bluetooth-to-infrared meter reading system of intelligent mobile phone
CN106708560A (en) RF communication-based ammeter wireless program upgrading method and wireless upgrading ammeter
CN202693680U (en) M-BUS three-phase electronic type electric energy meter
CN204103937U (en) Long-range direct collection formula customer information control system
CN201417948Y (en) Distribution network status and operating mode optimizing system based on DSCADA system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150930