A vehicle software testing method, device, equipment and storage medium
By calculating the error data between the component to be changed and the changed component in the vehicle controller and sending the results to the cloud server, the problems of excessive computing power consumption and inaccurate test results of the cloud server are solved, and more accurate and comprehensive vehicle software testing is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING CO WHEELS TECH CO LTD
- Filing Date
- 2024-11-20
- Publication Date
- 2026-05-22
AI Technical Summary
Existing vehicle software testing methods involve data parsing on cloud servers, which leads to excessive consumption of cloud server computing power and inaccurate test results.
The error data between the component to be modified and the modified component is calculated in the vehicle controller and sent to the cloud server to reduce the amount of data transmission and reduce the computing burden on the cloud server. At the same time, the error data of other components in the original vehicle software and the modified vehicle software are calculated to improve the comprehensiveness and accuracy of the test results.
By calculating error data in the vehicle controller, the computing power consumption of the cloud server is reduced, and the accuracy and comprehensiveness of the test results are improved, reflecting the overall operation of the modified vehicle software.
Smart Images

Figure CN122072609A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of software testing technology, specifically to a vehicle software testing method, apparatus, equipment, and storage medium. Background Technology
[0002] Vehicles typically contain a vehicle controller, which runs vehicle software to perform various control functions. When the vehicle software needs updating, the updated software must be tested. Only after passing the tests can the updated vehicle software be officially released to ensure its reliability during operation.
[0003] Currently, existing vehicle software testing methods involve collecting all data from the actual vehicle onto a cloud server, which then analyzes and interprets the data to obtain test results. However, this testing method suffers from technical problems such as excessive cloud server computing power consumption and inaccurate test results. Summary of the Invention
[0004] In view of this, embodiments of this application provide a vehicle software testing method, apparatus, device, and storage medium to reduce cloud server computing power consumption and improve the accuracy of test results.
[0005] To address the above problems, the technical solutions provided in this application are as follows:
[0006] In a first aspect, embodiments of this application provide a vehicle software testing method, the method comprising:
[0007] The vehicle signal data is processed by the original vehicle software and the modified vehicle software to obtain the first data output by the component to be modified and the second data output by the modified component, and to obtain the third data output by at least one other component in the original vehicle software and the fourth data output by at least one other component in the modified vehicle software; the original vehicle software includes the component to be modified and other components, and the modified vehicle software includes the modified component and other components, wherein the modified component is obtained by updating the component to be modified;
[0008] Calculate the first error data between the first data and the second data;
[0009] Calculate the second error data between the third data and the fourth data;
[0010] The first error data and the second error data are sent to the cloud server so that the cloud server can generate test results for the modified vehicle software based on the first error data and the second error data.
[0011] In one possible implementation, calculating the first error data between the first data and the second data includes:
[0012] Calculate at least one of the absolute error and statistical error data between the first data and the second data;
[0013] The first error data is determined by at least one of the absolute error between the first data and the second data, and the statistical error data between the first data and the second data.
[0014] In one possible implementation, calculating the second error data between the third data and the fourth data includes:
[0015] Calculate at least one of the absolute error and statistical error data between the third data and the fourth data;
[0016] The second error data is determined by at least one of the absolute error between the third data and the fourth data, and the statistical error between the third data and the fourth data.
[0017] In one possible implementation, the method further includes:
[0018] The original vehicle software is copied to generate an image of the original vehicle software.
[0019] Replace the components to be modified in the original vehicle software of the image with the modified components to generate modified vehicle software.
[0020] Secondly, embodiments of this application provide a vehicle software testing method, the method comprising:
[0021] The system acquires first error data and second error data uploaded by the vehicle controller. The first error data is calculated based on first data output by the component to be changed and second data output by the changed component. The second error data is calculated based on third data output by at least one other component in the original vehicle software and fourth data output by at least one other component in the modified vehicle software. The original vehicle software includes the component to be changed and other components, and the modified vehicle software includes the changed component and other components. The changed component is obtained by updating the component to be changed.
[0022] Based on the first error data and the second error data, test results for the modified vehicle software are generated.
[0023] In one possible implementation, generating the test results for the modified vehicle software based on the first error data and the second error data includes:
[0024] Based on the first error data uploaded by the multiple vehicle controllers, a statistical index value for the first error data is generated;
[0025] Based on the second error data uploaded by the multiple vehicle controllers, a statistical index value for the second error data is generated;
[0026] The test results for the modified vehicle software are generated based on the statistical index values of the first error data and the second error data.
[0027] Thirdly, embodiments of this application provide a vehicle software testing apparatus, the apparatus comprising:
[0028] The first acquisition unit is used to process vehicle signal data through the original vehicle software and the modified vehicle software, acquire first data output by the component to be modified and second data output by the modified component, and acquire third data output by at least one other component in the original vehicle software and fourth data output by at least one other component in the modified vehicle software; the original vehicle software includes the component to be modified and other components, the modified vehicle software includes the modified component and other components, and the modified component is obtained by updating the component to be modified;
[0029] The first calculation unit is used to calculate the first error data between the first data and the second data;
[0030] The second calculation unit is used to calculate the second error data between the third data and the fourth data;
[0031] The sending unit is configured to send the first error data and the second error data to the cloud server, so that the cloud server generates the test results of the modified vehicle software based on the first error data and the second error data.
[0032] Fourthly, embodiments of this application provide a vehicle software testing apparatus, the apparatus comprising:
[0033] The second acquisition unit is used to acquire first error data and second error data uploaded by the vehicle controller; the first error data is calculated based on first data output by the component to be changed and second data output by the changed component; the second error data is calculated based on third data output by at least one other component in the original vehicle software and fourth data output by at least one other component in the modified vehicle software; the original vehicle software includes the component to be changed and other components, the modified vehicle software includes the changed component and other components, and the changed component is obtained by updating the component to be changed;
[0034] The generation unit is used to generate test results for the modified vehicle software based on the first error data and the second error data.
[0035] Fifthly, embodiments of this application provide a vehicle software testing device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the vehicle software testing method as described above.
[0036] Sixthly, embodiments of this application provide a computer-readable storage medium storing instructions that, when executed on a terminal device, cause the terminal device to perform the vehicle software testing method described above.
[0037] Therefore, the embodiments of this application have the following beneficial effects:
[0038] The original vehicle software in this embodiment includes components to be updated and other components, while the modified vehicle software includes the updated components and other components. By inputting vehicle signal data into the original and modified vehicle software, first data output by the component to be updated and second data output by the modified component can be obtained. First error data can be obtained from the first and second data. Simultaneously, third data output by at least one other component in the original vehicle software and fourth data output by at least one other component in the modified vehicle software can also be obtained. Second error data can be obtained from the third and fourth data. The first and second error data are sent to a cloud server, which can then generate test results for the modified vehicle software based on these data. Since the calculation of the first and second error data is performed by the vehicle controller, it does not require cloud server computation, thus reducing the computing power consumption of the cloud server. In addition, the embodiments of this application not only calculate the first error data between the first data output by the component to be changed and the second data output by the changed component, but also calculate the second error data between the third data output by at least one other component in the original vehicle software and the fourth data output by at least one other component in the changed vehicle software. This makes the test results generated based on the first error data and the second error data more comprehensively reflect the operation of the changed vehicle software and improve the accuracy of the test results. Attached Figure Description
[0039] Figure 1 A schematic diagram illustrating an exemplary application scenario provided in this application embodiment;
[0040] Figure 2 A flowchart illustrating a vehicle software testing method provided in this application embodiment;
[0041] Figure 3 A schematic diagram of a vehicle software testing method provided in an embodiment of this application;
[0042] Figure 4 A schematic diagram illustrating the implementation of the vehicle software testing method provided in this application embodiment;
[0043] Figure 5 A flowchart illustrating a vehicle software testing method provided in this application embodiment;
[0044] Figure 6 A schematic diagram of a vehicle software testing device provided in an embodiment of this application;
[0045] Figure 7 This is a schematic diagram of a vehicle software testing device provided in an embodiment of this application. Detailed Implementation
[0046] To make the above-mentioned objectives, features and advantages of the embodiments of this application more apparent and understandable, the embodiments of this application will be further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0047] To facilitate understanding and explanation of the technical solutions provided in the embodiments of this application, the background technology of the embodiments of this application will be described first below.
[0048] Currently, to test updated vehicle software, both the component to be modified and the modified component within the vehicle controller can be run. For example, if component A in the vehicle software needs updating, the original component A is the component to be modified, and the updated component A is the modified component. The vehicle controller uploads the data output by the component to be modified and the modified component to a cloud server. The cloud server calculates error data based on the output data of the component to be modified and the modified component, and then obtains the test results. This method directly uploads the data output by the component to be modified and the modified component to the cloud server, resulting in a large data transfer volume. The cloud server calculates the error data from the data uploaded by each vehicle controller, and then processes the error data to obtain the test results, which requires a significant amount of computing power. In addition, since the modified component may affect the overall vehicle software, analyzing only the output data of the component to be modified and the modified component will result in limited and inaccurate test results.
[0049] Based on this, embodiments of this application provide a vehicle software testing method, apparatus, device, and storage medium. The vehicle controller calculates the error data between the output data of the component to be modified and the modified component, and then uploads this error data to a cloud server. This reduces data transmission volume, as the cloud server does not need to calculate the error data, thereby reducing computing power consumption. Furthermore, the vehicle controller also acquires the output data of at least one other component in the original vehicle software and at least one other component in the modified vehicle software, calculates the error data between them, and then uploads this error data to the cloud server. This allows for analysis of the overall vehicle software output data before and after the modification, resulting in test results that more comprehensively reflect the operation of the modified vehicle software and improve the accuracy of the test results.
[0050] To facilitate understanding of the vehicle software testing method provided in the embodiments of this application, the following is combined with... Figure 1 The example scenario is shown below. See also... Figure 1 As shown in the figure, this figure is a schematic diagram of an exemplary application scenario provided in the embodiments of this application.
[0051] In this embodiment, the vehicle software testing method can be executed by a vehicle server or a cloud server. The cloud server can communicate with multiple vehicle servers.
[0052] The vehicle controller can run both the original vehicle software and modified vehicle software. The original vehicle software includes the component to be updated and other components, while the modified vehicle software includes the updated component and other components. The vehicle controller can obtain first data output from the component to be updated and second data output from the modified component, thereby calculating first error data. It can also obtain third data output from at least one other component in the original vehicle software and fourth data output from at least one other component in the modified vehicle software, thereby calculating second error data. Only the obtained first and second error data are sent to the cloud server, reducing data transmission volume, and the cloud server does not need to calculate the first and second error data, thus reducing the computing power consumption of the cloud server.
[0053] The cloud server generates test results for the modified vehicle software based on the first error data and the second error data. The first error data reflects the data error caused by the update of one or more components in the vehicle software, while the second error data reflects the data error caused by the update of the vehicle software as a whole or other components. Therefore, the test results obtained based on the first and second error data can more comprehensively reflect the operation of the modified vehicle software and improve the accuracy of the test results.
[0054] Those skilled in the art will understand that Figure 1The schematic diagram shown is merely one example in which embodiments of this application can be implemented. The scope of application of the embodiments of this application is not limited by any aspect of this framework.
[0055] To facilitate understanding of the embodiments of this application, a vehicle software testing method provided by the embodiments of this application will be described below with reference to the accompanying drawings.
[0056] See Figure 2 As shown, this figure is a flowchart of a vehicle software testing method provided in an embodiment of this application. Figure 2 As shown, the method may include S201-S204:
[0057] S201: Process vehicle signal data using the original vehicle software and the modified vehicle software to obtain first data output by the component to be modified and second data output by the modified component, and obtain third data output by at least one other component in the original vehicle software and fourth data output by at least one other component in the modified vehicle software. The original vehicle software includes the component to be modified and other components, and the modified vehicle software includes the modified component and other components. The modified component is obtained after updating the component to be modified.
[0058] This embodiment can be applied to a vehicle controller. The vehicle controller runs vehicle software, and when the vehicle software is updated, the updated vehicle software needs to be tested. In this embodiment, the vehicle software before the update is the original vehicle software, and the vehicle software after the update is the modified vehicle software.
[0059] Understandably, when updating vehicle software, the entire codebase is typically not updated; only one or more components are updated. A component can be considered a collection of independently executable code within the vehicle software. Therefore, the original vehicle software includes the component to be changed and other components. The component to be changed is the one planned to be updated in the original vehicle software, while the other components are those that can interact with the component to be changed. The updated vehicle software includes the modified component and other components. The modified component is the component obtained after updating the component to be changed, while the other components are those that are not modified in the updated vehicle software, and these other components can interact with the modified component.
[0060] Both the original vehicle software and the modified vehicle software have data interfaces. These interfaces allow the input of identical vehicle signal data to both software, ensuring data consistency. Vehicle signal data refers to the data required for the operation of both the original and modified vehicle software, such as vehicle signals collected by vehicle sensors and data sent by other controllers.
[0061] After vehicle signal data is input into the original vehicle software and the modified vehicle software, running the original vehicle software and the modified vehicle software yields the first data output by the component to be modified and the second data output by the modified component. The data types of the first and second data depend on the functions of the component to be modified and the modified component. For example, if the function of the component to be modified and the modified component is to output the main circuit temperature, then the first and second data will be temperature data.
[0062] After vehicle signal data is input into the original vehicle software and the modified vehicle software, by running the original vehicle software and allowing the modified component to interact with other components, a third data point output by at least one other component in the original vehicle software can be obtained. Similarly, by running the modified vehicle software and allowing the modified component to interact with other components, a fourth data point output by at least one other component in the modified vehicle software can be obtained. Likewise, the data types of the third and fourth data depend on the functions of the original and modified vehicle software. For example, if the function of a certain other component in the original and modified vehicle software is to control the fan, then the third and fourth data points are the fan control values.
[0063] Based on the above description, in one possible implementation, the vehicle software testing method provided in this application embodiment may further include:
[0064] A1: Copy the original vehicle software to generate an image of the original vehicle software.
[0065] A2: Replace the components to be modified in the original vehicle software of the mirror with the modified components to generate modified vehicle software.
[0066] Before S201 is executed, modified vehicle software can be generated from the original vehicle software. In practical applications, the original vehicle software is copied to generate a mirror image of the original vehicle software. In the mirror image of the original vehicle software, the components to be modified are replaced with the already modified components, while other components remain unchanged, thus generating the modified vehicle software. This method avoids direct updates to the original vehicle software, isolating it from the modified vehicle software and preventing the update and testing processes from affecting the original vehicle software. Furthermore, running both the original and modified vehicle software on the vehicle controller allows for more comprehensive and accurate test results.
[0067] S202: Calculate the first error data between the first data and the second data.
[0068] Since the original vehicle software is generally tested and proven, the first data output by the component to be modified can be considered accurate. By comparing the first data with the second data, the first error data between them can be obtained. The first error data can include the absolute error between the first and second data, as well as statistical error data such as relative error, variance, and standard deviation.
[0069] The specific implementation of S202 in calculating the first error data between the first data and the second data can be found in subsequent embodiments, and will not be elaborated here.
[0070] S203: Calculate the second error data between the third and fourth data.
[0071] Since the original vehicle software is generally tested and validated, the third data output by at least one other component within that original vehicle software can be considered accurate. By comparing the third data with the fourth data, a second error data point can be obtained between them. This second error data point can include the absolute error between the third and fourth data points, as well as statistical error data such as relative error, variance, and standard deviation.
[0072] The specific implementation of S203 in calculating the second error data between the third and fourth data can be found in subsequent embodiments, and will not be elaborated here.
[0073] It is understood that the implementation of this application does not limit the execution order between S202 and S203. S202 can be executed before S203, or S202 can be executed before S203, or S202 and S203 can be executed in parallel.
[0074] S204: Send the first error data and the second error data to the cloud server so that the cloud server can generate test results for changing the vehicle software based on the first error data and the second error data.
[0075] The vehicle controller uses its own computing power to calculate the first and second error data, and then sends these data to the cloud server. This reduces data transmission volume and eliminates the need for the cloud server to expend computing power to calculate the error data. The cloud server can analyze the first and second error data uploaded by different vehicle controllers and ultimately generate test results for modifying the vehicle software.
[0076] The original vehicle software in this application includes components to be updated and other components, while the modified vehicle software includes the updated components and other components. By inputting vehicle signal data into the original and modified vehicle software, first data output by the component to be updated and second data output by the updated component can be obtained. First error data can be obtained from the first and second data. Simultaneously, third data output by at least one other component in the original vehicle software and fourth data output by at least one other component in the modified vehicle software can also be obtained. Second error data can be obtained from the third and fourth data. The first and second error data are then sent to a cloud server, which can generate test results for the modified vehicle software based on these data.
[0077] Since the calculation of both the first and second error data is performed by the vehicle controller, cloud server computation is not required, reducing the computing power consumption of the cloud server. Furthermore, this embodiment not only calculates the first error data between the first data output by the component to be modified and the second data output by the modified component, but also calculates the second error data between the third data output by at least one other component in the original vehicle software and the fourth data output by at least one other component in the modified vehicle software. This allows the test results generated based on the first and second error data to more comprehensively reflect the operation of the modified vehicle software, improving the accuracy of the test results.
[0078] The following section continues to explain the specific implementation process of steps S202 and S203.
[0079] In one possible implementation, the specific implementation of S202 calculating the first error data between the first data and the second data may include:
[0080] B1: Calculate at least one of the absolute error and statistical error data between the first and second data.
[0081] To ensure testing accuracy, the same vehicle signal data is input into both the original vehicle software and the modified vehicle software; for example, vehicle signal data generated within a first time period. Therefore, it is also necessary to acquire the first data output by the component to be modified and the second data output by the modified component within the same time period; for example, the first and second data generated within a second time period. The second time period can be included within the first time period. In practical applications, the first and second data can be acquired according to a preset sampling frequency.
[0082] Then, the absolute value of the difference between the first and second data at each same time can be calculated to obtain a set of absolute errors between the first and second data.
[0083] Based on the absolute error between the first and second data, statistical error data between the first and second data can be further calculated. Statistical error data may include, for example, relative error, variance, and standard deviation. This application does not limit the specific type of statistical error data calculated; it can be set according to the actual application scenario.
[0084] B2: The first error data is determined by at least one of the absolute error between the first data and the second data, and the statistical error between the first data and the second data.
[0085] The absolute error and / or statistical error data between the first data and the second data are packaged to generate the first error data between the first data and the second data.
[0086] Therefore, the first error data between the first data and the second data can be calculated by the vehicle controller, without having to upload the first data and the second data to the cloud server, thus reducing the amount of data transmission and reducing the computing power consumption of the cloud server.
[0087] In one possible implementation, the specific implementation of S203 calculating the second error data between the third and fourth data may include:
[0088] C1: Calculate at least one of the absolute error and statistical error data between the third and fourth data.
[0089] To ensure testing accuracy, the same vehicle signal data is input into both the original vehicle software and the modified vehicle software; for example, vehicle signal data generated within a first time period. It is also necessary to acquire third data output by at least one other component in the original vehicle software and fourth data output by at least one other component in the modified vehicle software within the same time period; for example, third and fourth data generated within a second time period. The second time period can be included within the first time period. In practical applications, the third and fourth data can be acquired according to a preset sampling frequency.
[0090] Then, the absolute value of the difference between the third and fourth data at each same time can be calculated, thus obtaining a set of absolute errors between the third and fourth data.
[0091] Based on the absolute error between the third and fourth data points, the statistical error between them can be further calculated. Statistical error data may include, for example, relative error, variance, and standard deviation. This application does not limit the specific type of statistical error data calculated; it can be set according to the actual application scenario.
[0092] C2: Determine at least one of the absolute error between the third and fourth data points and the statistical error between the third and fourth data points as the second error data.
[0093] The absolute error and / or statistical error data between the third and fourth data are packaged to generate the second error data between the third and fourth data.
[0094] Therefore, the second error data between the third and fourth data can be calculated by the vehicle controller without uploading the third and fourth data to the cloud server, which reduces the amount of data transmission and the computing power consumption of the cloud server.
[0095] See Figure 3 The diagram shows a schematic of the vehicle software testing method provided in an embodiment of this application.
[0096] In this embodiment, the original vehicle software includes the component to be modified and other components, which can interact with the component to be modified. The updated vehicle software includes the modified component and other components, which can interact with the modified component. The same vehicle signal data can be input into both the original and modified vehicle software via a data interface. By running the original and modified vehicle software, first data output by the component to be modified and second data output by the modified component can be obtained. From the first and second data, a first error data can be obtained between the first and second data. Third data output from other components of the original vehicle software and fourth data output from other components of the modified vehicle software can also be obtained. From the third and fourth data, a second error data between the third and fourth data can be obtained.
[0097] The first error data and the second error data are sent to the cloud server. The cloud server can analyze the first error data and the second error data uploaded by different vehicle controllers and finally generate test results for the modified vehicle software.
[0098] See Figure 4 The diagram shows a schematic representation of the vehicle software testing method provided in this application embodiment.
[0099] In this embodiment, the original vehicle software includes the component to be modified and other components. For example, the component to be modified is a real main circuit temperature sensor acquisition component, used to process the real main circuit temperature sensor acquisition signal into a value usable by the vehicle software, and its output is the real acquired main circuit temperature value (i.e., the first data). Other components are fan, grille, and water pump control components, used to control the fan, grille, and water pump, wherein the main circuit temperature value is one of its control conditions, and the output is the control value of the fan, grille, and water pump (i.e., the third data).
[0100] The vehicle software update includes modified components and other components. For example, the modified component is the main circuit temperature calculation component, which replaces the actual main circuit temperature sensor acquisition component. It is used to calculate the main circuit temperature through an algorithm, replacing the actual main circuit temperature sensor acquisition, and its output is the algorithm-calculated main circuit temperature value (i.e., the second data). Other components are fan, grille, and water pump control components, which are used to control the fan, grille, and water pump. The main circuit temperature value is one of its control conditions, and its output is the control value of the fan, grille, and water pump (i.e., the fourth data).
[0101] Calculate the first error data, such as absolute error, relative error, and variance, between the actual collected main circuit temperature value and the main circuit temperature value calculated by the algorithm within the same time domain, and the second error data, such as absolute error, relative error, and variance, between the control values output by the original vehicle software and the updated vehicle software.
[0102] The first and second error data are uploaded to the cloud server, which performs statistical analysis on the acquired data to obtain the test results of the modified vehicle software.
[0103] This application's embodiments deploy some testing algorithms within the vehicle controller, utilizing the controller's redundant computing power to calculate the required testing data and uploading the results to a cloud server. This reduces the amount of data uploaded, the storage requirements, and the computational overhead on the cloud server, lowering cloud verification costs and improving testing efficiency and reliability.
[0104] See Figure 5 As shown, this figure is a flowchart of another vehicle software testing method provided in an embodiment of this application, as follows. Figure 5 As shown, the method may include S501-S502:
[0105] S501: Obtain the first error data and the second error data uploaded by the vehicle controller. The first error data is calculated based on the first data output by the component to be modified and the second data output by the modified component; the second error data is calculated based on the third data output by at least one other component in the original vehicle software and the fourth data output by at least one other component in the modified vehicle software; the original vehicle software includes the component to be modified and other components, and the modified vehicle software includes the modified component and other components, where the modified component is obtained after updating the component to be modified.
[0106] This embodiment can be applied to a cloud server. The cloud server can obtain the first error data and the second error data uploaded by the vehicle controller. The calculation process for the first error data and the second error data can be found in the description of the above embodiment, and will not be repeated here.
[0107] S502: Generate test results for the modified vehicle software based on the first error data and the second error data.
[0108] The cloud server can analyze the first and second error data uploaded by different vehicle controllers and ultimately generate test results for the modified vehicle software.
[0109] In one possible implementation, the specific implementation of S502 generating test results for the modified vehicle software based on the first error data and the second error data may include:
[0110] D1: Generate statistical index values for the first error data based on the first error data uploaded by multiple vehicle controllers.
[0111] Based on the first error data uploaded by multiple vehicle controllers, statistical index values of the first error data within the target period can be generated, such as the maximum error, minimum error, average error, and variance among the first error data uploaded by each vehicle controller within a week.
[0112] D2: Generate statistical index values for the second error data based on the second error data uploaded by multiple vehicle controllers.
[0113] Similarly, based on the second error data uploaded by multiple vehicle controllers, statistical index values of the second error data within the target period can be generated, such as the maximum error, minimum error, average error, and variance among the second error data uploaded by each vehicle controller within a week.
[0114] The embodiments of this application do not limit the specific type of statistical indicator values, and can be set according to the actual application scenario.
[0115] D3: Based on the statistical index values of the first error data and the second error data, generate the test results for the modified vehicle software.
[0116] The cloud server uses statistical index values from first and second error data, and based on set conditions, can analyze the test results of modified vehicle software to verify whether the modified software meets design requirements. For example, in practical applications, threshold values can be set for the statistical index values of the first and second error data. When the statistical index values meet the corresponding thresholds, a test result indicating that the modified vehicle software has passed is generated. When the statistical index values do not meet the corresponding thresholds, a test result indicating that the modified vehicle software has failed is generated.
[0117] In this embodiment, since the calculation of the first and second error data is performed by the vehicle controller, cloud server computation is not required, thus reducing the computing power consumption of the cloud server. Furthermore, this embodiment not only calculates the first error data between the first data output by the component to be modified and the second data output by the modified component, but also calculates the second error data between the third data output by at least one other component in the original vehicle software and the fourth data output by at least one other component in the modified vehicle software. This allows the test results generated based on the first and second error data to more comprehensively reflect the operation of the modified vehicle software, improving the accuracy of the test results.
[0118] Based on the vehicle software testing method provided in the above-described embodiments, this application also provides a vehicle software testing device, which will be described below with reference to the accompanying drawings.
[0119] See Figure 6 As shown in the figure, this is a schematic diagram of the structure of a vehicle software testing device provided in an embodiment of this application. Figure 6 As shown, the vehicle software testing device includes:
[0120] The first acquisition unit 601 is used to process vehicle signal data through the original vehicle software and the modified vehicle software, acquire first data output by the component to be modified and second data output by the modified component, and acquire third data output by at least one other component in the original vehicle software and fourth data output by at least one other component in the modified vehicle software; the original vehicle software includes the component to be modified and other components, the modified vehicle software includes the modified component and other components, and the modified component is obtained by updating the component to be modified;
[0121] The first calculation unit 602 is used to calculate the first error data between the first data and the second data;
[0122] The second calculation unit 603 is used to calculate the second error data between the third data and the fourth data;
[0123] The sending unit 604 is used to send the first error data and the second error data to the cloud server, so that the cloud server generates the test results of the modified vehicle software based on the first error data and the second error data.
[0124] In one possible implementation, the first computing unit includes:
[0125] The first calculation subunit is used to calculate at least one of the absolute error and statistical error data between the first data and the second data;
[0126] The first determining subunit is used to determine at least one of the absolute error between the first data and the second data, and the statistical error data between the first data and the second data, as the first error data.
[0127] In one possible implementation, the second computing unit includes:
[0128] The second calculation subunit is used to calculate at least one of the absolute error and statistical error data between the third data and the fourth data;
[0129] The second determining subunit is used to determine at least one of the absolute error between the third data and the fourth data, and the statistical error data between the third data and the fourth data, as the second error data.
[0130] In one possible implementation, the device further includes:
[0131] The copying unit is used to copy the original vehicle software to generate an image of the original vehicle software.
[0132] The replacement unit is used to replace the components to be changed in the original vehicle software of the image with the changed components, thereby generating modified vehicle software.
[0133] See Figure 7 As shown in the figure, this figure is a structural schematic diagram of another vehicle software testing device provided in an embodiment of this application.
[0134] like Figure 7 As shown, the vehicle software testing device includes:
[0135] The second acquisition unit 701 is used to acquire first error data and second error data uploaded by the vehicle controller; the first error data is calculated based on first data output by the component to be changed and second data output by the changed component; the second error data is calculated based on third data output by at least one other component in the original vehicle software and fourth data output by at least one other component in the modified vehicle software; the original vehicle software includes the component to be changed and other components, the modified vehicle software includes the changed component and other components, and the changed component is obtained by updating the component to be changed;
[0136] The generation unit 702 is used to generate the test results of the modified vehicle software based on the first error data and the second error data.
[0137] In one possible implementation, the generation unit includes:
[0138] The first generation subunit is used to generate statistical index values of the first error data based on the first error data uploaded by the multiple vehicle controllers.
[0139] The second generation subunit is used to generate statistical index values of the second error data based on the second error data uploaded by the multiple vehicle controllers.
[0140] The third generation subunit is used to generate the test results of the modified vehicle software based on the statistical index values of the first error data and the statistical index values of the second error data.
[0141] In addition, this application embodiment also provides a vehicle software testing device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the vehicle software testing method as described in any of the above claims.
[0142] This application also provides a computer-readable storage medium storing instructions that, when executed on a terminal device, cause the terminal device to perform the vehicle software testing method as described in any of the preceding claims.
[0143] This application also provides a computer program product, including computer program instructions, which, when executed on a computer, cause the computer to perform the vehicle software testing method as described in any of the preceding embodiments.
[0144] The original vehicle software in this embodiment includes components to be updated and other components, while the modified vehicle software includes the updated components and other components. By inputting vehicle signal data into the original and modified vehicle software, first data output by the component to be updated and second data output by the modified component can be obtained. First error data can be obtained from the first and second data. Simultaneously, third data output by at least one other component in the original vehicle software and fourth data output by at least one other component in the modified vehicle software can also be obtained. Second error data can be obtained from the third and fourth data. The first and second error data are sent to a cloud server, which can then generate test results for the modified vehicle software based on these data. Since the calculation of the first and second error data is performed by the vehicle controller, it does not require cloud server computation, thus reducing the computing power consumption of the cloud server. In addition, the embodiments of this application not only calculate the first error data between the first data output by the component to be changed and the second data output by the changed component, but also calculate the second error data between the third data output by at least one other component in the original vehicle software and the fourth data output by at least one other component in the changed vehicle software. This makes the test results generated based on the first error data and the second error data more comprehensively reflect the operation of the changed vehicle software and improve the accuracy of the test results.
[0145] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems or apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and relevant parts can be referred to the method section.
[0146] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0147] It should also be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0148] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0149] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A vehicle software testing method, characterized in that, The method includes: The vehicle signal data is processed by the original vehicle software and the modified vehicle software to obtain the first data output by the component to be modified and the second data output by the modified component, and to obtain the third data output by at least one other component in the original vehicle software and the fourth data output by at least one other component in the modified vehicle software; the original vehicle software includes the component to be modified and other components, and the modified vehicle software includes the modified component and other components, wherein the modified component is obtained by updating the component to be modified; Calculate the first error data between the first data and the second data; Calculate the second error data between the third data and the fourth data; The first error data and the second error data are sent to the cloud server so that the cloud server can generate test results for the modified vehicle software based on the first error data and the second error data.
2. The method according to claim 1, characterized in that, The calculation of the first error data between the first data and the second data includes: Calculate at least one of the absolute error and statistical error data between the first data and the second data; The first error data is determined by at least one of the absolute error between the first data and the second data, and the statistical error data between the first data and the second data.
3. The method according to claim 1, characterized in that, The calculation of the second error data between the third data and the fourth data includes: Calculate at least one of the absolute error and statistical error data between the third data and the fourth data; The second error data is determined by at least one of the absolute error between the third data and the fourth data, and the statistical error between the third data and the fourth data.
4. The method according to claim 1, characterized in that, The method further includes: The original vehicle software is copied to generate an image of the original vehicle software. Replace the components to be modified in the original vehicle software of the image with the modified components to generate modified vehicle software.
5. A vehicle software testing method, characterized in that, The method includes: The system acquires first error data and second error data uploaded by the vehicle controller. The first error data is calculated based on first data output by the component to be changed and second data output by the changed component. The second error data is calculated based on third data output by at least one other component in the original vehicle software and fourth data output by at least one other component in the modified vehicle software. The original vehicle software includes the component to be changed and other components, and the modified vehicle software includes the changed component and other components. The changed component is obtained by updating the component to be changed. Based on the first error data and the second error data, test results for the modified vehicle software are generated.
6. The method according to claim 5, characterized in that, The step of generating the test results for the modified vehicle software based on the first error data and the second error data includes: Based on the first error data uploaded by the multiple vehicle controllers, a statistical index value for the first error data is generated; Based on the second error data uploaded by the multiple vehicle controllers, a statistical index value for the second error data is generated; The test results for the modified vehicle software are generated based on the statistical index values of the first error data and the second error data.
7. A vehicle software testing device, characterized in that, The device includes: The first acquisition unit is used to process vehicle signal data through the original vehicle software and the modified vehicle software, acquire first data output by the component to be modified and second data output by the modified component, and acquire third data output by at least one other component in the original vehicle software and fourth data output by at least one other component in the modified vehicle software; the original vehicle software includes the component to be modified and other components, the modified vehicle software includes the modified component and other components, and the modified component is obtained by updating the component to be modified; The first calculation unit is used to calculate the first error data between the first data and the second data; The second calculation unit is used to calculate the second error data between the third data and the fourth data; The sending unit is configured to send the first error data and the second error data to the cloud server, so that the cloud server generates the test results of the modified vehicle software based on the first error data and the second error data.
8. A vehicle software testing device, characterized in that, The device includes: The second acquisition unit is used to acquire first error data and second error data uploaded by the vehicle controller; the first error data is calculated based on first data output by the component to be changed and second data output by the changed component; the second error data is calculated based on third data output by at least one other component in the original vehicle software and fourth data output by at least one other component in the modified vehicle software; the original vehicle software includes the component to be changed and other components, the modified vehicle software includes the changed component and other components, and the changed component is obtained by updating the component to be changed; The generation unit is used to generate test results for the modified vehicle software based on the first error data and the second error data.
9. A vehicle software testing device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the vehicle software testing method as described in any one of claims 1-6.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a terminal device, cause the terminal device to perform the vehicle software testing method as described in any one of claims 1-6.