File format conversion method and device, computer equipment, readable storage medium and program product

By automating the parsing and generation of ARXML files, the problem of poor compatibility between ARXML file format conversion tools and controller development tools is solved, improving the efficiency and accuracy of file format conversion and supporting vehicle intelligence and functional iteration.

CN118585490APending Publication Date: 2024-09-03CHINA FAW CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410831025.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Under the SOA development framework, the ARXML file format conversion tool has poor compatibility with the controller development tool, resulting in low file format conversion efficiency and easy errors, which cannot meet the needs of vehicle intelligence and functional iteration.

Method used

The system automatically parses the first format file using modeling tools, constructs a combination of software components, creates a control unit model, associates it with the software components, generates a visual model, and finally generates a second format file to configure the vehicle's electronic control unit, thus achieving automated file format conversion.

Benefits of technology

It improves the efficiency of file format conversion, reduces errors in manual modeling, and generates more accurate files, meeting the needs of vehicle function iteration and intelligence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118585490A
    Figure CN118585490A
Patent Text Reader

Abstract

The invention relates to a file format conversion method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: importing a first format file into a modeling tool, and analyzing the first format file through the modeling tool to obtain modeling data; constructing a software component combination based on the modeling data, wherein the software component combination comprises at least one software component; creating a control unit model, and associating the control unit model with the software component; generating a visual model based on the associated control unit model; and generating a second format file based on the visual model, and configuring an electronic control unit of the vehicle based on the second format file. By adopting the method, the file format conversion efficiency and the accuracy of the generated file can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a file format conversion method, device, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] Under the service-oriented architecture (SOA) development framework, the automotive open system architecture (AUTOSAR) platform is used for the development of automotive electronic control systems. The AUTOSAR extensible markup language (ARXML) file is one of the important configuration files in the development process. After the ARXML file is imported into the controller, the design and configuration of the adaptive automotive open system architecture component software can be realized. When the controller needs to import relevant system information to design the control system, it is necessary to first convert the communication matrix file in Excel format into a file in ARXML format, and then import the ARXML file into the controller. However, the compatibility between the Excel and ARXML format conversion tools and the controller development tools is poor, which affects the development progress.

[0003] The emergence of the PREEvision tool provides a convenient visualization tool for the design of vehicle electronic and electrical architecture. First, modeling is performed based on PREEvision, and then the export function of the PREEvision tool is used to export the required version of the ARXML file. Currently, most modeling engineers still use manual methods to perform repetitive processing. With the rapid increase in the number of services and their increasing complexity, the efficiency of file format conversion is very low, and manual modeling is prone to errors, and the generated files are not accurate. Summary of the invention

[0004] Based on this, it is necessary to provide a file format conversion method, apparatus, computer device, computer-readable storage medium and computer program product that can improve the efficiency of file format conversion and the accuracy of the generated files in response to the above technical problems.

[0005] In a first aspect, the present application provides a method for converting a file format, the method comprising:

[0006] Importing the first format file into a modeling tool, parsing the first format file by the modeling tool to obtain modeling data;

[0007] Building a software component combination based on the modeling data, wherein the software component combination includes at least one software component;

[0008] Creating a control unit model and associating the control unit model with the software component;

[0009] Generate a visualization model based on the associated control unit model;

[0010] Based on the visualization model, a second format file is generated, and an electronic control unit of the vehicle is configured based on the second format file.

[0011] In one embodiment, after constructing the software component combination based on the modeling data, the method further includes:

[0012] Performing interface configuration on at least one software component in the software component combination respectively;

[0013] Creating application layer software and executable files, and establishing a mapping relationship between the application layer software, the executable files and the software components;

[0014] Accordingly, associating the control unit model with the software component includes:

[0015] The software components for which interface configuration has been performed and mapping relationships have been established are associated with the control unit model.

[0016] In one embodiment, the performing interface configuration on at least one software component in the software component combination includes:

[0017] For each software component in the software component combination, construct a demand interface or provide an interface;

[0018] A communication connection is established between the demand interface and the supply interface.

[0019] In one embodiment, establishing a mapping relationship between the application layer software, the executable file, and the software component includes:

[0020] Establishing a first mapping relationship between the software component and the executable file;

[0021] Establishing a second mapping relationship between the executable file and the application layer software;

[0022] The mapping relationship is obtained based on the first mapping relationship and the second mapping relationship.

[0023] In one embodiment, creating a control unit model includes:

[0024] Build component models, virtual machine models, and connector models;

[0025] Connecting the component model, the virtual machine model, and the connector model to obtain a network graph model;

[0026] Performing core configuration, mode declaration group configuration, virtual machine deployment configuration and virtual local area network configuration on the network graph model;

[0027] Based on the configured network graph model, the control unit model is obtained.

[0028] In one embodiment, generating a visualization model based on the associated control unit model includes:

[0029] Performing communication configuration on the associated control unit model, wherein the communication configuration includes application deployment configuration, routing configuration, service instance parameter configuration, and secure digital port configuration;

[0030] The control unit model after communication configuration is used as the visualization model.

[0031] In a second aspect, the present application further provides a file format conversion device, the device comprising:

[0032] A parsing module, used for importing the first format file into the modeling tool, parsing the first format file through the modeling tool to obtain modeling data;

[0033] A first construction module, configured to construct a software component combination based on the modeling data, wherein the software component combination includes at least one software component;

[0034] an association module, used for creating a control unit model and associating the control unit model with the software component;

[0035] A visualization module, used for generating a visualization model based on the associated control unit model;

[0036] A generating module is used to generate a second format file based on the visual model, and configure an electronic control unit of the vehicle based on the second format file.

[0037] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method of each embodiment when executing the computer program.

[0038] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the method of each embodiment when executed by a processor.

[0039] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of the methods of each embodiment when executed by a processor.

[0040] The above-mentioned file format conversion method, device, computer equipment, computer-readable storage medium and computer program product, the present application imports a first format file into a modeling tool, automatically parses the first format file through the modeling tool to obtain modeling data, and then builds a software component combination based on the modeling data, the software component combination includes at least one software component, and the modeling data generated based on the automated script can be quickly configured to complete the modeling of the software layer. After creating a control unit model, the control unit model is associated with the software component. Based on the associated control unit model, a visual model can be automatically generated, and then based on the visual model, a second format file is generated, and the vehicle's electronic control unit is configured based on the second format file. Compared with the existing solutions, a large amount of repetitive work in the modeling process of the present application can be automatically completed by the machine, which improves the file conversion efficiency, avoids the problem that manual modeling is also prone to errors, and improves the accuracy of the generated files. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions 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 related drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 A schematic diagram of a process of converting a file format in one embodiment;

[0043] Figure 2 is a flowchart of a file format conversion method in another embodiment;

[0044] Figure 3 is a flowchart of a file format conversion method in another embodiment;

[0045] Figure 4 is a structural block diagram of a file format conversion device in one embodiment;

[0046] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0048] With the development of intelligent vehicle networking, some new requirements have been put forward for vehicles: vehicles can be continuously updated, and this functional update is mainly software update, and requires vehicle functions to be more intelligent, connected with cloud services, etc. In response to these functional requirements, more and more vehicle manufacturers are adopting service-oriented architecture (SOA). With the development of vehicle intelligence, vehicle functions are becoming more and more abundant, and the number of services is increasing dramatically.

[0049] As mentioned above, in the SOA development framework, ARXML files are one of the important configuration files in the development process. Among them, adaptive automotive open system architecture (adaptive autosar), referred to as AP, has been more and more widely used because it is adapted to system on chip (SOC), has strong computing power, strong scalability, and can be flexibly adapted.

[0050] As mentioned above, the communication matrix file in Excel format needs to be converted into a file in ARXML format first, and then the file in ARXML format is imported into the controller. However, the development progress is affected due to the poor compatibility between the Excel and ARXML format conversion tools and the controller development tools.

[0051] The emergence of the PREEvision tool provides a convenient visualization tool for the design of vehicle electronic and electrical architecture. PREEvision is a model-based electronic and electrical architecture development tool that includes multiple levels such as demand analysis, logic layer design, software layer design, hardware layer design, communication layer design, wiring harness and topology. The layers are interrelated and mapped to each other. The ARXML design method based on PREEvision mainly involves modeling based on PREEvision first, and then using the export function of the PREEvision tool to export the required version of the ARXML file.

[0052] However, due to the rapid increase in the number of services and their increasing complexity, the workload of PREEvision modeling has increased exponentially. The existing modeling personnel are in short supply in the market, and the capabilities of relevant engineers vary. Experienced modeling personnel are even more scarce. In addition, due to the commonality of modeling steps, most modeling engineers still use manual methods to perform repetitive processing. The efficiency of file conversion is very low, and manual modeling is prone to errors, and the generated files are not accurate.

[0053] In order to solve the above technical problems, according to Figure 1 , the application scheme is briefly described as follows: the PV modeling process mainly involves the modeling of the software layer, hardware layer and communication layer. Step 1. The software layer design is to build the software components and the connection relationship between the software components; Step 2. The hardware layer is described in the form of a topology diagram, which mainly reflects the connection relationship between the whole vehicle system or a single subsystem ECU. Step 3. Then associate the software components of the software layer with the ECU of the hardware layer through mapping, and deploy the software components to the hardware ECU. Step 4. The signal routing function can generate signals, protocol data units, system signals and Ethernet communication clusters. These elements are all located in the communication layer. After signal routing, detailed communication design needs to be completed in the communication layer.

[0054] In one embodiment, Figure 2 As shown, a file format conversion method is provided. This embodiment uses the method applied to a vehicle as an example. In this embodiment, the method includes the following steps:

[0055] Step 202: import the first format file into a modeling tool, and parse the first format file through the modeling tool to obtain modeling data;

[0056] The first format file is an Excel format file; the first format file includes a complete service list designed based on functional requirements, mainly including a service definition page and a data type definition page;

[0057] Run the application layer software (adaptive application, AP) service import plug-in, import the Excel format file into the modeling tool, parse the Excel format file through the modeling tool, generate modeling data for software layer modeling basis, and meet the conditions for starting software component configuration. The modeling tool can be PV software.

[0058] Before parsing the Excel file through the modeling tool, you also need to check the data integrity of the imported Excel file, mainly including the integrity check of the parameters related to the service, service interface, service deployment, and data type;

[0059] Step 204: construct a software component combination based on the modeling data, where the software component combination includes at least one software component;

[0060] In the design of the software layer, a software component composition for AP modeling is newly created in a root component (root composition), and the software component composition includes at least one software component.

[0061] The software component may be an adaptive application software component (APSCW), referred to as APP;

[0062] Adaptive application software components are similar to the concept of software components (SWC) in CP. Service and service interface are abstract concepts, and APP is the software implementation of service interface. A service interface requires at least a pair of APPs to implement. One APP implements the call of the service interface and plays the role of service client (service receiver); the other implements the service interface and plays the role of server (service sender). AP software design includes adaptive software (adaptive software), adaptive application (adaptive application), adaptive configuration (application deployment), etc.

[0063] Step 206: Create a control unit model and associate the control unit model with the software component;

[0064] In the design of the hardware layer, a control unit model is created. The control unit model can be a model of the electronic control unit (ECU) chip in the vehicle. The software components of the software layer are associated with the ECU chip model of the hardware layer through Mapping, so that the software components are deployed to the hardware ECU.

[0065] In this embodiment, one software component may be associated with one ECU chip.

[0066] Step 208: Generate a visualization model based on the associated control unit model;

[0067] In the design of the communication layer, communication configuration is performed on the associated control unit model, and the control unit model after communication configuration is used as a visualization model.

[0068] Step 210: Generate a second format file based on the visualization model, and configure the electronic control unit of the vehicle based on the second format file.

[0069] The visualization model is converted into a second format file, which may be an ARXML file. The ARXML format file is imported into an electronic control unit of a vehicle, so that the electronic control unit can be configured.

[0070] The present application imports a first format file into a modeling tool, automatically parses the first format file through the modeling tool to obtain modeling data, and then constructs a software component combination based on the modeling data. The software component combination includes at least one software component, which can be quickly configured based on the modeling data generated by the automated script to complete the modeling of the software layer. After creating a control unit model, the control unit model is associated with the software component. Based on the associated control unit model, a visual model can be automatically generated, and then a second format file is generated based on the visual model, and the vehicle's electronic control unit is configured based on the second format file. Compared with existing solutions, a large amount of repetitive work in the modeling process of the present application can be automatically completed by a machine, which improves the efficiency of file conversion, avoids the problem that manual modeling is prone to errors, and improves the accuracy of the generated files.

[0071] The software layer design of this application specifically includes: building software component combinations, interface configuration, and application layer software design, among which the specific implementation of interface configuration is as follows:

[0072] In one embodiment, after constructing the software component combination based on the modeling data, the method further includes: performing interface configuration on at least one software component in the software component combination; creating application layer software and an executable file, and establishing a mapping relationship between the application layer software, the executable file and the software component;

[0073] Correspondingly, associating the control unit model with the software component includes: associating the software component for which the interface has been configured and the mapping relationship has been established with the control unit model.

[0074] In one of the embodiments, the interface configuration of at least one software component in the software component combination includes: constructing a required interface or a provided interface for each software component in the software component combination; and establishing a communication connection between the required interface and the provided interface.

[0075] For each software component, configure the interface on the software component, build the required interface or the provided interface, drag the service interface that needs to be designed for AP directly to the newly created interface, rename the required interface or the provided interface to make the interface name consistent with the service interface, and establish a communication connection between the required interface and the provided interface;

[0076] At the same time, there are common interfaces between the software components, and the common interfaces between the software components are connected.

[0077] The specific contents of application layer software design are as follows:

[0078] Create application layer software and executable files. The application layer software can be an adaptive application (AP). The application layer software is a collection of executable files. An executable file originates from a software component.

[0079] In one of the embodiments, establishing the mapping relationship between the application layer software, the executable file and the software component includes: establishing a first mapping relationship between the software component and the executable file; establishing a second mapping relationship between the executable file and the application layer software; and obtaining the mapping relationship based on the first mapping relationship and the second mapping relationship.

[0080] A first mapping relationship between executable files and software components is established in a one-to-one correspondence; and a second mapping relationship between an application layer software and one or more executable files is established, so that a mapping relationship exists between the application layer software and the software components.

[0081] The software components that have been interface configured and have established mapping relationships are associated with the control unit model, so as to generate a visualization model based on the associated control unit model.

[0082] In this application, the main task of hardware layer design is to build the network topology required for vehicle communication, which involves the configuration of communication nodes, communication interfaces, communication forms, machines, and virtual local area networks (VLANs) and network endpoints (NEPs) required to support network communication.

[0083] In one of the embodiments, the creation of the control unit model includes: constructing a component model, a virtual machine model and a connector model; connecting the component model, the virtual machine model and the connector model to obtain a network graph model; performing core configuration, pattern declaration group configuration, virtual machine deployment configuration and virtual LAN configuration on the network graph model; and obtaining the control unit model based on the configured network graph model.

[0084] The vehicle network topology is usually designed graphically on a specific network diagram. The graphical visualization design method can quickly complete the construction of the network topology.

[0085] Establish an initial network diagram, construct a component model, a virtual machine model and a connector model in the initial network diagram, and then connect the component model, the virtual machine model and the connector model to obtain a network diagram model;

[0086] Hardware configuration includes basic configuration, development mode declaration group configuration, and virtual machine deployment configuration.

[0087] The network graph model can also be configured with a virtual LAN, including configuring a virtual LAN identifier, channel communication, and network configuration. The main configuration is the network address, namely NEP, which is divided into two forms: unicast and SD multicast.

[0088] The network graph model after core configuration, mode declaration group configuration, virtual machine deployment configuration and virtual LAN configuration is used as the control unit model.

[0089] The communication layer design of this application specifically includes: service deployment, application deployment configuration, routing configuration, service instance parameter configuration, and secure digital port configuration, etc. The specific contents of the communication layer design are described in detail below.

[0090] Service deployment: associate the SWC with the process unit corresponding to the Machine column. The process unit is related to the SWC deployment hardware, thereby associating the control unit model with the software component.

[0091] In one of the embodiments, generating a visualization model based on the associated control unit model includes: performing communication configuration on the associated control unit model, wherein the communication configuration includes application deployment configuration, routing configuration, service instance parameter configuration, and secure digital port configuration; and using the control unit model after the communication configuration as the visualization model.

[0092] Application deployment configuration: Create new startup dependencies, startup configurations, and options. The startup configuration naming should be consistent with the function; fill in the function groups, modes, scheduling strategies, and types in sequence. The function groups are selected according to the ECU.

[0093] Routing configuration: The routing design in which the transmitting and receiving SWCs are deployed on different ECUs is generally called inter-core routing. Automatic routing design is adopted. The SW port in the port prototype corresponding to the APSWC is selected to run the signal router.

[0094] Service instance parameter configuration: Select the provided SOME / IP service instance (PSI) and / or consumed SOME / IP service instance (CSI) generated by the router, right-click → Metrics → Configure PSI and / or CSI, run the plug-in to generate the default parameters of the service instance, and configure the correct transport layer port number according to the specification.

[0095] Secure Digital Port Configuration: In the service discovery configuration editor in the machinedeployment column, click New Service Discovery Configuration; in the IPv4 address column, click to select the NEP created during the hardware design process; in the multicast service discovery port column, click New SD port number and create the corresponding port.

[0096] In one embodiment, generating a second format file based on the visualization model specifically includes:

[0097] The visual model is exported and verified, and the consistency check plug-in is run in the model to verify the model. At the same time, after exporting, it is imported into the base configuration tool to verify the framework code generation. After the verification passes, a second format file is generated based on the visual model.

[0098] Reference Figure 3 In summary, the specific solutions of this application are as follows:

[0099] Step 1: Design a complete service list based on functional requirements;

[0100] The service list is the first format file mentioned above, which mainly includes a service definition page and a data type definition page;

[0101] Step 2: Based on the designed automated verification tool, the format and content of the service list are systematically checked to ensure that there are no errors in the service list definition:

[0102] Step 3: Develop secondary plug-ins based on PV, complete the import of the service list, and verify the integrity and accuracy of the generated modeling data;

[0103] The modeling data generated by the plug-in includes namespace, service, service interface, deployment information, detailed definition of data structure, etc.

[0104] Step 4: Build a software component combination;

[0105] Step 5: Perform interface configuration on at least one software component in the software component combination;

[0106] Step 6: Create application layer software and executable files, and establish a mapping relationship between the application layer software, the executable files and the software components;

[0107] Step 7: Create a control unit model and configure communication;

[0108] Step 8: Mapping between software components and control unit models;

[0109] Step 9: Provide end routing operations, generate configuration related to the communication layer, establish the mapping between the service interface and the communication instance, and complete port configuration and other operations;

[0110] Step 10: Perform a consistency check on the SWC development plug-in in the model, mainly to verify the integrity of the model elements and their associated characteristics. After resolving the consistency check errors, use the model's built-in export function to export the ARXML file version required for development.

[0111] The present application automates the generation of software layer, communication layer models and sending interfaces that need to be iteratively updated frequently, and the modeling data generated based on the automated script can be quickly configured; a manual configuration method is provided for modules that are not frequently updated at the hardware layer. At the same time, the adjustment of the sending and receiving relationship can be updated at any time due to changes in demand, and the manual configuration method is retained. It combines the fast and efficient automated scripts with the flexible expansion of manual configuration, thereby ensuring the scalability of the modeling automation script.

[0112] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0113] Based on the same inventive concept, the embodiment of the present application also provides a file format conversion device for implementing the file format conversion method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more file format conversion device embodiments provided below can refer to the limitations of the file format conversion method above, and will not be repeated here.

[0114] In an exemplary embodiment, Figure 4 As shown, a file format conversion device 400 is provided, characterized in that the device comprises:

[0115] A parsing module 401 is used to import a first format file into a modeling tool, and parse the first format file through the modeling tool to obtain modeling data;

[0116] A first construction module 402 is used to construct a software component combination based on the modeling data, wherein the software component combination includes at least one software component;

[0117] An association module 403 is used to create a control unit model and associate the control unit model with the software component;

[0118] A visualization module 404, used to generate a visualization model based on the associated control unit model;

[0119] The generating module 405 is used to generate a second format file based on the visualization model, and configure the electronic control unit of the vehicle based on the second format file.

[0120] In one embodiment, the apparatus further comprises a configuration module and a second construction module; after the first construction module 402 constructs the software component combination based on the modeling data;

[0121] A configuration module, used to perform interface configuration on at least one software component in the software component combination;

[0122] The second construction module is used to create application layer software and executable files, and establish a mapping relationship between the application layer software, the executable files and the software components;

[0123] Accordingly, the association module 403 is specifically used for:

[0124] The software components for which interface configuration has been performed and mapping relationships have been established are associated with the control unit model.

[0125] In one embodiment, the configuration module is specifically configured to:

[0126] For each software component in the software component combination, construct a demand interface or provide an interface;

[0127] A communication connection is established between the demand interface and the supply interface.

[0128] In one embodiment, the second building block is specifically configured to:

[0129] Establishing a first mapping relationship between the software component and the executable file;

[0130] Establishing a second mapping relationship between the executable file and the application layer software;

[0131] The mapping relationship is obtained based on the first mapping relationship and the second mapping relationship.

[0132] In one embodiment, when creating the control unit model, the association module 403 is specifically used to:

[0133] Build component models, virtual machine models, and connector models;

[0134] Connecting the component model, the virtual machine model, and the connector model to obtain a network graph model;

[0135] Performing core configuration, mode declaration group configuration, virtual machine deployment configuration and virtual local area network configuration on the network graph model;

[0136] Based on the configured network graph model, the control unit model is obtained.

[0137] In one embodiment, the visualization module 404 is specifically configured to:

[0138] Performing communication configuration on the associated control unit model, wherein the communication configuration includes application deployment configuration, routing configuration, service instance parameter configuration, and secure digital port configuration;

[0139] The control unit model after communication configuration is used as the visualization model.

[0140] Each module in the above-mentioned file format conversion device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module above.

[0141] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 5As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a file format conversion method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0142] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0143] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0144] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0145] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0146] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0147] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0148] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0149] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A file format conversion method, characterized in that: The method comprises: Importing the first format file into a modeling tool, parsing the first format file by the modeling tool to obtain modeling data; Building a software component combination based on the modeling data, wherein the software component combination includes at least one software component; Creating a control unit model and associating the control unit model with the software component; Generate a visualization model based on the associated control unit model; Based on the visualization model, a second format file is generated, and an electronic control unit of the vehicle is configured based on the second format file.

2. The method according to claim 1, characterized in that After constructing the software component combination based on the modeling data, the method further includes: Performing interface configuration on at least one software component in the software component combination respectively; Creating application layer software and executable files, and establishing a mapping relationship between the application layer software, the executable files and the software components; Accordingly, associating the control unit model with the software component includes: The software components for which interface configuration has been performed and mapping relationships have been established are associated with the control unit model.

3. The method according to claim 2, characterized in that The performing interface configuration on at least one software component in the software component combination respectively includes: For each software component in the software component combination, construct a demand interface or provide an interface; A communication connection is established between the demand interface and the supply interface.

4. The method according to claim 2, characterized in that: The establishing of the mapping relationship between the application layer software, the executable file and the software components includes: Establishing a first mapping relationship between the software component and the executable file; Establishing a second mapping relationship between the executable file and the application layer software; The mapping relationship is obtained based on the first mapping relationship and the second mapping relationship.

5. The method according to any one of claims 1 to 4, characterized in that The step of creating a control unit model comprises: Build component models, virtual machine models, and connector models; Connecting the component model, the virtual machine model, and the connector model to obtain a network graph model; Performing core configuration, mode declaration group configuration, virtual machine deployment configuration and virtual local area network configuration on the network graph model; Based on the configured network graph model, the control unit model is obtained.

6. The method according to any one of claims 1 to 4, characterized in that The generating of the visualization model based on the associated control unit model includes: Performing communication configuration on the associated control unit model, wherein the communication configuration includes application deployment configuration, routing configuration, service instance parameter configuration, and secure digital port configuration; The control unit model after communication configuration is used as the visualization model.

7. A file format conversion device, characterized in that: The device comprises: A parsing module, used for importing the first format file into the modeling tool, parsing the first format file through the modeling tool to obtain modeling data; A first construction module, configured to construct a software component combination based on the modeling data, wherein the software component combination includes at least one software component; an association module, used for creating a control unit model and associating the control unit model with the software component; A visualization module, used for generating a visualization model based on the associated control unit model; A generating module is used to generate a second format file based on the visual model, and configure an electronic control unit of the vehicle based on the second format file.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, 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 6 are implemented.

10. A computer program product, comprising 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 6 are implemented.

Citation Information

Patent Citations

  • Software product visualization method and device, equipment and medium

    CN115827096A

  • Information conversion method of data modeling file, electronic equipment and storage medium

    CN117312422A

  • Arxml file generation method and device, equipment and storage medium

    CN118012401A

  • File format converter and conversion method thereof

    JP2018036972A

  • Server device and method for providing service related to autosar

    KR101487192B1