CN108206751A - Emulation test system and method based on analog platform - Google Patents

Emulation test system and method based on analog platform Download PDF

Info

Publication number
CN108206751A
CN108206751A CN201611180103.6A CN201611180103A CN108206751A CN 108206751 A CN108206751 A CN 108206751A CN 201611180103 A CN201611180103 A CN 201611180103A CN 108206751 A CN108206751 A CN 108206751A
Authority
CN
China
Prior art keywords
udp
modules
message packet
layer module
function sub
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
CN201611180103.6A
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.)
BYD Co Ltd
Original Assignee
BYD 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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201611180103.6A priority Critical patent/CN108206751A/en
Publication of CN108206751A publication Critical patent/CN108206751A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The invention discloses a kind of emulation test systems and method based on analog platform.Wherein system includes:Interface adaptation layer module for providing unified interface for the access of measurand, and acquires the test data of measurand, and passes through UDP communication protocols by Test data generation UDP message packet, and wherein UDP message packet includes UDP packet header;UDP message packet for receiving the UDP message packet, and is sent to corresponding function sub-modules by communication switchboard layer module according to UDP packet header;Scene loader module, for loading multiple function sub-modules to create the scene of simulation true train operation, and according to the preconfigured operation for promoting the multiple function sub-modules of time stepping method;Multiple function sub-modules for when detecting that current time reaches the propulsion time of multiple function sub-modules, receiving corresponding UDP message packet, and parse the UDP message packet, and carry out corresponding logical process according to analysis result.

Description

Emulation test system and method based on analog platform
Technical field
The present invention relates to emulation testing technical field more particularly to a kind of emulation test system based on analog platform and Method.
Background technology
In recent years, with technology of track traffic fast development, user and passenger are to the safety of train, comfort, environmental protection Property and the requirement of energy saving etc. be continuously improved, the function of making Train Control is more complicated, and market competition globalizes, and makes exploitation Period more shortens.In order to ensure the emergency processing of the normal operation of train and emergency case, make by train input Need to emulation testing first be carried out to train before.
In the relevant technologies, the simulation test running system of the semi-hardware type simulation test available for train control system usually wraps It includes:Prototype system, access system in kind, device model in kind and simulation support svstem.Wherein, prototype system refers to make For the prototype system of emulation testing object, can simulation support svstem be linked by access system in kind;Device model in kind is Refer to for object simulating object, simulation support svstem can be directly connected to;Simulation support svstem refer to for prototype system or Device model in kind carries out emulation testing, and controls and carried out during the test mutually between prototype system and device model in kind It changes.Wherein the simulation support svstem believes module including proxy module and vehicle, while further includes signalling arrangement model, train entity Model and geographical circuit model, virtual person on duty's model, virtual Driver Model etc..
But presently, there are the problem of be:(1) in actual test, due to needing that different prototype systems is surveyed Examination, then need that different platform interfaces is configured for different prototype systems so that will whenever other prototype systems are switched It changes the access interface of emulation test system into corresponding interface, causes test process complicated, cumbersome;(2) due to existing Simulation support svstem system promote the time be it is fixed, it is consistent with actual run time, but this can cause cannot to meet pair System carries out the demand of pressure test or testing response time;(3) it since actual motion system is directly connected to equipment in kind, adopts The state of collection equipment in kind carries out relevant treatment, leads to the program of subsystem in actual motion subsystem and simulation support svstem not Reusable.
Invention content
The purpose of the present invention is intended to solve one of the technical issues of above-mentioned at least to a certain extent.
For this purpose, first purpose of the present invention is to propose a kind of emulation test system based on analog platform.The system Test operating procedure can be simplified, greatly reduce the workload of tester or user, it can be with more flexible full Sufficient tester or the various demands of user, and improve the availability and feasibility of the present invention.
Second object of the present invention is to propose a kind of emulation test method based on analog platform.
In order to achieve the above objectives, the emulation test system based on analog platform that first aspect present invention embodiment proposes, Including:Interface adaptation layer module, communication switchboard layer module, the scene loader module being connected with the interface adaptation layer module And multiple function sub-modules, wherein, the interface adaptation layer module provides unified interface for the access for measurand, And the test data of the measurand is acquired, and pass through UDP communication protocols by the Test data generation UDP message packet, In, the UDP message packet includes UDP packet header;The communication switchboard layer module, for receiving the interface adaptation layer module hair The UDP message packet sent, and the UDP message packet is sent to by corresponding function sub-modules according to the UDP packet header;It is described Scene loader module, for load the multiple function sub-modules with create simulation true train operation scene, and according to The preconfigured operation for promoting the multiple function sub-modules of time stepping method;The multiple function sub-modules, for detecting When reaching the propulsion time of the multiple function sub-modules to current time, the communication switchboard layer module is received according to The corresponding UDP message packet that UDP packet header is sent, and parses the corresponding UDP message packet, and according to parsing after UDP message packet carries out corresponding logical process.
Emulation test system based on analog platform according to embodiments of the present invention is difference by interface adaptation layer module The access of the measurand of type provides unified interface and unified communication protocol so that right in the tested material object for testing different As when, do not need to replace interface equipment and program, test operating procedure can be simplified in this way, greatly reduce tester or The workload of user;And the function of providing and the time is promoted to can configure is provided, it can realize that system time window can amplify or contract It is small, the various demands of tester or user can be met more flexiblely in this way;And by using unified UDP communication protocols View, and pass through destination address of the communication switchboard layer module in message and carry out data forwarding, can cause tester or User is not needed to as transmitting terminal IP address is respectively configured on every equipment under test machine, but is uniformly matched by test system for content It puts, improves the availability and feasibility of the present invention.
In order to achieve the above objectives, the emulation test method based on analog platform that second aspect of the present invention embodiment proposes, Including:Unified interface is provided for the access of measurand, and acquire the test of the measurand by interface adaptation layer module Data;By UDP communication protocols by the Test data generation UDP message packet, wherein, the UDP message packet includes UDP packets Head;The UDP message packet is received, and send the UDP message packet according to the UDP packet header by communication switchboard layer module To corresponding function sub-modules;It is run by the multiple function sub-modules of scene loader module loading with creating simulation true train Scene, and according to it is preconfigured promote the multiple function sub-modules of time stepping method operation;Detecting current time When reaching the propulsion time of the multiple function sub-modules, the multiple function sub-modules receive the communication switchboard layer module According to the corresponding UDP message packet that the UDP packet header is sent, and the corresponding UDP message packet is parsed, and according to solution UDP message packet after analysis carries out corresponding logical process.
Emulation test method based on analog platform according to embodiments of the present invention is difference by interface adaptation layer module The access of the measurand of type provides unified interface and unified communication protocol so that right in the tested material object for testing different As when, do not need to replace interface equipment and program, test operating procedure can be simplified in this way, greatly reduce tester or The workload of user;And the function of providing and the time is promoted to can configure is provided, it can realize that system time window can amplify or contract It is small, the various demands of tester or user can be met more flexiblely in this way;And by using unified UDP communication protocols View, and pass through destination address of the communication switchboard layer module in message and carry out data forwarding, can cause tester or User is not needed to as transmitting terminal IP address is respectively configured on every equipment under test machine, but is uniformly matched by test system for content It puts, improves the availability and feasibility of the present invention.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description It obtains significantly or is recognized by the practice of the present invention.
Description of the drawings
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Significantly and it is readily appreciated that, wherein,
Fig. 1 is the structure diagram of the emulation test system according to an embodiment of the invention based on analog platform;
Fig. 2 is the structural representation according to the emulation test system based on analog platform of a specific embodiment of the invention Figure;
Fig. 3 is the flow chart of the emulation test method according to an embodiment of the invention based on analog platform.
Specific embodiment
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the emulation test system and method based on analog platform of the embodiment of the present invention are described.
Fig. 1 is the structure diagram of the emulation test system according to an embodiment of the invention based on analog platform.It needs It is noted that the emulation test system based on analog platform of the embodiment of the present invention can be applied to half reality of train control system In object emulation testing, in kind or semi-hardware type simulation test is carried out to train to realize, ensures normal operation and the burst of train Emergency processing of situation etc..
As shown in Figure 1, being somebody's turn to do the emulation test system 10 based on analog platform can include:Interface adaptation layer module 100 is led to Believe exchanger layer module 200, scene loader module 300 and multiple function sub-modules 400.Wherein, as shown in Figure 1, interface is fitted Be connected with layer module 100 with communication switchboard layer module 200, communication switchboard layer module 200 respectively with scene loader module 300 are connected with multiple function sub-modules 400.
Specifically, interface adaptation layer module 100 is used to provide unified interface for the access of measurand, and acquires tested pair The test data of elephant, and pass through UDP communication protocols by Test data generation UDP message packet, wherein, UDP message packet includes UDP packets Head.
As a kind of example, unified interface and communication protocol can be used in interface adaptation layer module 100, for example, interface Can have communication adaptation interface and multiple interfaces in kind in adaptation layer module 100, wherein, the number of the material object interface can be according to not With the type of prototype system set, i.e., each type corresponds to a kind of interface, and material object interface in this way can be connected with prototype system, Communication adaptation interface can be connected with the communication switchboard layer module 200 in test system 10;Interface adaptation layer module 100 can also wrap Including has the function of the device model submodule of interface allotment, is united by the signal that the device model submodule transmits interface in kind One is converted to the signal that communication adaptation is supported, in this way, can be realized using unified interface by interface adaptation layer module 100 Different types of prototype system access and test operation, nothing need to change the type of access interface, greatly simplifies test behaviour Make step.
When measurand is linked into emulation test system 10 by the interface adaptation layer module 100, interface adaptation layer mould Block 100 can acquire the test data of the measurand, and pass through UDP communication protocols and the test data is sent to communication switchboard Layer module 200.It is appreciated that between each module in the emulation test system 10 based on analog platform of the embodiment of the present invention It is communicated using Unified Communication agreement (i.e. UDP communication protocols), for example, interface adaptation layer module 100 is collecting tested pair It, can be by UDP communication protocols by the Test data generation UDP message packet, to facilitate the test data after the test data of elephant Transmission in the form of UDP between modules.
Communication switchboard layer module 200 is used for the UDP message packet that receiving interface adaptation layer module 100 is sent, and according to UDP UDP message packet is sent to corresponding function sub-modules 400 by packet header.It is appreciated that can have in the communication switchboard layer module 200 There is communication forwarding interface, the UDP message packet that interface adaptation layer module 100 transmits can be forwarded by the communication forwarding interface To corresponding function sub-modules 400.
It should be noted that the emulation test system 10 based on analog platform of the embodiment of the present invention employs unified lead to Letter agreement, i.e. UDP communication protocols, and the packet header of UDP message packet is defined, as shown in Table 1 below:
Table 1
24 bytes 8 bytes N byte
IP packet header UDP packet header Protocol contents
Wherein, the head in protocol package is IP heads and UDP heads, and interface protocol content is UDP message contents, can be wrapped It includes:The information such as packet header and services package, the type of the sender of this packet and recipient defined in UDP packet header, while in packet header End define the contents such as the type for sending content and the quantity of services package that is included of notebook data packet.Communication exchanges as a result, Machine layer module 200 can distinguish transmission data according to the information in packet header according to this agreement, i.e., according in UDP message packet Sender and recipient transfer data to corresponding function sub-modules 400.
Scene loader module 300 is used to load multiple function sub-modules 400 to create the field of simulation true train operation Scape, and according to the preconfigured operation for promoting the multiple function sub-modules 400 of time stepping method.Wherein, in the embodiment of the present invention In, which can be preconfigured, for example, can be according to the demand of tester or user come when the propulsion is configured Between, such as accelerate or slow down the propulsion time to adjust the propulsion progress of test system, meet tester or user in some spies Testing requirement in the case of different.
That is, scene loader module 300 can in load test system 10 each function sub-modules 400 so that each work( Energy submodule 400 is run simultaneously, reaches the scene of simulation true train operation, and according to the preconfigured propulsion time to each The operation of function sub-modules 400 is promoted, for example, detecting that current time reaches the propulsion time of transponder function sub-modules When, scene loader module 300, which loads the transponder function sub-modules, makes its operation, so that the transponder function sub-modules are held The corresponding feature operation of row, and then the feature operation can be monitored whether normally to achieve the purpose that emulation testing.
Multiple function sub-modules 400 were used in the propulsion time for detecting current time and reaching multiple function sub-modules 400 When, the corresponding UDP message packet that communication switchboard layer module 200 is sent according to UDP packet header is received, and to corresponding UDP message Packet is parsed, and carries out corresponding logical process according to the UDP message packet after parsing.For example, detecting that current time reaches To transponder function sub-modules the propulsion time when, which can receive communication switchboard layer module 200 According to the UDP message packet that UDP packet header is sent, and the UDP message packet is parsed, finally according to the UDP message packet after parsing into The corresponding logical process of row.As a result, using unification between each function sub-modules in the test system 10 of the embodiment of the present invention Podium level so that each function sub-modules need to only be responsible for handling the logical process of data, it is not necessary to which it is by material object to pay close attention to input data side System, which provides, either to be provided by virtual device models, it can be achieved that function sub-modules program is in actual motion and test system Multiplexing.
In order to improve the availability and feasibility of the present invention, facilitate the data transmission between each function sub-modules, into one Step ground, in one embodiment of the invention, is communicated between multiple function sub-modules 400 using UDP communication protocols. That is, what the communication protocol between each function sub-modules 400 can be unified, you can UDP communication protocols are used uniformly, In, description that can be as shown in Table 1 above to the definition of UDP message packet in the UDP communication protocols, details are not described herein.
It is appreciated that there are the totally different function sub-modules of many functions in the test system 10 of the embodiment of the present invention, in order to Ensure in test system each function sub-modules can normal operation, can also have communication cooperation between each function sub-modules and close System.As a kind of example, the cooperation mode between multiple function sub-modules 400 may include but be not limited to:By distributed only The mode of vertical network communication cooperates;Alternatively, provide cooperation by being called in sequence in same program or process.For This, needs to provide a unified propulsion link for test system 10, wherein, the propulsion functions of the test system 10 of the present embodiment Using unified entrance, in progradation, all function sub-modules 400 carry out internal logic according to newest external information Operation and data update.
It is appreciated that in actual test, the test number of measurand can be acquired by interface adaptation layer module 100 According to as a kind of example, which can be prototype system or virtual device models;Wherein, in this example, interface is adapted to Layer module 100 is additionally operable to, when the measurand for detecting access switches to virtual device models by prototype system, to collect Prototype system test data assignment to virtual device models, and disconnect the connection with prototype system.
That is, prototype system is being linked into test system 10 by interface adaptation layer module 100 by unified interface While, it can also call virtual device models.For example, when measurand is prototype system, interface adaptation layer module 100 can adopt Collect the test data of the prototype system;When the measurand is switched to virtual device models by prototype system, interface adaptation layer The test data of the prototype system can be copied to the virtual device models by module 100, and disconnect the connection with the prototype system. As a result, by virtually exchanging function, the durability of code can be improved well, mitigate developer's burden, meanwhile, Ke Yijia The complexity of test is greatly saved in the speed tested soon.
In order to meet the testing requirement of tester, further, in one embodiment of the invention, the scene Loader module 300 can be additionally used in update and promote the time, and according to the propulsion speed of updated propulsion time adjustment test system Degree.That is, the scene loader module 300 can also receive tester set according to itself or actual demand it is newest The time is promoted, and according to the propulsion time for promoting each function sub-modules in time update test system 10 received, that is, is updated The time is promoted to determine the propulsion progress of test system 10, is realized according to the demand of tester or user to test process Accelerated or slowed down operation, to meet tester or user in some testing requirements in special circumstances.
It should be noted that in one embodiment of the invention, the multiple function sub-modules 400 tested in system 10 can Including but not limited to bridge I/O model submodule, whole train model submodule, circuit block mold submodule and yard Figure interface submodule etc..Wherein, the bridge I/O model submodule and yards design interface submodule respectively with communication switchboard layer Module is connected, and whole train model submodule and circuit block mold submodule are loaded respectively by communication adaptation interface and scene Device module is connected.
For example, with test system 10 through the embodiment of the present invention to the trackside equipment transponder that is interlocked in train into For row test, wherein, as shown in Fig. 2, under the test scene, which can include:Interface adaptation layer module 100th, communication switchboard layer module 200, scene loader module 300 and multiple function sub-modules, wherein, multiple function submodule Block may respectively be bridge I/O model submodule 410, whole train model submodule 420, circuit block mold submodule 430, Yards design interface submodule 440, mobile unit submodule 450 and interlocking submodule 460.Wherein, 450 submodule of mobile unit And interlocking submodule 460 uses unified podium level, which can have the program of target machine version and PC simulation versions, with When can support regardless of tangible actual motion or emulation testing, which can patrol the data received Collect processing.
For example, by prototype systems such as transponder, BTM (Balise Transit Module, transponder transmission unit) antennas Test system 10 is connected to by interface adaptation layer module 100, at this point, scene loader module 300 is by CI (Computer Interlocking, computer interlocking) the transponder message LEU (Lineside that pass through interface adaptation layer module 100 that send Electronic Unit, trackside electronic unit) in device coding to transponder.Scene loader module 300 is being got currently When time is close to transponder window (i.e. in advance to the propulsion time of transponder configuration), BTM antennas can be driven to receive transponder report Text.The message that BTM antennas are read is transmitted to accordingly by interface adaptation layer module 100 by communication switchboard layer module 200 The podium level of vehicle-mounted ATP (Automatic Train Protection System, train automatic protection), vehicle-mounted ATP receive It is parsed after the message of BTM antennas, reads the message of transponder, and carry out corresponding logical process, such as position or update MA (Movement Authority, mobile authorization) etc..
Emulation test system based on analog platform according to embodiments of the present invention is difference by interface adaptation layer module The access of the measurand of type provides unified interface and unified communication protocol so that right in the tested material object for testing different As when, do not need to replace interface equipment and program, test operating procedure can be simplified in this way, greatly reduce tester or The workload of user;And the function of providing and the time is promoted to can configure is provided, it can realize that system time window can amplify or contract It is small, the various demands of tester or user can be met more flexiblely in this way;And by using unified UDP communication protocols View, and pass through destination address of the communication switchboard layer module in message and carry out data forwarding, can cause tester or User is not needed to as transmitting terminal IP address is respectively configured on every equipment under test machine, but is uniformly matched by test system for content It puts, improves the availability and feasibility of the present invention.
In order to realize above-described embodiment, the invention also provides a kind of emulation test methods based on analog platform.
Fig. 3 is the flow chart of the emulation test method according to an embodiment of the invention based on analog platform.It needs It is bright, the emulation test method based on analog platform of the embodiment of the present invention can be applied to the embodiment of the present invention based on simulation The emulation test system of platform, wherein, which may include:Interface adaptation layer module, communication switchboard layer module, scene Loader module and multiple function sub-modules, the description of specific function can be found in above-mentioned Fig. 1 and test system 10 shown in Fig. 2 Function describes.
As shown in figure 3, being somebody's turn to do the emulation test method based on analog platform can include:
S310 provides unified interface, and acquire measurand by interface adaptation layer module for the access of measurand Test data.
It should be noted that in an embodiment of the present invention, interface adaptation layer module can be used unified interface and lead to Believe agreement, for example, can have first interface and multiple second interfaces in interface adaptation layer module, wherein, of the second interface Number can be set according to the type of different prototype systems, i.e., each type corresponds to a kind of interface, and such second interface can be with reality Object system is connected, and first interface can be connected with the communication switchboard layer module in test system;Interface adaptation layer module can also wrap The interface conversion submodule with interface conversion function is included, is united by the signal that the interface conversion submodule transmits second interface One is converted to the signal that first interface is supported, in this way, can be realized to not using unified interface by interface adaptation layer module The prototype system of same type access and test operation, without the type for needing to change access interface, greatly simplifies test operation step Suddenly.
When measurand is linked into emulation test system by the interface adaptation layer module, interface adaptation layer mould can be passed through Block acquires the test data of the measurand.
S320, by UDP communication protocols by Test data generation UDP message packet, wherein, UDP message packet includes UDP packets Head.
It is appreciated that it is used between each module in the emulation test system based on analog platform of the embodiment of the present invention Unified Communication agreement (i.e. UDP communication protocols) communicates, for example, collecting measurand by interface adaptation layer module It, can be by UDP communication protocols by the Test data generation UDP message packet, to facilitate the test data with UDP after test data The transmission of form between modules.
S330 receives UDP message packet, and be sent to UDP message packet according to UDP packet header by communication switchboard layer module Corresponding function sub-modules.
It is appreciated that can have communication forwarding interface in the communication switchboard layer module, it can by the communication forwarding interface The UDP message packet that interface adaptation layer module transmits is transmitted to corresponding function sub-modules.
It should be noted that the emulation test system based on analog platform of the embodiment of the present invention employs unified communication Agreement, i.e. UDP communication protocols, and the packet header of UDP message packet is defined, as shown in Table 1 above.Wherein, in protocol package Head be IP heads and UDP heads, interface protocol content is UDP message contents, it may include:Packet header and services package, in UDP packets The information such as type of the sender of this packet and recipient defined in head, while the class for sending content is defined at the end in packet header The contents such as the quantity of services package that type and notebook data packet are included.Communication switchboard layer module is according to this agreement as a result, Transmission data is distinguished according to the information in packet header, i.e., the sender in UDP message packet and recipient transmit data To corresponding function sub-modules.
S340, by the multiple function sub-modules of scene loader module loading with create simulation true train run field Scape, and according to the preconfigured operation for promoting the multiple function sub-modules of time stepping method.
Wherein, in an embodiment of the present invention, which can be preconfigured, for example, can be according to tester Or the demand of user is configured the propulsion time, such as accelerates or slows down and promotes the time to adjust the propulsion progress of test system, Meet tester or user in some testing requirements in special circumstances.
That is, each function of function sub-modules each in scene loader module loading test system can be passed through Module is run simultaneously, reaches the scene of simulation true train operation, and according to the preconfigured propulsion time to each function The operation of module is promoted, for example, when detecting that current time reaches the propulsion time of transponder function sub-modules, scene adds The load device module loading transponder function sub-modules make its operation, so that the transponder function sub-modules perform corresponding function Operation, and then the feature operation can be monitored whether normally to achieve the purpose that emulation testing.
S350, when detecting that current time reaches the propulsion time of multiple function sub-modules, multiple function sub-modules connect The corresponding UDP message packet that communication switchboard layer module is sent according to UDP packet header is received, and corresponding UDP message packet is solved Analysis, and corresponding logical process is carried out according to the UDP message packet after parsing.
For example, when detecting that current time reaches the propulsion time of transponder function sub-modules, transponder function Module can receive the UDP message packet that communication switchboard layer module is sent according to UDP packet header, and the UDP message packet is parsed, Corresponding logical process is finally carried out according to the UDP message packet after parsing.It is each in the test system of the embodiment of the present invention as a result, Unified podium level is used between function sub-modules so that each function sub-modules need to only be responsible for handling the logical process of data, no It is to be provided either to be provided, it can be achieved that function sub-modules program by virtual device models by prototype system that input data side, which must be paid close attention to, Multiplexing in actual motion and test system.
In order to improve the availability and feasibility of the present invention, facilitate the data transmission between each function sub-modules, need Illustrate, in one embodiment of the invention, led between multiple function sub-modules using UDP communication protocols Letter.That is, what the communication protocol between each function sub-modules can be unified, you can UDP communication protocols are used uniformly, In, description that can be as shown in Table 1 above to the definition of UDP message packet in the UDP communication protocols, details are not described herein.
It is appreciated that there are the totally different function sub-modules of many functions in the test system of the embodiment of the present invention, in order to protect Demonstrate,prove in test system each function sub-modules can normal operation, can also have communication cooperation relation between each function sub-modules. As a kind of example, the cooperation mode between multiple function sub-modules may include but be not limited to:Pass through distributed separate network The mode of communication cooperates;Alternatively, provide cooperation by being called in sequence in same program or process.For this purpose, it needs One unified propulsion link to be provided for test system, wherein, the propulsion functions of the test system of the present embodiment are using unified Entrance, in progradation, all function sub-modules carry out operation and the data of internal logic according to newest external information Update.
It is appreciated that in actual test, the test data of measurand can be acquired by interface adaptation layer module, is made For a kind of example, which can be prototype system or virtual device models.It wherein, in this example, should be flat based on simulation The emulation test method of platform may also include:When the measurand for detecting access switches to virtual device models by prototype system When, by interface adaptation layer module by the test data assignment of collected prototype system to virtual device models, and disconnect with The connection of prototype system.
That is, interface adaptation layer module prototype system is linked by unified interface it is same in test system When, it can also call virtual device models.For example, when measurand is prototype system, interface adaptation layer module can acquire the reality The test data of object system;When the measurand is switched to virtual device models by prototype system, interface adaptation layer module can The test data of the prototype system is copied into the virtual device models, and disconnect the connection with the prototype system.Pass through as a result, It is virtual to exchange function, the durability of code can be improved well, mitigate developer's burden, meanwhile, test can be accelerated The complexity of test is greatly saved in speed.
In order to meet the testing requirement of tester, further, in one embodiment of the invention, this is based on The emulation test method of analog platform may also include:It is updated by scene loader module and promotes the time, and according to updated Promote the fltting speed of time adjustment test system.That is, can also tester be received by the scene loader module The newest propulsion time set according to itself or actual demand, and pass through the scene loader module according to the propulsion received The propulsion time of each function sub-modules in time update test system, i.e. update promote the time determine the propulsion of test system into Degree, realizes and is accelerated or slowed down operation to test process according to the demand of tester or user, to meet tester Member or user are in some testing requirements in special circumstances.
Emulation test method based on analog platform according to embodiments of the present invention is difference by interface adaptation layer module The access of the measurand of type provides unified interface and unified communication protocol so that right in the tested material object for testing different As when, do not need to replace interface equipment and program, test operating procedure can be simplified in this way, greatly reduce tester or The workload of user;And the function of providing and the time is promoted to can configure is provided, it can realize that system time window can amplify or contract It is small, the various demands of tester or user can be met more flexiblely in this way;And by using unified UDP communication protocols View, and pass through destination address of the communication switchboard layer module in message and carry out data forwarding, can cause tester or User is not needed to as transmitting terminal IP address is respectively configured on every equipment under test machine, but is uniformly matched by test system for content It puts, improves the availability and feasibility of the present invention.
In the description of the present invention, it is to be understood that term " first ", " second " are only used for description purpose, and cannot It is interpreted as indicating or implies relative importance or imply the quantity of the technical characteristic indicated by indicating.Define as a result, " the One ", at least one this feature can be expressed or be implicitly included to the feature of " second ".In the description of the present invention, " multiple " It is meant that at least two, such as two, three etc., unless otherwise specifically defined.
In the present invention unless specifically defined or limited otherwise, term " installation ", " connected ", " connection ", " fixation " etc. Term should be interpreted broadly, for example, it may be being fixedly connected or being detachably connected or integral;Can be that machinery connects It connects or is electrically connected;It can be directly connected, can also be indirectly connected by intermediary, can be in two elements The connection in portion or the interaction relationship of two elements, unless otherwise restricted clearly.For those of ordinary skill in the art For, the concrete meaning of above-mentioned term in the present invention can be understood as the case may be.
In the description of this specification, reference term " one embodiment ", " example ", " is specifically shown " some embodiments " The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment of the present invention or example.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It is combined in an appropriate manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this field Art personnel can tie the different embodiments or examples described in this specification and the feature of different embodiments or examples It closes and combines.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include Module, segment or the portion of the code of the executable instruction of one or more the step of being used to implement specific logical function or process Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, to perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) it uses or combines these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment It puts.The more specific example (non-exhaustive list) of computer-readable medium is including following:Electricity with one or more wiring Connecting portion (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or when necessary with it His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage Or firmware is realized.If for example, with hardware come realize in another embodiment, can be under well known in the art Any one of row technology or their combination are realized:With for the logic gates to data-signal realization logic function Discrete logic, have suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium In matter, the program when being executed, one or a combination set of the step of including embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, it can also That each unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.The integrated module is such as Fruit is realized in the form of software function module and is independent product sale or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although it has been shown and retouches above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, those of ordinary skill in the art can be changed above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (10)

1. a kind of emulation test system based on analog platform, which is characterized in that including interface adaptation layer module and the interface Communication switchboard layer module, scene loader module and the multiple function sub-modules that adaptation layer module is connected, wherein,
The interface adaptation layer module for providing unified interface for the access of measurand, and acquires the measurand Test data, and pass through UDP communication protocols by the Test data generation UDP message packet, wherein, the UDP message packet includes UDP packet header;
The communication switchboard layer module, for receiving the UDP message packet that the interface adaptation layer module is sent, and according to The UDP message packet is sent to corresponding function sub-modules by the UDP packet header;
The scene loader module, for load the multiple function sub-modules with create simulation true train operation field Scape, and according to the preconfigured operation for promoting the multiple function sub-modules of time stepping method;
The multiple function sub-modules, in the propulsion time for detecting current time and reaching the multiple function sub-modules When, the corresponding UDP message packet that the communication switchboard layer module is sent according to the UDP packet header is received, and to the correspondence UDP message packet parsed, and corresponding logical process is carried out according to the UDP message packet after parsing.
2. the emulation test system based on analog platform as described in claim 1, which is characterized in that the measurand is real Object system or virtual device models;Wherein, the interface adaptation layer module is additionally operable in the measurand for detecting access When switching to virtual device models by prototype system, by the test data assignment of the collected prototype system to described virtual Device model, and disconnect the connection with the prototype system.
3. the emulation test system based on analog platform as described in claim 1, which is characterized in that the multiple function submodule It is communicated between block using the UDP communication protocols.
4. the emulation test system based on analog platform as described in claim 1, which is characterized in that the multiple function submodule Cooperation mode between block includes:
It cooperates in a manner that distributed separate network communicates;Alternatively,
Cooperation is provided by being called in sequence in same program or process.
5. the emulation test system based on analog platform as described in claim 1, which is characterized in that the scene loader mould Block is additionally operable to:The propulsion time is updated, and the fltting speed of the test system is adjusted according to the updated propulsion time.
6. a kind of emulation test method based on analog platform, which is characterized in that including:
Unified interface is provided for the access of measurand by interface adaptation layer module, and acquires the test number of the measurand According to;
By UDP communication protocols by the Test data generation UDP message packet, wherein, the UDP message packet includes UDP packet header;
The UDP message packet is received, and send out the UDP message packet according to the UDP packet header by communication switchboard layer module It send to corresponding function sub-modules;
By the multiple function sub-modules of scene loader module loading to create the scene that simulation true train is run, and according to pre- The operation of propulsion the multiple function sub-modules of time stepping method being first configured;
When detecting that current time reaches the propulsion time of the multiple function sub-modules, the multiple function sub-modules receive The corresponding UDP message packet that the communication switchboard layer module is sent according to the UDP packet header, and to the corresponding UDP numbers It is parsed according to packet, and corresponding logical process is carried out according to the UDP message packet after parsing.
7. the emulation test method based on analog platform as claimed in claim 6, which is characterized in that the measurand is real Object system or virtual device models;Wherein, the method further includes:
When the measurand for detecting access switches to virtual device models by prototype system, it is adapted to by the interface Layer module disconnects the test data assignment of the collected prototype system to the virtual device models and the material object The connection of system.
8. the emulation test method based on analog platform as claimed in claim 6, which is characterized in that the multiple function submodule It is communicated between block using the UDP communication protocols.
9. the emulation test method based on analog platform as claimed in claim 6, which is characterized in that the multiple function submodule Cooperation mode between block includes:
It cooperates in a manner that distributed separate network communicates;Alternatively,
Cooperation is provided by being called in sequence in same program or process.
10. the emulation test method based on analog platform as claimed in claim 6, which is characterized in that the method further includes:
The propulsion time is updated, and adjust the test according to the updated propulsion time by the scene loader module The fltting speed of system.
CN201611180103.6A 2016-12-19 2016-12-19 Emulation test system and method based on analog platform Pending CN108206751A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611180103.6A CN108206751A (en) 2016-12-19 2016-12-19 Emulation test system and method based on analog platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611180103.6A CN108206751A (en) 2016-12-19 2016-12-19 Emulation test system and method based on analog platform

Publications (1)

Publication Number Publication Date
CN108206751A true CN108206751A (en) 2018-06-26

Family

ID=62602873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611180103.6A Pending CN108206751A (en) 2016-12-19 2016-12-19 Emulation test system and method based on analog platform

Country Status (1)

Country Link
CN (1) CN108206751A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446685A (en) * 2018-11-06 2019-03-08 南方电网调峰调频发电有限公司 A kind of data communication protocol based on power station emulation training
CN111931284A (en) * 2019-05-13 2020-11-13 中车株洲电力机车研究所有限公司 Rail transit simulation system and method based on distributed architecture
CN112749046A (en) * 2019-10-31 2021-05-04 比亚迪股份有限公司 MSS system simulation data construction method, device, equipment and storage medium
CN114708763A (en) * 2022-03-17 2022-07-05 北京运捷科技有限公司 Semi-physical semi-simulation trackside equipment fusion method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106698A (en) * 2006-07-12 2008-01-16 上海振华港口机械(集团)股份有限公司 Playback method and system for history data based on real time monitoring
US20090300419A1 (en) * 2008-05-30 2009-12-03 Spirent Communications, Inc. Realtime test result promulgation from network component test device
CN101937231A (en) * 2010-07-23 2011-01-05 北京全路通信信号研究设计院 Simulation test running system
CN102426425A (en) * 2011-11-08 2012-04-25 重庆邮电大学 Automobile ABS (Antilock Brake System) virtual reality simulation system
CN104699069A (en) * 2015-01-09 2015-06-10 中国铁路总公司 Train control system vehicular device simulation testing system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106698A (en) * 2006-07-12 2008-01-16 上海振华港口机械(集团)股份有限公司 Playback method and system for history data based on real time monitoring
US20090300419A1 (en) * 2008-05-30 2009-12-03 Spirent Communications, Inc. Realtime test result promulgation from network component test device
CN101937231A (en) * 2010-07-23 2011-01-05 北京全路通信信号研究设计院 Simulation test running system
CN102426425A (en) * 2011-11-08 2012-04-25 重庆邮电大学 Automobile ABS (Antilock Brake System) virtual reality simulation system
CN104699069A (en) * 2015-01-09 2015-06-10 中国铁路总公司 Train control system vehicular device simulation testing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
崔凯: "基于分布式仿真的列车运行三维视景驱动", 《变频器世界》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446685A (en) * 2018-11-06 2019-03-08 南方电网调峰调频发电有限公司 A kind of data communication protocol based on power station emulation training
CN111931284A (en) * 2019-05-13 2020-11-13 中车株洲电力机车研究所有限公司 Rail transit simulation system and method based on distributed architecture
CN112749046A (en) * 2019-10-31 2021-05-04 比亚迪股份有限公司 MSS system simulation data construction method, device, equipment and storage medium
CN112749046B (en) * 2019-10-31 2023-08-11 比亚迪股份有限公司 MSS system analog data construction method, apparatus, equipment and storage medium
CN114708763A (en) * 2022-03-17 2022-07-05 北京运捷科技有限公司 Semi-physical semi-simulation trackside equipment fusion method

Similar Documents

Publication Publication Date Title
CN108206751A (en) Emulation test system and method based on analog platform
CN103580911B (en) Communication system and communication means
CN109151034A (en) Long-range control method, device and the server of automatic driving vehicle
CN106961437A (en) CAN and Ethernet hybrid network gateway network management device and its exchange method
CN109383527B (en) Train marshalling list method, marshalling controller and train
US7817654B2 (en) Test device and a test method
JPH0237740B2 (en)
CN104168162B (en) A kind of software-hardware synergism realizes the traffic generator for interchanger validation test
CN109895815A (en) The operation data acquisition method and system of train
CN106411652B (en) A kind of gateway protocol conversion testing system and method towards the communication of empty day
CN201863869U (en) Train simulation system based on MVB (multifunction vehicle bus) network
CN109688214A (en) Data transmission method, device and storage medium
CN109720383A (en) Section occupied state detection method, device, system and semaphore
CN109597652A (en) Specification analytic method, system, computer readable storage medium and communication manager
CN113879361A (en) Train control device and method and train
CN108427320A (en) A kind of high-speed EMUs real time execution semi-matter simulating system testing stand
CN103269296B (en) A kind of user side of passive optical network system detection system and detection method
CN107547256A (en) A kind of power telecom network Hardware In The Loop Simulation Method and system
CN105049239B (en) The recognition methods of interface connection relation and system
CN203204332U (en) Train controlling and monitoring system-based broadcast simulation debugging system
CN112187536B (en) Information interaction method and device based on TMS configuration data, storage medium and electronic device
CN101916206A (en) Method and device for modeling signal system
CN109318948A (en) Computer locking system
CN202186376U (en) Train control and monitoring system based on two-level bus
CN109600247A (en) Train topological management method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20180626