Network test method, device and equipment of vehicle controller, medium and product
By designing a network testing method and device for vehicle controllers, using the test system to receive test configuration operations, create test tasks and join task queues, and automatically execute test tasks in task queues, solving the problem of inefficient network testing of existing vehicles. , realize batch testing and automated operations of multiple controllers, and improve testing efficiency.
Patent Information
- Application Number
- CN202411379022.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-02-11
AI Technical Summary
The existing vehicle network testing methods are inefficient and require manual monitoring and switching of test categories and controllers under test, resulting in long test cycles and low efficiency.
By designing a network testing method and device for vehicle controllers, using the test system to receive test configuration operations, create test tasks and join task queues, and automatically execute test tasks in task queues to realize different controllers to be tested or the same ones to be tested Automatic continuous network testing of different test scripts of controllers.
The method and device can reduce manual operation, improve network testing efficiency, and realize batch testing and automated operation of multiple controllers.
Smart Images

Figure CN119420678A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle testing technology, and in particular to a network testing method, device, equipment, medium and product for a vehicle controller. Background Art
[0002] With the development of automobile technology, automobiles are becoming more and more intelligent, especially new energy vehicles. The number of integrated controllers and electronic control units (ECUs) in automobiles is also increasing. Different controllers generally use the controller area network (CAN) bus, such as the CAN with Flexible Data-Rate (CANFD) bus, for network communication. In order to ensure the normal operation of the vehicle, it is necessary to first ensure the normal communication between the various controller components, and network testing is particularly important.
[0003] At present, network testing is mainly concentrated at the component level. Single unit testing is performed through a network test cabinet and test records are generated. The test process requires manual monitoring. The network test time for a single controller is long. After completing a category of testing, the test category and the controller under test are switched manually, which requires large manpower investment, long test cycle and low efficiency. Summary of the invention
[0004] The present invention provides a network testing method, device, equipment and storage medium for a vehicle controller, which can improve the testing efficiency of the controller in the vehicle.
[0005] According to one aspect of the present invention, a network testing method for a vehicle controller is provided, which is applied to a testing system, and the method comprises:
[0006] Receiving a test configuration operation for a controller to be tested, wherein the controller to be tested includes a controller in a preset controller set in a target vehicle, each controller in the preset controller set is respectively connected to a test port in a test bench, the test configuration operation includes a test script selection operation, and the test system is communicatively connected to the test bench;
[0007] Creating a test task corresponding to the controller to be tested according to the test configuration operation, and adding the test task to a task queue, wherein different test tasks correspond to different controllers to be tested and / or different test scripts;
[0008] In response to the task queue execution operation, the target test tasks to be executed are determined in sequence from the task queue, and based on the target test script corresponding to the target test task, a network test is performed on the target controller to be tested connected to the corresponding test port of the test bench to obtain the corresponding test result.
[0009] According to another aspect of the present invention, a network testing device for a vehicle controller is provided, characterized in that it is configured in a testing system, and the device comprises:
[0010] a configuration operation receiving module, configured to receive a test configuration operation for a controller to be tested, wherein the controller to be tested includes a controller in a preset controller set in a target vehicle, each controller in the preset controller set is respectively connected to a test port in a test bench, the test configuration operation includes a test script selection operation, and the test system is communicatively connected to the test bench;
[0011] A test task creation module, used to create a test task corresponding to the controller to be tested according to the test configuration operation, and add the test task to a task queue, wherein different test tasks correspond to different controllers to be tested and / or different test scripts;
[0012] A test task execution module is used to respond to the task queue execution operation, determine the target test task to be executed from the task queue in sequence, and perform a network test on the target controller to be tested connected to the corresponding test port of the test bench based on the target test script corresponding to the target test task to obtain the corresponding test result.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the testing method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the test method described in any embodiment of the present invention when executed.
[0018] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the test method according to any embodiment of the present invention is implemented.
[0019] The network test scheme of the vehicle controller of the embodiment of the present invention, the test system receives the test configuration operation for the controller to be tested, the controller to be tested includes the controller in the preset controller set in the target vehicle, each controller in the preset controller set is connected to the test port in the test bench respectively, the test configuration operation includes the test script selection operation, the test system is connected to the test bench in communication, the test task corresponding to the controller to be tested is created according to the test configuration operation, and the test task is added to the task queue, in response to the task queue execution operation, the current target test task to be executed is determined from the task queue in sequence, and based on the target test script corresponding to the target test task, the target controller to be tested connected to the corresponding test port of the test bench is subjected to network testing to obtain the corresponding test result. By adopting the above technical scheme, multiple controllers to be tested in the vehicle can be connected to the test port in the test bench in batches, and the test script can be selected for the controller to be tested and the corresponding test task can be created and added to the task queue through the test configuration operation. When executing the task queue, the test tasks in the task queue can be executed in sequence to realize automatic continuous network testing for different controllers to be tested or different test scripts of the same controller to be tested, reduce manual operations, and effectively improve network testing efficiency.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of a network testing method for a vehicle controller provided according to an embodiment of the present invention;
[0023] Figure 2 is a flow chart of another network testing method for a vehicle controller provided according to an embodiment of the present invention;
[0024] Figure 3 is a flow chart of another network testing method for a vehicle controller provided according to an embodiment of the present invention;
[0025] Figure 4 is a flow chart of a network testing method for a vehicle controller provided according to an embodiment of the present invention;
[0026] Figure 5 is a structural schematic diagram of a network testing device for a vehicle controller provided according to an embodiment of the present invention;
[0027] Figure 6 The present invention is a schematic diagram of the structure of an electronic device for implementing the network testing method for a vehicle controller according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Figure 1 1 is a flow chart of a network testing method for a vehicle controller according to an embodiment of the present invention. This embodiment is applicable to the case of performing a single network test on a controller in a vehicle. The method can be executed by a testing device, which can be implemented in the form of hardware and / or software and can be configured in a testing system. Figure 1 As shown, the method includes:
[0031] Step 101: receiving a test configuration operation for a controller to be tested, wherein the controller to be tested includes a controller in a preset controller set in a target vehicle, each controller in the preset controller set is respectively connected to a test port in a test bench, the test configuration operation includes a test script selection operation, and the test system is communicatively connected to the test bench.
[0032] In the embodiment of the present invention, the specific type of the target vehicle is not limited, and it can be a fuel vehicle or a new energy vehicle, etc. Since there are a large number of controllers in a new energy vehicle, generally up to more than 50, when the target vehicle is a new energy vehicle, the technical effect of the technical solution is more prominent, and the test efficiency can be more significantly improved. The specific type of the controller is not limited, and can be determined according to the vehicle configuration, such as including a vehicle control unit (VCU), a drive motor controller, a battery management system, and an on-board charger, etc.
[0033] Exemplarily, the test bench in the embodiment of the present disclosure is configured with a preset number of test ports, such as 8, and the test ports can be, for example, CAN ports. The number of controllers in the preset controller set can be the same as the number of test ports of the test bench, that is, the test bench can be connected to a preset number of controllers at the same time, and the preset number of controllers connected at the same time constitutes a preset controller set. For the target vehicle, if the total number of controllers is greater than the preset number, the connection and network testing with the test bench can be carried out in batches. The test system is communicatively connected to the test bench, and the specific connection method is not limited, and it can be an effective connection or a wireless connection.
[0034] Exemplarily, the controller to be tested includes at least one controller in a preset controller set, that is, the controller that supports inputting the test configuration operation is the controller currently connected to the test port of the test bench, and one or more controllers in the preset controller set can be selected according to actual needs to input the test configuration operation. If multiple controllers need to be tested, corresponding test configuration operations can be input for each controller to be tested. Optionally, the test configuration operation is an operation input through a remote front-end interface, so that users can remotely create test tasks and improve the convenience of testing.
[0035] Exemplarily, the test configuration operation includes a test script selection operation, that is, the test script used when selecting the test for the current controller to be tested. For the controller in the vehicle, the test script may include, for example, a flash bootloader (Flash Bootloader, FBL) flash writing test script, a network communication test script, and a network management test script, etc. For different controllers, the types of test scripts may be different. If the types are the same, the script contents are also basically different. Therefore, it is generally necessary to input the test configuration operation separately. Optionally, the test configuration operation may also include a test case selection operation, that is, select a corresponding test case for the selected test script. Optionally, the test configuration operation may also include a message configuration operation, such as configuring a key for encrypting and decrypting a network message, etc. The network message is a message for network interaction between the controller to be tested and the test port of the test bench.
[0036] For example, taking the test configuration operation for a controller as an example, when a controller needs to perform a network test, you can select the controller in turn, select the test script to be executed, confirm the test cases that the selected test script needs to execute (for example, all test cases are selected by default, and you can remove unnecessary test cases by unchecking them), and trigger the creation of the test task. If the controller needs to execute multiple types of test scripts, or multiple controllers need to perform tests, you can perform the above operations separately to create the test task.
[0037] Step 102: Create a test task corresponding to the controller to be tested according to the test configuration operation, and add the test task to a task queue, wherein different test tasks correspond to different controllers to be tested and / or different test scripts.
[0038] Exemplarily, in response to a trigger operation of task creation, a test task corresponding to the controller to be tested is created according to the test configuration operation. The test task may include information such as the controller identifier of the controller to be tested, the selected test script (such as the script identifier or the script storage path), and the selected test case (such as the case identifier or the case storage path), and may also include information such as the creation time, and each test task may be set with a task identifier.
[0039] Exemplarily, each time a test task is created, the created test task is added to the task queue, such as added to the end of the task queue. Different test tasks in the task queue may correspond to different controllers to be tested, different test scripts, or different controllers to be tested and different test scripts.
[0040] Step 103, in response to the task queue execution operation, determine the target test tasks to be executed from the task queue in sequence, and based on the target test script corresponding to the target test task, perform a network test on the target controller to be tested connected to the corresponding test port of the test bench to obtain the corresponding test result.
[0041] Exemplarily, when a test task needs to be executed, the test can be started by inputting a task queue execution operation. Optionally, the task queue execution operation is an operation input through a remote front-end interface, so that the user can remotely start the test task and improve the convenience of the test. Optionally, after receiving the task queue execution operation, in the process of executing the test task in the task queue, the test configuration operation for the controller to be tested can also be continued to be received to create a new test task and add it to the task queue, so as to realize the dynamic update of the task queue and further improve the test efficiency.
[0042] Exemplarily, after receiving the task queue execution operation, the target test task to be executed currently is determined in sequence from the task queue. For example, the first test task in the task queue is first determined as the target test task to be executed currently. After the target test task is executed and the corresponding test result is obtained, the target test task is removed from the task queue to update the task queue. Then, the first test task in the updated task queue is determined as the target test task to be executed currently, and so on, until all test tasks in the task queue are executed, thereby realizing automatic continuous testing without the need for manual switching and monitoring of test tasks, etc., effectively improving network testing efficiency.
[0043] Among them, after determining the target test task to be executed currently, the target test script corresponding to the target test task is obtained, and the target controller to be tested connected to the corresponding test port of the test bench is subjected to network testing by executing the target test script to obtain the corresponding test result. The target controller to be tested is the controller to be tested corresponding to the target test task, for example, the target test task includes the controller identifier of the target controller to be tested, and the target test script is the test script to which the script identifier included in the target test task belongs. When executing the target test script, the test script to which the test case identifier included in the target test task belongs can be used to perform network testing.
[0044] Optionally, the test result may include result information of the network test of each test item in the corresponding test task, such as whether the test is passed, and if not, the failure reason may also be included.
[0045] The network testing method of the vehicle controller of the embodiment of the present invention comprises the following steps: the test system receives a test configuration operation for the controller to be tested, the controller to be tested includes a controller in a preset controller set in the target vehicle, each controller in the preset controller set is connected to a test port in the test bench, the test configuration operation includes a test script selection operation, the test system is connected to the test bench in communication, a test task corresponding to the controller to be tested is created according to the test configuration operation, and the test task is added to the task queue, in response to the task queue execution operation, the target test task to be executed is determined from the task queue in sequence, and based on the target test script corresponding to the target test task, the target controller to be tested connected to the corresponding test port of the test bench is subjected to network testing to obtain the corresponding test result. By adopting the above technical scheme, multiple controllers to be tested in the vehicle can be connected to the test port in the test bench in batches, and a test script can be selected for the controller to be tested and a corresponding test task can be created and added to the task queue through the test configuration operation. When executing the task queue, the test tasks in the task queue can be executed in sequence to realize automatic continuous network testing for different controllers to be tested or different test scripts of the same controller to be tested, thereby reducing manual operations and effectively improving network testing efficiency.
[0046] Figure 2 This is a flowchart of another vehicle controller network testing method provided according to an embodiment of the present invention. This embodiment is optimized on the basis of the above embodiment, and adds the steps of obtaining a candidate test script set before the test configuration operation and establishing the mapping relationship between the storage path of the controller, the candidate test script set, and the connected test port, which can further improve the network testing efficiency. Figure 2 As shown, the method includes:
[0047] Step 201: Obtain a set of candidate test scripts corresponding to each controller in a preset controller set.
[0048] Exemplarily, after each controller in the preset controller set is connected to the CAN port in the test bench, the test scripts that can be used in each controller can be configured, which are recorded as candidate test scripts. Generally, a controller can have multiple types of test scripts, such as the FBL flash test script, network communication test script, and network management test script mentioned in the previous example. One controller corresponds to a candidate test script set, and the candidate test script set includes all candidate test scripts of the corresponding controller. Upload the configured candidate test script set to the directory corresponding to each controller of the test system, and the test system can obtain the candidate test script set corresponding to each controller in the preset controller set.
[0049] Step 202: Establish a mapping relationship between each controller and the connected test port.
[0050] Exemplarily, the controller is manually connected to the CAN port in the test bench, and a mapping relationship between each controller and the CAN port is established in the test system, such as a corresponding relationship between a controller identifier and a CAN port number.
[0051] Optionally, it may also include: for each controller, setting the target CAN port corresponding to the current controller to shield network messages outside the target CAN port to avoid interference with the network test of the current controller and improve the accuracy of the test result. The target CAN port corresponding to the current controller may be set to shield network messages outside the target CAN port through the controller area network development environment (CAN open environment, CANoe) software.
[0052] Step 203: Receive a test configuration operation for the controller to be tested.
[0053] The test script selection operation is used to select the test script of the controller to be tested from the candidate test script set. Exemplarily, a selection operation for the controller to be tested inputted through a remote front-end interface is received, the front-end interface is controlled to display the candidate test script set corresponding to the selected controller to be tested, a selection operation for a candidate test script in the displayed candidate test script set is received through the front-end interface, and the candidate test script corresponding to the selection operation is determined as the test script corresponding to the selected controller to be tested.
[0054] Step 204: Create a test task corresponding to the controller to be tested according to the test configuration operation, and add the test task to the task queue.
[0055] Step 205: Receive the task queue and execute the operation.
[0056] Step 206: Determine the target test task to be executed currently from the task queue, and determine the target controller to be tested corresponding to the target test task.
[0057] Step 207: determine the target test port corresponding to the target controller under test according to the mapping relationship, and obtain the corresponding target test script from the script storage path corresponding to the target controller under test.
[0058] Step 208: Based on the target test script, perform a network test on the controller to be tested connected to the target test port of the test bench to obtain a corresponding test result.
[0059] Step 209 , determine whether there are any unexecuted test tasks in the task queue. If so, return to step 206 ; otherwise, execute step 210 .
[0060] Step 210: Output the test results.
[0061] Optionally, the test results of each test task in the task queue can be summarized to generate a corresponding test report, and the test report can be displayed through the front-end interface so that the test personnel can view the test results in a timely and intuitive manner.
[0062] The network testing method for a vehicle controller provided by an embodiment of the present invention stores the configured test script in a directory corresponding to each controller in a test system after the controller is connected to a CAN port, so that in subsequent tests, the test script can be quickly obtained from the storage path of the test script to be executed to perform network testing. In addition, in the test system, each controller is configured corresponding to the connected CAN port to establish a mapping relationship, so as to ensure that when executing the test task, the corresponding CAN port can be found quickly and accurately according to the mapping relationship to perform network testing on the connected controller, thereby further improving the network testing efficiency.
[0063] Figure 3 1 is a flow chart of another network testing method for a vehicle controller according to an embodiment of the present invention. This embodiment is optimized on the basis of the above embodiment, and adds the relevant steps of automatic retesting of failed test items, which can further improve the network testing efficiency. Figure 3 As shown, the method includes:
[0064] Step 301: Obtain a set of candidate test scripts corresponding to each controller in a preset controller set.
[0065] Step 302: Establish a mapping relationship between each controller and the connected test port.
[0066] Step 303: Receive a test configuration operation for the controller to be tested.
[0067] Step 304: Create a test task corresponding to the controller to be tested according to the test configuration operation, and add the test task to the task queue.
[0068] Step 305, in response to the task queue execution operation, the target test tasks to be executed are determined in sequence from the task queue, and based on the target test script corresponding to the target test task, a network test is performed on the target controller to be tested connected to the corresponding test port of the test bench to obtain the corresponding test result.
[0069] Step 306: Determine the target test items that failed the test in the target test task according to the test results.
[0070] When conducting a network test, the test task may contain a large number of test items. When conducting a network test, it is necessary to test each item one by one, and there may be items that fail the test. In the related art, it is necessary to manually check the failed items on site and re-establish the test task to retest the failed items, which is inefficient. In an embodiment of the present invention, the test system can automatically parse the test results and identify the failed test items so as to automatically retest them later.
[0071] Exemplarily, the target test item is any one or more test items that have not passed the test among the test items included in the target test task. Optionally, after obtaining the test result of a test task, the target test item that has not passed the test in the target test task corresponding to the test result can be determined; or after all the test tasks in the task queue are executed, for each test task, the target test item that has not passed the test in the current target test task can be determined respectively.
[0072] Step 307: retest the target test item a preset number of times to obtain a retest result, wherein the retest result includes a retest result of each retest in the preset number of retests.
[0073] Exemplarily, the test script may be associated with retest configuration information, in which a preset number of times is stored. The specific value of the preset number of times is not limited, for example, it may be 3 times. The preset number of times corresponding to different test scripts may be the same or different, and is not specifically limited. Through multiple retests, the reliability of the test results can be guaranteed, helping testers to quickly troubleshoot problems.
[0074] Exemplarily, the retest result may include whether the test passed, and if not, the reason for failure, etc.
[0075] Step 308: Write the retest result into the test report corresponding to the target test task.
[0076] Exemplarily, writing the retest results into the corresponding test report can enable the test personnel to have a more comprehensive understanding of the test results of the test items with abnormalities. The retest results in the test report can include, for example, the tested controller, the software version of the controller, the retest items, the number of retests, and the retest results of each retest number. Table 1 is an example of a retest result.
[0077] Table 1 Retest results
[0078]
[0079] Exemplarily, the test report corresponding to the target test task includes the test results of the first test and the retest results, so that the tester can have a more comprehensive understanding of the test status of the corresponding controller.
[0080] The network testing method for a vehicle controller provided in an embodiment of the present invention can, after obtaining the test results, enable the testing system to automatically determine the test items that have not passed and automatically retest a preset number of times, thereby further improving the testing efficiency. In addition, the retest results are written into the test report corresponding to the target test task, so that the test personnel can have a more comprehensive understanding of the testing status of the corresponding controller.
[0081] Figure 4 1 is a flow chart of another vehicle controller network testing method provided according to an embodiment of the present invention. This embodiment is optimized on the basis of the above embodiment, and adds the relevant steps of automatically detecting the controller software update, which can further improve the network testing efficiency. Figure 4 As shown, the method includes:
[0082] Step 401: Receive a test configuration operation for a controller to be tested.
[0083] Step 402: Create a test task corresponding to the controller to be tested according to the test configuration operation, and add the test task to the task queue.
[0084] Step 403, in response to the task queue execution operation, the target test tasks to be executed are determined in sequence from the task queue, and based on the target test script corresponding to the target test task, a network test is performed on the target controller to be tested connected to the corresponding test port of the test bench to obtain the corresponding test result.
[0085] Step 404: Detect whether updated controller software exists in the software storage paths corresponding to the controllers in the preset controller set.
[0086] Exemplarily, the controller software (software running in the controller) of each controller is stored in a fixed path, which is recorded as the software storage path, wherein the software storage path can be configured when configuring the test script. If the controller software of a controller is updated, the new controller software is stored in the corresponding software storage path. The test system can detect the software storage path of each controller in real time. The execution order between this step and the aforementioned steps 401 to 402 is not limited and can be executed in parallel.
[0087] Step 405: If yes, an update notification is sent to the target user in a preset manner to instruct the target user to create a corresponding test task for the controller with updated controller software.
[0088] Exemplarily, if it is detected that there is updated controller software in the software storage path corresponding to a certain controller, an update notification is sent to the target user side in a preset manner. The target user may be a tester, and the target user side may be a device used by the target user, such as a device for displaying the front-end interface described above. Among them, the preset method may be sending through instant messaging software or sending by email, etc., which is not specifically limited. After viewing the update notification, the target user can remotely confirm whether a test needs to be performed. If a test is required, the corresponding test task can be remotely created and added to the task queue. The created test task can be started immediately, such as pausing the execution of the current test task, starting a new test task, or adding the new test task to the first place in the task queue.
[0089] The network testing method for the vehicle controller provided by the embodiment of the present invention can automatically detect software changes in the testing system and send update notifications to relevant testers in a timely manner, so that the testers can remotely control the test execution and ensure the timeliness of the test when there are software changes.
[0090] Figure 5 1 is a schematic diagram of the structure of a network testing device for a vehicle controller provided according to an embodiment of the present invention. Figure 5 As shown, the device comprises:
[0091] A configuration operation receiving module 501 is used to receive a test configuration operation for a controller to be tested, wherein the controller to be tested includes a controller in a preset controller set in a target vehicle, each controller in the preset controller set is respectively connected to a test port in a test bench, the test configuration operation includes a test script selection operation, and the test system is communicatively connected to the test bench;
[0092] A test task creation module 502 is used to create a test task corresponding to the controller to be tested according to the test configuration operation, and add the test task to a task queue, wherein different test tasks correspond to different controllers to be tested and / or different test scripts;
[0093] The test task execution module 503 is used to respond to the task queue execution operation, determine the target test task to be executed from the task queue in sequence, and perform a network test on the target controller to be tested connected to the corresponding test port of the test bench based on the target test script corresponding to the target test task to obtain the corresponding test result.
[0094] According to the network testing device for a vehicle controller provided by an embodiment of the present invention, multiple controllers to be tested in a vehicle can be connected to the test ports in a test bench in batches. Through the test configuration operation, a test script can be selected for the controller to be tested and a corresponding test task can be created and added to the task queue. When the task queue is executed, the test tasks in the task queue can be executed in sequence to realize automatic continuous network testing for different controllers to be tested or different test scripts for the same controller to be tested, thereby reducing manual operations and effectively improving network testing efficiency.
[0095] Optionally, the device may further include:
[0096] A script set acquisition module, used for acquiring candidate test script sets corresponding to each controller in the preset controller set before receiving the test configuration operation for the controller to be tested, wherein the test script selection operation is used for selecting the test script of the controller to be tested from the candidate test script set;
[0097] A mapping relationship establishing module, used to establish a mapping relationship between each controller and the connected test port;
[0098] Among them, based on the target test script corresponding to the target test task, a network test is performed on the target controller to be tested connected to the corresponding test port of the test bench, including: determining the target controller to be tested corresponding to the target test task; determining the target test port corresponding to the target controller to be tested according to the mapping relationship, and obtaining the corresponding target test script from the script storage path corresponding to the target controller to be tested; based on the target test script, a network test is performed on the controller to be tested connected to the target test port of the test bench.
[0099] Optionally, the device further comprises:
[0100] A target item determination module, used to determine the target test items that failed the test in the target test task according to the test results;
[0101] A retest module, configured to retest the target test item a preset number of times to obtain a retest result, wherein the retest result includes a retest result of each retest in the preset number of retests;
[0102] The retest result writing module is used to write the retest result into the test report corresponding to the target test task.
[0103] Optionally, the device further comprises:
[0104] A software detection module, used to detect whether there is updated controller software in the software storage path corresponding to each controller in the preset controller set;
[0105] The update notification sending module is used to send an update notification to the target user side in a preset manner if there is updated controller software, so as to instruct the target user to create a corresponding test task for the controller with the updated controller software.
[0106] Optionally, the test configuration operation and / or the task queue execution operation is an operation input through a remote front-end interface.
[0107] Optionally, the target vehicle is a new energy vehicle.
[0108] The network testing device for a vehicle controller provided in an embodiment of the present invention can execute the network testing method for a vehicle controller provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0109] Figure 6 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0110] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0111] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0112] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the test method.
[0113] In some embodiments, the test method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the test method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the test method in any other appropriate manner (e.g., by means of firmware).
[0114] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0115] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0116] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0117] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0118] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0119] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0120] An embodiment of the present disclosure provides a computer program product, including a computer program, which implements the testing method provided by the above embodiment when executed by a processor.
[0121] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0122] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A network testing method for a vehicle controller, characterized in that: Applied to a test system, the method comprises: Receiving a test configuration operation for a controller to be tested, wherein the controller to be tested includes a controller in a preset controller set in a target vehicle, each controller in the preset controller set is respectively connected to a test port in a test bench, the test configuration operation includes a test script selection operation, and the test system is communicatively connected to the test bench; Creating a test task corresponding to the controller to be tested according to the test configuration operation, and adding the test task to a task queue, wherein different test tasks correspond to different controllers to be tested and / or different test scripts; In response to the task queue execution operation, the target test tasks to be executed are determined in sequence from the task queue, and based on the target test script corresponding to the target test task, a network test is performed on the target controller to be tested connected to the corresponding test port of the test bench to obtain the corresponding test result.
2. The method according to claim 1, characterized in that Before the receiving of the test configuration operation for the controller to be tested, the method further includes: Obtaining candidate test script sets corresponding to respective controllers in the preset controller set, wherein the test script selection operation is used to select a test script for the controller to be tested from the candidate test script sets; Establishing a mapping relationship between each controller and the connected test port; The step of performing a network test on a target controller to be tested connected to a corresponding test port of the test bench based on a target test script corresponding to the target test task includes: Determine a target controller to be tested corresponding to the target test task; Determine the target test port corresponding to the target controller to be tested according to the mapping relationship, and obtain the corresponding target test script from the script storage path corresponding to the target controller to be tested; Based on the target test script, a network test is performed on the controller to be tested connected to the target test port of the test bench.
3. The method according to claim 1, characterized in that Also includes: Determine, according to the test result, a target test item in the target test task that has failed the test; Retesting the target test item a preset number of times to obtain a retest result, wherein the retest result includes a retest result of each retest in the preset number of retests; The retest result is written into the test report corresponding to the target test task.
4. The method according to claim 1, characterized in that: Also includes: Detecting whether there is updated controller software in the software storage paths respectively corresponding to the controllers in the preset controller set; If so, an update notification is sent to the target user in a preset manner to instruct the target user to create a corresponding test task for the controller with updated controller software.
5. The method according to claim 1, characterized in that The test configuration operation and / or the task queue execution operation is an operation input through a remote front-end interface.
6. The method according to any one of claims 1 to 5, characterized in that The target vehicle is a new energy vehicle.
7. A network testing device for a vehicle controller, characterized in that: Configured in a test system, the device comprises: a configuration operation receiving module, configured to receive a test configuration operation for a controller to be tested, wherein the controller to be tested includes a controller in a preset controller set in a target vehicle, each controller in the preset controller set is respectively connected to a test port in a test bench, the test configuration operation includes a test script selection operation, and the test system is communicatively connected to the test bench; A test task creation module, used to create a test task corresponding to the controller to be tested according to the test configuration operation, and add the test task to a task queue, wherein different test tasks correspond to different controllers to be tested and / or different test scripts; A test task execution module is used to respond to the task queue execution operation, determine the target test task to be executed from the task queue in sequence, and perform a network test on the target controller to be tested connected to the corresponding test port of the test bench based on the target test script corresponding to the target test task to obtain the corresponding test result.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method according to any one of claims 1 to 6 when executed.
10. A computer program product, characterized in that The computer program product comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 6.