CN-121979561-A - Method, device, equipment, medium and program product for configuring end-to-end software
Abstract
The application relates to the technical field of automobile electronics, in particular to a configuration method, device, equipment, medium and program product of end-to-end software, wherein the method comprises the steps of obtaining end-to-end protection information of a target application programming interface, carrying out parameter configuration on a communication port of the target application programming interface based on the requirement of a preset application layer software component, generating ARXML files according to the configured target application programming interface, and obtaining end-to-end verification software based on the ARXML files, the end-to-end protection information and a preset configuration tool. Therefore, through the end-to-end protection information labeling, the communication port parameter setting, the code generation and the independent verification process automation, the problems of complicated configuration, error-prone manual code integration, non-intuitive function verification, low efficiency and the like in the traditional E2E protection implementation are solved, and the development efficiency and the reliability are improved.
Inventors
- LIU RANRAN
- ZHANG HENG
- CHEN FEI
- LI JIANCAI
Assignees
- 奇瑞汽车股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260112
Claims (10)
- 1. A method for configuring end-to-end software, comprising the steps of: acquiring end-to-end protection information of a target application programming interface; Based on the requirement of a preset application layer software component, parameter configuration is carried out on a communication port of the target application programming interface, and ARXML files are generated according to the configured target application programming interface; And obtaining end-to-end verification software based on the ARXML file, the end-to-end protection information and a preset configuration tool.
- 2. The method of claim 1, wherein the end-to-end protection information comprises at least one of a service name, a service ID, an event name, timeout information, and an end-to-end profile type.
- 3. The method of claim 1, wherein when configuring parameters for the communication port of the target application programming interface based on the requirements of the preset application layer software component, further comprising: and when the communication port communication of the target application programming interface meets the preset communication condition, setting the end-to-end protection attribute of the communication port to be in an enabling state.
- 4. The method of claim 1, further comprising, after obtaining end-to-end verification software based on the ARXML file, the end-to-end protection information, and a preset configuration tool: Acquiring a communication message of a target application programming interface through an Ethernet packet capturing tool; Extracting a CRC calculation sequence based on the target application programming interface communication message, and calculating the CRC calculation sequence based on a preset CRC algorithm, a polynomial and an initial value to obtain a local CRC value; And comparing the local CRC check value with a CRC field value in the communication message of the target application programming interface, and determining that the end-to-end protection information is correctly configured when the local CRC check value is consistent with the CRC field value in the communication message of the target application programming interface.
- 5. The method of claim 1, wherein the obtaining end-to-end verification software based on the ARXML file, the end-to-end protection information, and a preset configuration tool includes: importing the ARXMIL file into an application layer; the application layer updates an operation environment layer code and a basic software layer code based on the ARXMIL file, the end-to-end protection information and the preset configuration tool; and integrating and compiling the updated running environment layer codes and the basic software layer codes with the codes of the application layer to obtain the end-to-end verification software.
- 6. A device for configuring end-to-end software, comprising: the acquisition module is used for acquiring the end-to-end protection information of the target application programming interface; The configuration module is used for carrying out parameter configuration on the communication port of the target application programming interface based on the requirement of a preset application layer software component, and generating ARXML files according to the configured target application programming interface; and the determining module is used for obtaining end-to-end verification software based on the ARXML file, the end-to-end protection information and a preset configuration tool.
- 7. The apparatus of claim 6, wherein the end-to-end protection information comprises at least one of a service name, a service ID, an event name, timeout information, and an end-to-end profile type.
- 8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the program to implement the SOA-based ethernet end-to-end configuration and verification method of any one of claims 1-5.
- 9. A computer readable storage medium having stored thereon a computer program, characterized in that the program is executed by a processor for implementing a method of configuring end-to-end software according to any of claims 1-5.
- 10. A computer program product storing a computer program, characterized in that the program, when executed by a processor, implements a method of configuring end-to-end software according to any one of claims 1-5.
Description
Method, device, equipment, medium and program product for configuring end-to-end software Technical Field The present application relates to the field of automotive electronics, and in particular, to a method, an apparatus, a device, a medium, and a program product for configuring end-to-end software. Background In recent years, with the development of software-defined automobiles, intelligent automobile software architecture is being upgraded toward SOA (Service-Oriented Architecture, service-oriented distributed architecture). The sub-functions of the whole vehicle system are disassembled in a service mode, and the processes of version iteration, code updating and the like of the ECU are more flexible. For this highly software-implemented new architecture, it is particularly important how to ensure the integrity and reliability of the communication data when it comes to the transmission of important data between the vehicle interiors or between the external ECUs. E2E (End-to-End Protection) Protection is used as a basic component in the AUTOSAR architecture, following a layering principle, to protect inter-component data communication through standardized interfaces. In the related art, according to the interface function under the AUTOSAR standard and the related definition of E2E Profile, the reverse verification of the protected data transfer function and CRC (Cyclic Redundancy Check) between SWC (Software Component) is performed by using a conventional handwriting code, and OEM (Original Equipment Manufacturer) puts forward constraints on the communication protected data arrangement and E2E (End-to-End) algorithm. However, when API (Application Programming Interface) of E2E protection is needed among carding ECUs in the related technology, the use of E2E protection of the same interface among ECUs and even among different SWCs of the same ECU is inconsistent, so that an E2EPW _Read interface function needed to implement E2E protection is accurately defined through handwriting codes for an application layer and a bottom layer decoupling architecture of an SOA, the application layer can be matched with the application layer without error to use, the development of early carding and integration processes is relatively candelable, and the implementation effect of the SOA architecture is not ideal. Secondly, when the protected API test is performed to verify whether the end-to-end communication has problems, depending on different projects, the E2E Profile also has a certain difference or more E2E algorithm, and the correctness and universality of the data Header are poor through the conventional codes (CRC-8, CRC-16, CRC-32 and the like) to be solved. Disclosure of Invention The application provides a configuration method, a device, equipment, a medium and a program product of end-to-end software, which are used for solving the problems of complicated configuration, error-prone code manual integration, non-intuitive function verification, low efficiency and the like in the traditional E2E protection implementation. An embodiment of a first aspect of the present application provides a method for configuring end-to-end software, including the following steps: acquiring end-to-end protection information of a target application programming interface; Based on the requirement of a preset application layer software component, parameter configuration is carried out on a communication port of the target application programming interface, and ARXML files are generated according to the configured target application programming interface; And obtaining end-to-end verification software based on the ARXML file, the end-to-end protection information and a preset configuration tool. Optionally, the end-to-end protection information includes at least one of a service name, a service ID, an event name, timeout information, and an end-to-end profile type. Optionally, when the parameter configuration is performed on the communication port of the target application programming interface based on the requirement of the preset application layer software component, the method further includes: and when the communication port communication of the target application programming interface meets the preset communication condition, setting the end-to-end protection attribute of the communication port to be in an enabling state. Optionally, after obtaining the end-to-end verification software based on the ARXML file, the end-to-end protection information and the preset configuration tool, the method further includes: Acquiring a communication message of a target application programming interface through an Ethernet packet capturing tool; Extracting a CRC calculation sequence based on the target application programming interface communication message, and calculating the CRC calculation sequence based on a preset CRC algorithm, a polynomial and an initial value to obtain a local CRC value; And comparing the local CRC check value with