A PREEvision-based ARXML file rapid generation method
By developing Metrics and Excel data serialization in PREEvision and automating the generation of ARXML files, the problems of large workload and high error frequency in PREEvision modeling are solved, enabling the rapid generation of high-quality ARXML files and improving development efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENYANG DOTRUST TECH CO LTD
- Filing Date
- 2022-11-08
- Publication Date
- 2026-04-17
AI Technical Summary
In existing technologies, PREEvision modeling is labor-intensive, complex, and prone to errors, resulting in the generated ARXML files being unrecognizable in downstream tools. Furthermore, due to the large volume of services and data, troubleshooting is difficult, and there is a shortage of modeling personnel with varying abilities.
By using JAVA to develop metrics based on PREEvision and combining Excel spreadsheet data serialization, ARXML files are automatically generated, including steps such as service and hardware layer mapping and communication design, reducing repetitive work and improving accuracy.
It enables rapid generation of ARXML files, reduces error frequency, improves the quality and efficiency of electronic and electrical architecture development, and shortens the R&D cycle.
Smart Images

Figure CN115695141B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of automotive software development technology, and in particular relates to a method for rapidly generating ARXML files based on PREEvision. Background Technology
[0002] Preevision is a model-based electronic and electrical architecture development tool that includes multiple layers such as requirements analysis, logic layer design, software layer design, hardware layer design, communication layer design, wiring harnesses, and topology. These layers are interconnected and mapped to each other. Preevision enables rapid generation of ARXML files. The main workflow involves first modeling using Preevision, then exporting the required version of the ARXML file using Preevision's export function. The modeling process primarily involves the software, hardware, and communication layers. The software layer mainly represents the SWC modules of the AUTS application software layer and their connections. The hardware layer is described in the form of a topology diagram, mainly showing the connections between the entire vehicle system or individual subsystem ECUs. Then, the SWC modules of the software layer and the ECUs of the hardware layer are associated through mapping, deploying the software components into the hardware ECUs. Then, the signal routing function can generate Signal, PDU, System Signal and Ethernet Communication Cluster. These elements are all located in the communication layer. After signal routing, detailed communication design needs to be completed in the communication layer, including renaming and setting parameters of Signal, PDU and Transmission, data serialization and parameter configuration of Ethernet layer protocols, etc.
[0003] With the development of the "new four modernizations" (electrification, connectivity, intelligence, and sharing) and Tesla's disruptive software update approach, new demands are being placed on automobiles in this new era: vehicle functions can be continuously iterated and updated after SOP (Start of Production), primarily through software updates, requiring more intelligent vehicle functions and interconnectivity with cloud services. To address these functional needs, more and more OEMs are adopting SOA (Service-Oriented Architecture) architecture. As vehicle intelligence develops, vehicle functions are becoming increasingly richer, and the number of services is increasing dramatically. This has led to a significant increase in the workload of Prevision modeling, resulting in a severe shortage of existing modeling personnel in the market, with varying skill levels among engineers, and a particular scarcity of experienced modelers. Furthermore, while modeling steps share many commonalities, most modeling engineers still rely on manual, repetitive processing. This is not only repetitive and complex but also prone to errors, causing generated files to be unrecognizable in downstream tools. Moreover, the sheer volume of services and data makes troubleshooting extremely difficult. Summary of the Invention
[0004] The purpose of this invention is to provide a method for rapidly generating ARXML files based on PREEvision, aiming to solve the problems mentioned in the background art.
[0005] The present invention is implemented as follows: One embodiment provides a method for rapid generation of ARXML files based on Preevision, comprising the following steps:
[0006] Step 1: Based on the secondary development function of PREEvision, use the JAVA language to develop Metrics that can automatically perform modeling in PREEvision software according to the commonalities of the modeling process, and then perform quick modeling based on the developed Metrics.
[0007] Step 2: Perform error checking and data recognition on the specific Excel spreadsheet, and serialize the data in the Excel into code-recognizable data, which will be used as input for subsequent automatic modeling of metrics;
[0008] Step 3: Based on the serialized data, generate the model hierarchy required for the modeling process under the specific Product Line. Then, create the Service and ServiceInterface defined in the table under the corresponding hierarchical structure, and create and assign data types. Finally, generate SWC Type and Port Type based on the created Service and Service Interface and associate the corresponding data types.
[0009] Step 4: Deploy services under a specific Product Line based on the serialized data. Instantiate and generate an SWC based on the pre-created SWC Type and Port Type. Map the SWC to the hardware layer ECU based on the serialized data. Create the VLAN, Socket Address and Socket Connection components required for Ethernet transmission and establish the association between the components.
[0010] Step 5: Based on the serialized data, complete the communication design under the specific Product Line. Rename the Signal, PDU, and Transmission components generated by the signal routing and set their parameters. Create the serialization components required for signal transmission. Generate the Header ID, Event Handler, Consumer EventGroup, and So Ad Routing Group required for Ethernet transmission and set their parameters.
[0011] Step 6: Based on the serialized data, create the communication components required for the TCP protocol-bound interface under the specific Product Line, including Socket Address, Socket Connection, and Socket Routing Group, and set their parameters;
[0012] Step 7: Based on the serialized data, correct and integrate the Service Discovery component created by SOA & EthernetExplorer under the specific Product Line;
[0013] Step 8: Based on the serialized data, create End To End Transformer and End To End Transformation Properties for the interfaces that need E2E protection under the specific Product Line, set the relevant parameters, and associate them with Signal.
[0014] Step 9: Based on the serialized data, filter out the interfaces bound to the UDP protocol under a specific Product Line, obtain the signals transmitted on the interface, identify signals with a payload length greater than 1400 bytes to create the SOMEIP-TP component, and set its attributes.
[0015] Step 10: After modeling with Metrics in PREEvision, you can use PREEvision's built-in ARXML export function to export the required version of the file.
[0016] A further technical solution involves manually creating the network topology at the hardware layer in step 3. This includes assigning Bus Types to Bus Systems and Bus Connector Types to Bus Connectors, and then assigning the created Bus Systems to the Ethernet Cluster to complete the topology design.
[0017] In a further technical solution, in step 4, the software layer ports are connected and signal routing is completed simultaneously through PREEvision's SOA & Ethernet Explorer.
[0018] A further technical solution involves creating the necessary components for Service Discovery using PREEvision's SOA & EthernetExplorer in step 6.
[0019] Further technical solutions include the following Metrics modules: CheckAndParseExcel, ServiceDefinition, HWAndComDefinition, ReNameAndOtherSetting, TCP, SDDefinition, E2E, and SOMEIP-TP.
[0020] In a further technical solution, the CheckAndParseExcel module is used to execute step 2, the ServiceDefinition module is used to execute step 3, the HWAndComDefinition module is used to execute step 4, the ReNameAndOtherSetting module is used to execute step 5, the TCP module is used to execute step 6, the SDDefinition module is used to execute step 7, the E2E module is used to execute step 8, and the SOMEIP-TP module is used to execute step 9.
[0021] The present invention provides a method for rapidly generating ARXML files based on PREEvision, the advantages of which are as follows:
[0022] (1) By providing Metrics based on secondary development of PREEvision software for modeling, the amount of repetitive work is reduced and the error frequency is lowered;
[0023] (2) Effectively shorten the R&D cycle and improve the development quality of electronic and electrical architecture. Attached Figure Description
[0024] Figure 1 A flowchart illustrating a rapid ARXML file generation method based on PREEvision, provided as an embodiment of the present invention;
[0025] Figure 2 The graphical interface of the CheckAndParseExcel module in a rapid ARXML file generation method based on PREEvision provided in an embodiment of the present invention;
[0026] Figure 3 A graphical interface for the ServiceDefinition module in a rapid ARXML file generation method based on PREEvision, provided in an embodiment of the present invention;
[0027] Figure 4The graphical interface of the HWAndComDefinition module in a rapid ARXML file generation method based on PREEvision provided in an embodiment of the present invention;
[0028] Figure 5 The graphical interface of the ReNameAndOtherSetting module in a rapid ARXML file generation method based on PREEvision provided in an embodiment of the present invention;
[0029] Figure 6 A graphical interface for the TCP module in a rapid ARXML file generation method based on PREEvision, provided in an embodiment of the present invention;
[0030] Figure 7 A graphical interface for the SDDefinition module in a rapid ARXML file generation method based on PREEvision, provided in an embodiment of the present invention;
[0031] Figure 8 A graphical interface for the E2E module in a rapid ARXML file generation method based on Prevision, provided in an embodiment of the present invention;
[0032] Figure 9 This invention provides a graphical interface for the SOMEIP-TP module in a rapid ARXML file generation method based on PREEvision, as provided in an embodiment of the present invention. Detailed Implementation
[0033] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0034] The specific implementation of the present invention will be described in detail below with reference to specific embodiments.
[0035] like Figure 1 As shown, an embodiment of the present invention provides a method for rapidly generating ARXML files based on Preevision, comprising the following steps:
[0036] Step 1: Based on the secondary development function of PREEvision, use the JAVA language to develop Metrics that can automatically perform modeling in PREEvision software according to the commonalities of the modeling process, and then perform quick modeling based on the developed Metrics.
[0037] Step 2: Perform error checking and data recognition on the specific Excel spreadsheet, and serialize the data in the Excel into code-recognizable data, which will be used as input for subsequent automatic modeling of metrics;
[0038] Step 3: Based on the serialized data, generate the model hierarchy required for the modeling process under the specific Product Line. Then, create the Service and ServiceInterface defined in the table under the corresponding hierarchical structure, and create and assign data types. Finally, generate SWC Type and Port Type based on the created Service and Service Interface and associate the corresponding data types.
[0039] Manually create the network topology at the hardware layer, where Bus Systems need to be assigned Bus Types and Bus Connectors need to be assigned Bus Connector Types. Then, assign the created Bus Systems to the EthernetCluster to complete the topology design.
[0040] Step 4: Deploy services under a specific Product Line based on the serialized data. Instantiate and generate an SWC based on the pre-created SWC Type and Port Type. Map the SWC to the hardware layer ECU based on the serialized data. Create the VLAN, Socket Address and Socket Connection components required for Ethernet transmission and establish the association between the components.
[0041] Connect the ports in the software layer using PREEvision's SOA & Ethernet Explorer and complete the signal routing simultaneously;
[0042] Step 5: Based on the serialized data, complete the communication design under the specific Product Line. Rename the Signal, PDU, and Transmission components generated by the signal routing and set their parameters. Create the serialization components required for signal transmission. Generate the Header ID, Event Handler, Consumer EventGroup, and So Ad Routing Group required for Ethernet transmission and set their parameters.
[0043] Step 6: Based on the serialized data, create the communication components required for the TCP protocol-bound interface under the specific Product Line, including Socket Address, Socket Connection, and Socket Routing Group, and set their parameters;
[0044] Create the necessary components for Service Discovery using PREEvision's SOA & Ethernet Explorer.
[0045] Step 7: Based on the serialized data, correct and integrate the Service Discovery component created by SOA & EthernetExplorer under the specific Product Line;
[0046] Step 8: Based on the serialized data, create End To End Transformer and End To End Transformation Properties for the interfaces that need E2E protection under the specific Product Line, set the relevant parameters, and associate them with Signal.
[0047] Step 9: Based on the serialized data, filter out the interfaces bound to the UDP protocol under a specific Product Line, obtain the signals transmitted on the interface, identify signals with a payload length greater than 1400 bytes to create the SOMEIP-TP component, and set its attributes.
[0048] Step 10: After modeling with Metrics in PREEvision, you can use PREEvision's built-in ARXML export function to export the required version of the file.
[0049] like Figure 2-9 As shown, in a preferred embodiment of the present invention, the Metrics include the CheckAndParseExcel module, the ServiceDefinition module, the HWAndComDefinition module, the ReNameAndOtherSetting module, the TCP module, the SDDefinition module, the E2E module, and the SOMEIP-TP module.
[0050] In this embodiment of the invention, the CheckAndParseExcel module is used to perform error checking and data recognition on a specific Excel spreadsheet, serializing the data in the Excel into code-recognizable data, which serves as input for subsequent automatic modeling of metrics.
[0051] The ServiceDefinition module is used to generate the model hierarchy required in the modeling process under a specific ProductLine based on the serialized data. Then, it creates the Service and Service Interface defined in the table under the corresponding hierarchical structure, creates and assigns data types, and finally generates SWC Type and Port Type based on the created Service and Service Interface and associates the corresponding data types.
[0052] The HWAndComDefinition module is used to complete service deployment under a specific ProductLine based on the serialized data. It instantiates and generates SWC based on the pre-created SWC Type and Port Type, and maps the SWC with the hardware layer ECU according to the serialized data. It also creates components such as VLAN, SocketAddress and Socket Connection required for Ethernet transmission and establishes the association between each component.
[0053] The ReNameAndOtherSetting module is used to complete the communication design under a specific ProductLine based on the serialized data. It renames and sets the parameters of components such as Signal, PDU and Transmission generated by signal routing, creates serialized components required for signal transmission, and generates Header ID, EventHandler, Consumer Event Group and So Ad Routing Group required for Ethernet transmission, and sets their parameters.
[0054] The TCP module is used to create the communication components required for the interface bound to the TCP protocol under a specific Product Line based on the serialized data, including Socket Address, Socket Connection, and Socket Routing Group, and to set their parameters.
[0055] The SDDefinition module is used to correct and integrate Service Discovery components created by SOA & Ethernet Explorer under a specific Product Line based on the serialized data.
[0056] The E2E module is used to create End To End Transformer and End To End TransformationProperties for interfaces that need E2E protection under a specific Product Line based on the serialized data, and associates them with Signal after setting the relevant parameters.
[0057] The SOMEIP-TP module is used to filter out interfaces bound to the UDP protocol under a specific Product Line based on the serialized data, obtain the signals transmitted on the interface, identify signals with a payload length greater than 1400 bytes to create the SOMEIP-TP component for them, and set their attributes.
[0058] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for quickly generating an ARXML file based on PREEvision, characterized in that, Includes the following steps: Step 1: Based on the secondary development function of PREEvision, use the JAVA language to develop Metrics that can automatically perform modeling in PREEvision software according to the commonalities of the modeling process, and then perform quick modeling based on the developed Metrics. Step 2: Perform error checking and data recognition on the specific Excel spreadsheet, and serialize the data in the Excel into code-recognizable data, which will be used as input for subsequent automatic modeling of metrics; Step 3: Based on the serialized data, generate the model hierarchy required for the modeling process under the specific Product Line. Then, create the Service and Service Interface defined in the table under the corresponding hierarchical structure, and create and assign data types. Finally, generate SWC Type and Port Type based on the created Service and Service Interface and associate the corresponding data types. Step 4: Deploy services under a specific Product Line based on the serialized data. Instantiate and generate an SWC based on the pre-created SWC Type and Port Type. Map the SWC to the hardware layer ECU based on the serialized data. Create the VLAN, Socket Address and Socket Connection components required for Ethernet transmission and establish the association between the components. Step 5: Based on the serialized data, complete the communication design under the specific Product Line. Rename the Signal, PDU, and Transmission components generated by the signal routing and set their parameters. Create the serialization components required for signal transmission. Generate the Header ID, Event Handler, Consumer Event Group, and SoAd Routing Group required for Ethernet transmission and set their parameters. Step 6: Based on the serialized data, create the communication components required for the TCP protocol-bound interface under the specific Product Line, including Socket Address, Socket Connection, and Socket Routing Group, and set their parameters; Step 7: Based on the serialized data, correct and integrate the Service Discovery component created by SOA & Ethernet Explorer under the specific Product Line; Step 8: Based on the serialized data, create End To End Transformer and End To End Transformation Properties for the interfaces that need E2E protection under the specific Product Line, set the relevant parameters, and associate them with Signal. Step 9: Based on the serialized data, filter out the interfaces bound to the UDP protocol under the specific Product Line, obtain the signals transmitted on the interface, identify the signals with a payload length greater than 1400 bytes, create the SOMEIP-TP component for them, and set their attributes. Step 10: After modeling in PREEvision using the quick modeling Metrics tool, use PREEvision's built-in ARXML export function to export the required version of the file.
2. The PREEvision-based ARXML file quick generation method according to claim 1, characterized in that, In step 3, the network topology of the hardware layer is created manually, where Bus System needs to be assigned Bus Type, Bus Connector needs to be assigned Bus Connector Type, and the created Bus System is assigned to EthernetCluster, thus completing the topology design.
3. The method of claim 1, wherein the PREEvision-based ARXML file is quickly generated. In step 4, the software layer ports are connected and signal routing is completed simultaneously using PREEvision's SOA & Ethernet Explorer.
4. The method of claim 1, wherein the PREEvision-based ARXML file rapid generation method is characterized by, In step 6, the necessary components for Service Discovery are created using PREEvision's SOA & Ethernet Explorer.
5. The method of claim 1, wherein the PREEvision-based ARXML file quick generation method is characterized by, The Metrics module includes the CheckAndParseExcel module, ServiceDefinition module, HWAndComDefinition module, ReNameAndOtherSetting module, TCP module, SDDefinition module, E2E module, and SOMEIP-TP module.
6. The method for rapid generation of ARXML files based on PREEvision according to claim 5, characterized in that, The CheckAndParseExcel module is used to execute step 2, the ServiceDefinition module is used to execute step 3, the HWAndComDefinition module is used to execute step 4, the ReNameAndOtherSetting module is used to execute step 5, the TCP module is used to execute step 6, the SDDefinition module is used to execute step 7, the E2E module is used to execute step 8, and the SOMEIP-TP module is used to execute step 9.
Citation Information
Patent Citations
Simulink software simulation method for secondary development and extraction of modeling information based on PREEvision software
CN111814413A
Service-oriented intelligent driving system design method
CN114115879A