CN103634161B - Train communication protocol consistency detection device and train communication protocol consistency detection method - Google Patents
Train communication protocol consistency detection device and train communication protocol consistency detection method Download PDFInfo
- Publication number
- CN103634161B CN103634161B CN201310328439.2A CN201310328439A CN103634161B CN 103634161 B CN103634161 B CN 103634161B CN 201310328439 A CN201310328439 A CN 201310328439A CN 103634161 B CN103634161 B CN 103634161B
- Authority
- CN
- China
- Prior art keywords
- test
- module
- automatically
- train communication
- test case
- 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.)
- Active
Links
Landscapes
- Maintenance And Management Of Digital Transmission (AREA)
Abstract
The invention relates to a general train communication protocol consistency detection device and a general train communication protocol consistency detection method. The device comprises a test host and display equipment, wherein the test host is connected with tested equipment through a communication line, the test host is connected with the display equipment, the test host is provided with a plurality of standard network interfaces of various tested train communication protocols, each of the standard network interfaces corresponds to one train communication protocol, and the standard network interfaces are connected with a network interface to be tested of the tested equipment through the communication line. The general train communication protocol consistency detection device and the general train communication protocol consistency detection method of the invention are convenient in operation, and different train equipment can be tested through a hardware platform composed of the test host and the display equipment. Through a software platform constructed in the test host, general detection on consistency of various train communication protocols can be realized, various test functions can be automatically completed, test cases can be automatically generated through an automatic test case generation module, and the efficiency and accuracy of testing are improved.
Description
Technical field
The present invention relates to a kind of detection means and method, more particularly to a kind of train communication protocol conformance detection means and
Method.
Background technology
As modern train develops towards high speed, automatization and comfortableization direction, TCN is in rail vehicle
Application on electric equipment is increasingly extensive, and various new type train network-bus continuously emerge, corresponding different communication equipment, system
Manufacturing firm is also increasing.As each train network bus is based on specific communication protocol, and each class is led at present
Letter protocol specification substantially adopt natural language description, protocol realization person for the different understanding of version of an agreement can cause it is different
Realize, sometimes even wrong realization, this is possible to cause the equipment for meeting Unified Communication agreement due to generating manufacturer not
With and exist between network interface conflict, so as to it cannot be guaranteed that interconnection, the intercommunication of relevant device, it is therefore necessary to communication
Equipment carries out testing protocol consistency before being interconnected.
The content of the invention
Present invention is primarily aimed at solving the above problems and not enough, there is provided a kind of easy to operate, on train each lead to
News agreement is general, can automatically generate the train communication protocol conformance universal detection device of test case.
Another main purpose of the present invention is to provide a kind of train communication protocol conformance universal test method.
For achieving the above object, the technical scheme is that:
A kind of train communication protocol conformance detection means, including test main frame, display device, the test main frame pass through
Order wire is connected with equipment under test, and the test main frame connects display device, arranges multiple tested in the test main frame
All kinds of train communication agreements standard network interface, each described standard network interface one train communication agreement of correspondence, institute
State standard network interface to be connected with the network under test interface of the equipment under test by order wire.
Further, the arrange parameter Initialize installation module in the test main frame, for carrying out initially to messaging parameter
Change and arrange;Input file import modul, for test master is parsed and imported to the user file of equipment under test attribute, function
Machine;Data memory module, is connected with the parameter initialization setup module and input file import modul, for storing initial
Configuration parameter and the user file for importing;Test case automatically-generating module, is connected with the data memory module, for automatic
Generate test case;Test execution Logic control module, is connected with the test case automatically-generating module, for real to test
Example execution logic is scheduled and controls;Test execution parses control module, is connected with the test execution Logic control module,
For test case is parsed into test execution action;Message information exports input module, controls with test execution parsing
Module connects, and is sent to equipment under test for according to test execution action, generating test packet, receives from the anti-of equipment under test
Feedforward information;Message information dissection process module, is connected with the test execution Logic control module, for parsing feedback information,
And compare with standard agreement, produce test result.
Further, test case automatically-generating module automatically generates uio sequence using FSM mechanism, proposes the waiting time, passes
Defeated time, response time, beyond the time-constrain algorithm of time, constrained by the corresponding time parameter upper limit, generate optimization
Uniformity test sequence.
Further, also it is connected with the test execution Logic control module, for institute including test case editor module
The test case for stating the generation of test case automatically-generating module is modified and is edited.
Further, also it is connected with the message information dissection process module, for automatic including test result generation module
Generate testing journal sheet and test log document;Test result outgoing management module, is connected with the test result generation module, is used
In the testing journal sheet's result for showing, preserving, check and print generation.
The present invention another technical scheme be:
A kind of train communication protocol conformance detection method, it is characterised in that comprise the steps:
Step 1, parameter initialization setup module are initialized to messaging parameter, and input file import modul imports tested
The user file of equipment;
Step 2, test case automatically-generating module automatically generate test case according to relevant parameter and user file;
Test case is parsed into test execution action by step 3, test execution parsing control module, is sent to message information
Output input module, message information export input module and generate message according to test execution action, are sent to equipment under test;
Step 4, message information output input module receive the feedback information of equipment under test, are sent at message information parsing
Reason module, message information dissection process module is parsed to feedback information, and is compared with standard agreement, is obtained a result.
Further, in the step 3 and step 4, the reception of test case and message is sent by test execution logic
Control module is scheduled and controls.
Further, in the step 2, test case is modified and is edited by test case editor module.
Further, in the step 4, test result generation module automatically generates testing journal sheet and survey according to comparison result
Testing journal sheet and test log document are shown by examination daily record document, test result outgoing management module on the display device.
To sum up content, a kind of train communication protocol conformance detection means of the present invention and method, easy to operate, leads to
The hardware platform being made up of test main frame and display device is crossed, different train apparatus can be tested.By test main frame
The software platform of interior structure, is capable of achieving the versatility to all kinds of train communication protocal conformances and detects, and be automatically performed all kinds of surveys
Examination function, automatically generates test case by test case automatically-generating module, improves testing efficiency and accuracy.
Description of the drawings
Fig. 1 is the structural representation of the present invention.
Specific embodiment
The present invention is described in further detail with specific embodiment below in conjunction with the accompanying drawings:
As shown in figure 1, a kind of train communication protocol conformance detection means, including test main frame, display device and tested
Equipment.Test main frame connects display device, and display device is shown for all kinds of human-machine interactive informations, set in test main frame
Multiple standard network interfaces for being test for all kinds of train communication agreements are put, each standard network interface one train communication of correspondence
Agreement, has network under test interface on equipment under test, and network under test of the standard network interface by order wire with equipment under test connects
Mouth connection.
Test chip is set in test main frame, and test chip includes multiple modules, respectively parameter initialization setting module,
Input file import modul, data memory module, test case automatically-generating module, test execution Logic control module, test
Perform parsing control module, message information output input module, message information dissection process module, test result generation module,
It is test result outgoing management module, test case editor module, test process output module, message information memory module, man-machine
Interactive display module.
Wherein man-machine interaction display module is real with parameter initialization setting module, input file import modul, test respectively
Example editor module, test result outgoing management module, test process output module and external display device connection.At the beginning of parameter
Both beginningization setup module, input file import modul are connected with data memory module, and data memory module is with test case certainly
Dynamic generation module connection, test case automatically-generating module are connected with test execution Logic control module, test execution logic control
Molding block is connected with test execution parsing control module, and test execution parsing control module is connected with message information output input module
Connect, message information output input module is connected with equipment under test.Message information exports input module and message information storage module
Connection, message information storage module are connected with test process output module.Test execution Logic control module and message information solution
Analysis processing module connection, message information dissection process module connecting test result-generation module, the connection of test result generation module
Test result outgoing management module.
Man-machine interaction display module connects display device, for providing man-machine interaction, and all kinds of parameters of display test equipment
Information and test process information and test result etc..
For initializing set is carried out to messaging parameter, input file import modul is used for parameter initialization setup module
The user files such as attribute, the functional character of equipment under test are scanned, and user file are parsed, import data memory module,
Data storage module is used for memory communicating parameter initialization and sets and user file.
Test case automatically-generating module, reads user file from data memory module and automatically generates test case,
Test case automatically-generating module according to FSM (Finite State Machine, finite state machine) mechanism, using U methods from
Dynamic complete UIO (Unique Input/Output Sequence, the unique input/output sequence) sequence for generating shortest path
Row, the uio sequence are the logic Perform sequence of test case in test process.In conjunction with train communication agreement to high real-time
Requirement, propose the waiting time, transmission time, response time, beyond the time-constrain algorithm of time, joined by the corresponding time
Number upper limit constraint, generates the uniformity test sequence of optimization.
Test case editor module, modifies and edits for the test case to generating.Test execution logic control
Module, for test case etc. is scheduled and is controlled.Test execution parses control module, for test case is parsed into
Test execution action, is transferred to message information output input module.Message information exports input module for according to test execution
Action, produces test packet and is sent to equipment under test, receive the feedback information for carrying out gas equipment under test.Message information dissection process mould
Block, for parsing feedack, and is compared with standard agreement, so as to produce test result.
Test result generation module, for automatically generating testing journal sheet and test log document.Test result outgoing management
Module, for showing, preserving, check and printing the testing journal sheet's result for generating.Message information storage module, for stored messages
The test packet that information output input module is generated.Test process output module, for the output of test process.
The train communication protocol conformance detection method that a kind of application said apparatus are realized, comprises the steps:
One equipment under test is connected to test main frame by step 1, and the parameter initialization setup module in test main frame is to logical
Letter parameter is initialized, and the user file such as input file import modul scanning equipment under test attribute, functional character is simultaneously parsed, and is led
The user file for entering equipment under test is stored to data memory module.
Step 2, test case automatically-generating module automatically generate test case according to relevant parameter and user file, survey
Examination example is transferred to test execution Logic control module, and test case that can be by test case editor module again to generating is carried out
Modification and editor.
Step 3, under the regulation and control of test execution Logic control module, test execution parses control module by test case solution
Test execution action is analysed into, message information output input module is sent to, message information exports input module according to test execution
Action generates message, is sent to equipment under test.
Step 4, under the regulation and control of test execution Logic control module, message information output input module receives equipment under test
Feedback information, be sent to message information dissection process module, message information dissection process module is parsed to feedback information,
And compare with the standard agreement of agreement used by the equipment, obtain a result.Test result through test result generation module, from
Dynamic to generate testing journal sheet and test log document etc., testing journal sheet and test log document etc. are sent to test result outgoing management
Testing journal sheet and test log document etc. are sent to man-machine interaction display module by module, test result outgoing management module, and
Show on the display device.
A kind of train communication protocol conformance detection means of the present invention and method, it is easy to operate, by by testing
Equipment under test only need to be accessed hardware platform, so that it may to different train apparatus by the hardware platform of main frame and display device composition
Tested.
By the software platform built in test main frame, using modularized design, each module realizes specific function, with
Just the switch of system, maintenance and transplanting, each module are not for certain special communication protocol.By importing each equipment under test
User file, and the standard network interface of all kinds of train communications protocol, realize the inspection to all kinds of train communication protocal conformances
Survey, all kinds of test functions can be automatically performed, versatility is realized.Test is automatically generated by test case automatically-generating module real
Example, improves the test to agreement real-time, improves testing efficiency and accuracy.
As described above, combining the plan content given by accompanying drawing, similar technical scheme can be derived.In every case it is not de-
From the content of technical solution of the present invention, any simple modification above example made according to the technical spirit of the present invention, etc.
With change and modification, still fall within the range of technical solution of the present invention.
Claims (2)
1. a kind of train communication protocol conformance detection means, it is characterised in that:Including test main frame, display device, the survey
Examination main frame is connected with equipment under test by order wire, and the test main frame connects display device, is arranged in the test main frame
Multiple standard network interfaces for being test for all kinds of train communication agreements, each one train of the standard network interface correspondence lead to
Letter agreement, the standard network interface are connected with the network under test interface of the equipment under test by order wire;
The arrange parameter Initialize installation module in the test main frame, for carrying out Initialize installation to messaging parameter;Input
File import modul, for being parsed to the user file of equipment under test attribute, function and being imported test main frame;Data storage
Module, is connected with the parameter initialization setup module and input file import modul, for storing initial configuration parameter and
The user file of importing;Test case automatically-generating module, is connected with the data memory module, real for automatically generating test
Example;Test execution Logic control module, is connected with the test case automatically-generating module, for test case execution logic
It is scheduled and controls;Test execution parses control module, is connected with the test execution Logic control module, for testing
Eample Analysis are into test execution action;Message information exports input module, is connected with test execution parsing control module, uses
Equipment under test is sent in test packet according to test execution action, is generated, receives the feedback information from equipment under test;Message
Information analysis processing module, is connected with the test execution Logic control module, for parsing feedback information, and and standard agreement
Compare, produce test result;
The test case automatically-generating module automatically generates unique input/output UIO sequences using finite state machine FSM mechanism
Row, propose based on the waiting time, transmission time, response time, beyond the time-constrain algorithm of time, joined by the corresponding time
Number upper limit constraint, generates the uniformity test sequence of optimization;
Also include test case editor module, be connected with the test execution Logic control module, for the test case
The test case that automatically-generating module is generated is modified and is edited;
Also include test result generation module, be connected with the message information dissection process module, for automatically generating test report
Table and test log document;Test result outgoing management module, is connected with the test result generation module, for showing, protecting
Deposit, check and print the testing journal sheet's result for generating.
2. a kind of train communication protocol conformance detection method, it is characterised in that comprise the steps:
Step 1, parameter initialization setup module are initialized to messaging parameter, and input file import modul imports equipment under test
User file;
Step 2, test case automatically-generating module automatically generate test case according to relevant parameter and user file;
Test case is parsed into test execution action by step 3, test execution parsing control module, is sent to message information output
Input module, message information export input module and generate message according to test execution action, are sent to equipment under test;
Step 4, message information output input module receive the feedback information of equipment under test, are sent to message information dissection process mould
Block, message information dissection process module are parsed to feedback information, and are compared with standard agreement, are obtained a result;
In the step 3 and step 4, the reception of test case and message is sent and is carried out by test execution Logic control module
Scheduling and control;
In the step 2, test case is modified and is edited by test case editor module;
In the step 4, test result generation module automatically generates testing journal sheet and test log document according to comparison result,
Testing journal sheet and test log document are shown by test result outgoing management module on the display device;
In the step 2, the test case automatically-generating module is automatically generated unique defeated using finite state machine FSM mechanism
Enter/export uio sequence, propose based on the waiting time, transmission time, response time, beyond the time-constrain algorithm of time, pass through
Corresponding time parameter upper limit constraint, generates the uniformity test sequence of optimization.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310328439.2A CN103634161B (en) | 2013-07-31 | 2013-07-31 | Train communication protocol consistency detection device and train communication protocol consistency detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310328439.2A CN103634161B (en) | 2013-07-31 | 2013-07-31 | Train communication protocol consistency detection device and train communication protocol consistency detection method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103634161A CN103634161A (en) | 2014-03-12 |
CN103634161B true CN103634161B (en) | 2017-05-03 |
Family
ID=50214814
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310328439.2A Active CN103634161B (en) | 2013-07-31 | 2013-07-31 | Train communication protocol consistency detection device and train communication protocol consistency detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103634161B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103888323B (en) * | 2014-04-22 | 2018-09-04 | 株洲南车时代电气股份有限公司 | A kind of ethernet device just operation action conformance test method and device |
CN104104488A (en) * | 2014-07-15 | 2014-10-15 | 中国电子科技集团公司第四十一研究所 | Wireless sensor network protocol conformance testing system and method |
CN104765681B (en) * | 2015-03-18 | 2017-10-24 | 株洲南车时代电气股份有限公司 | Train is driven control software automatization test system and method |
CN105117106A (en) * | 2015-08-27 | 2015-12-02 | 株洲南车时代电气股份有限公司 | Train human-computer interaction unit test system |
CN108111265B (en) * | 2016-11-25 | 2020-08-18 | 株洲中车时代电气股份有限公司 | Automatic testing method for consistency of communication protocol |
CN108235801B (en) * | 2017-04-05 | 2021-05-28 | 深圳中兴力维技术有限公司 | Access method and system of intelligent device |
CN108200595B (en) | 2017-12-28 | 2020-08-28 | 长安大学 | Vehicle-road and vehicle-vehicle communication testing method oriented to IEEE802.11p protocol of Internet of vehicles |
CN108471368A (en) * | 2018-03-19 | 2018-08-31 | 天筑科技股份有限公司 | Communication base station room internally-powered device test system and method based on serial ports connection |
CN114006922A (en) * | 2021-10-19 | 2022-02-01 | 中车青岛四方机车车辆股份有限公司 | Train communication network safety detection system and detection method |
CN117608947B (en) * | 2024-01-24 | 2024-04-23 | 合肥康芯威存储技术有限公司 | Fault testing system and method for memory |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100385864C (en) * | 2005-12-08 | 2008-04-30 | 中国移动通信集团公司 | Protocol conformance measuring device and method |
US8788239B2 (en) * | 2011-02-11 | 2014-07-22 | Fisher-Rosemount Systems, Inc. | Methods, apparatus and articles of manufacture to test batch configurations |
CN102694701B (en) * | 2012-06-13 | 2015-12-02 | 青岛海信传媒网络技术有限公司 | Message based method of testing and system |
-
2013
- 2013-07-31 CN CN201310328439.2A patent/CN103634161B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103634161A (en) | 2014-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103634161B (en) | Train communication protocol consistency detection device and train communication protocol consistency detection method | |
CN106374439B (en) | Software definition implementation method based on intelligent substation Protection control system | |
CN103178996B (en) | Distributed packet-switching chip model verification system and method | |
CN102724079B (en) | Method and system for auxiliary configuration of Ethernet equipment | |
CN100385864C (en) | Protocol conformance measuring device and method | |
CN103560829B (en) | Method and system for automatic testing of UNI ports | |
CN109768970B (en) | Configurable universal protocol generation method | |
CN108306804A (en) | A kind of Ethercat main station controllers and its communication means and system | |
CN108366067A (en) | Electric system generic service Protocol Conformance Test System and method | |
CN103248525A (en) | Method and device of configuring network resources | |
CN106131240A (en) | A kind of CAN address distribution method based on daisy chaining and communication system | |
CN105868311A (en) | Data analyzing method and device | |
CN103780455B (en) | TETRA digit cluster protocol test method and system based on TTCN-3 | |
CN113806037A (en) | Service calling method and device, storage medium and electronic equipment | |
CN109271177A (en) | A kind of method and system of automatic load PCIE Switch products configuration parameter | |
CN105897537B (en) | A kind of method and system of battery management system configuration vehicle communication protocol | |
CN113921004A (en) | Intelligent device control method and device, storage medium and electronic device | |
CN110662096A (en) | Data burning method and device for converged terminal | |
CN114460925A (en) | Automatic HIL (high-level intelligence) testing method for CAN (controller area network) interface of electric automobile controller | |
CN109445384A (en) | A kind of more apparatus control systems | |
CN113705143B (en) | Automatic simulation system and automatic simulation method | |
CN105227407B (en) | A kind of protocol debugging method, apparatus and system | |
CN112286073A (en) | Communication interface device and method for closed-loop simulation of power system | |
CN109412856B (en) | Network equipment brand non-difference management method and system | |
CN111343201A (en) | Analysis method, device and system for rapidly adapting to protocol change |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Chengyang District of Shandong city of Qingdao province Jinhong road 266111 No. 88 Applicant after: CRRC QINGDAO SIFANG CO., LTD. Address before: Jihongtan town Chengyang District Shandong city Qingdao province Jinhong road 266111 No. 88 Applicant before: CSR Qingdao Sifang Locomotive and Rolling Stock Co., Ltd. |
|
COR | Change of bibliographic data | ||
GR01 | Patent grant | ||
GR01 | Patent grant |