OTA test method, electronic equipment and storage medium

By detecting and comparing changes in the vehicle-machine interface, the position of the installed controls is automatically determined, which solves the problem of difficult to ensure OTA testing efficiency and accuracy, and realizes automated OTA testing, improving testing efficiency and accuracy.

CN119690838APending Publication Date: 2025-03-25ZHEJIANG ZEEKR INTELLIGENT TECH CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411827770.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

The prior art requires a lot of manpower and test vehicles when conducting vehicle OTA testing, resulting in huge expenses in R&D and time. Due to changes in vehicle-machine interface, OTA testing efficiency and accuracy are difficult to guarantee.

Method used

By detecting whether the vehicle-machine interface of the equipment to be tested has changed, and comparing it with the original vehicle-machine interface in the database, determining the location of the installation controls, thereby realizing automated OTA testing task installation.

Benefits of technology

It improves the efficiency and accuracy of OTA testing, reduces dependence on manpower and test vehicles, and realizes automated OTA testing, saving time and effort.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690838A_ABST
    Figure CN119690838A_ABST
Patent Text Reader

Abstract

The invention provides an OTA test method, electronic equipment and a storage medium, and the method comprises the steps: after a to-be-tested device downloads an OTA test task, detecting whether a vehicle-mounted terminal interface of the to-be-tested device changes or not, the vehicle-mounted terminal interface comprising an installation control for installing the OTA test task; after it is detected that the vehicle-mounted machine interface changes, the vehicle-mounted machine interface is compared with original vehicle-mounted machine interfaces in a database, and at least one original vehicle-mounted machine interface is stored in the database; and the installation control is operated based on the position of the installation control in the vehicle-mounted terminal interface determined based on the comparison result, and the to-be-tested device starts to install the OTA test task. According to the method and the device, the OTA test efficiency can be improved, and meanwhile, the accuracy of the OTA test is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of transportation, and in particular to an OTA testing method, an electronic device and a storage medium. Background Art

[0002] OTA (Over-the-Air Technology) upgrade is the standard software upgrade method provided by the Android system. With the rapid development of automobile models, the testing pressure on OEMs is increasing. Now many OEMs manually establish OTA tasks when conducting vehicle OTA testing. After the OTA task is downloaded, they manually click on the OTA task to upgrade. This requires a lot of manpower and test vehicles, which is a huge expense in terms of R&D costs and time of the project, seriously affecting progress.

[0003] In related technologies, the Android system OTA test library can be used to replace manual testing to manipulate the vehicle computer controls. For example, the Android OTA test can be used to obtain the current vehicle computer interface of the device to be tested, sort out the vehicle computer interface buttons, capture vehicle computer prompt information, and locate buttons. However, after each OTA upgrade of the vehicle, the vehicle computer interface may change, resulting in changes in the position of the vehicle computer controls, making it difficult for the Android system to accurately simulate manual testing, which in turn seriously affects the efficiency of OTA testing. Summary of the invention In view of this, the present application provides an OTA testing method, an electronic device and a storage medium, which can improve the efficiency of OTA testing while ensuring the accuracy of OTA testing.

[0004] An embodiment of the present application provides an OTA testing method, including: after the device to be tested completes downloading the OTA test task, detecting whether a vehicle-machine interface of the device to be tested has changed, wherein the vehicle-machine interface includes an installation control for installing the OTA test task; after detecting that the vehicle-machine interface has changed, comparing the vehicle-machine interface with an original vehicle-machine interface in a database, wherein at least one original vehicle-machine interface is stored in the database; determining the position of the installation control in the vehicle-machine interface based on the comparison result, operating the installation control, and causing the device to be tested to start installing the OTA test task.

[0005] Compared with the related technology, the embodiments of the present application have at least the following advantages: by comparing the vehicle-machine interface with the original vehicle-machine interface in the database after detecting a change in the vehicle-machine interface, the position of the installed control can be determined based on the comparison result, thereby ensuring the accuracy of subsequent automatic operation of the installed control by the device to be tested, so that the entire OTA testing process of the device to be tested will not be affected by the change in the position of the installed control, thereby improving the OTA testing efficiency; in addition, this method does not require special maintenance by relevant staff, realizes automated OTA testing of the device to be tested, saving time and effort.

[0006] In some possible implementations, the vehicle-machine interface includes an identification icon, and the identification icon has initial position information in the unchanged vehicle-machine interface; detecting whether the vehicle-machine interface of the device to be tested has changed includes: obtaining the position information of the identification icon in the vehicle-machine interface; comparing the position information with the initial position information, and detecting whether the vehicle-machine interface has changed based on the comparison result.

[0007] By adopting the above technical solution, the accuracy of detecting whether the vehicle-computer interface has changed can be improved, so that the entire OTA test process of the device to be tested will not be affected by the changes in the vehicle-computer interface.

[0008] In some possible implementations, the result of the comparison is that there exists an original vehicle-machine interface that is identical to the changed vehicle-machine interface in at least one of the original vehicle-machine interfaces; determining the position of the installed control in the vehicle-machine interface, and automatically operating the installed control based on the position of the installed control, comprises: determining a first target vehicle-machine interface that is identical to the vehicle-machine interface from at least one of the original vehicle-machine interfaces; determining the position of the installed control according to the first target vehicle-machine interface; and controlling the device to be tested to automatically click on the vehicle-machine interface installed control according to the position of the installed control.

[0009] By adopting the above-mentioned technical solution, the position of the installation control can be accurately determined when there is an original vehicle-machine interface that is the same as the changed vehicle-machine interface, thereby ensuring the accuracy of subsequent automatic operation of the installation control by the device to be tested, so that the entire OTA test process of the device to be tested will not be affected by the change in the position of the installation control.

[0010] In some possible implementations, the vehicle interface for installing the control includes a first vehicle icon, a first setting icon, and a first upgrade management icon; controlling the device to be tested to automatically perform a click operation on the vehicle interface for installing the control, includes: controlling the device to be tested to take a screenshot of the first target vehicle interface to obtain a first image; determining a first position of the first vehicle icon in the first image; performing a first click operation on the first vehicle icon according to the first position, and taking a screenshot of the vehicle interface after the first click operation to obtain a second image; determining a second position of the first setting icon in the second image; performing a second click operation on the first setting icon according to the second position, and taking a screenshot of the vehicle interface after the second click operation to obtain a third image; determining a third position of the first upgrade management icon in the third image; and performing a third click operation on the first upgrade management icon according to the third position.

[0011] By adopting the above technical solution, the device to be tested can automatically click on the installation control, so that the device to be tested can automatically complete the installation of the OTA test task.

[0012] In some possible implementations, determining the first position of the first vehicle icon in the first image includes: performing pixel comparison on the first vehicle icon in the first image, and detecting whether the first vehicle icon exists in the first image based on the result of the pixel comparison; when the pixel comparison result is that the first vehicle icon exists in the first image, determining the first position; when the pixel comparison result is that the first vehicle icon does not exist in the first image, controlling the device to be tested to automatically slide the screen on the first target vehicle interface, and controlling the device to be tested to take a screenshot of the first target vehicle interface after the sliding screen operation to obtain a new first image, repeating the above process of detecting whether the first vehicle icon exists in the first image until it is detected that the first vehicle icon exists in the new first image; and determining the first position based on the new first image obtained.

[0013] By adopting the above technical solution, it can be ensured that the device to be tested can automatically detect the position of the first vehicle icon to ensure that the subsequent automatic click operation can be carried out normally, thereby improving the reliability of the OTA testing method.

[0014] In some possible implementations, the result of the comparison is that there is no original vehicle-machine interface that is identical to the changed vehicle-machine interface in at least one of the original vehicle-machine interfaces; determining the position of the installation control in the vehicle-machine interface, and automatically operating the installation control based on the position of the installation control, includes: controlling the device to be tested to send an error message so that the database stores the changed vehicle-machine interface as the original vehicle-machine interface; determining a second target vehicle-machine interface that is identical to the changed vehicle-machine interface from at least one of the original vehicle-machine interfaces; determining the position of the installation control based on the second target vehicle-machine interface; and controlling the device to be tested to automatically click on the installation control to operate the vehicle-machine interface based on the position of the installation control.

[0015] By adopting the above technical solution, it is possible to automatically determine the location of the installed controls even when there is no original vehicle-machine interface that is the same as the changed vehicle-machine interface, thereby ensuring the accuracy of subsequent automatic operation of the installed controls by the device to be tested, and further improving the reliability of the OTA testing method.

[0016] In some possible implementations, the installation control includes a second vehicle icon, a second setting icon and a second upgrade management icon; before controlling the device to be tested to automatically perform a click operation on the installation control, it also includes: storing image information of the second vehicle icon, the second setting icon and the second upgrade management icon in the database; controlling the device to be tested to automatically perform a click operation on the installation control includes: controlling the device to be tested to take a screenshot of the second target vehicle interface to obtain a fourth image; determining a fourth position of the second vehicle icon in the fourth image; performing a fourth click operation on the second vehicle icon according to the fourth position, and taking a screenshot of the vehicle interface after the fourth click operation to obtain a fifth image; determining a fifth position of the second setting icon in the fifth image; performing a fifth click operation on the second setting icon according to the fifth position, and taking a screenshot of the vehicle interface after the fifth click operation to obtain a sixth image; determining a sixth position of the second upgrade management icon in the sixth image; and performing a sixth click operation on the second upgrade management icon according to the sixth position.

[0017] By adopting the above technical solution, the device to be tested can automatically click on the installation control, so that the device to be tested can automatically complete the installation of the OTA test task.

[0018] In some possible implementations, before the device to be tested downloads the OTA test task, it also includes: obtaining software update information of the device to be tested and attribute information of the device to be tested; uploading the software update information and the attribute information to the cloud, so that the cloud generates the OTA test task according to the software update information; and sending the OTA test task to the device to be tested according to the attribute information.

[0019] By adopting the above technical solution, it is ensured that the OTA test tasks generated in the cloud can be accurately sent to the corresponding devices to be tested, further improving the reliability of the OTA test method.

[0020] The second aspect of the present application discloses an electronic device, which includes a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory so that the electronic device executes the above-mentioned OTA test method.

[0021] The third aspect of the present application discloses a storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned OTA test method.

[0022] It can be understood that the electronic device of the second aspect and the storage medium of the third aspect provided above both correspond to the method of the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 is a flow chart of an OTA testing method according to an embodiment of the present invention.

[0024] Figure 2 is a flow chart of an OTA testing method according to an embodiment of the present invention.

[0025] Figure 3 This is an application scenario diagram of a vehicle-machine interface according to an embodiment of the present invention.

[0026] Figure 4 This is another application scenario diagram of the vehicle computer interface according to an embodiment of the present invention.

[0027] Figure 5 This is another application scenario diagram of the vehicle computer interface according to an embodiment of the present invention.

[0028] Figure 6 is a flow chart of an OTA testing method according to an embodiment of the present invention.

[0029] Figure 7It is a schematic diagram of a display interface of a terminal device according to an embodiment of the present invention.

[0030] Figure 8 is a flow chart of an OTA testing method according to an embodiment of the present invention.

[0031] Fig. 9 Schematic diagram of functional modules of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0032] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that the implementation methods of the present application and the features in the implementation methods can be combined with each other without conflict.

[0033] In the following description, many specific details are set forth to facilitate a full understanding of the present application. The described implementations are only part of the implementations of the present application, rather than all the implementations.

[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0035] It should be further noted that, in this article, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0036] In this application, "at least one" means one or more, and "more" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0037] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0038] With the continuous development of Internet of Vehicles technology in the automotive field, more and more electronic control units (ECUs) with embedded software are installed on vehicles, and more and more automotive electronic products are applied to the whole vehicle. The system functions of electronic products are becoming more and more complex and diverse. Due to the increase in the complexity of system functions, some defects will inevitably appear in the automotive system, so the system needs to be continuously updated and maintained. The vehicle controls the vehicle driving and performs various operation tasks through the on-board system. The manufacturer will sort out the problems encountered by users during use and the feedback, and then re-develop the product software to form an upgraded version to fix the problems in the existing version.

[0039] Similarly, not only do delivered vehicles need to be updated at a certain frequency, but before delivering the vehicle to the user, the delivery center usually needs to use a diagnostic instrument to check and update the vehicle's software to ensure that the vehicle's software version is the latest when it is delivered, so as to ensure that the vehicle has the latest functions. When the system program of an electronic product is maintained and updated, it can be removed from the car and updated using a special burner, but this update method is cumbersome to operate.

[0040] Over The Air (OTA) technology is a technology that remotely manages data and applications through the air interface of mobile communications. Applying OTA technology to vehicles can upgrade the software of relevant ECUs and on-board systems in the vehicle, which is convenient and fast, without the need to disassemble the vehicle to use the aforementioned upgrade method.

[0041] At present, when many OEMs conduct OTA testing, they manually establish OTA tasks. After the OTA task is downloaded, they manually click on the task to upgrade. This requires a lot of manpower and test vehicles, which is a huge expense in terms of project R&D costs and time, seriously affecting progress. This application simulates manual clicks on the vehicle interface to achieve automatic updates and upgrades of vehicle software, without the need for special maintenance by relevant staff, so that OTA can be automated, saving time and effort. In addition, since the vehicle interface may change after each OTA upgrade of the vehicle, resulting in changes in the position of the installation controls used to install OTA test tasks in the vehicle interface, this application detects whether the vehicle interface has changed after the last OTA test task of the vehicle is installed, and determines the position of the installation controls after the vehicle interface changes, thereby ensuring the accuracy of subsequent automatic operations of the installation controls by the vehicle, so that the entire OTA test process of the vehicle will not be affected by changes in the position of the installation controls, thereby improving the efficiency of OTA testing.

[0042] Please refer to Figure 1 , is a flow chart of an OTA test method provided in an embodiment of the present application. This embodiment is applied to a terminal device and includes the following steps: Step 101: After the device to be tested has completed downloading the OTA test task, detecting whether the vehicle-machine interface of the device to be tested has changed, wherein the vehicle-machine interface includes an installation control for installing the OTA test task.

[0043] In some embodiments, the device to be tested may be a vehicle to be tested, or a test bench with a vehicle technical support system. This embodiment does not specifically limit the type of the device to be tested, and only needs to ensure that the device to be tested can implement OTA testing.

[0044] It is understandable that the present embodiment does not specifically limit the number of installation times of the OTA test task for the device to be tested, and can be set according to actual needs.

[0045] It should be noted that how to generate an OTA test task is described in detail in subsequent embodiments, and will not be described again here to avoid repetition.

[0046] In some embodiments, the vehicle-machine interface includes an identification icon, and the identification icon has initial position information in the unchanged vehicle-machine interface; whether the vehicle-machine interface has changed can be detected in the following way: obtaining the position information of a preset identification icon in the vehicle-machine interface; comparing the position information with the initial position information, and detecting whether the vehicle-machine interface has changed based on the comparison result.

[0047] In some embodiments, the identification icon also has initial size information in the unchanged vehicle interface, and whether the vehicle interface has changed can also be detected in the following ways: obtaining the position information and size information of the preset identification icon in the vehicle interface; comparing the position information with the initial position information, and comparing the size information with the initial size information, and detecting whether the vehicle interface has changed according to the comparison result. In this way, the accuracy of identifying whether the vehicle interface has changed can be improved, thereby ensuring that the device to be tested can successfully complete the automatic installation of the OTA test task in the future.

[0048] In some embodiments, there is no specific limitation on the type of identification icon. For example, the identification icon can be a temperature icon displayed in text, or a first vehicle icon displayed in a pattern. By detecting whether the position and size of the identification icon of the device to be tested changes after the OTA test task is installed, it can be known whether the vehicle interface has changed.

[0049] Step 102: After detecting that the vehicle computer interface has changed, the vehicle computer interface is compared with an original vehicle computer interface in a database, wherein at least one original vehicle computer interface is stored in the database.

[0050] In some embodiments, the type of database is not specifically limited. For example, the database may be an ADB (Analytic Database), which can store all different original vehicle machine interfaces.

[0051] In some embodiments, by setting program instructions on the terminal device, the vehicle computer interface can be automatically compared with the original vehicle computer interface in the database after the program instructions are run.

[0052] In some embodiments, a preset duration can be set. If the comparison time between the vehicle-machine interface and the original vehicle-machine interface in the database exceeds the preset duration, the OTA test task is directly deleted. In this way, it is possible to avoid the situation where the program instructions continue to compare the vehicle-machine interface when there is no original vehicle-machine interface in the database, which affects the subsequent OTA upgrade test, thereby improving the reliability of the OTA test method.

[0053] Step 103: Based on the comparison result, determine the location of the installation control in the vehicle interface, operate the installation control, and start installing the OTA test task on the device to be tested.

[0054] In some embodiments, after the comparison result is that there is an original vehicle-machine interface that is identical to the changed vehicle-machine interface in at least one original vehicle-machine interface, a first target vehicle-machine interface that is identical to the changed vehicle-machine interface in at least one original vehicle-machine interface is determined; the position of the installation control is determined according to the first target vehicle-machine interface; and according to the position of the installation control, the device to be tested is controlled to automatically click on the installation control.

[0055] It should be noted that how to control the vehicle to automatically click on the installed controls is described in detail in subsequent embodiments, and will not be repeated here to avoid repetition.

[0056] In some embodiments, the terminal device may include but is not limited to a mobile phone, a smart TV, a smart speaker, a wearable device, a tablet computer, a desktop computer, an all-in-one computer, a handheld computer, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a laptop computer, a mobile computer, an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a vehicle-mounted device, or any other terminal device or portable terminal device.

[0057] Compared with the related technology, the embodiments of the present application have at least the following advantages: by comparing the vehicle-machine interface with the original vehicle-machine interface in the database after detecting a change in the vehicle-machine interface, the position of the installed control can be determined based on the comparison result, thereby ensuring the accuracy of subsequent automatic operation of the installed control by the device to be tested, so that the entire OTA testing process of the device to be tested will not be affected by the change in the position of the installed control, thereby improving the OTA testing efficiency; in addition, this method does not require special maintenance by relevant staff, realizes OTA testing of the device to be tested, saving time and effort.

[0058] Please refer to Figure 2 , which is a flow chart of the OTA testing method provided in an embodiment of the present application. This embodiment is a further explanation of the aforementioned embodiment, and specifically explains: when the installation control includes a first vehicle icon, a first setting icon, and a first upgrade management icon, how to control the device to be tested to automatically click on the installation control.

[0059] This embodiment is applied to a terminal device and includes the following steps: Step 201: After detecting that the device to be tested has completed downloading the OTA test task, detecting whether the vehicle-machine interface of the device to be tested has changed, wherein the vehicle-machine interface includes an installation control for installing the OTA test task.

[0060] Step 202: After detecting that the vehicle computer interface has changed, the vehicle computer interface is compared with an original vehicle computer interface in a database, wherein at least one original vehicle computer interface is stored in the database.

[0061] Step 203: When the comparison result is that there is an original vehicle-machine interface identical to the changed vehicle-machine interface in at least one original vehicle-machine interface, a first target vehicle-machine interface identical to the vehicle-machine interface is determined from at least one original vehicle-machine interface, and the vehicle is controlled to take a screenshot of the first target vehicle-machine interface to obtain a first image.

[0062] Step 204: Determine a first position of a first vehicle icon in a first image.

[0063] In some embodiments, the first position can be determined by: performing pixel comparison on the first vehicle icon in the first image, and detecting whether the first vehicle icon exists in the first image based on the result of the pixel comparison; when the pixel comparison result is that the first vehicle icon exists in the first image, determining the first position; when the pixel comparison result is that the first vehicle icon does not exist in the first image, controlling the device to be tested to automatically slide the screen on the first target vehicle interface, and controlling the device to be tested to take a screenshot of the first target vehicle interface after the sliding screen operation to obtain a new first image, repeating the above process of detecting whether the first vehicle icon exists in the first image until the first vehicle icon exists in the new first image obtained finally; determining the first position based on the new first image obtained finally. In this way, it can be ensured that the first vehicle icon is found in the first image, thereby further improving the reliability of the OTA test method.

[0064] Specifically, pixel comparison refers to evaluating the similarity or difference between two images by comparing their pixel values. Assuming that the first vehicle icon has a pixel value A, by finding whether there is an area with a pixel value A in the first image, it is detected whether the first vehicle icon exists in the first image.

[0065] For ease of understanding, the following takes the first target vehicle machine interface including three different display interfaces as an example to specifically describe how to perform pixel comparison on the first vehicle icon in the first image in this embodiment: Assuming that the first target vehicle-machine interface includes display interface 1, display interface 2 and display interface 3, a pixel comparison is performed on the first vehicle icon in display interface 1, and it is detected that the first vehicle icon does not exist in display interface 1, then a sliding operation is performed on display interface 1. At this time, the first target vehicle-machine interface is displayed as display interface 2, and a pixel comparison is performed on the first vehicle icon in display interface 2. It is detected that the first vehicle icon exists in display interface 2, then the first position of the first vehicle icon is obtained.

[0066] Step 205: Perform a first click operation on the first vehicle icon according to the first position.

[0067] Step 206: Control the device to be tested to take a screenshot of the vehicle computer interface after the first click operation is performed to obtain a second image.

[0068] Step 207: Determine a second position of the first setting icon in the second image.

[0069] It can be understood that the method for determining the second position of the first setting icon in the second image is the same as the method for determining the first position of the first vehicle icon in the first image, and in order to avoid repetition, it will not be repeated here.

[0070] Step 208: Control the device to be tested to perform a second click operation on the first setting icon according to the second position.

[0071] Step 209: Control the device to be tested to take a screenshot of the vehicle computer interface after the second click operation is performed to obtain a third image.

[0072] Step 210: Determine a third position of the first upgrade management icon in the third image.

[0073] It can be understood that the method for determining the third position of the first upgrade management icon in the third image is the same as the method for determining the first position of the first vehicle icon in the first image, and in order to avoid repetition, it will not be repeated here.

[0074] Step 211: Control the device to be tested to perform a third click operation on the first upgrade management icon according to the third position, and enable the device to be tested to start installing the OTA test task.

[0075] For ease of understanding, the following Figures 3 to 5 This application describes in detail how to click on the car interface: Please refer to Figure 3 , is an application scenario diagram of the vehicle interface provided in the embodiment of the present application. The first vehicle icon is Figure 3The icon in the dotted box shown in the figure is searched for the first vehicle icon by capturing the first image of the current vehicle interface and performing pixel comparison in the captured first image. When the first vehicle icon is found, it is clicked. If there is no first vehicle icon in the first image, the terminal device will control the vehicle to automatically slide the screen through program instructions (sliding the screen up, down, left, and right is acceptable), and take screenshots again until the first vehicle icon is found and the vehicle is controlled to click.

[0076] Please refer to Figure 4 , is another application scenario diagram of the vehicle machine interface provided in the embodiment of the present application. Figure 3 After the automation operation, Figure 4 The car computer interface shown in the figure is screenshoted to obtain a second image, and the first setting icon is searched in the second image, that is, Figure 4 The logo 1 shown is displayed, and the vehicle is controlled to click on it.

[0077] Please refer to Figure 5 , which is another application scenario diagram of the vehicle machine interface provided in the embodiment of the present application. Figure 4 After the automation operation, Figure 5 The car computer interface shown in the figure is screenshoted to obtain a third image, and the first upgrade management icon is found in the third image, that is, Figure 5 Click “Upgrade Now” as shown, and control the vehicle to click it to start installing the OTA task.

[0078] Compared with the related technology, the embodiments of the present application have at least the following advantages: by comparing the vehicle-machine interface with the original vehicle-machine interface in the database after detecting a change in the vehicle-machine interface, the position of the installed control can be determined based on the comparison result, thereby ensuring the accuracy of subsequent automatic operation of the installed control by the device to be tested, so that the entire OTA testing process of the device to be tested will not be affected by the change in the position of the installed control, thereby improving the OTA testing efficiency; in addition, this method does not require special maintenance by relevant staff, realizes OTA testing of the device to be tested, saving time and effort.

[0079] Please refer to Figure 6 , which is a flow chart of the OTA testing method provided in an embodiment of the present application. This embodiment is a further explanation of the aforementioned embodiment, and specifically explains: how to generate an OTA task.

[0080] This embodiment is applied to a terminal device and includes the following steps: Step 301: In response to a test request, obtain software update information of the device to be tested and attribute information of the vehicle.

[0081] In some embodiments, after the last OTA test task of the device to be tested is completed, in response to a test request for performing an OTA test again, software update information of the device to be tested and attribute information of the vehicle are obtained.

[0082] Specifically, the software update information includes at least: the current software version information of the device under test, and the target software version information that the device under test needs to upgrade; the attribute information includes at least: the frame number of the device under test, and the vehicle pool where the device under test is located.

[0083] For ease of understanding, the following Figure 7 How to obtain the software update information of the device to be tested and the attribute information of the device to be tested in this embodiment is specifically described: Please refer to Figure 7 , which is a schematic diagram of the display interface of the terminal device provided in an embodiment of the present application.

[0084] Users can Figure 7 The display interface shown sets the software update information of the device to be tested and the attribute information of the device to be tested. Specifically, it includes the following information: 1. Account and password for cloud login; 2. Vehicle frame number of the vehicle for OTA test task; 3. Vehicle pool where the vehicle for OTA test task is located; 4. Project code for OTA test task; 5. Starting baseline for OTA test task, that is, the current software version information of the vehicle; 6. Target baseline for OTA test task, that is, the target software version information of the device to be tested; 7. Number of times the device to be tested performs automated OTA upgrades; 8. Recharge time of the device to be tested; 9. Whether version rollback is required before and after upgrade.

[0085] Step 302: Upload the software update information and the attribute information to the cloud, so that the cloud generates an OTA test task according to the software update information, and sends the OTA test task to the device to be tested according to the attribute information.

[0086] Specifically, when the software update information of the above-mentioned device to be tested and the attribute information of the device to be tested are set, the cloud generates a new OTA test task according to the software update information, and sends the new OTA test task to the device to be tested according to the attribute information. The device to be tested starts to download the new OTA test task, and the CANoe of the device to be tested records the OTA downloaded data, which mainly includes the interaction data between the cockpit domain controller, 4G / 5G antenna and vehicle gateway. At this time, the terminal device will call the data recorded by CANoe, so that there will be data to support problem analysis after the new OTA test task fails to download. In order to be able to monitor the progress of OTA download in real time, this embodiment can realize the generation of new OTA test tasks and the monitoring of new OTA test tasks during downloading in the following ways: 1. Clean up the task working directory. In this process, the cloud task cancellation interface is directly called through the script. This ensures that when the task starts, there are no other tasks that affect the download task.

[0087] 2. Obtain relevant data of the device to be tested. This process mainly involves obtaining the vehicle pool and vehicle model project data of the device to be tested.

[0088] 3. Get BSS (base station) data. This process is to get the target task data for this download, namely the software version number, hardware version number, VDN and other information data of the target task.

[0089] 4. Create BSS. This process is to copy the BSS information obtained in process 3. This ensures that the BSS in this automation task is the latest and there will be no version confusion.

[0090] 5. Create a BSS package. This process creates a BSS package for the BSS created in process 4.

[0091] 6. Check the BSS package settlement result. This process is to check whether the result of the BSS package settlement is the task ECU you want to upgrade.

[0092] 7. Create an OTA task. After checking the BSS package, directly create a new OTA test task. This will end the cloud creation of the download task.

[0093] 8. Start the CANoe project. This process mainly uses CANoe to monitor the status of the 4 doors and 2 covers on the vehicle side to facilitate confirmation of subsequent steps.

[0094] 9. Step on the brakes to wake up the device under test. This process simulates the braking scenario by short-circuiting the brake harness to a BOB switch and calling the switch closure through a script, keeping the vehicle-side power mode in convenience for subsequent OTA tasks.

[0095] 10. CANoe triggers version synchronization. This process uses a script to let CANoe send version synchronization instructions to FOTA Master to synchronize the vehicle version.

[0096] 11. Manually push tasks. This process is to call the cloud push task interface through a script to simulate clicking on the push task.

[0097] 12. Monitor the download start of the task. The process is to monitor the download start in the cloud, which indicates that the new OTA test task has started downloading.

[0098] 13. Activate the CANoe convenience function. This process is to call CANoe through a script to keep the vehicle-side power mode in convenience to prevent the vehicle from losing power.

[0099] 14. Monitor the download completion of the new OTA test task. The process is to monitor the download complete in the cloud, which means that the new OTA test task has been downloaded, and then enter the installation step.

[0100] Step 303: After detecting that the device to be tested has completed downloading the OTA test task, detecting whether the vehicle-machine interface of the device to be tested has changed, wherein the vehicle-machine interface includes an installation control for installing the OTA test task.

[0101] Step 304: after detecting that the vehicle computer interface has changed, the vehicle computer interface is compared with an original vehicle computer interface in a database, wherein at least one original vehicle computer interface is stored in the database.

[0102] Step 305: Based on the comparison result, determine the location of the installation control in the vehicle interface, operate the installation control, and start installing the OTA test task on the device to be tested.

[0103] Steps 303 to 305 of this embodiment are similar to steps 102 to 103 of the above-mentioned embodiment, and will not be described again here to avoid repetition.

[0104] Compared with the related technology, the embodiments of the present application have at least the following advantages: by comparing the vehicle-machine interface with the original vehicle-machine interface in the database after detecting a change in the vehicle-machine interface, the position of the installed control can be determined based on the comparison result, thereby ensuring the accuracy of subsequent automatic operation of the installed control by the device to be tested, so that the entire OTA testing process of the device to be tested will not be affected by the change in the position of the installed control, thereby improving the OTA testing efficiency; in addition, this method does not require special maintenance by relevant staff, realizes OTA testing of the device to be tested, saving time and effort.

[0105] Please refer to Figure 8 , which is a flow chart of the OTA testing method provided in an embodiment of the present application. This embodiment is a further explanation of the aforementioned embodiment, and specifically explains: when the result of the comparison is that there is no original vehicle-machine interface identical to the changed vehicle-machine interface in at least one original vehicle-machine interface, how to control the vehicle to automatically click on the vehicle-machine interface.

[0106] This embodiment is applied to terminal equipment, such as Figure 8 As shown, the following steps are included: Step 401: After detecting that the device to be tested has completed downloading the OTA test task, detecting whether the vehicle-machine interface of the device to be tested has changed, wherein the vehicle-machine interface includes an installation control for installing the OTA test task.

[0107] Step 402: after detecting that the vehicle computer interface has changed, the vehicle computer interface is compared with an original vehicle computer interface in a database, wherein at least one original vehicle computer interface is stored in the database.

[0108] Step 403: When the comparison result is that there is no original vehicle machine interface identical to the changed vehicle machine interface in at least one original vehicle machine interface, the vehicle is controlled to send an error message so that the database stores the changed vehicle machine interface as the original vehicle machine interface.

[0109] In some embodiments, if the database does not contain the original vehicle-machine interface that is the same as the changed vehicle-machine interface, the vehicle will send an error message and manually add the changed vehicle-machine interface to the database so that subsequent vehicles can automatically recognize the vehicle-machine interface.

[0110] Step 404: Determine a second target vehicle-machine interface that is the same as the changed vehicle-machine interface from at least one original vehicle-machine interface, and control the vehicle to take a screenshot of the second target vehicle-machine interface to obtain a fourth image.

[0111] In some embodiments, the installation control includes a second vehicle icon, a second settings icon, and a second upgrade management icon, and the image information of the second vehicle icon, the second settings icon, and the second upgrade management icon are stored in a database to facilitate subsequent pixel comparison of the second vehicle icon, the second settings icon, and the second upgrade management icon.

[0112] Step 405: Determine a fourth position of the second vehicle icon in the fourth image.

[0113] Step 406: Control the device to be tested to perform a fourth click operation on the second vehicle icon according to the fourth position.

[0114] Step 407: Control the device to be tested to take a screenshot of the vehicle computer interface after the fourth click operation is performed to obtain a fifth image.

[0115] Step 408: Determine a fifth position of the second setting icon in the fifth image.

[0116] Step 409: controlling the device to be tested to perform a fifth click operation on the second setting icon according to the fifth position.

[0117] Step 410: Control the device to be tested to take a screenshot of the vehicle computer interface after the fifth click operation is performed to obtain a sixth image.

[0118] Step 411: Determine the sixth position of the second upgrade management icon in the sixth image.

[0119] Step 412: Control the device to be tested to perform a sixth click operation on the second upgrade management icon according to the sixth position, and enable the device to be tested to start installing the OTA test task.

[0120] Steps 401 to 403 and 405 to 412 of this embodiment are similar to steps 201 to 203 and 205 to 211 of the aforementioned embodiment, and will not be described again to avoid repetition.

[0121] Compared with the related technology, the embodiments of the present application have at least the following advantages: by comparing the vehicle-machine interface with the original vehicle-machine interface in the database after detecting a change in the vehicle-machine interface, the position of the installed control can be determined based on the comparison result, thereby ensuring the accuracy of subsequent automatic operation of the installed control by the device to be tested, so that the entire OTA testing process of the device to be tested will not be affected by the change in the position of the installed control, thereby improving the OTA testing efficiency; in addition, this method does not require special maintenance by relevant staff, realizes OTA testing of the device to be tested, saving time and effort.

[0122] Please refer to Fig. 9 , is a schematic diagram of the hardware structure of the electronic device 1000 provided in the embodiment of the present application. Fig. 9 As shown, the electronic device 1000 may include a processor 1001 and a memory 1002. The memory 1002 is used to store one or more computer programs 1003. The one or more computer programs 1003 are configured to be executed by the processor 1001. The one or more computer programs 1003 include instructions, and the above instructions can be used to implement the above OTA test method in the electronic device 1000.

[0123] It is understandable that the structure shown in this embodiment does not constitute a specific limitation on the electronic device 1000. In other embodiments, the electronic device 1000 may include more or fewer components than shown, or combine or separate some components, or arrange the components differently.

[0124] The processor 1001 may include one or more processing units, for example, the processor 1001 may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0125] The processor 1001 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 1001 is a cache memory. The memory may store instructions or data that the processor 1001 has just used or circulated. If the processor 1001 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 1001, and thus improves the efficiency of the system.

[0126] In some embodiments, the processor 1001 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface, etc.

[0127] In some embodiments, processor 1001 is used to execute acceleration schemes such as single instruction multiple data (SIMD) and very long instruction word (VLIW).

[0128] In some embodiments, memory 1002 may include high-speed random access memory and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0129] This embodiment also provides a computer-readable storage medium, in which computer instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the OTA test method in the above-mentioned embodiment.

[0130] Among them, the electronic device and computer storage medium provided in this embodiment are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0131] In practical applications, the above functions can be distributed to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0132] In several embodiments provided in the present application, the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are schematic. For example, the division of the modules or units is a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0133] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.

[0134] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0135] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.

[0136] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.

Claims

1. An OTA testing method, characterized in that: include: After the device to be tested completes downloading the OTA test task, detecting whether the vehicle-machine interface of the device to be tested changes, wherein the vehicle-machine interface includes an installation control for installing the OTA test task; After detecting that the vehicle-machine interface has changed, comparing the vehicle-machine interface with an original vehicle-machine interface in a database, wherein the database stores at least one original vehicle-machine interface; The position of the installation control in the vehicle machine interface is determined based on the comparison result, the installation control is operated, and the device to be tested starts to install the OTA test task.

2. The OTA testing method according to claim 1, characterized in that: The vehicle-machine interface includes an identification icon, and the identification icon has initial position information in the unchanged vehicle-machine interface; The detecting whether the vehicle-machine interface of the device to be tested changes includes: Obtaining location information of the identification icon in the vehicle computer interface; The position information is compared with the initial position information, and whether the vehicle computer interface has changed is detected according to the comparison result.

3. The OTA testing method according to claim 1, characterized in that: The comparison result is that at least one of the original vehicle-machine interfaces contains the same original vehicle-machine interface as the changed vehicle-machine interface; The determining the position of the installed control in the vehicle-machine interface and automatically operating the installed control based on the position of the installed control in the vehicle-machine interface includes: Determine a first target vehicle-machine interface that is the same as the vehicle-machine interface from at least one of the original vehicle-machine interfaces; Determining the location of the installation control according to the first target vehicle interface; According to the position of the installed control, the device to be tested is controlled to automatically perform a click operation on the installed control.

4. The OTA testing method according to claim 3, characterized in that: The installation control includes a first vehicle icon, a first setting icon, and a first upgrade management icon; The controlling the device to be tested to automatically perform a click operation on the installation control includes: Controlling the device to be tested to take a screenshot of the first target vehicle interface to obtain a first image; determining a first position of the first vehicle icon in the first image; Performing a first click operation on the first vehicle icon according to the first position, and taking a screenshot of the vehicle computer interface after the first click operation to obtain a second image; determining a second position of the first setting icon in the second image; Performing a second click operation on the first setting icon according to the second position, and taking a screenshot of the vehicle computer interface after the second click operation to obtain a third image; determining a third position of the first upgrade management icon in the third image; A third click operation is performed on the first upgrade management icon according to the third position.

5. The OTA testing method according to claim 4, characterized in that: The determining a first position of the first vehicle icon in the first image includes: Performing pixel comparison on the first vehicle icon in the first image, and detecting whether the first vehicle icon exists in the first image according to a result of the pixel comparison; When the pixel comparison result shows that the first vehicle icon exists in the first image, determining the first position; When the pixel comparison result is that the first vehicle icon does not exist in the first image, the device to be tested is controlled to automatically slide the screen on the first target vehicle interface, and the device to be tested is controlled to take a screenshot of the first target vehicle interface after the sliding screen operation to obtain a new first image, and the above process of detecting whether the first vehicle icon exists in the first image is repeated until it is detected that the first vehicle icon exists in the new first image finally obtained; The first position is determined according to the new first image finally obtained.

6. The OTA testing method according to claim 1, characterized in that: The comparison result is that at least one of the original vehicle-machine interfaces does not contain the same original vehicle-machine interface as the changed vehicle-machine interface; The determining the position of the installed control in the vehicle-machine interface and automatically operating the installed control based on the position of the installed control in the vehicle-machine interface includes: Controlling the device to be tested to send an error message, so that the database stores the changed vehicle-machine interface as the original vehicle-machine interface; Determine, from at least one of the original vehicle-machine interfaces, a second target vehicle-machine interface that is the same as the changed vehicle-machine interface; Determining the location of the installation control according to the second target vehicle interface; According to the position of the installed control, the device to be tested is controlled to automatically perform a click operation on the installed control.

7. The OTA testing method according to claim 6, characterized in that: The installation control includes a second vehicle icon, a second setting icon, and a second upgrade management icon; Before controlling the device to be tested to automatically click the installation control, the method further includes: storing image information of the second vehicle icon, the second setting icon, and the second upgrade management icon in the database; The controlling the device to be tested to automatically perform a click operation on the installation control includes: Controlling the device to be tested to take a screenshot of the second target vehicle interface to obtain a fourth image; determining a fourth position of the second vehicle icon in the fourth image; performing a fourth click operation on the second vehicle icon according to the fourth position, and taking a screenshot of the vehicle computer interface after the fourth click operation to obtain a fifth image; determining a fifth position of the second setting icon in the fifth image; performing a fifth click operation on the second setting icon according to the fifth position, and taking a screenshot of the vehicle computer interface after the fifth click operation to obtain a sixth image; determining a sixth position of the second upgrade management icon in the sixth image; A sixth click operation is performed on the second upgrade management icon according to the sixth position.

8. The OTA testing method according to claim 1, characterized in that: Before the device to be tested downloads the OTA test task, it also includes: Acquire software update information of the device to be tested and attribute information of the device to be tested; Uploading the software update information and the attribute information to the cloud, so that the cloud generates the OTA test task according to the software update information; The OTA test task is sent to the device to be tested according to the attribute information.

9. An electronic device, characterized in that: The electronic device comprises a processor and a memory, the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the OTA test method according to any one of claims 1 to 8.

10. A storage medium, characterized in that: The method comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the OTA testing method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Test method and device and storage medium

    CN113190444A

  • Domain controller OTA self-checking system and method and computer storage medium

    CN113254031A

  • Automatic test method and device of vehicle, vehicle and storage medium

    CN118227489A

  • Configuring a vehicle for software update

    GB201720200D0

  • Vehicle over-the-air update authentication system and method

    US20240403406A1