Software architecture generation method and device of vehicle, storage medium and electronic equipment
By constructing architecture design data and generating data packages that are suitable for each controller, the problem of the inability to design software architecture in a unified manner with existing technology is solved, and unified design of software architecture at the vehicle level and multiple heterogeneous software architecture files are realized. The generation reduces the difficulty of development.
Patent Information
- Application Number
- CN202410832787.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-27
AI Technical Summary
Existing software architecture design methods cannot meet the needs of different operating systems at the same time, resulting in the inability to uniformly design software architecture at the vehicle level, which increases the difficulty of developing SOA software architecture.
By constructing architectural design data that is suitable for each controller, including multiple architectural elements and the relationships between them, generating data packages, and generating applicable software architecture files based on the target software package, cross-operating systems and controllers can be realized Vehicle software architecture design.
It realizes the unified design of software architecture at the vehicle level, reduces the difficulty of developing SOA software architecture, provides a one-time design of a complete software architecture implementation link, and supports the generation of multiple heterogeneous software architecture files.
Smart Images

Figure CN118708174A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle software architecture, and more specifically, to a method, device, storage medium and electronic device for generating a vehicle software architecture. Background Art
[0002] The existing software architecture design methods or tools are oriented to a relatively single operating system and architecture, and are highly directional, and cannot meet the current software architecture design requirements under the diversified vehicle software operating systems. For example, in the current vehicle software architecture design, it is necessary to simultaneously meet Autosar CP, Autosar AP, QNX, and customized non-standard interfaces. However, traditional architecture design methods cannot meet the architecture design requirements of different operating systems at the same time, and multiple architecture design methods or tools are required to design the software architecture of different operating systems. In this way, it is impossible to uniformly design the software architecture at the vehicle level, which is not conducive to the development and management of the SOA software architecture, and it is impossible to achieve a one-time design of a complete software architecture implementation link for the vehicle's vehicle functional requirements. Summary of the invention
[0003] The embodiments of the present application provide a method, device, storage medium and electronic device for generating a vehicle software architecture. Based on the technical solution provided in the present application, it is possible to uniformly design the software architecture at the vehicle level and reduce the difficulty of developing the SOA software architecture.
[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0005] According to a first aspect of an embodiment of the present application, a method for generating a software architecture of a vehicle is provided, the method comprising: for each of a plurality of controllers of the vehicle, constructing at least one set of architecture design data adapted to the controller, wherein each set of architecture design data comprises a plurality of architecture elements, attribute information of each architecture element, and a relationship between two different architecture elements in the set of architecture design data, the plurality of architecture elements comprises software package elements, and at least one set of architecture design data corresponds one-to-one to at least one operating system of the controller; for each set of architecture design data, constructing a relationship between architecture elements in the set of architecture design data and architecture elements in other architecture design data other than the set of architecture design data; generating a data packet corresponding to each set of architecture design data, the data packet comprising each set of architecture design data and architecture elements in other architecture design data having a relationship with architecture elements in the set of architecture design data; when receiving an architecture generation instruction for a target software package, extracting architecture elements, attribute information and relationships associated with the target software package from a plurality of data packages of the vehicle as target data based on the software package elements corresponding to the target software package, the target software package being any one of a plurality of software packages required for the vehicle; and generating a software architecture file applicable to the target software package based on the target data.
[0006] In some embodiments of the present application, based on the aforementioned scheme, the multiple architecture elements also include controller elements, component elements, provider interface elements, consumer interface elements, and functional interface elements, and at least one set of architecture design data adapted to the controller is constructed, including: constructing at least one controller element corresponding to at least one operating system, and configuring the attribute information of each controller element; for each controller element, constructing at least one software package element required by the controller element, configuring the attribute information of each software package element, and constructing a deployment relationship between the controller element and at least one software package element; for each software package element, constructing at least one component element required by each software package element, configuring the attribute information of each component element, and constructing a deployment relationship between the software package element and at least one component element; for each component element, constructing the At least one providing interface element and at least one consuming interface element required by the component element are configured, and the attribute information of each providing interface element and the attribute information of each consuming interface element are configured, and an implementation relationship is established between the component element and the at least one providing interface element, and a consumption relationship is established between the component element and the at least one consuming interface element; for each providing interface element, at least one functional interface element that the providing interface element needs to provide is constructed, and the attribute information of each functional interface element is configured, and a design relationship is established between the providing interface element and the at least one functional interface element; for each consuming interface element, a reference relationship is established between the consuming interface element and the functional interface element in the controller element that the consuming interface element needs to call; the architecture elements, relationships and attribute information associated with each controller element are taken as a set of architecture design data.
[0007] In some embodiments of the present application, based on the aforementioned scheme, a relationship between the architectural elements in the group of architectural design data and the architectural elements in other architectural design data except the group of architectural design data is constructed, including: constructing a reference relationship between a first consumer interface element and a first functional interface element, the first consumer interface element is any one of the consumer interface elements included in the group of architectural design data, the first functional interface element belongs to a functional interface element included in other architectural design data except the group of architectural design data, and the first functional interface element is a functional interface element that the first consumer interface element needs to call.
[0008] In some embodiments of the present application, based on the aforementioned scheme, a data packet corresponding to each group of architectural design data is generated, including: reading architectural element data from each group of architectural design data of the vehicle, the architectural element data including the architectural elements and attribute information included in each group of architectural design data; reading relationship data from each group of architectural design data, the relationship data including the relationship included in each group of architectural design data, and two different architectural elements corresponding to the relationship included in each group of architectural design data; based on the read architectural element data and relationship data, generating a data packet corresponding to each group of architectural design data.
[0009] In some embodiments of the present application, based on the aforementioned solution, the data structure of the data packet is a tree structure.
[0010] In some embodiments of the present application, based on the aforementioned scheme, the architectural elements in the target data include: a target software package element, a target component element having a deployment relationship with the target software package element, a target provision interface element having an implementation relationship with the target component element, a target consumption interface element having a consumption relationship with the target component element, a target function interface element having a design relationship with the target provision interface element, and other function interface elements other than the target function interface element having a reference relationship with the target consumption interface element, wherein the target software package element is a software package element corresponding to the target software package.
[0011] In some embodiments of the present application, based on the aforementioned scheme and based on the target data, a software architecture file suitable for the target software package is generated, including: determining an operating system corresponding to an element of the target software package as the target operating system, and the target software package element is a software package element corresponding to the target software package; determining a software architecture generation module corresponding to the target operating system from a plurality of pre-built software architecture generation modules as the target software architecture generation module, and the plurality of software architecture generation modules correspond one-to-one to a plurality of operating systems of the vehicle; and sending the target data to the target architecture generation module to generate a software architecture file through the target software architecture generation module.
[0012] According to a second aspect of an embodiment of the present application, a vehicle software architecture generation device is provided, the device comprising: a first construction unit, for constructing, for each of a plurality of controllers of the vehicle, at least one set of architecture design data adapted to the controller, wherein each set of architecture design data comprises a plurality of architecture elements, attribute information of each architecture element, and a relationship between two different architecture elements in the set of architecture design data, the plurality of architecture elements comprise software package elements, and at least one set of architecture design data corresponds one-to-one to at least one operating system of the controller; a second construction unit, for constructing, for each set of architecture design data, a relationship between the architecture elements in the set of architecture design data and other architecture design data except the set of architecture design data The invention relates to a relationship between architecture elements in architecture design data; a first generation unit, used to generate a data packet corresponding to each group of architecture design data, the data packet including each group of architecture design data and architecture elements in other architecture design data that have a relationship with the architecture elements in the group of architecture design data; an extraction unit, used to extract architecture elements, attribute information and relationships associated with a target software package from multiple data packages of the vehicle as target data based on the software package elements corresponding to the target software package when an architecture generation instruction for the target software package is received, the target software package being any one of multiple software packages required for the vehicle; a second generation unit, used to generate a software architecture file applicable to the target software package based on the target data.
[0013] According to a third aspect of an embodiment of the present application, a computer-readable storage medium is provided, characterized in that at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor to implement the operations performed by the method described in any one of the first aspects above.
[0014] According to a fourth aspect of an embodiment of the present application, an electronic device is provided, comprising one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the operations performed by the method described in any one of the first aspects above.
[0015] The technical solution of the present application, in the process of generating the software architecture of the vehicle, firstly constructs corresponding architecture design data for each controller included in the vehicle and each operating system of each controller, thereby generating a data packet corresponding to each controller of the vehicle. After generating multiple data packets of the vehicle, according to the software packages that need to be developed for the vehicle, software architecture files corresponding to the software packages that need to be developed are directly generated based on the multiple data packets of the vehicle, thereby realizing the generation of various heterogeneous software architecture files under the same software architecture generation method.
[0016] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0018] Figure 1 A schematic diagram showing a flow chart of a method for generating a vehicle software architecture according to an embodiment of the present application is shown;
[0019] Figure 2 A schematic diagram showing a set of architecture design data according to an embodiment of the present application;
[0020] Figure 3 A detailed flow chart of generating a data packet corresponding to each set of architecture design data according to an embodiment of the present application is shown;
[0021] Figure 4 A detailed flow chart of generating a software architecture file applicable to a target software package based on target data according to an embodiment of the present application is shown;
[0022] Figure 5 A block diagram of a vehicle software architecture generation device according to an embodiment of the present application is shown;
[0023] Figure 6 A schematic structural diagram of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0024] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0025] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0026] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0027] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0028] It should be noted that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the objects used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those shown or described.
[0030] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all the embodiments. Based on the embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] Some embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments may be combined with each other.
[0032] See also Figure 1 , shows a flow chart of a method for generating a vehicle software architecture according to an embodiment of the present application, which specifically includes the following steps 110 to 150:
[0033] Step 110, for each of the multiple controllers of the vehicle, construct at least one set of architecture design data adapted to the controller, wherein each set of architecture design data includes multiple architecture elements, attribute information of each architecture element, and a relationship between two different architecture elements in the set of architecture design data, the multiple architecture elements include software package elements, and the at least one set of architecture design data corresponds one-to-one to at least one operating system of the controller.
[0034] In this embodiment, various groups of architecture design data of the vehicle may be generated through MDG technology based on EA software.
[0035] Among them, EA software is a general architecture design software that supports personalized customization and transformation through MDG technology to support different architecture design methods.
[0036] In this embodiment, it is assumed that the vehicle includes controller 1, controller 2, and controller 3, controller 1 corresponds to operating system 1, controller 2 corresponds to operating system 2, and controller 3 corresponds to operating system 1 and operating system 3, then for controller 1, a set of corresponding architecture design data is constructed, for controller 2, a set of corresponding architecture design data is constructed, and for controller 3, two sets of corresponding architecture design data are constructed. Finally, 4 sets of architecture design data for the vehicle are constructed.
[0037] In some embodiments, the multiple architecture elements included in the architecture design data include, in addition to software package elements, controller elements (ECU elements), component elements (Component elements), provided interface elements (ProvideInterface elements), consumed interface elements (RequiredInterface elements), and functional interface elements (Funciton elements).
[0038] In some implementations, the relationships in the architecture design data include: deployment relationships, implementation relationships, consumption relationships, design relationships, and reference relationships.
[0039] The following is an explanation of the architectural elements and relationships:
[0040] The controller element is used to point to a specific vehicle controller or chip core and receive the deployment of the software package element. The attribute information of the controller element includes, but is not limited to, the operating system information corresponding to the controller element, the name of the controller element, etc.
[0041] The software package element is used to identify the grouping of different component elements and receive the deployment of the component elements. The attribute information of the software package element includes but is not limited to the operating system information corresponding to the software package element, the software package information corresponding to the software package element, the name of the software package element, etc.
[0042] Component elements are used to design executable units of software, support custom attribute extensions, and can implement or consume interfaces. The attribute information of component elements includes but is not limited to: the function of the component element, the name of the component element, the operating cycle, the security level, etc.
[0043] Provide interface elements to design interface information that needs to be provided to the outside. In the provided interface element, specific functional interface elements can be defined. The attribute information of the provided interface element includes but is not limited to: the type and name of the provided interface element.
[0044] The consumer interface element is used to design the information of the functional interface element that needs to reference the interface element provided by the other party. In the consumer interface element, the functional interface element provided by other provider interface elements can be referenced. The attribute information of the consumer interface element includes but is not limited to: the type and name of the consumer interface element.
[0045] Function interface elements are used to define specific function entry points, supporting standard attributes (name, parameter name, type, function type, etc.) and also supporting extensible attribute definitions (synchronization exception settings, initial value settings). The attribute information of function interface elements includes but is not limited to parameter name, function type, parameter type, etc.
[0046] A deployment relationship indicates that one architecture element is placed on another architecture element. This deployment relationship is built between a package element and a controller element, and between a component element and a package element. The package element is deployed on the controller element, and the component element is deployed on the package element.
[0047] The implementation relationship indicates that the component element needs to implement an interface element. The implementation relationship is built between the component element and the interface providing element, indicating that the component element needs to implement the interface providing element.
[0048] The consumption relationship indicates that a component element calls the function of an interface element. The consumption relationship is built between a component element and a consuming interface element, indicating that the component element needs to call the function of the consuming interface element.
[0049] A reference relationship indicates that one interface element references part of the functionality of another interface element. The reference relationship is established between a consumer interface element and a functional interface element, indicating that the consumer interface element needs to reference the functional interface element.
[0050] The design relationship represents the specific design of a function. The design relationship is built between the interface providing elements and the functional interface elements.
[0051] To summarize, in this application, through the above-mentioned customized six architectural elements and five relationships, the whole vehicle software architecture design across operating systems and controllers can be realized.
[0052] In step 110, a specific implementation method of constructing at least one set of architecture design data adapted to the controller may be performed according to the following steps 111 to 117:
[0053] In this embodiment, the plurality of architecture elements further include a controller element, a component element, a provider interface element, a consumer interface element, and a function interface element.
[0054] Step 111: construct at least one controller element corresponding to at least one operating system, and configure attribute information of each controller element.
[0055] Step 112: for each controller element, construct at least one software package element required by the controller element, configure attribute information of each software package element, and construct a deployment relationship between the controller element and at least one software package element.
[0056] Step 113: for each software package element, construct at least one component element required by each software package element, configure attribute information of each component element, and construct a deployment relationship between the software package element and the at least one component element.
[0057] Step 114, for each component element, construct at least one providing interface element and at least one consuming interface element required by the component element, configure the attribute information of each providing interface element and the attribute information of each consuming interface element, and construct an implementation relationship between the component element and at least one providing interface element, and construct a consumption relationship between the component element and at least one consuming interface element.
[0058] Step 115, for each interface providing element, construct at least one functional interface element that the interface providing element needs to provide, configure attribute information of each functional interface element, and construct a design relationship between the interface providing element and at least one functional interface element.
[0059] Step 116: for each consumption interface element, a reference relationship is established between the consumption interface element and a functional interface element in the controller element that the consumption interface element needs to call.
[0060] Step 117 , taking the architecture elements, relationships and attribute information associated with each controller element as a set of architecture design data.
[0061] Combine the following Figure 2 The above steps 111 to 117 are described as follows:
[0062] See also Figure 3 , showing a schematic diagram of a set of architecture design data according to an embodiment of the present application.
[0063] exist Figure 3 In the example, it is assumed that the controller 1 of the vehicle corresponds to an operating system, and thus only one controller element needs to be constructed, which is the controller element 1, and the attribute information of the controller element 1 needs to be configured.
[0064] Furthermore, at least one software package element adapted to the controller element 1 can be constructed according to the platform function, department team responsibilities, supplier division of labor, etc., assuming that software package element 11 and software package element 12 are constructed. Then it is necessary to configure the attribute information of software package element 11, and configure the attribute information of software package element 12, and it is necessary to deploy both software package element 11 and software package element 12 on the controller element 1, so that a deployment relationship is generated between the controller element 1 and software package element 11, and a deployment relationship is generated between the controller element 1 and software package element 12.
[0065] Furthermore, it is necessary to construct the component elements required by software package element 11 and the component elements required by software package element 12. Assuming that software package element 11 requires component element 11 and software package element 12 requires component element 12, it is necessary to configure the attribute information of component element 11 and deploy the constructed component element 11 on software package 11 so that a deployment relationship is generated between software package element 11 and component element 11. Assuming that software package element 12 requires component element 12, it is necessary to configure the attribute information of component element 12 and deploy the constructed component element 12 on software package element 12 so that a deployment relationship is generated between software package element 12 and component element 11.
[0066] Further, for component element 11, it is necessary to construct at least one interface providing element and at least one interface consuming element required by component element 11. Assuming that component element 11 needs to provide interface element 11 and consume interface element 11, it is necessary to configure the attribute information of interface providing element 11, configure the attribute information of interface consuming element 11, and construct an implementation relationship between component element 11 and interface providing element 11, and construct a consumption relationship between component element 11 and interface consuming element 11. In addition, for component element 12, it is necessary to construct at least one interface providing element and at least one interface consuming element required by component element 12. Assuming that component element 12 needs to provide interface element 12 and consume interface element 12, it is necessary to configure the attribute information of interface providing element 12, configure the attribute information of interface consuming element 12, and construct an implementation relationship between component element 12 and interface providing element 12, and construct a consumption relationship between component element 12 and interface consuming element 12.
[0067] Further, for providing interface element 11, it is necessary to construct at least one functional interface element that interface element 11 needs to provide. Assuming that providing interface element 11 requires functional interface element 11, it is necessary to configure the attribute information of functional interface element 11, and generate a design relationship between providing interface element 11 and functional interface element 11; for providing interface element 12, it is necessary to construct at least one functional interface element that interface element 12 needs to provide. Assuming that providing interface element 12 requires functional interface element 12, it is necessary to configure the attribute information of functional interface element 12, and generate a design relationship between providing interface element 12 and functional interface element 12.
[0068] Further, for consumer interface element 11, it is necessary to determine the functional interface element that needs to be called from the functional interface element 11 and the functional interface element 12 in the controller element 1. Assuming that consumer interface element 11 needs to call functional interface element 12, a reference relationship needs to be generated between consumer interface element 11 and functional interface element 12. For consumer interface element 12, it is necessary to determine the functional interface element that needs to be called from the functional interface element 11 and the functional interface element 12 in the controller element 1. Assuming that consumer interface element 12 needs to call functional interface element 11, a reference relationship needs to be generated between consumer interface element 12 and functional interface element 11 ( Figure 2 not shown).
[0069] Furthermore, a set of architecture design data corresponding to the controller 1 includes: Figure 2The information shown in the diagram includes the following architectural elements: controller element 1, package element 11, package element 12, component element 11, component element 12, provider interface element 11, consumer interface element 11, provider interface element 12, consumer interface element 12, function interface element 11, and function interface element 12. Figure 2 The attribute information of each architectural element shown in the figure and the relationships included are: deployment relationship, realization relationship, consumption relationship, design relationship, and reference relationship.
[0070] Continue to see Figure 1 , step 120, for each set of architecture design data, construct a relationship between the architecture elements in the set of architecture design data and the architecture elements in other architecture design data except the set of architecture design data.
[0071] In this embodiment, the above step 120 can be implemented based on EA software and through MDG technology.
[0072] It can be understood that the vehicle includes multiple controllers, and each controller has at least one corresponding set of architecture design data. Therefore, after constructing a set of architecture design data for the vehicle, it is necessary to construct the relationship between the architecture elements in two different sets of architecture design data for the vehicle.
[0073] In this embodiment, the specific implementation can be performed according to the following step 121:
[0074] Step 121: Construct a reference relationship between the first consumption interface element and the first functional interface element, where the first consumption interface element is any one of the consumption interface elements included in the group of architecture design data, the first functional interface element belongs to a functional interface element included in other architecture design data other than the group of architecture design data, and the first functional interface element is a functional interface element that the first consumption interface element needs to call.
[0075] Exemplarily, for the vehicle controller 1, the corresponding architecture design data 1 includes a consumer interface element 11, and for the vehicle controller 2, the corresponding architecture design data 2 includes a functional interface element 21 and a functional interface element 22. If it is determined that the consumer interface 11 needs to call the functional interface element 21 in the architecture design data 2, then the consumer interface element 11 is defined as the first consumer interface element in the architecture design data 1, and the functional interface element 21 is defined as the first functional interface element. A reference relationship is generated between the consumer interface element 11 and the functional interface element 21.
[0076] In summary, based on the above steps 110 to 120, all controller elements, software package elements, component elements, provider interface elements, consumer interface elements, and functional interface elements can be constructed at the vehicle level, and the relationship between two different architecture elements at the vehicle level can be constructed.
[0077] Continue to see Figure 1 , step 130, generating a data packet corresponding to each set of architectural design data, wherein the data packet includes each set of architectural design data and architectural elements in other architectural design data that have a relationship with the architectural elements in the set of architectural design data.
[0078] It should be noted that the architectural elements in other architectural design data that have a relationship with the architectural elements in this group of architectural design data are mainly functional interface elements in other architectural design data that have a reference relationship with the consumption interface elements in this group of architectural design data.
[0079] In some implementations, step 130 may be implemented based on the Add-in technology of EA software. Specifically, step 130 may be implemented by developing an architecture file to generate a plug-in through the Add-in technology of EA software.
[0080] The specific implementation of step 130 can be as follows: Figure 3 Follow the steps shown.
[0081] See also Figure 3 , step 131 , reading architecture element data from each set of architecture design data of the vehicle, the architecture element data including architecture elements and attribute information included in each set of architecture design data.
[0082] In some embodiments, the plug-in generated by the Add-in technology of the EA software can be configured to include a controller element reading module, a software package element reading module, a component element reading module, an interface element reading module, and a functional interface element reading module.
[0083] The controller element reading module is used to read controller element data from each set of architecture design data of the vehicle, and the controller element data includes the controller elements included in each set of architecture design data and attribute information of the controller elements.
[0084] The software package element reading module is used to read software package element data from each set of architecture design data of the vehicle, and the software package element data includes the software package elements included in each set of architecture design data of the vehicle and attribute information of the software package elements.
[0085] The component element reading module is used to read component element data from each set of architecture design data of the vehicle, and the component element data includes component elements included in each set of architecture design data of the vehicle, and attribute information of the component elements.
[0086] Among them, the interface element reading module is used to read interface element data from each group of architecture design data of the vehicle, and the interface element data includes the providing interface elements and consuming interface elements included in each group of architecture design data of the vehicle, as well as the attribute information of the providing interface elements and the attribute information of the consuming interface elements.
[0087] Among them, the functional interface element reading module is used to read functional interface element data from each group of architecture design data of the vehicle, and the functional interface element data includes the functional interface elements included in each group of architecture design data of the vehicle, and attribute information of the functional interface elements.
[0088] Furthermore, the controller element data read by the controller element reading module, the software package element data read by the software package element reading module, the component element data read by the component element reading module, the interface element data read by the interface element reading module, and the functional interface element data read by the functional interface element reading module are used as the architecture element data read from each group of architecture design data of the vehicle.
[0089] Step 132 , reading relationship data from each set of architecture design data, where the relationship data includes the relationship included in each set of architecture design data and two different architecture elements corresponding to the relationship included in each set of architecture design data.
[0090] It can be understood that the relationship included in the constructed architecture design data corresponds to two different architecture elements, so when reading the relationship, two different architecture elements corresponding to one relationship can be read.
[0091] In some implementations, the plug-in generated by the Add-in technology of the EA software may also be configured to include a relationship reading module.
[0092] The relationship reading module is used to read the deployment relationship, implementation relationship, design relationship, consumption relationship, and reference relationship included in each set of architecture design data of the vehicle, and also reads the source architecture element and target architecture element corresponding to each relationship. The source architecture element and the target architecture element are two different architecture elements corresponding to one relationship.
[0093] Exemplarily, the relationship reading module reads Figure 2When reading a set of architectural design data of the controller 1 shown, it is necessary to read the deployment relationship, design relationship, implementation relationship, consumption relationship, and reference relationship included in the set of architectural design data, wherein the source architectural element corresponding to the reference relationship is the consumption interface element 11, and the corresponding target architectural element is the functional interface element 12.
[0094] Step 133 , generating a data package corresponding to each set of architecture design data based on the read architecture element data and relationship data.
[0095] In some implementations, the plug-in generated by the Add-in technology of the EA software may also be configured to include a data fusion module, and the data fusion module is used to implement the above step 133.
[0096] In some implementations, the data structure included in the data is a tree structure.
[0097] In this embodiment, the data fusion module composes a data packet with a tree structure corresponding to each piece of architectural design data based on the read architectural element data and relationship data.
[0098] It is understandable that as many sets of architecture design data are constructed, as many data packets can be generated.
[0099] Below Figure 2 As an example, the generation and Figure 2 The architecture design data shown corresponds to a specific process of a data packet.
[0100] Take controller element 1 as the root node, then hang two software package element nodes under controller element 1, namely software package element node 11 and software package element node 12, and list software package element 11 deployed under controller element 1 at software package element node 11, and list software package element 12 deployed under controller 1 at software package element node 12, then hang component element node 11 and component element node 12 under software package element 11, list component element 11 deployed under software package element 11 at component element node 11, and list component element 12 deployed under software package element 12 at component element node 12.
[0101] Afterwards, under the component element 11, the providing interface element node 11 and the consuming interface element node 11 are hung, and the providing interface elements 11 that have an implementation relationship with the component element 11 are listed at the providing interface element node 11, and the consuming interface elements 11 that have a consumption relationship with the component element 11 are listed at the consuming interface element node 11; under the component element 12, the providing interface element 12 and the consuming interface element node 12 are hung, and the providing interface elements 12 that have an implementation relationship with the component element 12 are listed at the providing interface element node 12, and the consuming interface elements 12 that have a consumption relationship with the component element 12 are listed at the consuming interface element node 12.
[0102] Afterwards, a functional interface element node 11 is hung under the providing interface element 11, and the functional interface elements 11 that have a design relationship with the providing interface element 11 are listed at the functional interface element node 11; a functional interface element node 12 is hung under the providing interface element 12, and the functional interface elements 12 that have a design relationship with the providing functional interface element 12 are listed at the functional interface element node 12.
[0103] Afterwards, a functional interface element node 13 is attached under the consumer interface element 11, and other functional interface elements that have a reference relationship with the consumer interface element 11 are listed at the functional interface element node 13. A functional interface element node 14 is attached under the consumer interface element 12, and other functional interface elements that have a reference relationship with the consumer interface element 12 are listed at the functional interface element node 14.
[0104] It can be understood that generating a data packet with a tree structure facilitates the extraction of required data from the data packet when subsequently generating the architecture file of the software package, thereby facilitating the generation of the architecture file and improving the generation efficiency of the vehicle software architecture.
[0105] Continue to see Figure 1 , step 140, when an architecture generation instruction for a target software package is received, based on the software package elements corresponding to the target software package, architecture elements, attribute information and relationships associated with the target software package are extracted from the plurality of data packages of the vehicle as target data, the target software package being any one of the plurality of software packages required by the vehicle.
[0106] In some implementations, the plug-in generated by the Add-in technology of the EA software may also be configured to include a data processing module, and the data processing module is used to implement the above step 140.
[0107] It should be noted that multiple software packages for a vehicle need to be provided by different software package suppliers, so it is necessary to build corresponding architecture files for the required software packages to guide the suppliers to develop the required software packages.
[0108] When a software package among multiple software packages required for a vehicle needs to be developed, it is used as a target software package, and then an architecture generation instruction for the target software package is sent to the data processing module.
[0109] In some embodiments, the architecture elements included in the target data include: a target software package element, a target component element having a deployment relationship with the target software package element, a target provision interface element having an implementation relationship with the target component element, a target consumption interface element having a consumption relationship with the target component element, a target function interface element having a design relationship with the target provision interface element, and other function interface elements other than the target function interface element having a reference relationship with the target consumption interface element, wherein the target software package element is a software package element corresponding to the target software package.
[0110] In some embodiments, the relationships included in the target data include: a deployment relationship between a target component element and a target software package element, an implementation relationship between a target provided interface element and a target component element, a consumption relationship between a target consumer interface element and a target component element, a design relationship between a target provided interface element and a target functional element, a reference relationship between other functional interface elements and target consumer interface elements, and a reference relationship between a target functional interface element and a target consumer interface element.
[0111] In some embodiments, the attribute information included in the target data includes: attribute information of the target software element package, attribute information of the target component element, attribute information of the target provided interface element, attribute information of the target consumer interface element, attribute information of the target functional interface element, and attribute information of other functional interface elements.
[0112] Continue to see Figure 1 , step 150, generating a software architecture file suitable for the target software package based on the target data.
[0113] In step 150, the specific implementation method can be as follows: Figure 4 The steps shown are performed:
[0114] See also Figure 4 , shows a detailed flow chart of generating a software architecture file applicable to a target software package based on target data according to an embodiment of the present application, which specifically includes the following steps 141 to 143:
[0115] Step 151, determining an operating system corresponding to a target software package element as the target operating system, and the target software package element is a software package element corresponding to the target software package.
[0116] It is understandable that since the target software package element is configured with attribute information, the attribute information configured with the target software package element includes the operating system corresponding to the target software package element. Therefore, after determining the target software package element corresponding to the target software package, the operating system corresponding to the target software package element can be determined.
[0117] Continue to see Figure 4 , step 152, determining a software architecture generation module corresponding to the target operating system from a plurality of pre-built software architecture generation modules as the target software architecture generation module, wherein the plurality of software architecture generation modules correspond one-to-one to the plurality of operating systems of the vehicle.
[0118] In the present application, multiple software architecture generation modules corresponding to multiple operating systems of the vehicle can be pre-built. By way of example, a software architecture generation module for an Autosar-CP system, a software architecture generation module for an Autoscar-AP system, a software architecture generation module for a QNX system, a software architecture generation module for a custom system, and other extensible software architecture generation modules can also be built.
[0119] It is understandable that each software architecture generation module is only responsible for generating the architecture file of the operating system corresponding to itself.
[0120] Continue to see Figure 4 , step 153, sending the target data to the target architecture generation module to generate a software architecture file through the target software architecture generation module.
[0121] It can be understood that since the target architecture generation module is pre-built, the target data is sent to the target software architecture generation module, and the target software architecture generation module automatically generates an architecture file suitable for the target software package, thereby guiding developers to develop the target software package based on the architecture file.
[0122] In the technical solutions provided in some embodiments of the present application, in the process of generating the software architecture of a vehicle, firstly, corresponding architecture design data are constructed for each controller included in the vehicle and each operating system of each controller, so as to generate a data packet corresponding to each controller of the vehicle. After generating multiple data packets of the vehicle, according to the software packages that need to be developed for the vehicle, software architecture files corresponding to the software packages that need to be developed are directly generated according to the multiple data packets of the vehicle, thereby realizing the generation of various heterogeneous software architecture files under the same software architecture generation method.
[0123] This application defines a new method for generating the software architecture of the whole vehicle, and realizes the design of the software architecture of the whole vehicle in the EA software. In the software design stage, there is no need to worry about the specific model of the controller and the type of operating system, and a unified software architecture design method is provided. After the software architecture design is completed, when generating a specific executable architecture file, according to the specific configuration, the format file required by the target software package can be generated, and various heterogeneous software architecture files under the same architecture design can be generated. It can realize the unified design of software architecture at the whole vehicle level, reduce the development difficulty of SOA software architecture, and provide a realization link for designing a complete software architecture for the whole vehicle functional requirements at one time.
[0124] Based on the same inventive concept, an embodiment of the present invention provides a vehicle software architecture generation device, which can be used to execute the vehicle software architecture generation method in the above embodiment of the present application. For details not disclosed in the embodiment of the present application, please refer to the embodiment of the vehicle software architecture generation method in the above embodiment of the present application.
[0125] See also Figure 5 , shows a block diagram of a vehicle software architecture generation device according to an embodiment of the present application.
[0126] like Figure 5 As shown, a vehicle software architecture generation device 500 according to an embodiment of the present application includes: a first construction unit 501, a second construction unit 502, a first generation unit 503, an extraction unit 504, and a second generation unit 504.
[0127] The first construction unit 501 is used to construct at least one set of architecture design data adapted to each of the multiple controllers of the vehicle, wherein each set of architecture design data includes multiple architecture elements, attribute information of each architecture element, and a relationship between two different architecture elements in the set of architecture design data, the multiple architecture elements include software package elements, and at least one set of architecture design data corresponds to at least one operating system of the controller; the second construction unit 502 is used to construct, for each set of architecture design data, a relationship between the architecture elements in the set of architecture design data and architecture elements in other architecture design data except the set of architecture design data; The first generation unit 503 is used to generate a data packet corresponding to each group of architecture design data, the data packet including each group of architecture design data and architecture elements in other architecture element data that have a relationship with the architecture elements in the group of architecture design data; the extraction unit 504 is used to extract the architecture elements, attribute information and relationships associated with the target software package from multiple data packets of the vehicle as target data based on the software package elements corresponding to the target software package when receiving an architecture generation instruction for the target software package, the target software package is any one of multiple software packages required for the vehicle; the second generation unit 505 is used to generate a software architecture file suitable for the target software package based on the target data.
[0128] In some embodiments of the present application, based on the aforementioned scheme, the multiple architecture elements also include controller elements, component elements, provider interface elements, consumer interface elements, and functional interface elements, and the first construction unit 501 is also used to: construct at least one controller element corresponding to at least one operating system, and configure the attribute information of each controller element; for each controller element, construct at least one software package element required by the controller element, configure the attribute information of each software package element, and establish a deployment relationship between the controller element and at least one software package element; for each software package element, construct at least one component element required by each software package element, configure the attribute information of each component element, and establish a deployment relationship between the software package element and at least one component element; for each component element, construct the required At least one providing interface element and at least one consuming interface element are configured, and the attribute information of each providing interface element and the attribute information of each consuming interface element are configured, and an implementation relationship is established between the component element and at least one providing interface element, and a consumption relationship is established between the component element and at least one consuming interface element; for each providing interface element, at least one functional interface element that the providing interface element needs to provide is constructed, and the attribute information of each functional interface element is configured, and a design relationship is established between the providing interface element and at least one functional interface element; for each consuming interface element, a reference relationship is established between the consuming interface element and the functional interface element in the controller element that the consuming interface element needs to call; the architecture elements, relationships and attribute information associated with each controller element are taken as a set of architecture design data.
[0129] In some embodiments of the present application, based on the aforementioned scheme, the second construction unit 502 is also used to: construct a reference relationship between the first consumption interface element and the first functional interface element, the first consumption interface element is any one of the consumption interface elements included in the group of architecture design data, the first functional interface element belongs to a functional interface element included in other architecture design data except the group of architecture design data, and the first functional interface element is a functional interface element that the first consumption interface element needs to call.
[0130] In some embodiments of the present application, based on the aforementioned scheme, the first generation unit 503 is also used to: read architecture element data from each group of architecture design data of the vehicle, the architecture element data including the architecture elements and attribute information included in each group of architecture design data; read relationship data from each group of architecture design data, the relationship data including the relationship included in each group of architecture design data, and two different architecture elements corresponding to the relationship included in each group of architecture design data; based on the read architecture element data and relationship data, generate a data packet corresponding to each group of architecture design data.
[0131] In some embodiments of the present application, based on the aforementioned solution, the data structure of the data packet is a tree structure.
[0132] In some embodiments of the present application, based on the aforementioned scheme, the architectural elements in the target data include: a target software package element, a target component element having a deployment relationship with the target software package element, a target provision interface element having an implementation relationship with the target component element, a target consumption interface element having a consumption relationship with the target component element, a target function interface element having a design relationship with the target provision interface element, and other function interface elements other than the target function interface element having a reference relationship with the target consumption interface element, wherein the target software package element is a software package element corresponding to the target software package.
[0133] In some embodiments of the present application, based on the aforementioned scheme, the second generation unit 505 is also used to: determine the operating system corresponding to the target software package element as the target operating system, and the target software package element is the software package element corresponding to the target software package; determine the software architecture generation module corresponding to the target operating system from multiple pre-built software architecture generation modules as the target software architecture generation module, and the multiple software architecture generation modules correspond one-to-one to multiple operating systems of the vehicle; send the target data to the target architecture generation module to generate a software architecture file through the target software architecture generation module.
[0134] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium, in which at least one computer program instruction is stored. The at least one computer program instruction is loaded and executed by a processor to implement the operations performed by the method described above.
[0135] Based on the same inventive concept, an embodiment of the present application also provides an electronic device.
[0136] See also Figure 6 , shows a schematic diagram of the structure of an electronic device according to an embodiment of the present application, wherein the electronic device includes one or more memories 604, one or more processors 602, and at least one computer program (computer program instruction) stored in the memory 604 and executable on the processor 602, and the processor 602 implements the method described above when executing the computer program.
[0137] Among them, Figure 6In the embodiment of the present invention, a bus architecture (represented by bus 600) is shown, which may include any number of interconnected buses and bridges, and bus 600 links various circuits including one or more processors represented by processor 602 and memory represented by memory 604. Bus 600 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 605 provides an interface between bus 600 and receiver 601 and transmitter 603. Receiver 601 and transmitter 603 may be the same element, namely a transceiver, providing a unit for communicating with various other devices over a transmission medium. Processor 602 is responsible for managing bus 600 and general processing, while memory 604 may be used to store data used by processor 602 when performing operations.
[0138] The functions described herein may be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions may be stored as one or more instructions or codes on a computer-readable medium or transmitted via a computer-readable medium. Other examples and implementations are within the scope and spirit of the present application and the appended claims. For example, due to the nature of software, the functions described above may be implemented using software executed by a processor, hardware, firmware, hard wiring, or a combination of any of these. In addition, each functional unit may be integrated into a processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit.
[0139] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0140] The units described as separate components may or may not be physically separated, and the components of the control device may or may not be physical units, that is, they may be located in one place or distributed in multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0141] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly or all or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc., which can store computer program instructions.
[0142] The above description is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.
Claims
1. A method for generating a vehicle software architecture, It is characterized in that The method comprises: For each of a plurality of controllers of the vehicle, construct at least one set of architecture design data adapted to the controller, wherein each set of architecture design data includes a plurality of architecture elements, attribute information of each architecture element, and a relationship between two different architecture elements in the set of architecture design data, the plurality of architecture elements include software package elements, and the at least one set of architecture design data corresponds one-to-one to at least one operating system of the controller; For each set of architecture design data, construct a relationship between architecture elements in the set of architecture design data and architecture elements in other architecture design data except the set of architecture design data; Generate a data packet corresponding to each set of architectural design data, the data packet including each set of architectural design data and architectural elements in other architectural design data that have a relationship with the architectural elements in the set of architectural design data; When receiving an architecture generation instruction for a target software package, extracting architecture elements, attribute information and relationships associated with the target software package from a plurality of data packages of the vehicle as target data based on software package elements corresponding to the target software package, the target software package being any one of a plurality of software packages required by the vehicle; Based on the target data, a software architecture file suitable for the target software package is generated.
2. The method according to claim 1, It is characterized in that The plurality of architecture elements further include a controller element, a component element, a provider interface element, a consumer interface element, and a function interface element, and the step of constructing at least one set of architecture design data adapted to the controller includes: Constructing at least one controller element corresponding to the at least one operating system, and configuring attribute information of each controller element; For each controller element, construct at least one software package element required by the controller element, configure attribute information of each software package element, and establish a deployment relationship between the controller element and at least one software package element; For each software package element, construct at least one component element required by each software package element, configure attribute information of each component element, and establish a deployment relationship between the software package element and the at least one component element; For each component element, construct at least one providing interface element and at least one consuming interface element required by the component element, configure attribute information of each providing interface element and attribute information of each consuming interface element, and construct a realization relationship between the component element and at least one providing interface element, and construct a consumption relationship between the component element and at least one consuming interface element; For each provided interface element, construct at least one functional interface element that the provided interface element needs to provide, configure attribute information of each functional interface element, and establish a design relationship between the provided interface element and at least one functional interface element; For each consumer interface element, a reference relationship is established between the consumer interface element and a functional interface element in the controller element that the consumer interface element needs to call; The architectural elements, relationships, and attribute information associated with each controller element are taken as a set of architectural design data.
3. The method according to claim 2, It is characterized in that The step of constructing a relationship between the architecture elements in the set of architecture design data and the architecture elements in other architecture design data other than the set of architecture design data includes: A reference relationship is established between the first consumption interface element and the first functional interface element, the first consumption interface element is any one of the consumption interface elements included in the group of architecture design data, the first functional interface element belongs to a functional interface element included in other architecture design data except the group of architecture design data, and the first functional interface element is a functional interface element that the first consumption interface element needs to call.
4. The method according to claim 1, It is characterized in that The generating of a data packet corresponding to each set of architecture design data comprises: Reading architecture element data from each set of architecture design data of the vehicle, the architecture element data including architecture elements and attribute information included in each set of architecture design data; Reading relationship data from each set of architecture design data, the relationship data including the relationship included in each set of architecture design data, and two different architecture elements corresponding to the relationship included in each set of architecture design data; Based on the read architecture element data and relationship data, a data package corresponding to each set of architecture design data is generated.
5. The method according to claim 4, It is characterized in that The data structure of the data packet is a tree structure.
6. The method according to claim 3, It is characterized in that The architecture elements in the target data include: a target software package element, a target component element having a deployment relationship with the target software package element, a target provision interface element having an implementation relationship with the target component element, a target consumption interface element having a consumption relationship with the target component element, a target function interface element having a design relationship with the target provision interface element, and other function interface elements other than the target function interface element having a reference relationship with the target consumption interface element, wherein the target software package element is a software package element corresponding to the target software package.
7. The method according to claim 1, It is characterized in that The step of generating a software architecture file applicable to the target software package based on the target data includes: Determine an operating system corresponding to a target software package element as the target operating system, wherein the target software package element is a software package element corresponding to the target software package; Determining, from a plurality of pre-built software architecture generation modules, a software architecture generation module corresponding to the target operating system as a target software architecture generation module, wherein the plurality of software architecture generation modules correspond one-to-one to the plurality of operating systems of the vehicle; The target data is sent to the target architecture generation module so that the software architecture file is generated by the target software architecture generation module.
8. A vehicle software architecture generation device, It is characterized in that The device comprises: A first construction unit is used to construct, for each of a plurality of controllers of the vehicle, at least one set of architecture design data adapted to the controller, wherein each set of architecture design data includes a plurality of architecture elements, attribute information of each architecture element, and a relationship between two different architecture elements in the set of architecture design data, the plurality of architecture elements include software package elements, and the at least one set of architecture design data corresponds one-to-one to at least one operating system of the controller; A second construction unit is used to construct, for each set of architecture design data, a relationship between architecture elements in the set of architecture design data and architecture elements in other architecture design data except the set of architecture design data; A first generating unit is used to generate a data packet corresponding to each set of architecture design data, wherein the data packet includes each set of architecture design data and architecture elements in other architecture design data that have a relationship with the architecture elements in the set of architecture design data; an extraction unit, configured to extract, when receiving an architecture generation instruction for a target software package, architecture elements, attribute information and relationships associated with the target software package from a plurality of data packages of the vehicle based on software package elements corresponding to the target software package as target data, the target software package being any one of a plurality of software packages required by the vehicle; The second generating unit is used to generate a software architecture file suitable for the target software package based on the target data.
9. An electronic device, It is characterized in that The method comprises one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the operations performed by the method according to any one of claims 1 to 7.
