Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The embodiment of the invention provides a kind of carrier communication test macro.The present invention is described in detail below in conjunction with accompanying drawing.
Embodiment one
The embodiment of the invention provides a kind of carrier communication test macro, and this carrier communication test macro comprises: concentrator, and n-1 string and topological diverter switch, n attenuator, n organizes electric energy meter, and detectaphone is copied the control device, computer.
Wherein, first end, second end and the 3rd end of each string and topological diverter switch connect first end of concentrator, an attenuator and second end of another attenuator respectively; Every group of electric energy meter connects second end of an attenuator respectively; Detectaphone one end is connected between concentrator and string and the topological diverter switch, and the detectaphone other end is connected with computer; Copying the control device is connected between electric energy meter and the computer.
Communicate in the process of test, concentrator sends the copy reading instruction to electric energy meter; After electric energy meter receives the copy reading instruction, reply instruction or relaying forwarding instruction according to copy reading instruction answer; Copy the control device and obtain copy reading instruction back generation copy reading frame data, and send to concentrator; Detectaphone obtains copy reading and instructs, replys instruction, relaying forwarding instruction and copy reading frame data, and is transmitted to computer; Computer receives the copy reading instruction, replys instruction, relaying is transmitted instruction and copy reading frame data, and according to the copy reading instruction, reply instruction, relaying and transmit and instruct and the copy reading frame data judge whether current copy reading successful.
Carrier communication test macro of the present invention can change the topological structure of carrier communication system by string and topological diverter switch, at different connection status, realizes the full test to carrier communication product routing performance.
Be elaborated below in conjunction with the content of an example to the embodiment of the invention, wherein, n is positive integer, and in this example, the value of n gets 7, but the present invention is not limited to this.
Fig. 1 is the structural representation according to the carrier communication test macro of the embodiment of the invention.As shown in Figure 1, this test macro comprises: 1,6 string of concentrator and topological diverter switch 2,7 attenuators 3,7 groups of electric energy meter 4(are provided with 5 electric energy meters for every group), detectaphone 5 is copied control device 6, computer 7, power supply 8, master switch 9, isolating transformer 10, LISN linear impedance stabilization network 11, air switch 12.
Power supply 8, master switch 9 and isolating transformer 10 are connected in series, wherein, power supply 8 provides power supply for whole test system, master switch 9 is responsible for the break-make of electric current in the control carrier communication test macro, isolating transformer 10 is realized the isolation of power supply noise and high frequency harassing and wrecking to external world, preferably, power supply 8 can be 380V three-phase four-wire system power supply.
After isolating transformer 10, test macro is divided into two-way, and the LISN linear impedance stabilization network 11 of leading up to connects concentrator 1, and another road connects topological switching construction circuit.Wherein, the impedance stabilization effect that LISN linear impedance stabilization network 11 is realized tested concentrator output signal improves the signal delivery efficiency, and concentrator 1 is used for sending the instruction of making a copy for to electric energy meter 4.
Particularly, above topology switching construction circuit comprises: 6 the string and 3,7 groups of electric energy meter 4(of 2,7 attenuators of topological diverter switch be provided with 5 electric energy meters for every group), air switch 12.Electric energy meter shown in Fig. 1 is divided into 7 grades altogether, and every grade hangs with 5, forms one group of electric energy meter.7 groups of electric energy meters are connected respectively in the middle of the branch road, are used for the copy reading instruction that reception concentrator 1 sends, and reply instruction or relaying forwarding instruction according to this copy reading instruction answer.Connect an air switch 12 before every group of electric energy meter, play safety effect, prevent unexpected generations such as overcurrent.Connect an attenuator 3 before each air switch 12, attenuator 3 comprises: spacer assembly 13 and attenuator unit 14, spacer assembly 13 is connected in parallel with attenuator unit 14, the buffer action that spacer assembly 13 is realized carrier communication signal on the power line, by spacer assembly 13 back carrier signal attenuations greater than 80dB, assurance can't be identified at electric power meter end by the signal that concentrator 1 sends, and disturbs thereby get rid of signal.Simultaneously, spacer assembly 13 is undamped for power frequency 220V electric energy, can play the effect into the electric energy meter power supply.Spacer assembly 13 makes that with being connected in parallel of attenuator unit 14 power frequency 220V electric energy is the electric energy meter power supply by spacer assembly, and carrier signal is undertaken arriving electric energy meter after the controlled decay by attenuator unit, the transmission attenuation of simulation real channel.
Particularly, as shown in Figure 2, attenuator unit 14 comprises epi-position decay cut relay group and light current attenuator module, can only allow carrier signal to pass through, power frequency 220V electric energy is isolated, for carrier signal provides a transmission channel, can regulate for the attenuation of carrier signal.
As shown in Figure 1, article one, the attenuator in the branch road 3 is directly connected between above-mentioned isolating transformer 10 and the LISN linear impedance stabilization network 11, all be connected with a string and topological diverter switch 2 before all the other several decay devices, be example with first string and topological diverter switch 2, this string also first end 15 of topological diverter switch 2 is directly connected between above-mentioned isolating transformer 10 and the LISN linear impedance stabilization network 11; Its second end 16 connects first end 18 of an attenuator 3; 19 at its 3rd end is connected between the air switch 12 and electric energy meter group on another branch road, and string and topological diverter switch in other several branch roads are identical with the annexation of attenuator, do not repeat them here.Such annexation makes carrier communication system of the present invention to change the topological structure of system by string and topological diverter switch.
String and topological diverter switch principle are as shown in Figure 3,7 grades of circuit are selected by string and topological diverter switch, selection is directly to link the output of concentrator 1 to form parallel-connection structure, or the rear end of receiving the previous stage table forms cascaded structure, can make 7 groups of tables be in the different relaying degree of depth.Simultaneously can also control the access phase place of every group of table by the epi-position cut relay group that decays.The topological structure example that can simulate is shown in Fig. 4 A~Fig. 4 E: shown in Fig. 4 A is cascaded structure, and shown in Fig. 4 B is parallel-connection structure, and shown in Fig. 4 C is star structure, and shown in Fig. 4 D is the symmetric double gauge structure, and shown in Fig. 4 E is asymmetric pair of gauge structure.
Further, copy control device 6 and be connected between electric energy meter 4 and the computer 7, be used for obtaining copy reading instruction back and generate the copy reading frame data, and send to concentrator 1; Detectaphone 5 one ends are connected between concentrator 1 and the LISN linear impedance stabilization network 11, and the other end is connected 7 with computer, are used for obtaining above-mentioned copy reading instruction, reply instruction, relaying forwarding instruction and copy reading frame data, and be transmitted to computer 7.Computer 7 instructs, replys instruction, relaying forwarding instruction and copy reading frame data according to the above-mentioned copy reading that receives and judges whether current copy reading is successful.
Need to prove, though be provided with 7 groups of electric energy meters in the above-mentioned example, every group arranges 5 electric energy meters, but the quantity of electric energy meter and the corresponding string that arranges and topological diverter switch, attenuator and air switch herein, only for specifying the example that carrier communication test macro of the present invention is lifted, the present invention is not limited to this, can adjust the quantity of above-mentioned each equipment according to the needs of actual content measurement.
The carrier communication test macro of the embodiment of the invention by the topological structure of string and topological diverter switch change carrier communication system, is realized the test to carrier communication product routing performance.Topological structure by computer settings and modification test macro, carry out different permutation and combination, simulation actual field networking situation, can set multistage routing infrastructure, the copy reading order that concentrator sends is sent into computer via copying after the control device is caught, and handles by analysis, if object table is counted true table, then make up the copy reading frame data again and be sent in the power line carrier by copying the control device, will show counting according to copying back via stage body.In this process, computer real-time statistics copy reading success rate, copy reading result, routing condition, relaying situation, the form by chart reflects.Test index is as shown in table 1:
The tabulation of table 1 low pressure carrier wave routing performance test index
Fig. 5 is computer and each parts annexation schematic diagram of the embodiment of the invention, and as shown in Figure 5, above-mentioned computer 7 comprises: concentrator model node 71, entity electric energy meter model node 72 and virtual electric energy meter model node 73 3 parts.
Wherein, concentrator master cast node 71 is connected with virtual electric energy meter model node 73 with entity electric energy meter model node 72 respectively, and send communication data to concentrator 1 and electric energy meter 4 via detectaphone 5, concentrator master cast node 71 is corresponding to real concentrator on the stage body, utilize detectaphone to obtain and analyze the subchannel communication protocol of concentrator, by USB interface and computer interactive, realize the mutual and management to communication data between concentrator and the electric energy meter (entity, virtual).The flow chart of data processing of concentrator master cast node 71 is as shown in Figure 6:
Step 601: receive data;
Step 602: send acknowledgement frame;
Step 603: judge whether current system is busy, if then abandon current acknowledgement frame, otherwise carry out step 604;
Step 604: start timer;
Step 605: send command frame:
Step 606: send successfully;
Step 607: judge the current transmission link that whether has, if, then carry out step 608, otherwise the current link that do not send of system prompt;
Step 608: receive response frame;
Step 609: judge whether current system mode is overtime, if then send overtime frame, otherwise carry out step 610;
Step 610: send response frame;
Step 611: timer initiatively stops;
Step 612: current system mode is overtime, finishes communication.
Virtual electric energy meter model node 73 is connected with concentrator model node 71, and via copy the control device 6 send communication data to concentrator 1 and electric energy meter 4, virtual electric energy meter model node 73 is by the communication characteristics of computer according to electric energy meter, the electric energy meter communication node that simulation generates, be the electric energy meter carrier wave instruction set by software simulation, after receiving the concentrator communication message, via computer control, communicate with concentrator, realize controlled communication process.
Fig. 7 is the flow chart of data processing figure according to the virtual electric energy meter model unit 73 of the embodiment of the invention, and as shown in Figure 7, the flow chart of data processing of virtual electric energy meter model node 73 is as follows:
Step 701: frames received certificate;
Step 702: forward command frame;
Step 703: transmitted response frame;
Step 704: if it is overtime to detect current system mode, then send overtime frame;
Step 705: send frame data;
Step 706: have fault if detect current system, then send failure, otherwise carry out step 707;
Step 707: send successfully;
Step 708: if do not find the link that can send, then abandon current frame data, sign off.
Entity electric energy meter model node 72 is connected with concentrator model node 71, and send communication data to concentrator 1 and electric energy meter 4 via detectaphone 5, entity electric energy meter model node 72 is corresponding to the electric energy meter on the stage body, by initiatively carry out the communication message of data interaction and passive monitoring electric energy meter with electric energy meter, realization utilizes detectaphone and carrier signal to copy the control device and carries out information interaction the electric energy meter management of information between entity electric energy meter node and the electric energy meter.
In the middle of the work of reality, when performance test was carried out in carrier communication, the effect of each model node and each parts and each other relation can be divided into following 3 kinds of situations and be described in the computer of the embodiment of the invention:
(1) the true true electric energy meter of concentrator copy reading;
In this case, true concentrator sends copy reading instruction a, and computer obtains copy reading instruction a by detectaphone 5, and copy reading instruction a is analyzed, and resolves wherein address information and trunk information, obtains the trunk information of concentrator 1 copy reading electric energy meter 4.After 1. true electric energy meter receives copy reading instruction a, to judge, if copy reading is the data of this electric energy meter, instruction b is replied in answer, computer 7 obtains by detectaphone 5 and replys instruction b, and analyze replying instruction b, resolve wherein address information and trunk information, confirm whether success of point-to-point copy reading this time.If what 1. true electric energy meter judged copy reading is not the data of this electric energy meter, to send relaying and transmit instruction c, the copy reading instruction is carried out relaying to target electric energy meter m, computer 7 obtains relaying by detectaphone 5 and transmits instruction c, and relaying is transmitted instruction c analyze, resolve wherein address information and trunk information, record this trunk information.After 2. true electric energy meter receives that relaying is transmitted instruction c, to judge, if copy reading is the data of this electric energy meter, instruction d is replied in answer, computer obtains by detectaphone 5 and replys instruction d, and analyze replying instruction d, resolve wherein address information and trunk information, confirm whether success of point-to-point copy reading this time.If what 2. true electric energy meter judged copy reading is not the data of this electric energy meter, to send relaying and transmit instruction e, the copy reading instruction is carried out relaying to target electric energy meter m, computer obtains relaying by detectaphone 5 and transmits instruction e, and relaying is transmitted instruction e analyze, resolve wherein address information and trunk information, record this trunk information.And the like ... up to purpose electric energy meter m, instruction x is replied in answer, reply instruction x and return to concentrator by the inverse process of above-mentioned relaying again, computer 7 obtains by detectaphone 5 and replys instruction x, and to reply the instruction x analyze, resolve wherein address information and trunk information, confirm whether this relaying copy reading is successful.By record, computer 7 has obtained the route relaying relation that the whole piece instruction is carried out, and the line item of going forward side by side is shown to the operator by man-machine interface, to carry out the test of follow-up index.
(2) true concentrator copy reading virtual electric energy meter node;
In this case, true concentrator 1 sends copy reading instruction a, and computer 7 obtains copy reading instruction a by detectaphone 5, and copy reading instruction a is analyzed, and resolves wherein address information and trunk information, obtains the destination address of concentrator copy reading electric energy meter.Computer arranges according to the operator, if the operator is set to point-to-point copy reading pattern, then from Virtual table node storehouse, select the virtual electric energy meter node of destination address s, control target dummy node s replys a copy reading successful respond instruction b, by copying control device 6 instruction is transferred on the power line, 7 pairs of concentrator 1 states of computer were inquired about after concentrator 1 was received copy reading successful respond instruction b, if concentrator 1 thinks that copy reading is successful, then finished once dialogue.If the operator is set to multistage relaying copy reading pattern, then from Virtual table node storehouse, select and comprise destination address s at interior a plurality of virtual electric energy meter node addresss, form one comprise multistage relaying relation reply instruction x, by copy the control device 6 will reply the instruction x be transferred on the power line, 7 pairs of concentrator 1 states of computer were inquired about after concentrator 1 was received and replied instruction x, if concentrator 1 thinks that copy reading is successful, then finish once dialogue.Judge that according to this concentrator is to the adaptive capacity of different relaying conditions.
(3) the true concentrator while true electric energy meter of copy reading and virtual electric energy meter node
This moment, the carrier communication loop by hardware topology structure diverter switch control concentrator 1 and true electric energy meter 4 was in dissengaged positions.Both comprise true electric energy meter address in the electric energy meter address information for concentrator 1 download, also comprised the virtual electric energy meter address.When the data of true concentrator copy reading electric energy meter m, copy reading instruction a is uploaded in the computer 7 by detectaphone 5, computer judges whether destination address m is true electric energy meter address, if true electric energy meter address, then instruct a to issue true electric energy meter m copy reading by copying the control device, after electric energy meter 4 is received copy reading instruction a, reply and reply instruction b, upload to computer 7 by copying control device 6.Computer 7 arranges according to the operator, and point-to-point copy reading simulation or relaying copy reading simulation are carried out in judgement.If point-to-point copy reading simulation then directly will be replied instruction b by detectaphone 5 and be replied to concentrator 1.If relaying copy reading simulation, then from Virtual table node storehouse, select a plurality of virtual electric energy meter node addresss, form one comprise multistage relaying relation reply instruction x, by copy the control device 6 will reply the instruction x be transferred on the power line, 7 pairs of concentrator 1 states of computer were inquired about after concentrator 1 was received and replied instruction x, if concentrator 1 thinks that copy reading is successful, then finish once dialogue.Judge that according to this concentrator is to the adaptive capacity of different relaying conditions.
By the present invention, can set and revise the topological structure of carrier communication system, carry out different permutation and combination, with simulated field networking situation; Simultaneously, utilize the packet sending and receiving between the tested concentrator of each model node control and the tested carrier electric energy meter, for concentrator and carrier communication network environment of intelligent electric energy meter structure, realize test and statistical function to carrier communication routing performance parameter.
In the practical application, preferably, the function connection status of carrier communication test macro of the present invention can be as shown in Figure 8, system comprises that hardware constitutes and software constitutes the two large divisions, hardware components comprises power supply and isolated part 20, spectrum measurement part 21, hardware isolated part 22, route hardware simulation part 23, noise simulation part 24, impedance simulation part 25, decay simulation part 26 and tested concentrator 27 and tested table 28, realizes the test to point-to-point communication performance and the routing to communicate performance of low-voltage powerline carrier communication product.Software section comprises main website control software 29, emulation testing software 30 and statistical analysis software 31, realizes the software simulation of control, route to test product and to the statistical analysis of test result.
Particularly, be example with the situation that can test 1 concentrator and 35 three-phase/single-phase carrier electric energy meters simultaneously, carrier communication test system hardware structure of the present invention can arrange as shown in Figure 9, and first test dial framework 902 comprises 1 concentrator and 5 epi-positions; Other three test dial frameworks 903 comprise 10 epi-positions respectively, divide two rows.Whole system comprises test and centralized control computer, power supply and xegregating unit, carrier communication performance test apparatus, carrier channel emulator, virtual carrier communication node, test dial framework and rack 901 compositions.Can test 1 concentrator and 35 three-phase/single-phase carrier electric energy meters simultaneously.Main testing equipment adopts gpib bus control in the system, has realized the automation centralized control, has reduced the influence of manual operation to test accuracy.Concentrator and table are done the power supply isolation and are done signal and isolate, and power source and meter hanging frame adopt integral type or split-type structural.
Similarly, the situation of 1 concentrator of above-mentioned test and 35 three-phase/single-phase carrier electric energy meters is only for specifying the example that carrier communication test macro of the present invention is lifted, but the present invention is not limited to this, and the quantity of electric energy meter and grouping can be adjusted according to the needs of actual content measurement.
In sum, the carrier communication test macro of the present invention function that can realize is as follows:
(1) possesses analog capability to main website downlink communication function, can control tested concentrator and finish and the communicating by letter of tested carrier electric energy meter;
(2) can insert a tested concentrator, many single-phase carrier electric energy meters and many three-phases carrier electric energy meter, to form concentrator the collection of carrier electric energy meter be copied communication capacity;
(3) can simulate the three-phase power line channel characteristics in true platform district, possess the power of test to each phase carrier electric energy meter signal intelligence under the three-phase voltage condition;
(4) be connected topological structure and connecting channel feature by changing between carrier electric energy meter node and the concentrator node, can control the signal intelligence between carrier electric energy meter and the concentrator, thereby analog carrier electric energy meter node is to the route characteristics situation of change of concentrator node;
(5) by modes such as the injection of carrier electric energy meter node noise, signal attenuation, load impedance simulations, can change the connecting channel feature between electric energy meter node and the concentrator node, between the electric energy meter node;
(6) by changing network topology architecture, the carrier electric energy meter node is switched to connecting the multilayer relaying from non-relay;
(7) possess to different route conditions next parts copy communication success rate, network convergence time, platform district collection is copied the power of test of time.
Need the tester of specialty to operate when it should be noted that test, to guarantee the safety of personnel and equipment, simultaneously, and by following several respects, the fail safe of aspects such as the structure of raising system, circuit, software:
(1) power supply adopts 3 isolated transformers, and has increased LISN, can prevent effectively that misoperation causes electric shock when the operation stage body;
(2) increased fuse at power supply, when power supply was excessive, blown fuse prevented that the stage body short circuit from causing burning out of stage body;
(3) increased emergency stop push button at stage body, when stage body runs into the problem that some can not estimate, can promptly stage body have been cut off the power supply;
(4) design has air switch after the general supply, and design has air switch after every grade of isolating transformer, prevents stage body short circuit heavy current burning apparatus;
(5) the stage body table holder of design specialized power supply short circuit box is realized the break-make control to each epi-position three phase mains.When inserting single-phase table, carry out phase place by touch switch and switch, short circuit or the arc discharge of avoiding manual plug to cause, the fail safe of enhancing system operation;
(6) block cover plate in the design of ammeter binding post, prevent that the misconnection of human body and ammeter binding post from touching;
(7) stage body equipment, dial framework, power line shielding outer cover have all carried out good ground connection design, guarantee the safety of stage body to greatest extent.
One of ordinary skill in the art will appreciate that all or part of step that realizes in above-described embodiment method can instruct relevant hardware to finish by program, this program can be stored in the computer read/write memory medium, such as ROM/RAM, magnetic disc, CD etc.
Above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is specific embodiments of the invention; and be not intended to limit the scope of the invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.