Full-link whole vehicle OTA automatic test method and test system
Through the full-link vehicle OTA automated testing method and system, the OTA test sequence is automatically executed, which solves the problems of low manual testing efficiency and insufficient coverage, achieves fast and accurate OTA function verification, and is suitable for a variety of OTA upgrade solutions.
Patent Information
- Application Number
- CN202410655983.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-08-30
AI Technical Summary
Existing OTA tests rely on manual execution, which results in low efficiency and limited test coverage. In particular, manual execution of stress tests takes up a lot of manpower and vehicle resources, resulting in long and irregular test times.
Provide full-link vehicle OTA automated testing methods and systems. Through bus monitoring tools and automated testing software, the test sequence is automatically executed, including cloud platform task creation, upgrade operations, data monitoring and vehicle initialization, to achieve unattended 24-hour testing. .
It significantly shortens the test cycle, reduces the investment in manpower and vehicle resources, improves the accuracy and coverage of test results, and enables efficient OTA function verification in a small environment.
Smart Images

Figure CN118567980A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of automobile controller software upgrade testing, and specifically relates to a full-link whole-vehicle OTA automated testing method and testing system. Background Art
[0002] As cars become more intelligent, the software of car controllers becomes more and more complex, and the development cycle becomes shorter. The software vulnerabilities and the continuous iteration of functions require the upgrade of the on-board controller software. Using OTA (Over-The-Air) technology, new software is downloaded from the cloud through a wireless network to upgrade the vehicle ECU software to improve user experience and repair software vulnerabilities. OTA upgrade application scenarios are mostly to repair software bugs, and fewer scenarios are used to push new functions. Whether the OTA upgrade fails or not will affect the user experience and increase user complaints. If some important controllers fail to upgrade, the vehicle may not be able to start and need to be towed to the 4S shop for replacement parts. Especially when problems occur in batches, it will greatly increase costs and after-sales complaints. The OTA testing link can ensure the rapid iteration and vulnerability repair of the software, making the vehicle more intelligent and safe, and shortening the research and development cycle of the vehicle of the car company. The OTA stress test can verify the stability of the system, ensure the success rate of the OTA upgrade, and effectively reduce after-sales problems.
[0003] Currently, OEMs have an increasing demand for OTA functions, which require sufficient verification. Manual OTA testing cannot guarantee the standardization of the testing process and the accuracy of the test results, so it is necessary to consider automating the standardized testing process.
[0004] OTA testing takes a long time. If a stress test is performed, such as 100 consecutive OTA upgrades, and it is assumed that the download and installation time for one OTA is 1.5 hours, then the total testing time required is 150 hours. If the test is performed manually and one person works 8 hours a day, then the test execution time alone is 18.75 days. Summary of the invention
[0005] In order to solve the problem that most of the current OTA tests are completed manually by engineers, which is inefficient and has limited test coverage, especially when manually executing stress test cases, it takes up a lot of human resources and vehicle resources. The present invention provides a full-link whole-vehicle OTA automated testing method and testing system, which can greatly shorten the testing cycle and liberate human resources. In addition, using this testing system for testing can also assist in data analysis and shorten data analysis time.
[0006] The objective of the present invention is achieved through the following technical solutions:
[0007] As one aspect of the present invention, a full-link vehicle OTA automated testing method is provided, comprising the following steps:
[0008] S10. Build a vehicle test environment: connect the bus monitoring tool to the vehicle under test and the host computer respectively, and connect the cloud platform to the vehicle under test and the host computer through a mobile communication network;
[0009] S20, running the test sequence to be executed in the automated test software in the host computer;
[0010] S30, the automatic testing software creates an upgrade task on the cloud platform;
[0011] S40, the automatic test software completes the large screen click operation to download and install;
[0012] S50, after the installation is completed, judging the installation result;
[0013] S60, after OTA upgrade, the automatic test software initializes the vehicle.
[0014] Furthermore, in step S10, each bus port of the bus monitoring tool is connected to each bus to be monitored, and the I / O control port is connected to the vehicle start switch hard wire and the hard wire on the vehicle that needs to create a fault or signal.
[0015] Furthermore, the step S20 includes:
[0016] Before the test begins, the test sequence must be built. The test sequence includes every step in the test execution. During the test, the built test sequence is run and the test is executed by the automated test software.
[0017] The automated test software calls the bus monitoring software at the start of the test, starts data monitoring through the bus monitoring software and saves all monitoring data for subsequent problem analysis or problem handling.
[0018] Furthermore, the step S30 includes: the automatic testing software calls the web page automation operation component to complete the creation and issuance of the upgrade task on the cloud platform.
[0019] Furthermore, step S40 includes: after receiving the task issued by the cloud platform, the tested vehicle will ask the user whether to upgrade and the upgrade time through the large screen of the vehicle computer. The automatic testing software simulates the user's operation on the large screen through ADB to complete the confirmation of the upgrade task, and then the vehicle completes the download and installation of the installation package.
[0020] Furthermore, step S50 includes: after the installation is completed, the vehicle enters the next point state, the automatic test software calls the bus monitoring software, and controls the power-on of the tested vehicle through the I / O control port. After power-on, the vehicle will notify the user whether the installation is successful and the software version of the vehicle.
[0021] Furthermore, the step S60 includes:
[0022] After an OTA upgrade task is completed, the vehicle needs to be initialized. The automatic test software restores the vehicle to the state before the test, prepares for the next test and saves the data of the previous test; the saved data includes the messages of each bus during the test, the log of the controller, and the screenshot of the cloud platform upgrade status;
[0023] The initialization operation includes turning on the ADB debugging function on the vehicle's large screen, returning to the initial vehicle software version node, and rolling back the software version.
[0024] As another aspect of the present invention, a full-link vehicle OTA automated testing system is provided, comprising:
[0025] The host computer is connected to the cloud platform through a mobile communication network, connected to the bus monitoring tool, and connected to the vehicle through ADB. The host computer is installed with automatic test software and bus monitoring software, which are used to build test sequences, operate the cloud platform to issue test tasks, operate the vehicle screen of the tested vehicle through ADB, monitor bus data and perform I / O control during the test, and initialize the tested vehicle after a test is completed;
[0026] A cloud platform, which is connected to the vehicle under test through a mobile communication network and is used to send test tasks to the vehicle under test;
[0027] The bus monitoring tool is connected to the bus and hard line of the vehicle under test through the bus interface and I / O control port, monitors and records the vehicle bus and I / O port data during the test, and uploads the test data to the host computer.
[0028] Furthermore, the automatic testing software includes:
[0029] A test sequence building module is used to build and execute test sequences;
[0030] Web page automation operation component, used to control the operation of the cloud platform, through which the web page click, slide, keyboard input, and information acquisition operations are completed;
[0031] The ADB automated operation component is used to control the operation of the vehicle's large screen. The ADB automated operation component is used to complete clicks, slides, keyboard input, and information acquisition operations on the vehicle's large screen.
[0032] Furthermore, the bus monitoring software is used to complete data monitoring of various bus information CAN / LIN / Ethernet on the vehicle side, and realizes the input and output of hard-wired signals through I / O control, which is mainly used to control the power on and off of the vehicle, send diagnostic messages through the bus and other operations.
[0033] Compared with the prior art, the present invention has the following beneficial effects:
[0034] 1. Currently, OEMs have an increasing demand for OTA functions, which require sufficient verification. Manual OTA testing cannot guarantee the standardization of the testing process and the accuracy of the test results, so it is necessary to consider automating the standardized testing process.
[0035] 2. Due to the long time of OTA testing, if a stress test is performed, such as 100 consecutive OTA upgrades, assuming that one OTA, including the download and installation time is 1.5 hours, then the total test time required is 150 hours. If the test is performed manually, one person works 8 hours a day, then the test execution time alone is 18.75 days. Using the OTA automated testing system provided by the present invention for testing, uninterrupted testing can be performed 24 hours a day, and it only takes 6.25 days, and the test cycle can be shortened by more than three times. In addition, the use of this test system for testing can also assist in data analysis and shorten data analysis time.
[0036] 3. The test system and method provided by the present invention have very low hardware requirements. Only the common bus monitoring equipment in the automotive testing industry plus a host computer are needed for testing. The test system is compact in size, so the test environment can be a bench or a whole vehicle. The general OTA test system has complex hardware structure and large size, making it difficult to test on the whole vehicle. The hardware equipment of this system is simple in structure but powerful in function. The hardware structure only requires a host computer and a bus monitoring device to realize full-link OTA testing. Because the system is simple in design and small in size, all environments where this system is applied are diverse. It can be used on a bench or in a whole vehicle environment with a small space.
[0037] 4. The OTA upgrade solutions of various OEMs in the industry are different, resulting in different OTA testing methods. The present invention is applicable to most OTA upgrade solutions, especially to OTA upgrade solutions that create nodes with different software versions on a cloud platform and then use the nodes to create upgrade paths. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 This is a flow chart of a full-link vehicle OTA automated testing method according to the present invention;
[0039] Figure 2This is a block diagram of the composition principles of a full-link whole-vehicle OTA automated testing system described in the present invention. DETAILED DESCRIPTION
[0040] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. 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 are within the scope of protection of the present invention.
[0041] like Figure 1 As shown, a full-link vehicle OTA automated testing method includes the following steps:
[0042] S10. Build the vehicle test environment:
[0043] Connect the bus monitoring tool to the tested vehicle and the host computer respectively, wherein each bus port of the bus monitoring tool is connected to each bus to be monitored, and the I / O control port is connected to the vehicle start switch hard line and the hard line on the vehicle that needs to create a fault or signal;
[0044] Connect the cloud platform to the tested vehicle and the host computer through a mobile communication network;
[0045] S20. Run the test sequence to be executed in the automated test software in the host computer:
[0046] Before the test begins, the test sequence must be built. The test sequence includes every step in the test execution. During the test, the built test sequence is run and the test is executed by the automated test software.
[0047] The automated test software calls the bus monitoring software at the beginning of the test, starts data monitoring through the bus monitoring software and saves all monitoring data for subsequent problem analysis or problem handling;
[0048] S30, the automatic test software creates an upgrade task on the cloud platform:
[0049] The automatic testing software calls the webpage automatic operation component to complete the creation and delivery of the upgrade task on the cloud platform. If a stress test is performed, you can also manually create an upgrade task test sequence, starting with the operation of the large screen.
[0050] S40, automatic test software completes the large screen click operation to download and install:
[0051] After receiving the task sent by the cloud platform, the tested vehicle will ask the user whether to upgrade and the upgrade time through the vehicle screen. The automatic test software simulates the user's operation on the screen through ADB to complete the confirmation of the upgrade task, and then the vehicle completes the download and installation of the installation package;
[0052] S50: After the installation is completed, the installation result is judged:
[0053] After the installation is completed, the vehicle enters the power-off state, and the automatic test software calls the bus monitoring software to control the power-on of the tested vehicle through the I / O control port. After power-on, the vehicle will notify the user whether the installation is successful and the vehicle's software version;
[0054] S60, after OTA upgrade, the automatic test software initializes the vehicle:
[0055] After an OTA upgrade task is completed, the vehicle needs to be initialized. The automatic test software will restore the vehicle to its pre-test state, prepare for the next test and save the data from the previous test.
[0056] The initialization operation includes turning on the ADB debugging function on the vehicle screen, returning to the initial vehicle software version node, and rolling back the software version;
[0057] The saved data includes the messages of each bus during the test, the log of the controller, and the screenshot of the cloud platform upgrade status.
[0058] If an OTA stress test is performed, the vehicle returns to the S40 state after the initialization operation, and the installation package is downloaded and installed again. The test is completed after the specified number of times. Among them, turning on the ADB debugging function of the large screen of the vehicle and returning to the initial vehicle software version node are both achieved by sending diagnostic commands using the bus monitoring tool. The software version can be rolled back by OTA, USB upgrade or Bootloader flashing according to the controller being flashed.
[0059] like Figure 2 As shown, a full-link vehicle OTA automatic testing system includes:
[0060] The host computer is connected to the cloud platform through a mobile communication network, connected to the bus monitoring tool, and connected to the vehicle through ADB. The host computer is installed with automatic test software and bus monitoring software, which are used to build test sequences, operate the cloud platform to issue test tasks, operate the vehicle screen of the tested vehicle through ADB, monitor bus data and perform I / O control during the test, and initialize the tested vehicle after a test is completed;
[0061] A cloud platform, which is connected to the vehicle under test through a mobile communication network and is used to send test tasks to the vehicle under test;
[0062] The bus monitoring tool is connected to the bus and hard line of the vehicle under test through the bus interface and I / O control port, monitors and records the vehicle bus and I / O port data during the test, and uploads the test data to the host computer.
[0063] The automatic testing software comprises:
[0064] The test sequence building module is used to build the test sequence and upload it to the cloud platform, as well as to execute the test sequence;
[0065] Web page automation operation component, used to control the operation of the cloud platform, through which operations such as web page clicks, sliding, keyboard input, and information acquisition can be completed;
[0066] The ADB automated operation component is used to control the operation of the vehicle's large screen. Operations such as clicking, sliding, keyboard input, and information acquisition on the large screen are completed through the ADB automated operation component.
[0067] Currently, many companies on the market have launched their own automatic testing software, or they can use open source automatic testing frameworks, which need to be able to complete the functions of calling web page automation components, ADB automation components, and bus monitoring software.
[0068] The bus monitoring software is used to complete data monitoring of various bus information CAN / LIN / Ethernet on the vehicle side, and realizes the input and output of hard-wired signals through I / O control, which is mainly used to control the power on and off of the vehicle, send diagnostic messages and other operations.
[0069] The bus monitoring tool includes CAN bus communication port, LIN bus communication port, vehicle Ethernet communication port and I / O port. Each bus communication port is connected to the buses to be tested of the vehicle under test. The vehicle Ethernet communication port is connected to the cloud platform network communication. The I / O port is connected to the vehicle start switch hard wire and the hard wire on the vehicle that needs to create faults or signals.
[0070] Example 1
[0071] By using a full-link vehicle OTA automated testing method provided by the present invention to perform stress testing, using this testing method and system instead of manual execution during repeated testing of full-link vehicle OTA forward upgrades can save a lot of time and reduce the investment in human resources and vehicle resources. The tester first uploads the software package that needs to be upgraded and builds the upgrade path, and then runs the automatic testing software to wait for the test to end. The automatic testing software will simulate the operation of manually clicking on the large screen of the vehicle computer to control the large screen. After each OTA upgrade is completed, it will perform initialization operations, restore the vehicle to the state before the OTA upgrade and prepare for the next OTA upgrade. The test ends after the number of upgrades meets the tester's settings.
[0072] Example 2
[0073] Through the full-link vehicle OTA automated testing method provided by the present invention, channel testing can be performed, and the stability and security of the OTA system can be verified by manufacturing faults in the OTA upgrade process through the I / O interface of the bus monitoring tool hardware in the system. The tester runs the automated testing software, and the automated testing software calls the web page automated operation module to arrange an upgrade task, and then calls the ADB automated operation module to start downloading on the vehicle side. During the download process, the I / O interface is called to manufacture bus short circuit, bus disconnection, power on and off, power off, controller disconnection and other faults, or the I / O interface is called during the installation process to manufacture bus short circuit, bus disconnection, power on and off, power off, controller disconnection and other faults to verify whether the state of the OTA system meets the design expectation.
[0074] Example 3
[0075] By using a full-link vehicle OTA automated testing method provided by the present invention to perform an upgrade test, using this testing method and system instead of manual execution during the scheduled upgrade test of the full-link vehicle OTA upgrade can save a lot of time and reduce the investment in human resources and vehicle resources. The tester first uploads the software package that needs to be upgraded and builds the upgrade path, and then runs the automatic testing software to wait for the test to end. The automatic testing software will simulate the operation of manually clicking on the large screen to control the large screen. Various appointment times can be set in the process of clicking the screen to verify whether the vehicle starts upgrading on time after the appointment time arrives. After each OTA upgrade is completed, an initialization operation is performed to restore the vehicle to the state before the OTA upgrade to prepare for the next OTA upgrade. Set another appointment time for the next OTA upgrade, and end the test after the number of upgrades meets the tester's settings.
[0076] Although the embodiments of the present invention have been disclosed above, they are not limited to the applications listed in the specification and the embodiments. It can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily realized. Therefore, without departing from the general concept defined by the claims and equivalent scope, the present invention is not limited to the specific details and the illustrations shown and described here.
Claims
1. A full-link vehicle OTA automated testing method, characterized in that: The following steps are involved: S10. Build a vehicle test environment: connect the bus monitoring tool to the vehicle under test and the host computer respectively, and connect the cloud platform to the vehicle under test and the host computer through a mobile communication network; S20, running the test sequence to be executed in the automated test software in the host computer; S30, the automatic testing software creates an upgrade task on the cloud platform; S40, the automatic test software completes the large screen click operation to download and install; S50, after the installation is completed, judging the installation result; S60, after OTA upgrade, the automatic test software initializes the vehicle.
2. A full-link vehicle OTA automated testing method as claimed in claim 1, characterized in that: In step S10, each bus port of the bus monitoring tool is connected to each bus to be monitored, and the I / O control port is connected to the vehicle start switch hard wire and the hard wire on the vehicle that needs to create a fault or signal.
3. A full-link vehicle OTA automated testing method as claimed in claim 1, characterized in that: The step S20 comprises: Before the test begins, the test sequence must be built. The test sequence includes every step in the test execution. During the test, the built test sequence is run and the test is executed by the automated test software. The automated test software calls the bus monitoring software at the start of the test, starts data monitoring through the bus monitoring software and saves all monitoring data for subsequent problem analysis or problem handling.
4. A full-link vehicle OTA automated testing method as claimed in claim 1, characterized in that: The step S30 includes: the automatic testing software calls the web page automation operation component to complete the creation and issuance of the upgrade task on the cloud platform.
5. A full-link vehicle OTA automated testing method as claimed in claim 1, characterized in that: The step S40 includes: after receiving the task sent by the cloud platform, the tested vehicle will ask the user whether to upgrade and the upgrade time through the vehicle screen. The automatic test software simulates the user's operation on the large screen through ADB to complete the confirmation of the upgrade task, and then the vehicle completes the download and installation of the installation package.
6. A full-link vehicle OTA automated testing method as claimed in claim 1, characterized in that: The step S50 includes: after the installation is completed, the vehicle enters the next point state, the automatic test software calls the bus monitoring software, and controls the power-on of the tested vehicle through the I / O control port. After power-on, the vehicle will notify the user whether the installation is successful and the software version of the vehicle.
7. A full-link vehicle OTA automated testing method as claimed in claim 1, characterized in that: The step S60 comprises: After an OTA upgrade task is completed, the vehicle needs to be initialized. The automatic test software restores the vehicle to the state before the test, prepares for the next test and saves the data of the previous test; the saved data includes the messages of each bus during the test, the log of the controller, and the screenshot of the cloud platform upgrade status; The initialization operation includes turning on the ADB debugging function on the vehicle's large screen, returning to the initial vehicle software version node, and rolling back the software version.
8. A full-link vehicle OTA automated testing system, characterized in that: include: The host computer is connected to the cloud platform through a mobile communication network, connected to the bus monitoring tool, and connected to the vehicle through ADB. The host computer is installed with automatic test software and bus monitoring software, which are used to build test sequences, operate the cloud platform to issue test tasks, operate the vehicle screen of the tested vehicle through ADB, monitor bus data and perform I / O control during the test, and initialize the tested vehicle after a test is completed; A cloud platform, which is connected to the vehicle under test via a mobile communication network and is used to send test tasks to the vehicle under test; The bus monitoring tool is connected to the bus and hard line of the vehicle under test through the bus interface and I / O control port, monitors and records the vehicle bus and I / O port data during the test, and uploads the test data to the host computer.
9. A full-link vehicle OTA automated testing system as claimed in claim 8, characterized in that: The automatic testing software comprises: The test sequence building module is used to build the test sequence and upload it to the cloud platform, as well as to execute the test sequence; Web page automation operation component, used to control the operation of the cloud platform, through which the web page click, slide, keyboard input, and information acquisition operations are completed; The ADB automated operation component is used to control the operation of the vehicle's large screen. The ADB automated operation component is used to complete clicks, slides, keyboard input, and information acquisition operations on the vehicle's large screen.
10. A full-link vehicle OTA automated testing system as claimed in claim 8, characterized in that: The bus monitoring software is used to complete data monitoring of various bus information CAN / LIN / Ethernet on the vehicle side, and realizes the input and output of hard-wired signals through I / O control, which is mainly used to control the power on and off of the vehicle, send diagnostic messages and other operations.
Citation Information
Cited By
OTA technology-based unmanned aerial vehicle automated testing method and system
WO2026097847A1
