Vehicle simulation construction method and device based on model-based development

By using a model-based vehicle simulation construction method, which decomposes and updates the target communication protocol using XML, Excel, and INI files to obtain the simulation configuration, the high cost and low accuracy problems in existing technologies are solved, and efficient and low-cost simulation testing is achieved.

CN115447647BActive Publication Date: 2024-11-26TRAFFIC CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210987832.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-17
Publication Date
2024-11-26
Estimated Expiration
2042-08-17

AI Technical Summary

Technical Problem

Existing vehicle simulation testing technologies are costly and have poor accuracy, making it difficult to meet the requirements of high efficiency and high safety.

Method used

By using a model-based vehicle simulation construction method, the target communication protocol of the vehicle is obtained, decomposed into various format files (such as XML, Excel, and INI files), and the contents of these files are read based on the source code to obtain the target simulation configuration. The format files are then updated to adapt to changes in the communication protocol without modifying the source code.

Benefits of technology

It reduces simulation and maintenance costs, improves the accuracy and efficiency of simulation results, simplifies operation procedures, and reduces test error rates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115447647B_ABST
    Figure CN115447647B_ABST
Patent Text Reader

Abstract

The present invention provides a vehicle simulation construction method and device based on modeling development, the method comprising: obtaining a target communication protocol of a vehicle; decomposing the target communication protocol to obtain files in multiple formats; reading the target format file in the multiple format files based on source code to obtain a target simulation configuration corresponding to the target format file; wherein the multiple format files include at least two of XML files, excel files and ini files. The vehicle simulation construction method based on modeling development of the present invention can meet indoor test requirements without updating source code, is simple and convenient to operate, reduces development costs and maintenance costs, and saves manpower and material resources; in addition, it also effectively reduces the error rate of simulation test results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of rail transit technology, and in particular to a vehicle simulation construction method and device based on modeling development. Background Art

[0002] With the continuous updating of technology, users' requirements for high efficiency and high safety of vehicle operation are constantly increasing. As the information communication core of the locomotive, the locomotive network control system is particularly important. Due to the complexity of the locomotive network control system, it is difficult to accurately debug it, so most performance tests need to be completed indoors. In related technologies, when performing simulation tests, the maintenance cost is high and the accuracy of the simulation effect is poor. Summary of the invention

[0003] The present invention provides a vehicle simulation construction method and device based on modeling development, which are used to solve the defects of high simulation cost and poor accuracy of simulation effect in the prior art, so as to reduce the simulation cost and improve the accuracy of simulation results.

[0004] The present invention provides a vehicle simulation construction method based on modeling development, comprising:

[0005] Get the target communication protocol of the vehicle;

[0006] Decomposing the target communication protocol to obtain files in multiple formats;

[0007] Reading a target format file from the plurality of format files based on the source code, and obtaining a target simulation configuration corresponding to the target format file;

[0008] The multiple format files include at least two of XML files, excel files and ini files.

[0009] According to a vehicle simulation construction method based on modeling development provided by the present invention, the target communication protocol is decomposed to obtain files in multiple formats, including:

[0010] Decomposing the target communication protocol, obtaining at least one of version information, fixed protocol parameters, variable protocol parameters, data content and special function data in the target communication protocol;

[0011] Configuring at least one of the version information, the fixed protocol parameters, and the variable protocol parameters in the XML file;

[0012] Configuring the data content in the excel file;

[0013] The special function data is configured in the ini file.

[0014] According to a vehicle simulation construction method based on modeling development provided by the present invention, the target format file among the multiple format files is read based on the source code to obtain the target simulation configuration corresponding to the target format file, including:

[0015] Reading the XML file based on the source code to obtain at least one of a target communication protocol configuration, a target communication mode configuration, and a communication cycle configuration;

[0016] Read the excel file based on the source code to obtain at least one of data content configuration, follow-up function configuration and data frame configuration;

[0017] The ini file is read based on the source code to obtain at least one of a monitoring function configuration, a shielding configuration and a special function configuration.

[0018] According to a vehicle simulation construction method based on modeling development provided by the present invention, after reading a target format file among the multiple format files based on source code and obtaining a target simulation configuration corresponding to the target format file, the method includes:

[0019] In the case where the target communication protocol is changed, the plurality of format files are updated based on the changed target communication protocol.

[0020] According to a vehicle simulation construction method based on modeling development provided by the present invention, in the case where the target communication protocol is changed, the updating of the multiple format files based on the changed target communication protocol includes:

[0021] When the version information and protocol parameters of the target communication protocol are changed, updating the XML file based on the changed version information and protocol parameters;

[0022] When the data content of the target communication protocol changes, updating the excel file based on the changed data content;

[0023] In the case where the function of the target communication protocol is changed, the ini file is updated based on the changed function.

[0024] According to a vehicle simulation construction method based on modeling development provided by the present invention, after reading a target format file among the multiple format files based on source code and obtaining a target simulation configuration corresponding to the target format file, the method includes:

[0025] The target simulation configuration is input, and the target simulation result corresponding to the target simulation configuration is output.

[0026] The present invention also provides a vehicle simulation construction device based on modeling development, comprising:

[0027] A first processing module, used for acquiring a target communication protocol of the vehicle;

[0028] A second processing module is used to decompose the target communication protocol and obtain files in multiple formats;

[0029] A third processing module is used to read a target format file from the multiple format files based on the source code, and obtain a target simulation configuration corresponding to the target format file;

[0030] The multiple format files include at least two of XML files, excel files and ini files.

[0031] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the vehicle simulation construction method based on modeling development as described above is implemented.

[0032] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described vehicle simulation construction methods based on modeling development.

[0033] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the vehicle simulation construction method based on modeling development as described in any one of the above is implemented.

[0034] The vehicle simulation construction method and device based on modeling development provided by the present invention construct multiple format files and read the content of the target format file in the multiple format files based on the source code to obtain the target simulation configuration corresponding to the target format file. There is no need for the user to modify the source code, so that indoor testing requirements can be met without updating the source code. The operation is simple and convenient, and the development cost and maintenance cost are reduced, saving manpower and material resources. In addition, the test error rate is effectively reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 It is one of the flow charts of the vehicle simulation construction method based on modeling development provided by the present invention;

[0037] Figure 2 This is the second flow chart of the vehicle simulation construction method based on modeling development provided by the present invention;

[0038] Figure 3 This is the third flow chart of the vehicle simulation construction method based on modeling development provided by the present invention;

[0039] Figure 4 It is a structural schematic diagram of a vehicle simulation construction device based on modeling development provided by the present invention;

[0040] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] Combine the following Figures 1 to 3 The vehicle simulation construction method based on modeling development of the present invention is described.

[0043] like Figure 1 The vehicle simulation construction method based on modeling development includes step 110, step 120 and step 130.

[0044] It should be noted that the executor of the vehicle simulation construction method based on modeling development can be a locomotive network control system, or a simulation system that is communicatively connected to the locomotive network control system, or a vehicle simulation construction device based on modeling development, or a server, or a user's terminal, including but not limited to mobile terminals such as mobile phones and tablet computers, and non-mobile terminals such as PCs.

[0045] This vehicle simulation construction method based on modeling development is applied to rail transit scenarios and is used to perform communication-related simulations on vehicles involved in urban rail transit.

[0046] Step 110, obtaining the target communication protocol of the vehicle;

[0047] In this step, the vehicle may be a locomotive such as a city rail, a subway or a light rail.

[0048] The target communication protocol is the vehicle's current communication protocol.

[0049] It can be understood that the target communication protocol is the protocol involved in the vehicle's communication process.

[0050] The locomotive network control system is the communication core of the vehicle. In the actual implementation process, a modeled vehicle simulation control system test platform can be set up to perform simulation tests on the locomotive network control system.

[0051] The target communication protocol in this embodiment is a protocol used to construct a modeled vehicle simulation control system test platform.

[0052] The target communication protocol may include: version information data, fixed protocol parameter data, variable protocol parameter data, data content, and data corresponding to special functions, etc.

[0053] Different data corresponds to different simulation functions.

[0054] It should be noted that the target communication protocol may change over time; different vehicles may correspond to different target communication protocols.

[0055] Step 120, decompose the target communication protocol and obtain files in multiple formats;

[0056] In this step, the multiple formats may include XML format, excel format, ini format and the like.

[0057] Among them, the XML format is the Extensible Markup Language format, which can be used to transmit and store data.

[0058] The excel format is a table format, which stores data in the form of a table.

[0059] The ini (initialization) format is an informal standard for configuration files on platforms or software. It consists of sections and keys and is used to initialize or set parameters for the operating system or specific programs.

[0060] Accordingly, the multiple format files may include at least two of: XML files, excel files and ini files.

[0061] Different format files include different data, and different data are used to generate different simulation configurations, thereby realizing different simulation functions.

[0062] The configuration corresponding to the XML file may include: different communication protocols, different communication methods, communication cycles, different communication objects, communication content, communication byte size, IP and port number, etc.

[0063] Among them, different communication protocols may include: User Datagram Protocol (UDP), Transmission Control Protocol (TCP), Train Real-time Data Protocol (TRDP) and TRDP+SDT, etc.; among them, SDT is an end-to-end protocol on an untrusted communication channel.

[0064] Different communication modes may include: unicast, multicast, and broadcast.

[0065] It is understandable that, in the subsequent execution process, the corresponding configuration can be selected and parsed from the XML file to obtain data for performing specific function simulation.

[0066] The configuration corresponding to the excel file may include: sequence number, parameter name, big-endian and small-endian configuration, frame number configuration, comid configuration for trdp protocol, byte offset, bit offset, number of parameters, parameter input, follow number setting and follow condition setting, etc.

[0067] The following condition setting may include: proportional and inverse proportional setting and multi-condition following setting.

[0068] The configuration corresponding to the ini file may include: communication object input, multi-condition judgment, fault injection, and feedback result comparison, etc.

[0069] In some embodiments, step 120 may include:

[0070] Decomposing the target communication protocol, obtaining at least one of version information, fixed protocol parameters, variable protocol parameters, data content, and special function data in the target communication protocol;

[0071] configuring at least one of the version information, the fixed protocol parameters, and the variable protocol parameters in an XML file;

[0072] Configure the data content in the excel file;

[0073] Configure special function data in ini files.

[0074] In this embodiment, the target communication protocol may be decomposed and the version information, fixed protocol parameters, and variable protocol parameters in the target communication protocol may be configured in an XML file.

[0075] Save the data content in excel format to obtain an excel file.

[0076] And input the special functions of this target communication protocol as configuration in the ini file to obtain the ini file.

[0077] The special function data is data used to realize the special function. It should be noted that when performing special function simulation, multiple configurations need to be input simultaneously to control the same variable.

[0078] For example, when simulating a vehicle bogie, among the dozen or so configuration data input, more than three configuration data must be satisfied at the same time to achieve the simulation.

[0079] According to the vehicle simulation construction method based on modeling development provided in an embodiment of the present invention, by decomposing the target communication protocol to generate files in various formats for obtaining the simulation configuration required for subsequent related simulation functions, the system redundancy can be effectively reduced and the portability and flexibility of the system can be improved, thereby helping to improve the generation efficiency of subsequent simulation configurations and the accuracy of the generated simulation configurations.

[0080] Step 130: Read a target format file from among the files in multiple formats based on the source code, and obtain a target simulation configuration corresponding to the target format file.

[0081] In this step, the source code is the original code developed during the system development process, and the source code can be built into the simulation system.

[0082] It is understandable that, in the actual execution process, the user does not need to modify the source code, but only needs to call the source code to read the data in the target format file to obtain the corresponding target simulation configuration.

[0083] The target format file may be any one of a variety of format files, for example, an XML file, an excel file, or an ini file.

[0084] The target simulation configuration is the simulation parameters that need to be input when realizing the target simulation function.

[0085] During the actual execution process, the target simulation functions include but are not limited to: communication protocol simulation, data content simulation, follow-up setting simulation, visualization simulation, shielding setting simulation and monitoring setting simulation.

[0086] like Figure 2 As shown, in some embodiments, step 130 may include:

[0087] Reading the XML file based on the source code to obtain at least one of a target communication protocol configuration, a target communication mode configuration, and a communication cycle configuration;

[0088] Read the excel file based on the source code to obtain at least one of data content configuration, follow-up function configuration and data frame configuration;

[0089] The ini file is read based on the source code to obtain at least one of the monitoring function configuration, the shielding configuration and the special function configuration.

[0090] In this embodiment, the target communication protocol configuration, the target communication mode configuration and the communication cycle configuration are used to implement the first simulation version.

[0091] The data content configuration, the follow-up function configuration and the data frame configuration are used to implement the second simulation version.

[0092] The monitoring function configuration, the shielding configuration and the special function configuration are used to implement the third simulation version.

[0093] It is understandable that different simulation versions correspond to different simulation functions; the same simulation version may also correspond to multiple different simulation sub-functions. The implementation of different simulation functions will be described in detail below and will not be elaborated here.

[0094] The target communication protocol configuration can be any one or more of udp, tcp, trdp and trdp+sdt.

[0095] The target communication mode configuration can be any one or more of unicast, multicast and broadcast.

[0096] The follow function configuration may include at least one of a follow number and a follow condition.

[0097] The following conditions may include: no following, forward following, reverse following, and multiple-condition following.

[0098] Monitoring function configuration is used to compare actual results with ideal results.

[0099] The shielding configuration includes shielding time, shielding triggering condition and shielding number, etc.

[0100] According to the vehicle simulation construction method based on modeling development provided by an embodiment of the present invention, a target format file among files in multiple formats is read through source code to obtain a target simulation configuration corresponding to the target format file. The simulation configuration can be obtained without the need for user independent programming, and the requirements for the user are relatively low, and the operation is simple and convenient.

[0101] In the present invention, the target communication protocol modeling configuration management is adopted. By constructing files in various formats, the target format file can be read by calling the source code in the subsequent simulation process to obtain the target simulation configuration corresponding to the target format file. The user does not need to modify the source code, thereby effectively solving the problem of repeated development of software source code, and meeting indoor testing requirements without updating the source code. The developed software source code is easy to manage, test and release, the source code development process is easy to trace, the source code is easy to expand and maintain, the software quality is controllable, and the software development efficiency can be improved and the development and maintenance costs can be reduced.

[0102] According to the vehicle simulation construction method based on modeling development provided by an embodiment of the present invention, multiple format files are constructed, and the content of the target format file in the multiple format files is read based on the source code to obtain the target simulation configuration corresponding to the target format file. There is no need for the user to modify the source code, so that indoor testing requirements can be met without updating the source code. The operation is simple and convenient, and the development cost and maintenance cost are reduced, saving manpower and material resources. In addition, the error rate of the simulation test results is effectively reduced.

[0103] In some embodiments, after step 130, the method may further include: when the target communication protocol is changed, updating the files in multiple formats based on the changed target communication protocol.

[0104] In this embodiment, when the data in the target communication protocol changes, the format file containing the changed data is updated accordingly to obtain an updated format file; in the subsequent execution process, the source code will read the content of the updated format file to obtain the updated target simulation configuration.

[0105] It should be noted that during the actual execution process, when the data in the target communication protocol changes, the user does not need to change the source code, but only needs to modify the data in the corresponding format file to implement the configuration update, which is simple and fast.

[0106] The specific implementation of this embodiment is described below.

[0107] In some embodiments, when the target communication protocol is changed, updating the files in multiple formats based on the changed target communication protocol may include:

[0108] When the version information and protocol parameters of the target communication protocol are changed, the XML file is updated based on the changed version information and protocol parameters;

[0109] When the data content of the target communication protocol changes, the excel file is updated based on the changed data content;

[0110] In the case where the function of the target communication protocol is changed, the ini file is updated based on the changed function.

[0111] In this implementation, when the version information and protocol parameters of the target communication protocol change, the version information and protocol variable parameters of the protocol in the protocol model (i.e., XML file) are modified to generate a new XML file; after the source code reads the new XML file, it can run the corresponding version and branch according to the new protocol version information and variable parameters.

[0112] When the data content in the target communication protocol changes, the data content format in the target communication protocol is modified to generate a new excel file; the source code reads the new excel file to change the interaction of the data content.

[0113] When the function in the target communication protocol is updated, the ini file input is modified to generate a new ini file. The source code can realize different functions by reading the new ini file configuration input items.

[0114] According to the vehicle simulation construction method based on modeling development provided by an embodiment of the present invention, when the data in the target communication protocol changes, the format file corresponding to the changed data is updated to obtain an updated format file. In the subsequent execution process, it is only necessary to call the source code to read the updated format file to obtain the updated target simulation configuration, thereby avoiding repeated development of source code, being simple and fast to operate and having low maintenance costs.

[0115] Combine the following Figure 3 , taking the execution subject as the modeled vehicle simulation control system test platform as an example, the implementation of the simulation function is specifically explained.

[0116] It should be noted that the modeled vehicle simulation control system test platform may include a receiving end for receiving data input.

[0117] In some embodiments, the modeled vehicle simulation control system test platform may also include a display page for displaying simulation results.

[0118] In some embodiments, after step 130, the method may further include: inputting a target simulation configuration, and outputting a target simulation result corresponding to the target simulation configuration.

[0119] In this embodiment, the target simulation result is a simulation result obtained when the target simulation function is implemented.

[0120] In the actual simulation process, by inputting the target simulation configuration into the modeled vehicle simulation control system test platform, the target simulation result output by the modeled vehicle simulation control system test platform can be obtained, thereby realizing the corresponding simulation function.

[0121] Among them, Figure 3 As shown, the simulation functions may include: communication protocol simulation, data content simulation, follow-up setting simulation, visualization simulation, shielding setting simulation, and monitoring setting simulation, etc.

[0122] The implementation of this embodiment is described below from multiple implementation perspectives.

[0123] First, the communication protocol implementation process

[0124] When the target simulation configuration is the configuration corresponding to the XML file, the modeled vehicle simulation control system test platform calls different initialization methods and sending and receiving classes in the source code by reading different configurations of the communication protocol in the configuration of the XML file;

[0125] When the communication protocol is UDP, the modeled vehicle simulation control system test platform can select one or more of unicast, multicast or broadcast communication modes to perform communication protocol simulation.

[0126] Among them, when selecting multicast and broadcast modes, the modeled vehicle simulation control system test platform will also verify the remote IP to improve the accuracy of the simulation.

[0127] Second, the data content realization process

[0128] The modeled vehicle simulation control system test platform reads interactive data by reading excel files, and performs operations such as reading, packaging, and parsing by inputting byte offset settings, bit offset settings, and big-endian and small-endian settings.

[0129] Third, follow the setup implementation process

[0130] The modeled vehicle simulation control system test platform supports the follow-up function. In the configuration of the excel file, the follow-up number configured in the received data is indexed according to the follow-up number configured in the sent data to realize the follow-up function.

[0131] The setting of the following condition can be determined by configuration selection, for example, "Do not follow", "Forward follow", "Reverse follow" and "Multi-condition follow" can be selected.

[0132] It should be noted that, in the case of setting up multiple conditional follow-up, the user can simply fill in the format in the page of the modeled vehicle simulation control system test platform. The source code will distinguish different functions based on the different configurations read, and call the relevant classes for implementation.

[0133] Fourth, the process of visual page implementation

[0134] The display pages of the modeled vehicle simulation control system test platform may include: operation page, driving display page, data flow display page, time display page, fault injection function display page, communication display page, error information display page and safety warning prompt display page, etc.

[0135] (1) For the operation page: the user can freely choose to configure different interactive data contents in the operation page to determine the target simulation configuration to achieve the first input. The system responds to the first input and performs simulation based on the target simulation configuration, and outputs the target simulation result corresponding to the target simulation configuration, thereby achieving different functions.

[0136] The first input may be in the form of touch input, physical key input, voice input, character input, etc., which is not limited in the present invention.

[0137] (2) For the driving display page: The modeled vehicle simulation control system test platform can perform content analysis based on the received target simulation configuration related to the driving function to output and display the departure time, speed, slope, turnout, air-conditioning temperature, and door status information, etc., to provide users with an intuitive display for easy observation.

[0138] (3) For the fault injection function display page:

[0139] The fault injection function display page is used to forcibly set some information in the target communication protocol.

[0140] In the actual execution process, the target simulation configuration is input, and the target simulation result corresponding to the target simulation configuration is output, which may include:

[0141] receiving a second input from a user regarding a target simulation configuration;

[0142] In response to the second input, forcibly setting the target simulation configuration, and performing a simulation test based on the target simulation configuration;

[0143] Output the target simulation results corresponding to the target simulation configuration.

[0144] In this embodiment, the second input is used to force the target simulation configuration to be set.

[0145] The second input may be expressed as touch input, physical key input, voice input, character input, etc., which are the same as the first input and will not be elaborated here.

[0146] The target simulation configuration can be any information in the target communication protocol.

[0147] In the case of forced setting, when the user opens the injection fault function display page, all configuration information included in the page will be freely set by the user to inject fault parameters. The variable will not be affected by other functions, thereby achieving different test requirements.

[0148] (4) For the error information display page: The modeled vehicle simulation control system test platform reads the expected results in the ini file and saves them, compares the expected results with the actual operating results to generate difference information and error causes, etc., and can also output the difference information and error causes by printing logs to provide users with an intuitive display.

[0149] Fifth, the shielding setting implementation process

[0150] The modeled vehicle simulation control system test platform can also support partial function shielding.

[0151] In some embodiments, inputting a target simulation configuration and outputting a target simulation result corresponding to the target simulation configuration may include:

[0152] receiving a third input from a user regarding a target simulation configuration;

[0153] In response to the third input, the target simulation configuration is masked.

[0154] In this embodiment, the output target simulation result is a simulation result corresponding to the shielded target simulation configuration.

[0155] The third input is used to mask the target simulation configuration.

[0156] The third input may be expressed as touch input, physical key input, voice input, character input, etc., which are the same as the first input and will not be elaborated here.

[0157] The target simulation configuration may include the mask time, the mask trigger condition, and the mask number.

[0158] In the present invention, by setting a shielding function, shielding time, shielding trigger conditions, shielding numbers, etc. are shielded, so that the source code can make function input condition judgments when reading the ini configuration file, and whether the class of enabling this function in the source code is implemented, thereby avoiding the problem of conflicts caused by some functions in a simulation software due to different functions required by different protocols during the modeling development process.

[0159] Sixth, monitor the implementation process of settings

[0160] The modeled vehicle simulation control system test platform can also support simulation playback function.

[0161] In this embodiment, in different test items, the test results under ideal conditions are configured, and the modeled vehicle simulation control system test platform will compare the actual results with the ideal results and feedback the test results.

[0162] The test results may include: test time, data interaction, delay, and error, etc.

[0163] During the actual execution process, the test results can be fed back to the user by outputting a test report.

[0164] According to the vehicle simulation construction method based on modeling development provided by an embodiment of the present invention, by inputting the target simulation configuration, the target simulation result corresponding to the target simulation configuration can be obtained to realize the corresponding simulation function. The simulation system is light and flexible, highly practical, has a low error rate in the simulation results, is simple and convenient to operate, and has a low simulation cost.

[0165] The vehicle simulation construction device based on modeling development provided by the present invention is described below. The vehicle simulation construction device based on modeling development described below and the vehicle simulation construction method based on modeling development described above can be referenced to each other.

[0166] like Figure 4 As shown, the vehicle simulation construction device based on modeling development includes: a first processing module 410, a second processing module 420 and a third processing module 430.

[0167] A first processing module 410 is used to obtain a target communication protocol of the vehicle;

[0168] The second processing module 420 is used to decompose the target communication protocol and obtain files in multiple formats;

[0169] The third processing module 430 is used to read a target format file from multiple format files based on the source code, and obtain a target simulation configuration corresponding to the target format file;

[0170] The multiple format files include at least two of XML files, excel files and ini files.

[0171] According to the vehicle simulation construction device based on modeling development provided by an embodiment of the present invention, by constructing files in multiple formats and reading the contents of target format files in multiple format files based on source code, a target simulation configuration corresponding to the target format file is obtained. There is no need for users to modify the source code, thereby meeting indoor testing requirements without updating the source code. The operation is simple and convenient, and the development cost and maintenance cost are reduced, saving manpower and material resources. In addition, the error rate of simulation test results is effectively reduced.

[0172] In some embodiments, the second processing module 420 may also be used to:

[0173] Decomposing the target communication protocol, obtaining at least one of version information, fixed protocol parameters, variable protocol parameters, data content, and special function data in the target communication protocol;

[0174] configuring at least one of the version information, the fixed protocol parameters, and the variable protocol parameters in an XML file;

[0175] Configure the data content in the excel file;

[0176] Configure special function data in ini files.

[0177] In some embodiments, the third processing module 430 may also be used to:

[0178] Reading the XML file based on the source code to obtain at least one of a target communication protocol configuration, a target communication mode configuration, and a communication cycle configuration;

[0179] Read the excel file based on the source code to obtain at least one of data content configuration, follow-up function configuration and data frame configuration;

[0180] The ini file is read based on the source code to obtain at least one of the monitoring function configuration, the shielding configuration and the special function configuration.

[0181] In some embodiments, the apparatus may further include: a fourth processing module, configured to:

[0182] After reading a target format file from among the files in multiple formats based on the source code and obtaining a target simulation configuration corresponding to the target format file, the target simulation configuration is input and a target simulation result corresponding to the target simulation configuration is output.

[0183] In some embodiments, the apparatus may further include: a fifth processing module, configured to:

[0184] After reading a target format file from among the multiple format files based on the source code and obtaining a target simulation configuration corresponding to the target format file, when the target communication protocol is changed, the multiple format files are updated based on the changed target communication protocol.

[0185] In some embodiments, the fifth processing module may also be used to:

[0186] When the version information and protocol parameters of the target communication protocol are changed, the XML file is updated based on the changed version information and protocol parameters;

[0187] When the data content of the target communication protocol changes, the excel file is updated based on the changed data content;

[0188] In the case where the function of the target communication protocol is changed, the ini file is updated based on the changed function.

[0189] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the vehicle simulation construction method based on modeling development, the method comprising: obtaining the target communication protocol of the vehicle; decomposing the target communication protocol to obtain multiple format files; reading the target format file in the multiple format files based on the source code, and obtaining the target simulation configuration corresponding to the target format file; wherein the multiple format files include at least two of XML files, excel files and ini files.

[0190] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0191] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the vehicle simulation construction method based on modeling development provided by the above methods, and the method includes: obtaining the target communication protocol of the vehicle; decomposing the target communication protocol to obtain files in multiple formats; reading the target format file in the multiple format files based on the source code, and obtaining the target simulation configuration corresponding to the target format file; wherein the multiple format files include at least two of XML files, excel files and ini files.

[0192] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the above-mentioned vehicle simulation construction method based on modeling development, the method comprising: obtaining a target communication protocol of the vehicle; decomposing the target communication protocol to obtain files in multiple formats; reading a target format file in multiple format files based on source code to obtain a target simulation configuration corresponding to the target format file; wherein the multiple format files include at least two of XML files, excel files and ini files.

[0193] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0194] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0195] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A vehicle simulation construction method based on modeling development, characterized in that: include: Get the target communication protocol of the vehicle; Decomposing the target communication protocol to obtain files in multiple formats; Reading a target format file from the plurality of format files based on the source code, and obtaining a target simulation configuration corresponding to the target format file; Wherein, the multiple format files include at least two of XML files, excel files and ini files; The target communication protocol is decomposed to obtain files in various formats, including: Decomposing the target communication protocol, obtaining at least one of version information, fixed protocol parameters, variable protocol parameters, data content and special function data in the target communication protocol; Configuring at least one of the version information, the fixed protocol parameters, and the variable protocol parameters in the XML file; Configuring the data content in the excel file; Configuring the special function data in the ini file; The step of reading a target format file from among the multiple format files based on the source code and obtaining a target simulation configuration corresponding to the target format file includes: Reading the XML file based on the source code to obtain at least one of a target communication protocol configuration, a target communication mode configuration, and a communication cycle configuration; Read the excel file based on the source code to obtain at least one of data content configuration, follow-up function configuration and data frame configuration; Reading the ini file based on the source code to obtain at least one of a monitoring function configuration, a shielding configuration, and a special function configuration; Wherein, different target simulation configurations are used to realize different simulation functions; the same target simulation configuration is used to realize multiple different simulation sub-functions; After reading the target format file from the multiple format files based on the source code and obtaining the target simulation configuration corresponding to the target format file, the method includes: In the case where the target communication protocol is changed, the plurality of format files are updated based on the changed target communication protocol.

2. The vehicle simulation construction method based on modeling development according to claim 1 is characterized in that: When the target communication protocol is changed, updating the files in multiple formats based on the changed target communication protocol includes: When the version information and protocol parameters of the target communication protocol are changed, updating the XML file based on the changed version information and protocol parameters; When the data content of the target communication protocol changes, updating the excel file based on the changed data content; In the case where the function of the target communication protocol is changed, the ini file is updated based on the changed function.

3. The vehicle simulation construction method based on modeling development according to claim 1 is characterized in that: After reading the target format file from the multiple format files based on the source code and obtaining the target simulation configuration corresponding to the target format file, the method includes: The target simulation configuration is input, and the target simulation result corresponding to the target simulation configuration is output.

4. A vehicle simulation construction device based on modeling development, characterized in that: include: A first processing module, used for acquiring a target communication protocol of the vehicle; A second processing module is used to decompose the target communication protocol and obtain files in multiple formats; A third processing module is used to read a target format file from the multiple format files based on the source code, and obtain a target simulation configuration corresponding to the target format file; Wherein, the multiple format files include at least two of XML files, excel files and ini files; The target communication protocol is decomposed to obtain files in various formats, including: Decomposing the target communication protocol, obtaining at least one of version information, fixed protocol parameters, variable protocol parameters, data content and special function data in the target communication protocol; Configuring at least one of the version information, the fixed protocol parameters, and the variable protocol parameters in the XML file; Configuring the data content in the excel file; Configuring the special function data in the ini file; The step of reading a target format file from among the multiple format files based on the source code and obtaining a target simulation configuration corresponding to the target format file includes: Reading the XML file based on the source code to obtain at least one of a target communication protocol configuration, a target communication mode configuration, and a communication cycle configuration; Read the excel file based on the source code to obtain at least one of data content configuration, follow-up function configuration and data frame configuration; Reading the ini file based on the source code to obtain at least one of a monitoring function configuration, a shielding configuration, and a special function configuration; Wherein, different target simulation configurations are used to realize different simulation functions; the same target simulation configuration is used to realize multiple different simulation sub-functions; After reading the target format file from the multiple format files based on the source code and obtaining the target simulation configuration corresponding to the target format file, the device includes: In the case where the target communication protocol is changed, the plurality of format files are updated based on the changed target communication protocol.

5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the vehicle simulation construction method based on modeling development as described in any one of claims 1 to 3 is implemented.

6. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the vehicle simulation construction method based on modeling development as claimed in any one of claims 1 to 3 is implemented.

7. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the vehicle simulation construction method based on modeling development as claimed in any one of claims 1 to 3 is implemented.