Autosar-based cross-platform communication protocol stack test system and method

Through the cross-platform communication protocol stack testing system and method based on Autosar, the problem of the difference in DDS communication protocol between Autosar CP and AP platform is solved, automated testing is realized, testing efficiency and accuracy is improved, and cross-platform communication protocol stack testing is suitable for intelligent connected vehicles.

CN120223558AActive Publication Date: 2025-06-27AUTOCORE INTELLIGENT TECH (NANJING) CO LTD

Patent Information

Application Number
CN202510692602.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-27
Publication Date
2025-06-27
Estimated Expiration
2045-05-27

AI Technical Summary

Technical Problem

The prior art cannot effectively test the DDS communication protocol differences between Autosar CP and AP platform, resulting in the inability to automatically simulate heterogeneous environments, low testing efficiency and insufficient adaptability.

Method used

Provides a cross-platform communication protocol stack testing system and method based on Autosar, generates CP and AP version packages through Gitlab server, and uses embedded software development tools to compile and burn test code to realize automated communication protocol testing between Autosar CP and test host AP.

Benefits of technology

It realizes efficient testing of the communication protocol stack between Autosar CP and AP platforms, improves the test accuracy and universality, and meets the testing needs of the cross-platform communication protocol stack of intelligent connected vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120223558A_ABST
    Figure CN120223558A_ABST
Patent Text Reader

Abstract

The invention discloses a cross-platform communication protocol stack test system and method based on Autosar. The system comprises a GitLab server, a first source server, a control host, an Autosar CP and a test host AP. The GitLab server generates CP and AP version packages and triggers compiling and testing processes; the first source server remotely controls the embedded software development tool of the control host to complete compiling, and the control host burns a CP compiling product to the Autosar CP by using the embedded software development tool, uploads an AP compiling product to the test host AP, and triggers the Autosar CP and the test host AP to execute a communication protocol stack test service. According to the method, efficient testing of the communication protocol stack between the Autosar CP and the AP platform is achieved through the automatic compiling and testing process, the testing accuracy and universality are effectively improved, and the method is suitable for the testing scene of the automobile cross-platform communication protocol stack.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of vehicle cross - platform protocol stack testing, and specifically relates to a cross - platform communication protocol stack testing system and method based on Autosar. Background Art

[0002] Autosar classic platform (CP) is the infrastructure in the automotive electronics industry. It improves development efficiency by standardizing the software architecture and ensures system reliability and security. With the deepening of automotive electrification, Autosar CP and Adaptive Platform (AP) are gradually integrating to form a hybrid architecture to support complex intelligent connected vehicle systems. However, current testing for cross - platform communication protocol stacks faces multiple challenges: such as low testing efficiency, insufficient adaptability, and poor scalability. For example, the DDS protocol stack needs to be implemented through static configuration in the Autosar CP platform (such as QoS policies, entity behaviors). Existing testing methods rely on manual item - by - item verification, which is inefficient and prone to missing key scenarios (such as cross - platform communication failures caused by missing dynamic discovery). Manual testing has high repeatability and low testing efficiency, and cannot meet the requirements of rapid iteration of version releases. Traditional DDS testing tools rely on high - performance computing environments and cannot directly adapt to the lightweight requirements of the Autosar CP platform. And for the automation solution of DDS protocol stack testing, it mostly relies on commercial suites or solutions, which are difficult to promote and apply on a large scale and lack a dedicated automation testing system for Autosar CP.

[0003] Regarding the protocol differences in communication between Autosar CP and AP platforms, existing testing schemes cannot automatically simulate heterogeneous environments, and a cross - platform communication protocol stack testing method needs to be provided. Summary of the Invention

[0004] The technical objective of this application is to solve the problem that there are protocol differences in DDS communication between Autosar CP and AP platforms, and existing testing schemes cannot automatically simulate heterogeneous environments. A cross - platform communication protocol stack testing system and method based on Autosar are provided to achieve automated DDS protocol stack testing that can be cross - platform compatible.

[0005] To achieve the above - mentioned technical objective, this application adopts the following technical solutions.

[0006] In the first aspect, an embodiment of this application provides a cross - platform communication protocol stack testing system based on Autosar, including: A Gitlab server, configured to generate CP version packages and AP version packages required for testing through a Gitlab pipeline, and trigger the compilation of test code and the communication protocol testing process; The first source server is configured to remotely operate a control host installed with an embedded software development tool to use the embedded software development tool to compile CP test code, and trigger the burning of the CP test code compilation product to Autosar CP and Autosar CP to start the communication protocol test service; The control host is configured to obtain the CP version package and the AP version package, use the embedded software development tool to compile according to the CP version package to obtain a CP test code compilation product, and compile according to the AP version package to obtain an AP test code compilation product; use the embedded software development tool to burn the CP test code compilation product to Autosar CP, and upload the AP test code compilation product to the test host AP; trigger Autosar CP and the test host AP to execute the communication protocol test service; The Autosar CP is configured to execute the communication protocol test service according to the CP test code compilation product; The test host AP is configured to execute the communication protocol test service according to the AP test code compilation product.

[0007] In a second aspect, an embodiment of the present application provides a cross-platform communication protocol stack test method for Autosar, including: the Gitlab server generates a CP version package and an AP version package required for testing through a Gitlab pipeline, and triggers the test code compilation and the communication protocol test process; The first source server remotely operates a control host installed with an embedded software development tool to use the embedded software development tool to compile CP test code, and triggers the burning of the CP test code compilation product to Autosar CP and Autosar CP to start the communication protocol test service; The control host obtains the CP version package and the AP version package, uses the embedded software development tool to compile according to the CP version package to obtain a CP test code compilation product, and compile according to the AP version package to obtain an AP test code compilation product; use the embedded software development tool to burn the CP test code compilation product to Autosar CP, and upload the AP test code compilation product to the test host AP; trigger Autosar CP and the test host AP to execute the communication protocol test service; The Autosar CP executes the communication protocol test service according to the CP test code compilation product; The test host AP executes the communication protocol test service according to the AP test code compilation product.

[0008] Compared with the prior art, the beneficial technical effects achieved by the Autosar-based cross-platform communication protocol stack testing system and method provided by the embodiments of the present application include: through an automated compilation and testing process, efficient testing of the communication protocol stack between the Autosar CP and AP platforms is realized, meeting the rapid iteration requirements of automotive electronic systems, effectively improving the testing accuracy and generality, and being applicable to the testing scenarios of cross-platform communication protocol stacks for intelligent connected vehicles. Description of the Drawings

[0009] The drawings described herein are for illustrative purposes only and are not intended to limit the scope of the disclosure of the present application in any way. Additionally, the shapes and proportional dimensions of the components in the figures are only schematic and are used to assist in understanding the present application, rather than specifically limiting the shapes and proportional dimensions of the components of the present application. Those skilled in the art can, under the teachings of the present application, select various possible shapes and proportional dimensions according to specific circumstances to implement the present application. In the drawings: Figure 1 It is a schematic structural diagram of an Autosar-based cross-platform communication protocol stack testing system provided for the embodiment; Figure 2 It is a schematic flowchart of an Autosar-based cross-platform communication protocol stack testing method provided for the embodiment. Detailed Embodiments

[0010] In order to enable those skilled in the art of the present technology to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the scope of protection of the present application.

[0011] In the description of the present application, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more such features.

[0012] In view of the protocol differences in DDS communication between the Autosar CP and AP platforms in the present application and the inability of existing testing solutions to automatically simulate heterogeneous environments, the present application provides an Autosar-based cross-platform communication protocol stack testing system and method, which uses Autosar CP and the test host AP for interactive testing, realizes cross-platform timing testing, and meets the lightweight requirements for directly adapting to the CP platform.

[0013] The present application will be further described below in conjunction with the accompanying drawings of the specification and specific embodiments.

[0014] This embodiment provides a cross-platform communication protocol stack test system based on Autosar, including a Gitlab server, a first source server, a control host, an Autosar CP, and a test host AP.

[0015] Among them, the Gitlab server is configured to generate the CP version package and the AP version package required for testing through the Gitlab pipeline, and trigger the compilation of test code and the communication protocol test process.

[0016] The first source server (or referred to as the "control host source server") is configured to remotely operate the control host installed with the embedded software development tool to compile the CP test code using the embedded software development tool, and trigger the burning of the CP test code compilation product to the Autosar CP and the Autosar CP to start the communication protocol test service.

[0017] The control host is configured to install the embedded software development tool, obtain the CP version package and the AP version package, compile the CP test code compilation product using the embedded software development tool according to the CP version package, and compile the AP test code compilation product according to the AP version package; use the embedded software development tool to burn the CP test code compilation product to the Autosar CP, and upload the AP test code compilation product to the test host AP; trigger the Autosar CP and the test host AP to execute the communication protocol test service.

[0018] The Autosar CP is configured to execute the communication protocol test service according to the CP test code compilation product.

[0019] The test host AP is configured to execute the communication protocol test service according to the AP test code compilation product.

[0020] In some embodiments, the Gitlab server adopts an automated pipeline. Specifically, after generating the version package using the gitlab version release pipeline, it automatically triggers the gitlab downstream test code compilation pipeline. The test code compilation pipeline obtains the version package from the upstream pipeline. As an example, the AP version package is used to compile the test code on the test host AP side in the ubuntu x86_64 environment, and the CP version package is used to compile the test code on the Autosar CP side in the embedded software development tool. After the compilation of the test code compilation pipeline is completed, it automatically triggers the gitlab downstream test execution pipeline.

[0021] In some embodiments, refer to Figure 1, the system further includes a second source server, which includes an automated test platform database and / or a file server; Autosar CP and / or the test host AP are also configured to upload test results to the automated test platform database and upload test logs to the file server. The automated test platform can fill in test data according to a test report template to generate a test report.

[0022] The second source server can deploy the test system backend API service, database, and file access system to achieve test data persistence.

[0023] In some embodiments, the system further includes a sub-rendering server. The sub-rendering server is connected to the second source server and is configured to deploy the front end of the automated test platform to display any one of the test results, compare historical test results to analyze version quality, and provide test log downloads.

[0024] In one embodiment, the front-end business of the python streamlit automated test platform is deployed on the sub-rendering server to display the test execution version, the number of test execution cases, the number of successful cases, the number of failed cases, and the log path, and provide a test report download button to support downloading to the local by clicking.

[0025] In some embodiments, the test host AP is docked with the Autosar CP side service. After the test execution of the test host AP ends, the python on the test host AP side calls the API provided by the flask framework of the automated test platform backend deployed on the second source server to upload information such as the test execution version, the number of test execution cases, the number of successful cases, the number of failed cases, and the test log to the automated test platform database (which can be a Mysql database) and the file access system (such as an Ngnix file server) deployed on the second source server. The historical test result data comparison can be achieved through the built-in deepseek interface of the automated test platform AI to generate a test report in doc format.

[0026] In some embodiments, the first source server realizes remote operation and control of the host by installing a noVNC server, enabling the http web service, and calling the python playwright library file. noVNC (HTML5 VNC Client) is an open-source VNC client based on HTML5 and WebSocket technologies that allows users to remotely access a VNC server through a standard web browser (such as Chrome, Firefox) without installing any additional plugins. It converts the traditional VNC protocol into the WebSocket protocol to achieve a cross-platform and zero-installation remote desktop experience.

[0027] In some embodiments, the first source server compiles the embedded software development tool on the control host according to the release version and the test scenario code. After the compilation of the test code is completed, the control host source server will also remotely operate the embedded software development tool to burn the compilation product to the Autosar CP board. This process ensures that the compiled test code can be accurately deployed to the target hardware platform, enabling Autosar CP to start the communication protocol test service based on these codes. The control host source server triggers Autosar CP to enable the DDS service with the help of the embedded software development tool. Through remote operation, it can start Autosar CP to execute the communication protocol test service, thereby realizing the test of the communication protocol stack.

[0028] The control host performs cmake cross-compilation according to the release version and the test code, and uploads the compilation product of the AP test code and the AP version package to the test host AP.

[0029] In some embodiments, the control host remotely operates the test host AP through SSH to trigger it to execute communication protocol (such as DDS protocol, HTTP / HTTPS protocol, MQTT protocol, RTPS protocol, WebSocket protocol, CAN protocol, etc.) test services.

[0030] In some embodiments, the control host uploads the compilation product of the AP test code and the AP version package to the specified directory of the test host AP through the SCP method. SCP (Secure Copy Protocol) is a secure file transfer protocol based on the SSH (Secure Shell) protocol, mainly used to securely copy files or directories between different hosts in the network.

[0031] In some embodiments, the first source server finds the coordinates of the target picture in the test code and clicks the button at the corresponding coordinates in the embedded software development tool of the control host to implement the compilation of the CP version package and the CP test code, burn the compilation product of the CP test code to Autosar CP and trigger the execution of the DDS test service at the Autosar CP end.

[0032] For example: The first source server triggers the compilation process of the Autosar CP test code by clicking the "Compile" button in the embedded software development tool to generate an executable file. By clicking the "Burn" button in the embedded software development tool, the debugging interface (such as JTAG / SWD) is started; the compilation product is transferred to the ECU (Electronic Control Unit) of Autosar CP; after the burning is completed, by clicking the "Run" or "Start" button, the DDS communication protocol stack at the Autosar CP end is triggered to start executing the test service (such as publishing / subscribing data).

[0033] In some embodiments, the test host AP is a Linux virtual machine, such as a Linux x86_64 virtual machine.

[0034] Based on the same inventive concept as the Autosar-based cross-platform communication protocol stack test system provided in the above embodiments, the embodiments of the present application also provide an Autosar-based cross-platform communication protocol stack test method. Please refer to Figure 2 , including: the Gitlab server generates the CP version package and the AP version package required for testing through the Gitlab pipeline, and triggers the test code compilation and the communication protocol test process; The first source server remotely operates the control host installed with the embedded software development tool to compile the CP test code using the embedded software development tool, and triggers the burning of the CP test code compilation product to Autosar CP and the start of the communication protocol test service for Autosar CP; The control host obtains the CP version package and the AP version package, compiles the CP test code compilation product using the embedded software development tool according to the CP version package, and compiles the AP test code compilation product according to the AP version package; burns the CP test code compilation product to Autosar CP using the embedded software development tool, and uploads the AP test code compilation product to the test host AP; triggers Autosar CP and the test host AP to execute the communication protocol test service; Autosar CP executes the communication protocol test service according to the CP test code compilation product; The test host AP executes the communication protocol test service according to the AP test code compilation product.

[0035] In some embodiments, the method further includes Autosar CP and / or the test host AP uploading the test results to the automated test platform database and uploading the test logs to the file server.

[0036] The Autosar-based cross-platform communication protocol stack test system and method provided in the examples of the present application can utilize the gitlab version release pipeline, automatically cross-compile the test codes of Autosar AP and the test host AP respectively using Shell scripts, automatically burn the compilation products to Autosar CP or upload them to the test host AP; automatically trigger the execution of test cases; automatically upload the test results to the automated test platform and generate a test report in word format, realizing the full process automation from version release to report generation.

[0037] The above has introduced in detail the test system and method for the cross-platform communication protocol stack based on Autosar provided by this application. Specific examples are used in this article to elaborate on the principle and implementation manner of this application. The description of the above embodiments is only used to help understand the concept of this application and should not be construed as a limitation on the protection scope of this application.

Claims

1. A cross-platform communication protocol stack test system based on Autosar, characterized in that, Including: A Gitlab server, configured to generate CP version packages and AP version packages required for testing through Gitlab pipelines, and trigger the compilation of test code and the communication protocol test process; A first source server, configured to remotely operate a control host installed with embedded software development tools to use the embedded software development tools to compile CP test code, and trigger the burning of CP test code compilation products to Autosar CP and the start of communication protocol test services for Autosar CP; A control host, configured to obtain the CP version packages and AP version packages, use the embedded software development tools to compile according to the CP version packages to obtain CP test code compilation products, and compile according to the AP version packages to obtain AP test code compilation products; Use the embedded software development tools to burn the CP test code compilation products to Autosar CP, and upload the AP test code compilation products to the test host AP; trigger Autosar CP and the test host AP to execute communication protocol test services; The Autosar CP, configured to execute communication protocol test services according to the CP test code compilation products; The test host AP, configured to execute communication protocol test services according to the AP test code compilation products.

2. The cross-platform communication protocol stack test system based on Autosar according to claim 1, characterized in that The first source server realizes remote operation of the control host by installing a noVNC server and enabling an http web service, and calling a python playwright library file.

3. The cross-platform communication protocol stack test system based on Autosar according to claim 1, characterized in that The control host remotely operates the test host AP through SSH to trigger it to execute communication protocol test services.

4. The cross-platform communication protocol stack test system based on Autosar according to claim 1, characterized in that The system further includes a second source server, and the second source server includes an automated test platform database and / or a file server; The Autosar CP and / or the test host AP are further configured to upload test results to the automated test platform database and upload test logs to the file server.

5. The test system for the cross-platform communication protocol stack based on Autosar according to claim 4, wherein Including: The system further includes a sub-rendering server, the sub-rendering server is connected to the second source server, and the sub-rendering server is configured to deploy the front end of the automated test platform to implement any one of the functions of displaying the test results, comparing historical test results to analyze version quality, and providing test log downloads.

6. The cross-platform communication protocol stack test system based on Autosar according to claim 1, characterized in that The test host AP is a Linux virtual machine.

7. The test system for the cross-platform communication protocol stack based on Autosar according to claim 1, characterized in that, The control host uses the embedded software development tools to burn the CP test code compilation products to Autosar CP through a debugging interface, and the debugging interface is a JTAG interface or an SWD interface.

8. The test system for the cross-platform communication protocol stack based on Autosar according to claim 1, characterized in that The control host uploads the AP test code compilation products and AP version packages to the specified directory of the test host AP through the SCP method.

9. A test method for an Autosar-based cross-platform communication protocol stack, characterized in that, Including: The Gitlab server generates CP version packages and AP version packages required for testing through Gitlab pipelines, and triggers the compilation of test code and the communication protocol test process; The first source server remotely operates a control host installed with an embedded software development tool to compile CP test code using the embedded software development tool, and triggers the burning of the CP test code compilation product to Autosar CP and the start of the communication protocol test service for Autosar CP; The control host obtains the CP version package and the AP version package, compiles the CP test code compilation product using the embedded software development tool according to the CP version package, and compiles the AP test code compilation product according to the AP version package; Use the embedded software development tool to burn the CP test code compilation product to Autosar CP, and upload the AP test code compilation product to the test host AP; trigger Autosar CP and the test host AP to execute the communication protocol test service; Autosar CP executes the communication protocol test service according to the CP test code compilation product; The test host AP executes the communication protocol test service according to the AP test code compilation product.

10. The method for testing an Autosar-based cross-platform communication protocol stack according to claim 9, wherein The method further includes uploading the test results to the automated test platform database by Autosar CP and / or the test host AP, and uploading the test logs to the file server.

Citation Information

Patent Citations

  • Automated test system and method for AutoSar AP service

    CN116150000A

  • Center device and data packet generation method

    CN118679455A

  • Center device and data package generation method

    US20240385826A1

Cited By

  • Automatic system and method for ADAS HIL test

    CN120406408A

  • An automated system and method for ADAS HIL testing

    CN120406408B

  • Automatic test method and system for safety vehicle control operation system

    CN121833511A