CN103763159A - Testing system and method for consistency of communication protocol of transmission device - Google Patents

Testing system and method for consistency of communication protocol of transmission device Download PDF

Info

Publication number
CN103763159A
CN103763159A CN201410050788.7A CN201410050788A CN103763159A CN 103763159 A CN103763159 A CN 103763159A CN 201410050788 A CN201410050788 A CN 201410050788A CN 103763159 A CN103763159 A CN 103763159A
Authority
CN
China
Prior art keywords
module
test
testing
communication
transmitting device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410050788.7A
Other languages
Chinese (zh)
Inventor
李志刚
隋虎林
王军
齐宝金
杨树峰
张迪
刘濛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenyang Fire Research Institute of Ministry of Public Security
Original Assignee
Shenyang Fire Research Institute of Ministry of Public Security
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 Shenyang Fire Research Institute of Ministry of Public Security filed Critical Shenyang Fire Research Institute of Ministry of Public Security
Priority to CN201410050788.7A priority Critical patent/CN103763159A/en
Publication of CN103763159A publication Critical patent/CN103763159A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention relates to a testing system and method for the consistency of a communication protocol of a transmission device. The testing system comprises a main testing control unit and a testing input unit, wherein the main testing control unit is composed of a system control module, a testing output module, a communication agent module and a link simulation module; the testing input module is composed of a testing communication module, a protocol conversion module and a transmission device communication module; the tested transmission device is connected with the link simulation module and the transmission device communication module; the link simulation module, the communication agent module, the testing output module, the system output module, the testing communication module, the protocol conversion module and the transmission device communication module are connected in sequence. By building the testing system, before testing, only retrieval and selection of testing cases are needed, and working amount is small; after testing is started, the system automatically finishes testing according to the selected testing cases, and manual operation and intervention are not needed. The testing system reduces manual work in the testing process, and improves the testing efficiency.

Description

A kind of transmitting device system for testing unification of communication protocol and method of testing
Technical field
The present invention relates to network communication field, the particularly conformance test method of communication protocol, in particular, refers to the method and system that the user profile transmitting device in fire-fighting long distance control system is communicated to testing protocol consistency.
Background technology
GB26875.3 < < urban fire control long distance control system the 3rd part warning transport network communication agreement > > (being hereinafter called for short FRMP) formally implements in May, 2012, this standard definition by warning transmission network, carry out protocol architecture, data type and the data definition of transfer of data between user profile transmitting device (being hereinafter called for short transmitting device) and Surveillance center.
If running status and other relevant control orders of the information spinner building fire protection facility of transmission mutually between transmitting device and Surveillance center, concerning whole building, the even security against fire of entire society, must guarantee that these information can be transmitted and process accurately, reliably.
As the key components of supervisory control system, whether transmitting device accurately realizes this agreement, has directly affected compatibility and autgmentability between itself and Surveillance center, for operation, the maintenance of system, even all most important for construction, the development of whole industry.
The content that transmitting device is carried out to testing protocol consistency comprises the combination of data type, data value or the data value of variety of protocol item in communication mode, retransmission mechanism, protocol architecture and the application data until of checking FRMP agreement etc.
At present, when transmitting device is carried out to testing protocol consistency, how in the stage of designing and developing, by the mode of analogue data, to carry out manual testing, be not exclusively used in the test macro of this test operation.
Adopt manual testing's major defect to be:
(1) can be because the incomplete situation of Test coverage appears in artificial careless omission, especially for exception message;
(2) " legal message " can be " error message " by typing due to human error, occurs the situation of test errors;
(3) test operation of this method is take manual type as main, and efficiency is lower.
Summary of the invention
In order to solve the technical problem of above-mentioned existence, the invention provides a kind of transmitting device system for testing unification of communication protocol and method of testing.Use this test macro and method of testing, can reduce the artificial mistake in test process, improve testing efficiency.
The object of the invention is to be achieved through the following technical solutions: a kind of transmitting device system for testing unification of communication protocol, is characterized in that: this test macro comprises: test Master Control Unit and test input unit;
Described test Master Control Unit is comprised of system control module, test output module, Correspondent module, link analog module;
Described test input unit forms by testing communication module, protocol conversion module, transmitting device communication module;
Tested transmitting device is connected with link analog module, transmitting device communication module respectively; Described link analog module, Correspondent module, test output module, system control module, test communication module, protocol conversion module are connected successively with transmitting device communication module.
Described test communication module adopts RS232 mode and test Master Control Unit to carry out communication, mainly comprises RS232 control chip; Described RS232 control chip model is SP3232ECN.
Described protocol conversion module mainly comprises cpu chip, and its model is LPC2220FBD144.
Described transmitting device communication module adopts Ethernet mode and transmitting device communication, mainly comprises ethernet control chip, isolating transformer; Described ethernet control chip model is RTL8019, and isolating transformer model is HR901170A.
A method of testing that adopts aforesaid transmitting device system for testing unification of communication protocol, comprises the following steps:
(1) tester chooses test case by system control module, forms use-case set to be measured;
(2) system control module is placed in normal operating conditions by link analog module, Correspondent module;
(3) system control module is waited for, until Correspondent module detects the correct access of transmitting device;
(4) system control module is chosen the not use-case of test from use-case set to be measured, and test case input is sent to test communication module; Test case expection output is sent to test output module; Collect the test result of upper test case of then removing that test preserves in output module, collect packet, the protocol architecture testing result of then removing upper test case of preserving in Correspondent module; The operating state of link analog module is provided according to the link control message providing of test case;
(5) test communication module is delivered protocol conversion module by test case input, converts the communication data of specific format to, by transmitting device communication module, through normal data output interface, if necessary again through interface adapter, issues tested transmitting device;
(6) link analog module, according to given operating state, is being tested forwarding data between output module and Correspondent module;
(7) Correspondent module real time monitoring link analog module and the up-downgoing communication data of test between output module, analyzes these communication datas and whether can meet the protocol architecture of FRMP;
(8) the expection output that test output module gathering system control module provides; Test output module is collected the actual output through the tested transmitting device of link analog module, Correspondent module forwards;
(9) whether test output module compares reality output and expection output, check both identical, carries out consistency judgement, records the test result of this use-case, comprises packet number, the same packet time interval, application data until check result;
(10) repeating step 4 ~ 9, until whole use-case to be measured has been tested.
Beneficial effect of the present invention: the present invention adopts such scheme, by the test macro building,
Formulate, stored complete test case, these test cases can guarantee that Test coverage is complete, realize the Complete test of transmitting device communication protocol.The test case of native system storage, by computer software Automatically invoked, and recycling, after starting, test process do not need manual operation, reduce artificial mistake.Native system, before test starts, only need complete and transfer, selects test case operation, and workload is little; After test starts, system is followed selected use-case, automatically completes test, does not need manual operation and intervention.Native system has reduced the manual working in test process, has improved testing efficiency.
Accompanying drawing explanation
Fig. 1 is transmitting device system for testing unification of communication protocol structural representation of the present invention.
Fig. 2 is the schematic diagram of test communication module.
Fig. 3 is the schematic diagram of protocol conversion module.
Fig. 4 is the schematic diagram of transmitting device communication module.
Fig. 5 is the flow chart of transmitting device system for testing unification of communication protocol built-in testing software of the present invention.
Embodiment
Referring to Fig. 1, a kind of transmitting device system for testing unification of communication protocol, comprises test Master Control Unit 1 and test input unit 2; Tested transmitting device 3 is tested objects of this test macro.
Test Master Control Unit 1 consists of system control module 1-1, test output module 1-2, Correspondent module 1-3, link analog module 1-4; Test input unit 2 is by test communication module 2-1, protocol conversion module 2-2, transmitting device communication module 2-3.
Tested transmitting device 3 is connected with link analog module 1-4, transmitting device communication module 2-3 respectively; Described link analog module 1-4, Correspondent module 1-3, test output module 1-2, system control module 1-1, test communication module 2-1, protocol conversion module 2-2 are connected successively with transmitting device communication module 2-3.
System control module 1-1 realizes the control to test input unit 2, test output module 1-2, Correspondent module 1-3, link module 1-4, by collaborative to the scheduling of aforementioned unit and module, realize the flow process control of whole test process, comprise the collection of the beginning of selected, test process of test case and end, test result etc.In addition, after test starts, system control module 1-1 is also responsible for the expection output of test case to inform test output module 1-2, for the actual output of itself and tested transmitting device 3, compares.
Test output module 1-2 simulation monitoring center, the actual output of the tested transmitting device 3 that reception forwards through link analog module 1-4, Correspondent module 1-3, and compare the test result of generating test use case with the expection output that system control module 1-1 provides.
Correspondent module 1-3 can complete the data retransmission between test output module 1-2 and tested transmitting device 3, up-downgoing communication data between the tested transmitting device 3 of real time monitoring and test output module 1-2, and analyze these communication datas and whether can meet the protocol architecture of FRMP, receive the actual output of tested transmitting device 2, and this output is transmitted to test output module 1-2.
Link analog module 1-4 can simulate the communication link between tested transmitting device 3 and Correspondent module 1-3, common mistake bag, packet loss, sticky bag in analog communication process, and the phenomenon such as transmission link interruption.
Test communication module 2-1 is responsible for carrying out communication with test Master Control Unit 1, receives the test case of self-test Master Control Unit 1 according to the communications protocol of test macro inside, is handed to protocol conversion module 2-2.
Protocol conversion module 2-2 receives after the test case of self-test communication module 2-1, and the test input part of choosing test case converts the packet of transmitting device communications protocol form to, is handed to transmitting device communication module 2-3.
Transmitting device communication module 2-3 simulant building fire protection equipment, with tested transmitting device 3 communications, sends to tested transmitting device 3 by the packet from protocol conversion module 2-2 by data output interface.
Test communication module 2-1 adopts RS232 mode and test Master Control Unit 1 to carry out communication, and test communication module 2-1 comprises RS232 control chip and peripheral circuit thereof, and as shown in Figure 2, RS232 control chip model is SP3232ECN.
Protocol conversion module 2-2 mainly comprises cpu chip and peripheral circuit thereof, and as shown in Figure 3, cpu chip model is LPC2220FBD144.
Transmitting device communication module 2-3 adopts Ethernet mode and transmitting device communication, mainly comprise ethernet control chip, isolating transformer and peripheral circuit thereof, as shown in Figure 4, ethernet control chip model is RTL8019, and isolating transformer model is HR901170A.
Between test Master Control Unit 1 and test input unit 2, adopt UDP procotol to be connected.Test input unit 2 has the output interface RS232 of unification, standard, and this interface also can be converted into the interface that the tested transmitting devices 3 such as RS485, CAN are supported by external interface adapter, be then connected with tested transmitting device 3.Tested transmitting device 3, in TCP and UDP procotol, selects the agreement of self supporting to be connected with test Master Control Unit 1.
As shown in Figure 5, for plug-in of the present invention, carry out the flow chart of FRMP protocol conformance test method.
Step S1: tester chooses test case by system control module 1-1, forms use-case set to be measured;
Step S2: system control module 1-1 is placed in normal operating conditions by link analog module 1-4, Correspondent module 1-3;
Step S3: system control module 1-1 waits for, until Correspondent module 1-3 detects the correct access of transmitting device;
Step S4: system control module 1-1 chooses the not use-case of test from use-case set to be measured, sends to test input unit 2 by test case input; Test case expection output is sent to test output module 1-2; Collect the test result of then removing upper test case of preserving in test output module 1-2, collect packet, the protocol architecture testing result of then removing upper test case of preserving in Correspondent module; The operating state of link analog module 1-4 is provided according to the link control message providing of test case;
Step S5: test communication module 2-1 delivers protocol conversion module 2-2 by test case input; convert the communication data of specific format to; by transmitting device communication module 2-3, through normal data output interface, if necessary again through interface adapter, issue tested transmitting device 3;
Step S6: link analog module 1-4, according to given operating state, is testing forwarding data between output module 1-2 and Correspondent module 1-3;
The operating state of link analog module 1-4 comprises that Uplink/Downlink disconnects, Uplink/Downlink postpones, Uplink/Downlink data are disturbed;
Step S7: the up-downgoing communication data between Correspondent module 1-3 real time monitoring link analog module 1-4 and test output module 1-2, analyze these communication datas and whether can meet the protocol architecture of FRMP;
Step S8: the expection output that test output module 1-2 gathering system control module 1-1 provides; The actual output that test output module 1-2 collects the tested transmitting device 3 forwarding through link analog module 1-4, Correspondent module 1-3;
Step S9: test output module 1-2 compares reality output and expection output, check both whether identical, carry out consistency judgement, record the test result of this use-case, comprise packet number, the same packet time interval, application data until check result;
Step S10: repeating step S4-S9, until whole use-case to be measured has been tested.

Claims (5)

1. a transmitting device system for testing unification of communication protocol, is characterized in that: this test macro comprises: test Master Control Unit and test input unit;
Described test Master Control Unit is comprised of system control module, test output module, Correspondent module, link analog module;
Described test input unit forms by testing communication module, protocol conversion module, transmitting device communication module;
Tested transmitting device is connected with link analog module, transmitting device communication module respectively; Described link analog module, Correspondent module, test output module, system control module, test communication module, protocol conversion module are connected successively with transmitting device communication module.
2. a kind of transmitting device system for testing unification of communication protocol according to claim 1, is characterized in that: described test communication module adopts RS232 mode and test Master Control Unit to carry out communication, mainly comprises RS232 control chip; Described RS232 control chip model is SP3232ECN.
3. a kind of transmitting device system for testing unification of communication protocol according to claim 1, is characterized in that: described protocol conversion module mainly comprises cpu chip, and its model is LPC2220FBD144.
4. a kind of transmitting device system for testing unification of communication protocol according to claim 1, is characterized in that: described transmitting device communication module adopts Ethernet mode and transmitting device communication, mainly comprises ethernet control chip, isolating transformer; Described ethernet control chip model is RTL8019, and isolating transformer model is HR901170A.
5. a method of testing that adopts transmitting device system for testing unification of communication protocol claimed in claim 1, comprises the following steps:
(1) tester chooses test case by system control module, forms use-case set to be measured;
(2) system control module is placed in normal operating conditions by link analog module, Correspondent module;
(3) system control module is waited for, until Correspondent module detects the correct access of transmitting device;
(4) system control module is chosen the not use-case of test from use-case set to be measured, and test case input is sent to test communication module; Test case expection output is sent to test output module; Collect the test result of upper test case of then removing that test preserves in output module, collect packet, the protocol architecture testing result of then removing upper test case of preserving in Correspondent module; The operating state of link analog module is provided according to the link control message providing of test case;
(5) test communication module is delivered protocol conversion module by test case input, converts the communication data of specific format to, by transmitting device communication module, through normal data output interface, if necessary again through interface adapter, issues tested transmitting device;
(6) link analog module, according to given operating state, is being tested forwarding data between output module and Correspondent module;
(7) Correspondent module real time monitoring link analog module and the up-downgoing communication data of test between output module, analyzes these communication datas and whether can meet the protocol architecture of FRMP;
(8) the expection output that test output module gathering system control module provides; Test output module is collected the actual output through the tested transmitting device of link analog module, Correspondent module forwards;
(9) whether test output module compares reality output and expection output, check both identical, carries out consistency judgement, records the test result of this use-case, comprises packet number, the same packet time interval, application data until check result;
(10) repeating step 4 ~ 9, until whole use-case to be measured has been tested.
CN201410050788.7A 2014-02-13 2014-02-13 Testing system and method for consistency of communication protocol of transmission device Pending CN103763159A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410050788.7A CN103763159A (en) 2014-02-13 2014-02-13 Testing system and method for consistency of communication protocol of transmission device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410050788.7A CN103763159A (en) 2014-02-13 2014-02-13 Testing system and method for consistency of communication protocol of transmission device

Publications (1)

Publication Number Publication Date
CN103763159A true CN103763159A (en) 2014-04-30

Family

ID=50530322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410050788.7A Pending CN103763159A (en) 2014-02-13 2014-02-13 Testing system and method for consistency of communication protocol of transmission device

Country Status (1)

Country Link
CN (1) CN103763159A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166328A (en) * 2019-07-05 2019-08-23 南方电网科学研究院有限责任公司 A kind of test device of demand response equipment
CN110474819A (en) * 2019-07-12 2019-11-19 中国人民解放军战略支援部队信息工程大学 The FC-ETH protocol conversion chip checking device and method counted based on packet

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848777A (en) * 2006-01-19 2006-10-18 华为技术有限公司 Protocol simulation testing device
CN101136779A (en) * 2007-09-04 2008-03-05 中兴通讯股份有限公司 System and method for network performance test
CN203708269U (en) * 2014-02-13 2014-07-09 公安部沈阳消防研究所 System for testing consistency of transmission device communication protocol

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848777A (en) * 2006-01-19 2006-10-18 华为技术有限公司 Protocol simulation testing device
CN101136779A (en) * 2007-09-04 2008-03-05 中兴通讯股份有限公司 System and method for network performance test
CN203708269U (en) * 2014-02-13 2014-07-09 公安部沈阳消防研究所 System for testing consistency of transmission device communication protocol

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李志刚,齐金宝等: "消防远程监控通信协议测试系统的研究", 《消防科学与技术》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166328A (en) * 2019-07-05 2019-08-23 南方电网科学研究院有限责任公司 A kind of test device of demand response equipment
CN110166328B (en) * 2019-07-05 2021-07-16 南方电网科学研究院有限责任公司 Testing device of demand response equipment
CN110474819A (en) * 2019-07-12 2019-11-19 中国人民解放军战略支援部队信息工程大学 The FC-ETH protocol conversion chip checking device and method counted based on packet
CN110474819B (en) * 2019-07-12 2021-04-02 中国人民解放军战略支援部队信息工程大学 FC-ETH protocol conversion chip verification device and method based on packet counting

Similar Documents

Publication Publication Date Title
CN103200051B (en) Intelligent substation message emulating is tested and is associated message analysis system and method
CN103414251B (en) A kind of substation network communication analogue system based on IEC61850
CN105529831B (en) A kind of secondary equipment of intelligent converting station failure Computer Aided Analysis System
WO2015106605A1 (en) Method for testing station level of intelligent substation
CN105511294B (en) Simulation telemechanical Virtual Debugging method based on emulation IED devices
CN108055148A (en) The electric power wireless private network webmaster diagnostic method that a kind of automation can trace to the source
WO2015149593A1 (en) Iec61850-based communication simulation method for transformer grounding on-line monitoring device
WO2015149596A1 (en) Iec61850-based communication simulation method for leakage current on-line monitoring device
CN103019141B (en) Control module, control method and electric power dynamic recording device and implementation method thereof
WO2015149595A1 (en) Iec61850-based communication simulation method for insulation on-line monitoring device
CN106787199A (en) A kind of portable substation simulated testing system and method
CN203708269U (en) System for testing consistency of transmission device communication protocol
CN110650192B (en) New energy monitoring system based on Beidou short message communication
CN103763159A (en) Testing system and method for consistency of communication protocol of transmission device
CN102821010A (en) Simulator for protector
CN103676669B (en) The check method of a kind of telecontrol information and nucleus correcting system
CN109490816B (en) Split type metering automation terminal fault detection equipment and detection method thereof
CN104184215B (en) Transformer station&#39;s dispatching automation joint debugging method and the Apparatus and system of application the method
CN103716207A (en) Detection method and device for IEC61850 protocol
CN106909615B (en) Method and device for verifying data information consistency between master station and substation
CN104780123A (en) Network packet receiving and sending processing device and design method thereof
CN101808082A (en) Device simulating method for supporting multi-protocol
CN110838946A (en) Automatic acceptance system and method based on simulation substation
CN102567162B (en) A kind of physical layer system demo plant based on DSP core and method
CN105224729A (en) Based on the information access method of inspection of substation secondary device panoramic information simulation

Legal Events

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

Application publication date: 20140430