CN105117106A - Train human-computer interaction unit test system - Google Patents

Train human-computer interaction unit test system Download PDF

Info

Publication number
CN105117106A
CN105117106A CN201510534379.9A CN201510534379A CN105117106A CN 105117106 A CN105117106 A CN 105117106A CN 201510534379 A CN201510534379 A CN 201510534379A CN 105117106 A CN105117106 A CN 105117106A
Authority
CN
China
Prior art keywords
test
interaction unit
script
frame
module
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
CN201510534379.9A
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.)
Zhuzhou CRRC Times Electric Co Ltd
Original Assignee
Zhuzhou CSR Times Electric Co Ltd
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 Zhuzhou CSR Times Electric Co Ltd filed Critical Zhuzhou CSR Times Electric Co Ltd
Priority to CN201510534379.9A priority Critical patent/CN105117106A/en
Publication of CN105117106A publication Critical patent/CN105117106A/en
Pending legal-status Critical Current

Links

Abstract

The present invention discloses a train human-computer interaction unit test system, comprising a test simulator and an adapter, wherein one end of the adapter is connected to a tested human-computer interaction unit and the other end of the adapter is connected to an output interface of the test simulator. The test simulator comprises: a test script generation module for generating at least one test script for the tested human-computer interaction unit; a protocol encapsulation module for packaging the test script to a test command frame in a format of MVB; and an interface adaptation module for converting the test command frame to serial test instruction sequences and then sending the sequences to the output surface of the test simulator in order. According to the application, script writing, script protocol conversion and transmission of a test command are set as parts mutually independent in function, the decoupling effect of each function module is achieved, a more flexible test function can be provided, and the extensibility is relatively high.

Description

A kind of test macro of train man-machine interaction unit
Technical field
The present invention relates to the testing of equipment technical field of Rail Transit System, specifically, relate to a kind of test macro of train man-machine interaction unit.
Background technology
In CTCS train control system, man-machine interaction unit (DriverMachineInterfaceUnit, DMI) carries the work shown the control information of train, status information with the form such as word, figure.The information that train operator provides according to man-machine interaction unit is handled train.In prior art; man-machine interaction unit to the process of Train Control information and status information normally according to from time interval between to trains system (AutomaticTrainProtection; ATP) control information obtained and status information call shape library; graphing in internal memory; then the figure of drafting is sent to video memory, the interface of man-machine interaction unit shows.
If mistake appears in man-machine interaction unit display information, then very likely cause train operator's maloperation, even do not operate and cause the accident.In order to ensure safety, new man-machine interaction unit needs fully to test before the mounting.At present, the test of man-machine interaction unit is mainly adopted and accompanies examination equipment to coordinate with tested man-machine interaction unit, utilize according to specific test case and accompany examination equipment to carry out functional test to tested man-machine interaction unit.
Existing test case generally adopts black box initiative to test, namely tester arranges test case and cycle tests according to the standard input of man-machine interaction unit, output interface, by accompanying examination equipment to send test case to tested man-machine interaction unit, whether the display interface then observing man-machine interaction unit can normally show.Concrete engineering circuit data and signalling arrangement configuration data etc. are set in these test cases usually, and formulate test script respectively for the communication protocol type of the hardware interface needed for man-machine interaction unit and support.Such drawback is that the versatility of test case is poor, such as, when simulating different site environment setting test cases or when testing different functions, needs to write test script respectively, causes testing efficiency low.
Therefore, the test macro of the stronger train man-machine interaction unit of a kind of versatility is flexibly needed badly.
Summary of the invention
When an object of the present invention is to solve and tests train man-machine interaction unit in prior art, the technological deficiency that test case versatility is poor.
The invention provides a kind of test macro of man-machine interaction unit, comprising: test simulation machine and X-over, wherein,
One end of X-over connects tested man-machine interaction unit, the output interface of other end connecting test analog machine;
Described test simulation machine comprises:
Test script generation module, for generating at least one test script for tested man-machine interaction unit;
Protocol encapsulation module, for being encapsulated as the test command frame of MVB form by test script;
Interface adaptation module, for test command frame being converted to the test instruction sequence of serial, is sent to the output interface of test simulation machine successively.
In one embodiment, described test simulation machine also comprises:
Script administration module, for adding test script, delete or revising.
In one embodiment, described test simulation machine also comprises:
Test monitoring module, for receiving the test result data fed back from tested man-machine interaction unit by interface adaptation module.
In one embodiment, described test simulation machine also comprises:
Encapsulation control module, for being at least one test script of protocol encapsulation model choice based on testing requirement, sorts according to predefined procedure to selected test script.
In one embodiment, described interface adaptation module also for:
Check code is added at the afterbody of described test command frame.
In one embodiment, described interface adaptation module also for:
Increase frame origin identification at the head of described test command frame, and add frame end mark at the afterbody of described test command frame.
In one embodiment, described test command frame comprises frame number;
Described interface adaptation module sends test command frame successively according to frame number order from small to large.
In one embodiment, described interface adaptation module first sends N test command frame, after No. N feedback message frame receiving tested man-machine interaction unit feedback, sends N+1 test command frame again after waiting for Preset Time.
In one embodiment, described interface adaptation module first sends N test command frame, if do not receive the N message frame of tested man-machine interaction unit feedback, then judges communication failure between test simulation machine and tested man-machine interaction unit.
The transmission of script edit, script protocol conversion and test command is set to function independently part mutually by the embodiment of the application.When revise one of them functional module time, can't impact other modules, thus reach each functional module decoupling zero and effect, various test event can be realized flexibly, test function more flexibly can be provided, there is stronger extensibility.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in instructions, claims and accompanying drawing and obtain.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for instructions, with embodiments of the invention jointly for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the structural representation of the test macro of the train man-machine interaction unit of the embodiment of the present invention;
Fig. 2 is the schematic diagram with the frame data structure of SACEM check code of the embodiment of the present invention;
Fig. 3 is the schematic diagram of the FFFE message frame of the embodiment of the present invention;
Fig. 4 is the schematic diagram of information interactive process between the test simulation machine of the embodiment of the present invention and DMI.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail.
Below in conjunction with Figure of description, embodiments of the invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.And in not afoul situation, the feature in embodiments of the invention can be combined with each other.
Fig. 1 is the structural representation of the test macro of the train man-machine interaction unit of the present embodiment.This test macro comprises test simulation machine 110 and X-over 120.Test simulation machine 110 generates the test command data of serial for simulating different site environments, and is connected to tested man-machine interaction unit (DMI) 130 by X-over 120.
Wherein, test simulation machine 110 comprises test script generation module 103, protocol encapsulation module 104 and interface adaptation module 105.Test script generation module 103 is connected with protocol encapsulation module 104, and protocol encapsulation module 104 is connected with interface adaptation module 105.
Wherein, test script, for generating at least one test script for tested man-machine interaction unit, is sent to protocol encapsulation module 104 by test script generation module 103.Test script is encapsulated as the test command frame of MVB form by protocol encapsulation module 104.Test command frame is converted to the test instruction sequence of serial by interface adaptation module 105, is sent to the output interface of test simulation machine successively.
For meeting testing requirement, test script generation module 103 can generate speech sound test script, key testing script, interface redirect test script, signal testing script, pattern test script, plan district test script, speed display test script, text test script, icon test script, State Transferring test script and distance protection test script etc.Such as, in sound test script, DMI is made to carry out the broadcasting of voice according to setting order and time; In signal testing script, setting DMI carries out the display of various signal kinds (railway lamp shows control signal); In speed display test script, be then that the speed dial plate according to the speed DMI of test simulation machine transmission carries out display in real time etc.
Test script is encapsulated as the test command frame of MVB form by protocol encapsulation module 104.
Test command frame is converted to the test instruction sequence of serial by interface adaptation module 105, is sent to the output interface of test simulation machine successively.It should be noted that, in order to ensure the accurate transmission of test command data, interface adaptation module 105 adds at the afterbody of message frame check code.The different agreement type that this check code can be supported according to tested man-machine interaction unit is set to SACEM algorithm, CRC16 algorithm and CRC32 algorithm etc.Fig. 2 is the schematic diagram of the frame data structure with SACEM check code.
In fig. 2, the header of frame data structure includes the frame number of 2 bytes (namely 16), and the data area of frame number is 1 to 65535.Test simulation machine sends the test command frame of successive frame numbering to tested man-machine interaction unit, correspondingly, and the feedback frame of tested man-machine interaction unit feedback serial number, thus ensure the continuity that test command is mutual.In test command frame, comprise various test packet, such as voice packet, signal bag, state bag etc., each bag has oneself data structure.
In addition, in order to ensure the integrality of test command data, interface adaptation module 105 increases frame origin identification at the head of message frame, and adds frame end mark at the afterbody of message frame.In the structure of the FFFE message frame of shown in Fig. 3, the reference position of " FFFE " character representation message frame of head, accordingly, the end position of " FFFD " character representation message frame of afterbody.And closely follow the frame data with SACEM check code that the message part after " FFFE " character is middle description above.Like this, the packet that test script is encapsulated as by protocol encapsulation module 103 and interface adaptation module 105 " frame head+frame number+frame length+frame data+frame check+postamble ", and then the test instruction sequence of serial is formed according to sequencing, be sent to the output interface of test simulation machine successively.
Fig. 4 is the schematic diagram of information interactive process between test simulation machine and DMI.
First, test simulation machine sends No. 0 message.No. 0 message is the message that test simulation machine and DMI shake hands, and DMI replys the init state containing current DMI in the message of test simulation machine.Before DMI enters interaction mode, test simulation machine will send No. 0 message always, until after DMI enters interaction mode, it is 1 that test simulation machine just issues additional the message numbering sent certainly.The maximal value of message numbering is 65535, and then message numbering counts from 1 again.
Subsequently, test simulation machine sends N message, and waits for that DMI replys N message.If the message number that DMI replys is not No. N that test simulation machine is waited for, then test simulation machine is thought and communication failure between DMI, exits test.If the message numbering that DMI replys is the N message that test simulation machine is waited for, then proper communication.Test simulation machine increases the message numbering of transmission automatically every 300ms, namely sends (N+1) number message.
If DMI receives N message, then reply N message.Under the state of DMI and the proper communication of test simulation machine, if the message numbering of the current wait of DMI is also N, and DMI receives is N message, then DMI upgrades the message numbering self waited for is (N+1).If it is not N that DMI receives message numbering in message, then this message will not be processed, and the message numbering that DMI waits for remains N.
Carry out information interaction by above-mentioned successive frame numbering according to the sequencing of setting, can ensure accurately to test according to test script between test simulation machine and tested DMI.
Consider that the interface of tested man-machine interaction unit Physical layer has the various ways such as RS232, RS422, RS485, the bus protocol of each class interface support has profibus bus, CAN, MVB etc., in order to the equipment under test that flexible adaptation is different, test command data are converted to the test instruction sequence with tested man-machine interaction unit interface adaptation by interface adaptation module 105, and then re-send to equipment under test.Like this, when DMI has different physical interfaces, only need on a physical layer to change interface convertor.And coordinated the conversion in communication protocol by protocol encapsulation module 104 and interface adaptation module 105.
As can be seen from above-mentioned analysis, the transmission of script edit, script protocol conversion and test command is set to function independently part mutually by the test macro of the present embodiment.When revise one of them functional module time, can't impact other modules, thus reach each functional module decoupling zero and effect, various test event can be realized flexibly.Such as, when the type of equipment under test physical interface changes, only need the implementation procedure revising interface adaptation module 105; When test function changes, only need amendment test script generation module 103 part.
Again get back to Fig. 1, the test simulation machine of the present embodiment also comprises script administration module 106, and it is connected with test script generation module 103, carries out adding, delete or revising for test script.Encapsulation control module 107, it is connected with protocol encapsulation module 104, for being at least one test script of protocol encapsulation model choice based on testing requirement, selected test script is sorted according to predefined procedure, make the test macro of the present embodiment can provide test function more flexibly, there is stronger extensibility.
Such as, on test script is selected, one or more can be selected to be increased to test library, test process is generally tested according to the order selected, and can add dynamically and delete test script in test process.
Further, the test macro of the present embodiment also comprises test monitoring module 108, and it is connected with interface adaptation module 105, for being received the test result data from equipment under test feedback by interface adaptation module, analyzes for operating personnel.
Although embodiment disclosed in this invention is as above, the embodiment that described content just adopts for the ease of understanding the present invention, and be not used to limit the present invention.Technician in any the technical field of the invention; under the prerequisite not departing from spirit and scope disclosed in this invention; any amendment and change can be done what implement in form and in details; but scope of patent protection of the present invention, the scope that still must define with appending claims is as the criterion.

Claims (9)

1. a test macro for train man-machine interaction unit, is characterized in that, comprising: test simulation machine and X-over, wherein,
One end of X-over connects tested man-machine interaction unit, the output interface of other end connecting test analog machine;
Described test simulation machine comprises:
Test script generation module, for generating at least one test script for tested man-machine interaction unit;
Protocol encapsulation module, for being encapsulated as the test command frame of MVB form by test script;
Interface adaptation module, for test command frame being converted to the test instruction sequence of serial, is sent to the output interface of test simulation machine successively.
2. the system as claimed in claim 1, is characterized in that, described test simulation machine also comprises:
Script administration module, for adding test script, delete or revising.
3. the system as claimed in claim 1, is characterized in that, described test simulation machine also comprises:
Test monitoring module, for receiving the test result data fed back from tested man-machine interaction unit by interface adaptation module.
4. the system according to any one of claim 1-3, is characterized in that, described test simulation machine also comprises:
Encapsulation control module, for being at least one test script of protocol encapsulation model choice based on testing requirement, sorts according to predefined procedure to selected test script.
5. system as claimed in claim 4, is characterized in that, described interface adaptation module also for:
Check code is added at the afterbody of described test command frame.
6. system as claimed in claim 5, is characterized in that, described interface adaptation module also for:
Increase frame origin identification at the head of described test command frame, and add frame end mark at the afterbody of described test command frame.
7. the system according to any one of claim 1-3, is characterized in that, described test command frame comprises frame number;
Described interface adaptation module sends test command frame successively according to frame number order from small to large.
8. system as claimed in claim 7, is characterized in that,
Described interface adaptation module first sends N test command frame, after No. N feedback message frame receiving tested man-machine interaction unit feedback, sends N+1 test command frame again after waiting for Preset Time.
9. system as claimed in claim 7, it is characterized in that, described interface adaptation module first sends N test command frame, if do not receive the N message frame of tested man-machine interaction unit feedback, then judges communication failure between test simulation machine and tested man-machine interaction unit.
CN201510534379.9A 2015-08-27 2015-08-27 Train human-computer interaction unit test system Pending CN105117106A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510534379.9A CN105117106A (en) 2015-08-27 2015-08-27 Train human-computer interaction unit test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510534379.9A CN105117106A (en) 2015-08-27 2015-08-27 Train human-computer interaction unit test system

Publications (1)

Publication Number Publication Date
CN105117106A true CN105117106A (en) 2015-12-02

Family

ID=54665113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510534379.9A Pending CN105117106A (en) 2015-08-27 2015-08-27 Train human-computer interaction unit test system

Country Status (1)

Country Link
CN (1) CN105117106A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109358610A (en) * 2018-12-10 2019-02-19 上海星融汽车科技有限公司 The detection method of vehicle diagnostic equipment
CN110166328A (en) * 2019-07-05 2019-08-23 南方电网科学研究院有限责任公司 A kind of test device of demand response equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123616A (en) * 2007-09-28 2008-02-13 北京金山软件有限公司 A server management method and a server management system
CN101330412A (en) * 2008-07-29 2008-12-24 中兴通讯股份有限公司 Automatization test approach and system based on topological discovery
US8285808B1 (en) * 2011-05-20 2012-10-09 Cloudflare, Inc. Loading of web resources
CN103257925A (en) * 2013-04-28 2013-08-21 株洲南车时代电气股份有限公司 Automatic testing device, system and method for train operation monitoring record software
CN103634161A (en) * 2013-07-31 2014-03-12 南车青岛四方机车车辆股份有限公司 Train communication protocol consistency detection device and train communication protocol consistency detection method
CN104765681A (en) * 2015-03-18 2015-07-08 株洲南车时代电气股份有限公司 Automated train drive control software testing system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123616A (en) * 2007-09-28 2008-02-13 北京金山软件有限公司 A server management method and a server management system
CN101330412A (en) * 2008-07-29 2008-12-24 中兴通讯股份有限公司 Automatization test approach and system based on topological discovery
US8285808B1 (en) * 2011-05-20 2012-10-09 Cloudflare, Inc. Loading of web resources
CN103257925A (en) * 2013-04-28 2013-08-21 株洲南车时代电气股份有限公司 Automatic testing device, system and method for train operation monitoring record software
CN103634161A (en) * 2013-07-31 2014-03-12 南车青岛四方机车车辆股份有限公司 Train communication protocol consistency detection device and train communication protocol consistency detection method
CN104765681A (en) * 2015-03-18 2015-07-08 株洲南车时代电气股份有限公司 Automated train drive control software testing system and method

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
CN109358610A (en) * 2018-12-10 2019-02-19 上海星融汽车科技有限公司 The detection method of vehicle diagnostic equipment
CN109358610B (en) * 2018-12-10 2021-02-05 上海星融汽车科技有限公司 Detection method of vehicle diagnostic equipment
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

Similar Documents

Publication Publication Date Title
CN105138455A (en) Testing system and testing method of train control on-board device
CN108009097B (en) Cloud computing simulation test method and device for rail transit signal system
CN113612654B (en) Vehicle-mounted gateway function test method based on database
CN102967815B (en) Chip testing method, automated testing equipment and system
CN107819647B (en) Intelligent substation station control layer network tester
CN106774279B (en) Converter valve control protective unit pilot system and method based on RTDS
CN103530211B (en) A kind of method of the PCIE winding Autonomous tests based on UVM platforms
CN102393738A (en) Diagnostic device and test method of automobile electronic control unit (ECU)
CN103530216A (en) PCIE verification method based on UVM
WO2015143750A1 (en) Fault logic modeling method for high-speed railway train operation control vehicular system
CN108923953A (en) A kind of virtual main station system of power remote machine debugging
CN104731085B (en) For the test platform and its method of testing of trackside interlock system
CN108282375B (en) Computer interlocking interface general simulation system and method based on PLC series-parallel technology
CN114095966B (en) Vehicle-road collaborative simulation test implementation method
CN105510743A (en) Relay IO flooding simulation method and system, and flooding test system
CN108011743A (en) A kind of method and device of direct fault location
CN103616607A (en) Test system of valve base electronic equipment for converter valve
CN105117106A (en) Train human-computer interaction unit test system
CN114936062B (en) Method, device, equipment, system and storage medium for automatic debugging of equipment
CN105680441A (en) Simulated replacement technique-based simulated point-alignment device
CN104809250A (en) Loose type data consistency checking method
CN102594615A (en) Method and system for simulating value-added services
CN106844127B (en) A kind of highly reliable modular testing emulation platform
CN201917907U (en) Equipment applied to simulated train MVB (Multifunction Vehicle Bus) network environment
CN103812730A (en) Multiple cell TTCN (Tree and Tabular Combined Notation) protocol conformance test platform system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20151202

WD01 Invention patent application deemed withdrawn after publication