A kind of method of testing acquisition terminal local communication unit interchangeability
Technical field
The present invention relates to a kind of extracting method, specifically relate to a kind of method of testing acquisition terminal local communication unit interchangeability.
Background technology
At present, China is carrying out the construction of power information acquisition system, because system scale is large, domestic each terminal producer communication module, communication protocol are all by producer's self-developing, separate operation between each equipment, various communication modules, various communications protocol format exist larger otherness, thereby the interchangeability between each devices in system and communication exists many obstacles, have restricted to a great extent the promotion and application of acquisition system.
Acquisition terminal local communication unit is the data communication realized between acquisition terminal and user's electric power meter, be mainly used in the communication between acquisition terminal and collector, acquisition terminal and intelligent electric energy meter in the power information acquisition system, communication mode mainly comprises power line carrier, micropower is wireless, RS-485 bus etc., channeling port is the port of communications, having the feature of modulated-analog signal and the inherent mechanism of communicating by letter, is the prerequisite that realizes local communication.The communication protocol that the interface parameters of local communication unit, communication protocol, communication sequential and each producer write voluntarily according to standard will directly affect the work quality of communication unit with the sequential of communicating by letter.Deep propelling along with the construction of power information acquisition system, state net company has worked out " Q/GDW1376.2-2013 power consumer power information acquisition system communication protocol the 3rd part: acquisition terminal local communication module interface agreement " acquisition terminal local interface agreement has been carried out to standard, and the exchange function to the local communication unit has proposed pattern requirement and specification requirement in " Q/GDW1375.2-2013 power consumer power information acquisition system pattern standard part 1: the local pattern standard of acquisition terminal " and " Q/GDW1374.3-2013 power consumer power information acquisition system technical specification the 3rd part: communication unit technical specification ", therefore need to be to the overall dimensions of local communication unit, communication protocol, interface pin definition and electric requirement carry out full test.
Summary of the invention
For solving the problem of data communication compatibility in the construction of power information acquisition system and running, obtain stable communication efficiency, serve better the construction of power information acquisition system, the invention provides a kind of method of testing acquisition terminal local communication unit interchangeability, provide means of testing for solving between acquisition terminal and local communication unit the interchange issues that interconnects, further improved the stability of data communication, the fail safe of system data, the integration of information, the extensibility of system and the advance of software platform.
In order to realize the foregoing invention purpose, the present invention takes following technical scheme:
A kind of method of testing acquisition terminal local communication unit interchangeability is provided, said method comprising the steps of:
Step 1: appearance structure interchangeability test;
Step 2: interface pin electric performance test;
Step 3: carry out the interchangeability test of acquisition terminal local communication unit, comprise interface communications protocol uniformity test and information interaction test.
In described step 1, by standard overall dimensions interface model, detect local communication unit overall dimensions, to complete the test of appearance structure interchangeability;
Described standard overall dimensions interface model can embed the local communication unit, and is complementary with the local communication unit interface, completes the data acquisition of acquisition terminal.
In described step 2, by the interface pin of test local communication unit, standard control source, to complete electric performance test;
Described standard is controlled source and is provided power of alterating and direct current for the local communication unit, output state displacement signal, and detect acquisition terminal and whether can correctly identify, and the monitoring tested module is controlled output state, with the local communication unit, carries out the equipment of exchanges data.
Described interface pin comprises working power pin, control signal pin, status signal pin and signal of communication pin.
In described step 3, by communication protocol and the information interactive process of communication protocol simulator test local communication unit and acquisition terminal, to complete interface communications protocol uniformity test and information interaction flow testing;
The protocol library of built-in 1376.2 standards of described communication protocol simulator, send Frame according to communication protocol and interaction flow to the local communication unit, and Frame and built-in protocol library that reception local communication unit returns compare.
Described step 3 comprises the following steps:
Step 3-1: carry out the interface communications protocol uniformity test;
The testing sequence of interface communications protocol uniformity test is: initialization, data retransmission, data query, LI(link interface) detection, control command, routing inquiry, route setting, route data control, route data forwarding, route data copy reading and file transfer;
Step 3-2: information interaction test;
The testing sequence of information interaction test is: identification process, the synchronous flow process of archives, point are copied initiatively register flow path, acquisition terminal flow process, the routing module communication delay association message communication mechanism flow process in flow process and broadcast flow process of initiatively checking meter of initiatively checking meter of flow process, node.
Initialization in described step 3-1 comprises hardware initialization, parameter region initialization and data field initialization; Specifically have:
7.1 hardware initialization;
7.1.1 transmission Frame: 680F00410000283200000101009D16;
Wherein, begin: 68; L:OF00; C:41; R:000028320000; AFN:01; Sign: 0100; CS:9D; Only: 16;
7.1.2 responsive data frame;
7.1.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
7.1.2.2 judge whether data frame type is to forward the communication protocol data frame type, and whether AFN is 00, and whether sign is 0100;
7.1.2.3 judge whether the data unit length of acknowledgement frame is 4 bytes;
7.2 parameter region initialization;
7.2.1 transmission Frame: 680F00410000283200000102009E16;
Wherein, begin: 68; L:OF00; C:41; R:000028320000; AFN:01; Sign: 0200; CS:9E; Only: 16;
7.2.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
7.3 data field initialization;
7.3.1 transmission Frame: 680F0041000028320000010400A016;
Wherein, begin: 68; L:OF00; C:41; R:000028320000; AFN:01; Sign: 0400; CS:A0; Only: 16;
7.3.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged.
Data retransmission in described step 3-1 comprises transparent transmission, test DL/T645-1997 and test DL/T645-2007; Specifically have:
8.1 transparent transmission;
8.1.1 transmission Frame: 681F0041000028320000020100000E6800330000000068010243C30C 16DA16;
Wherein, begin: 68; L:1F00; C:41; R:000028320000; AFN:02; Sign: 0100; Data cell: 000E6800330000000068010243C30C16; CS:DA; Only: 16;
8.1.2 responsive data frame:
8.1.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
8.1.2.2 judge whether data frame type is to forward the communication protocol data frame type, and whether AFN is 02, and whether sign is 0100;
8.1.2.3 judge whether communication protocol type is transparent transmission, and whether first byte of data cell is 00H, and in data cell, whether message length is consistent with the length of data message;
8.2 test DL/T645-1997;
8.2.1 transmission Frame: 681F0041000028320000020100010E6800330000000068010243C30C 16DB16;
Wherein, begin: 68; L:1F00; C:41; R:000028320000; AFN:02; Sign: 0100; Data cell: 010E6800330000000068010243C30C16; CS:DB; Only: 16;
8.2.2 responsive data frame;
8.2.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
8.2.2.2 judge whether data frame type is to forward the communication protocol data frame type, and whether AFN is 02, and whether sign is 0100;
8.2.2.3 judge whether communication protocol type is DL/T645-1997, and whether first byte of data cell is 01H, and in data cell, whether message length is consistent with the length of data message;
8.3 test DL/T645-2007;
8.3.1 transmission Frame: 68210041000028320000020100021068003300000000681104333334 33E5169016;
Wherein, begin: 68; L:2100; C:41; R:000028320000; AFN:02; Sign: 0100; Data cell: 02106800330000000068110433333433E516; CS:90; Only: 16;
8.3.2 responsive data frame;
8.3.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
8.3.2.2 judge whether data frame type is to forward the communication protocol data frame type, and whether AFN is 02, and whether sign is 0100;
8.3.2.3 judge whether communication protocol type is DL/T645-2007, and whether first byte of data cell is 02H, and in data cell, whether message length is consistent with the length of data message.
Data query in described step 3-1 comprises inquiry vendor code and version information, noise level, from node interception information, host node address, host node status word and traffic rate, host node disturbance state, read from monitoring nodes max-timeout time and inquiry wireless communication parameters; Specifically have:
9.1 vendor code and version information
9.1.1 transmission Frame: 680F00410000283200000301009F16;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:02; Sign: 0100; CS:9F; Only: 16;
9.1.2 responsive data frame;
9.1.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
9.1.2.2 judge whether data frame type is vendor code and version information data frame type, and whether AFN is 03, whether sign is 0100;
9.1.2.3 judge whether data unit length is 9 bytes;
9.2 noise level
9.2.1 transmission Frame: 680F0041000028320000030200A016;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:03; Sign: 0200; CS:A0; Only: 16;
9.2.2 responsive data frame;
9.2.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
9.2.2.2 judge whether data frame type is the noise level data frame type, and whether AFN is 03, whether sign is 0200;
9.2.2.3 judge whether data unit length is 1 byte, and value 0~15;
9.3 from the node interception information
9.3.1 transmission Frame: 681100410000283200000304000001A316;
Wherein, begin: 68; L:1100; C:41; R:000028320000; AFN:03; Sign: 0400; Data cell: 0001; CS:A3; Only: 16;
9.3.2 responsive data frame;
9.3.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
9.3.2.2 judge whether data frame type is from node interception information data frame type, and whether AFN is 03, whether sign is 0400;
9.3.2.3 the length of judgement data cell is greater than 0;
9.4 host node address
9.4.1 transmission Frame: 680F0041000028320000030800A616;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:03; Sign: 0800; CS:A6; Only: 16;
9.4.2 responsive data frame;
9.4.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
9.4.2.2 judge whether data frame type is the host node address data frame type, and whether AFN is 03, whether sign is 0800;
9.4.2.3 judge whether the length of data cell is 6 bytes;
9.5 host node status word and traffic rate
9.5.1 transmission Frame: 680F0041000028320000031000AE16;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:03; Sign: 1000; CS:AE; Only: 16;
9.5.2 responsive data frame;
9.5.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
9.5.2.2 judge whether data frame type is host node status word and traffic rate data frame type, and whether AFN is 03, whether sign is 1000;
9.5.2.3 judge whether the length of data cell is greater than 0;
9.6 host node disturbance state
9.6.1 transmission Frame: 6810004100002832000003200001BF16;
Wherein, begin: 68; L:1000; C:41; R:000028320000; AFN:03; Sign: 2000; Data cell: 01; CS:BF; Only: 16;
9.6.2 responsive data frame;
9.6.2.1 judge that whether data frame structure is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
9.6.2.2 judge whether data frame type is host node disturbance state data frame type, and whether AFN is 03, whether sign is 2000;
9.6.2.3 judge that whether the length of data cell is 1 byte, and value is 0 or 1;
9.7 read from the monitoring nodes max-timeout time
9.7.1 transmission Frame: 680F0041000028320000034000DE16
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:03; Sign: 4000; CS:DE; Only: 16;
9.7.2 responsive data frame;
9.7.2.1 judge that whether data frame structure is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
9.7.2.2 judge that whether data frame type is for reading from monitoring nodes max-timeout time data frame type, whether AFN is 03, whether sign is 4000;
9.7.2.3 judge whether the length of data cell is 2 bytes;
9.8 inquiry wireless communication parameters
9.8.1 transmission Frame: 680F00410000283200000380001E16;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:03; Sign: 8000; CS:1E; Only: 16;
9.8.2 responsive data frame;
9.8.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
9.8.2.2 judge whether data frame type is inquiry wireless communication parameters data frame type, and whether AFN is 03, and whether sign is 8000;
9.8.2.3 judge whether the length of data cell is 2 bytes, the value of wireless channel group, whether first byte of data cell is less than 64, the value of wireless host node transmitting power, whether second byte of data cell is less than 4.
LI(link interface) detection in described step 3-1 comprises the sense command of transmission test master/slave node, calls the roll from node; Specifically have:
10.1 send the sense command of test master/slave node
10.1.1 transmission Frame: 6810004100002832000004010001A416;
Wherein, begin: 68; L:1000; C:41; R:000028320000; AFN:04; Sign: 8000; Data cell: 01; CS:A4; Only: 16;
10.1.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
10.2 call the roll from node
10.2.1 transmission Frame: 68OF004100002832000004020001A116;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:04; Sign: 0200; CS:A1; Only: 16;
10.2.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged.
Control command in described step 3-1 comprise host node address is set, allow from node report, start broadcast, setting is from the monitoring nodes max-timeout time and wireless communication parameters is set; Specifically have:
11.1 host node address is set
11.1.1 transmission Frame: 681500410000283200000501001122334455660616;
Wherein, begin: 68; L:1500; C:41; R:000028320000; AFN:05; Sign: 0100; Data cell: 112233445566; CS:06; Only: 16;
11.1.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
11.2 allow to report from node
11.2.1 transmission Frame: 6810004100002832000005020001A316;
Wherein, begin: 68; L:1000; C:41; R:000028320000; AFN:05; Sign: 0200; Data cell: 01; CS:A3; Only: 16;
11.2.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
11.3 start broadcast
11.3.1 start the broadcast transparent transmission
11.3.1.1 transmission Frame: 681F00410000283200050400000E68003300000000E116;
Wherein, begin: 68; L:1F00; C:41; R:000028320000; AFN:05; Sign: 0400; Data cell: 000E6800330000000068010243C30C16; CS:E1; Only: 16;
11.3.1.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
11.3.2 start broadcast DL/T645-1997
11.3.2.1 transmission Frame: 681F00410000283200050400010E6800330000000068010243C30C16 E016;
Wherein, begin: 68; L:1F00; C:41; R:000028320000; AFN:05; Sign: 0400; Data cell: 010E6800330000000068010243C30C16; CS:E0; Only: 16;
11.3.2.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
11.3.3 start broadcast DL/T645-2007
11.3.3.1 transmission Frame: 68210041000028320005040002106800330000000068110433333433 E5169616;
Wherein, begin: 68; L:2100; C:41; R:000028320000; AFN:05; Sign: 0400; Data cell: 02106800330000000068110433333433E516; CS:96; Only: 16;
11.3.3.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
11.4 arrange from the monitoring nodes max-timeout time
11.4.1 transmission Frame: 68100041000028320005080004AC16;
Wherein, begin: 68; L:1000; C:41; R:000028320000; AFN:05; Sign: 0800; Data cell: 04; CS:AC; Only: 16;
11.4.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
11.5 wireless communication parameters is set
11.5.1 transmission Frame: 6811004100002832000510000101B216;
Wherein, begin: 68; L:1100; C:41; R:000028320000; AFN:05; Sign: 1000; Data cell: 0101; CS:B2; Only: 16;
11.5.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged.
Routing inquiry in described step 3-1 comprise inquiry from number of nodes, from nodal information, specify upper level transistroute information from node, route running status, not the copy reading success from nodal information and initiatively registration from nodal information; Specifically have:
12.1 from number of nodes
12.1.1 transmission Frame: 68OF0041000028320000100100AC16;
Wherein, begin: 68; L:OF00; C:41; R:000028320000; AFN:10; Sign: 0100; CS:AC; Only: 16;
12.1.2 responsive data frame;
12.1.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
12.1.2.2 judge whether data frame type is from the number of nodes data frame type, and whether AFN is 10, whether sign is 0100;
12.1.2.3 judge whether the length of data cell is 4 bytes;
12.3 from nodal information
12.3.1 transmission Frame: 68120041000028320000100200010001AF16;
Wherein, begin: 68; L:1200; C:41; R:000028320000; AFN:10; Sign: 0200; Data cell: 010001; CS:AF; Only: 16;
12.3.2 responsive data frame;
12.3.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
12.3.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 10, whether sign is 0200;
12.3.2.3 judge that whether the length of data cell is for being greater than 0;
12.4 specify the upper level transistroute information from node
12.4.1 transmission Frame: 68150041000028320000100400003300000000E216;
Wherein, begin: 68; L:1500; C:41; R:000028320000; AFN:10; Sign: 0400; Data cell: 003300000000; CS:E2; Only: 16;
12.4.2 responsive data frame;
12.4.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
12.4.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 10, whether sign is 0400;
12.4.2.3 judge that whether the length of data cell is for being greater than 0;
12.5 route running status
12.5.1 transmission Frame: 680F0041000028320000100800B316;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:10; Sign: 0800; CS:B3; Only: 16;
12.5.2 responsive data frame;
12.5.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
12.5.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 10, whether sign is 0800;
12.5.2.3 judge that whether the length of data cell is for being greater than 0;
12.6 the not copy reading success from nodal information
12.6.1 transmission Frame: 68120041000028320000101000010001BD16;
Wherein, begin: 68; L:1200; C:41; R:000028320000; AFN:10; Sign: 1000; Data cell: 010001; CS:BD; Only: 16;
12.6.2 responsive data frame;
12.6.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
12.6.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 10, whether sign is 1000;
12.6.2.3 judge that whether the length of data cell is for being greater than 0;
12.7 initiatively registration from nodal information
12.7.1 transmission Frame: 68120041000028320000102000010001CD16;
Wherein, begin: 68; L:1200; C:41; R:000028320000; AFN:10; Sign: 2000; Data cell: 010001; CS:CD; Only: 16;
12.7.2 responsive data frame;
12.7.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
12.7.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 10, whether sign is 2000;
12.7.2.3 judge that whether the length of data cell is for being greater than 0.
Route setting in described step 3-1 comprises to be added from node, delete from node, arranges from node fixed relay path, arranges the route mode of operation, activates and initiatively register and stop initiatively registering from node from node; Specifically have:
13.1 add from node
13.1.1 transmission Frame: 6819004100002832000011010001003300000000020001E416;
Wherein, begin: 68; L:1900; C:41; R:000028320000; AFN:11; Sign: 0100; Data cell: 01003300000000020001; CS:E4; Only: 16;
13.1.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
13.2 delete from node
13.2.1 transmission Frame: 68160041000028320000110200011122334455661416;
Wherein, begin: 68; L:1600; C:41; R:000028320000; AFN:11; Sign: 0200; Data cell: 01112233445566; CS:14; Only: 16;
13.2.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
13.3 arrange from node fixed relay path
13.3.1 transmission Frame: 681C0041000028320000110400003300000000018888889999994716;
Wherein, begin: 68; L:1C00; C:41; R:000028320000; AFN:11; Sign: 0400; Data cell: 00330000000001888888999999; CS:47; Only: 16;
13.3.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
13.4 the route mode of operation is set
13.4.1 transmission Frame: 681200410000283200001108230000D716;
Wherein, begin: 68; L:1200; C:41; R:000028320000; AFN:11; Sign: 0800; Data cell: 230000; CS:D7; Only: 16;
13.4.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
13.5 activate, from node, initiatively register
13.5.1 transmission Frame: 6819004100002832000011100000121210051201000304OF16;
Wherein, begin: 68; L:1900; C:41; R:000028320000; AFN:11; Sign: 1000; Data cell: 00121210051201000304; CS:0F; Only: 16;
13.5.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
13.6 stop initiatively registering from node
13.6.1 transmission Frame: 680F0041000028320000112000CC16;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:11; Sign: 2000; CS:CC; Only: 16;
13.6.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged.
Route data control in described step 3-1 comprises to be restarted, suspends and recovers; Specifically have:
14.1 restart
14.1.1 transmission Frame: 680F0041000028320000120100AE16;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:12; Sign: 0100; CS:AE; Only: 16;
14.1.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
14.2 suspend
14.2.1 transmission Frame: 680F0041000028320000120200AF16;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:12; Sign: 0200; CS:AF; Only: 16;
14.2.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
14.2.3 recover
14.2.3.1 transmission Frame: 680F0041000028320000120400B116;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:12; Sign: 0400; CS:B1; Only: 16;
14.2.3.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged.
Route data in described step 3-1 forward comprise monitoring from node transparent transmission, monitoring from node DL/T645-1997, monitoring is from node DL/T645-2007; Specifically have:
15.1 monitoring is from the node transparent transmission
15.1.1 transmission Frame: 682C004104002832000088888899999900330000000013010000000E 6800330000000068010243C30C168516;
Wherein, begin: 68; L:2C00; C:41; R:040028320000; A:888888999999003300000000; AFN:13; Sign: 0100; Data cell: 00000E6800330000000068010243C30C16; CS:B5; Only: 16;
15.1.2 responsive data frame;
15.1.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
15.1.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 13, whether sign is 0100;
15.1.2.3 judge whether communication protocol type is transparent transmission, and whether first byte of data cell is 00H, and in data cell, whether message length is consistent with the length of data message;
15.2 monitoring is from node DL/T645-1997
15.2.1 transmission Frame: 682C004104002832000088888899999900330000000013010001000E 6800330000000068010243C30C168616;
Wherein, begin: 68; L:2C00; C:41; R:040028320000; A:888888999999003300000000; AFN:13; Sign: 0100; Data cell: 01000E6800330000000068010243C30C16; CS:86; Only: 16;
15.2.2 responsive data frame;
15.2.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
15.2.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 13, whether sign is 0100;
15.2.2.3 judge whether communication protocol type is DL/T645-1997, and whether first byte of data cell is 01H, and in data cell, whether message length is consistent with the length of data message;
15.3 monitoring is from node DL/T645-2007
15.3.1 transmission Frame: 682E0041040028320000888888999999003300000000130100020010 6800330000000068110433333433E5163B16;
Wherein, begin: 68; L:2E00; C:41; R:040028320000; A:888888999999003300000000; AFN:13; Sign: 0100; Data cell: 0200106800330000000068110433333433E516; CS:3B; Only: 16;
15.3.2 responsive data frame;
15.3.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
15.3.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 13, whether sign is 0100;
15.3.2.3 judge whether communication protocol type is DL/T645-2007, and whether first byte of data cell is 02H, and in data cell, whether message length is consistent with the length of data message.
Route data copy reading in described step 3-1 comprises route requests copy reading content and route requests concentrator clock; Specifically have:
16.1 route requests copy reading content
16.1.1 transmission Frame: 681700410000283200001401000100330000000001E516;
Wherein, begin: 68; L:1700; C:41; R:040028320000; AFN:14; Sign: 0100; Data cell: 0100330000000001; CS:E5; Only: 16;
16.1.2 responsive data frame;
16.1.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
16.1.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 14, whether sign is 0100;
16.1.2.3 judge whether the length of data cell is greater than 0;
16.2 route requests concentrator clock
16.2.1 transmission Frame: 681B0041000028320000140200000000240513ED16;
Wherein, begin: 68; L:1B00; C:41; R:040028320000; AFN:14; Sign: 0200; Data cell: 000000240513; CS:ED; Only: 16;
16.2.2 responsive data frame;
16.2.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
16.2.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 14, whether sign is 0200;
16.2.2.3 judge whether the length of data cell is greater than 0.
File process in described step 3-1 is:
17.1 transmission Frame: 681A00410000283200001501000000000100000001001234F916;
Wherein, begin: 68; L:1A00; C:41; R:040028320000; AFN:15; Sign: 0100; Data cell: 0000000100000001001234; CS:F9; Only: 16;
17.2 responsive data frame;
17.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
17.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 15, whether sign is 0100;
17.2.3 judge whether the length of data cell is 4 bytes.
Described step 3-2 specifically comprises the following steps:
Step 3-2-1: identification process
Step 3-2-1-1: by the RESET pin route that resets;
Step 3-2-1-2: wait for that communication unit reporting information AFN=03H-F10 is up, wait timeout time 1min, if do not receive issue local communication module operational mode message command AFN=03H-F10;
Step 3-2-1-3: obtain the module meter reading method and from the monitoring nodes max-timeout time from local communication module operational mode message command AFN=03H-F10; The module meter reading method, if the concentrator pattern is checked meter, the synchronous flow process of archives and routing module active mode are checked meter and are not supported; If route pattern is checked meter, the concentrator active mode is checked meter and is not supported;
Step 3-2-1-4: issue host node address order AFN=05H-F1 is set, now judge that flow process finishes;
Step 3-2-2: the synchronous flow process of archives
Step 3-2-2-1: issue parameter region initialization command AFN=01H-F2;
Step 3-2-2-2: issue inquiry from number of nodes order AFN=10H-F1;
Step 3-2-2-3: issue from nodal information order AFN=10H-F2, relatively from node table address and concentrator table address information, unanimously test finishes, the inconsistent execution following steps that continue;
Step 3-2-2-4: issue and add from node address order AFN=11H-F1, skip to step 3-2-2-3, after carrying out 3 times, still all inconsistent from node table address and concentrator table address information, be judged to and do not support;
Step 3-2-2-5: wait for the concentrator order, if AFN=10H – is F2, reply the table archives address of routing module, the address of previous step record, test and finish;
Step 3-2-3: point is copied flow process
Step 3-2-3-1: issue and suspend routing command AFN=12H-F2;
Step 3-2-3-2: issue monitoring from node order AFN=13H-F1, the DL/T645-2007 agreement, relevant with communication delay, wait for back code, the wait timeout time, by from the maximum 90s of monitoring nodes max-timeout Time Calculation, asks up according to communication delay correction communication data order AFN=14H-F3 if receive, according to delay sending, revised communication data AFN=14H-F3 is descending, if receive, AFN=13H-F1 returns code and is judged to support, and skips to step 4, if receive, does not continue to carry out following steps;
Step 3-2-3-3: issue monitoring from node order AFN=13H-F1, the DL/T645-2007 agreement, irrelevant with communication delay, wait for back code, the wait timeout time presses from the maximum 90s of monitoring nodes max-timeout Time Calculation, if receive, AFN=13H-F1 returns code, is judged to support, if do not receive and be judged to and do not support;
Step 3-2-3-4: issue restoration route order AFN=12H-F3, test finishes;
Step 3-2-4: node is register flow path initiatively
Step 3-2-4-1: issue and suspend routing command AFN=12H-F2;
Step 3-2-4-2: issue to activate and initiatively register AFN=11H-F5 from node, in this order, the duration parameter is made as 1min, waits for back code, and free time 10min adds up to 11min;
Step 3-2-4-3: if concentrator receive report from nodal information and device type AFN=06H-F4 up or report from nodal information AFN=06HF1 up, and receive that route power condition changing information A FN=06H-F3 is judged to support, issues restoration route order AFN=12H-F3; Test finishes;
Step 3-2-4-4: if time-out time arrives, step 3-2-4-3 does not finish to issue route running status AFN=10H-F4, obtain its working mark, only the route running status for work and step 3-2-4-3 in receive report from nodal information and device type AFN=06H-F4 up or report from nodal information AFN=06HF1 up, just can be judged to support, not support otherwise be judged to;
Step 3-2-5: the concentrator flow process of initiatively checking meter
Step 3-2-5-1: issue and suspend routing command AFN=12H-F2;
Step 3-2-5-2: issue monitoring from node order AFN=13H-F1, the DL/T645-2007 agreement, relevant with communication delay, wait for back code, the wait timeout time presses from the maximum 90s of monitoring nodes max-timeout Time Calculation, if the request of receiving is up according to communication delay correction communication data order AFN=14H-F3, according to delay sending, revised communication data AFN=14H-F3 is descending, if receive, AFN=13H-F1 returns code and is judged to support, issues restoration route order AFN=12H-F3; Test finishes, if receive, does not continue to carry out following steps;
Step 3-2-5-3: issue monitoring from node order AFN=13H-F1, the DL/T645-2007 agreement, irrelevant with communication delay, wait for back code, the wait timeout time presses from the maximum 90s of monitoring nodes max-timeout Time Calculation, if receive, AFN=13H-F1 returns code, is judged to support, if do not receive and be judged to and do not support;
Step 3-2-6: the routing module flow process of initiatively checking meter
Step 3-2-6-1: issue and restart routing command AFN=12H-F1, wait for back code, wait timeout time 90s;
Step 3-2-6-2: if receive, route requests copy reading contents command AFN=14H-F1 is up, issues the AFN=14H-F1 order, and this order is relevant with communication delay, channel logo and electric meter address and receive message coupling, the copy reading label entry is made as can copy reading, waits for back code, wait timeout time 90s;
Step 3-2-6-3: if the request of receiving is up according to communication delay correction communication data order AFN=14H-F3, issue according to time delay correction communication message AFN=14H-F3 descending;
Step 3-2-6-4: if receive, report copy reading data AFN=06H-F2 up, be judged to support, if wait timeout is judged to and does not support, time-out time is 90s;
Step 3-2-6-5: issue and suspend routing command AFN=12H-F2; Test finishes;
Step 3-2-7: communication delay association message communication mechanism flow process in the broadcast flow process
Step 3-2-7-1: issue and suspend routing command AFN=12H-F2;
Step 3-2-7-2: issue communication delay relevant broadcasts communication time order AFN=03H-F9, receive back that code AFN=03H-F9 is up;
Step 3-2-7-3: issue startup broadcasting command AFN=05H-F3 descending;
Step 3-2-7-4: receive that acknowledgement frame AFN=00H-F1 is up, waited for according to the wait deadline in acknowledgement frame;
Step 3-2-7-5: issue restoration route order AFN=12H-F3, test finishes.
Compared with prior art, beneficial effect of the present invention is:
1. carry out testing based on local communication unit compatibility facility, consistency to overall dimensions, pin electric parameter and the circuit feature of local communication unit (comprise and control pin, status-pin and the pin of communicating by letter), communication performance, communication protocol and the sequential of communicating by letter is carried out integration test, to detect power information acquisition system local communication channel operating state, communications status between check acquisition terminal and user's electric power meter, estimate the working effect of local communication unit, the ability that interconnects of data communication between each part of evaluating system;
2. the method for test acquisition terminal local communication unit interchangeability will provide means of testing for solving between acquisition terminal and local communication unit the interchange issues that interconnects, and further improve the stability of data communication, the fail safe of system data, the integration of information, the extensibility of system and the advance of software platform;
3. meet the requirement of relevant criterion, realized the interchangeability test of acquisition terminal local communication unit, meet the acquiring electric energy information needs, embody the construction requirements of intelligent grid " informationization, automation, interactive ", improve reliability and the useful life of acquisition terminal, promote the acquisition terminal quality to promote, ensure the reliability service of power information acquisition system, further improve the measurement technology management system, promote the healthy and orderly development of power information collecting work.
The accompanying drawing explanation
Fig. 1 is the method flow diagram of test acquisition terminal local communication unit interchangeability.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
As Fig. 1, a kind of method of testing acquisition terminal local communication unit interchangeability is provided, said method comprising the steps of:
Step 1: appearance structure interchangeability test;
Step 2: interface pin electric performance test;
Step 3: carry out the interchangeability test of acquisition terminal local communication unit, comprise interface communications protocol uniformity test and information interaction test.
In described step 1, detect by standard overall dimensions interface model the requirement whether local communication unit overall dimensions meet " Q/GDW1375.2-2013 power consumer power information acquisition system pattern standard part 1: the local pattern standard of acquisition terminal ", to complete the test of appearance structure interchangeability;
Described standard overall dimensions interface model can embed the local communication unit, and is complementary with the local communication unit interface, completes the data acquisition of acquisition terminal.
In described step 2, whether the interface pin by test local communication unit, standard control source meets the requirement of " Q/GDW1375.2-2013 power consumer power information acquisition system pattern standard part 1: the local pattern standard of acquisition terminal ", " Q/GDW1374.3-2013 power consumer power information acquisition system technical specification the 3rd part: communication unit technical specification ", to complete electric performance test;
Described standard is controlled source and is provided power of alterating and direct current for the local communication unit, output state displacement signal, and detect acquisition terminal and whether can correctly identify, and the monitoring tested module is controlled output state, with the local communication unit, carries out the equipment of exchanges data.
Described interface pin comprises working power pin, control signal pin, status signal pin and signal of communication pin.
In described step 3, whether meet the requirement of " Q/GDW1376.2-2013 power consumer power information acquisition system communication protocol part 2: acquisition terminal local communication module interface agreement " by communication protocol and the information interactive process of communication protocol simulator test local communication unit and acquisition terminal, to complete interface communications protocol uniformity test and information interaction flow testing;
The protocol library of built-in 1376.2 standards of described communication protocol simulator, send Frame according to communication protocol and interaction flow to the local communication unit, and Frame and built-in protocol library that reception local communication unit returns compare.
Described step 3 comprises the following steps:
Step 3-1: carry out the interface communications protocol uniformity test;
The testing sequence of interface communications protocol uniformity test is: initialization, data retransmission, data query, LI(link interface) detection, control command, routing inquiry, route setting, route data control, route data forwarding, route data copy reading and file transfer;
Step 3-2: information interaction test;
The testing sequence of information interaction test is: identification process, the synchronous flow process of archives, point are copied initiatively register flow path, acquisition terminal flow process, the routing module communication delay association message communication mechanism flow process in flow process and broadcast flow process of initiatively checking meter of initiatively checking meter of flow process, node.
Initialization in described step 3-1 comprises hardware initialization, parameter region initialization and data field initialization; Specifically have:
7.1 hardware initialization;
7.1.1 transmission Frame: 680F00410000283200000101009D16;
Wherein, begin: 68; L:OF00; C:41; R:000028320000; AFN:01; Sign: 0100; CS:9D; Only: 16;
7.1.2 responsive data frame;
7.1.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
7.1.2.2 judge whether data frame type is to forward the communication protocol data frame type, and whether AFN is 00, and whether sign is 0100;
7.1.2.3 judge whether the data unit length of acknowledgement frame is 4 bytes;
7.2 parameter region initialization;
7.2.1 transmission Frame: 680F00410000283200000102009E16;
Wherein, begin: 68; L:OF00; C:41; R:000028320000; AFN:01; Sign: 0200; CS:9E; Only: 16;
7.2.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
7.3 data field initialization;
7.3.1 transmission Frame: 680F0041000028320000010400A016;
Wherein, begin: 68; L:OF00; C:41; R:000028320000; AFN:01; Sign: 0400; CS:A0; Only: 16;
7.3.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged.
Data retransmission in described step 3-1 comprises transparent transmission, test DL/T645-1997 and test DL/T645-2007; Specifically have:
8.1 transparent transmission;
8.1.1 transmission Frame: 681F0041000028320000020100000E6800330000000068010243C30C 16DA16;
Wherein, begin: 68; L:1F00; C:41; R:000028320000; AFN:02; Sign: 0100; Data cell: 000E6800330000000068010243C30C16; CS:DA; Only: 16;
8.1.2 responsive data frame:
8.1.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
8.1.2.2 judge whether data frame type is to forward the communication protocol data frame type, and whether AFN is 02, and whether sign is 0100;
8.1.2.3 judge whether communication protocol type is transparent transmission, and whether first byte of data cell is 00H, and in data cell, whether message length is consistent with the length of data message;
8.2 test DL/T645-1997;
8.2.1 transmission Frame: 681F0041000028320000020100010E6800330000000068010243C30C 16DB16;
Wherein, begin: 68; L:1F00; C:41; R:000028320000; AFN:02; Sign: 0100; Data cell: 010E6800330000000068010243C30C16; CS:DB; Only: 16;
8.2.2 responsive data frame;
8.2.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
8.2.2.2 judge whether data frame type is to forward the communication protocol data frame type, and whether AFN is 02, and whether sign is 0100;
8.2.2.3 judge whether communication protocol type is DL/T645-1997, and whether first byte of data cell is 01H, and in data cell, whether message length is consistent with the length of data message;
8.3 test DL/T645-2007;
8.3.1 transmission Frame: 68210041000028320000020100021068003300000000681104333334 33E5169016;
Wherein, begin: 68; L:2100; C:41; R:000028320000; AFN:02; Sign: 0100; Data cell: 02106800330000000068110433333433E516; CS:90; Only: 16;
8.3.2 responsive data frame;
8.3.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
8.3.2.2 judge whether data frame type is to forward the communication protocol data frame type, and whether AFN is 02, and whether sign is 0100;
8.3.2.3 judge whether communication protocol type is DL/T645-2007, and whether first byte of data cell is 02H, and in data cell, whether message length is consistent with the length of data message.
Data query in described step 3-1 comprises inquiry vendor code and version information, noise level, from node interception information, host node address, host node status word and traffic rate, host node disturbance state, read from monitoring nodes max-timeout time and inquiry wireless communication parameters; Specifically have:
9.1 vendor code and version information
9.1.1 transmission Frame: 680F00410000283200000301009F16;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:02; Sign: 0100; CS:9F; Only: 16;
9.1.2 responsive data frame;
9.1.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
9.1.2.2 judge whether data frame type is vendor code and version information data frame type, and whether AFN is 03, whether sign is 0100;
9.1.2.3 judge whether data unit length is 9 bytes;
9.2 noise level
9.2.1 transmission Frame: 680F0041000028320000030200A016;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:03; Sign: 0200; CS:A0; Only: 16;
9.2.2 responsive data frame;
9.2.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
9.2.2.2 judge whether data frame type is the noise level data frame type, and whether AFN is 03, whether sign is 0200;
9.2.2.3 judge whether data unit length is 1 byte, and value 0~15;
9.3 from the node interception information
9.3.1 transmission Frame: 681100410000283200000304000001A316;
Wherein, begin: 68; L:1100; C:41; R:000028320000; AFN:03; Sign: 0400; Data cell: 0001; CS:A3; Only: 16;
9.3.2 responsive data frame;
9.3.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
9.3.2.2 judge whether data frame type is from node interception information data frame type, and whether AFN is 03, whether sign is 0400;
9.3.2.3 the length of judgement data cell is greater than 0;
9.4 host node address
9.4.1 transmission Frame: 680F0041000028320000030800A616;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:03; Sign: 0800; CS:A6; Only: 16;
9.4.2 responsive data frame;
9.4.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
9.4.2.2 judge whether data frame type is the host node address data frame type, and whether AFN is 03, whether sign is 0800;
9.4.2.3 judge whether the length of data cell is 6 bytes;
9.5 host node status word and traffic rate
9.5.1 transmission Frame: 680F0041000028320000031000AE16;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:03; Sign: 1000; CS:AE; Only: 16;
9.5.2 responsive data frame;
9.5.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
9.5.2.2 judge whether data frame type is host node status word and traffic rate data frame type, and whether AFN is 03, whether sign is 1000;
9.5.2.3 judge whether the length of data cell is greater than 0;
9.6 host node disturbance state
9.6.1 transmission Frame: 6810004100002832000003200001BF16;
Wherein, begin: 68; L:1000; C:41; R:000028320000; AFN:03; Sign: 2000; Data cell: 01; CS:BF; Only: 16;
9.6.2 responsive data frame;
9.6.2.1 judge that whether data frame structure is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
9.6.2.2 judge whether data frame type is host node disturbance state data frame type, and whether AFN is 03, whether sign is 2000;
9.6.2.3 judge that whether the length of data cell is 1 byte, and value is 0 or 1;
9.7 read from the monitoring nodes max-timeout time
9.7.1 transmission Frame: 680F0041000028320000034000DE16
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:03; Sign: 4000; CS:DE; Only: 16;
9.7.2 responsive data frame;
9.7.2.1 judge that whether data frame structure is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
9.7.2.2 judge that whether data frame type is for reading from monitoring nodes max-timeout time data frame type, whether AFN is 03, whether sign is 4000;
9.7.2.3 judge whether the length of data cell is 2 bytes;
9.8 inquiry wireless communication parameters
9.8.1 transmission Frame: 680F00410000283200000380001E16;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:03; Sign: 8000; CS:1E; Only: 16;
9.8.2 responsive data frame;
9.8.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
9.8.2.2 judge whether data frame type is inquiry wireless communication parameters data frame type, and whether AFN is 03, and whether sign is 8000;
9.8.2.3 judge whether the length of data cell is 2 bytes, the value of wireless channel group, whether first byte of data cell is less than 64, the value of wireless host node transmitting power, whether second byte of data cell is less than 4.
LI(link interface) detection in described step 3-1 comprises the sense command of transmission test master/slave node, calls the roll from node; Specifically have:
10.1 send the sense command of test master/slave node
10.1.1 transmission Frame: 6810004100002832000004010001A416;
Wherein, begin: 68; L:1000; C:41; R:000028320000; AFN:04; Sign: 8000; Data cell: 01; CS:A4; Only: 16;
10.1.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
10.2 call the roll from node
10.2.1 transmission Frame: 68OF004100002832000004020001A116;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:04; Sign: 0200; CS:A1; Only: 16;
10.2.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged.
Control command in described step 3-1 comprise host node address is set, allow from node report, start broadcast, setting is from the monitoring nodes max-timeout time and wireless communication parameters is set; Specifically have:
11.1 host node address is set
11.1.1 transmission Frame: 681500410000283200000501001122334455660616;
Wherein, begin: 68; L:1500; C:41; R:000028320000; AFN:05; Sign: 0100; Data cell: 112233445566; CS:06; Only: 16;
11.1.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
11.2 allow to report from node
11.2.1 transmission Frame: 6810004100002832000005020001A316;
Wherein, begin: 68; L:1000; C:41; R:000028320000; AFN:05; Sign: 0200; Data cell: 01; CS:A3; Only: 16;
11.2.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
11.3 start broadcast
11.3.1 start the broadcast transparent transmission
11.3.1.1 transmission Frame: 681F00410000283200050400000E68003300000000E116;
Wherein, begin: 68; L:1F00; C:41; R:000028320000; AFN:05; Sign: 0400; Data cell: 000E6800330000000068010243C30C16; CS:E1; Only: 16;
11.3.1.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
11.3.2 start broadcast DL/T645-1997
11.3.2.1 transmission Frame: 681F00410000283200050400010E6800330000000068010243C30C16 E016;
Wherein, begin: 68; L:1F00; C:41; R:000028320000; AFN:05; Sign: 0400; Data cell: 010E6800330000000068010243C30C16; CS:E0; Only: 16;
11.3.2.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
11.3.3 start broadcast DL/T645-2007
11.3.3.1 transmission Frame: 68210041000028320005040002106800330000000068110433333433 E5169616;
Wherein, begin: 68; L:2100; C:41; R:000028320000; AFN:05; Sign: 0400; Data cell: 02106800330000000068110433333433E516; CS:96; Only: 16;
11.3.3.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
11.4 arrange from the monitoring nodes max-timeout time
11.4.1 transmission Frame: 68100041000028320005080004AC16;
Wherein, begin: 68; L:1000; C:41; R:000028320000; AFN:05; Sign: 0800; Data cell: 04; CS:AC; Only: 16;
11.4.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
11.5 wireless communication parameters is set
11.5.1 transmission Frame: 6811004100002832000510000101B216;
Wherein, begin: 68; L:1100; C:41; R:000028320000; AFN:05; Sign: 1000; Data cell: 0101; CS:B2; Only: 16;
11.5.3 responsive data frame; Use confirms/denies that the decision logic of frame is judged.
Routing inquiry in described step 3-1 comprise inquiry from number of nodes, from nodal information, specify upper level transistroute information from node, route running status, not the copy reading success from nodal information and initiatively registration from nodal information; Specifically have:
12.1 from number of nodes
12.1.1 transmission Frame: 68OF0041000028320000100100AC16;
Wherein, begin: 68; L:OF00; C:41; R:000028320000; AFN:10; Sign: 0100; CS:AC; Only: 16;
12.1.2 responsive data frame;
12.1.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
12.1.2.2 judge whether data frame type is from the number of nodes data frame type, and whether AFN is 10, whether sign is 0100;
12.1.2.3 judge whether the length of data cell is 4 bytes;
12.3 from nodal information
12.3.1 transmission Frame: 68120041000028320000100200010001AF16;
Wherein, begin: 68; L:1200; C:41; R:000028320000; AFN:10; Sign: 0200; Data cell: 010001; CS:AF; Only: 16;
12.3.2 responsive data frame;
12.3.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
12.3.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 10, whether sign is 0200;
12.3.2.3 judge that whether the length of data cell is for being greater than 0;
12.4 specify the upper level transistroute information from node
12.4.1 transmission Frame: 68150041000028320000100400003300000000E216;
Wherein, begin: 68; L:1500; C:41; R:000028320000; AFN:10; Sign: 0400; Data cell: 003300000000; CS:E2; Only: 16;
12.4.2 responsive data frame;
12.4.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
12.4.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 10, whether sign is 0400;
12.4.2.3 judge that whether the length of data cell is for being greater than 0;
12.5 route running status
12.5.1 transmission Frame: 680F0041000028320000100800B316;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:10; Sign: 0800; CS:B3; Only: 16;
12.5.2 responsive data frame;
12.5.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
12.5.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 10, whether sign is 0800;
12.5.2.3 judge that whether the length of data cell is for being greater than 0;
12.6 the not copy reading success from nodal information
12.6.1 transmission Frame: 68120041000028320000101000010001BD16;
Wherein, begin: 68; L:1200; C:41; R:000028320000; AFN:10; Sign: 1000; Data cell: 010001; CS:BD; Only: 16;
12.6.2 responsive data frame;
12.6.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
12.6.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 10, whether sign is 1000;
12.6.2.3 judge that whether the length of data cell is for being greater than 0;
12.7 initiatively registration from nodal information
12.7.1 transmission Frame: 68120041000028320000102000010001CD16;
Wherein, begin: 68; L:1200; C:41; R:000028320000; AFN:10; Sign: 2000; Data cell: 010001; CS:CD; Only: 16;
12.7.2 responsive data frame;
12.7.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
12.7.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 10, whether sign is 2000;
12.7.2.4 judge that whether the length of data cell is for being greater than 0.
Route setting in described step 3-1 comprises to be added from node, delete from node, arranges from node fixed relay path, arranges the route mode of operation, activates and initiatively register and stop initiatively registering from node from node; Specifically have:
13.1 add from node
13.1.1 transmission Frame: 6819004100002832000011010001003300000000020001E416;
Wherein, begin: 68; L:1900; C:41; R:000028320000; AFN:11; Sign: 0100; Data cell: 01003300000000020001; CS:E4; Only: 16;
13.1.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
13.2 delete from node
13.2.1 transmission Frame: 68160041000028320000110200011122334455661416;
Wherein, begin: 68; L:1600; C:41; R:000028320000; AFN:11; Sign: 0200; Data cell: 01112233445566; CS:14; Only: 16;
13.2.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
13.3 arrange from node fixed relay path
13.3.1 transmission Frame: 681C0041000028320000110400003300000000018888889999994716;
Wherein, begin: 68; L:1C00; C:41; R:000028320000; AFN:11; Sign: 0400; Data cell: 00330000000001888888999999; CS:47; Only: 16;
13.3.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
13.4 the route mode of operation is set
13.4.1 transmission Frame: 681200410000283200001108230000D716;
Wherein, begin: 68; L:1200; C:41; R:000028320000; AFN:11; Sign: 0800; Data cell: 230000; CS:D7; Only: 16;
13.4.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
13.5 activate, from node, initiatively register
13.5.1 transmission Frame: 6819004100002832000011100000121210051201000304OF16;
Wherein, begin: 68; L:1900; C:41; R:000028320000; AFN:11; Sign: 1000; Data cell: 00121210051201000304; CS:0F; Only: 16;
13.5.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
13.6 stop initiatively registering from node
13.6.1 transmission Frame: 680F0041000028320000112000CC16;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:11; Sign: 2000; CS:CC; Only: 16;
13.6.3 responsive data frame; Use confirms/denies that the decision logic of frame is judged.
Route data control in described step 3-1 comprises to be restarted, suspends and recovers; Specifically have:
14.1 restart
14.1.1 transmission Frame: 680F0041000028320000120100AE16;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:12; Sign: 0100; CS:AE; Only: 16;
14.1.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
14.2 suspend
14.2.1 transmission Frame: 680F0041000028320000120200AF16;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:12; Sign: 0200; CS:AF; Only: 16;
14.2.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged;
14.2.3 recover
14.2.3.1 transmission Frame: 680F0041000028320000120400B116;
Wherein, begin: 68; L:0F00; C:41; R:000028320000; AFN:12; Sign: 0400; CS:B1; Only: 16;
14.2.3.2 responsive data frame; Use confirms/denies that the decision logic of frame is judged.
Route data in described step 3-1 forward comprise monitoring from node transparent transmission, monitoring from node DL/T645-1997, monitoring is from node DL/T645-2007; Specifically have:
15.1 monitoring is from the node transparent transmission
15.1.1 transmission Frame: 682C004104002832000088888899999900330000000013010000000E 6800330000000068010243C30C168516;
Wherein, begin: 68; L:2C00; C:41; R:040028320000; A:888888999999003300000000; AFN:13; Sign: 0100; Data cell: 00000E6800330000000068010243C30C16; CS:B5; Only: 16;
15.1.2 responsive data frame;
15.1.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
15.1.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 13, whether sign is 0100;
15.1.2.3 judge whether communication protocol type is transparent transmission, and whether first byte of data cell is 00H, and in data cell, whether message length is consistent with the length of data message;
15.2 monitoring is from node DL/T645-1997
15.2.1 transmission Frame: 682C004104002832000088888899999900330000000013010001000E 6800330000000068010243C30C168616;
Wherein, begin: 68; L:2C00; C:41; R:040028320000; A:888888999999003300000000; AFN:13; Sign: 0100; Data cell: 01000E6800330000000068010243C30C16; CS:86; Only: 16;
15.2.2 responsive data frame;
15.2.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
15.2.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 13, whether sign is 0100;
15.2.2.3 judge whether communication protocol type is DL/T645-1997, and whether first byte of data cell is 01H, and in data cell, whether message length is consistent with the length of data message;
15.3 monitoring is from node DL/T645-2007
15.3.1 transmission Frame: 682E0041040028320000888888999999003300000000130100020010 6800330000000068110433333433E5163B16;
Wherein, begin: 68; L:2E00; C:41; R:040028320000; A:888888999999003300000000; AFN:13; Sign: 0100; Data cell: 0200106800330000000068110433333433E516; CS:3B; Only: 16;
15.3.2 responsive data frame;
15.3.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
15.3.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 13, whether sign is 0100;
15.3.2.3 judge whether communication protocol type is DL/T645-2007, and whether first byte of data cell is 02H, and in data cell, whether message length is consistent with the length of data message.
Route data copy reading in described step 3-1 comprises route requests copy reading content and route requests concentrator clock; Specifically have:
16.1 route requests copy reading content
16.1.1 transmission Frame: 681700410000283200001401000100330000000001E516;
Wherein, begin: 68; L:1700; C:41; R:040028320000; AFN:14; Sign: 0100; Data cell: 0100330000000001; CS:E5; Only: 16;
16.1.2 responsive data frame;
16.1.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
16.1.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 14, whether sign is 0100;
16.1.2.3 judge whether the length of data cell is greater than 0;
16.2 route requests concentrator clock
16.2.1 transmission Frame: 681B0041000028320000140200000000240513ED16;
Wherein, begin: 68; L:1B00; C:41; R:040028320000; AFN:14; Sign: 0200; Data cell: 000000240513; CS:ED; Only: 16;
16.2.2 responsive data frame;
16.2.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
16.2.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 14, whether sign is 0200;
16.2.2.3 judge whether the length of data cell is greater than 0.
File process in described step 3-1 is:
17.1 transmission Frame: 681A00410000283200001501000000000100000001001234F916;
Wherein, begin: 68; L:1A00; C:41; R:040028320000; AFN:15; Sign: 0100; Data cell: 0000000100000001001234; CS:F9; Only: 16;
17.2 responsive data frame;
17.2.1 judge that whether data frame format is correct, judge whether start bit is 68, and whether stop bits is 16, and whether the data total length equals L, and whether control domain is 81, and whether test value is consistent with CS;
17.2.2 judge whether data frame type is from the nodal information data frame type, and whether AFN is 15, whether sign is 0100;
17.2.3 judge whether the length of data cell is 4 bytes.
Described step 3-2 specifically comprises the following steps:
Step 3-2-1: identification process
Step 3-2-1-1: by the RESET pin route that resets;
Step 3-2-1-2: wait for that communication unit reporting information AFN=03H-F10 is up, wait timeout time 1min, if do not receive issue local communication module operational mode message command AFN=03H-F10;
Step 3-2-1-3: obtain the module meter reading method and from the monitoring nodes max-timeout time from local communication module operational mode message command AFN=03H-F10; The module meter reading method, if the concentrator pattern is checked meter, the synchronous flow process of archives and routing module active mode are checked meter and are not supported; If route pattern is checked meter, the concentrator active mode is checked meter and is not supported;
Step 3-2-1-4: issue host node address order AFN=05H-F1 is set, now judge that flow process finishes;
Step 3-2-2: the synchronous flow process of archives
Step 3-2-2-1: issue parameter region initialization command AFN=01H-F2;
Step 3-2-2-2: issue inquiry from number of nodes order AFN=10H-F1;
Step 3-2-2-3: issue from nodal information order AFN=10H-F2, relatively from node table address and concentrator table address information, unanimously test finishes, the inconsistent execution following steps that continue;
Step 3-2-2-4: issue and add from node address order AFN=11H-F1, skip to step 3-2-2-3, after carrying out 3 times, still all inconsistent from node table address and concentrator table address information, be judged to and do not support;
Step 3-2-2-5: wait for the concentrator order, if AFN=10H – is F2, reply the table archives address of routing module, the address of previous step record, test and finish;
Step 3-2-3: point is copied flow process
Step 3-2-3-1: issue and suspend routing command AFN=12H-F2;
Step 3-2-3-2: issue monitoring from node order AFN=13H-F1, the DL/T645-2007 agreement, relevant with communication delay, wait for back code, the wait timeout time, by from the maximum 90s of monitoring nodes max-timeout Time Calculation, asks up according to communication delay correction communication data order AFN=14H-F3 if receive, according to delay sending, revised communication data AFN=14H-F3 is descending, if receive, AFN=13H-F1 returns code and is judged to support, and skips to step 4, if receive, does not continue to carry out following steps;
Step 3-2-3-3: issue monitoring from node order AFN=13H-F1, the DL/T645-2007 agreement, irrelevant with communication delay, wait for back code, the wait timeout time presses from the maximum 90s of monitoring nodes max-timeout Time Calculation, if receive, AFN=13H-F1 returns code, is judged to support, if do not receive and be judged to and do not support;
Step 3-2-3-4: issue restoration route order AFN=12H-F3, test finishes;
Step 3-2-4: node is register flow path initiatively
Step 3-2-4-1: issue and suspend routing command AFN=12H-F2;
Step 3-2-4-2: issue to activate and initiatively register AFN=11H-F5 from node, in this order, the duration parameter is made as 1min, waits for back code, and free time 10min adds up to 11min;
Step 3-2-4-3: if concentrator receive report from nodal information and device type AFN=06H-F4 up or report from nodal information AFN=06HF1 up, and receive that route power condition changing information A FN=06H-F3 is judged to support, issues restoration route order AFN=12H-F3; Test finishes;
Step 3-2-4-4: if time-out time arrives, step 3-2-4-3 does not finish to issue route running status AFN=10H-F4, obtain its working mark, only the route running status for work and step 3-2-4-3 in receive report from nodal information and device type AFN=06H-F4 up or report from nodal information AFN=06HF1 up, just can be judged to support, not support otherwise be judged to;
Step 3-2-5: the concentrator flow process of initiatively checking meter
Step 3-2-5-1: issue and suspend routing command AFN=12H-F2;
Step 3-2-5-2: issue monitoring from node order AFN=13H-F1, the DL/T645-2007 agreement, relevant with communication delay, wait for back code, the wait timeout time presses from the maximum 90s of monitoring nodes max-timeout Time Calculation, if the request of receiving is up according to communication delay correction communication data order AFN=14H-F3, according to delay sending, revised communication data AFN=14H-F3 is descending, if receive, AFN=13H-F1 returns code and is judged to support, issues restoration route order AFN=12H-F3; Test finishes, if receive, does not continue to carry out following steps;
Step 3-2-5-3: issue monitoring from node order AFN=13H-F1, the DL/T645-2007 agreement, irrelevant with communication delay, wait for back code, the wait timeout time presses from the maximum 90s of monitoring nodes max-timeout Time Calculation, if receive, AFN=13H-F1 returns code, is judged to support, if do not receive and be judged to and do not support;
Step 3-2-6: the routing module flow process of initiatively checking meter
Step 3-2-6-1: issue and restart routing command AFN=12H-F1, wait for back code, wait timeout time 90s;
Step 3-2-6-2: if receive, route requests copy reading contents command AFN=14H-F1 is up, issues the AFN=14H-F1 order, and this order is relevant with communication delay, channel logo and electric meter address and receive message coupling, the copy reading label entry is made as can copy reading, waits for back code, wait timeout time 90s;
Step 3-2-6-3: if the request of receiving is up according to communication delay correction communication data order AFN=14H-F3, issue according to time delay correction communication message AFN=14H-F3 descending;
Step 3-2-6-4: if receive, report copy reading data AFN=06H-F2 up, be judged to support, if wait timeout is judged to and does not support, time-out time is 90s;
Step 3-2-6-5: issue and suspend routing command AFN=12H-F2; Test finishes;
Step 3-2-7: communication delay association message communication mechanism flow process in the broadcast flow process
Step 3-2-7-1: issue and suspend routing command AFN=12H-F2;
Step 3-2-7-2: issue communication delay relevant broadcasts communication time order AFN=03H-F9, receive back that code AFN=03H-F9 is up;
Step 3-2-7-3: issue startup broadcasting command AFN=05H-F3 descending;
Step 3-2-7-4: receive that acknowledgement frame AFN=00H-F1 is up, waited for according to the wait deadline in acknowledgement frame;
Step 3-2-7-5: issue restoration route order AFN=12H-F3, test finishes.
Finally should be noted that: above embodiment is only in order to illustrate that technical scheme of the present invention is not intended to limit, although with reference to above-described embodiment, the present invention is had been described in detail, those of ordinary skill in the field are to be understood that: still can modify or be equal to replacement the specific embodiment of the present invention, and do not break away from any modification of spirit and scope of the invention or be equal to replacement, it all should be encompassed in the middle of claim scope of the present invention.