Real-time operating environment generation system, method, computer device and storage medium

Through the real-time running environment generation system, the engineering integration interface, basic container layer and data analysis layer are used to solve the problem of weak software architecture design in non-AutoSAR projects, improve the quality of software development, and ensure the reliability and compatibility of the system.

CN117873650BActive Publication Date: 2024-10-29镁佳(北京)科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410107593.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-25
Publication Date
2024-10-29
Estimated Expiration
2044-01-25

AI Technical Summary

Technical Problem

Self-developed software is used in non-AutoSAR projects. The lack of standard tools makes it impossible to control and maintain the relationship between software modules in the architecture design process, affecting the quality of software development.

Method used

Provides a real-time running environment generation system, including engineering integration interface, basic container layer and data analysis layer. It generates real-time running environment through model description files, solves the problem of weak software architecture design, and improves development quality.

Benefits of technology

Introduce the model description file development method through layered design to improve the quality of software development, ensure the reliability, stability and compatibility of the system, realize the generation and maintenance of real-time operating environment, and improve the performance and maintainability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117873650B_ABST
    Figure CN117873650B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of data processing technology, and discloses a real-time operating environment generation system, method, computer equipment and storage medium. The system includes: an engineering integration interface, a basic container layer, a data analysis layer and a code generation layer, wherein the engineering integration interface is used to provide an interface for calling a first tool, a second tool and a task mapping table; the data analysis layer is used to obtain a basic container object based on a second type description tag of a model description file and a basic container generation script, and place the basic container object in the basic container; the code generation layer is used to generate a real-time operating environment based on the basic container object, the real-time operating environment task mapping relationship and the partition of the real-time operating environment configuration file. By implementing the present invention, a model description file-based development method is introduced into a non-AutoSAR project using a hierarchical design, which solves the problem of weak links in the software architecture design in the non-AutoSAR project and improves the quality of software development.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a real-time operating environment generation system, method, computer equipment and storage medium. Background Art

[0002] In the process of software development for automotive electronic systems, the functional and performance requirements of automotive electronic systems must first be analyzed and defined in detail. Based on the results of the demand analysis, the software architecture of the automotive electronic system is designed. This includes selecting an appropriate software platform, defining software modules and interfaces, and ensuring the scalability, reliability, and security of the system. Then, according to the software architecture design, the coding and development of each module of the system are carried out. Developers need to use appropriate programming languages ​​and tools, code according to specifications, and perform unit testing to ensure the correctness of the code. After that, the developed software modules are combined and tested at the system level. This includes functional testing, performance testing, compatibility testing, etc. to verify whether the functions and performance of the system meet the requirements. Verification is carried out by targeting specific test cases for the system to ensure that the system can operate normally in various situations. This includes verification of the security, stability, and reliability of the system. After the development and testing are completed, the software version is released to the automotive electronic system. This includes loading the software into the vehicle's ECU (electronic control unit) and performing final verification and validation.

[0003] In automotive electronic controllers, AutoSAR (Automotive Open System Architecture) is an open standard architecture for automotive electronic systems. AutoSAR projects have fixed architecture design processes and paths, while non-AutoSAR projects mostly use self-developed software. Although this can save costs, there are no standard tools in the architecture design process, and it is impossible to control and maintain the relationship between various software modules. Therefore, how to improve the software development quality of non-AutoSAR projects has become a difficult problem in the development process. Summary of the invention

[0004] In view of this, the present invention provides a real-time operating environment generation system, method, computer device and storage medium to solve the problem that most non-AutoSAR projects use self-developed software. Although it can save costs, there are no standard tools in the architecture design link, and it is impossible to control and maintain the relationship between each software module, thereby improving the software development quality of non-AutoSAR projects.

[0005] In a first aspect, the present invention provides a real-time operating environment generation system, the system comprising: an engineering integration interface, a basic container layer, a data analysis layer and a code generation layer, wherein the engineering integration interface is used to provide an interface for calling a first tool, a second tool and a task mapping table, the first tool is used to call the basic container layer, the data analysis layer and the code generation layer, the second tool is used to obtain the real-time operating environment configuration file partition, and the task mapping table is used to obtain the real-time operating environment task mapping relationship; the basic container layer is used to obtain a basic container generation script based on a first type description tag of a preset model description file, and the basic containers set in the basic container layer include a data type basic container, a software function template basic container, an application software element basic container and a real-time operating environment partition basic container; the data analysis layer is used to obtain a basic container object based on a second type description tag of the model description file and the basic container generation script, and place the basic container object in the basic container; the code generation layer is used to generate a real-time operating environment based on the basic container object, the real-time operating environment task mapping relationship and the real-time operating environment configuration file partition.

[0006] The real-time operating environment generation system provided by the embodiment of the present invention integrates the engineering integration interface, the basic container layer, the data analysis layer and the code generation layer. First, a hierarchical design is adopted to introduce the model description file-based development method into the non-AutoSAR project, which solves the weak link of the software architecture design in the non-AutoSAR project and is conducive to improving the quality of software development; secondly, through the first tool, the tool is separated from the actual project, so that the tool is independent of the actual application project. When used, the configuration file saved in the target project is directly loaded to obtain the input and output resource list directory, so that the real-time operating environment generation system can be independently maintained and easy to integrate. Finally, based on the basic container object, the real-time operating environment task mapping relationship and the real-time operating environment configuration file partition, the real-time operating environment is generated, which solves the problem that most non-AutoSAR projects use self-developed software. Although it can save costs, there is no standard tool in the architecture design link, and the relationship between each software module cannot be controlled and maintained, thereby improving the software development quality of non-AutoSAR projects.

[0007] In an optional implementation, the first tool is specifically used to: call a model description file parsing tool to parse the second type description tag of the model description file to obtain the basic container object directory, where the basic container object includes data types, software function templates, application software, real-time operating environment partitions, and element mapping relationships; based on the basic container object directory, call a corresponding basic container generation script to create a basic container object; and place the basic container object in the basic container.

[0008] The real-time operating environment generation system provided by the embodiment of the present invention analyzes the model description files and adapts to the mainstream model description files. By being compatible with multiple definition habits and without specifying the target manufacturer, it can parse the model description files generated by various existing manufacturer tools, thereby improving the compatibility of the real-time operating environment generation system.

[0009] In an optional implementation, the model description file parsing tool includes a data type parser, a software function template parser, a connection relationship parser, an application software element parser, and an element mapping relationship parser.

[0010] In an optional embodiment, the second tool includes: a configuration module, used to obtain output path information of a preset target code, and configure the output path of the target code and a real-time operating environment configuration file based on the output path information; and a file partition generation module, used to generate a real-time operating environment configuration file partition based on the real-time operating environment configuration file.

[0011] The real-time operating environment generation system provided by the embodiment of the present invention obtains the output path information of the preset target code, configures the output path of the target code and the real-time operating environment configuration file based on the output path information, and generates the real-time operating environment configuration file partition. The configuration file partition can be flexibly configured according to different environments and requirements to ensure the reliability and stability of the system in different environments, and can improve the performance, maintainability, security and flexibility of the system, so as to better meet the needs of the real-time operating environment.

[0012] In an optional implementation, the system further includes: a software compiling module, configured to integrate the application software into a target system for compilation based on the output path.

[0013] The real-time operating environment generation system provided by the embodiment of the present invention can ensure the compatibility and stability of application software with the target system by integrating it into the target system for compilation. By solving the dependency, interface compatibility, version compatibility and other issues related to the target system during the compilation process, errors and exceptions caused by environment mismatch can be avoided during runtime, thereby improving the stability and reliability of the application software on the target system.

[0014] In an optional embodiment, the task mapping table is specifically used to map the executable code blocks of the application software in the model description file to the real-time operating environment task partitions, real-time operating environment call sequence and real-time operating environment call cycle in the target project for compiling the application software.

[0015] The real-time operating environment generation system provided by the embodiment of the present invention can improve the efficiency and reliability of the system by mapping the executable code blocks of the application software into the real-time operating environment for compilation. By optimizing the code during the compilation process, a more efficient and compact machine code can be generated, reducing resource occupation and runtime overhead. At the same time, by integrating the application software with the real-time operating environment, the stability and reliability of the system can be improved.

[0016] In an optional embodiment, the engineering integration interface also includes an open standard architecture interface, which includes a standard interface implementation part of the real-time operating environment, used to obtain basic software in the open standard architecture and integrate the basic software and compiled application software.

[0017] The real-time operating environment generation system provided by the embodiment of the present invention obtains basic software in an open standard architecture and integrates the basic software with compiled application software. The basic software is often platform-independent and can be used in different hardware platforms, operating systems or development environments. By integrating the basic software with the application software, the platform independence of the application software can be achieved, and the portability and scalability of the application software can be improved.

[0018] In a second aspect, the present invention provides a method for generating a real-time operating environment, the method comprising: obtaining a model description file; using a first tool to obtain a basic container generation script based on a first type description tag of the model description file, the basic container comprising a data type basic container, a software function template basic container, an application software element basic container and a real-time operating environment partition basic container; obtaining a basic container object based on a second type description tag of the model description file, and placing the basic container object in the basic container; using a second tool to obtain a real-time operating environment configuration file partition; reading a task mapping table to obtain a real-time operating environment task mapping relationship; obtaining a real-time operating environment based on the basic container object, the real-time operating environment task mapping relationship and the real-time operating environment configuration file partition.

[0019] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the real-time operating environment generation method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0020] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the real-time operating environment generation method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0022] Figure 1 is a structural block diagram of a real-time operating environment generation system according to an embodiment of the present invention;

[0023] Figure 2 is a structural schematic diagram of a real-time operating environment generation system according to an embodiment of the present invention;

[0024] Figure 3 is a flow chart of a method for generating a real-time operating environment according to an embodiment of the present invention;

[0025] Figure 4 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0027] In the process of software development for automotive electronic systems, the functional and performance requirements of automotive electronic systems must first be analyzed and defined in detail. Based on the results of the demand analysis, the software architecture of the automotive electronic system is designed. This includes selecting an appropriate software platform, defining software modules and interfaces, and ensuring the scalability, reliability, and security of the system. Then, according to the software architecture design, the coding and development of each module of the system are carried out. Developers need to use appropriate programming languages ​​and tools, code according to specifications, and perform unit testing to ensure the correctness of the code. After that, the developed software modules are combined and tested at the system level. This includes functional testing, performance testing, compatibility testing, etc. to verify whether the functions and performance of the system meet the requirements. Verification is carried out by targeting specific test cases for the system to ensure that the system can operate normally in various situations. This includes verification of the security, stability, and reliability of the system. After the development and testing are completed, the software version is released to the automotive electronic system. This includes loading the software into the vehicle's ECU (electronic control unit) and performing final verification and validation.

[0028] In automotive electronic controllers, AutoSAR (Automotive Open System Architecture) is an open standard architecture for automotive electronic systems. AutoSAR projects have fixed architecture design processes and paths, while non-AutoSAR projects mostly use self-developed software. Although this can save costs, there are no standard tools in the architecture design process, and it is impossible to control and maintain the relationship between various software modules. Therefore, how to improve the software development quality of non-AutoSAR projects has become a difficult problem in the development process.

[0029] In the present embodiment, a real-time operating environment generation system is provided. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and contemplated.

[0030] Figure 1 is a structural block diagram of a real-time operating environment generation system according to an embodiment of the present invention. Figure 1 As shown, the real-time operating environment generation system includes an engineering integration interface 101, a basic container layer 102, a data analysis layer 103 and a code generation layer 104, wherein:

[0031] The engineering integration interface 101 is used to provide an interface for calling the first tool, the second tool and the task mapping table. The first tool is used to call the basic container layer 102, the data analysis layer 103 and the code generation layer 104. The second tool is used to obtain the real-time operating environment configuration file partition. The task mapping table is used to obtain the real-time operating environment task mapping relationship.

[0032] Specifically, Figure 2As shown, the engineering integration interface 101 is located at the top layer of the real-time operating environment generation system, and is used to call the basic container layer 102, the data analysis layer 103 and the code generation layer 104 through the first tool. In the optional mode of some embodiments, the first tool can be a compilation environment calling tool (Makefile compilation environment tool), and the Makefile compilation environment tool is a tool for building and managing software projects. It is based on a set of rules and commands, and can automate the compilation, linking and generation of executable files or library files of source code. The core of the Makefile compilation environment tool is the make command. When running the make command, it will determine which files need to be recompiled according to the rules defined in the Makefile file, and then automatically execute the corresponding compilation instructions. The second tool is used to obtain the real-time operating environment configuration file partition. In the optional mode of some embodiments, the second tool is a configuration interface tool (Menuconfig configuration interface tool), and the Menuconfig configuration interface tool is a convenient and flexible command line interactive configuration tool that can be used for the configuration of various projects. The Menuconfig configuration interface tool is a tool used by Linux to manage modules and functions. After configuration through the Menuconfig configuration interface tool, a .config configuration file can be generated. The configuration can tell this model description file parsing tool the location of the model description file in the specific project code, and the location of the generated real-time runtime environment in the target project. In software development, real-time runtime environment configuration file partitioning is a method of dividing the configuration information, parameters, and functions of the real-time system into different configuration files. This partitioning method can improve the flexibility and reliability of configuration management, and allow independent modification and adjustment of each part. The task mapping table is used to obtain the real-time runtime environment task mapping relationship.

[0033] The basic container layer 102 is used to obtain a basic container generation script based on a first type description tag of a preset model description file. The basic containers set in the basic container layer 102 include a data type basic container, a software function template basic container, an application software element basic container, and a real-time operating environment partition basic container.

[0034] Specifically, in software development, the model description file (ARXML file, AUTOSAR XML) is a standard file format for describing automotive electronic systems. It is part of the AUTOSAR (Automotive Open System Architecture) open system architecture, which is used to define the software and hardware construction of automotive electronic systems. The model description file is mainly used to describe:

[0035] (1) Software components: ARXML files define the software components of automotive electronic systems, including ECU (Electronic Control Unit) and various application software, services and modules. It describes the functions, interfaces, scopes and other information of software components.

[0036] (2) Communication and Signaling: ARXML files describe the communication and signal transmission methods between different software components. It defines key concepts such as messages, signals, ports, and interfaces, as well as the connection relationships and communication protocols between them.

[0037] (3) Data types and parameters: ARXML files define the types and parameters used to describe data, including the definition of data types, value ranges, units, parsing rules, etc., as well as parameter configuration and transmission methods.

[0038] (4) Hardware configuration, ARXML files can also describe the hardware configuration information of the automotive electronic system, including the hardware characteristics of the ECU, circuit connections, and pin mapping. The first type of description tag in the preset model description file is used to describe the basic container generation script, which is a method script for generating a basic container object.

[0039] The basic container layer 102 is a basic environment for building and managing applications. It provides an isolated operating environment so that applications can run on different platforms and operating systems. The basic container layer 102 defines various ARXML elements that comply with the AUTOSAR standard, such as Figure 2 As shown, it is divided into four categories: data type, port interface, application software and partition.

[0040] The data analysis layer 103 is used to obtain a basic container object based on the second type description tag of the model description file and the basic container generation script, and place the basic container object in the basic container.

[0041] Specifically, the second type description tag based on the model description file is used to describe the basic container object, which includes data types, software function templates, application software, real-time operating environment partitions and element mapping relationships.

[0042] The code generation layer 104 is used to generate a real-time operating environment based on the basic container object, the real-time operating environment task mapping relationship and the real-time operating environment configuration file partition.

[0043] Specifically, the real-time execution environment (RTE) is a software execution environment for supporting real-time applications, providing the connection relationship between various application software and the connection relationship between application software and basic software. The first tool calls the code generation layer 104 based on the basic container object, the real-time execution environment task mapping relationship and the real-time execution environment configuration file partition.

[0044] The real-time operating environment generation system provided by the embodiment of the present invention integrates the engineering integration interface, the basic container layer, the data analysis layer and the code generation layer. First, a hierarchical design is adopted to introduce the model description file-based development method into the non-AutoSAR project, which solves the weak link of the software architecture design in the non-AutoSAR project and is conducive to improving the quality of software development; secondly, through the first tool, the tool is separated from the actual project, so that the tool is independent of the actual application project. When used, the configuration file saved in the target project is directly loaded to obtain the input and output resource list directory, so that the real-time operating environment generation system can be independently maintained and easy to integrate. Finally, based on the basic container object, the real-time operating environment task mapping relationship and the real-time operating environment configuration file partition, the real-time operating environment is generated, which solves the problem that most non-AutoSAR projects use self-developed software. Although it can save costs, there is no standard tool in the architecture design link, and the relationship between each software module cannot be controlled and maintained, thereby improving the software development quality of non-AutoSAR projects.

[0045] In an optional implementation, the first tool is specifically used to: call a model description file parsing tool to parse the second type description tag of the model description file to obtain a basic container object directory, where the basic container object includes data types, software function templates, application software, real-time operating environment partitions, and element mapping relationships; based on the basic container object directory, call the corresponding basic container generation script to create a basic container object; and place the basic container object in the basic container.

[0046] Specifically, Figure 2 As shown, data types include application data types, basic data types, implementation data types, and data type mappings. Software function templates refer to a predefined pattern or framework that can be used when defining functions in programming. They provide a common form that enables developers to customize and expand according to their own needs. In software development, application software is a Software Component, which refers to a reusable software unit that can be independently developed, tested, deployed, and maintained. Application software has good interfaces and protocols to facilitate integration and combination with other components to form a larger-scale application system. Figure 2As shown, the application software includes schedulable entities, trigger events, data access points, and bus signal mapping. Real-time operating environment partitioning refers to dividing the computer's operating environment into different areas to ensure that real-time tasks can obtain sufficient computing resources and response performance. In software development, application software elements refer to the various parts or components that make up an application. There is a certain mapping relationship between these elements, namely the element mapping relationship. The basic container object directory includes the basic container objects that need to be generated as described in the model description file.

[0047] The real-time operating environment generation system provided by the embodiment of the present invention analyzes the model description files and adapts to the mainstream model description files. By being compatible with multiple definition habits and without specifying the target manufacturer, it can parse the model description files generated by various existing manufacturer tools, thereby improving the compatibility of the real-time operating environment generation system.

[0048] In an optional implementation, the model description file parsing tool includes a data type parser, a software function template parser, a connection relationship parser, an application software element parser, and an element mapping relationship parser.

[0049] Specifically, the data type parser is used to parse the model description file to obtain the data type, the software function template parser is used to parse the model description file to obtain the software function template, the connection relationship parser is used to parse the model description file to obtain the connection relationship between application software, the application software element parser is used to parse the model description file to obtain application software elements, and the element mapping relationship parser is used to parse the model description file to obtain element mapping relationships.

[0050] In an optional embodiment, the second tool includes: a configuration module, used to obtain the output path information of the preset target code, and configure the output path of the target code and the real-time operating environment configuration file based on the output path information; a file partition generation module, used to generate a real-time operating environment configuration file partition based on the real-time operating environment configuration file.

[0051] Specifically, the configuration module can generate a .config configuration file after being configured through the Menuconfig configuration interface tool, which can be configured to tell the ARXML parsing tool the location of ARXML in the specific project code and the location of the generated real-time runtime environment in the target project. The real-time runtime environment configuration file is configured based on the output path information, and the file partition generation module generates the real-time runtime environment configuration file partition based on the real-time runtime environment configuration file.

[0052] The real-time operating environment generation system provided by the embodiment of the present invention obtains the output path information of the preset target code, configures the output path of the target code and the real-time operating environment configuration file based on the output path information, and generates the real-time operating environment configuration file partition. The configuration file partition can be flexibly configured according to different environments and requirements to ensure the reliability and stability of the system in different environments, and can improve the performance, maintainability, security and flexibility of the system, so as to better meet the needs of the real-time operating environment.

[0053] In an optional implementation, the system further includes: a software compilation module, configured to integrate the application software into the target system for compilation based on the output path.

[0054] Specifically, the software compilation module integrates the application software in the real-time operating environment into the target system for compilation through the code compilation path added by the second tool, and detects whether the real-time operating environment meets the compilation requirements.

[0055] The real-time operating environment generation system provided by the embodiment of the present invention can ensure the compatibility and stability of application software with the target system by integrating it into the target system for compilation. By solving the dependency, interface compatibility, version compatibility and other issues related to the target system during the compilation process, errors and exceptions caused by environment mismatch can be avoided during runtime, thereby improving the stability and reliability of the application software on the target system.

[0056] In an optional implementation, the task mapping table is specifically used to map the executable code blocks of the application software in the model description file to the real-time operating environment task partitions, real-time operating environment call sequence and real-time operating environment call cycle in the target project for compiling the application software.

[0057] Specifically, the target project in software development refers to the specific project or software product that developers need to complete. In the target project, the real-time operating environment task partitions, the real-time operating environment calling sequence and the real-time operating environment calling cycle are set in advance. The task mapping table is specifically used to map the executable code blocks of the application software in the model description file to the real-time operating environment task partitions, the real-time operating environment calling sequence and the real-time operating environment calling cycle in the target project for compiling the application software.

[0058] The real-time operating environment generation system provided by the embodiment of the present invention can improve the efficiency and reliability of the system by mapping the executable code blocks of the application software into the real-time operating environment for compilation. By optimizing the code during the compilation process, a more efficient and compact machine code can be generated, reducing resource occupation and runtime overhead. At the same time, by integrating the application software with the real-time operating environment, the stability and reliability of the system can be improved.

[0059] In an optional implementation, the engineering integration interface 101 also includes an open standard architecture interface, which includes a standard interface implementation portion of a real-time operating environment for acquiring basic software in the open standard architecture and integrating the basic software with compiled application software.

[0060] Specifically, the open standard architecture interface obtains the basic software in the open standard architecture, imports the required basic software into the real-time operating environment, imports the application software that needs to be integrated into the real-time operating environment, and compiles and builds the basic software and application software according to the requirements of the real-time operating environment.

[0061] The real-time operating environment generation system provided by the embodiment of the present invention obtains basic software in an open standard architecture and integrates the basic software with compiled application software. The basic software is often platform-independent and can be used in different hardware platforms, operating systems or development environments. By integrating the basic software with the application software, the platform independence of the application software can be achieved, and the portability and scalability of the application software can be improved.

[0062] In this embodiment, a real-time operating environment generation method is provided, which can be used in the real-time operating environment generation system described in any of the above embodiments. Figure 3 is a flow chart of a method for generating a real-time operating environment according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:

[0063] Step S301, obtaining a model description file.

[0064] Specifically, the model description file (ARXML file, AUTOSAR XML) is a standard file format for describing automotive electronic systems. It is part of the AUTOSAR (Automotive Open System Architecture) open system architecture and is used to define the software and hardware construction of automotive electronic systems.

[0065] Step S302, using the first tool to obtain a basic container generation script based on the first type description tag of the model description file, the basic container includes a data type basic container, a software function template basic container, an application software element basic container and a real-time running environment partition basic container.

[0066] Specifically, different basic container objects need to call different basic container generation scripts to generate. The basic container generation script is obtained by using the first tool based on the first type description tag of the model description file. The first tool can be a compilation environment calling tool (Makefile compilation environment tool). The first type description tag of the preset model description file is used to describe the basic container generation script. The basic container generation script is a method script for generating a basic container object.

[0067] Step S303: obtaining a basic container object based on the second type description tag of the model description file, and placing the basic container object in the basic container.

[0068] Specifically, the second type description tag based on the model description file is used to describe the basic container object, which includes data types, software function templates, application software, real-time operating environment partitions and element mapping relationships.

[0069] Step S304: using a second tool to obtain a real-time operating environment configuration file partition.

[0070] Specifically, the preset output path information of the target code is obtained, the output path of the target code and the real-time operating environment configuration file are configured based on the output path information, and the real-time operating environment configuration file partition is generated based on the real-time operating environment configuration file. After the real-time operating environment is generated, the second tool adds the code compilation path, integrates the application software in the real-time operating environment into the target system for compilation, and detects whether the real-time operating environment meets the compilation requirements.

[0071] Step S305, reading the task mapping table to obtain the real-time operating environment task mapping relationship.

[0072] Specifically, the task mapping table is used to map the executable code blocks of the application software in the model description file to the real-time operating environment task partitions, real-time operating environment call sequence and real-time operating environment call cycle in the target project for compiling the application software.

[0073] Step S306, obtaining the real-time operating environment based on the basic container object, the real-time operating environment task mapping relationship and the real-time operating environment configuration file partition.

[0074] Specifically, the generated basic container object is projected to the real-time runtime environment configuration file partition based on the real-time runtime environment task mapping relationship.

[0075] The real-time operating environment generation method provided in this embodiment separates the tool from the actual project through the first tool, so that the tool is independent of the actual application project. When used, the configuration file saved in the target project is directly loaded to obtain the input and output resource list directory, so that the real-time operating environment generation system can be independently maintained and easy to integrate. Based on the basic container object, the real-time operating environment task mapping relationship and the real-time operating environment configuration file partition, the real-time operating environment is generated to solve the problem that most non-AutoSAR projects use self-developed software. Although it can save costs, there are no standard tools in the architecture design link, and the relationship between each software module cannot be controlled and maintained, thereby improving the software development quality of non-AutoSAR projects.

[0076] The verification device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0077] The embodiment of the present invention also provides a computer device having the above Figure 1 The verification device shown.

[0078] See also Figure 4 , Figure 4 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 4 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 4 A processor 10 is taken as an example.

[0079] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0080] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0081] The memory 20 may 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; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0082] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0083] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0084] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented by downloading through a network and first stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.

[0085] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A real-time operating environment generation system, It is characterized in that The system includes: an engineering integration interface, a basic container layer, a data analysis layer and a code generation layer, wherein: The engineering integration interface is used to provide an interface for calling the first tool, the second tool and the task mapping table, the first tool is used to call the basic container layer, the data analysis layer and the code generation layer, the second tool is used to obtain the real-time operating environment configuration file partition, and the task mapping table is used to obtain the real-time operating environment task mapping relationship; the second tool includes: a configuration module, which is used to obtain the preset output path information of the target code, and configure the output path of the target code and the real-time operating environment configuration file based on the output path information; a file partition generation module, which is used to generate the real-time operating environment configuration file partition based on the real-time operating environment configuration file; the task mapping table is specifically used to map the executable code blocks of the application software in the model description file to the real-time operating environment task partition, the real-time operating environment call sequence and the real-time operating environment call cycle in the target project, so as to compile the application software; The basic container layer is used to obtain a basic container generation script based on a first type description tag of a preset model description file, and the basic containers set in the basic container layer include a data type basic container, a software function template basic container, an application software element basic container, and a real-time operating environment partition basic container; the model description file is used to characterize a standard file format for describing an automotive electronic system; the first type description tag of the model description file is used to describe a basic container generation script, and the basic container generation script is a method script for generating a basic container object; The data analysis layer is used to obtain a basic container object based on the second type description tag of the model description file and the basic container generation script, and place the basic container object in the basic container; the second type description tag of the model description file is used to describe the basic container object, and the basic container object includes a data type, a software function template, an application software, a real-time operating environment partition, and an element mapping relationship; The code generation layer is used to generate a real-time operating environment based on the basic container object, the real-time operating environment task mapping relationship and the real-time operating environment configuration file partition.

2. The system according to claim 1, It is characterized in that The first tool is specifically used for: Calling a model description file parsing tool to parse the second type description tag of the model description file to obtain the basic container object directory, where the basic container object includes data types, software function templates, application software, real-time operating environment partitions, and element mapping relationships; Based on the basic container object directory, calling the corresponding basic container generation script to create a basic container object; The base container object is placed within the base container.

3. The system according to claim 2, It is characterized in that The model description file parsing tool includes a data type parser, a software function template parser, a connection relationship parser, an application software element parser and an element mapping relationship parser.

4. The system according to claim 1, It is characterized in that The system further comprises: A software compiling module is used to integrate the application software into a target system for compilation based on the output path.

5. The system according to claim 1, It is characterized in that The engineering integration interface also includes an open standard architecture interface, which includes a standard interface implementation part of a real-time operating environment and is used to obtain basic software in the open standard architecture and integrate the basic software with compiled application software.

6. A method for generating a real-time operating environment, applied to the real-time operating environment generating system according to any one of claims 1 to 5, It is characterized in that The method comprises: Get the model description file; Using the first tool to obtain a basic container generation script based on the first type description tag of the model description file, the basic container includes a data type basic container, a software function template basic container, an application software element basic container and a real-time operating environment partition basic container; Obtaining a basic container object based on the second type description tag of the model description file, and placing the basic container object in the basic container; Using a second tool to obtain a real-time operating environment configuration file partition; Read the task mapping table to obtain the task mapping relationship of the real-time operating environment; Based on the basic container object, the real-time runtime environment task mapping relationship and the real-time runtime environment configuration file partition, a real-time runtime environment is obtained.

7. A computer device, It is characterized in that include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the real-time operating environment generation method described in claim 6 by executing the computer instructions.

8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the real-time operating environment generation method according to claim 6.

Citation Information

Patent Citations

  • Numerical control system based on industrial server cluster

    CN112631207A

  • Data simulation method and device, equipment and storage medium

    CN113688026A