Vehicle test system and test method based on DDS simulation service
By integrating an industrial control computer, a DDS server, and the hardware under test into a vehicle testing system based on DDS simulation services, a virtual test scenario is constructed. This solves the problems of redundant test steps and high material costs, enables testing of various working conditions, and improves the accuracy and reliability of test results.
Patent Information
- Application Number
- CN202410974393.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-15
AI Technical Summary
Existing technologies involve redundant vehicle testing steps, which affects testing efficiency and increases material costs. Furthermore, the reliance on physical vehicles makes it impossible to test abnormal operating conditions, thus affecting the reliability of test results.
A vehicle testing system based on DDS simulation services is adopted. By integrating an industrial control computer, a DDS server, and the hardware under test, a virtual target test scenario is constructed to simulate various vehicle states, including abnormal operating conditions. It integrates factory flashing, self-testing, and OTA test cases, reducing the demand for test materials.
It improved test coverage and result reliability, reduced production costs, met testing requirements for various working conditions, and enhanced the accuracy and reliability of test results.
Smart Images

Figure CN118964184A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle testing, and in particular to a vehicle testing system and a testing method based on DDS simulation service. Background Art
[0002] When a car rolls off the assembly line, it is necessary to upgrade the hardware under test and conduct a vehicle self-inspection, as well as perform OTA (Over-the-Air Technology) remote upgrades after the vehicle leaves the factory.
[0003] In the related technology, in vehicle manufacturing, independent test systems are set up for factory flashing tests, vehicle self-test tests, and OTA tests, and the corresponding tests are completed to detect the vehicle. This leads to redundant test steps, affects test efficiency, and increases material costs. In addition, the above tests mainly rely on physical vehicles for testing, which makes it impossible to test some abnormal working conditions, thereby affecting the reliability of the test results. Summary of the invention
[0004] The purpose of the present invention is to provide a vehicle testing system and a testing method based on DDS simulation service, so as to solve the problems in the prior art that the test steps are redundant, the test efficiency is affected, and the material cost is increased. In addition, the test is dependent on the physical vehicle, which makes it impossible to test some abnormal working conditions, thereby affecting the reliability of the test results.
[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0006] A vehicle testing system based on DDS simulation service comprises: an industrial computer, the industrial computer is deployed with a test framework, the test framework is used to respond to a test request and obtain a test case corresponding to the test request; a DDS server is connected to the industrial computer through a switch, the DDS server is deployed with a simulation service program, the DDS server is used to receive the test case sent by the test framework, and build a simulation service program of a virtual target test scenario according to the test case; tested hardware is connected to the DDS server for communication, the tested hardware is used to receive the simulation service program of the virtual target test scenario, and execute the test program according to the simulation service program; wherein the test case comprises one or more of a factory flash test case, a self-detection trial case and an OTA test case.
[0007] The vehicle test system based on DDS simulation service provided by the above technical means includes an industrial computer, a DDS server and the hardware under test. The industrial computer is deployed with a test framework, and the test framework integrates test cases for factory flashing programs, self-test programs and OTA programs. The industrial computer and the DDS server are connected through a switch to ensure real-time data exchange between the test cases and the simulation service program. The DDS server simulates the virtual target test scenario simulation service program constructed according to the test case, and works with the hardware under test to ensure the accurate execution of the test program. The DDS server uses the simulation service program written to simulate the service program that forwards the status signals of each controller, and can feed back the simulation signal of the controller to the vehicle computer to simulate various vehicle states, including abnormal working conditions and test scenarios under boundary scenarios, thereby realizing the test requirements for various working conditions by constructing virtual test scenarios, thereby improving the stability of flashing and the accuracy of self-test, and improving the reliability of test results. In addition, by integrating the test framework and the DDS server, only one bench or one vehicle is needed to complete the factory flashing test, vehicle self-test test and OTA test requirements, saving test materials and reducing production costs. In addition, through the integration of multiple test programs and precise control of simulation services, the test coverage is improved, further improving the accuracy and reliability of the test results.
[0008] Furthermore, the test framework includes: a use case management module, which is used to configure and manage the execution of factory flash test cases, self-test trial cases, and OTA test cases; a DDS service communication module, which is used to call the simulation service program according to the test scenario parameters of the test case and pass the parameters to the DDS server; a scheduling module, which is used to collect the dependencies and use cases of the test program when executing the test program.
[0009] According to the above technical means, relying on the case management module, the corresponding test case can be selected according to the test request, thereby improving the test efficiency. And through the scheduling module, the test case can be updated and supplemented, improving the maintainability of the test case. By setting a DDS service communication module that communicates with the DDS server, data exchange can be achieved.
[0010] Furthermore, the vehicle testing system also includes: a CICD platform, which is communicated with the industrial computer; a version management system, which is used to manage software versions, and the version management system is communicated with the CICD platform; wherein, when there is a software version release in the version management system, the test framework is triggered through the CICD platform to execute the test request.
[0011] Based on the above technical means, the testing framework combined with the version management system and CICD platform can realize automated testing of software versions, ensure the correctness of software versions and the timeliness of testing, and improve the efficiency of testing and release.
[0012] Furthermore, the test framework also includes: a CICD communication module for communicating with CICD; a software package acquisition module for responding to the trigger instruction of the CICD platform, downloading the software package from the version management system according to the received software version release information, and reading the software package information for flashing the test program.
[0013] According to the above technical means, when a version release is monitored, the updated software information is automatically downloaded for automated testing of the flash test program.
[0014] Furthermore, the DDS server includes: a simulation service management module for constructing a simulation service program for a virtual test scenario; a broadcast module for broadcasting the simulation service program to the hardware under test; and a simulation configuration file module for configuring a virtual test scenario according to target test scenario parameters of a test case sent by a received test framework.
[0015] According to the above technical means, the DDS server can configure the virtual test scene according to the test requirements of the test scene and based on the target test scene parameters, and then build the simulation service program of the virtual test scene. And the simulation service program of the virtual test scene is broadcast to the hardware under test, so that the hardware under test can perform engineering flash test, self-test test or OTA flash test.
[0016] Furthermore, the vehicle test system also includes: a programmable power supply connected to the switch and the hardware under test for power supply; the test framework also includes a programmable power supply communication module for connecting to the programmable power supply to control the power on or off of the programmable power supply.
[0017] According to the above technical means, a programmable power supply is provided to power an industrial computer, a switch, and the hardware under test, and is connected to a test framework for communication, so as to control the programmable power supply.
[0018] A vehicle testing method based on a DDS simulation service, the vehicle testing method comprising: in response to a test request, obtaining a test case corresponding to the test request, calling a target test scenario parameter corresponding to the test case, and feeding back the target test scenario parameter to a DDS server; the DDS server constructs a simulation service program of a virtual target test scenario according to the target test scenario parameter and broadcasts the simulation service program to the hardware under test, so that the hardware under test executes the test program; wherein the test case comprises one or more of a factory flash test case, a self-test trial case, and an OTA test case.
[0019] According to the above technical means, the vehicle testing method based on the DDS simulation service responds to the test request and calls the test case corresponding to the test request. The test case includes a factory flash test case, a self-test trial case, and an OTA test case. The parameters of the retrieved test case are sent to the DDS server, and the DDS server constructs a simulation service program for the virtual target test scenario for the test according to the target test scenario parameters of the received test case. In this way, the DDS server works in coordination with the hardware under test to ensure the accurate execution of the test program. The DDS server uses the simulation service program written to simulate the service program that forwards the status signals of each controller, and can feed back the simulation signal of the controller to the vehicle computer to simulate various vehicle states, including abnormal working conditions and test scenarios under boundary scenarios, thereby realizing the test requirements for various working conditions by constructing virtual test scenarios, thereby improving the stability of flashing and the accuracy of self-test, and improving the reliability of test results. In addition, through the integration of multiple test programs and the precise control of simulation services, the test coverage is improved, and the accuracy and reliability of the test results are further improved.
[0020] Furthermore, the steps of the DDS server constructing a simulation service program for a virtual target test scenario based on the target test scenario parameters include: determining the target test scenario requirements based on the target test scenario parameters; querying the scenario configuration database based on the target test scenario requirements, and obtaining a configuration file that matches the target test scenario requirements; adjusting the parameters of the configuration file of the DDS service based on the target test scenario parameters to obtain a simulation service program for the virtual target test scenario.
[0021] According to the above technical means, the DDS server receives the target test scenario parameters transmitted by the test framework, determines the test requirements according to the target test scenario parameters, and retrieves the scenario configuration file based on the test requirements, and adjusts the parameters of the configuration file based on the test requirements and the target test scenario parameters to obtain a simulation service program for the virtual target test scenario.
[0022] Furthermore, the scenario configuration database includes: an abnormal operating condition test scenario for simulating an abnormal operating condition of a vehicle; and / or a normal operating condition test scenario for simulating a normal operating condition of a vehicle.
[0023] Based on the above technical means, the DDS server can construct test scenarios for various working conditions, thereby improving the test coverage and test quality, thereby improving the flashing stability and self-test accuracy.
[0024] Furthermore, before the step of responding to the test request, the test method also includes: monitoring the version release status of the version management system; when there is a software version release in the version management system, triggering the test framework to execute the test request through the CICD platform.
[0025] Based on the above technical means, combined with the version management system and CICD platform, automated testing of software versions can be achieved, ensuring the correctness of software versions and the timeliness of testing, and improving testing and release efficiency.
[0026] Beneficial effects of the present invention:
[0027] (1) The DDS server uses a simulation service program to simulate the service program that forwards the status signals of each controller. It can feed back the simulation signal of the controller to the vehicle computer to simulate various vehicle states, including abnormal working conditions and test scenarios under boundary conditions. It then builds a virtual test scenario to meet the test requirements for various working conditions, thereby improving the stability of flashing and the accuracy of self-test, and improving the reliability of test results.
[0028] (2) By integrating the test framework and the DDS server, only one test bench or one vehicle is needed to complete the factory flash test, vehicle self-test test, and OTA test requirements, saving test materials and thus reducing production costs.
[0029] (3) Through the integration of multiple test programs and precise control of simulation services, the test coverage is improved, and the accuracy and reliability of the test results are further improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A schematic diagram of the structure of a vehicle testing system based on DDS simulation service according to an embodiment of the present invention;
[0031] Figure 2 A block diagram of a test framework of a vehicle test system according to an embodiment of the present invention;
[0032] Figure 3 A schematic diagram of the structure of a vehicle testing system based on DDS simulation service according to another embodiment of the present invention;
[0033] Figure 4 A block diagram of a test framework of a vehicle test system according to another embodiment of the present invention;
[0034] Figure 5 A block diagram of a DDS server of a vehicle testing system according to an embodiment of the present invention;
[0035] Figure 6 A schematic diagram of the structure of a vehicle testing system based on DDS simulation service according to another embodiment of the present invention;
[0036] Figure 7 A block diagram of a test framework of a vehicle test system according to another embodiment of the present invention;
[0037] Figure 8 A block diagram of a test framework of a vehicle test system according to another embodiment of the present invention;
[0038] Fig. 9 A block diagram of a DDS server of a vehicle testing system according to another embodiment of the present invention;
[0039] Fig.10 A flow chart of a vehicle testing method based on DDS simulation service according to an embodiment of the present invention;
[0040] Fig.11 A flow chart of a vehicle testing method based on DDS simulation service according to another embodiment of the present invention;
[0041] Fig.12 A flow chart of a vehicle testing method based on DDS simulation service according to another embodiment of the present invention;
[0042] Fig.13 This is a structural diagram of a vehicle testing device based on DDS simulation service according to yet another embodiment of the present invention.
[0043] Reference numerals:
[0044] 1. Vehicle testing system;
[0045] 10. Industrial computer; 20. DDS server; 30. Switch; 40. Hardware under test; 50. CICD platform; 60. Version management system; 70. Programmable power supply;
[0046] 100. Test framework; 101. Use case management module; 102. DDS service communication module; 103. CICD communication module; 104. Program-controlled power supply communication module; 105. Scheduling module; 106. Software package acquisition module; 107. Test process control module-start; 108. Test process control module-end; 109. Program-controlled power supply control module; 110. Test process control module-progress query; 111. Test configuration file module; 112. Test log collection module; 113. Report generation module; 114. Factory flashing scheduling module; 115. OTA flashing scheduling module; 116. Self-test program scheduling module;
[0047] 201, simulation service management module; 202, broadcast module; 203, simulation configuration file module; 204, DDS service activation module; 205, DDS service stop module; 206, PC communication module; 207, simulation log generation module;
[0048] 1300, control device;
[0049] 1301. Processor; 1302. Memory; 1303. Communication interface; 1304. Bus. DETAILED DESCRIPTION
[0050] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0051] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0052] In some embodiments, in combination Figure 1 As shown, a vehicle testing system 1 based on DDS simulation service is provided, including: an industrial computer 10, a DDS server 20 and a hardware under test 40. The industrial computer 10 is deployed with a test framework 100, and the test framework 100 is used to respond to a test request and obtain a test case corresponding to the test request. The DDS server 20 is connected to the industrial computer 10 through a switch 30, and the DDS server 20 is deployed with a simulation service program. The DDS server 20 is used to receive the test case sent by the test framework 100, and build a simulation service program for a virtual target test scenario according to the test case. The hardware under test 40 is communicatively connected to the DDS server 20, and the hardware under test 40 is used to receive the simulation service program for the virtual target test scenario, and execute the test program according to the simulation service program. Among them, the test case includes one or more of a factory flash test case, a self-detection trial case and an OTA test case.
[0053] According to the vehicle test system 1 based on DDS simulation service provided by the above technical means, the industrial computer 10 is deployed with a test framework 100, and the test framework 100 is integrated with test cases for factory flashing programs, self-test programs and OTA programs. The industrial computer 10 and the DDS server 20 are connected through a switch 30 to ensure real-time data exchange between the test cases and the simulation service program. The DDS server 20 simulates the virtual target test scenario simulation service program constructed according to the test case, and works with the tested hardware 40 to ensure the accurate execution of the test program. The DDS server 20 uses the simulation service program written to simulate the service program that forwards the status signals of each controller, and can feedback the simulation signal of the controller to the vehicle computer to achieve the simulation of various vehicle states, thereby realizing the test requirements for various different working conditions by constructing virtual test scenarios, thereby improving the stability of flashing and the accuracy of self-test. In addition, by integrating the test framework 100 and the DDS server 20, only one bench or one vehicle is needed to complete the factory flashing test, vehicle self-test test and OTA test requirements, saving test materials and thus reducing production costs. In addition, through the integration of multiple test programs and precise control of simulation services, the test coverage is improved, further enhancing the accuracy and reliability of the test results.
[0054] The vehicle testing system based on DDS simulation service provided by the present application introduces a DDS server 20, and uses the DDS server 20 to realize the construction of virtual scenes of various test conditions, thereby completing various test conditions without a physical vehicle. In addition, for abnormal working conditions and test scenarios under boundary scenarios that cannot be performed by physical vehicles, simulation tests can also be performed through the DDS simulation service, thereby improving the coverage of test scenarios and test items, and greatly improving the reliability of test results.
[0055] In some embodiments, in combination Figure 2 As shown, the test framework 100 includes: a use case management module 101 , a DDS service communication module 102 and a scheduling module 105 .
[0056] The use case management module 101 is used to configure and manage the execution of factory flash test cases, self-test trial cases, and OTA test cases. The DDS service communication module 102 is used to call the simulation service program according to the test scenario parameters of the test case and transmit the parameters to the DDS server 20. The scheduling module 105 is used to collect the dependencies and use cases of the test program when executing the test program.
[0057] According to the above embodiment, relying on the use case management module 101, the corresponding test case can be selected according to the test request, thereby improving the test efficiency. And through the scheduling module 105, the test case can be updated and supplemented, thereby improving the maintainability of the test case. By setting a DDS service communication module 102 that communicates with the DDS server 20, data exchange can be achieved. In this embodiment, the test cases involved in the three tests are centrally managed, thereby meeting the three test requirements. The test case to be executed can be selected according to the software version release information, thereby improving the test efficiency.
[0058] In some embodiments, the use cases in the use case management module 101 can be updated, modified, or added. In this way, the comprehensiveness and effectiveness of the test cases are improved to meet the testing requirements of the software version release.
[0059] In some embodiments, in combination Figure 3 As shown, a vehicle testing system 1 based on DDS simulation service is provided, including: an industrial computer 10, a DDS server 20, a hardware under test 40, a CICD platform 50 and a version management system 60. Among them, the test framework 100 includes: a use case management module 101, a DDS service communication module 102 and a scheduling module 105. The CICD platform 50 is connected to the industrial computer 10. The version management system 60 is used to manage software versions, and the version management system 60 is connected to the CICD platform 50. Among them, when there is a software version release in the version management system 60, the test framework 100 is triggered by the CICD platform 50 to execute the test request.
[0060] According to the above embodiment, the CICD platform 50 monitors the version release of the version management system 60. When the version management system 60 is monitored to have a software version released, the test framework 100 is triggered to start the flash test. In this way, the test framework 100 combines the version management system 60 and the CICD platform 50 to realize the automated testing of the software version, ensure the correctness of the software version and the timeliness of the test, and improve the efficiency of testing and release.
[0061] In some embodiments, in combination Figure 4 As shown, the test framework 100 includes: a use case management module 101, a DDS service communication module 102, a scheduling module 105, a CICD communication module 103 and a software package acquisition module 106. The CICD communication module 103 is used to communicate with CICD. The software package acquisition module 106 is used to respond to the trigger instruction of the CICD platform 50, download the software package to the version management system 60 according to the received software version release information, and read the information of the software package for flashing the test program.
[0062] According to the above embodiment, the CICD platform 50 monitors the version release of the version management system 60. When the version management system 60 is monitored to have a software version released, the software package acquisition module 106 of the test framework 100 is triggered to download the software package of the released software version from the version management system 60. The software package information is downloaded to the local computer, and the software package information is read to perform subsequent flashing test programs. In this way, when the version release is monitored, the automatic download of the updated software information is realized for the automatic testing of the flashing test program.
[0063] In some embodiments, in combination Figure 5 As shown, the DDS server 20 includes: a simulation service management module 201, a broadcast module 202 and a simulation configuration file module 203. The simulation service management module 201 is used to build a simulation service program for a virtual test scenario. The broadcast module 202 is used to broadcast the simulation service program to the hardware under test 40. The simulation configuration file module 203 is used to configure a virtual test scenario according to the target test scenario parameters of the test case sent by the received test framework 100.
[0064] According to the above embodiment, the DDS server 20 can configure the virtual test scene according to the test requirements of the test scene and based on the target test scene parameters, and then build a simulation service program for the virtual test scene. The simulation service program of the virtual test scene is broadcast to the hardware under test 40, so that the hardware under test 40 can perform engineering flashing test, self-test test or OTA flashing test.
[0065] In one example, a simulation service management module 201 is deployed on the DDS server 20, and the simulation service management module 201 provides an interface to communicate with the industrial computer 10 and the hardware under test 40. The simulation service management module 201 can receive target test scenario parameters input from the test framework 100, and the DDS server 20 simulates the corresponding vehicle operating conditions according to the test scenario parameters, and then sends them to the hardware under test 40 through the broadcast module 202.
[0066] In some embodiments, in combination Figure 6 As shown, a vehicle testing system 1 based on DDS simulation service is provided, including: an industrial computer 10, a DDS server 20, a hardware under test 40, a CICD platform 50, a version management system 60 and a program-controlled power supply 70. Figure 7 As shown, the test framework 100 includes: a use case management module 101, a DDS service communication module 102, a scheduling module 105, a CICD communication module 103, a program-controlled power supply control module 109 and a software package acquisition module 106. The program-controlled power supply 70 is connected to the switch 30 and the tested hardware 40 for power supply. The program-controlled power supply control module 109 is used to connect to the program-controlled power supply 70 to control the program power supply to power on or off.
[0067] According to the above embodiment, a programmable power supply 70 is provided to power the industrial computer 10 , the switch 30 , and the hardware under test 40 , and the programmable power supply 70 is controlled by communicating with the test framework 100 .
[0068] In some embodiments, in combination Figure 8 As shown, the test framework 100 includes: a use case management module 101, a DDS service communication module 102, a CICD communication module 103, a programmable power supply control module 109, a scheduling module 105, a software package acquisition module 106, a test process control module-start, a test process control module-end, a programmable power supply 70 control module, a test process control module-progress query, a test configuration file module 111, a test log collection module 112, and a report generation module 113. Among them, the scheduling module 105 includes a factory flashing scheduling module 114, an OTA flashing scheduling module 115, and a self-test program scheduling module 116.
[0069] Among them, the test process control module-start is used to start running the test framework 100 and record the start time. The test process control module-end is used to end the test process and record the end time. The use case management module 101 is used to configure and manage the execution of factory flash test cases, self-test trial cases, and OTA test cases. The programmable power supply 70 control module is used to control the power on and off of the power supply. The DDS service communication module 102 is used to call the simulation service program according to the test scenario of the test case, and call the interface to pass the parameters to the configuration file in the DDS server 20. The CICD communication module 103 is used to trigger the CICD platform 50 pipeline. The CICD platform 50 sends commands through the Agent agent tool to control the operation of the test framework 100 and inform the test framework 100 of the software version release information. The software package download & read module is used to download the software package from the version management system 60 according to the received version release information. After the software package is downloaded to the local, the software package information will be read. The software package information includes memory size, MD5 value, SHA-256 value, etc., and a JSON configuration file is generated for flashing. The factory flash scheduling module 114 is used to collect the module dependencies and use cases when testing the factory flash. The OTA flash scheduling module 115 is used to collect the module dependencies and use cases when testing the OTA flash. The self-test program scheduling module 116 is used to collect the module dependencies and use cases when testing the self-test. The test process control module-progress query is used to check the use case execution status and the total progress of the currently executed use case. The test configuration file module 111 is used to store information such as the IP address and port address of the ECU, as well as all parameter information required by the use case. The use case management module 101 is used to configure and manage the execution of factory flash tests, self-test tests, and OTA test cases, covering various test scenarios. The test log collection module 112 is used to record test case logs, as well as collect and save logs generated during the controller test process. The report generation module 113 is used to generate a report for this test, which will record all use case test step information and test results, as well as a summary overview of the full test results. In this way, the vehicle testing system 1 provided by the present application can record the test results and verification reports of each firmware version, which can be used to track the verification history of each version, understand the problems and improvements of each version, and better manage and track the firmware version management process.
[0070] In some embodiments, in combination Fig. 9 As shown, the DDS server 20 includes: a simulation service management module 201, a broadcast module 202, a simulation configuration file module 203, a DDS service enabling module 204, a DDS stop enabling module, a PC communication module 206, and a simulation log generating module 207.
[0071] Among them, the DDS service activation module 204 is used to notify the industrial computer 10 to enable the DDS service after the automation process starts. The DDS service stop module 205 is used to notify the industrial computer 10 to stop the DDS service after the automation process ends. The PC communication module 206 is used for the DDS server 20 to receive the input parameters of the test framework 100. The simulation service management module 201 is used to build a simulation service program for virtual test scenarios, for example, to build a simulation service program suitable for OTA upgrade testing, a simulation service program suitable for air conditioning self-test testing, and a simulation service program suitable for lighting self-test testing. The broadcast module 202 will broadcast the current simulated working condition after the DDS simulation service is enabled, and the vehicle computer can perform corresponding actions after receiving the broadcast information. The simulation configuration file module 203 is used to configure the virtual test scene according to the target test scenario parameters of the test case sent by the received test framework 100. The simulation log generation module 207 is used to record the logs generated when the DDS service is enabled to facilitate positioning.
[0072] In some embodiments, in combination Fig.10 As shown, a vehicle testing method based on DDS simulation service is provided, and the vehicle testing method includes:
[0073] S1001, in response to a test request, obtaining a test case corresponding to the test request.
[0074] S1002, calling the target test scenario parameters corresponding to the test case, and feeding back the target test scenario parameters to the DDS server.
[0075] S1003, the DDS server constructs a simulation service program of a virtual target test scenario according to the target test scenario parameters.
[0076] S1004, broadcasting the simulation service program to the hardware under test, so that the hardware under test can execute the test program.
[0077] Among them, the test cases include one or more of factory flash test cases, self-test test cases, and OTA test cases.
[0078] According to the vehicle testing method based on DDS simulation service provided in the above embodiment, the method includes: in response to a test request, calling a test case corresponding to the test request. The test case includes a factory flash test case, a self-test trial case, and an OTA test case. The parameters of the retrieved test case are transmitted to the DDS server, and the DDS server constructs a simulation service program for the virtual target test scene for testing according to the target test scene parameters of the received test case. In this way, the DDS server works in coordination with the hardware under test to ensure the accurate execution of the test program. The DDS server uses the simulation service program written to simulate the service program that forwards the status signals of each controller, and can feed back the simulation signal of the controller to the vehicle computer to simulate various vehicle states, including abnormal working conditions and test scenes under boundary scenes, thereby realizing the test requirements for various working conditions by constructing virtual test scenes, thereby improving the flash stability and the accuracy of self-test, and improving the reliability of the test results. In addition, through the integration of multiple test programs and the precise control of simulation services, the test coverage is improved, and the accuracy and reliability of the test results are further improved.
[0079] Further, the step of the DDS server constructing a simulation service program of a virtual target test scenario according to the target test scenario parameters includes: determining the target test scenario requirements according to the target test scenario parameters. According to the target test scenario requirements, querying the scenario configuration database and obtaining a configuration file matching the target test scenario requirements. According to the target test scenario parameters, adjusting the parameters of the configuration file of the DDS service to obtain the simulation service program of the virtual target test scenario.
[0080] According to the above embodiment, the DDS server receives the target test scenario parameters transmitted by the test framework, and determines the test requirements according to the target test scenario parameters. Based on the test requirements, the scenario configuration file is retrieved, and the parameters of the configuration file are adjusted based on the test requirements and the target test scenario parameters to obtain a simulation service program for the virtual target test scenario. The DDS server is used to construct virtual scenes of various test conditions, and various test conditions can be completed without a physical vehicle. In addition, for abnormal conditions and boundary test scenarios that cannot be performed by physical vehicles, simulation tests can also be performed through the DDS simulation service, thereby improving the coverage of test scenarios and the coverage of test items, greatly improving the reliability of test results.
[0081] Furthermore, the scenario configuration database includes but is not limited to: abnormal operating condition test scenarios, used to simulate abnormal operating conditions of the vehicle; and / or normal operating condition test scenarios, used to simulate normal operating conditions of the vehicle.
[0082] According to the above embodiment, the DDS server can construct test scenarios of various working conditions, thereby improving the test coverage and test quality, thereby improving the flashing stability and the accuracy of the self-check.
[0083] In one example, abnormal operating condition test scenarios include but are not limited to: high voltage failure scenario, abnormal situation scenario with vehicle speed greater than 0, critical value scenario with battery voltage equal to 12V, abnormal situation scenario with battery voltage less than 12V, abnormal operating condition test scenario with handbrake status, abnormal gear operating condition test, abnormal operating condition test with battery charge and discharge status, abnormal self-test test for wiper function, abnormal self-test test for lighting function, abnormal self-test test for air conditioning function, abnormal self-test test for sunroof function, abnormal self-test test for camera function, and abnormal self-test test for various sensor functions.
[0084] In one example, the normal operating condition test scenarios include but are not limited to: a successful high voltage down scenario, a normal situation scenario with a vehicle speed equal to 0, a normal situation with a battery voltage greater than 12V, a normal operating condition test scenario with a handbrake status, a normal gear operating condition test, a normal operating condition test with a battery charging and discharging status, a normal self-test test of the wiper function, a normal self-test test of the lighting function, a normal self-test test of the air conditioning function, a normal self-test test of the sunroof function, a normal self-test test of the camera function, and normal self-test tests of various sensor functions.
[0085] In some embodiments, in combination Fig.11 As shown, a vehicle testing method based on DDS simulation service is provided, and the vehicle testing method includes:
[0086] S1101, monitoring the version release status of the version management system.
[0087] S1102: When there is a software version release in the version management system, trigger the test framework through the CICD platform to execute the test request.
[0088] S1103, in response to the test request, obtaining a test case corresponding to the test request.
[0089] S1104, calling the target test scenario parameters corresponding to the test case, and feeding back the target test scenario parameters to the DDS server.
[0090] S1105, the DDS server constructs a simulation service program of a virtual target test scenario according to the target test scenario parameters.
[0091] S1106, broadcasting the simulation service program to the hardware under test, so that the hardware under test can execute the test program.
[0092] Among them, the test cases include one or more of factory flash test cases, self-test test cases, and OTA test cases.
[0093] According to the above embodiment, the CICD platform monitors the version release of the version management system. When the version management system is monitored to have a software version released, the software package acquisition module of the test framework will be triggered to download the software package of the released software version from the version management system. The software package information is downloaded to the local computer, and the software package information is read to perform subsequent flashing test programs. In this way, the combination of the version management system and the CICD platform can realize automated testing of software versions, ensure the correctness of software versions and the timeliness of testing, and improve the efficiency of testing and publishing.
[0094] Combination Figure 7 , Fig. 9 and Fig.10 The vehicle testing system shown, in some embodiments, combines Fig.12 As shown, a vehicle testing method based on DDS simulation service is provided, and the vehicle testing method includes:
[0095] S1201, construct a vehicle testing system based on DDS simulation service.
[0096] In one example, a vehicle test system includes: an industrial computer, a DDS server, a hardware under test, a CICD platform, a version management system, and a programmable power supply. The industrial computer includes a first network card and a second network card. The first network card, the DDS simulation server, the programmable power supply, and the hardware under test are connected through a switch in the same local area network to form a test system. The second network card of the industrial computer is connected to the CICD platform and the version management system to form a data management system. The hardware under test includes a test bench or a vehicle controller. The hardware under test is powered by a programmable power supply.
[0097] The test framework is deployed on the industrial computer. The CICD platform is connected to the version management system through an interface, and the release of new versions of software can trigger the execution of the test framework through the CICD platform. The DDS simulation service management module is deployed on the DDS server, and the DDS simulation service management module provides an interface to communicate with the industrial computer and the hardware under test.
[0098] S1202, the CICD platform monitors whether the version management system releases the software version.
[0099] S1203, when there is a software version release, the CICD platform triggers the test framework to run, and controls the version management system to download the software package according to the released software version information, and reads the software package information for testing.
[0100] S1204, the test process starts, the program-controlled power supply is powered on, and power is supplied to the hardware under test;
[0101] S1205, after the program-controlled power supply is powered on, determine the factory flash use case test to be executed.
[0102] S1206, calling the target test scenario parameters corresponding to the test case of the factory flash case test, and feeding back the target test scenario parameters to the DDS server.
[0103] S1207, the DDS server constructs a simulation service program for the virtual factory flash test scenario according to the target test scenario parameters.
[0104] S1208, broadcast the simulation service program to the hardware under test, so that the hardware under test can execute the factory flashing test program to test whether the flashing test program can correctly execute the corresponding action.
[0105] In one example, the factory flash test case is group power on and off. The flash program requests a high voltage operation, and the test framework traverses the parameters of the two scenarios of high voltage failure and success, and feeds back to the DDS server. The DDS server builds a simulation service program based on the parameters of the two scenarios of high voltage failure and success, and then passes the simulation service program to the vehicle computer to test whether the flash program can perform the corresponding action correctly.
[0106] S1209, after the program-controlled power supply is powered on, determine the OTA flashing use case test to be executed.
[0107] S1210, calling the target test scenario parameters corresponding to the test case of the OTA flash write case test, and feeding back the target test scenario parameters to the DDS server.
[0108] S1211, the DDS server builds a simulation service program for a virtual OTA flashing use case test scenario according to the target test scenario parameters.
[0109] S1212, and broadcast the simulation service program to the hardware under test, so that the hardware under test can execute the OTA flashing case test program to test whether the OTA flashing test program can correctly execute the corresponding action.
[0110] In one example, the OTA flash write case test is a vehicle speed condition test. The test framework is a test case that traverses the normal situation of the vehicle speed being 0 and the abnormal situation of the vehicle speed being greater than 0. And the parameters of the corresponding test case are fed back to the DDS server. The DDS server builds a simulation service program based on the parameters of the test cases of the normal situation of the vehicle speed being 0 and the abnormal situation of the vehicle speed being greater than 0. The DDS server then passes the simulation service program to the vehicle computer to test whether the OTA flash write program can correctly execute the corresponding action.
[0111] In one example, the OTA flash write use case test is a battery voltage condition test. The test framework will traverse the test cases for the normal situation where the battery voltage is greater than 12V, the critical situation where the battery voltage is equal to 12V, and the abnormal situation where the battery voltage is less than 12V. And the parameters of the corresponding test cases are fed back to the DDS server. The DDS server builds a simulation service program based on the parameters of the test cases for the normal situation where the battery voltage is greater than 12V, the critical situation where the battery voltage is equal to 12V, and the abnormal situation where the battery voltage is less than 12V. The DDS server then passes the simulation service program to the vehicle computer to test whether the OTA flash write program will correctly execute the corresponding actions.
[0112] OTA flashing test cases also include but are not limited to: handbrake status operating condition test, gear position operating condition test, battery charging and discharging status operating condition test.
[0113] S1213, after the program-controlled power supply is powered on, determine the self-test case test to be executed.
[0114] S1214, calling the target test scenario parameters corresponding to the test case of the self-check case test, and feeding back the target test scenario parameters to the DDS server.
[0115] S1215, the DDS server constructs a simulation service program for the virtual self-test use case test scenario according to the target test scenario parameters.
[0116] S1216, broadcasting the simulation service program to the hardware under test, so that the hardware under test can execute the self-check case test program to test whether the self-check case test program can correctly execute the corresponding action.
[0117] In one example, the self-check case test is a rearview mirror adjustment self-check test. The self-check program needs to detect whether the rearview mirror is adjusted in place on the X-axis and Y-axis. The test framework will traverse the parameters of the test cases for the X-axis position adjustment in place, the X-axis position not adjusted in place, the Y-axis position adjustment in place, the Y-axis position not adjusted in place, and the adjustment timeout scenario. The test framework feeds these parameters back to the DDS server. The DDS server builds a simulation service program based on the parameters of the test cases for the X-axis position adjustment in place, the X-axis position not adjusted in place, the Y-axis position adjustment in place, the Y-axis position not adjusted in place, and the adjustment timeout scenario. The DDS server then passes the simulation service program to the vehicle computer to test whether the self-check case test program will correctly perform the corresponding actions.
[0118] Self-test case tests also include but are not limited to: wiper function self-test test, light function self-test test, air conditioning function self-test test, sunroof function self-test test, camera function self-test test, and various sensor function self-test tests.
[0119] S1217, the test framework collects the logs of the test process, organizes the test data into reports, and feeds them back to the CICD platform and version management system for display.
[0120] S1218, after the test is completed, notify the program-controlled power supply to power off, and notify the DDS server to close the simulation service.
[0121] Combination Fig.13 As shown, an embodiment of the present disclosure provides a control device 1300 for an EGR system of an engine, including a processor 1301 and a memory 1302. Optionally, the device 130 may also include a communication interface 1303 and a bus 1304. Among them, the processor 1301, the communication interface 1303, and the memory 1302 can communicate with each other through the bus 1304. The communication interface 1303 can be used for information transmission. The processor 1301 can call the logic instructions in the memory 1302 to execute the vehicle testing method based on the DDS simulation service of the above embodiment.
[0122] In addition, the logic instructions in the memory 1302 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0123] The memory 1302 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 1301 executes the functional application and data processing by running the program instructions / modules stored in the memory 1302, that is, the vehicle testing method based on the DDS simulation service in the above embodiment is implemented.
[0124] The memory 1302 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 1302 may include a high-speed random access memory and may also include a non-volatile memory.
[0125] In some embodiments, a computer-readable storage medium is provided, storing program instructions, which, when executed, are used to enable a computer to execute a vehicle testing method based on a DDS simulation service as in any of the above embodiments.
[0126] The above embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or changes made by those skilled in the art on the basis of the present invention are all within the protection scope of the present invention. The embodiments represent only possible changes. Unless explicitly required, individual components and functions are optional, and the order of operations can be changed. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms as well. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or comprising refer to the existence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the existence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same or similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0127] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0128] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0129] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A vehicle testing system based on DDS simulation service, characterized in that: include: An industrial computer is deployed with a test framework, and the test framework is used to respond to a test request and obtain a test case corresponding to the test request; The DDS server is connected to the industrial computer through a switch. The DDS server is deployed with a simulation service program. The DDS server is used to receive test cases sent by the test framework and build a simulation service program of a virtual target test scenario according to the test cases. The hardware under test is connected to the DDS server for communication. The hardware under test is used to receive the simulation service program of the virtual target test scenario and execute the test program according to the simulation service program. Among them, the test cases include one or more of factory flash test cases, self-test test cases and OTA test cases.
2. The vehicle testing system according to claim 1, characterized in that: The testing framework includes: The use case management module is used to configure and manage the execution of factory flash test cases, self-test trial cases, and OTA test cases; The DDS service communication module is used to call the simulation service program according to the test scenario parameters of the test case and transmit the parameters to the DDS server; The scheduling module is used to collect dependencies and use cases of the test program when executing the test program.
3. The vehicle testing system according to claim 1, characterized in that: Also includes: CICD platform, communicating with industrial computers; Version management system, used to manage software versions. The version management system communicates with the CICD platform. Among them, when there is a software version release in the version management system, the test framework is triggered through the CICD platform to execute the test request.
4. The vehicle testing system according to claim 3, characterized in that: The testing framework also includes: CICD communication module, used to communicate with CICD; The software package acquisition module is used to respond to the trigger instruction of the CICD platform, download the software package from the version management system according to the received software version release information, and read the information of the software package for flashing the test program.
5. The vehicle testing system according to any one of claims 1 to 4, characterized in that: The DDS server includes: A simulation service management module is used to build a simulation service program for virtual test scenarios; A broadcast module, used to broadcast the simulation service program to the hardware under test; The simulation configuration file module is used to configure the virtual test scenario according to the target test scenario parameters of the test case sent by the received test framework.
6. The vehicle testing system according to any one of claims 1 to 4, characterized in that: Also includes: Programmable power supply, connected to the switch and the hardware under test, for power supply; The test framework also includes a program-controlled power supply communication module, which is used to connect to the program-controlled power supply to control the power on or off of the program-controlled power supply.
7. A vehicle testing method based on DDS simulation service, characterized in that: Vehicle testing methods include: In response to the test request, obtain the test case corresponding to the test request, call the target test scenario parameters corresponding to the test case, and feed back the target test scenario parameters to the DDS server; The DDS server constructs a simulation service program of a virtual target test scenario according to the target test scenario parameters, and broadcasts the simulation service program to the hardware under test so that the hardware under test can execute the test program; Among them, the test cases include one or more of factory flash test cases, self-test test cases, and OTA test cases.
8. The vehicle testing method according to claim 7, characterized in that: The steps of constructing a simulation service program of a virtual target test scenario according to the target test scenario parameters by the DDS server include: Determine the target test scenario requirements based on the target test scenario parameters; According to the target test scenario requirements, query the scenario configuration database and obtain the configuration file that matches the target test scenario requirements; According to the target test scenario parameters, the parameters of the configuration file of the DDS service are adjusted to obtain the simulation service program of the virtual target test scenario.
9. The vehicle testing method according to claim 7, characterized in that: The scenario configuration database includes: Abnormal operating conditions test scenarios, used to simulate abnormal operating conditions of the vehicle; and / or Normal operating condition test scenario, used to simulate the normal operating condition of the vehicle.
10. The vehicle testing method according to any one of claims 7 to 9, characterized in that: Before the step of responding to the test request, the test method further includes: Monitor the version release status of the version management system; When there is a software version release in the version management system, the test framework is triggered through the CICD platform to execute the test request.
Citation Information
Cited By
Aircraft wing section testing method and system based on DDS (Direct Digital Synthesizer)
CN120191528A
DDS-based Aircraft Wing Segment Testing Method and System
CN120191528B
