[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN117873650B - Real-time running environment generation system, method, computer device and storage medium - Google Patents

Real-time running environment generation system, method, computer device and storage medium Download PDF

Info

Publication number
CN117873650B
CN117873650B CN202410107593.5A CN202410107593A CN117873650B CN 117873650 B CN117873650 B CN 117873650B CN 202410107593 A CN202410107593 A CN 202410107593A CN 117873650 B CN117873650 B CN 117873650B
Authority
CN
China
Prior art keywords
real
running environment
time running
basic container
software
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410107593.5A
Other languages
Chinese (zh)
Other versions
CN117873650A (en
Inventor
李宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mgjia Beijing Technology Co ltd
Original Assignee
Mgjia Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mgjia Beijing Technology Co ltd filed Critical Mgjia Beijing Technology Co ltd
Priority to CN202410107593.5A priority Critical patent/CN117873650B/en
Publication of CN117873650A publication Critical patent/CN117873650A/en
Application granted granted Critical
Publication of CN117873650B publication Critical patent/CN117873650B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of data processing, and discloses a real-time running environment generation system, a method, computer equipment and a storage medium, wherein the system comprises the following components: the system comprises an engineering integrated interface, a basic container layer, a data analysis layer and a code generation layer, wherein the engineering integrated interface is used for providing interfaces for calling a first tool, a second tool and a task mapping table; the data analysis layer is used for generating a script based on a second type description tag of the model description file and the basic container to obtain a basic container object, and placing the basic container object in the basic container; the code generation layer is used for generating the real-time running environment based on the basic container object, the real-time running environment task mapping relation and the real-time running environment configuration file partition. By implementing the method, the model description file-based development method is introduced into the non-AutoSAR project by adopting the hierarchical design, so that the problem of weak links of software architecture design in the non-AutoSAR project is solved, and the software development quality is improved.

Description

Real-time running environment generation system, method, computer device and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a system, a method, a computer device, and a storage medium for generating a real-time operating environment.
Background
In the process of developing software for an automobile electronic system, the functional and performance requirements of the automobile electronic system need to be analyzed and defined in detail. And designing a software architecture of the automobile electronic system according to the result of the demand analysis. This includes selecting the appropriate software platform, defining the software modules and interfaces, and ensuring the scalability, reliability and security of the system. And then, coding and developing each module of the system according to the software architecture design. The developer needs to encode according to specifications and conduct unit testing to ensure the correctness of the code using the appropriate programming language and tools. And combining the developed software modules to perform system level testing. This includes functional testing, performance testing, compatibility testing, etc. to verify that the functionality and performance of the system meets the requirements. And verifying specific test cases of the system to ensure that the system can normally operate under various conditions. This includes verifying the security, stability and reliability of the system. After development and testing are completed, the software version is released to the automobile electronic system. This includes loading software into an ECU (electronic control unit) of the vehicle and performing final verification and authentication.
In an automobile electronic controller, autoSAR (Automotive Open System Architecture) is an open standard architecture for an automobile electronic system, autoSAR projects have fixed architecture design flow and paths, but AutoSAR projects mostly adopt self-grinding software, although cost can be saved, architecture design links have no standard tools, and the relation among all software modules cannot be controlled and maintained, so that how to improve the software development quality of non-AutoSAR projects becomes a difficult problem in the development process.
Disclosure of Invention
In view of this, the present invention provides a real-time operating environment generating system, method, computer device and storage medium, so as to solve the problem that most of non-AutoSAR projects adopt self-research software, while the cost can be saved, the architecture design link has no standard tool, and the relation between each software module can not be controlled and maintained, so as to improve the software development quality of non-AutoSAR projects.
In a first aspect, the present invention provides a real-time operating environment generation system, the system comprising: the system comprises an engineering integrated interface, a base container layer, a data analysis layer and a code generation layer, wherein the engineering integrated interface is used for providing interfaces for calling a first tool, a second tool and a task mapping table, the first tool is used for calling the base container layer, the data analysis layer and the code generation layer, the second tool is used for obtaining a real-time running environment configuration file partition, and the task mapping table is used for obtaining a real-time running environment task mapping relation; the base container layer is used for obtaining a base container generation script based on a first type description tag of a preset model description file, and the base container arranged in the base container layer comprises a data type base container, a software function template base container, an application software element base container and a real-time running environment partition base container; the data analysis layer is used for generating a script based on a second type description tag of the model description file and the basic container to obtain a basic container object, and placing the basic container object in the basic container; the code generation layer is used for generating a real-time running environment based on the basic container object, the real-time running environment task mapping relation and the real-time running environment configuration file partition.
According to the real-time running environment generation system provided by the embodiment of the invention, the engineering integration interface, the basic container layer, the data analysis layer and the code generation layer are integrated together, and firstly, a hierarchical design is adopted, and a model description file development method is introduced into a non-AutoSAR project, so that the weak link of software architecture design in the non-AutoSAR project is solved, and the improvement of software development quality is facilitated; and secondly, the tool is separated from the actual project through the first tool, so that the tool is irrelevant to the actual application project, the configuration file stored in the target project is directly loaded when in use, and the list catalog of the input and output resources is acquired, so that the real-time operation environment generation system can be independently maintained and is easy to integrate. Finally, based on the basic container object, the real-time running environment task mapping relation and the real-time running environment configuration file partition, a real-time running environment is generated, and the problem that the software development quality of non-AutoSAR projects is improved due to the fact that most of non-AutoSAR projects adopt self-lapping software, and although cost can be saved, a standard tool does not exist in a framework design link, and the relation among all software modules cannot be controlled and maintained is solved.
In an alternative embodiment, the first tool is specifically configured to: calling a model description file analysis tool to analyze a second type description tag of the model description file to obtain the basic container object catalog, wherein the basic container object comprises a data type, a software function template, application software, a real-time operation environment partition and an element mapping relation; calling a corresponding basic container generation script to create a basic container object based on the basic container object catalog; the base container object is placed within the base container.
According to the real-time running environment generation system provided by the embodiment of the invention, the model description file is analyzed, the main stream model description file is adapted, a plurality of definition habits are compatible, a target manufacturer is not required to be specified, the model description files generated by a plurality of existing manufacturer tools can be analyzed, and the compatibility of the real-time running environment generation system is improved.
In an alternative embodiment, the model description file parsing tool includes a data type parser, a software function template parser, a connection relation parser, an application software element parser, and an element mapping relation parser.
In an alternative embodiment, the second tool includes: the configuration module is used for acquiring output path information of a preset target code, and configuring an output path of the target code and a real-time running environment configuration file based on the output path information; and the file partition generating module is used for generating a real-time running environment configuration file partition based on the real-time running environment configuration file.
According to the real-time running environment generation system provided by the embodiment of the invention, the output path information of the preset target code is obtained, the output path of the target code and the real-time running environment configuration file are configured based on the output path information, the real-time running environment configuration file partition is generated, the configuration file partition can be flexibly configured according to different environments and requirements, so that the reliability and stability of the system under different environments are ensured, the performance, maintainability, safety and flexibility of the system are improved, and the requirements of the real-time running environment are better met.
In an alternative embodiment, the system further comprises: and the software compiling module is used for integrating the application software into a target system for compiling based on the output path.
The real-time running environment generation system provided by the embodiment of the invention can ensure the compatibility and stability of the application software and the target system by integrating the application software into the target system and compiling the application software. By solving the problems of dependency relationship, interface compatibility, version compatibility and the like related to the target system in the compiling process, errors and anomalies caused by environment mismatch can be avoided when the system runs, and the stability and reliability of the application software on the target system are improved.
In an optional implementation manner, the task mapping table is specifically used for mapping executable code blocks of the application software in the model description file to a real-time running environment task partition, a real-time running environment calling sequence and a real-time running environment calling period in the target engineering, so that the application software is compiled.
According to the real-time running environment generation system provided by the embodiment of the invention, the executable code blocks of the application software are mapped into the real-time running environment for compiling, so that the efficiency and the reliability of the system can be improved. By optimizing the code during compilation, more efficient and compact machine code can be generated, reducing resource occupation and runtime overhead. Meanwhile, by integrating the application software with the real-time running environment, the stability and reliability of the system can be improved.
In an alternative embodiment, the engineering integrated interface further includes an open standard architecture interface, where the open standard architecture interface includes a standard interface implementation part of the real-time operating environment, and is configured to obtain base software in the open standard architecture and integrate the base software with compiled application software.
The real-time running environment generation system provided by the embodiment of the invention can be used in different hardware platforms, operating systems or development environments by acquiring the basic software in the open standard architecture and integrating the basic software and the compiled application software, wherein the basic software often has platform independence. By integrating the basic software and the application software, the platform independence of the application software can be realized, and the portability and the expandability of the application software are improved.
In a second aspect, the present invention provides a method for generating a real-time running environment, the method comprising: obtaining a model description file; obtaining a basic container generation script based on a first type description tag of a model description file by using a first tool, wherein the basic container comprises 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; 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; utilizing a second tool to obtain a real-time running environment configuration file partition; reading a task mapping table to obtain a real-time operation environment task mapping relation; and obtaining the real-time running environment based on the basic container object, the real-time running environment task mapping relation and the real-time running environment configuration file partition.
In a third aspect, the present invention provides a computer device comprising: the processor executes the computer instructions, thereby executing the real-time running environment generating method according to the first aspect or any implementation manner corresponding to the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored thereon computer instructions for causing a computer to execute the real-time running environment generation method of the first aspect or any of the embodiments corresponding thereto.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block diagram of a real-time operating environment generation system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the architecture of a real-time runtime environment generation system in accordance with an embodiment of the present invention;
FIG. 3 is a flow diagram of a method of generating a real-time operating environment in accordance with an embodiment of the present invention;
Fig. 4 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the process of developing software for an automobile electronic system, the functional and performance requirements of the automobile electronic system need to be analyzed and defined in detail. And designing a software architecture of the automobile electronic system according to the result of the demand analysis. This includes selecting the appropriate software platform, defining the software modules and interfaces, and ensuring the scalability, reliability and security of the system. And then, coding and developing each module of the system according to the software architecture design. The developer needs to encode according to specifications and conduct unit testing to ensure the correctness of the code using the appropriate programming language and tools. And combining the developed software modules to perform system level testing. This includes functional testing, performance testing, compatibility testing, etc. to verify that the functionality and performance of the system meets the requirements. And verifying specific test cases of the system to ensure that the system can normally operate under various conditions. This includes verifying the security, stability and reliability of the system. After development and testing are completed, the software version is released to the automobile electronic system. This includes loading software into an ECU (electronic control unit) of the vehicle and performing final verification and authentication.
In an automobile electronic controller, autoSAR (Automotive Open System Architecture) is an open standard architecture for an automobile electronic system, autoSAR projects have fixed architecture design flow and paths, but AutoSAR projects mostly adopt self-grinding software, although cost can be saved, architecture design links have no standard tools, and the relation among all software modules cannot be controlled and maintained, so that how to improve the software development quality of non-AutoSAR projects becomes a difficult problem in the development process.
In this embodiment, a real-time running environment generation system is provided, and as used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the system described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 1 is a block diagram of a real-time execution environment generation system according to an embodiment of the present invention, as shown in fig. 1, the real-time execution environment generation system includes an engineering integration interface 101, a base container layer 102, a data analysis layer 103, and a code generation layer 104, wherein,
The engineering integration interface 101 is configured to provide an interface for calling a first tool, a second tool, and a task mapping table, where the first tool is used to call the base container layer 102, the data analysis layer 103, and the code generation layer 104, the second tool is used to obtain a real-time running environment configuration file partition, and the task mapping table is used to obtain a real-time running environment task mapping relationship.
Specifically, as shown in fig. 2, the engineering integration interface 101 is located at the top layer of the real-time running environment generating system, and is used to call the base container layer 102, the data analysis layer 103 and the code generation layer 104 through a first tool, and in an alternative manner of some embodiments, the first tool may be a compilation environment calling tool (Makefile compilation environment tool), where the Makefile compilation environment tool is a tool for building and managing software items. It can automate the compilation, linking, and generation of executable or library files for source code based on a set of rules and commands. At the heart of the Makefile compilation environment tool is a make command. When a make command is executed, it determines which files need to be recompiled according to rules defined in Makefile files, and then automatically executes corresponding compiling instructions. The second tool is used to obtain real-time runtime environment configuration file partitions, and in the alternative of some embodiments, the second tool is a configuration interface tool (Menuconfig configuration interface tool), menuconfig configuration interface tool is a convenient and flexible command line interactive configuration tool, which can be used for configuration of various items. The Menuconfig configuration interface tool is a linux tool for managing modules and functions, and a config configuration file can be generated after the Menuconfig configuration interface tool is configured, and the configurable telling model description file analyzes the position of a tool model description file in specific project codes and the position of a generated real-time running environment in a target project. In software development, real-time runtime environment configuration file partitioning is a method of partitioning configuration information, parameters, and functions of a real-time system into different configuration files. This partitioning approach may increase the flexibility and reliability of configuration management and allow for independent modification and adjustment of the various components. The task mapping table is used for obtaining the task mapping relation of the real-time running environment.
The base container layer 102 is configured to obtain a base container generation script based on a first type description tag of a preset model description file, where the base container set in the base container layer 102 includes a data type base container, a software function template base container, an application software element base container, and a real-time running environment partition base container.
Specifically, in software development, a 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 for defining the software and hardware architecture of the automotive electronics system. The model description file is mainly used for describing:
(1) Software components the ARXML file defines software components of the automotive electronics system, including ECU (Electronic Control Unit), as well as various application software, services, modules, and the like. It describes the information of functions, interfaces, scopes, etc. of the software components.
(2) Communication and signaling the ARXML document describes the manner in which communication and signaling between different software components takes place. It defines key concepts of messages, signals, ports and interfaces, as well as the connection relationships and communication protocols between them.
(3) The data type and parameters, ARXML file defines the type and parameters used to describe the data. The method comprises the definition of data types, a value range, units, analysis rules and the like, and the configuration and the transmission mode of parameters.
(4) The hardware configuration ARXML file may also describe hardware configuration information for the automotive electronics system, including hardware characteristics, circuit connections, pin mapping, etc. of the ECU. The first type description tag of the preset model description file is used for describing a basic container generation script, and the basic container generation script is a method script for generating a basic container object.
The base container layer 102 refers to the basic environment in which applications are built and managed. It provides an isolated running environment that enables applications to run on different platforms and operating systems, and the base container layer 102 defines ARXML elements that conform to the AUTOSAR standard, as shown in FIG. 2, into four major classes, data type, port interface, application software, and partition.
And the data analysis layer 103 is used for generating a script based on the second type description tag of the model description file and the basic container to obtain a basic container object, and placing the basic container object in the basic container.
Specifically, the second type description tag based on the model description file is used for describing a basic container object, and the basic container object comprises a data type, a software function template, application software, a real-time running environment partition and an element mapping relation.
The code generation layer 104 is configured to generate a real-time running environment based on the base container object, the real-time running environment task mapping relationship, and the real-time running environment configuration file partition.
Specifically, a Real-time execution environment (RTE) is a software execution environment for supporting Real-time applications, and provides a connection relationship between respective application software, and a connection relationship between application software and base software. The first tool invokes the code generation layer 104 based on the base container object, the real-time runtime environment task mapping relationship, and the real-time runtime environment profile partition.
According to the real-time running environment generation system provided by the embodiment of the invention, the engineering integration interface, the basic container layer, the data analysis layer and the code generation layer are integrated together, and firstly, a hierarchical design is adopted, and a model description file development method is introduced into a non-AutoSAR project, so that the weak link of software architecture design in the non-AutoSAR project is solved, and the improvement of software development quality is facilitated; and secondly, the tool is separated from the actual project through the first tool, so that the tool is irrelevant to the actual application project, the configuration file stored in the target project is directly loaded when in use, and the list catalog of the input and output resources is acquired, so that the real-time operation environment generation system can be independently maintained and is easy to integrate. Finally, based on the basic container object, the real-time running environment task mapping relation and the real-time running environment configuration file partition, a real-time running environment is generated, and the problem that the software development quality of the non-AutoSAR project is improved due to the fact that most of non-AutoSAR projects adopt self-research software, and although cost can be saved, a standard tool does not exist in a framework design link, and the relation among all software modules cannot be controlled and maintained is solved.
In an alternative embodiment, the first tool is specifically for: calling a model description file analysis tool, and analyzing a second type description tag of the model description file to obtain a basic container object catalog, wherein the basic container object comprises data types, a software function template, application software, a real-time running environment partition and element mapping relations; calling a corresponding basic container generation script to create a basic container object based on the basic container object catalog; the base container object is placed within the base container.
Specifically, as shown in fig. 2, the data types include an application data type, a base data type, an implementation data type, and a data type map, and the software function template refers to a predefined pattern or framework that can be used when defining a function in programming, and provides a general form that enables a developer to customize and expand according to his own needs. In software development, application software is Software Component (software components), which refers to reusable units of software 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 larger scale application systems. As shown in fig. 2, the application software includes schedulable entities, trigger events, data access points, and bus signal mapping. Real-time operating environment partitioning refers to partitioning the operating environment of a computer into different areas to ensure that real-time tasks can obtain adequate computing resources and response performance. In software development, an application software element refers to each part or component that constitutes an application program. These elements have a certain mapping relationship with each other, namely, element mapping relationship. The base container object directory includes the base container objects described in the model description file that need to be generated.
According to the real-time running environment generation system provided by the embodiment of the invention, the model description file is analyzed, the main stream model description file is adapted, a plurality of definition habits are compatible, a target manufacturer is not required to be specified, the model description files generated by a plurality of existing manufacturer tools can be analyzed, and the compatibility of the real-time running environment generation system is improved.
In an alternative embodiment, the model description file parsing tool includes a data type parser, a software function template parser, a connection relation parser, an application software element parser, and an element mapping relation parser.
Specifically, the data type analyzer is used for analyzing the model description file to obtain the data type, the software function template analyzer is used for analyzing the model description file to obtain the software function template, the connection relation analyzer is used for analyzing the model description file to obtain the connection relation between application software, the application software element analyzer is used for analyzing the model description file to obtain the application software element, and the element mapping relation analyzer is used for analyzing the model description file to obtain the element mapping relation.
In an alternative embodiment, the second tool comprises: the configuration module is used for acquiring output path information of a preset target code, and configuring an output path of the target code and a real-time running environment configuration file based on the output path information; and the file partition generating module is used for generating a real-time running environment configuration file partition based on the real-time running environment configuration file.
In particular, the configuration module may generate a config configuration file after configuration via Menuconfig configuration interface tool, which may be configured to tell the present ARXML the location of the parsing tool ARXML in a particular project code, and the location of the generated real-time running environment in the target project. The file partition generation module is used for generating a real-time running environment configuration file partition based on the real-time running environment configuration file.
According to the real-time running environment generation system provided by the embodiment of the invention, the output path information of the preset target code is obtained, the output path of the target code and the real-time running environment configuration file are configured based on the output path information, the real-time running environment configuration file partition is generated, the configuration file partition can be flexibly configured according to different environments and requirements, so that the reliability and stability of the system under different environments are ensured, the performance, maintainability, safety and flexibility of the system are improved, and the requirements of the real-time running environment are better met.
In an alternative embodiment, the system further comprises: and the software compiling module is used for integrating the application software into the target system for compiling based on the output path.
Specifically, the software compiling module integrates application software in the real-time running environment into a target system through a code compiling path added by the second tool to compile, and detects whether the real-time running environment meets compiling requirements.
The real-time running environment generation system provided by the embodiment of the invention can ensure the compatibility and stability of the application software and the target system by integrating the application software into the target system and compiling the application software. By solving the problems of dependency relationship, interface compatibility, version compatibility and the like related to the target system in the compiling process, errors and anomalies caused by environment mismatch can be avoided when the system runs, and the stability and reliability of the application software on the target system are improved.
In an alternative embodiment, the task mapping table is specifically configured to map executable code blocks of the application software in the model description file to a real-time running environment task partition, a real-time running environment call sequence, and a real-time running environment call period in the target project, and provide the application software for compiling.
Specifically, the target engineering refers to a specific project or software product to be completed by a developer in software development, in the target engineering, a real-time running environment task partition, a real-time running environment calling sequence and a real-time running environment calling period are set in advance, and a task mapping table is specifically used for mapping executable code blocks of application software in a model description file to the real-time running environment task partition, the real-time running environment calling sequence and the real-time running environment calling period in the target engineering, so that the application software is compiled.
According to the real-time running environment generation system provided by the embodiment of the invention, the executable code blocks of the application software are mapped into the real-time running environment for compiling, so that the efficiency and the reliability of the system can be improved. By optimizing the code during compilation, more efficient and compact machine code can be generated, reducing resource occupation and runtime overhead. Meanwhile, by integrating the application software with the real-time running environment, the stability and reliability of the system can be improved.
In an alternative embodiment, the engineering integrated interface 101 further includes an open standard architecture interface, where the open standard architecture interface includes a standard interface implementation part of the real-time running environment, and is configured to obtain the base software in the open standard architecture and integrate the base software with the compiled application software.
Specifically, the open standard architecture interface acquires basic software in the open standard architecture, imports required basic software into a real-time running environment, imports application software to be integrated into the real-time running environment, and compiles and constructs the basic software and the application software according to the requirements of the real-time running environment.
The real-time running environment generation system provided by the embodiment of the invention can be used in different hardware platforms, operating systems or development environments by acquiring the basic software in the open standard architecture and integrating the basic software and the compiled application software, wherein the basic software often has platform independence. By integrating the basic software and the application software, the platform independence of the application software can be realized, and the portability and the expandability of the application software are improved.
In this embodiment, a method for generating a real-time running environment is provided, which may be used in the real-time running environment generating system according to any one of the foregoing embodiments, and fig. 3 is a flowchart of a method for generating a real-time running environment according to an embodiment of the present invention, as shown in fig. 3, where the flowchart includes the following steps:
step S301, a model description file is acquired.
In particular, the model description file (ARXML file, AUTOSAR XML) is a standard file format for describing automotive electronics systems. It is part of the AUTOSAR (Automotive Open System Architecture) open system architecture for defining the software and hardware architecture of the automotive electronics system.
In step S302, a first tool is used to obtain a base container generating script based on a first type description tag of a model description file, where the base container includes a data type base container, a software function template base container, an application software element base container, and a real-time running environment partition base container.
Specifically, different base container objects need to call different base container generation scripts to generate, and a first tool is used for obtaining a base container generation script based on a first type description tag of a model description file, wherein the first tool can be a compilation environment calling tool (Makefile compilation environment tool), the first type description tag of a preset model description file is used for describing the base container generation script, and the base container generation script is a method script for generating the base container objects.
Step S303, obtaining a basic container object based on the second type description label of the model description file, and placing the basic container object in the basic container.
Specifically, the second type description tag based on the model description file is used for describing a basic container object, and the basic container object comprises a data type, a software function template, application software, a real-time running environment partition and an element mapping relation.
Step S304, using a second tool to obtain the real-time running environment configuration file partition.
Specifically, output path information of a preset target code is obtained, an output path of the target code and a real-time running environment configuration file are configured based on the output path information, and a real-time running environment configuration file partition is generated based on the real-time running environment configuration file. After the real-time running environment is generated, a second tool adds a code compiling path, application software in the real-time running environment is integrated into a target system for compiling, and whether the real-time running environment meets the compiling requirement is detected.
Step S305, reading the task mapping table to obtain the task mapping relation of the real-time operation environment.
The task mapping table is specifically used for mapping executable code blocks of application software in the model description file to real-time running environment task partitions, real-time running environment calling sequences and real-time running environment calling periods in the target engineering, and the application software is supplied for compiling.
Step S306, the real-time operation environment is obtained based on the basic container object, the real-time operation environment task mapping relation and the real-time operation environment configuration file partition.
Specifically, the generated basic container object is projected to a real-time running environment configuration file partition based on the real-time running environment task mapping relation.
According to the real-time running environment generation method, the tool is separated from the actual project through the first tool, the tool is irrelevant to the actual application project, the configuration file stored in the target project is directly loaded during use, and the input and output resource list catalogue is obtained, so that the real-time running environment generation system can be independently maintained and is easy to integrate. Based on the basic container object, the real-time running environment task mapping relation and the real-time running environment configuration file partition, a real-time running environment is generated, and the problem that the software development quality of non-AutoSAR projects is improved due to the fact that most of non-AutoSAR projects adopt self-grinding software, and the architecture design links have no standard tools and cannot control and maintain the relation among all software modules although cost can be saved is solved.
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 a memory that execute one or more software or firmware programs, and/or other devices that can provide the above-described functions.
The embodiment of the invention also provides computer equipment, which is provided with the verification device shown in the figure 1.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a computer device according to an alternative embodiment of the present invention, as shown in fig. 4, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are communicatively coupled to each other using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the computer device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In some alternative embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple computer devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 10 is illustrated in fig. 4.
The processor 10 may be a central processor, a network processor, or a combination thereof. The processor 10 may further include a hardware chip, among others. The hardware chip may be an application specific 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.
Wherein the memory 20 stores instructions executable by the at least one processor 10 to cause the at least one processor 10 to perform a method for implementing the embodiments described above.
The memory 20 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, memory 20 may optionally include memory located remotely from processor 10, which may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk, or solid state disk; the memory 20 may also comprise a combination of the above types of memories.
The computer device also includes a communication interface 30 for the computer device to communicate with other devices or communication networks.
The embodiments of the present invention also provide a computer readable storage medium, and the method according to the embodiments of the present invention described above may be implemented in hardware, firmware, or as recordable storage medium, or as first computer code stored in a remote storage medium or a non-transitory machine-readable storage medium and to be stored in a local storage medium downloaded through a network, so that the method described herein may be stored on such software processes on a storage medium using a general purpose computer, a special purpose processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, a solid state disk or the like; further, the storage medium may also comprise a combination of memories of the kind described above. It will be appreciated that a computer, processor, microprocessor controller or programmable hardware includes a storage element that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the methods illustrated by the above embodiments.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (8)

1. 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 for providing interfaces for calling a first tool, a second tool and a task mapping table, the first tool is used for calling the basic container layer, the data analysis layer and the code generation layer, the second tool is used for obtaining a real-time running environment configuration file partition, and the task mapping table is used for obtaining a real-time running environment task mapping relation; the second tool includes: the configuration module is used for acquiring output path information of a preset target code, and configuring an output path of the target code and a real-time running environment configuration file based on the output path information; the file partition generation module is used for generating a real-time running environment configuration file partition based on the real-time running environment configuration file; the task mapping table is specifically used for mapping executable code blocks of application software in the model description file to real-time running environment task partitions, real-time running environment calling sequences and real-time running environment calling periods in a target project, and supplying the application software for compiling;
The base container layer is used for obtaining a base container generation script based on a first type description tag of a preset model description file, and the base container arranged in the base container layer comprises a data type base container, a software function template base container, an application software element base container and a real-time running environment partition base container; the model description file is used for representing a standard file format for describing an automobile electronic system; the first type description tag of the model description file is used for describing a basic container generation script, and the basic container generation script is used for generating a method script of a basic container object;
The data analysis layer is used for generating a script based on a second type description tag of the model description file and the basic container to obtain a basic container object, and placing the basic container object in the basic container; the second type description tag of the model description file is used for describing the basic container object, and the basic container object comprises a data type, a software function template, application software, a real-time running environment partition and an element mapping relation;
the code generation layer is used for generating a real-time running environment based on the basic container object, the real-time running environment task mapping relation and the real-time running environment configuration file partition.
2. The system according to claim 1, wherein the first tool is specifically configured to:
calling a model description file analysis tool to analyze a second type description tag of the model description file to obtain the basic container object catalog, wherein the basic container object comprises a data type, a software function template, application software, a real-time operation environment partition and an element mapping relation;
calling a corresponding basic container generation script to create a basic container object based on the basic container object catalog;
the base container object is placed within the base container.
3. The system of claim 2, wherein the model description file parsing tool comprises a data type parser, a software function template parser, a connection relation parser, an application software element parser, and an element mapping relation parser.
4. The system of claim 1, wherein the system further comprises:
And the software compiling module is used for integrating the application software into a target system for compiling based on the output path.
5. The system of claim 1, wherein the engineering integration interface further comprises an open standard architecture interface including a standard interface implementation portion of a real-time operating environment for obtaining base software in an open standard architecture and integrating the base software with compiled application software.
6. A real-time running environment generation method applied to the real-time running environment generation system according to any one of claims 1 to 5, characterized in that the method comprises:
Obtaining a model description file;
Obtaining a basic container generation script based on a first type description tag of a model description file by using a first tool, wherein the basic container comprises 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;
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;
utilizing a second tool to obtain a real-time running environment configuration file partition;
reading a task mapping table to obtain a real-time operation environment task mapping relation;
And obtaining the real-time running environment based on the basic container object, the real-time running environment task mapping relation and the real-time running environment configuration file partition.
7. A computer device, comprising:
A memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the real-time execution environment generation method of claim 6.
8. A computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the real-time execution environment generation method of claim 6.
CN202410107593.5A 2024-01-25 2024-01-25 Real-time running environment generation system, method, computer device and storage medium Active CN117873650B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410107593.5A CN117873650B (en) 2024-01-25 2024-01-25 Real-time running environment generation system, method, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410107593.5A CN117873650B (en) 2024-01-25 2024-01-25 Real-time running environment generation system, method, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN117873650A CN117873650A (en) 2024-04-12
CN117873650B true CN117873650B (en) 2024-10-29

Family

ID=90593205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410107593.5A Active CN117873650B (en) 2024-01-25 2024-01-25 Real-time running environment generation system, method, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN117873650B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631207A (en) * 2020-12-09 2021-04-09 哈尔滨工业大学 Numerical control system based on industrial server cluster
CN113688026A (en) * 2021-09-30 2021-11-23 中汽创智科技有限公司 Data analog simulation method, device, equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901148A (en) * 2010-01-28 2010-12-01 浙江大学 Generation method of ECU parameter configuration interface based on AUTOSAR standard
US12117914B2 (en) * 2020-07-22 2024-10-15 International Business Machines Corporation Runtime environment determination for software containers
CN115981992A (en) * 2021-10-15 2023-04-18 华为技术有限公司 Verification method, device, equipment and storage medium of AUTOSAR software
CN115994025A (en) * 2021-10-18 2023-04-21 北京罗克维尔斯科技有限公司 Application program running method, device, equipment and medium
CN114296871A (en) * 2021-12-22 2022-04-08 华人运通(上海)云计算科技有限公司 Container-based continuous integration method, device and system, working node and medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631207A (en) * 2020-12-09 2021-04-09 哈尔滨工业大学 Numerical control system based on industrial server cluster
CN113688026A (en) * 2021-09-30 2021-11-23 中汽创智科技有限公司 Data analog simulation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN117873650A (en) 2024-04-12

Similar Documents

Publication Publication Date Title
US8621419B2 (en) Automating the life cycle of a distributed computing application
US20190004932A1 (en) Unit test and automation framework (utaf) system and method
KR20110134582A (en) System and method for automatic interface testing based on simulation for robot software components
CN104077140A (en) Automatic compiling method and compiling device for continuous integration
US20180157479A1 (en) Cloud service framework for toolkit deployment
US20130159994A1 (en) Application runtime expert for deployment of an application on multiple computer systems
CN113885849B (en) Application development method and device based on industrial internet platform and terminal equipment
US20220405092A1 (en) Orchestrating multi-level tools for the deployment of a network product
EP3447635A1 (en) Application architecture generation
CN116069648A (en) Software testing method, system, equipment and storage medium
US11958511B2 (en) Train signal system and linkage method therefor
CN112015371B (en) Software development device under non-embedded software platform
CN103197947A (en) Script processing method and device
CN117873650B (en) Real-time running environment generation system, method, computer device and storage medium
CN116541270B (en) Method and device for testing adaptation verification of operating system
CN115809076A (en) ECU software automation integration method and system
CN113868140A (en) Automatic testing method and storage medium
CN113626307A (en) Data verification method and device based on K8S container platform
CN118331588B (en) Code library packaging method, program packaging method and device
CN112765007A (en) Integration test method, device and storage medium
US20240160559A1 (en) Automated decoupling of unit tests
KR102600294B1 (en) Apparatus and method for automatically generating arinc based operating system health monitoring setup code for vehicle platform
CN118550784A (en) Automatic test case integration method and device and case test method and device
KR101061326B1 (en) Application Server Development System
CN118170420A (en) Code management method, system and computing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant