CN103490958A - Method for testing local communication unit interchangeability of acquisition terminal - Google Patents

Method for testing local communication unit interchangeability of acquisition terminal Download PDF

Info

Publication number
CN103490958A
CN103490958A CN201310451064.9A CN201310451064A CN103490958A CN 103490958 A CN103490958 A CN 103490958A CN 201310451064 A CN201310451064 A CN 201310451064A CN 103490958 A CN103490958 A CN 103490958A
Authority
CN
China
Prior art keywords
afn
data
data frame
sign
judge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310451064.9A
Other languages
Chinese (zh)
Other versions
CN103490958B (en
Inventor
董俐君
刘宣
章欣
祝恩国
常蕾
夏怡虹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
State Grid Zhejiang Electric Power Co Ltd
China Electric Power Research Institute Co Ltd CEPRI
Original Assignee
State Grid Corp of China SGCC
China Electric Power Research Institute Co Ltd CEPRI
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, China Electric Power Research Institute Co Ltd CEPRI filed Critical State Grid Corp of China SGCC
Priority to CN201310451064.9A priority Critical patent/CN103490958B/en
Publication of CN103490958A publication Critical patent/CN103490958A/en
Application granted granted Critical
Publication of CN103490958B publication Critical patent/CN103490958B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method for testing local communication unit interchangeability of an acquisition terminal. The method comprises the following steps of exterior structure interchangeability testing, interface base pin electrical performance testing, and acquisition terminal local communication unit interchangeability testing, wherein the acquisition terminal local communication unit interchangeability testing comprises an interface communication protocol consistency testing and information interoperability testing. The method is based on the local communication unit interchangeability function testing, the work state of a local communication channel of an electricity-using information acquisition system is tested, the communication state between the acquisition terminal and a user electric energy metering device is tested, the work effect of the local communication unit is evaluated, the interconnection and interworking ability of data communication between components of the system is evaluated, a testing measure is provided for solving the interconnection, interworking and interchanging problems between the acquisition terminal and local communication units, and data communication stability, system data safety, information integration, system expandability and software platform advancement are further improved.

Description

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.

Claims (18)

1. a method of testing acquisition terminal local communication unit interchangeability is characterized in that: 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.
2. the method for test acquisition terminal local communication according to claim 1 unit interchangeability, is characterized in that: 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.
3. the method for test acquisition terminal local communication according to claim 1 unit interchangeability, is characterized in that: 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.
4. the method for test acquisition terminal local communication according to claim 3 unit interchangeability, it is characterized in that: described interface pin comprises working power pin, control signal pin, status signal pin and signal of communication pin.
5. the method for test acquisition terminal local communication according to claim 1 unit interchangeability, it is characterized in that: 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.
6. the method for test acquisition terminal local communication according to claim 5 unit interchangeability, it is characterized in that: 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.
7. the method for test acquisition terminal local communication according to claim 6 unit interchangeability, it is characterized in that: the 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.
8. the method for test acquisition terminal local communication according to claim 6 unit interchangeability is characterized in that: the 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.
9. the method for test acquisition terminal local communication according to claim 6 unit interchangeability is characterized in that: the 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.
10. the method for test acquisition terminal local communication according to claim 6 unit interchangeability is characterized in that: the LI(link interface) in described step 3-1 detects and comprises and send the sense command of test master/slave node, call 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.
11. the method for test acquisition terminal local communication according to claim 6 unit interchangeability is characterized in that: the 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.
12. the method for test acquisition terminal local communication according to claim 6 unit interchangeability is characterized in that: the 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.
13. the method for test acquisition terminal local communication according to claim 6 unit interchangeability is characterized in that: the 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.
14. the method for test acquisition terminal local communication according to claim 6 unit interchangeability is characterized in that: the 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.
15. the method for test acquisition terminal local communication according to claim 6 unit interchangeability is characterized in that: 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.
16. the method for test acquisition terminal local communication according to claim 6 unit interchangeability is characterized in that: the 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.
17. the method for test acquisition terminal local communication according to claim 6 unit interchangeability, it is characterized in that: the 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.
18. the method for test acquisition terminal local communication according to claim 6 unit interchangeability, it is characterized in that: 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.
CN201310451064.9A 2013-09-27 2013-09-27 Method for testing local communication unit interchangeability of acquisition terminal Active CN103490958B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310451064.9A CN103490958B (en) 2013-09-27 2013-09-27 Method for testing local communication unit interchangeability of acquisition terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310451064.9A CN103490958B (en) 2013-09-27 2013-09-27 Method for testing local communication unit interchangeability of acquisition terminal

Publications (2)

Publication Number Publication Date
CN103490958A true CN103490958A (en) 2014-01-01
CN103490958B CN103490958B (en) 2017-05-10

Family

ID=49830931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310451064.9A Active CN103490958B (en) 2013-09-27 2013-09-27 Method for testing local communication unit interchangeability of acquisition terminal

Country Status (1)

Country Link
CN (1) CN103490958B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158852A (en) * 2014-07-23 2014-11-19 国家电网公司 Information interaction detection system for low-voltage meter reading concentrator and local communication module
CN104240493A (en) * 2014-09-17 2014-12-24 国家电网公司 Detection equipment and detection method for single-phase carrier module of intelligent meter
CN104407239A (en) * 2014-10-23 2015-03-11 国网重庆市电力公司电力科学研究院 Electricity information acquisition terminal modular electromagnetic compatibility integrated test apparatus
CN104658226A (en) * 2015-01-30 2015-05-27 航天科工深圳(集团)有限公司 Wireless meter reading system and method
CN104793083A (en) * 2015-04-23 2015-07-22 广西电网有限责任公司电力科学研究院 Communication unit interchangeability testing system and interchanging method thereof
CN104822157A (en) * 2015-04-24 2015-08-05 国网冀北电力有限公司电力科学研究院 Micro power wireless communication protocol conformance testing system for short-distance power communication
CN105788226A (en) * 2016-03-17 2016-07-20 长沙瑞斯康通信技术有限公司 Broadband carrier parallel meter reading method and broadband carrier parallel meter reading system
CN107294563A (en) * 2017-06-06 2017-10-24 中国电力科学研究院 A kind of low-voltage powerline carrier communication interconnects performance test methods and system
CN108011654A (en) * 2017-10-30 2018-05-08 中国电力科学研究院有限公司 Apply the device and virtual method in PLC test systems
CN108508396A (en) * 2018-03-13 2018-09-07 中国电力科学研究院有限公司 Multiple-in-one collecting device detecting system and method
CN109406872A (en) * 2018-10-29 2019-03-01 华立科技股份有限公司 Detect the method and apparatus that Data Identification is expanded in electric energy meter private
CN109525563A (en) * 2018-10-31 2019-03-26 哈尔滨电工仪表研究所有限公司 The analytic method of reading object attribute in 698.45 agreement of DL/T
CN106781415B (en) * 2017-01-20 2021-03-02 中国电力科学研究院 Method and system for automatically maintaining communication parameters of centralized meter reading collector
CN114554537A (en) * 2022-02-25 2022-05-27 中国人民解放军国防科技大学 MAC assembly consistency test method based on software communication system structure
CN114553262A (en) * 2022-02-22 2022-05-27 国网电力科学研究院有限公司 Electric energy data high-speed acquisition terminal and control method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040039965A1 (en) * 2002-08-22 2004-02-26 Gorshenev Mikhail A. Compliance testing communication protocols implemented on resource-constrained computing devices
CN1791257A (en) * 2005-12-21 2006-06-21 中国移动通信集团公司 Method for testing apparatus management service system
CN1996899A (en) * 2005-12-29 2007-07-11 中兴通讯股份有限公司 Testing method of the mobile terminal protocol and its system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040039965A1 (en) * 2002-08-22 2004-02-26 Gorshenev Mikhail A. Compliance testing communication protocols implemented on resource-constrained computing devices
CN1791257A (en) * 2005-12-21 2006-06-21 中国移动通信集团公司 Method for testing apparatus management service system
CN1996899A (en) * 2005-12-29 2007-07-11 中兴通讯股份有限公司 Testing method of the mobile terminal protocol and its system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
周孔均: "电能表与采集终端通信测试系统的设计", 《电测与仪表》, 31 December 2006 (2006-12-31), pages 24 - 28 *
赖根等: "国外自动测试系统发展现状综述", 《国外自动测试系统发展现状综述》, 31 August 2008 (2008-08-31) *

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158852A (en) * 2014-07-23 2014-11-19 国家电网公司 Information interaction detection system for low-voltage meter reading concentrator and local communication module
CN104158852B (en) * 2014-07-23 2017-08-29 国家电网公司 A kind of low-voltage collecting meter reading concentrator and local communication module information interaction detecting system
CN104240493A (en) * 2014-09-17 2014-12-24 国家电网公司 Detection equipment and detection method for single-phase carrier module of intelligent meter
CN104240493B (en) * 2014-09-17 2018-05-25 国家电网公司 The single-phase carrier module detection device of intelligent meter and detection method
CN104407239A (en) * 2014-10-23 2015-03-11 国网重庆市电力公司电力科学研究院 Electricity information acquisition terminal modular electromagnetic compatibility integrated test apparatus
CN104407239B (en) * 2014-10-23 2017-07-04 国网重庆市电力公司电力科学研究院 A kind of power information acquisition terminal modular electromagnetic compatibility comprehensive test device
CN104658226A (en) * 2015-01-30 2015-05-27 航天科工深圳(集团)有限公司 Wireless meter reading system and method
CN104793083B (en) * 2015-04-23 2017-11-03 广西电网有限责任公司电力科学研究院 A kind of communication unit interchangeability test system and its exchange method
CN104793083A (en) * 2015-04-23 2015-07-22 广西电网有限责任公司电力科学研究院 Communication unit interchangeability testing system and interchanging method thereof
CN104822157A (en) * 2015-04-24 2015-08-05 国网冀北电力有限公司电力科学研究院 Micro power wireless communication protocol conformance testing system for short-distance power communication
CN104822157B (en) * 2015-04-24 2019-03-12 国网冀北电力有限公司电力科学研究院 Short distance power communication micro power radio communication Protocol Conformance Test System
CN105788226A (en) * 2016-03-17 2016-07-20 长沙瑞斯康通信技术有限公司 Broadband carrier parallel meter reading method and broadband carrier parallel meter reading system
CN106781415B (en) * 2017-01-20 2021-03-02 中国电力科学研究院 Method and system for automatically maintaining communication parameters of centralized meter reading collector
CN107294563A (en) * 2017-06-06 2017-10-24 中国电力科学研究院 A kind of low-voltage powerline carrier communication interconnects performance test methods and system
CN107294563B (en) * 2017-06-06 2020-11-03 中国电力科学研究院 Method and system for testing interconnection and intercommunication performance of low-voltage power line carrier communication
CN108011654A (en) * 2017-10-30 2018-05-08 中国电力科学研究院有限公司 Apply the device and virtual method in PLC test systems
CN108508396A (en) * 2018-03-13 2018-09-07 中国电力科学研究院有限公司 Multiple-in-one collecting device detecting system and method
CN109406872A (en) * 2018-10-29 2019-03-01 华立科技股份有限公司 Detect the method and apparatus that Data Identification is expanded in electric energy meter private
CN109525563A (en) * 2018-10-31 2019-03-26 哈尔滨电工仪表研究所有限公司 The analytic method of reading object attribute in 698.45 agreement of DL/T
CN114553262A (en) * 2022-02-22 2022-05-27 国网电力科学研究院有限公司 Electric energy data high-speed acquisition terminal and control method thereof
CN114553262B (en) * 2022-02-22 2024-02-13 国网电力科学研究院有限公司 Electric energy data high-speed acquisition terminal and control method thereof
CN114554537A (en) * 2022-02-25 2022-05-27 中国人民解放军国防科技大学 MAC assembly consistency test method based on software communication system structure
CN114554537B (en) * 2022-02-25 2024-01-23 中国人民解放军国防科技大学 MAC component consistency test method based on software communication system structure

Also Published As

Publication number Publication date
CN103490958B (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN103490958A (en) Method for testing local communication unit interchangeability of acquisition terminal
CN105788227B (en) Fault diagnosis equipment for electricity consumption information acquisition system
CN102333031B (en) Device intelligent access system based on device adaptation technology, and method of the same
CN2906782Y (en) Embedded processor-based automatic remote electricity metering terminal
CN102118283B (en) Method and device for testing communication equipment
CN105788226A (en) Broadband carrier parallel meter reading method and broadband carrier parallel meter reading system
CN103019788A (en) Remote online upgrading method based on CAN (Controller Area Network) bus
CN201698576U (en) Electricity utilization information collecting system and collector
CN202794497U (en) On-site comprehensive detection equipment for electric energy information acquisition terminal
CN204515055U (en) Ammeter is visited one house after another wiring testing device
CN102376153A (en) Method for remotely updating carrier sheet and acquirer in concentrated meter reading system
CN104714146A (en) Electricity meter cross-room wiring detection device and detection method thereof
CN102722971A (en) Intelligent data acquisition device with solidified protocol
CN103795680A (en) Communication method supporting multiple communication protocols, and electric energy meter
CN102426724A (en) Integrated charging and acquisition terminal
CN103646524B (en) A kind of communication means of double-mode local communication module device of electric energy meter
CN112034410A (en) Detection tool module of multi-core modular electric energy meter
CN103067201A (en) Multi-protocol communication manager
CN103259697B (en) Android platform utilize UWB equipment carry out the method for ADB debugging
CN202373127U (en) Wireless gas meter reading management system
CN202331671U (en) Terminal integrating recording and recharging
CN204759488U (en) Intelligence garbage bin information cloud management device based on thing networking
CN106708560A (en) RF communication-based ammeter wireless program upgrading method and wireless upgrading ammeter
CN110992671B (en) Ammeter address forwarding method, device and system and electronic equipment
CN113079225B (en) External communication module based on multi-core module ammeter and IPv6 communication method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20170111

Address after: 100031 Xicheng District West Chang'an Avenue, No. 86, Beijing

Applicant after: State Power Networks Co

Applicant after: China Electric Power Research Institute

Applicant after: State Grid Zhejiang Electric Power Company

Address before: 100031 Xicheng District West Chang'an Avenue, No. 86, Beijing

Applicant before: State Power Networks Co

Applicant before: China Electric Power Research Institute

GR01 Patent grant
GR01 Patent grant