Integration method, integration device, electronic equipment and computer readable storage medium

By obtaining the configuration template of the automotive open system architecture and adjusting the configuration information of the software components of the non-automotive open system architecture, the problem of cumbersome integration process is solved, efficient and convenient software component integration is achieved, and the cost and time expenditure are reduced.

CN118535211APending Publication Date: 2024-08-23SHANGHAI XUANYI NEW ENERGY DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410594249.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing technology makes it difficult to easily integrate software components of non-automotive open system architecture into the domain controller of the automotive open system architecture, resulting in a cumbersome and time-consuming integration process that requires complex writing and testing.

Method used

By obtaining the configuration template of the automotive open system architecture, substituting non-automotive open system architecture software components into the template, extracting and adjusting their configuration information to make it comply with the requirements of the automotive open system architecture, thereby achieving integration.

Benefits of technology

It realizes the convenient and accurate integration of non-automotive open system architecture software components into the automotive open system architecture domain controller, reduces the workload of rewriting and testing, improves integration efficiency, and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535211A
    Figure CN118535211A
Patent Text Reader

Abstract

The invention relates to an integration method, which is used for integrating software components of a non-automobile open system architecture in a battery management system into a domain controller of an automobile open system architecture, and comprises the following steps: acquiring a first configuration template which is a configuration template of the automobile open system architecture and comprises configuration attributes of the automobile open system architecture; substituting the software component of the non-automobile open system architecture into the first configuration template to obtain a first software component; and extracting the configuration information of the first software component, and performing component configuration on the first software component according to the configuration information of the first software component and the configuration requirements of the automobile open system architecture, so that the configuration of the first software component conforms to the configuration of the automobile open system architecture, and completing the integration of the software components of the non-automobile open system architecture. According to the invention, the software component of the non-automobile open system architecture can be integrated into the domain controller of the automobile open system architecture. The invention further discloses an integration device, electronic equipment and a computer readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of battery management system software and relates to an integration method for integrating software components of a non-automotive open system architecture in a battery management system into a domain controller of an automotive open system architecture. Background Art

[0002] Currently, domain controllers and battery management system software are usually provided by different suppliers, which leads to a mismatch between the architecture of the battery management system software and the software architecture of the domain controller. AUTomotive Open System Architecture (AUTOSAR) is a widely used software architecture. For battery management system software that is not based on an AUTOSAR architecture, the software components of the non-AUTOSAR architecture need to be converted into software components of the AUTOSAR architecture before they can be integrated into the domain controller of the AUTOSAR architecture.

[0003] For software components of non-automotive open system architecture that have been written, the domain controller integration method of battery management system software in the prior art is generally that the software supplier rewrites the software components according to the specifications of the automotive open system architecture of the domain controller, manually performs complex and tedious integration configuration of the software components of the non-automotive open system architecture according to the software architecture of the domain controller, and then puts the configured software components into the software of the domain controller, and then performs integrated configuration debugging. Among them, the complex and tedious integration configuration is often the integration configuration of all attributes.

[0004] The existing method of rewriting software components according to the automotive open system architecture is cumbersome and complicated, and the work is time-consuming. There has been no effective solution to how to conveniently integrate software components of non-automotive open system architecture into the domain controller of the automotive open system architecture. Summary of the invention

[0005] The purpose of the present invention is to solve the problem of how to conveniently integrate non-automotive open system architecture software components into a domain controller of an automotive open system architecture.

[0006] In a first aspect, the present invention provides an integration method, which obtains a configuration template of an automotive open system architecture, substitutes software components of a non-automotive open system architecture into the configuration template of the automotive open system architecture, and performs component configuration. This method conveniently integrates software components of a non-automotive open system architecture into a domain controller of the automotive open system architecture, thereby reducing the time and cost of manually rewriting software components.

[0007] To solve the above technical problems, an embodiment of the present invention discloses an integration method for integrating software components of a non-automotive open system architecture in a battery management system into a domain controller of an automotive open system architecture, including: obtaining a first configuration template, the first configuration template being a configuration template of an automotive open system architecture, and containing configuration attributes of the automotive open system architecture; substituting the software components of the non-automotive open system architecture into the first configuration template to obtain a first software component; extracting configuration information of the first software component, and configuring the first software component according to the configuration information of the first software component and the configuration requirements of the automotive open system architecture, so that the configuration of the first software component conforms to the configuration of the automotive open system architecture, thereby completing the integration of the software components of the non-automotive open system architecture.

[0008] By adopting the above technical solution, software components of non-automotive open system architecture can be integrated into the domain controller of the automotive open system architecture quickly and accurately. This is fast and convenient, does not require complex compilation, reduces the workload of rewriting and testing software components, and improves the efficiency of integrating software components of non-automotive open system architecture into the automotive open system architecture.

[0009] Optionally, the first configuration template is obtained in the following manner: extracting configuration attributes of the automotive open system architecture in an existing domain controller; establishing a second configuration template; importing the configuration attributes of the automotive open system architecture into the second configuration template to obtain the first configuration template.

[0010] Optionally, the steps of extracting the configuration information of the first software component and configuring the first software component according to the configuration information of the first software component and the configuration requirements of the automotive open system architecture include: extracting the data type of the first software component, and converting the data type of the first software component into the data type of the automotive open system architecture according to the correspondence between the data type of the first software component and the data type of the automotive open system architecture; extracting the ports and port behaviors of the first software component, and changing the ports and port behaviors of the first software component to ports and port behaviors that meet the requirements of the automotive open system architecture; extracting the internal behavior of the first software component, and writing the internal behavior into a configuration file of the first software component, so that the first software component can execute the internal behavior in the automotive open system architecture.

[0011] Optionally, extracting the ports and port behaviors of the first software component, and changing the ports and port behaviors of the first software component to ports and port behaviors that comply with requirements of an automotive open system architecture includes: extracting an array corresponding to the ports and port behaviors of the first software component, and changing the array to an array that complies with the automotive open system architecture.

[0012] Optionally, the internal behavior includes: event scheduling cycle and / or initialization settings.

[0013] Optionally, the integration method also includes: extracting configuration information of the first software component, configuring the first software component according to the configuration information of the first software component and the configuration requirements of the automotive open system architecture to obtain a second software component, and generating component code and configuration files for the second software component; integrating the component code and configuration files into the automotive open system architecture in the domain controller to complete the integration of software components of the non-automotive open system architecture.

[0014] In a second aspect, an embodiment of the present invention further discloses an integration device, comprising: a template acquisition module, used to acquire a first configuration template, the first configuration template being a configuration template of an automotive open system architecture, and comprising configuration attributes of the automotive open system architecture; an import module, used to substitute a software component of a non-automotive open system architecture into the first configuration template to obtain a first software component; a component configuration module, used to extract configuration information of the first software component, and perform component configuration on the first software component according to the configuration information of the first software component and the configuration requirements of the automotive open system architecture, so that the configuration of the first software component conforms to the configuration of the automotive open system architecture, thereby completing the integration of software components of the non-automotive open system architecture.

[0015] By adopting the above technical solution, the integration device can easily and accurately integrate software components of non-automotive open system architecture into the domain controller of the automotive open system architecture, reducing the time and cost of rewriting software integration.

[0016] In a third aspect, an embodiment of the present invention further discloses an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned integration method when executing the computer program.

[0017] By adopting the above technical solution, the electronic device can easily and accurately integrate the software components of the non-automotive open system architecture into the domain controller of the automotive open system architecture, thereby improving the efficiency of integrating the software components of the non-automotive open system architecture into the automotive open system architecture.

[0018] In a fourth aspect, an embodiment of the present invention further discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned integration method is implemented.

[0019] By adopting the above technical solution, the computer-readable storage medium can easily and accurately integrate the software components of the non-automotive open system architecture into the domain controller of the automotive open system architecture, reduce the time and cost of rewriting software integration, and improve the efficiency of integrating the software components of the non-automotive open system architecture into the automotive open system architecture. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 The integrated method flow in the embodiment of the present invention is shown Figure 1 ;

[0021] Figure 2 The integrated method flow in the embodiment of the present invention is shown Figure 2 ;

[0022] Figure 3 The integrated method flow in the embodiment of the present invention is shown Figure 3 ;

[0023] Figure 4 The integrated method flow in the embodiment of the present invention is shown Figure 4 ;

[0024] Figure 5 The structure of the integrated device in the embodiment of the present invention is shown as follows Figure 1 ;

[0025] Figure 6 The structure of the integrated device in the embodiment of the present invention is shown as follows Figure 2 ;

[0026] Figure 7 The structure of the integrated device in the embodiment of the present invention is shown as follows Figure 3 ;

[0027] Figure 8 The structure of the integrated device in the embodiment of the present invention is shown as follows Figure 4 ;

[0028] Fig. 9 A schematic diagram showing the structure of an electronic device in an embodiment of the present invention is shown;

[0029] Fig.10 A schematic diagram of an integration method in an embodiment of the present invention is shown;

[0030] Fig.11 A schematic diagram of an interface presented when a configuration template is opened in an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0031] The following specific embodiments illustrate the implementation of the present invention, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Although the description of the present invention will be introduced in conjunction with the preferred embodiment, this does not mean that the features of this invention are limited to this implementation. On the contrary, the purpose of introducing the invention in conjunction with the implementation is to cover other options or modifications that may extend based on the claims of the present invention. In order to provide a deep understanding of the present invention, the following description will include many specific details. The present invention can also be implemented without using these details. In addition, in order to avoid confusion or blurring the focus of the present invention, some specific details will be omitted in the description. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.

[0032] It should be noted that in this specification, similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0033] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0034] First, refer to Figure 1 The present invention provides an integration method for integrating a software component of a non-automotive open system architecture in a battery management system into a domain controller of an automotive open system architecture, comprising the following steps:

[0035] S1: Acquire a first configuration template, where the first configuration template is a configuration template of an automotive open system architecture and includes configuration attributes of the automotive open system architecture;

[0036] S2: Substituting the software component of the non-automotive open system architecture into the first configuration template to obtain a first software component;

[0037] S3: extract the configuration information of the first software component, and configure the first software component according to the configuration information of the first software component and the configuration requirements of the automotive open system architecture, so that the configuration of the first software component complies with the configuration of the automotive open system architecture, and the integration of the software components of the non-automotive open system architecture is completed.

[0038] By adopting the above technical solution, software components of non-automotive open system architecture can be integrated into the domain controller of the automotive open system architecture quickly and accurately. This is fast and convenient, does not require complex compilation, reduces the workload of rewriting and testing software components, and improves the efficiency of integrating software components of non-automotive open system architecture into the automotive open system architecture.

[0039] The above technical solution adopts the method of establishing a template with target architecture attributes, and copies the software components to be integrated into the template with target architecture attributes. Compared with the method of rewriting software components, it is more convenient and simple. It only needs to extract the configuration attributes of the target architecture, establish an empty template, import the configuration information into the empty template to obtain a first configuration template with target architecture attributes, and copy the software components to be integrated into the first configuration template to complete the framework import of the software components. The method of using the configuration template to copy the software components to be integrated into the template instead of rewriting the software saves the time and cost of rewriting, and improves the efficiency of integrating software components of non-automotive open system architecture into automotive open system architecture.

[0040] Furthermore, the software component A of the battery management system of the non-automotive open system architecture is substituted into the first configuration template. Substitution refers to copying the software component A of the battery management system of the non-automotive open system architecture into the first configuration template. Different from resetting the code of the software component A on the template, and also different from recompiling or writing the software component A, copying the software component A to the target architecture configuration template is simple and convenient. Only copying is required, thereby avoiding errors caused by tedious and complicated recompilation or writing, and improving the integration efficiency of the software components of the non-automotive open system architecture.

[0041] Among them, AUTomotive Open System Architecture (AUTOSAR) refers to an alliance dedicated to developing automotive electronic software standards. Domain Controller refers to a control unit in an automotive electronic system that is responsible for managing and coordinating various functions and subsystems in the vehicle. Configuration Template refers to an engineering file with configuration options, settings, and parameters, which is used to create or generate a template file for a specific configuration. Configuration Property of AUTOSAR refers to the parameters, settings, and options of AUTOSAR, such as data types, ports and port behaviors, internal behaviors, etc. of AUTOSAR. Configuration information of software components refers to the parameters, settings, and options of software components, such as data types, ports and port behaviors, internal behaviors, etc. of software components.

[0042] For example, Fig.11 As shown, Fig.11The figure is a schematic diagram of an interface presented in an open state of a configuration template in an embodiment of the present invention. The figure is an empty template and can be obtained through the simulink tool. The left column in the figure is the template options. Furthermore, the configuration attributes of the automotive open architecture can be imported into the empty template to form a configuration template X with configuration options, settings and parameters of the automotive open system architecture. Then, the software component can be substituted into the configuration template X to obtain a software component with the configuration attributes of the configuration template X.

[0043] Simply put, the above technical solution is a reverse adaptive integration method. Reverse refers to the integration of the battery management system software components of the existing mature non-automotive open system architecture into the domain controller of the automotive open system architecture. Adaptation refers to the automatic adjustment of configuration properties according to the configuration characteristics of the automotive open system architecture, so that the software components of the non-automotive open system architecture meet the specification requirements of the automotive open system architecture. The prior art requires the battery management system software components to be rewritten in accordance with the automotive open system architecture to meet the architectural specification requirements, thereby greatly increasing the workload of technical personnel. Compared with the prior art, the present invention simplifies the integration process through the technical solution of the above-mentioned reverse adaptive integration method, reduces the workload of rewriting and testing software components, and is more convenient.

[0044] Among them, Figure 2 As shown, the first configuration template is obtained according to the following method:

[0045] S1-1: extract the configuration attributes of the automotive open system architecture in the existing domain controller; S1-2: establish a second configuration template; S1-3: import the configuration attributes of the automotive open system architecture into the second configuration template to obtain the first configuration template. Specifically, the second configuration template is established using the simulink tool, and the second configuration template is specifically an empty template mentioned above.

[0046] Specifically, S1-1 includes: extracting the configuration properties of components in the automotive open system architecture (AUTOSAR) of the existing domain controller, and saving the extracted configuration properties in the configuration file. The extracted configuration properties are saved in the target.m file. Among them, the tool for extracting configuration properties is a simulink tool. Optionally, the simulink tool is the simulink toolbox of the matlab software, and the operation using the simulink tool is simple. . Through S1-1, the configuration information of the components can be accurately and efficiently extracted from the automotive open system architecture of the existing domain controller, so that the template can be subsequently built according to the configuration information of the target architecture. Among them, the target architecture is the automotive open system architecture. The configuration properties of the automotive open system architecture in the domain controller are extracted, and the properties of the automotive open system architecture are obtained simply and conveniently, without manual writing according to the requirements of the automotive open system architecture. Compared with recompiling or writing, it is more time-saving and efficient; compared with secondary packaging after generating configuration files and codes, the operation is simpler.

[0047] Specifically, S1-2 includes: using simulink to establish a second configuration template, and saving the second configuration template as template.slx. For example, the second configuration template can be an empty template, and the second configuration template can also be a configuration template with configuration attributes. Preferably, the second configuration template is an empty template, which is simple and fast to operate and convenient for subsequent use. The empty template does not have configuration attributes, and is generated more quickly. The acquisition process does not require cumbersome writing and other operations. When the configuration information of the automotive open system architecture is subsequently substituted, the workload of repeatedly setting the configuration attributes is also omitted, which is simpler and faster. Through S1-2, a configuration template is created for the subsequent configuration of the components of the target architecture. Among them, the target architecture is the automotive open system architecture. By constructing a template, compared with the rewriting or compiling method of the prior art, the writing or compiling operation is saved, and the error-prone situation in the cumbersome and complicated rewriting or compiling process is avoided.

[0048] Specifically, S1-3 includes: importing the configuration attributes of the automotive open system architecture into the second configuration template to obtain the first configuration template. Import the configuration attribute target.m file extracted in step S1-1 into the second configuration template template.slx file to obtain a configuration template based on the automotive open system architecture, i.e., the first configuration template, named target.slx. Through S1-3, the configuration attributes of the extracted target architecture are imported into the configuration template to establish the configuration template of the target architecture, i.e., the first configuration template. Among them, the target architecture is the automotive open system architecture. The first configuration template obtained by S1-3 has the configuration attributes of the automotive open system architecture, and can directly copy and substitute the software components to be integrated. Compared with the secondary compilation, the operation is simple, and the obtained first configuration template can be repeatedly replaced and used, that is, when multiple software components of non-automotive open system architecture need to be integrated, only S1-1 to S1-3 need to be executed once, and the second and subsequent software components are directly brought into the first configuration template obtained when the first software component of the non-automotive open system architecture is integrated to perform subsequent integration operations, thereby avoiding repeated workload.

[0049] Continue to execute S2: Substitute the software component of the non-automotive open system architecture into the first configuration template to obtain the first software component. Use the copy interface function of matlab to substitute the software component A of the battery management system of the non-automotive open system architecture into the first configuration template target.slx to obtain the first software component, which is saved as A_target.slx. Through S2, copy the software component A of the battery management system of the non-automotive open system architecture to be integrated into the first configuration template for subsequent processing.

[0050] Furthermore, when the first configuration template with the configuration attributes of the target architecture is already used, it is only necessary to copy the software components into the first configuration template. That is, for the battery management system software component A of the non-automotive open system architecture, after S1-1 to S1-3 have been executed and the first configuration template has been obtained, the battery management system software component B of another non-automotive open system architecture is directly brought into the first configuration template obtained after the software component A has executed S1-1 to S1-3, and S2 can be executed. The above technical solution can realize the integration of multiple battery management system software components, the first configuration template can be reused, and the repeated development and testing work of software components can be reduced.

[0051] Furthermore, since the first configuration template is obtained according to the target architecture attributes, the first configuration template has accuracy, which ensures the accuracy of the first software component obtained by substituting the first configuration template, and further ensures the accuracy of the integrated software component.

[0052] Continue to execute S3: extract the configuration information of the first software component, configure the first software component according to the configuration information of the first software component and the configuration requirements of the automotive open system architecture, so that the configuration of the first software component conforms to the configuration of the automotive open system architecture, and complete the integration of the software components of the non-automotive open system architecture.

[0053] Alternatively, if Figure 3 As shown, the steps of extracting the configuration information of the first software component and configuring the first software component according to the configuration information of the first software component and the configuration requirements of the automotive open system architecture include: S3-1: extracting the data type of the first software component, and converting the data type of the first software component into the data type of the automotive open system architecture according to the corresponding relationship between the data type of the first software component and the data type of the automotive open system architecture; S3-2: extracting the port and port behavior of the first software component, and changing the port and port behavior of the first software component into the port and port behavior that meet the requirements of the automotive open system architecture; S3-3: extracting the internal behavior of the first software component, and writing the internal behavior into the configuration file of the first software component, so that the first software component can execute the internal behavior in the automotive open system architecture. Specifically, S3-1: extracting the data type of the first software component, and converting the data type of the first software component into the data type of the automotive open system architecture according to the corresponding relationship between the data type of the first software component and the data type of the automotive open system architecture using the Python scripting language. S3-3: extracting the internal behavior of the first software component using the Python scripting language, and writing the internal behavior into the configuration file of the first software component, so that the first software component can execute the internal behavior in the automotive open system architecture.

[0054] A port (Software Port) is an interface provided by a software component or module for communicating and interacting with other software components. In software architecture, software ports are usually exposed to other components in the form of functions, methods, APIs, etc., to implement functions such as data transmission and message processing. Port behavior (Port Behavior) refers to the interactive behavior or communication party between a software component or module and the external environment. In software architecture, components usually define their interactions with the external environment through ports, and port behavior describes the specific operations and logic of the component when receiving or sending data. Internal behavior (Internal Behavior) refers to the operations, logic or functions within a software component or system. Internal behavior describes the specific operations performed by a component or system internally, including behaviors in data processing, algorithm execution, event scheduling cycle, state management, etc.

[0055] By adopting the above technical solution, the configuration information of the first software component can meet the configuration requirements of the automotive open system architecture. The inventor found through testing that after obtaining the first configuration template by the above method and substituting the software component of the non-automotive open system architecture into the first configuration template, after obtaining the first software component, it is only necessary to configure the data type, port and port behavior, and internal behavior of the first software component to meet the configuration requirements of the automotive open system architecture. Since the remaining attributes have been generated in the first configuration template, after substituting the software component of the non-automotive open system architecture, it is only necessary to adjust the data type, port and port behavior, and internal behavior, which is simple and convenient, saves the time and cost of manual configuration, and is not prone to errors.

[0056] Specifically, S3-1 includes: extracting the data type of the first software component A_target.slx, and according to the correspondence between the data type of the first software component and the data type of the automotive open system architecture, using the Python scripting language to convert the data type of the first software component A_target.slx into the data type of the automotive open system architecture, and performing interface map configuration. For example, the correspondence between the data type of the first software component and the data type of the automotive open system architecture can be queried through Table 1. Through S3-1, it is ensured that the data type of the first software component A_target.slx matches the data type requirement of the automotive open system architecture, and that the function of the first software component A_target.slx can be used normally. The Python scripting language is used to automatically achieve data type matching without manual settings, thus avoiding cumbersome and complicated manual configuration changes.

[0057] Table 1 Correspondence between the data types of the first software component and the data types of the automotive open system architecture

[0058]

[0059] Optionally, S3-2: extracting the ports and port behaviors of the first software component, and changing the ports and port behaviors of the first software component to ports and port behaviors that meet the requirements of the automotive open system architecture includes: extracting the array corresponding to the ports and port behaviors of the first software component, and changing the array to an array that meets the automotive open system architecture. Specifically, the array corresponding to the ports and port behaviors of the first software component is extracted through a matlab interface function, and the array is changed to an array that meets the automotive open system architecture.

[0060] Specifically, S3-2 includes: extracting the ports and port behaviors of the first software component A_target.slx, extracting all input interfaces and / or output interfaces in the first software component A_target.slx through the interface function find_system of matlab, putting the input interface into in_array[], putting the output interface into the out_array[] array, establishing an R_prot and an interface for the element names in the in_array[] array respectively, so as to meet the requirements and specifications of the automotive open system architecture, and establishing a P_prot and an interface for the element names in the out_array[] array respectively, so as to meet the requirements and specifications of the automotive open system architecture. Through S3-2, it is ensured that the input interface and the output interface of the first software component A_target.slx match the requirements of the automotive open system architecture, so that the data type and format of the first software component A_target.slx are consistent when interacting with other components. By configuring the ports and port behaviors, it can be ensured that the component can correctly receive and send data and realize effective communication with other components. By changing the port behaviors, it is ensured that the first software component performs its functions in the automotive open system architecture in the expected manner.

[0061] Specifically, S3-3: Use Python scripting language to extract the internal behavior of the first software component, and write the internal behavior into the configuration file of the first software component, so that the first software component can execute the internal behavior in the automotive open system architecture. Extract the internal behavior of the first software component A_target.slx. For example, the internal behavior can be an event scheduling cycle and / or initialization settings. Use Python scripting language to extract the event scheduling cycle in the interface data in_array[] in the first software component A_target.slx. For example, the event scheduling cycle is extracted by searching for the key character "Run_" in the python language. The event scheduling cycle is the numeric character after the key character "Run_" of the a_interface element in the array in_array[], which is configured as the event scheduling cycle of the internal behavior. The event scheduling cycle is written and stored in the configuration file of the first software component, that is, stored in the corresponding position where the configuration file is stored. In this embodiment, it is stored in the first software component A_target.slx. The initialization settings do not need to be changed, and the default initialization settings can be used. Through S3-3, the internal behavior of the first software component includes: event scheduling cycle and / or initialization settings, etc., determining the event scheduling strategy of the software component, including time trigger conditions, priority and scheduling cycle, etc., ensuring that the software component performs tasks according to the specified schedule and can respond to external events in a timely manner when necessary, thereby ensuring the real-time and reliability of the system.

[0062] Steps S3-1 and S3-3 are configured using Python scripting language, which is fast and convenient, does not require manual configuration, and reduces repeated software development and testing work.

[0063] Alternatively, if Figure 4 As shown, the integration method also includes: S4: extracting the configuration information of the first software component, configuring the first software component according to the configuration information of the first software component and the configuration requirements of the automotive open system architecture, and obtaining a second software component; S5: generating a component code and a configuration file for the second software component; S6: integrating the component code and the configuration file into the automotive open system architecture in the domain controller, and completing the integration of the software components of the non-automotive open system architecture.

[0064] Specifically, S4: extract configuration information of the first software component, configure the first software component according to the configuration information of the first software component and the configuration requirements of the automotive open system architecture, and obtain a second software component. Replace the software component of the non-automotive open system architecture with the second software component, the second software component has the running function and attributes of the software component A of the non-automotive open system architecture, and replace the software component A of the non-automotive open system architecture with the second software component, and integrate it into the domain controller of the automotive open system architecture, so as to be able to execute the original function and attributes.

[0065] Specifically, S5: generating a component code and a configuration file for the second software component. Through S5, the component code and configuration file that meet the requirements of the automotive open system architecture can be obtained so as to be integrated into the domain controller of the automotive open system architecture.

[0066] Specifically, S6: Integrate the component code and configuration file into the automotive open system architecture in the domain controller to complete the integration of the software components of the non-automotive open system architecture. The integration of the software components of the non-automotive open system architecture into the domain controller of the automotive open system architecture can be achieved through S6.

[0067] like Fig.10 As shown, after extracting the configuration attributes of the domain controller, the template.slx configuration file is generated, the configuration attributes are imported into the template.slx configuration file to obtain the first configuration template target.slx, the software component A of the non-automotive open system architecture is substituted into the first configuration template, and the data type matching is performed automatically through the script, the script adaptive port and port behavior matching, and the script adaptive internal behavior matching to complete the integration of the non-automotive open system architecture software components.

[0068] Second, reference Figure 5The embodiment of the present invention further discloses an integration device 100, including: a template acquisition module 110, used to acquire a first configuration template, the first configuration template is a configuration template of an automotive open system architecture, and includes configuration attributes of the automotive open system architecture; an import module 120, used to substitute a software component of a non-automotive open system architecture into the first configuration template to obtain a first software component; a component configuration module 130, used to extract configuration information of the first software component, and configure the first software component according to the configuration information of the first software component and the configuration requirements of the automotive open system architecture, so that the configuration of the first software component conforms to the configuration of the automotive open system architecture, thereby completing the integration of the software component of the non-automotive open system architecture.

[0069] Among them, the template acquisition module 110 (the data output end) is connected to the import module 120 (the data input end), and the import module 120 (the data output end) is connected to the component configuration module 130 (the data input end).

[0070] By adopting the above technical solution, the integration device can easily and accurately integrate software components of non-automotive open system architecture into the domain controller of the automotive open system architecture, reducing the time and cost of rewriting software integration.

[0071] refer to Figure 6 The embodiment of the present invention further discloses an integrated device 100, which also includes: a configuration attribute extraction module 140, used to extract the configuration attributes of the automotive open system architecture in the existing domain controller; a template establishment module 150, used to establish a second configuration template using a simulink tool; a template import module 160, used to import the configuration attributes of the automotive open system architecture into the second configuration template to obtain the first configuration template.

[0072] Among them, the configuration attribute extraction module 140 (the data output end) is connected to the template establishment module 150 (the data input end), and the template establishment module 150 (the data output end) is connected to the template import module 160 (the data input end).

[0073] By adopting the above technical solution, the integrated device can obtain a template with automotive open system architecture configuration attributes, which is simple and convenient and reduces the workload of rewriting and compiling.

[0074] refer to Figure 7The embodiment of the present invention further discloses an integrated device 100, further comprising: a data type configuration module 170, for extracting the data type of the first software component, and converting the data type of the first software component into the data type of the automotive open system architecture using the Python scripting language according to the correspondence between the data type of the first software component and the automotive open system architecture data type; a port and port behavior configuration module 180, for extracting the port and port behavior of the first software component, and changing the port and port behavior of the first software component into the port and port behavior that meets the requirements of the automotive open system architecture; an internal behavior configuration module 190, for extracting the internal behavior of the first software component using the Python scripting language, and writing the internal behavior into the configuration file of the first software component, so that the obtained first software component can execute the internal behavior in the automotive open system architecture.

[0075] The port and port behavior configuration module 180 can also extract the array corresponding to the port and port behavior of the first software component through the interface function of MATLAB, and change the array into an array that conforms to the automotive open system architecture.

[0076] By adopting the above technical solution, the integrated device can complete the component configuration of the first software component, so that the first software component meets the requirements of the automobile open system architecture.

[0077] refer to Figure 8 The embodiment of the present invention further discloses an integration device 100, which also includes: a component configuration module 130, used to extract configuration information of a first software component, and configure the first software component according to the configuration information of the first software component and the configuration requirements of the automotive open system architecture to obtain a second software component; a code generation module 131, used to generate component code and configuration files for the second software component; an integration module 132, used to integrate the component code and configuration files into the automotive open system architecture in the domain controller, and complete the integration of software components of the non-automotive open system architecture.

[0078] Among them, (the data output end of) the component configuration module 130 is connected to (the data input end of) the code generation module 131, and (the data output end of) the code generation module 131 is connected to (the data input end of) the integration module 132.

[0079] By adopting the above technical solution, the integration device can obtain a second software component that meets the requirements of the automotive open system architecture specification, and integrate the second software component into the domain controller of the automotive open system architecture to complete the integration of the non-automotive open system architecture software component.

[0080] In a third aspect, the embodiment of the present invention further discloses an electronic device 200, referring to Fig. 9, including a memory 201, a processor 202, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned integration method when executing the computer program.

[0081] The memory 201 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, and other programs.

[0082] By adopting the above technical solution, the electronic device can easily and accurately integrate the software components of the non-automotive open system architecture into the domain controller of the automotive open system architecture, thereby improving the efficiency of integrating the software components of the non-automotive open system architecture into the automotive open system architecture.

[0083] In a fourth aspect, an embodiment of the present invention further discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned integration method is implemented.

[0084] By adopting the above technical solution, the computer-readable storage medium can easily and accurately integrate the software components of the non-automotive open system architecture into the domain controller of the automotive open system architecture, reduce the time and cost of rewriting software integration, and improve the efficiency of integrating the software components of the non-automotive open system architecture into the automotive open system architecture.

[0085] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable non-transient storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0086] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0087] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0088] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0089] Although the present invention has been illustrated and described with reference to certain preferred embodiments of the present invention, it should be understood by those skilled in the art that the above is a further detailed description of the present invention in conjunction with specific embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. Those skilled in the art may make various changes in form and details, including making several simple deductions or substitutions, without departing from the spirit and scope of the present invention.

Claims

1. An integration method for integrating a non-automotive open system architecture software component in a battery management system into a domain controller of an automotive open system architecture, characterized in that: include: Acquire a first configuration template, where the first configuration template is a configuration template of an automotive open system architecture and includes configuration attributes of the automotive open system architecture; Substituting the software component of the non-automotive open system architecture into the first configuration template to obtain a first software component; Extract the configuration information of the first software component, and configure the first software component according to the configuration information of the first software component and the configuration requirements of the automotive open system architecture, so that the configuration of the first software component conforms to the configuration of the automotive open system architecture, thereby completing the integration of software components of the non-automotive open system architecture.

2. The integration method according to claim 1, characterized in that: The first configuration template is obtained according to the following method: Extracting the configuration properties of the automotive open system architecture in the existing domain controller; Establishing a second configuration template; The configuration attributes of the automotive open system architecture are imported into the second configuration template to obtain the first configuration template.

3. The integration method according to claim 1, characterized in that: The step of extracting the configuration information of the first software component and configuring the first software component according to the configuration information of the first software component and the configuration requirement of the automotive open system architecture includes: Extracting the data type of the first software component, and converting the data type of the first software component into the data type of the automotive open system architecture according to the corresponding relationship between the data type of the first software component and the data type of the automotive open system architecture; Extracting the ports and port behaviors of the first software component, and changing the ports and port behaviors of the first software component to ports and port behaviors that meet the requirements of the automotive open system architecture; The internal behavior of the first software component is extracted, and the internal behavior is written into a configuration file of the first software component, so that the obtained first software component can execute the internal behavior in the automotive open system architecture.

4. The integration method according to claim 3, characterized in that: The extracting the port and the port behavior of the first software component and changing the port and the port behavior of the first software component to the port and the port behavior that meet the requirements of the automotive open system architecture includes: An array corresponding to the port and the port behavior of the first software component is extracted, and the array is changed into an array that complies with the automotive open system architecture.

5. The integration method according to claim 3, characterized in that: The internal behaviors include: Event scheduling period and / or initialization settings.

6. The integration method according to claim 1, characterized in that: Also includes: extracting configuration information of the first software component, configuring the first software component according to the configuration information of the first software component and the configuration requirements of the automotive open system architecture to obtain a second software component, Generate component code and configuration file from the second software component; The component code and configuration file are integrated into the automotive open system architecture in the domain controller to complete the integration of the software components of the non-automotive open system architecture.

7. An integrated device, characterized in that: include: A template acquisition module, used to acquire a first configuration template, where the first configuration template is a configuration template of an automotive open system architecture, and includes configuration attributes of the automotive open system architecture; An import module, used for substituting a software component of a non-automotive open system architecture into the first configuration template to obtain a first software component; A component configuration module is used to extract the configuration information of the first software component, and configure the first software component according to the configuration information of the first software component and the configuration requirements of the automotive open system architecture, so that the configuration of the first software component conforms to the configuration of the automotive open system architecture, thereby completing the integration of software components of the non-automotive open system architecture.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the integrated method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the integrated method according to any one of claims 1 to 6 is implemented.