Simulation TCMS system based on MaView platform and vehicle-mounted equipment testing method

Through the simulation TCMS system based on the MaView platform, the interface module, execution module and protocol configuration module are used to solve the problem of low interactive testing efficiency between on-board VOBC and simulated TCMS, and efficient data processing and testing processes are realized, reducing technical requirements and work quantity.

CN119292097APending Publication Date: 2025-01-10BEIJING URBAN CONSTR INTELLIGENT CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411177693.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

The interactive testing efficiency of existing vehicle-mounted VOBC and simulated TCMS is low, the technical requirements of development and testers are high, the interface data volume is large, the modification and debugging are complex, and the intermediate logic value error search is complex.

Method used

Using a simulated TCMS system based on the MaView platform, including interface modules, execution modules and protocol configuration modules, it can perform logical calculations and send them to the on-board controller system through data table configuration and assignment, and supports traction, braking and on-board signal logic modules. Synchronous calculations and use TRDP protocol for communication.

Benefits of technology

It reduces the workload of development and testing, reduces code modification, improves testing efficiency, facilitates data viewing and fault injection, reduces technical requirements, and realizes efficient interactive testing of on-board VOBC and simulated TCMS.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292097A_ABST
    Figure CN119292097A_ABST
Patent Text Reader

Abstract

The invention relates to a simulation TCMS system and a vehicle-mounted equipment testing method based on a MaView platform, and the system comprises an interface module which is used for configuring an interface data table file, and carrying out the assignment of a variable in the table file through the received data; the execution module is used for obtaining the assigned variable value for logic calculation and sending a calculation result to the vehicle-mounted controller system through the interface module; and the protocol configuration module is used for configuring a communication protocol with the vehicle-mounted controller system. Through application of the method and the device, the problem that the efficiency of the interaction test of the vehicle-mounted VOBC and the simulation TCMS is relatively low in the prior art is solved, and the effect of improving the efficiency of the interaction test of the vehicle-mounted VOBC and the simulation TCMS is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of train control, and in particular to a simulation TCMS system based on a MaView platform and a vehicle-mounted equipment testing method. Background Art

[0002] The vehicle on-board controller (VOBC) system is composed of the Automatic Train Protect (ATP) and the Automatic Train Operating (ATO). It is the brain system of the vehicle, a high-security system that ensures the safe operation of the train, and the core equipment of the Communication Based Train Control (CBTC) system. It carries the safe operation of the vehicle, and the interface with the Train Control and Management System (TCMS) is quite complex, with a very large amount of data and many interfaces. Therefore, indoor testing of the vehicle-mounted VOBC and TCMS is a great challenge. The current indoor test uses the interaction between the vehicle-mounted VOBC and the simulated TCMS for testing. The current simulated TCMS is a program developed in C++ language. Modifying an interface file requires modifying the code. Both package assembly and unpacking require modification, which is also prone to errors, bringing great inconvenience to development and testing.

[0003] The current development method of simulation TCMS has the following defects:

[0004] 1) Developers have high technical requirements and need to understand VC++ and VS software technology. Simulation maintenance personnel also have high technical requirements.

[0005] 2) The interface data volume is large. Once there is a change in the interface, it is necessary to modify the reading of the interface and the packaging of the interface in the code, and insert the byte into the designed human-machine interface. The code modification volume is large and complicated.

[0006] 3) During interface debugging, the workload is heavy and some intermediate variables are difficult to view.

[0007] 4) During the test, an intermediate logic value error occurred, and it was complicated to find the cause, which increased the workload for the test.

[0008] Currently, no effective solution has been proposed for the problem of low efficiency of interactive testing between the vehicle-mounted VOBC and the simulated TCMS in the related art. Summary of the invention

[0009] The purpose of this application is to address the deficiencies in the prior art and to provide a simulated TCMS system and vehicle-mounted equipment testing method, computer equipment and computer-readable storage medium based on the MaView platform, so as to at least solve the problem of low efficiency of interactive testing between vehicle-mounted VOBC and simulated TCMS in the related art.

[0010] To achieve the above purpose, the technical solution adopted by this application is:

[0011] In a first aspect, the embodiment of the present application provides a simulated TCMS system based on the MaView platform, including:

[0012] The interface module is used to configure the interface data table file and assign the received data to the variables in the table file;

[0013] An execution module, used for obtaining the assigned variable values ​​for logic calculation, and sending the calculation results to the vehicle controller system through the interface module;

[0014] A protocol configuration module is used to configure the communication protocol with the vehicle-mounted controller system.

[0015] In some embodiments, the execution module includes:

[0016] A traction logic module, used for performing logic calculations on data received from the traction system and / or performing logic calculations on data sent to the traction system, and assigning calculation results to variables in the table file;

[0017] a brake logic module, used for performing logic calculations on data received from the brake system and / or performing logic calculations on data sent to the brake system, and assigning calculation results to variables in the table file;

[0018] The vehicle signal logic module is used to perform logic calculations on the data received from the vehicle controller system and / or perform logic calculations on the data sent to the vehicle controller system, and assign the calculation results to the variables in the table file.

[0019] In some of the embodiments, the traction logic module, the braking logic module and the vehicle signal logic module synchronize the calculation results of the logic calculations with each other.

[0020] In some of the embodiments, the protocol configuration module configures the communication protocol with the vehicle controller system to be the TRDP protocol.

[0021] In a second aspect, an embodiment of the present application provides a vehicle-mounted device testing method based on the system described in the first aspect, including:

[0022] Loading an interface data table file, wherein the table file includes at least one variable;

[0023] Initialize the communication protocol with the on-board controller system;

[0024] Detect whether the variables in the table file are assigned values;

[0025] If it is detected that the variables in the table file are assigned values, the assigned variable values ​​are obtained for logical calculation, and the calculation results are assigned to the corresponding variables in the table file, wherein the vehicle controller system reads the values ​​of the variables in the table file according to the communication protocol.

[0026] In some embodiments, if it is detected that a variable in the table file is assigned a value, obtaining the assigned variable value for logical calculation, and assigning the calculation result to the corresponding variable in the table file includes:

[0027] If it is detected that the input variable received from the traction system in the table file is assigned a value, then the assigned traction system input variable value is obtained for logical calculation, and the calculation result is assigned to the corresponding variable in the table file; and / or

[0028] Perform logical calculations on the data sent to the traction system, and assign the calculation results to the output variables sent to the traction system in the table file.

[0029] In some embodiments, if it is detected that a variable in the table file is assigned a value, obtaining the assigned variable value for logical calculation, and assigning the calculation result to the corresponding variable in the table file includes:

[0030] If it is detected that the input variable received from the brake system in the table file is assigned, obtaining the assigned brake system input variable value for logical calculation, and assigning the calculation result to the corresponding variable in the table file; and / or

[0031] Perform logical calculations on the data sent to the brake system, and assign the calculation results to the output variables sent to the brake system in the table file.

[0032] In some embodiments, if it is detected that a variable in the table file is assigned a value, obtaining the assigned variable value for logical calculation, and assigning the calculation result to the corresponding variable in the table file includes:

[0033] If it is detected that the input variable received from the vehicle controller system in the table file is assigned a value, then the assigned value of the vehicle controller system input variable is obtained for logical calculation, and the calculation result is assigned to the corresponding variable in the table file; and / or

[0034] Perform logical calculations on the data sent to the vehicle-mounted controller system, and assign the calculation results to the output variables sent to the vehicle-mounted controller system in the table file.

[0035] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the second aspect above when executing the computer program.

[0036] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the second aspect above.

[0037] The present application adopts the above technical solution. Compared with the prior art, the embodiment of the present application provides a simulated TCMS system based on the MaView platform, which includes: an interface module for configuring an interface data table file and assigning the received data to the variables in the table file; an execution module for obtaining the variable values ​​after assignment for logical calculation, and sending the calculation results to the vehicle controller system through the interface module; a protocol configuration module for configuring the communication protocol with the vehicle controller system. The simulated TCMS system developed by the present application through the MaView platform is visually programmed. As long as you know the logical processing, everyone can modify the program without the need for professional software development engineers; and once the interface changes, you only need to re-import the interface file, and the system will automatically unpack and package it, without adding code implementation, which greatly reduces the workload for maintenance personnel, and can conveniently inject faults into each data during the test process, and the tester can clearly and conveniently view the logical processing process of the data, thereby solving the problem of low efficiency of the interactive test between the vehicle-mounted VOBC and the simulated TCMS in the related technology, and achieving the effect of improving the efficiency of the interactive test between the vehicle-mounted VOBC and the simulated TCMS.

[0038] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0040] Figure 1 is a structural block diagram of a mobile terminal according to an embodiment of the present application;

[0041] Figure 2 It is a structural diagram of a simulated TCMS system based on the MaView platform according to an embodiment of the present application;

[0042] Figure 3 is a schematic diagram of a software module processing flow according to an embodiment of the present application;

[0043] Figure 4 is a flow chart of a vehicle-mounted device testing method of a simulated TCMS system based on a MaView platform according to an embodiment of the present application;

[0044] Figure 5 Schematic diagram of the hardware structure of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0046] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.

[0047] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0048] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0049] This embodiment provides a mobile terminal. The mobile terminal can be in the form of a simulated TCMS system based on the MaView platform of the embodiment of the present application. Figure 1 is a structural block diagram of a mobile terminal according to an embodiment of the present application. Figure 1 As shown, the mobile terminal includes: a radio frequency (RF) circuit 110, a memory 120, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a wireless fidelity (WiFi) module 170, a processor 180, and a power supply 190. Those skilled in the art will understand that Figure 1 The structure of the mobile terminal shown in the figure does not constitute a limitation on the mobile terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0050] Combine the following Figure 1 The following is a detailed introduction to the various components of the mobile terminal:

[0051] The RF circuit 110 can be used for receiving and sending signals during the process of sending and receiving information or making calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 180 for processing; in addition, the designed uplink data is sent to the base station. Usually, the RF circuit includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, referred to as LNA), a duplexer, etc. In addition, the RF circuit 110 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.

[0052] The memory 120 can be used to store software programs and modules. The processor 180 executes various functional applications and data processing of the mobile terminal by running the software programs and modules stored in the memory 120. The memory 120 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile terminal (such as audio data, a phone book, etc.), etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0053] The input unit 130 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile terminal. Specifically, the input unit 130 may include a touch panel 131 and other input devices 132. The touch panel 131, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 131 or near the touch panel 131 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 131 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch panel 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 131, the input unit 130 may also include other input devices 132. Specifically, other input devices 132 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.

[0054] The display unit 140 can be used to display information input by the user or information provided to the user and various menus of the mobile terminal. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 131 may cover the display panel 141. When the touch panel 131 detects a touch operation on or near it, it is transmitted to the processor 180 to determine the type of touch event. Subsequently, the processor 180 provides a corresponding visual output on the display panel 141 according to the type of touch event. Although in Figure 1 In the embodiment, the touch panel 131 and the display panel 141 are used as two independent components to implement the input and output functions of the mobile terminal, but in some embodiments, the touch panel 131 and the display panel 141 can be integrated to implement the input and output functions of the mobile terminal.

[0055] The mobile terminal may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 141 and / or the backlight when the mobile terminal is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile terminal, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0056] The speaker 161 and microphone 162 in the audio circuit 160 can provide an audio interface between the user and the mobile terminal. The audio circuit 160 can transmit the received audio data to the speaker 161 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then the audio data is output to the processor 180 for processing, and then sent to another mobile terminal through the RF circuit 110, or the audio data is output to the memory 120 for further processing.

[0057] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through WiFi module 170. It provides users with wireless broadband Internet access. Figure 1 A WiFi module 170 is shown, but it is understandable that it is not an essential component of the mobile terminal and can be omitted as needed without changing the essence of the invention, or replaced with other short-range wireless transmission modules, such as a Zigbee module or a WAPI module.

[0058] The processor 180 is the control center of the mobile terminal. The processor 180 can be an execution module in the simulated TCMS system based on the MaView platform in the embodiment of the present application. The processor 180 uses various interfaces and lines to connect the various parts of the entire mobile terminal, and executes various functions of the mobile terminal and processes data by running or executing software programs and / or modules stored in the memory 120, and calling the data stored in the memory 120, so as to monitor the mobile terminal as a whole. Optionally, the processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 180.

[0059] The mobile terminal also includes a power supply 190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 180 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.

[0060] Although not shown, the mobile terminal may also include a camera, a Bluetooth module, etc., which will not be described in detail here.

[0061] In this embodiment, the processor 180 is configured to:

[0062] Loading an interface data table file, wherein the table file includes at least one variable;

[0063] Initialize the communication protocol with the on-board controller system;

[0064] Detect whether the variables in the table file are assigned values;

[0065] If it is detected that the variables in the table file are assigned values, the assigned variable values ​​are obtained for logical calculation, and the calculation results are assigned to the corresponding variables in the table file, wherein the vehicle controller system reads the values ​​of the variables in the table file according to the communication protocol.

[0066] In some embodiments, the processor 180 is further configured to:

[0067] If it is detected that the input variable received from the traction system in the table file is assigned a value, then the assigned traction system input variable value is obtained for logical calculation, and the calculation result is assigned to the corresponding variable in the table file; and / or

[0068] Perform logical calculations on the data sent to the traction system, and assign the calculation results to the output variables sent to the traction system in the table file.

[0069] In some embodiments, the processor 180 is further configured to:

[0070] If it is detected that the input variable received from the brake system in the table file is assigned, obtaining the assigned brake system input variable value for logical calculation, and assigning the calculation result to the corresponding variable in the table file; and / or

[0071] Perform logical calculations on the data sent to the brake system, and assign the calculation results to the output variables sent to the brake system in the table file.

[0072] In some embodiments, the processor 180 is further configured to:

[0073] If it is detected that the input variable received from the vehicle controller system in the table file is assigned a value, then the assigned value of the vehicle controller system input variable is obtained for logical calculation, and the calculation result is assigned to the corresponding variable in the table file; and / or

[0074] Perform logical calculations on the data sent to the vehicle-mounted controller system, and assign the calculation results to the output variables sent to the vehicle-mounted controller system in the table file.

[0075] This embodiment provides a simulated TCMS system based on the MaView platform. Figure 2 is a schematic diagram of the structure of a simulated TCMS system based on the MaView platform according to an embodiment of the present application, such as Figure 2 As shown, the system includes:

[0076] The interface module 21 is used to configure the interface data table file and assign the received data to the variables in the table file;

[0077] An execution module 22, used for obtaining the assigned variable values ​​for logic calculation, and sending the calculation results to the vehicle controller system through the interface module 21;

[0078] The protocol configuration module 23 is used to configure the communication protocol with the vehicle-mounted controller system.

[0079] In some embodiments, the execution module 22 includes:

[0080] A traction logic module 221, for performing logic calculations on data received from the traction system and / or performing logic calculations on data sent to the traction system, and assigning calculation results to variables in the table file;

[0081] A brake logic module 222, for performing logic calculations on data received from the brake system and / or performing logic calculations on data sent to the brake system, and assigning calculation results to variables in the table file;

[0082] The vehicle signal logic module 223 is used to perform logic calculations on the data received from the vehicle controller system and / or perform logic calculations on the data sent to the vehicle controller system, and assign the calculation results to the variables in the table file.

[0083] In some embodiments, the traction logic module 221 , the braking logic module 222 , and the vehicle signal logic module 223 synchronize the calculation results of the logic calculations with each other.

[0084] In some of the embodiments, the protocol configuration module 23 configures the communication protocol with the vehicle controller system to be the TRDP protocol.

[0085] The embodiment of the present application develops a simulated TCMS system suitable for testing vehicle-mounted equipment using PLC language based on the MaView platform. The simulated TCMS system is a simulation software that replaces the real vehicle TCMS system to perform indoor support testing of the vehicle-mounted VOBC. Its main function is to perform logical operations by receiving data from the traction system and the braking system, and to perform integrated logical operations with the data sent by the train, and to send the operation results and some vehicle information such as the working status of the traction system and the braking system to the vehicle-mounted VOBC, thereby ensuring the normal operation of the vehicle-mounted VOBC.

[0086] The simulated TCMS system based on the MaView platform communicates with the real vehicle-mounted VOBC system without changing the communication protocol and interface. It is completely consistent with the communication protocol and interface between the real vehicle-mounted VOBC system and the vehicle TCMS system. The TRDP network communication protocol is used for data interaction, which improves the stability of data transmission.

[0087] The specific module functions of the simulated TCMS system based on the MaView platform in the embodiment of the present application are described as follows:

[0088] Interface module: Create an interface module in the program, select the TRDP communication protocol, manually enter the IP address and port number of the program, store the interface data table file in the interface directory of the program design, and select the menu import through the MaView platform visualization interface to directly import it into the In and Out interface modules. The table format is designed as four columns according to the MaView system requirements: data offset, data variable definition column, default value column, and remarks column. After importing once, the table file under the interface path will be automatically loaded after the subsequent program is started. Unlike traditional C / C++ programs that define package and unpack functions, the MaView platform receives data through the port and automatically assigns values ​​to the variables in the table. The MaView platform directly assigns values ​​to the data variables in the interface by receiving data sent from the outside through the bottom layer in real time.

[0089] During indoor testing, the simulated TCMS system has three communication objects, namely: the vehicle controller system, the traction system and the braking system. Therefore, a communication interface file needs to be established in each execution module involved.

[0090] Execution module: It is divided into three modules: traction logic module, braking logic module and vehicle signal logic module.

[0091] Traction logic module: It performs some logical calculations on the data information received from the traction system according to functional requirements, assigns the calculation results to global variables, and performs logical calculations on the data sent to the traction system.

[0092] For example, TCMS needs to send some signal variables to the traction system in real time, such as the collected running direction. The traction system needs to judge this direction, and if there is a fault, it needs to report the fault to TCMS. In each operating mode, TCMS will forward the traction force of ATO to the traction system. TCMS will receive energy-related information such as traction energy consumption and auxiliary energy consumption sent by the traction system for cumulative calculation, and send the total energy consumption to the human-machine interface of the train.

[0093] Braking logic module: It performs some logical calculations on the data information received from the braking system according to functional requirements, assigns the calculation results to global variables, and performs logical calculations on the data sent to the braking system.

[0094] For example, TCMS receives PWM signal fault diagnosis from each brake system and sends the abnormal PWM command to the vehicle signal. Each brake system sends the vehicle's brake application status to TCMS, and TCMS feeds back the brake application status to the vehicle signal system. TCMS sends the brake level and brake status identification bit to the brake system, and after performing logical operations on the conditions of the application instruction sent by the signal module, it can send a brake release instruction to the brake system.

[0095] On-board signal logic module: performs logical operations on the data sent by the on-board VOBC through the results calculated by the traction logic module and the braking logic module, and finally assigns the calculation results to the variables defined in the on-board VOBC interface file.

[0096] For example, TCMS forwards the electric braking force obtained by each traction system to the brake system of each car. The self-test results of the air compressor and other equipment sent by the brake system, the self-test results of the traction system, and the status information of the traction system are forwarded by TCMS to the on-board signal logic module. When dormant, the module receives the results of the traction system and the brake system and forwards them to the on-board signal, etc.

[0097] During indoor vehicle testing, the simulated TCMS system needs to implement the vehicle signal module, traction system related modules, and braking system related functional modules. Other related systems are relatively less involved, such as air conditioning and lighting systems. Variables and default values ​​are directly defined in the program to participate in the calculation. If faults need to be injected, the variable values ​​can be manually modified directly. The simulated TCMS system needs to receive information from the simulated traction system, braking system, and vehicle-mounted VOBC system in real time, and forward information such as the real-time working status of traction and braking systems to the vehicle. Some of this information requires the simulated TCMS system to perform logical operations on the information sent by each system according to demand, so as to send the calculation results to the vehicle-mounted VOBC, and the simulated TCMS system will also receive commands from the vehicle-mounted VOBC and execute them, and feed back the execution results to the vehicle-mounted VOBC.

[0098] The embodiment of the present application receives data through the TRDP protocol, and then performs logical operations through modularization. Each business module runs independently, which improves the high cohesion and low coupling of the program.

[0099] The simulated TCMS system software of the embodiment of the present application is modularized and assigns values ​​to interface output variables. Each module is independent. If a module is not involved in the test, resources can be saved for the platform and the module can be suspended.

[0100] Figure 3 is a schematic diagram of the software module processing flow according to an embodiment of the present application, such as Figure 3 As shown, during the program processing, the periodic received data and the periodic packaged transmission do not need to be manually unpacked and packaged in the program, and the MaView system automatically sends them according to the interface table.

[0101] The simulated TCMS system based on the MaView platform in the embodiment of the present application can achieve the following technical effects:

[0102] 1) Reduce the workload of simulation TCMS development, reduce development technology capabilities, and save labor costs;

[0103] 2) If the interface changes, you only need to re-import the interface data, avoiding errors caused by modifying the code due to interface changes;

[0104] 3) During the test process, testers can clearly view the data values ​​in each interface and see the intermediate values ​​of logical operations, and promptly discover data logic errors, but the hidden error risks caused by correct results;

[0105] 4) Visual operation and visualization of program logic operations improve test efficiency and reduce test risks.

[0106] This embodiment provides a vehicle-mounted equipment testing method for simulating a TCMS system based on the MaView platform. Figure 4 FIG. 1 is a flow chart of a vehicle-mounted device testing method of a simulated TCMS system based on a MaView platform according to an embodiment of the present application, such as Figure 4 As shown, the method includes:

[0107] Step S401, loading an interface data table file, wherein the table file includes at least one variable;

[0108] Step S402, initializing the communication protocol with the vehicle controller system;

[0109] Step S403, detecting whether the variables in the table file are assigned values;

[0110] Step S404, if it is detected that the variables in the table file are assigned, the assigned variable values ​​are obtained for logical calculation, and the calculation results are assigned to the corresponding variables in the table file, wherein the vehicle controller system reads the values ​​of the variables in the table file according to the communication protocol.

[0111] It should be noted that in this method, by performing value assignment detection on the variables in the interface data table file, the purpose of detecting whether data has been received can be achieved. After performing logical calculations on the received data, the purpose of sending the calculation results to the corresponding module or system can be achieved by assigning values ​​to the corresponding variables in the table file.

[0112] In some embodiments, if it is detected in step S404 that a variable in the table file is assigned a value, obtaining the assigned variable value for logical calculation, and assigning the calculation result to the corresponding variable in the table file may include:

[0113] If it is detected that the input variable received from the traction system in the table file is assigned a value, then the assigned traction system input variable value is obtained for logical calculation, and the calculation result is assigned to the corresponding variable in the table file; and / or

[0114] Perform logical calculations on the data sent to the traction system, and assign the calculation results to the output variables sent to the traction system in the table file.

[0115] This embodiment can realize the test of simulating data interaction between the TCMS system and the traction system, including performing logical calculations on the data received from the traction system and then sending the calculation results to the corresponding system or module; it also includes performing logical calculations on the data sent to the traction system and then sending the calculation results to the traction system.

[0116] In some embodiments, if it is detected in step S404 that a variable in the table file is assigned a value, obtaining the assigned variable value for logical calculation, and assigning the calculation result to the corresponding variable in the table file may include:

[0117] If it is detected that the input variable received from the brake system in the table file is assigned, obtaining the assigned brake system input variable value for logical calculation, and assigning the calculation result to the corresponding variable in the table file; and / or

[0118] Perform logical calculations on the data sent to the brake system, and assign the calculation results to the output variables sent to the brake system in the table file.

[0119] This embodiment can realize the test of simulating data interaction between the TCMS system and the braking system, including performing logical calculations on the data received from the braking system and then sending the calculation results to the corresponding system or module; it also includes performing logical calculations on the data sent to the braking system and then sending the calculation results to the braking system.

[0120] In some embodiments, if it is detected in step S404 that a variable in the table file is assigned a value, obtaining the assigned variable value for logical calculation, and assigning the calculation result to the corresponding variable in the table file may include:

[0121] If it is detected that the input variable received from the vehicle controller system in the table file is assigned a value, then the assigned value of the vehicle controller system input variable is obtained for logical calculation, and the calculation result is assigned to the corresponding variable in the table file; and / or

[0122] Perform logical calculations on the data sent to the vehicle-mounted controller system, and assign the calculation results to the output variables sent to the vehicle-mounted controller system in the table file.

[0123] This embodiment can realize the test of data interaction between the simulated TCMS system and the vehicle controller system, including performing logical calculations on the data received from the vehicle controller system and then sending the calculation results to the corresponding system or module; it also includes performing logical calculations on the data sent to the vehicle controller system and then sending the calculation results to the vehicle controller system.

[0124] The vehicle-mounted equipment testing method of the embodiment of the present application does not require development by professional programmers. It only needs to use PLC language and perform logical operations such as AND or OR through logic boxes, which improves development efficiency and saves development costs. During the test, it is possible to monitor in real time whether the intermediate variables are correct to ensure the correctness of the test. The tester can quickly and easily inject the value of each variable in the visual interface, and the operation is simple and convenient.

[0125] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0126] The embodiment provides a computer device. In combination with the vehicle-mounted device testing method of the simulated TCMS system based on the MaView platform in the embodiment of the present application, the computer device can be implemented. Figure 5 Schematic diagram of the hardware structure of a computer device according to an embodiment of the present application.

[0127] The computer device may include a processor 51 and a memory 52 storing computer program instructions.

[0128] Specifically, the processor 51 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0129] Among them, the memory 52 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 52 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 52 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 52 may be inside or outside the data processing device. In a specific embodiment, the memory 52 is a non-volatile memory. In a specific embodiment, the memory 52 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable ProgrammableRead-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable ProgrammableRead-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM can be a fast page mode dynamic random access memory (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.

[0130] The memory 52 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 51 .

[0131] The processor 51 reads and executes the computer program instructions stored in the memory 52 to implement any one of the vehicle-mounted equipment testing methods of the simulated TCMS system based on the MaView platform in the above embodiments.

[0132] In some of the embodiments, the computer device may further include a communication interface 53 and a bus 50. Figure 5 As shown, the processor 51, the memory 52, and the communication interface 53 are connected via a bus 50 and communicate with each other.

[0133] The communication interface 53 is used to implement communication between the modules, devices, units and / or equipment in the embodiment of the present application. The communication interface 53 can also implement data communication with other components such as: external devices, image / data acquisition equipment, databases, external storage, and image / data processing workstations.

[0134] The bus 50 includes hardware, software or both, and couples the components of the computer device to each other. The bus 50 includes but is not limited to at least one of the following: a data bus, an address bus, a control bus, an expansion bus, and a local bus. By way of example and not limitation, bus 50 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, bus 50 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.

[0135] In addition, in combination with the vehicle-mounted device testing method of the simulated TCMS system based on the MaView platform in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any vehicle-mounted device testing method of the simulated TCMS system based on the MaView platform in the above embodiment is implemented.

[0136] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0137] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A simulation TCMS system based on MaView platform, characterized in that: include: The interface module is used to configure the interface data table file and assign the received data to the variables in the table file; An execution module, used for obtaining the assigned variable values ​​for logic calculation, and sending the calculation results to the vehicle controller system through the interface module; A protocol configuration module is used to configure the communication protocol with the vehicle-mounted controller system.

2. The system according to claim 1, characterized in that The execution module includes: A traction logic module, used for performing logic calculations on data received from the traction system and / or performing logic calculations on data sent to the traction system, and assigning calculation results to variables in the table file; a brake logic module, used for performing logic calculations on data received from the brake system and / or performing logic calculations on data sent to the brake system, and assigning calculation results to variables in the table file; The vehicle signal logic module is used to perform logic calculations on the data received from the vehicle controller system and / or perform logic calculations on the data sent to the vehicle controller system, and assign the calculation results to the variables in the table file.

3. The system according to claim 2, characterized in that The traction logic module, the braking logic module and the vehicle-mounted signal logic module synchronize the calculation results of the logic calculation with each other.

4. The system according to claim 1, characterized in that The protocol configuration module configures the communication protocol with the vehicle controller system to be the TRDP protocol.

5. A vehicle-mounted equipment testing method based on the system according to any one of claims 1 to 4, characterized in that: include: Loading an interface data table file, wherein the table file includes at least one variable; Initialize the communication protocol with the on-board controller system; Detect whether the variables in the table file are assigned values; If it is detected that the variables in the table file are assigned values, the assigned variable values ​​are obtained for logical calculation, and the calculation results are assigned to the corresponding variables in the table file, wherein the vehicle controller system reads the values ​​of the variables in the table file according to the communication protocol.

6. The method according to claim 5, characterized in that If it is detected that the variable in the table file is assigned a value, the variable value after the assignment is obtained for logical calculation, and the calculation result is assigned to the corresponding variable in the table file, including: If it is detected that the input variable received from the traction system in the table file is assigned a value, then the assigned traction system input variable value is obtained for logical calculation, and the calculation result is assigned to the corresponding variable in the table file; and / or Perform logical calculations on the data sent to the traction system, and assign the calculation results to the output variables sent to the traction system in the table file.

7. The method according to claim 5, characterized in that If it is detected that the variable in the table file is assigned a value, the variable value after the assignment is obtained for logical calculation, and the calculation result is assigned to the corresponding variable in the table file, including: If it is detected that the input variable received from the brake system in the table file is assigned, obtaining the assigned brake system input variable value for logical calculation, and assigning the calculation result to the corresponding variable in the table file; and / or Perform logical calculations on the data sent to the brake system, and assign the calculation results to the output variables sent to the brake system in the table file.

8. The method according to claim 5, characterized in that If it is detected that the variable in the table file is assigned a value, the variable value after the assignment is obtained for logical calculation, and the calculation result is assigned to the corresponding variable in the table file, including: If it is detected that the input variable received from the vehicle controller system in the table file is assigned a value, then the assigned value of the vehicle controller system input variable is obtained for logical calculation, and the calculation result is assigned to the corresponding variable in the table file; and / or Perform logical calculations on the data sent to the vehicle-mounted controller system, and assign the calculation results to the output variables sent to the vehicle-mounted controller system in the table file.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 5 to 8 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 5 to 8 is implemented.