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.
The embodiment of the present invention provides a kind of carrier communication test macro.Below in conjunction with accompanying drawing, the present invention is described in detail.
Embodiment one
The embodiment of the present invention provides a kind of carrier communication test macro, and this carrier communication test macro comprises: concentrator, and go here and there and topological diverter switch for n-1, n attenuator, n group electric energy meter, detectaphone, copies control device, computer.
Wherein, often a string and the first end of topological diverter switch, the second end and the 3rd end connect concentrator, the first end of an attenuator and the second end of another attenuator respectively; Often organize the second end that electric energy meter connects an attenuator respectively; Detectaphone one end is connected to concentrator and string and between topological diverter switch, the detectaphone other end is connected with computer; Copy control device to be connected between electric energy meter and computer.
Carry out in the process of communication test, concentrator sends copy reading instruction to electric energy meter; After electric energy meter receives copy reading instruction, reply response instruction or relay forwarding instruction according to copy reading instruction; Copy after control device obtains copy reading instruction and generate copy reading frame data, and send to concentrator; Detectaphone obtains copy reading instruction, response instruction, relay forwarding instruction and copy reading frame data, and is transmitted to computer; Computer receives copy reading instruction, response instruction, relay forwarding instruction and copy reading frame data, and judges that whether current copy reading is successful according to copy reading instruction, response instruction, relay forwarding instruction and copy reading frame data.
Carrier communication test macro of the present invention by going here and there and the topological structure of topological diverter switch change carrier communication system, for different connection status, can realize the full test to carrier communication product routing performance.
Be described in detail below in conjunction with the content of an example to the embodiment of the present 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 of the carrier communication test macro according to the embodiment of the present invention.As shown in Figure 1, this test macro comprises: concentrator 1, goes here and there and topological diverter switch 2 for 6,7 attenuators 3,7 groups of electric energy meter 4(often group are provided with 5 electric energy meters), detectaphone 5, copies 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 macro, the break-make controlling electric current in carrier communication test macro is responsible for by master switch 9, isolating transformer 10 realizes 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 LISN linear impedance stabilization network 11 of leading up to connects concentrator 1, and another road connects topological switching construction circuit.Wherein, LISN linear impedance stabilization network 11 realizes the impedance stabilization effect outputed signal tested concentrator, and improve signal delivery efficiency, concentrator 1 is for sending to electric energy meter 4 instruction of making a copy for.
Particularly, above topology switching construction circuit comprises: 6 string and topological diverter switch 2,7 attenuators 3,7 groups of electric energy meter 4(often group be provided with 5 electric energy meters), air switch 12.Electric energy meter one shown in Fig. 1 is divided into 7 grades, and every grade hangs with 5 pieces, forms one group of electric energy meter.7 groups of electric energy meters are connected respectively in the middle of a branch road, for receiving the copy reading instruction that concentrator 1 sends, and reply response instruction or relay forwarding instruction according to this copy reading instruction.Connect an air switch 12 before often organizing electric energy meter, play safety effect, prevent the unexpected generations such as overcurrent.An attenuator 3 is connected before each air switch 12, attenuator 3 comprises: spacer assembly 13 and attenuator unit 14, spacer assembly 13 and attenuator unit 14 are connected in parallel, spacer assembly 13 realizes the buffer action to multicarrier communication signal on power line, 80dB is greater than by carrier signal attenuation after spacer assembly 13, ensure that the signal sent by concentrator 1 is at electric power meter end None-identified, thus get rid of signal disturbing.Meanwhile, spacer assembly 13 is undamped for power frequency 220V electric energy, can play the effect of powering for electric energy meter.Spacer assembly 13 and being connected in parallel of attenuator unit 14 make power frequency 220V electric energy be that electric energy meter is powered by spacer assembly, and carrier signal arrives electric energy meter after carrying out controlled decay by attenuator unit, the transmission attenuation of Reality simulation channel.
Particularly, as shown in Figure 2, attenuator unit 14 comprises epi-position decay cut relay group and light current attenuator module, carrier signal can only be allowed to pass through, to the isolation of power frequency 220V electric energy, for carrier signal provides a transmission channel, the attenuation for carrier signal is adjustable.
As shown in Figure 1, Article 1, the attenuator 3 in branch road is directly connected between above-mentioned isolating transformer 10 and LISN linear impedance stabilization network 11, a string is all connected with and topological diverter switch 2 before all the other several attenuators, for first string and topological diverter switch 2, this string the first end 15 of topological diverter switch 2 is directly connected between above-mentioned isolating transformer 10 and LISN linear impedance stabilization network 11; Its second end 16 connects the first end 18 of an attenuator 3; Its 19, the 3rd end is connected between air switch 12 on another article of branch road and electric energy meter group, the string in other several branch roads topological diverter switch is identical with the annexation of attenuator, does not repeat them here.Such annexation, make carrier communication system of the present invention can by string and the topological structure of topological diverter switch to system change.
String and topological diverter switch principle as shown in Figure 3,7 grades of circuit by string and topological diverter switch select, selection is that the output directly linking concentrator 1 forms parallel-connection structure, or the rear end of receiving previous stage table forms cascaded structure, and 7 groups of tables can be made to be in the different relaying degree of depth.Simultaneously can also control the access phase place of often group table by the epi-position cut relay group that decays.The topological structure example that can simulate is as 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 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 computer 7, after obtaining copy reading instruction, generate copy reading frame data, and send to concentrator 1; Detectaphone 5 one end is connected between concentrator 1 and LISN linear impedance stabilization network 11, and the other end is connected 7 with computer, for obtaining above-mentioned copy reading instruction, response instruction, relay forwarding instruction and copy reading frame data, and is transmitted to computer 7.According to the above-mentioned copy reading instruction received, response instruction, relay forwarding instruction and copy reading frame data, computer 7 judges that whether current copy reading is successful.
It should be noted that, though be provided with 7 groups of electric energy meters in above-mentioned example, often group arranges 5 electric energy meters, but electric energy meter and the corresponding string that arranges the quantity of topological diverter switch, attenuator and air switch herein, be only the example illustrating carrier communication test macro of the present invention and lift, the present invention is not limited to this, can according to actual content measurement need the quantity of above-mentioned each equipment is adjusted.
The carrier communication test macro of the embodiment of the present invention, by going here and there and the topological structure of topological diverter switch change carrier communication system, realizes the test to carrier communication product routing performance.By computer settings and the topological structure revising test macro, carry out different permutation and combination, simulation actual field networking situation, multistage routing infrastructure can be set, the copy reading order that concentrator sends catches rear feeding computer via copying control device, processes by analysis, if object table counts real table, then again combining copy reading frame data is sent in power line carrier by copying control device, to be counted by table copy back via stage body.In the process, computer real-time statistics copy reading success rate, copy reading result, routing condition, relay case, reflected by the form of chart.Test index is as shown in table 1:
The list of table 1 low pressure carrier wave routing performance test index
Fig. 5 is the computer of the embodiment of the present invention and each parts annexation schematic diagram, and as shown in Figure 5, above computer 7 comprises: concentrator model node 71, entity electric energy meter model node 72 and virtual electric energy meter model node 73 3 part.
Wherein, concentrator master cast node 71 is connected with entity electric energy meter model node 72 and virtual electric energy meter model node 73 respectively, and send communication data to concentrator 1 and electric energy meter 4 via detectaphone 5, concentrator master cast node 71 corresponds to real concentrator on stage body, utilize detectaphone to obtain and analyze the subchannel communication protocol of concentrator, by USB interface and computer interactive, realize the mutual of communication data between concentrator and electric energy meter (entity, virtual) and manage.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 that whether current system is busy, if so, then abandons current acknowledgement frame, otherwise carry out step 604;
Step 604: start timer;
Step 605: send command frame:
Step 606: send successfully;
Step 607: judge currently whether have transmission link, if so, then carry out step 608, otherwise system prompt is current does not send link;
Step 608: receive response frame;
Step 609: judge that whether current system conditions is overtime, if so, then sends overtime frame, otherwise carry out step 610;
Step 610: send response frame;
Step 611: timer initiatively stops;
Step 612: current system conditions is time-out, terminates communication.
Virtual electric energy meter model node 73 is connected with concentrator model node 71, and send communication data to concentrator 1 and electric energy meter 4 via copying control device 6, virtual electric energy meter model node 73 is by the communication feature of computer according to electric energy meter, the electric energy meter communication node that simulation generates, by the electric energy meter carrier wave instruction set of software simulation, after receiving concentrator communication message, via computer control, communicate with concentrator, realize controlled communication process.
Fig. 7 is the flow chart of data processing figure of the virtual electric energy meter model unit 73 according to the embodiment of the present 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 detect current system conditions time-out, then send overtime frame;
Step 705: transmission frame data;
Step 706: if detect current system to there is fault, 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 corresponds to the electric energy meter on stage body, by initiatively carrying out the communication message of data interaction and passive monitoring electric energy meter with electric energy meter, realize management to electric energy meter information, utilize detectaphone and carrier signal to copy between entity electric energy meter node and electric energy meter to control device and carry out information interaction.
In the middle of the work of reality, when carrying out performance test to carrier communication, in the computer of the embodiment of the present invention, the effect of each model node and each parts and relation each other can be divided into following 3 kinds of situations to be described:
(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 analyzes copy reading instruction a, 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, by reply response instruction b, computer 7 obtains response instruction b by detectaphone 5, and response instruction b is analyzed, resolve wherein address information and trunk information, confirm that whether this time point-to-point copy reading is successful.The data of what if 1. true electric energy meter judged copy reading is not this electric energy meter, relay forwarding instruction c will be sent, copy reading instruction is carried out relaying to target electric energy meter m, computer 7 obtains relay forwarding instruction c by detectaphone 5, and relay forwarding instruction c is analyzed, resolve wherein address information and trunk information, record this trunk information.After 2. true electric energy meter receives relay forwarding instruction c, to judge, if copy reading is the data of this electric energy meter, by reply response instruction d, computer obtains response instruction d by detectaphone 5, and response instruction d is analyzed, resolve wherein address information and trunk information, confirm that whether this time point-to-point copy reading is successful.The data of what if 2. true electric energy meter judged copy reading is not this electric energy meter, relay forwarding instruction e will be sent, copy reading instruction is carried out relaying to target electric energy meter m, computer obtains relay forwarding instruction e by detectaphone 5, and relay forwarding instruction e is analyzed, resolve wherein address information and trunk information, record this trunk information.The like ... until object electric energy meter m, reply response instruction x, response instruction x returns to concentrator by the inverse process of above-mentioned relaying again, computer 7 obtains response instruction x by detectaphone 5, and response instruction x is analyzed, resolve wherein address information and trunk information, confirm that whether this relaying copy reading is successful.By record, computer 7 obtains the route relaying relation that whole piece instruction performs, and line item of going forward side by side, is shown to 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 analyzes copy reading instruction a, resolves wherein address information and trunk information, obtains the destination address of concentrator copy reading electric energy meter.Computer is arranged according to operator, if operator is set to point-to-point copy reading pattern, from Virtual table node storehouse, then select the virtual electric energy meter node of destination address s, control objectives dummy node s replys a copy reading successful respond instruction b, by copying control device 6 by command on power line, after concentrator 1 receives copy reading successful respond instruction b, computer 7 pairs of concentrator 1 states are inquired about, if concentrator 1 is thought then complete copy reading success and once talk with.If operator is set to multilevel relay copy reading pattern, from Virtual table node storehouse, then select the multiple virtual electric energy meter node addresss comprising destination address s, form the response instruction x that comprises multilevel relay relation, by copying control device 6, response instruction x is transferred on power line, after concentrator 1 receives response instruction x, computer 7 pairs of concentrator 1 states are inquired about, if concentrator 1 is thought then complete copy reading success and once talk with.Judge the adaptive capacity of concentrator to different relay condition according to this.
(3) the true concentrator true electric energy meter of copy reading and virtual electric energy meter node simultaneously
Now be in dissengaged positions by the carrier communication loop of hardware topology diverter switch control concentrator 1 and true electric energy meter 4.Both comprise true electric energy meter address in the electric energy meter address information that concentrator 1 is downloaded, also comprise virtual electric energy meter address.When the data of true concentrator copy reading electric energy meter m, copy reading instruction a uploads in computer 7 by detectaphone 5, computer judges whether destination address m is true electric energy meter address, if true electric energy meter address, then by copying control device, copy reading instruction a is issued true electric energy meter m, after electric energy meter 4 receives copy reading instruction a, replying response instruction b, uploading to computer 7 by copying control device 6.Computer 7 is arranged according to 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 by detectaphone 5, response instruction b is replied to concentrator 1.If relaying copy reading is simulated, then from Virtual table node storehouse, select multiple virtual electric energy meter node address, form the response instruction x that comprises multilevel relay relation, by copying control device 6, response instruction x is transferred on power line, after concentrator 1 receives response instruction x, computer 7 pairs of concentrator 1 states are inquired about, if concentrator 1 is thought then complete copy reading success and once talk with.Judge the adaptive capacity of concentrator to different relay condition according to this.
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; Meanwhile, utilize the packet sending and receiving that each model node controls between tested concentrator and tested carrier electric energy meter, for concentrator and intelligent electric energy meter build a carrier communication network environment, realize the test to carrier communication routing performance parameter and statistical function.
In 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 hardware and forms and software sharing two large divisions, hardware components comprises power supply and isolated part 20, spectrum measurement part 21, hardware isolated part 22, routing 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 of point-to-point communication performance to low-voltage powerline carrier communication product and routing to communicate performance.Software section comprises Master station control software 29, simulation testing software 30 and statistical analysis software 31, realizes the control of test product, the software simulation of route and the statistical analysis to test result.
Particularly, can test the situation of 1 concentrator and 35 three-phase/single-phase carrier electric energy meters simultaneously, the hardware configuration of carrier communication test macro of the present invention can be arranged 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, point two rows.Whole system comprise test with 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 forms.1 concentrator and 35 three-phase/single-phase carrier electric energy meters can be tested simultaneously.In system, main testing equipment adopts gpib bus to control, and achieves automation centralized control, reduces the impact of manual operation on test accuracy.Concentrator and table do for electric isolution and do signal isolates, and power source and meter hanging frame adopt integral type or split-type structural.
Similarly, the situation of above-mentioned test 1 concentrator and 35 three-phase/single-phase carrier electric energy meters is only the example illustrating carrier communication test macro of the present invention and lift, but the present invention is not limited to this, quantity and the grouping of electric energy meter can adjust 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) possess the analog capability to main website downlink communication function, tested concentrator can be controlled and complete the communication with tested carrier electric energy meter;
(2) a tested concentrator, multiple stage single-phase carrier electric energy meter and many Three Phase Carrier Baseds electric energy meter can be accessed, copy communication capacity to form the collection of concentrator to carrier electric energy meter;
(3) can the three-phase power line channel characteristics in Reality simulation platform district, possess the power of test to phase carrier electric energy meter signal intelligence each under three-phase voltage condition;
(4) by the connection topological structure between change carrier electric energy meter node and concentrator node and connecting channel feature, can control the signal intelligence between carrier electric energy meter and concentrator, thus 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, the connecting channel feature between electric energy meter node and concentrator node, between electric energy meter node can be changed;
(6) by changing network topology architecture, carrier electric energy meter node can be made to switch from non-relay to connecting most multilayer relaying;
(7) possess communication success rate is copied to different route conditions next part, network convergence time, platform district collection copy 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, meanwhile, by following several respects, improve the fail safe of the aspect such as structure, circuit, software of system:
(1) power acquisition 3 isolated transformers, and add LISN, can effectively prevent when operating stage body, misoperation causes electric shock;
(2) on power supply, add fuse, when power supply is excessive, blown fuse, prevents stage body short circuit from causing burning out of stage body;
(3) on stage body, add emergency stop push button, stage body run into some not predictable problem time, can promptly by stage body power-off;
(4) be designed with air switch after general supply, after every grade of isolating transformer, be designed with air switch, prevent stage body short circuit heavy current burning apparatus;
(5) the stage body table holder of design specialized is for electrical short box, realizes controlling the break-make of each epi-position three phase mains.When accessing single-phase meter, carrying out Phase-switching by touch switch, avoiding plugging by hand the short circuit or arc discharge that cause, the fail safe of enhancing Dynamic System;
(6) on ammeter terminal, cover plate is blocked in design, prevents contacing by mistake of human body and ammeter terminal;
(7) stage body equipment, dial framework, power line shielding outer cover have all carried out good grounding design, ensure the safety of stage body to greatest extent.
One of ordinary skill in the art will appreciate that the hardware that all or part of step realized in above-described embodiment method can carry out instruction relevant by program has come, this program can be stored in a computer read/write memory medium, such as ROM/RAM, magnetic disc, CD etc.
Above-described specific embodiment; object of the present invention, technical scheme and beneficial effect are further described; be understood that; the foregoing is only specific embodiments of the invention; the protection range be not intended to limit the present invention; within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.