Configuration method and device for functional module in automobile software system
Automatically configuring automobile function modules by parsing and generating configuration files solves the problem of low efficiency of configuration file editors in the prior art, improves the efficiency of function module configuration, and simplifies the user input process.
Patent Information
- Application Number
- CN202410376005.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2024-10-01
AI Technical Summary
In the prior art, the efficiency of configuring automobile function modules through a configuration file editor is low, requiring users to input configuration parameters in a set format, resulting in low efficiency in the configuration process.
By obtaining the function module configuration information input by the target user, parsing the configuration information, generating component and interface data types, generating configuration files, and automatically configuring function modules using the configuration files, the problem of low editor configuration efficiency is solved.
The method of automatically configuring function modules is implemented, which improves the efficiency of function module configuration, simplifies the user input process, and reduces configuration time.
Smart Images

Figure CN118733009A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile software technology, and in particular to a configuration method and device for functional modules in an automobile software system. Background Art
[0002] There are many electronic control units in the car, and each electronic control unit has a corresponding functional module to control the electronic control unit. Many types of editors have been developed for the configuration of functional modules. The configuration files are edited using the configuration file editor to complete the configuration of the functional modules. Editing the configuration files using the editor requires the user to enter various configuration parameters in a set format, which still has the problem of low efficiency. Summary of the invention
[0003] In view of this, embodiments of the present application provide a method, device, electronic device and storage medium for configuring functional modules in an automobile software system to solve the problem of low efficiency in configuring functional modules through a configuration file editor in the prior art.
[0004] According to a first aspect of an embodiment of the present application, a method for configuring a functional module in an automobile software system is provided, comprising: obtaining configuration information about the functional module input by a target user, wherein the functional module is used to control an electronic control unit in an automobile; parsing the configuration information to obtain a parsing result; generating a plurality of components, an interface used by each component, and a data type of the interface based on the parsing result; generating a configuration file based on the plurality of components, an interface used by each component, and a data type of the interface; and using the configuration file to complete the configuration of the functional module in the automobile software system.
[0005] A second aspect of an embodiment of the present application provides a method for configuring functional modules in an automobile software system, comprising: obtaining configuration information about multiple functional modules input by a target user, wherein each functional module is used to control an electronic control unit in an automobile; parsing the configuration information to obtain a parsing result; generating multiple components of each functional module, an interface used by each component, and a data type of the interface based on the parsing result; generating a configuration file for each functional module based on the multiple components of each functional module, an interface used by each component, and a data type of the interface; and using the configuration file of each functional module to complete the configuration of each functional module in the software system.
[0006] In a third aspect of an embodiment of the present application, a configuration device for a functional module in an automobile software system is provided, comprising: an acquisition module configured to acquire configuration information about the functional module input by a target user, wherein the functional module is used to control an electronic control unit on an automobile; a parsing module configured to parse the configuration information to obtain a parsing result; a first generation module configured to generate a plurality of components, an interface used by each component, and a data type of the interface based on the parsing result; a second generation module configured to generate a configuration file based on the plurality of components, an interface used by each component, and a data type of the interface; and a configuration module configured to complete the configuration of the functional module in the automobile software system using the configuration file.
[0007] According to a fourth aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0008] In a fifth aspect of the embodiments of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any one of the methods described above are implemented.
[0009] Compared with the prior art, the beneficial effects of the embodiments of the present application include at least: parsing the configuration information to obtain the parsing results, generating a configuration file based on the parsing results, and using the configuration file to complete the configuration of the functional module. Therefore, the above-mentioned technical means can solve the problem of low efficiency in configuring the functional module through the configuration file editor in the prior art, and further provide a method for automatically configuring the functional module to improve the efficiency of configuring the functional module. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0011] Figure 1 It is a flowchart of a method for configuring a functional module in an automobile software system provided by an embodiment of the present application;
[0012] Figure 2 It is a flowchart of another method for configuring a functional module in an automobile software system provided by an embodiment of the present application;
[0013] Figure 3It is a structural diagram of a configuration device for a functional module in an automobile software system provided by an embodiment of the present application;
[0014] Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0015] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0016] Figure 1 It is a flowchart of a method for configuring a functional module in an automobile software system provided in an embodiment of the present application. Figure 1 The configuration method of the functional modules in the automobile software system can be executed by a vehicle control system set on the target vehicle, or by a computer or server, or a processor set on the computer or server, or software on a computer or ordinary server. The configuration method of the functional modules in the automobile software system includes:
[0017] S101, obtaining configuration information about a functional module input by a target user, wherein the functional module is used to control an electronic control unit on a car;
[0018] S102, parsing the configuration information to obtain a parsing result;
[0019] S103, generating multiple components, interfaces used by each component, and data types of the interfaces according to the parsing results;
[0020] S104, generating a configuration file according to the multiple components, the interface used by each component, and the data type of the interface;
[0021] S105, completing configuration of the functional modules in the software system of the automobile using the configuration file.
[0022] There are many electronic control units in the car, and each electronic control unit has a corresponding functional module to control the electronic control unit. The electronic control unit includes: body electrical system, vehicle air conditioning system and power supply system, etc. The functional modules include: body control module, air conditioning control module and power management module, etc. The body control module is used to manage the operation of the body electrical system, such as doors, windows, lights, etc.; the air conditioning control module is used to control the operation of the vehicle air conditioning system, including temperature, wind speed, mode and other aspects; the power management module is used to manage the operation of the power supply system, including battery charging and discharging control, generator control and power supply of various devices and software in the car, etc.
[0023] In the prior art, the configuration of the functional module is completed through the editor, and the user needs to input various configuration parameters in a set format. However, the embodiment of the present application obtains the configuration information input by the target user (the configuration information does not need to be input in a set format), and the configuration of the functional module can be realized by performing relevant processing on the configuration information, so the efficiency of configuring the functional module can be greatly improved. Specifically: the configuration information is parsed, and multiple components, the interface used by each component, and the data type of the interface are generated according to the parsing results, and then a configuration file is generated to complete the configuration of the functional module.
[0024] According to the technical solution provided in the embodiment of the present application, the configuration information about the functional module input by the target user is obtained, wherein the functional module is used to control the electronic control unit on the car; the configuration information is parsed to obtain the parsing result; multiple components, the interface used by each component and the data type of the interface are generated according to the parsing result; a configuration file is generated according to the multiple components, the interface used by each component and the data type of the interface; the configuration file is used to complete the configuration of the functional module in the software system of the car. The above technical means can solve the problem of low efficiency in configuring the functional module through the configuration file editor in the prior art, and then provide a method for automatically configuring the functional module to improve the efficiency of configuring the functional module.
[0025] Furthermore, the configuration information is parsed to obtain parsing results, including: determining multiple objects involved in the configuration information; clustering the configuration information according to each object to divide the configuration information into object information with each object as the clustering center; determining the functional unit, communication protocol and the format of the transmission data specified by the communication protocol corresponding to each piece of object information; wherein the parsing results include: multiple functional units, the communication protocol corresponding to each functional unit and the format of the transmission data specified by the communication protocol.
[0026] An object is a device controlled by a functional module or an attribute of a device controlled by a functional module. For example, if the configuration information is about the body control module, which manages the operation of the body electrical system, such as doors, windows, lights, etc., then the doors, windows, lights, etc. that appear in the configuration information are all objects. For example, if the configuration information is about the air conditioning control module, which controls the operation of the vehicle air conditioning system, including temperature, wind speed, mode, etc., then the temperature, wind speed, mode, etc. that appear in the configuration information are all objects. Clustering the configuration information according to each object obtains each piece of object information. Clustering is to divide all the information about an object in the configuration information to obtain the object information of the object. The object information of an object includes a functional unit, a communication protocol, and the format of the transmission data specified by the communication protocol. The functional unit, the communication protocol, and the format of the transmission data specified by the communication protocol are determined from the object information. The functional unit of an object is about the control of the object. For example, the temperature functional unit of the air conditioning control module is a service for controlling the increase or decrease of the air conditioning temperature.
[0027] Furthermore, the configuration information is parsed to obtain parsing results, including: identifying multiple named entities involved in the configuration information, and treating each named entity as an object; dividing the configuration information into multiple object information according to each object; determining the functional unit, communication protocol and the format of transmission data specified by the communication protocol corresponding to each object information; wherein the parsing results include: multiple functional units, the communication protocol corresponding to each functional unit and the format of transmission data specified by the communication protocol.
[0028] An object is a device controlled by a functional module or an attribute of a device controlled by a functional module. In fact, each object is a named entity, so the object can be determined by finding the named entity. For example, if the configuration information is about the body control module, which manages the operation of the body electrical system, such as doors, windows, lights, etc., then the doors, windows, lights, etc. that appear in the configuration information are all named entities and can be used as an object. For example, if the configuration information is about the air conditioning control module, which controls the operation of the vehicle air conditioning system, including temperature, wind speed, mode, etc., then the temperature, wind speed, mode, etc. that appear in the configuration information are all named entities and can be used as an object. Dividing the configuration information into multiple object information according to each object is to divide all the information about an object in the configuration information to obtain the object information of the object (this method is similar to clustering, but simpler than clustering).
[0029] Furthermore, multiple components, interfaces used by each component, and data types of the interfaces are generated based on the analysis results, including: generating components corresponding to each functional unit; generating interfaces used by components corresponding to each functional unit based on the communication protocol corresponding to each functional unit; and determining the data type of the interface used by components corresponding to each functional unit based on the format of transmission data specified by the communication protocol corresponding to each functional unit.
[0030] For example, if the configuration information is about the body control module, which manages the operation of the body electrical system, such as doors, windows, lights, etc., then the multiple functional units are services for controlling doors, windows, lights and other devices. For the body control module, components for controlling doors, windows, lights and other devices are generated, and the interfaces and data types used by each component are generated or determined. The interface used by the component defines the communication protocol for the component to transmit data with other components. The interface can be divided into a sending interface and a receiving interface. The data type of the interface specifies the format of the data transmitted by the interface or the interface component.
[0031] For example, if the configuration information is about the air conditioning control module, which controls the operation of the vehicle air conditioning system, including temperature, wind speed, mode, etc., then the multiple functional units are services for controlling the air conditioning properties such as temperature, wind speed, mode, etc. For the air conditioning control module, components for controlling the air conditioning properties such as temperature, wind speed, mode, etc. are generated, and interfaces and data types used by each component are generated or determined.
[0032] Furthermore, a configuration file is generated based on multiple components, the interface used by each component, and the data type of the interface, including: obtaining the file format input by the target user or the file format specified by the software system; generating a configuration file of the file format based on multiple components, the interface used by each component, and the data type of the interface.
[0033] For example, the file format can be ARXML, which means the configuration file is an ARXML file. In the development of the Adaptive AUTOSAR platform, the AUTOSAR Extensible Markup Language (ARXML) file is an important configuration file. The file is constrained by the AUTOSAR standard Extensible Markup Language Schema Definition (XSD) file. The system design and configuration of Adaptive AUTOSAR need to be implemented through ARXML files. By configuring ARXML, the design, generation and configuration functions of Adaptive AUTOSAR component software are realized. After the configuration is completed, the tool chain can automatically generate the Manifest.
[0034] Furthermore, after completing the configuration of the functional modules in the software system of the automobile using the configuration file, the method also includes: obtaining configuration update information about the functional modules input by the target user; parsing the configuration update information to obtain a parsed update result; updating the configuration file based on the parsed update result; and completing the configuration update of the functional modules in the software system using the updated configuration file.
[0035] When updating the configuration of a functional module in the prior art, it is necessary to re-edit it in the editor, which is equivalent to configuring the functional module again, and the user is required to input various configuration parameters according to the set format. However, when updating the configuration of a functional module, the embodiment of the present application obtains the configuration update information input by the target user, performs relevant processing on the configuration update information to update the configuration file, and then directly updates the configuration of the functional module, so the efficiency of updating the configuration of the functional module can be greatly improved. Specifically: the configuration update information is parsed, and multiple components generated according to the parsing results, the interface used by each component, and the data type of the interface are compared with multiple components generated according to the parsing update results, the interface used by each component, and the data type of the interface, and components are added, deleted, and modified in the configuration file to update the configuration file, thereby completing the configuration of the functional module.
[0036] Figure 2 is a flow chart of another method for configuring a functional module in an automobile software system provided by an embodiment of the present application, such as Figure 2 As shown, including:
[0037] S201, obtaining configuration information about a plurality of functional modules input by a target user, wherein each functional module is used to control an electronic control unit on a vehicle;
[0038] S202, parsing the configuration information to obtain a parsing result;
[0039] S203, generating multiple components of each functional module, an interface used by each component, and a data type of the interface according to the analysis result;
[0040] S204, generating a configuration file for each functional module according to multiple components of each functional module, an interface used by each component, and a data type of the interface;
[0041] S205, completing the configuration of each functional module in the software system using the configuration files of each functional module.
[0042] If the configuration information is about multiple functional modules, the configuration information can be clustered according to each functional module to divide the configuration information into module information with each functional module as the cluster center. For each module information: cluster the module information according to each object to divide the module information into object information with each object as the cluster center; determine the functional unit, communication protocol and the format of the transmission data specified by the communication protocol corresponding to each object information... The subsequent processing is the same as the processing of the configuration information about one functional module.
[0043] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0044] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
[0045] Figure 3 Schematic diagram of a configuration device for a functional module in an automobile software system provided by an embodiment of the present application. Figure 3 As shown, the configuration device of the functional module in the automobile software system includes:
[0046] The acquisition module 301 is configured to acquire configuration information about a functional module input by a target user, wherein the functional module is used to control an electronic control unit on a vehicle;
[0047] The parsing module 302 is configured to parse the configuration information and obtain a parsing result;
[0048] A first generating module 303 is configured to generate a plurality of components, an interface used by each component, and a data type of the interface according to the parsing result;
[0049] The second generating module 304 is configured to generate a configuration file according to the plurality of components, the interface used by each component and the data type of the interface;
[0050] The configuration module 305 is configured to complete the configuration of the functional modules in the software system of the vehicle using the configuration file.
[0051] According to the technical solution provided in the embodiment of the present application, the configuration information about the functional module input by the target user is obtained, wherein the functional module is used to control the electronic control unit on the car; the configuration information is parsed to obtain the parsing result; multiple components, the interface used by each component and the data type of the interface are generated according to the parsing result; a configuration file is generated according to the multiple components, the interface used by each component and the data type of the interface; the configuration file is used to complete the configuration of the functional module in the software system of the car. The above technical means can solve the problem of low efficiency in configuring the functional module through the configuration file editor in the prior art, and then provide a method for automatically configuring the functional module to improve the efficiency of configuring the functional module.
[0052] In some embodiments, the parsing module 302 is also configured to determine multiple objects involved in the configuration information; cluster the configuration information according to each object to divide the configuration information into object information with each object as the clustering center; determine the functional unit, communication protocol and the format of the transmission data specified by the communication protocol corresponding to each piece of object information; wherein the parsing result includes: multiple functional units, the communication protocol corresponding to each functional unit and the format of the transmission data specified by the communication protocol.
[0053] An object is a device controlled by a functional module or an attribute of a device controlled by a functional module. For example, if the configuration information is about the body control module, which manages the operation of the body electrical system, such as doors, windows, lights, etc., then the doors, windows, lights, etc. that appear in the configuration information are all objects. For example, if the configuration information is about the air conditioning control module, which controls the operation of the vehicle air conditioning system, including temperature, wind speed, mode, etc., then the temperature, wind speed, mode, etc. that appear in the configuration information are all objects. Clustering the configuration information according to each object obtains each piece of object information. Clustering is to divide all the information about an object in the configuration information to obtain the object information of the object. The object information of an object includes a functional unit, a communication protocol, and the format of the transmission data specified by the communication protocol. The functional unit, the communication protocol, and the format of the transmission data specified by the communication protocol are determined from the object information. The functional unit of an object is about the control of the object. For example, the temperature functional unit of the air conditioning control module is a service for controlling the increase or decrease of the air conditioning temperature.
[0054] In some embodiments, the parsing module 302 is further configured to identify multiple named entities involved in the configuration information, and treat each named entity as an object; divide the configuration information into multiple pieces of object information according to each object; determine the functional unit, communication protocol and the format of the transmission data specified by the communication protocol corresponding to each piece of object information; wherein the parsing result includes: multiple functional units, the communication protocol corresponding to each functional unit and the format of the transmission data specified by the communication protocol.
[0055] An object is a device controlled by a functional module or an attribute of a device controlled by a functional module. In fact, each object is a named entity, so the object can be determined by finding the named entity. For example, if the configuration information is about the body control module, which manages the operation of the body electrical system, such as doors, windows, lights, etc., then the doors, windows, lights, etc. that appear in the configuration information are all named entities and can be used as an object. For example, if the configuration information is about the air conditioning control module, which controls the operation of the vehicle air conditioning system, including temperature, wind speed, mode, etc., then the temperature, wind speed, mode, etc. that appear in the configuration information are all named entities and can be used as an object. Dividing the configuration information into multiple object information according to each object is to divide all the information about an object in the configuration information to obtain the object information of the object (this method is similar to clustering, but simpler than clustering).
[0056] In some embodiments, the first generation module 303 is also configured to generate a component corresponding to each functional unit; generate an interface used by the component corresponding to the functional unit based on the communication protocol corresponding to each functional unit; and determine the data type of the interface used by the component corresponding to the functional unit based on the format of transmission data specified by the communication protocol corresponding to each functional unit.
[0057] For example, if the configuration information is about the body control module, which manages the operation of the body electrical system, such as doors, windows, lights, etc., then the multiple functional units are services for controlling doors, windows, lights and other devices. For the body control module, components for controlling doors, windows, lights and other devices are generated, and the interfaces and data types used by each component are generated or determined. The interface used by the component defines the communication protocol for the component to transmit data with other components. The interface can be divided into a sending interface and a receiving interface. The data type of the interface specifies the format of the data transmitted by the interface or the interface component.
[0058] For example, if the configuration information is about the air conditioning control module, which controls the operation of the vehicle air conditioning system, including temperature, wind speed, mode, etc., then the multiple functional units are services for controlling the air conditioning properties such as temperature, wind speed, mode, etc. For the air conditioning control module, components for controlling the air conditioning properties such as temperature, wind speed, mode, etc. are generated, and interfaces and data types used by each component are generated or determined.
[0059] In some embodiments, the second generation module 304 is further configured to obtain a file format input by a target user or a file format specified by a software system; and generate a configuration file of the file format according to multiple components, an interface used by each component, and a data type of the interface.
[0060] For example, the file format can be ARXML, which means the configuration file is an ARXML file. In the development of the Adaptive AUTOSAR platform, the AUTOSAR Extensible Markup Language (ARXML) file is an important configuration file. The file is constrained by the AUTOSAR standard Extensible Markup Language Schema Definition (XSD) file. The system design and configuration of Adaptive AUTOSAR need to be implemented through ARXML files. By configuring ARXML, the design, generation and configuration functions of Adaptive AUTOSAR component software are realized. After the configuration is completed, the tool chain can automatically generate the Manifest.
[0061] In some embodiments, the configuration module 305 is also configured to obtain configuration update information about the functional module input by the target user; parse the configuration update information to obtain a parsed update result; update the configuration file based on the parsed update result; and use the updated configuration file to complete the configuration update of the functional module in the software system.
[0062] When updating the configuration of a functional module in the prior art, it is necessary to re-edit it in the editor, which is equivalent to configuring the functional module again, and the user is required to input various configuration parameters according to the set format. However, when updating the configuration of a functional module, the embodiment of the present application obtains the configuration update information input by the target user, performs relevant processing on the configuration update information to update the configuration file, and then directly updates the configuration of the functional module, so the efficiency of updating the configuration of the functional module can be greatly improved. Specifically: the configuration update information is parsed, and multiple components generated according to the parsing results, the interface used by each component, and the data type of the interface are compared with multiple components generated according to the parsing update results, the interface used by each component, and the data type of the interface, and components are added, deleted, and modified in the configuration file to update the configuration file, thereby completing the configuration of the functional module.
[0063] In some embodiments:
[0064] The acquisition module is further configured to acquire configuration information about a plurality of functional modules input by a target user, wherein each functional module is used to control an electronic control unit on a vehicle;
[0065] The parsing module is further configured to parse the configuration information to obtain a parsing result;
[0066] The first generating module is further configured to generate multiple components of each functional module, an interface used by each component, and a data type of the interface according to the parsing result;
[0067] The second generating module 305 is further configured to generate a configuration file of each functional module according to the multiple components of each functional module, the interface used by each component and the data type of the interface;
[0068] The configuration module 305 is further configured to complete the configuration of each functional module in the software system using the configuration files of each functional module.
[0069] If the configuration information is about multiple functional modules, the configuration information can be clustered according to each functional module to divide the configuration information into module information with each functional module as the cluster center. For each module information: cluster the module information according to each object to divide the module information into object information with each object as the cluster center; determine the functional unit, communication protocol and the format of the transmission data specified by the communication protocol corresponding to each object information... The subsequent processing is the same as the processing of the configuration information about one functional module.
[0070] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0071] Figure 4 Schematic diagram of an electronic device 4 provided in an embodiment of the present disclosure. Figure 4 As shown, the electronic device 4 of this embodiment includes: a processor 401, a memory 402, and a computer program 403 stored in the memory 402 and executable on the processor 401. When the processor 401 executes the computer program 403, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 401 executes the computer program 403, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0072] The electronic device 4 may include but is not limited to a processor 401 and a memory 402. Those skilled in the art will appreciate that Figure 4 The electronic device 4 is merely an example and does not limit the electronic device 4 , and may include more or less components than those shown in the figure, or different components.
[0073] The processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0074] The memory 402 may be an internal storage unit of the electronic device 4, for example, a hard disk or memory of the electronic device 4. The memory 402 may also be an external storage device of the electronic device 4, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 4. The memory 402 may also include both an internal storage unit and an external storage device of the electronic device 4. The memory 402 is used to store computer programs and other programs and data required by the electronic device.
[0075] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0076] If the integrated module / 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 present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0077] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for configuring a functional module in an automobile software system, characterized in that: include: Acquire configuration information about a functional module input by a target user, wherein the functional module is used to control an electronic control unit on a vehicle; Parsing the configuration information to obtain a parsing result; Generating multiple components, interfaces used by each component, and data types of the interfaces according to the parsing results; Generate a configuration file based on multiple components, an interface used by each component, and a data type of the interface; The configuration file is used to complete the configuration of the functional module in the software system of the automobile.
2. The method according to claim 1, characterized in that Parse the configuration information to obtain parsing results, including: Determining multiple objects involved in the configuration information; Clustering the configuration information according to each object to divide the configuration information into object information with each object as a cluster center; Determine the functional unit, communication protocol and the format of transmission data specified by the communication protocol corresponding to each piece of object information; The analysis result includes: a plurality of functional units, a communication protocol corresponding to each functional unit, and a format of transmission data specified by the communication protocol.
3. The method according to claim 1, characterized in that Parse the configuration information to obtain parsing results, including: Identify multiple named entities involved in the configuration information, and treat each named entity as an object; Dividing the configuration information into multiple pieces of object information according to each object; Determine the functional unit, communication protocol and the format of transmission data specified by the communication protocol corresponding to each piece of object information; The analysis result includes: a plurality of functional units, a communication protocol corresponding to each functional unit, and a format of transmission data specified by the communication protocol.
4. The method according to claim 2 or 3, characterized in that: Generate multiple components, interfaces used by each component, and data types of the interfaces based on the analysis results, including: Generate components corresponding to each functional unit; Generate an interface used by the component corresponding to each functional unit according to the communication protocol corresponding to the functional unit; The data type of the interface used by the component corresponding to each functional unit is determined according to the format of the transmission data specified by the communication protocol corresponding to the functional unit.
5. The method according to claim 1, characterized in that Generates a configuration file based on multiple components, the interface used by each component, and the data type of the interface, including: Acquire the file format input by the target user or the file format specified by the software system; A configuration file in the file format is generated according to a plurality of components, an interface used by each component, and a data type of the interface.
6. The method according to claim 1, characterized in that After completing the configuration of the functional module in the software system of the automobile using the configuration file, the method further includes: Obtain configuration update information about functional modules input by the target user; Parsing the configuration update information to obtain a parsing update result; Updating the configuration file according to the parsing update result; The updated configuration file is used to complete the update of the configuration of the functional module in the software system.
7. A method for configuring a functional module in an automobile software system, characterized in that: include: Obtaining configuration information about a plurality of functional modules input by a target user, wherein each functional module is used to control an electronic control unit on a vehicle; Parsing the configuration information to obtain a parsing result; Generating multiple components of each functional module, an interface used by each component, and a data type of the interface according to the analysis result; Generate configuration files for each functional module based on multiple components of each functional module, interfaces used by each component, and data types of the interfaces; The configuration of each functional module is completed in the software system using the configuration files of each functional module.
8. A configuration device for functional modules in an automobile software system, characterized in that: include: an acquisition module, configured to acquire configuration information about a functional module input by a target user, wherein the functional module is used to control an electronic control unit on a vehicle; A parsing module is configured to parse the configuration information to obtain a parsing result; A first generating module is configured to generate a plurality of components, an interface used by each component, and a data type of the interface according to the parsing result; A second generating module is configured to generate a configuration file according to a plurality of components, an interface used by each component, and a data type of the interface; The configuration module is configured to complete the configuration of the functional module in the software system of the automobile using the configuration file.
9. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
