CN107065598B - L KJ simulation system and method - Google Patents

L KJ simulation system and method Download PDF

Info

Publication number
CN107065598B
CN107065598B CN201710433631.6A CN201710433631A CN107065598B CN 107065598 B CN107065598 B CN 107065598B CN 201710433631 A CN201710433631 A CN 201710433631A CN 107065598 B CN107065598 B CN 107065598B
Authority
CN
China
Prior art keywords
plug
simulated
host
condition data
ins
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
Application number
CN201710433631.6A
Other languages
Chinese (zh)
Other versions
CN107065598A (en
Inventor
孙泽勇
彭扶权
贺涛
王业流
沈陈超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan CRRC Times Signal and Communication Co Ltd
Original Assignee
Hunan CRRC Times Signal and Communication 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 Hunan CRRC Times Signal and Communication Co Ltd filed Critical Hunan CRRC Times Signal and Communication Co Ltd
Priority to CN201710433631.6A priority Critical patent/CN107065598B/en
Publication of CN107065598A publication Critical patent/CN107065598A/en
Application granted granted Critical
Publication of CN107065598B publication Critical patent/CN107065598B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B17/00Systems involving the use of models or simulators of said systems
    • G05B17/02Systems involving the use of models or simulators of said systems electric

Abstract

The invention provides an L KJ simulation system which comprises a host plug-in, and a L KJ bus simulation plug-in, wherein the processor is coupled to the host plug-in and configured to respond to configuration information from the host plug-in to generate a list of plug-ins to be simulated, acquire a currently inquired plug-in type from a host inquiry command from the host plug-in based on the list of plug-ins to be simulated, and return simulation working condition data corresponding to the currently inquired plug-in type to the host plug-in.

Description

L KJ simulation system and method
Technical Field
The invention relates to a ground test device applied to a vehicle-mounted train control unit of a rail transit signal system, in particular to a train operation monitoring system (L KJ) simulation system applied to the vehicle-mounted train control unit of the rail transit signal system.
Background
The L KJ system is a domestic train operation monitoring system, belonging to the vehicle-mounted part of the rail traffic signal system, and is used for real-time monitoring and controlling the running train and preventing the train from speeding and running.
With the popularization and the trial of a new generation L KJ train operation monitoring system (hereinafter referred to as a new generation L KJ system), a testing device for testing the line data, the control software and the temporary speed limit data of the new generation L KJ train operation monitoring system is urgently needed in each railway bureau electric service section, a new generation L KJ train operation monitoring system bus plug-in simulation technology needs to be developed, and a new generation L KJ train operation monitoring system simulation testing device is developed based on the technology.
Disclosure of Invention
The following presents a simplified summary of one or more aspects in order to provide a basic understanding of such aspects. This summary is not an extensive overview of all contemplated aspects, and is intended to neither identify key or critical elements of all aspects nor delineate the scope of any or all aspects. Its sole purpose is to present some concepts of one or more aspects in a simplified form as a prelude to the more detailed description that is presented later.
According to an aspect of the present invention, there is provided an L KJ simulation system, comprising:
a host plug-in; and
l KJ bus emulation package, comprising:
a processor coupled to the host plug-in, the processor configured to:
generating a list of plug-ins to be emulated in response to configuration information from the host plug-in;
acquiring the currently inquired plug-in type from a host inquiry command from the host plug-in based on the list of the plug-ins to be simulated; and
and returning the simulation working condition data corresponding to the currently inquired plug-in type to the host plug-in.
In an example, the list of the plug-ins to be emulated includes types of the plug-ins to be emulated and corresponding plug-in device numbers, and the processor is further configured to read the plug-in device number of the currently-queried plug-in the host query command; and searching the currently inquired plug-in type based on the plug-in equipment number of the currently inquired plug-in and the list of the plug-ins to be simulated.
In one example, the L KJ bus emulation plug-in further comprises a FlexRay communication module connected to the host plug-in via a FlexRay bus, the FlexRay communication module receiving the host query command via a FlexRay bus, the processor coupled to the FlexRay communication module and further configured to parse the host query command based on a FlexRay communication protocol and to obtain a currently queried plug-in type from the parsed host query command based on the list of plug-ins to be emulated.
In an example, the processor is further configured to: packaging the simulation working condition data corresponding to the currently inquired plug-in type based on a FlexRay communication protocol; and providing the packaged simulated working condition data corresponding to the currently inquired plug-in type to a FlexRay communication module, wherein the FlexRay communication module sends the packaged simulated working condition data to the host plug-in via a FlexRay bus.
In an example, the list of plug-ins to be simulated includes types of plug-ins to be simulated and corresponding sending time slices, and the sending time slices corresponding to different plug-in types do not overlap with each other, wherein the processor is further configured to: and providing the packaged simulation working condition data corresponding to the currently inquired plug-in type to a FlexRay communication module in a time slice corresponding to the currently inquired plug-in type, and sending the packaged simulation working condition data to the host plug-in via a FlexRay bus by the FlexRay communication module in the time slice corresponding to the currently inquired plug-in type.
In one example, the types of plug-ins to be simulated in the list of plug-ins to be simulated include: the safety output plug-in, the safety input plug-in, the safety frequency input plug-in and the analog quantity input and output plug-in.
In one example, the emulation system further comprises a communications plug-in coupled to the host plug-in via a FlexRay bus, the L KJ bus emulation plug-in further comprises a CAN communications module connected to the communications plug-in via a CAN bus, the processor coupled to the CAN communications module and further configured to provide simulated condition data corresponding to a currently queried plug-in type to the CAN communications module, the CAN communications module providing the simulated condition data to the communications plug-in via the CAN bus, the communications plug-in forwarding the simulated condition data to the host plug-in via a FlexRay bus.
In one example, the types of plug-ins to be emulated include a cab signal host and a BTM host.
In one example, the L KJ bus emulation plug-in also includes a front-end communications module for obtaining from an external source the simulated condition data for simulating the condition data of the plug-in to be emulated.
In one example, the front-end communication module includes an ethernet communication module for obtaining the simulated condition data from the upper computer based on an ethernet communication protocol, and the processor is further configured to parse the simulated condition data based on the ethernet communication protocol to obtain the parsed simulated condition data.
In one example, the front-end communication module includes a serial communication module configured to obtain the simulated condition data from the peripheral keyboard based on a serial communication protocol, and the processor is further configured to parse the simulated condition data based on the serial communication protocol to obtain the parsed simulated condition data.
In one example, the serial port communication module is an RS485 communication module or an RS422 communication module.
According to another aspect of the present invention, there is provided an L KJ simulation method, including:
generating a plug-in list to be simulated in response to configuration information from the host plug-in;
acquiring the currently inquired plug-in type from a host inquiry command from the host plug-in based on the list of the plug-ins to be simulated; and
and returning the simulation working condition data corresponding to the currently inquired plug-in type to the host plug-in.
In an example, the list of plug-ins to be simulated includes types of plug-ins to be simulated and corresponding plug-in device numbers, and the obtaining of the currently queried type of plug-ins includes: reading the plug-in equipment number of the current plug-in inquired in the host inquiry command; and searching the currently inquired plug-in type based on the plug-in equipment number of the currently inquired plug-in and the list of the plug-ins to be simulated.
In one example, the method further comprises: receiving the host query command via a FlexRay bus; parsing the host query command based on a FlexRay communication protocol, the obtaining the currently queried plug-in type comprising obtaining the currently queried plug-in type from the parsed host query command based on the list of plug-ins to be emulated.
In one example, the method further comprises encapsulating the simulated working condition data corresponding to the currently queried plug-in type based on a FlexRay communication protocol; the returning of the simulated operating condition data corresponding to the currently queried plug-in type to the host plug-in comprises sending the packaged simulated operating condition data corresponding to the currently queried plug-in type to the host plug-in via a FlexRay bus.
In an example, the list of the to-be-simulated plug-in includes a type of the to-be-simulated plug-in and corresponding sending time slices, the sending time slices corresponding to different plug-in types do not overlap with each other, and the sending the packaged simulation condition data corresponding to the currently queried plug-in type to the host plug-in via a FlexRay bus includes sending the packaged simulation condition data corresponding to the currently queried plug-in type to the host plug-in via a FlexRay bus at the time slice corresponding to the currently queried plug-in type.
In one example, the types of plug-ins to be simulated in the list of plug-ins to be simulated include: the safety output plug-in, the safety input plug-in, the safety frequency input plug-in and the analog quantity input and output plug-in.
In one example, the returning of the simulated operating condition data corresponding to the currently queried plug-in type to the host plug-in includes sending the simulated operating condition data corresponding to the currently queried plug-in type to the communication plug-in via the CAN bus for forwarding the simulated operating condition data to the host plug-in by the communication plug-in via the Flexray bus.
In one example, the types of plug-ins to be emulated include a cab signal host and a BTM host.
In one example, the method further includes obtaining the simulated condition data from an external source for simulating the condition data of the insert to be simulated.
In one example, the method further comprises acquiring the simulated working condition data from the upper computer based on an Ethernet communication protocol; and analyzing the simulated condition data based on the Ethernet communication protocol to obtain the analyzed simulated condition data.
In one example, the method further comprises obtaining the simulated working condition data from a peripheral keyboard based on a serial communication protocol; and analyzing the simulated working condition data based on a serial port communication protocol to obtain the analyzed simulated working condition data.
In one example, the serial communication protocol is an RS485 or RS422 communication protocol.
According to the L KJ simulation system, the types and the number of input and output plug-ins can be configured within the range of bus capacity, no hardware resource needs to be added, full software simulation can be realized, and the FlexRay bus adopts a bus type topological structure, has a simple structure and is easy to expand, so that full software simulation of peripheral function plug-ins of a new generation L KJ train operation monitoring system is realized, the current situation that a whole set of complete equipment is required to carry out ground debugging line data, control software and temporary speed limit is changed, and the equipment purchase cost of a user is reduced.
In addition, the L KJ bus simulation device technology is developed based on a FlexRay bus, adopts a FlexRay bus static period time trigger communication mechanism, and meets the requirements of communication real-time performance and two-way redundancy of the bus by allocating system plug-in receiving/sending time slices in advance, thereby ensuring the reliability of communication.
Drawings
The above features and advantages of the present disclosure will be better understood upon reading the detailed description of embodiments of the disclosure in conjunction with the following drawings. In the drawings, components are not necessarily drawn to scale, and components having similar relative characteristics or features may have the same or similar reference numerals.
FIG. 1 shows a block diagram of an L KJ simulation system;
FIG. 2 illustrates a functional block diagram of an L KJ bus emulation plug-in accordance with an aspect of the subject invention;
FIG. 3 illustrates a data processing diagram of an L KJ bus emulation plug-in accordance with an aspect of the subject invention;
FIG. 4 illustrates a block diagram of an L KJ simulation system in accordance with an aspect of the subject invention, an
FIG. 5 illustrates a flow diagram of an L KJ simulation method in accordance with an aspect of the subject invention.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments. It is noted that the aspects described below in connection with the figures and the specific embodiments are only exemplary and should not be construed as imposing any limitation on the scope of the present invention.
FIG. 1 shows a block diagram of an L KJ simulation system As shown in FIG. 1, a L KJ system may include a host plug-in, a communications plug-in, a security output plug-in, a security input plug-in, an ampere-frequency input plug-in, an analog input and output plug-in, a cab signal host plug-in, a BTM host plug-in, and the like physical plug-ins.
The various physical cards within the dashed box of FIG. 1, such as the safety output card, the safety input card, the safety frequency input card, the analog input/output card, the cab signal host card, the BTM host card, etc., are simulated by the L KJ bus simulation card according to an aspect of the present invention, since a plurality of physical cards are simulated by one L KJ bus simulation card during testing, the cost is saved, and the testing device developed by using the L KJ bus simulation card has the characteristics of convenient operation, small size, light weight, portability, etc., fully satisfies the ground simulation testing requirements of users, and has high economic value.
FIG. 2 illustrates a functional block diagram of an L KJ bus emulation plug-in according to an aspect of the present invention, the L KJ bus emulation plug-in can emulate plug-in functionality required for the proper operation of a new generation L KJ system, the dashed box in FIG. 2 is the L KJ bus emulation plug-in according to an aspect of the present invention.
The type and the number of the input and output plug-ins are determined by L KJ configuration software L KJ configuration software downloads the information to the host plug-ins, and the host plug-ins are analyzed and then sent to the L KJ bus simulation plug-ins as configuration information to realize the expansion of the simulation plug-ins.
The host plug-in generates a device list of plug-ins to be simulated based on the configuration information to configure corresponding simulation plug-in units, such as simulation plug-in units respectively used for simulating a simulation frequency input (SFI plug-in), a safety input (SDI plug-in), a safety output (SDO plug-in), and an analog input/output (GAIO plug-in), as shown in fig. 2.
The L KJ bus simulation plug-in can obtain the peripheral simulation data through any interface of Ethernet or RS422, wherein the Ethernet is communicated with the PC to obtain the simulation working condition data from the PC, the RS422 serial port obtains the peripheral keyboard simulation data, the L KJ bus simulation plug-in obtains the working condition signals of simulation speed, pipe pressure, diesel speed and the like according to the corresponding communication interface protocol analysis, the L KJ bus simulation plug-in independently receives the input of the PC simulation peripheral and the peripheral keyboard simulation peripheral, and when the two modes exist simultaneously, the priority of the peripheral keyboard simulation peripheral is higher.
According to the communication protocol format of each simulation plug-in unit and the host plug-in, the L KJ bus simulation plug-in respectively simulates the acquired working condition data of speed, pipe pressure and the like, and sends the application data of simulation frequency input (SFI plug-in), safety input (SDI plug-in) and analog input and output (GAIO plug-in) to the host plug-in through a FlexRay bus, wherein the SFI plug-in correspondingly simulates various pipe pressure data, the GAIO plug-in correspondingly simulates various pipe pressure data, the SDI plug-in correspondingly simulates isolation and digital input feedback data, and the SDO plug-in correspondingly simulates output brake data.
The method comprises the steps that L KJ bus simulation plug-in receives a host plug-in query command through a FlexRay bus, the host plug-in query command is sent through FlexRay bus broadcasting, the query command comprises the types of the simulation plug-ins, and L KJ bus simulation plug-ins send simulation data of the corresponding plug-ins to the host plug-ins through the FlexRay bus according to the types of the simulation plug-ins.
As an example, the host command data received by each simulation plug-in unit is communicated according to the equipment number, the host plug-in carries out data communication with each plug-in according to the equipment number plus the function code, and a polling response mechanism mode is adopted. The main commands include plug-in commands such as GDIO, SDI, SDO, SFI and the like.
As shown in fig. 2, after receiving the condition data via the ethernet or RS422 bus, the received condition data needs to be parsed based on the corresponding communication protocol. Similarly, when communicating with the host plug-in, the simulated condition data sent to the host plug-in also needs to be packaged based on the FlexRay protocol, and the query command received from the host plug-in needs to be analyzed based on the FlexRay protocol.
In one example, the FlexRay bus can adopt a static segment time triggering mode, each simulation plug-in is distributed with an independent FlexRay sending time slice according to a simulation equipment list sent by the host plug-in, and the simulation plug-ins are independent in communication with each other, so that uncertain communication delay is avoided, and the software extension function of the simulation plug-ins is realized.
The time slices may be allocated by the L KJ host system, each time slice for a fixed period, e.g. (80ms), each emulation plug-in unit responds and processes according to the host system's period, with a run period of no more than 3 fixed periods at maximum.
As shown in fig. 2, the L KJ bus emulation plug-in may also communicate with the communication plug-in via the CAN bus, sending analog cab signals to the communication plug-in, which forwards them transparently to the host plug-in via the FlexRay bus.
FIG. 3 illustrates a data processing diagram of an L KJ bus emulation plug-in according to an aspect of the present invention, as shown in FIG. 3, a host plug-in sends host command data at FlexRay receive time slices over a FlexRay bus the host command data is provided to a data emulation unit which, by parsing the host command data, selects to write emulation data corresponding to the plug-in type (and function code) indicated in the host command data into an emulation data sending area for sending to the host plug-in at the corresponding send time slice.
FIG. 4 illustrates a block diagram of an L KJ simulation system 100 in accordance with an aspect of the present invention, as shown in FIG. 4, the L KJ simulation system 100 may include a L KJ bus simulation plug-in 110, a host plug-in 120, and a communications plug-in 130 to complete a real new generation L KJ system run and schedule simulation.
L KJ bus emulation package 110 can emulate the package functions required by the normal operation of a new generation L KJ system, including the functions of a safety output package (SDO), a safety input package (SDI), a safety frequency input package (SFI), an analog input and output package (GAIO), a locomotive signal host, etc. according to the emulation requirements, the L KJ bus emulation device of the present invention can configure the types and the number of the input and output packages within the bus capability range, without adding any hardware resources, and can realize the full software emulation.
L KJ bus emulation plug-in 110 may include a processor 111 for example, the processor 111 may be, for example, an MPC5125 chip, in which a computer program may be stored that is configured by execution to perform various functions.
The processor 111 may be coupled to a host plug-in 120, in the example of fig. 4 the processor 111 may be connected to the host plug-in via a FlexRay bus through a FlexRay communication module 112 initially the host plug-in 120 may send configuration information to the processor 111 the configuration information may be configured by L KJ configuration software describing the type of plug-in to be emulated, the number of plug-in devices, even the function code corresponding to each plug-in type, etc.
After receiving the configuration information, the processor 111 may generate a list of plug-ins to be emulated based on the configuration information. As an example, a plug-in device number, a function code, and the like corresponding to the plug-in type may be included in the list of plug-ins to be emulated. In other words, through the configuration information sent by host plug-in 120, processor 111 knows the information of the plug-in to be emulated, and can therefore subsequently recognize host query commands from host plug-in 120 and correctly respond to emulation data.
Subsequently, the host plug-in 120 may send a host query command to the processor 111. The processor 111 may obtain the plug-in type queried by the current host plug-in 120 from the host query command based on the list of plug-ins to be emulated.
For example, the host plug-in 120 may read the plug-in device number of the currently queried plug-in the host query command, and then find the currently queried plug-in type based on the plug-in device number of the currently queried plug-in and the list of plug-ins to be emulated. Knowing the plug-in type, processor 111 may return to host plug-in 120 simulated operating condition data corresponding to the currently queried plug-in type.
In some examples, the host query command may also include a function code, and the processor 111 may return simulated operating condition data corresponding to the currently queried plug-in type and function code to the host plug-in 120.
In the example shown in FIG. 4, the simulated condition data is from an upper computer, such as may be obtained from the upper computer via the front-end communication module 114.
In this case, the front-end communication module 114 may be an Ethernet communication module and the processor 111 may receive the operating condition data from the PC via the front-end communication module 114 based on an Ethernet communication protocol.
As another example, the host computer may be a peripheral keyboard to input L KJ operating condition data, in which case the front-end communication module 114 may be a serial communication module, and the processor 111 may receive operating condition data from the peripheral keyboard via the front-end communication module 114 based on a serial communication protocol.
For example, the serial communication protocol may be an RS422 or RS485 communication protocol, and accordingly, the processor 111 first needs to parse the condition data based on the RS422 or RS485 communication protocol to obtain parsed simulated condition data.
In the example shown in fig. 4, the processor 111 communicates with the host card through the FlexRay communication module 112 via a FlexRay bus. Therefore, after receiving the host query command from the host plug-in 120, the host query command needs to be parsed based on the FlexRay communication protocol, and then the currently queried plug-in type is obtained from the parsed host query command based on the list of plug-ins to be emulated.
After the plug-in type is obtained, the simulated condition data corresponding to the plug-in type can be selected and sent to the host plug-in 120. Accordingly, the processor 111 may first encapsulate the simulated operating condition data according to the FlexRay communication protocol, and then transmit the data to the host card through the FlexRay bus by the FlexRay communication module 112.
In particular, independent FlexRay send time slices may be assigned to each plug-in being emulated, according to the list of devices to be emulated. Accordingly, the processor 111 may provide the encapsulated simulated operating condition data corresponding to the currently queried plug-in type to the FlexRay communication module 112 at the corresponding time slice, which is transmitted to the host plug-in 120 at the corresponding transmission time slice. In this way, the simulation plug-in units are independent in communication, uncertain delay of communication is avoided, and the software extension function of the simulation plug-in is realized.
In addition, processor 111 may also provide simulated operating condition data corresponding to the currently queried plug-in type, such as cab signals, BTM host signals, to CAN communication module 113, which may provide the simulated operating condition data to communication plug-in 130 via a CAN bus. The communication plug-in 130 may forward the simulated operating condition data to the host plug-in 120 via a Flexray bus.
FIG. 5 is a flow chart illustrating an L KJ simulation method 200 in accordance with an aspect of the present invention, as shown in FIG. 5, the L KJ simulation method 200 may include the steps of:
step 201: a list of plug-ins to be emulated is generated in response to configuration information from the host plug-in.
In one example, the list of plug-ins to be emulated may list the type of plug-in to be emulated and the corresponding plug-in device number.
Step 202: and acquiring the currently inquired plug-in type from a host inquiry command from the host plug-in based on the list of the plug-ins to be simulated.
Specifically, the plug-in device number of the currently queried plug-in the host query command may be read first, and then the currently queried plug-in type may be searched from the list of plug-ins to be emulated based on the plug-in device number of the currently queried plug-in.
In one example, the host query command may be received via a FlexRay bus, for which it needs to be parsed based on a FlexRay communication protocol. And then acquiring the currently inquired plug-in type from the analyzed host inquiry command based on the list of the plug-ins to be simulated.
Step 203: and returning the simulation working condition data corresponding to the currently inquired plug-in type to the host plug-in.
In one example, simulated operating condition data corresponding to the currently queried plug-in type may be encapsulated based on a FlexRay communication protocol and then sent to the host plug-in via a FlexRay bus.
Preferably, the list of the plug-ins to be simulated includes the types of the plug-ins to be simulated and the corresponding sending time slices, and the sending time slices corresponding to different plug-in types do not overlap with each other. In this example, the packaged simulated operating condition data corresponding to the currently queried plug-in type may be sent to the host plug-in via the FlexRay bus at a timeslice corresponding to the currently queried plug-in type.
In another example, the simulated operating condition data corresponding to the currently queried plug-in type may be sent to the communication plug-in via the CAN bus, and then forwarded by the communication plug-in to the host plug-in via the FlexRay bus.
The operating condition data may be obtained in advance from an external source. In one example, the simulated condition data may be obtained from the host computer based on the ethernet communication protocol, and then the simulated condition data may be parsed based on the ethernet communication protocol to obtain parsed simulated condition data.
In another example, simulated condition data may be obtained from the peripheral keyboard based on the serial communication protocol and then parsed based on the serial communication protocol to obtain parsed simulated condition data. For example, the serial communication protocol may be an RS485 or RS422 communication protocol.
While, for purposes of simplicity of explanation, the methodologies are shown and described as a series of acts, it is to be understood and appreciated that the methodologies are not limited by the order of acts, as some acts may, in accordance with one or more embodiments, occur in different orders and/or concurrently with other acts from that shown and described herein or not shown and described herein, as would be understood by one skilled in the art.
According to the L KJ simulation system, the types and the number of input and output plug-ins can be configured within the range of bus capacity, no hardware resource needs to be added, full software simulation can be realized, and the FlexRay bus adopts a bus type topological structure, has a simple structure and is easy to expand, so that full software simulation of peripheral function plug-ins of a new generation L KJ train operation monitoring system is realized, the current situation that a whole set of complete equipment is required to carry out ground debugging line data, control software and temporary speed limit is changed, and the equipment purchase cost of a user is reduced.
In addition, the L KJ bus simulation device technology is developed based on a FlexRay bus, adopts a FlexRay bus static period time trigger communication mechanism, and meets the requirements of communication real-time performance and two-way redundancy of the bus by allocating system plug-in receiving/sending time slices in advance, thereby ensuring the reliability of communication.
Those of skill in the art would understand that information, signals, and data may be represented using any of a variety of different technologies and techniques. For example, data, instructions, commands, information, signals, bits (bits), symbols, and chips that may be referenced throughout the above description may be represented by voltages, currents, electromagnetic waves, magnetic fields or particles, optical fields or particles, or any combination thereof.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The various illustrative logical modules, and circuits described in connection with the embodiments disclosed herein may be implemented or performed with a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
If implemented in software as a computer program product, the functions described may be stored on or transmitted by a computer readable medium, including both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (24)

1. An L KJ simulation system, comprising:
a host plug-in; and
l KJ bus emulation package, comprising:
a processor coupled to the host plugin, the processor configured to:
generating a to-be-simulated plug-in list in response to configuration information from the host plug-in, wherein the to-be-simulated plug-in list lists the types of the to-be-simulated plug-ins and the corresponding sending time slices, and the sending time slices corresponding to different plug-in types are not overlapped with each other;
acquiring a currently inquired plug-in type from a host inquiry command from the host plug-in based on the list of the plug-ins to be simulated; and
and returning the simulation working condition data corresponding to the currently inquired plug-in type to the host plug-in the time slice corresponding to the currently inquired plug-in type.
2. The L KJ simulation system of claim 1, wherein the to-be-simulated plug-in list lists types of plug-ins to be simulated and corresponding plug-in device numbers, the processor further configured to:
reading the plug-in equipment number of the current inquired plug-in the host inquiry command; and
and searching the type of the plug-in inquired currently based on the plug-in equipment number of the plug-in inquired currently and the list of the plug-ins to be simulated.
3. The L KJ simulation system of claim 1, wherein the L KJ bus simulation plug-in further comprises:
a FlexRay communication module connected to the host card via a FlexRay bus, the FlexRay communication module receiving the host inquiry command via the FlexRay bus,
the processor is coupled to the FlexRay communication module and is further configured to:
analyzing the host query command based on a FlexRay communication protocol; and
and acquiring the currently queried plug-in type from the analyzed host query command based on the list of the plug-ins to be simulated.
4. The L KJ simulation system of claim 3, wherein the processor is further configured to:
packaging the simulation working condition data corresponding to the currently inquired plug-in type based on a FlexRay communication protocol; and
providing the encapsulated simulated operating condition data corresponding to the currently queried plug-in type to a FlexRay communication module,
and the FlexRay communication module sends the packaged simulation working condition data to the host plug-in via a FlexRay bus.
5. The L KJ simulation system of claim 4, wherein the list of plug-ins to be simulated lists types of plug-ins to be simulated and corresponding time slices for delivery, the time slices for delivery corresponding to different plug-in types not overlapping with each other, wherein the processor is further configured to:
providing the packaged simulation working condition data corresponding to the currently inquired plug-in type to a FlexRay communication module in a time slice corresponding to the currently inquired plug-in type,
and the FlexRay communication module sends the packaged simulation working condition data to the host plug-in unit through a FlexRay bus in a time slice corresponding to the type of the current plug-in unit to be inquired.
6. The L KJ simulation system of claim 5, wherein the types of plug-ins to be simulated in the list of plug-ins to be simulated include secure output plug-ins, secure input plug-ins, secure frequency input plug-ins, and analog quantity input and output plug-ins.
7. The L KJ simulation system of claim 1, further comprising:
a communication plug-in coupled to the host plug-in via a FlexRay bus;
the L KJ bus emulation plug-in also includes:
a CAN communication module connected with the communication plug-in unit via a CAN bus,
the processor is coupled to the CAN communication module and is further configured to:
providing the simulation working condition data corresponding to the currently inquired plug-in type to the CAN communication module,
the CAN communication module provides the simulated working condition data to the communication plug-in unit through a CAN bus, and the communication plug-in unit forwards the simulated working condition data to the host plug-in unit through a FlexRay bus.
8. The L KJ simulation system of claim 7, wherein the types of plug-ins to be simulated include a cab signal host and a BTM host.
9. The L KJ simulation system of claim 1, wherein the L KJ bus simulation plug-in further comprises:
and the front-end communication module is used for acquiring the simulated working condition data for simulating the working condition data of the plug-in to be simulated from an external source.
10. The L KJ simulation system of claim 9, wherein the front-end communication module comprises:
the Ethernet communication module is used for acquiring the simulated working condition data from an upper computer based on an Ethernet communication protocol,
the processor is further configured to:
analyzing the simulated condition data based on an Ethernet communication protocol to obtain the analyzed simulated condition data.
11. The L KJ simulation system of claim 9, wherein the front-end communication module comprises:
a serial communication module for obtaining the simulated working condition data from the peripheral keyboard based on a serial communication protocol,
the processor is further configured to:
and analyzing the simulated working condition data based on a serial port communication protocol to obtain the analyzed simulated working condition data.
12. The L KJ simulation system of claim 11, wherein the serial port communication module is an RS485 communication module or an RS422 communication module.
13. An L KJ simulation method, comprising:
generating a list of plug-ins to be simulated in response to configuration information from a host plug-in, wherein the list of plug-ins to be simulated includes types of plug-ins to be simulated and corresponding sending time slices, and the sending time slices corresponding to different plug-ins are not overlapped with each other;
acquiring a currently inquired plug-in type from a host inquiry command from the host plug-in based on the list of the plug-ins to be simulated; and
and returning the simulation working condition data corresponding to the currently inquired plug-in type to the host plug-in the time slice corresponding to the currently inquired plug-in type.
14. The L KJ simulation method of claim 13, wherein the to-be-simulated plug-in list lists types of plug-ins to be simulated and corresponding plug-in device numbers, and the obtaining the currently queried plug-in type comprises:
reading the plug-in equipment number of the current inquired plug-in the host inquiry command; and
and searching the type of the plug-in inquired currently based on the plug-in equipment number of the plug-in inquired currently and the list of the plug-ins to be simulated.
15. The L KJ simulation method of claim 13, further comprising:
receiving the host query command via a FlexRay bus;
parsing the host query command based on the FlexRay communication protocol,
the obtaining of the currently queried plug-in type includes:
and acquiring the currently queried plug-in type from the analyzed host query command based on the list of the plug-ins to be simulated.
16. The L KJ simulation method of claim 15, further comprising:
packaging the simulation working condition data corresponding to the currently inquired plug-in type based on a FlexRay communication protocol;
the returning of the simulated working condition data corresponding to the currently queried plug-in type to the host plug-in comprises:
and sending the packaged simulation working condition data corresponding to the currently inquired plug-in type to the host plug-in via a FlexRay bus.
17. The L KJ simulation method of claim 16, wherein the list of plug-ins to be simulated lists types of plug-ins to be simulated and corresponding time slices for delivery, the time slices for delivery corresponding to different plug-in types do not overlap with each other, and the sending the packaged simulation condition data corresponding to the currently queried plug-in type to the host plug-in via a FlexRay bus comprises:
and sending the packaged simulation working condition data corresponding to the currently inquired plug-in type to the host plug-in via a FlexRay bus at a time slice corresponding to the currently inquired plug-in type.
18. The L KJ simulation method of claim 17, wherein the types of plug-ins to be simulated in the list of plug-ins to be simulated include secure output plug-ins, secure input plug-ins, secure frequency input plug-ins, and analog quantity input and output plug-ins.
19. The L KJ simulation method of claim 13, wherein returning simulated operating condition data corresponding to a currently queried plug-in type to the host plug-in comprises:
and sending the simulated working condition data corresponding to the currently inquired plug-in type to a communication plug-in via a CAN bus, so that the communication plug-in forwards the simulated working condition data to the host plug-in via a FlexRay bus.
20. The L KJ simulation method of claim 19, wherein the types of plug-ins to be simulated include a cab signal host and a BTM host.
21. The L KJ simulation method of claim 13, further comprising:
and acquiring the simulated working condition data for simulating the working condition data of the plug-in to be simulated from an external source.
22. The L KJ simulation method of claim 21, further comprising:
acquiring the simulated working condition data from an upper computer based on an Ethernet communication protocol; and
analyzing the simulated condition data based on an Ethernet communication protocol to obtain the analyzed simulated condition data.
23. The L KJ simulation method of claim 21, further comprising:
acquiring the simulated working condition data from a peripheral keyboard based on a serial communication protocol; and
and analyzing the simulated working condition data based on a serial port communication protocol to obtain the analyzed simulated working condition data.
24. The L KJ simulation method of claim 23, wherein the serial port communication protocol is RS485 or RS422 communication protocol.
CN201710433631.6A 2017-06-09 2017-06-09 L KJ simulation system and method Active CN107065598B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710433631.6A CN107065598B (en) 2017-06-09 2017-06-09 L KJ simulation system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710433631.6A CN107065598B (en) 2017-06-09 2017-06-09 L KJ simulation system and method

Publications (2)

Publication Number Publication Date
CN107065598A CN107065598A (en) 2017-08-18
CN107065598B true CN107065598B (en) 2020-07-10

Family

ID=59593887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710433631.6A Active CN107065598B (en) 2017-06-09 2017-06-09 L KJ simulation system and method

Country Status (1)

Country Link
CN (1) CN107065598B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442528B (en) * 2019-08-21 2023-04-14 湖南中车时代通信信号有限公司 Train control software cross-platform operation system and method based on safety computer simulation software

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521091A (en) * 2011-12-05 2012-06-27 株洲南车时代电气股份有限公司 Test device for train control safety computer
CN103257925A (en) * 2013-04-28 2013-08-21 株洲南车时代电气股份有限公司 Automatic testing device, system and method for train operation monitoring record software
CN105398472A (en) * 2015-11-06 2016-03-16 株洲南车时代电气股份有限公司 Platform host plug-in
CN105424963A (en) * 2015-11-10 2016-03-23 株洲南车时代电气股份有限公司 Signal conversion device for double-pin speedometer

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080312782A1 (en) * 2007-06-15 2008-12-18 Gene Berdichevsky Electric vehicle communication interface
CN101746396B (en) * 2009-10-30 2011-02-02 华南理工大学 Multipath temporary speed limit post answering device and method
CN102967802B (en) * 2012-12-13 2015-07-22 山东理工大学 Method for positioning power distribution network fault by using travelling wave

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521091A (en) * 2011-12-05 2012-06-27 株洲南车时代电气股份有限公司 Test device for train control safety computer
CN103257925A (en) * 2013-04-28 2013-08-21 株洲南车时代电气股份有限公司 Automatic testing device, system and method for train operation monitoring record software
CN105398472A (en) * 2015-11-06 2016-03-16 株洲南车时代电气股份有限公司 Platform host plug-in
CN105424963A (en) * 2015-11-10 2016-03-23 株洲南车时代电气股份有限公司 Signal conversion device for double-pin speedometer

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LKJ2000监控装置的插件功能研究;蒋海莲;《时代农机》;20151130;第42卷(第11期);第40-42页 *
列车运行监控记录装置自动测试系统;申竹林,等;《机车电传动》;20060910(第5期);第50-53页 *

Also Published As

Publication number Publication date
CN107065598A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
CN103178996B (en) Distributed packet-switching chip model verification system and method
CN102664902B (en) Hardware implementing method for kernels of POWERLINK communication protocol master and slave stations
CN103873324A (en) Universal bus testing system
CN103530216A (en) PCIE verification method based on UVM
CN111294235B (en) Data processing method, device, gateway and readable storage medium
CN112817617A (en) Software upgrading method, device and system
CN103530211A (en) PCIE loop back self-test method based on UVM platform
CN101741648A (en) Distributed remote test system, method and server
CN114707236A (en) Model-based virtual-real combined simulation test method
CN104219003B (en) Communicator, test system and method for testing thereof
CN104657555A (en) TOE (TCP/IP Offload Engine) verification method based on UVM (Universal Verification Methodology) and TOE verification platform based on UVM
CN106162528A (en) LoRa signal and Bluetooth signal modular converter, conversion method and sender unit
CN106899327B (en) Data transmission method and device
CN106487847A (en) A kind of information processing method and transfer server
CN109426158A (en) For generating the method and test device of the enforceable model in test device
CN109861998A (en) A kind of plug-in type dynamic analysis system and method based on Big Dipper short message agreement
CN107065598B (en) L KJ simulation system and method
CN115190030A (en) Hardware device and UVM verification platform for realizing CAN FD
CN106708764A (en) Universal IO processing system for airborne avionic system
CN104243246B (en) A kind of FlexRay bus tests and optimization method and device based on ZigBee technology
CN106776372B (en) Emulation data access method and device based on FPGA
CN104734900A (en) Sending control method for communication protocol testing
CN201917907U (en) Equipment applied to simulated train MVB (Multifunction Vehicle Bus) network environment
CN109286689B (en) Information sending method and device and vehicle-mounted man-vehicle interaction terminal
CN103414622A (en) Simulation method based on CAN buses

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
GR01 Patent grant
GR01 Patent grant