Vehicle testing method, device and equipment and storage medium
Through the communication between the in-vehicle communication box and the over-the-air download technology platform, the OTA upgrade status is automatically monitored and controlled, which solves the problems of low test efficiency and high failure rate under remote control mutual exclusion conditions during the OTA upgrade process, and achieves efficient and accurate test results.
Patent Information
- Application Number
- CN202410811224.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-10-11
AI Technical Summary
In the existing technology, remote control mutual exclusion conditions exist during the OTA upgrade process, resulting in low test efficiency and high failure rate, and inaccurate manual operations lead to test failures.
Through the communication between the vehicle communication box and the terminal equipment and the over-the-air download technology platform, it sends upgrade tasks and monitors the upgrade status, and automatically issues remote control instructions to trigger the remote control mutual exclusion state to achieve automated testing.
It improves testing efficiency, reduces manpower investment, ensures the accuracy and reliability of test results, and avoids test failures caused by manual operations.
Smart Images

Figure CN118760587A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle testing technology, and in particular to a vehicle testing method and device, an electronic device and a storage medium. Background Art
[0002] With the in-depth development of intelligent network technology in automobiles, the importance of software to automobiles will become increasingly prominent. In order to facilitate the iteration and update of automobiles, OTA (Over-the-Air Technology) technology will be rapidly popularized in the process of automobile electrification and intelligent development.
[0003] Since OTA is a technology for remotely upgrading vehicle software, there are many mutually exclusive conditions in the OTA upgrade process, and remote control of the car is one of them. Remote control of the car refers to the intelligent control of the car start, some electrical appliances and body movement through the mobile phone, or the control of the car start, movement and some electrical appliances through the remote control.
[0004] OTA remote control mutual exclusion means that when the vehicle is remotely controlled, the vehicle will be in remote control state from the time the remote control command is issued to the time the controller executes the command; when the vehicle is in remote control state, OTA cannot be upgraded, and if OTA is upgraded, mutual exclusion will occur. At present, the test for this scenario can only be carried out by the tester repeatedly operating the mobile phone APP and continuously issuing remote control tasks to keep the vehicle in remote control state. At the same time, the tester needs to make an OTA appointment upgrade on the vehicle computer, and the vehicle must be in remote control state when upgrading to trigger the remote control mutual exclusion scenario test. This test method with manual card points has low test efficiency and high failure rate, and human resources cannot be fully utilized. Summary of the invention
[0005] The embodiment of the present application provides a vehicle testing method to solve the problems of low testing efficiency and high failure rate of the remote control mutually exclusive scenario testing method of manual card points, and inability to fully utilize human resources.
[0006] Correspondingly, an embodiment of the present application also provides a vehicle testing device, an electronic device and a storage medium to ensure the implementation and application of the above method.
[0007] In order to solve the above problems, the embodiment of the present application discloses a vehicle testing method, which is applied to a terminal device, wherein the vehicle is equipped with an on-board communication box, the on-board communication box is installed with on-board software, and the on-board communication box is communicatively connected with the terminal device and an over-the-air download technology platform, and the method comprises:
[0008] Sending the upgrade task of the vehicle software to the vehicle communication box, so that the vehicle communication box feeds back the upgrade status according to the upgrade task;
[0009] When the upgrade state is to start upgrading, a vehicle remote control instruction is sent to the vehicle communication box to make the vehicle communication box enter a remote control state;
[0010] When the vehicle-mounted communication box is in the upgrade environment detection process of the upgrade task, in response to the vehicle-mounted communication box entering the remote control state, the upgrade state of the upgrade task is converted into a mutually exclusive state, and the mutually exclusive state is used as the upgrade result of the upgrade task;
[0011] Output the test result of the mutually exclusive state.
[0012] Optionally, when the vehicle-mounted communication box is in the upgrade environment detection process of the upgrade task, in response to the vehicle-mounted communication box entering the remote control state, the upgrade state of the upgrade task is converted to a mutually exclusive state, further comprising:
[0013] When the vehicle-mounted communication box is in the upgrade environment detection process of the upgrade task, in response to the vehicle-mounted communication box entering the remote control state, the upgrade state of the upgrade task is converted from the start upgrade to the mutually exclusive state;
[0014] The mutually exclusive state is used as the upgrade result of the upgrade task.
[0015] Optionally, after sending the upgrade task of the vehicle software to the vehicle communication box, the method further includes:
[0016] Controlling the vehicle-mounted communication box to perform version detection on the vehicle-mounted software;
[0017] When the vehicle-mounted communication box detects a new version of the vehicle-mounted software, the vehicle-mounted communication box is controlled to download the vehicle-mounted software installation package of the new version, and the vehicle-mounted software installation package is used to upgrade the vehicle-mounted software.
[0018] Optionally, the vehicle is provided with a central control screen, and after controlling the vehicle-mounted communication box to download the new version of the vehicle-mounted software installation package, the method further includes:
[0019] The central control screen is controlled to click on the screen to set the scheduled upgrade time of the vehicle-mounted software, and the upgrade status of the vehicle-mounted software is to start upgrading at the scheduled upgrade time.
[0020] Optionally, after setting the scheduled upgrade time of the vehicle-mounted software, the method further includes:
[0021] Feedback the scheduled upgrade time to the vehicle communication box;
[0022] According to the scheduled upgrade time, controlling the vehicle-mounted communication box to start countdown and enabling the vehicle-mounted communication box to keep feeding back the upgrade status of the vehicle-mounted software to the over-the-air download technology platform;
[0023] After the countdown ends, it is obtained that the vehicle-mounted communication box feeds back to the over-the-air download technology platform that the upgrade status of the vehicle-mounted software is starting to upgrade.
[0024] Optionally, the vehicle is provided with a central control screen, and the step of converting the upgrade state of the upgrade task from the start upgrade to a mutually exclusive state includes:
[0025] Controlling the vehicle-mounted communication box to feed back the mutually exclusive information of the mutually exclusive state to the over-the-air download technology platform and the central control screen;
[0026] Acquire an event in which the over-the-air download technology platform determines that the upgrade environment detection process fails, and suspend the upgrade task of the vehicle-mounted software;
[0027] Control the central control screen to display the mutually exclusive information of the mutually exclusive state.
[0028] Optionally, the method further comprises:
[0029] The central control screen is controlled by the Android debugging bridge to perform screen clicks to set the scheduled upgrade time of the vehicle-mounted software.
[0030] The embodiment of the present application also discloses a vehicle testing device, which is applied to a terminal device. The vehicle is equipped with a vehicle-mounted communication box, and the vehicle-mounted communication box is installed with vehicle-mounted software. The vehicle-mounted communication box is connected to the terminal device and the over-the-air download technology platform for communication. The device includes:
[0031] An upgrade task sending module, used for sending the upgrade task of the vehicle-mounted software to the vehicle-mounted communication box, so that the vehicle-mounted communication box can feedback the upgrade status according to the upgrade task;
[0032] A remote control instruction sending module, used for sending a vehicle remote control instruction to the vehicle communication box when the upgrade state is to start upgrading, so that the vehicle communication box enters the remote control state;
[0033] An upgrade result acquisition module, for converting the upgrade state of the upgrade task into a mutually exclusive state in response to the vehicle-mounted communication box entering a remote control state when the vehicle-mounted communication box is in the upgrade environment detection process of the upgrade task, and the mutually exclusive state serves as the upgrade result of the upgrade task;
[0034] The test result output module is used to output the test result of the mutually exclusive state.
[0035] An embodiment of the present application also discloses an electronic device, including: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes the vehicle testing method as described in one or more of the embodiments of the present application.
[0036] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, a processor executes the vehicle testing method as described in one or more of the embodiments of the present application.
[0037] Compared with the prior art, the embodiments of the present application have the following advantages:
[0038] In an embodiment of the present application, an upgrade task of the vehicle software is sent to the vehicle communication box, so that the vehicle communication box can feedback the upgrade status according to the upgrade task; when the upgrade status is to start upgrading, the vehicle remote control command is sent to the vehicle communication box, so that the vehicle communication box enters the remote control state; when the vehicle communication box is in the upgrade environment detection process of the upgrade task, in response to the vehicle communication box entering the remote control state, the upgrade state of the upgrade task is converted to a mutually exclusive state, and the mutually exclusive state is used as the upgrade result of the upgrade task; the test result of the mutually exclusive state is output. The embodiment of the present application obtains the timing of issuing the vehicle remote control command by polling the upgrade status of the vehicle software, ensures that the vehicle is OTA upgraded when it is in the remote control state, triggers the mutually exclusive state, so as to improve the situation where the test fails due to inaccurate manual test points, and can be automatically executed through the test script, reducing the manpower investment. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 is a flowchart of steps of an embodiment of a vehicle testing method of the present application;
[0040] Figure 2 It is a flow chart of a vehicle testing method embodiment of the present application;
[0041] Figure 3 is a structural block diagram of an embodiment of a vehicle testing device of the present application;
[0042] Figure 4 It is a schematic diagram of the structure of a device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0044] Reference Figure 1 , is a flowchart of a vehicle testing method embodiment of the present application, comprising the following steps:
[0045] Step 101: Send the upgrade task of the vehicle-mounted software to the vehicle-mounted communication box, so that the vehicle-mounted communication box feeds back the upgrade status according to the upgrade task.
[0046] The vehicle testing method of this embodiment is applied to a terminal device, and a test script is provided on the terminal device for executing the vehicle testing method in this embodiment. The vehicle for the vehicle testing method is loaded with a vehicle-mounted communication box (TBOX, Telematics Box), and the vehicle-mounted communication box is installed with vehicle-mounted software for collecting and transmitting vehicle data, such as location, speed, driving status, etc. The vehicle-mounted software on the vehicle-mounted communication box is upgraded and updated using the over-the-air technology (OTA) through the over-the-air technology platform. OTA is a technology for transmitting data over a wireless network, allowing devices (such as smartphones, tablets, smart TVs, cars, etc.) to remotely receive software updates, configuration changes or other data without being physically connected to a computer or other device. In this embodiment, the vehicle-mounted communication box is connected to the terminal device and the over-the-air technology platform. In a feasible embodiment, the terminal device is a computer, the test script runs on the computer, and the vehicle-mounted communication box is connected to the computer and the over-the-air technology platform.
[0047] In step 101, the terminal device runs a test script, which calls the interface of the over-the-air download technology platform and sends the upgrade task of the vehicle software to the vehicle communication box. After receiving the upgrade task of the vehicle software, the vehicle communication box will continuously feedback the upgrade status of the vehicle software to the over-the-air download technology platform. In one embodiment, after receiving the upgrade task of the vehicle software, the vehicle communication box will perform version detection and version download of the vehicle software.
[0048] Step 102: When the upgrade state is to start upgrading, a vehicle remote control instruction is sent to the vehicle communication box to make the vehicle communication box enter a remote control state.
[0049] In step 102, the terminal device can call the interface of the over-the-air download technology platform through the test script polling to obtain the current vehicle software upgrade status. When the current vehicle software upgrade status is the start of the upgrade, the vehicle remote control command is sent to the vehicle communication box to make the vehicle communication box enter the remote control state. In an optional embodiment, the test script can call the interface of the mobile phone application that can remotely control the vehicle, so that the mobile phone application sends the vehicle remote control command to the vehicle communication box, so that the vehicle communication box enters the remote control state.
[0050] Step 103: When the vehicle-mounted communication box is in the upgrade environment detection process of the upgrade task, in response to the vehicle-mounted communication box entering the remote control state, the upgrade state of the upgrade task is converted to a mutually exclusive state, and the mutually exclusive state serves as the upgrade result of the upgrade task.
[0051] In step 103, if the vehicle-mounted communication box enters the remote control state, the vehicle-mounted communication box is in the upgrade environment detection process of the upgrade task. In response to the vehicle-mounted communication box entering the remote control state, the upgrade state of the upgrade task is converted to a mutually exclusive state, and the mutually exclusive state is used as the upgrade result of the upgrade task. In one embodiment, the vehicle-mounted software will generate mutually exclusive information at this time, and the vehicle-mounted communication box will feed back the mutually exclusive state and the mutually exclusive information to the air download technology platform. After the air download technology platform obtains the mutually exclusive state and the mutually exclusive information, it determines that the upgrade environment detection process has failed and interrupts the upgrade task.
[0052] Step 104: Output the test result of the mutually exclusive state.
[0053] In step 104, the test script can obtain the expected test result set by the technician, and compare the expected test result with the mutually exclusive state obtained in step 103 to determine the test result of the upgrade task. In a feasible embodiment, the technician can set the expected test result as "successfully triggering the mutually exclusive state, and the upgrade environment detection process of the air download technology platform fails". If the upgrade result obtained at this time is that the upgrade state of the vehicle-mounted software is a mutually exclusive state, and the air download technology platform determines that the upgrade environment detection process fails and interrupts the upgrade task, then the test result is determined to be a passed test. After obtaining the test result, the test result of the upgrade task is displayed on the terminal device. In a feasible embodiment, it is displayed on the terminal device: "Test passed: successfully triggering the mutually exclusive state, the upgrade environment detection process of the air download technology platform failed", and further, mutually exclusive information can also be displayed.
[0054] In an embodiment of the present application, an upgrade task of the vehicle software is sent to the vehicle communication box, so that the vehicle communication box can feedback the upgrade status according to the upgrade task; when the upgrade status is to start upgrading, the vehicle remote control command is sent to the vehicle communication box, so that the vehicle communication box enters the remote control state; when the vehicle communication box is in the upgrade environment detection process of the upgrade task, in response to the vehicle communication box entering the remote control state, the upgrade state of the upgrade task is converted to a mutually exclusive state, and the mutually exclusive state is used as the upgrade result of the upgrade task; the test result of the mutually exclusive state is output. The embodiment of the present application obtains the timing of issuing the vehicle remote control command by polling the upgrade status of the vehicle software, ensures that the vehicle is OTA upgraded when it is in the remote control state, triggers the mutually exclusive state, so as to improve the situation where the test fails due to inaccurate manual test points, and can be automatically executed through the test script, reducing the manpower investment.
[0055] In one embodiment of the present application, when the vehicle-mounted communication box is in the upgrade environment detection process of the upgrade task, in response to the vehicle-mounted communication box entering the remote control state, the upgrade state of the upgrade task is converted to a mutually exclusive state, further comprising:
[0056] When the vehicle-mounted communication box is in the upgrade environment detection process of the upgrade task, in response to the vehicle-mounted communication box entering the remote control state, the upgrade state of the upgrade task is converted from the start upgrade to the mutually exclusive state;
[0057] The mutually exclusive state is used as the upgrade result of the upgrade task.
[0058] In this embodiment, if the upgrade environment detection process for the vehicle software of the vehicle communication box is in progress and the vehicle communication box enters the remote control state, the remote control mutual exclusion scenario will be triggered, that is, the upgrade state of the vehicle software is converted from the start of the upgrade to the mutual exclusion state, and the over-the-air download technology platform determines that the upgrade environment detection process has failed. The test script obtains the mutual exclusion state at this time and uses it as the upgrade result of the upgrade task.
[0059] In an embodiment of the present application, by automatically configuring and issuing upgrade tasks, the upgrade status is monitored in real time, and the vehicle remote control command can be automatically issued to put the vehicle in a remote control state just when the over-the-air download technology platform is performing the upgrade environment detection process for the vehicle software of the vehicle communication box, resulting in an OTA upgrade and remote control mutually exclusive scenario. At the same time, the test results can also be judged by the upgrade status. The entire process is automatically executed through test scripts, which greatly reduces manpower and avoids test failures caused by inaccurate manual operations.
[0060] In one embodiment of the present application, after sending the upgrade task of the vehicle-mounted software to the vehicle-mounted communication box, the method further includes:
[0061] Controlling the vehicle-mounted communication box to perform version detection on the vehicle-mounted software;
[0062] When the vehicle-mounted communication box detects a new version of the vehicle-mounted software, the vehicle-mounted communication box is controlled to download the vehicle-mounted software installation package of the new version, and the vehicle-mounted software installation package is used to upgrade the vehicle-mounted software.
[0063] In this embodiment, after the test script calls the interface of the over-the-air download technology platform to send the upgrade task of the vehicle-mounted software to the vehicle-mounted communication box, the vehicle-mounted communication box receives the upgrade task and starts to perform version detection on the vehicle-mounted software. If a new version of the vehicle-mounted software is detected, the vehicle-mounted software installation package of the new version of the vehicle-mounted software is downloaded through the over-the-air download technology platform. The vehicle-mounted software installation package is used to upgrade the vehicle-mounted software.
[0064] In an embodiment of the present application, the vehicle-mounted communication box performs version detection and version download, which is used to trigger a remote control mutually exclusive scenario after the vehicle-mounted software enters an upgraded state.
[0065] In one embodiment of the present application, the vehicle is provided with a central control screen, and after controlling the vehicle-mounted communication box to download the new version of the vehicle-mounted software installation package, the method further includes:
[0066] The central control screen is controlled to click on the screen to set the scheduled upgrade time of the vehicle-mounted software, and the upgrade status of the vehicle-mounted software is to start upgrading at the scheduled upgrade time.
[0067] In this embodiment, the vehicle is also provided with a central control screen (i.e., CDC, Car Display Controller). After the test script controls the vehicle communication box to download the new version of the vehicle software installation package, the test script controls the CDC on the vehicle to click on the screen to set the scheduled upgrade time of the vehicle software. After the countdown to the scheduled upgrade time, the upgrade state of the vehicle software changes to start upgrading. In a feasible embodiment, the CDC can be controlled to click on the screen to set the scheduled upgrade time by means of ADB (Android Debug Bridge, a command line tool in the Android Development Kit (Android SDK)).
[0068] The embodiment of the present application sets an appointment for upgrade time so that the test script can more accurately know the upgrade status of the vehicle software, thereby controlling the automatic issuance of vehicle remote control instructions to put the vehicle in a remote control state. In the event of an OTA upgrade and remote control mutually exclusive scenario, the entire process is automatically executed through the test script, reducing the use of manpower.
[0069] In one embodiment of the present application, after setting the scheduled upgrade time of the vehicle-mounted software, the method further includes:
[0070] Feedback the scheduled upgrade time to the vehicle communication box;
[0071] According to the scheduled upgrade time, controlling the vehicle-mounted communication box to start countdown and enabling the vehicle-mounted communication box to keep feeding back the upgrade status of the vehicle-mounted software to the over-the-air download technology platform;
[0072] After the countdown ends, it is obtained that the vehicle-mounted communication box feeds back to the over-the-air download technology platform that the upgrade status of the vehicle-mounted software is starting to upgrade.
[0073] In this embodiment, after the test script controls the CDC on the vehicle to click on the screen to set the scheduled upgrade time of the vehicle-mounted software, the scheduled upgrade time is fed back to the vehicle-mounted communication box, and according to the scheduled upgrade time, the vehicle-mounted communication box is controlled to start the countdown, so that the vehicle-mounted communication box keeps feeding back the upgrade status of the vehicle-mounted software to the air download technology platform. During this period, the test script keeps polling the air download technology platform to obtain the upgrade status of the vehicle-mounted software. After the countdown ends, the vehicle-mounted software enters the upgrade state of starting the upgrade, and the vehicle-mounted communication box feeds back to the air download technology platform that the upgrade status of the vehicle-mounted software is starting to upgrade, and the test script can also obtain the upgrade status of the vehicle-mounted software in the air download technology platform as starting to upgrade.
[0074] The embodiment of the present application monitors the upgrade status in real time, and can automatically issue remote control instructions to put the vehicle in remote control state when the upgrade status of the on-board software is obtained to start upgrading. In the event of an OTA upgrade and remote control mutually exclusive scenario, the entire process is automatically executed through test scripts without the need for manual checkpoints.
[0075] In one embodiment of the present application, the vehicle is provided with a central control screen, and the step of converting the upgrade state of the upgrade task from the start upgrade to a mutually exclusive state includes:
[0076] Controlling the vehicle-mounted communication box to feed back the mutually exclusive information of the mutually exclusive state to the over-the-air download technology platform and the central control screen;
[0077] Acquire an event in which the over-the-air download technology platform determines that the upgrade environment detection process fails, and suspend the upgrade task of the vehicle-mounted software;
[0078] Control the central control screen to display the mutually exclusive information of the mutually exclusive state.
[0079] In this embodiment, the vehicle is also provided with a central control screen (i.e., CDC, Car Display Controller). When the upgrade state of the vehicle software changes from the start of the upgrade to the mutually exclusive state, the vehicle communication box can obtain the mutually exclusive state and the corresponding mutually exclusive information, so that the vehicle communication box can feed back the mutually exclusive information of the mutually exclusive state to the air download technology platform and the central control screen. After the air download technology platform obtains the mutually exclusive information, it determines that the upgrade environment detection process has failed and suspends the upgrade task of the vehicle software; the mutually exclusive information of the mutually exclusive state will be displayed on the central control screen.
[0080] The embodiment of the present application enables the over-the-air download technology platform to obtain the event of failure of the upgrade environment detection process, which facilitates subsequent comparison with the expected test results to obtain the test results of the upgrade task; displaying mutually exclusive information on the central control screen can help technical personnel understand the progress of the test.
[0081] In one embodiment of the present application, the method further includes:
[0082] The central control screen is controlled by the Android debugging bridge to perform screen clicks to set the scheduled upgrade time of the vehicle-mounted software.
[0083] In this embodiment, the central control screen can be controlled to click on the screen through the Android Debug Bridge to set the scheduled upgrade time of the vehicle software. ADB (Android Debug Bridge, a command line tool in the Android Development Kit (Android SDK)) is a multi-functional command line tool that can control the central control screen to click on the screen by issuing ADB commands. In one embodiment, the uiautomator2 library function of Python can be used to control the central control screen to click on the screen.
[0084] The embodiment of the present application controls the central control screen through the Android debug bridge to set the scheduled upgrade time of the vehicle software by clicking on the screen. No manual clicks are required, which can free up manpower for more other tests, improve project quality, and save project costs.
[0085] In an embodiment of the present application, an upgrade task of the vehicle software is sent to the vehicle communication box, so that the vehicle communication box can feedback the upgrade status according to the upgrade task; when the upgrade status is to start upgrading, the vehicle remote control command is sent to the vehicle communication box, so that the vehicle communication box enters the remote control state; when the vehicle communication box is in the upgrade environment detection process of the upgrade task, in response to the vehicle communication box entering the remote control state, the upgrade state of the upgrade task is converted to a mutually exclusive state, and the mutually exclusive state is used as the upgrade result of the upgrade task; the test result of the mutually exclusive state is output. The embodiment of the present application obtains the timing of issuing the vehicle remote control command by polling the upgrade status of the vehicle software, ensures that the vehicle is OTA upgraded when it is in the remote control state, triggers the mutually exclusive state, so as to improve the situation where the test fails due to inaccurate manual test points, and can be automatically executed through the test script, reducing the manpower investment.
[0086] Reference Figure 2 , showing a flow chart of a vehicle testing method embodiment of the present application. Figure 2 All processes in the test are automatically executed by test scripts.
[0087] 01. The test script configures the upgrade task to the OTA cloud platform (i.e., over-the-air download technology platform).
[0088] 02. The OTA cloud platform sends the upgrade task to TBOX, which then performs version detection and download. During the upgrade task, TBOX keeps feeding back the upgrade status to the OTA cloud platform.
[0089] 03. After the new version is downloaded, the test script controls the central control screen CDC configuration to schedule the upgrade time.
[0090] 04. CDC will feedback the scheduled upgrade time to TBOX, and TBOX will start the countdown. During this period, TBOX will continue to feedback the upgrade status to CDC, and CDC will display it.
[0091] 05. During the upgrade task, the test script polls the OTA cloud platform to obtain the upgrade status.
[0092] 06. When the test script obtains that the upgrade status is to start upgrading, the remote control command interface of the mobile phone APP (i.e. mobile phone application) is called.
[0093] 07. The test script controls the mobile phone APP to send remote control commands to TBOX, triggering the remote control mutually exclusive scenario. The test script obtains the upgrade status of the OTA cloud platform and the expected test results to make a judgment and get the final result of this test.
[0094] In an embodiment of the present application, an upgrade task of the vehicle software is sent to the vehicle communication box, so that the vehicle communication box can feedback the upgrade status according to the upgrade task; when the upgrade status is to start upgrading, the vehicle remote control command is sent to the vehicle communication box, so that the vehicle communication box enters the remote control state; when the vehicle communication box is in the upgrade environment detection process of the upgrade task, in response to the vehicle communication box entering the remote control state, the upgrade state of the upgrade task is converted to a mutually exclusive state, and the mutually exclusive state is used as the upgrade result of the upgrade task; the test result of the mutually exclusive state is output. The embodiment of the present application obtains the timing of issuing the vehicle remote control command by polling the upgrade status of the vehicle software, ensures that the vehicle is OTA upgraded when it is in the remote control state, triggers the mutually exclusive state, so as to improve the situation where the test fails due to inaccurate manual test points, and can be automatically executed through the test script, reducing the manpower investment.
[0095] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.
[0096] On the basis of the above embodiments, this embodiment further provides a vehicle testing device, which is applied to electronic devices such as terminal devices and servers.
[0097] Reference Figure 3 , shows a structural block diagram of an embodiment of a vehicle testing device of the present application, which may specifically include the following modules:
[0098] An upgrade task sending module 301 is used to send the upgrade task of the vehicle-mounted software to the vehicle-mounted communication box, so that the vehicle-mounted communication box can feedback the upgrade status according to the upgrade task;
[0099] A remote control instruction sending module 302 is used to send a vehicle remote control instruction to the vehicle communication box when the upgrade state is to start upgrading, so that the vehicle communication box enters the remote control state;
[0100] An upgrade result acquisition module 303 is used for converting the upgrade state of the upgrade task into a mutually exclusive state in response to the vehicle-mounted communication box entering a remote control state when the vehicle-mounted communication box is in the upgrade environment detection process of the upgrade task, and the mutually exclusive state is used as the upgrade result of the upgrade task;
[0101] The test result output module 304 is used to output the test result of the mutually exclusive state.
[0102] Optionally, the upgrade result acquisition module 303 is further used to:
[0103] When the vehicle-mounted communication box is in the upgrade environment detection process of the upgrade task, in response to the vehicle-mounted communication box entering the remote control state, the upgrade state of the upgrade task is converted from the start upgrade to the mutually exclusive state;
[0104] The mutually exclusive state is used as the upgrade result of the upgrade task.
[0105] Optionally, the device further comprises:
[0106] A version detection module, used to control the vehicle-mounted communication box to perform version detection on the vehicle-mounted software;
[0107] The installation package downloading module is used to control the vehicle communication box to download the vehicle software installation package of the new version when the vehicle communication box detects a new version of the vehicle software. The vehicle software installation package is used to upgrade the vehicle software.
[0108] Optionally, the vehicle is provided with a central control screen, and the device further comprises:
[0109] The screen click control module is used to control the central control screen to click on the screen and set the scheduled upgrade time of the vehicle-mounted software. The upgrade status of the vehicle-mounted software starts upgrading at the scheduled upgrade time.
[0110] Optionally, the device further comprises:
[0111] An upgrade time feedback module, used to feed back the scheduled upgrade time to the vehicle-mounted communication box;
[0112] A countdown module, used to control the vehicle-mounted communication box to start countdown according to the scheduled upgrade time and to enable the vehicle-mounted communication box to keep feeding back the upgrade status of the vehicle-mounted software to the over-the-air download technology platform;
[0113] The upgrade status feedback module is used to obtain the upgrade status of the vehicle-mounted software fed back by the vehicle-mounted communication box to the air download technology platform as the start of upgrade after the countdown ends.
[0114] Optionally, the vehicle is provided with a central control screen, and the upgrade result acquisition module 303 further includes:
[0115] A mutually exclusive information feedback submodule, used to control the vehicle-mounted communication box to feed back the mutually exclusive information of the mutually exclusive state to the over-the-air download technology platform and the central control screen;
[0116] A failure event acquisition submodule, used to acquire an event in which the over-the-air download technology platform determines that the upgrade environment detection process fails, and suspend the upgrade task of the vehicle-mounted software;
[0117] The mutually exclusive information display submodule is used to control the central control screen to display the mutually exclusive information of the mutually exclusive state.
[0118] Optionally, the screen click control module is further used for:
[0119] The central control screen is controlled by the Android debugging bridge to perform screen clicks to set the scheduled upgrade time of the vehicle-mounted software.
[0120] In an embodiment of the present application, an upgrade task of the vehicle software is sent to the vehicle communication box; the air download technology platform is polled to obtain the upgrade status of the vehicle software fed back by the vehicle communication box to the air download technology platform; if the upgrade status of the vehicle software is to start upgrading, a vehicle remote control instruction is sent to the vehicle communication box to make the vehicle communication box enter the remote control state; if the air download technology platform is performing an upgrade environment detection process for the vehicle software of the vehicle communication box and the vehicle communication box enters the remote control state, the upgrade status of the vehicle software is used as the upgrade result of the upgrade task; the expected test result for the upgrade task is obtained, and the test result of the upgrade task is determined according to the expected test result and the upgrade result; the test result of the upgrade task is displayed. The embodiment of the present application obtains the timing of issuing the vehicle remote control instruction by polling the upgrade status of the vehicle software, ensures that the vehicle is OTA upgraded when it is in the remote control state, triggers the mutually exclusive state, so as to improve the situation where the test fails due to inaccurate manual test points, and can be automatically executed through the test script, reducing the manpower investment.
[0121] The embodiment of the present application also provides a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute instructions (instructions) of each method step in the embodiment of the present application.
[0122] The present application embodiment provides one or more machine-readable media on which instructions are stored, and when executed by one or more processors, an electronic device executes one or more of the methods described in the above embodiments. In the present application embodiment, the electronic device includes various types of devices such as terminal devices and servers (clusters).
[0123] The embodiments of the present disclosure may be implemented as a device configured as desired using any appropriate hardware, firmware, software, or any combination thereof, and the device may include electronic devices such as terminal devices and servers (clusters). Figure 4 An exemplary apparatus 400 that may be used to implement various embodiments described in this application is schematically illustrated.
[0124] For one embodiment, Figure 4 An exemplary apparatus 400 is shown having one or more processors 402, a control module (chip set) 404 coupled to at least one of the processor(s) 402, a memory 406 coupled to the control module 404, a non-volatile memory (NVM) / storage device 408 coupled to the control module 404, one or more input / output devices 410 coupled to the control module 404, and a network interface 412 coupled to the control module 404.
[0125] The processor 402 may include one or more single-core or multi-core processors, and the processor 402 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.). In some embodiments, the device 400 can be used as a terminal device, server (cluster), etc. described in the embodiments of the present application.
[0126] In some embodiments, the apparatus 400 may include one or more computer-readable media (e.g., memory 406 or NVM / storage device 408) having instructions 414 and one or more processors 402 combined with the one or more computer-readable media and configured to execute the instructions 414 to implement a module to perform the actions described in the present disclosure.
[0127] For one embodiment, control module 404 may include any suitable interface controller to provide any suitable interface to at least one of processor(s) 402 and / or any suitable device or component in communication with control module 404 .
[0128] The control module 404 may include a memory controller module to provide an interface to the memory 406. The memory controller module may be a hardware module, a software module, and / or a firmware module.
[0129] The memory 406 may be used, for example, to load and store data and / or instructions 414 for the device 400. For one embodiment, the memory 406 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the memory 406 may include a double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
[0130] For one embodiment, control module 404 may include one or more input / output controllers to provide interfaces to NVM / storage device 408 and input / output device(s) 410 .
[0131] For example, NVM / storage 408 may be used to store data and / or instructions 414. NVM / storage 408 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).
[0132] NVM / storage device 408 may include storage resources that are physically part of the device on which apparatus 400 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 408 may be accessed via input / output device(s) 410 over a network.
[0133] (One or more) input / output devices 410 may provide an interface for the apparatus 400 to communicate with any other appropriate device, and the input / output device 410 may include a communication component, an audio component, a sensor component, etc. The network interface 412 may provide an interface for the apparatus 400 to communicate through one or more networks, and the apparatus 400 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols, for example, accessing a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof for wireless communication.
[0134] For one embodiment, at least one of the processor(s) 402 may be packaged together with the logic of one or more controllers (e.g., a memory controller module) of the control module 404. For one embodiment, at least one of the processor(s) 402 may be packaged together with the logic of one or more controllers of the control module 404 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 402 may be integrated on the same die with the logic of one or more controllers of the control module 404. For one embodiment, at least one of the processor(s) 402 may be integrated on the same die with the logic of one or more controllers of the control module 404 to form a system-on-chip (SoC).
[0135] In various embodiments, the device 400 may be, but is not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the device 400 may have more or fewer components and / or different architectures. For example, in some embodiments, the device 400 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC), and a speaker.
[0136] Among them, the main control chip can be used as a processor or control module in the detection device, sensor data, location information, etc. are stored in a memory or NVM / storage device, the sensor group can be used as an input / output device, and the communication interface may include a network interface.
[0137] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0138] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0139] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable vehicle test terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable vehicle test terminal device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0140] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable vehicle test terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0141] These computer program instructions can also be loaded onto a computer or other programmable vehicle test terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0142] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0143] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0144] The vehicle testing method and device, an electronic device and a storage medium provided by the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A vehicle testing method, characterized in that: Applied to a terminal device, the vehicle is equipped with a vehicle-mounted communication box, the vehicle-mounted communication box is installed with vehicle-mounted software, the vehicle-mounted communication box is communicatively connected with the terminal device and an over-the-air download technology platform, and the method includes: Sending the upgrade task of the vehicle software to the vehicle communication box, so that the vehicle communication box feeds back the upgrade status according to the upgrade task; When the upgrade state is to start upgrading, a vehicle remote control instruction is sent to the vehicle communication box to make the vehicle communication box enter a remote control state; When the vehicle-mounted communication box is in the upgrade environment detection process of the upgrade task, in response to the vehicle-mounted communication box entering the remote control state, the upgrade state of the upgrade task is converted into a mutually exclusive state, and the mutually exclusive state is used as the upgrade result of the upgrade task; Output the test result of the mutually exclusive state.
2. The method according to claim 1, characterized in that When the vehicle-mounted communication box is in the upgrade environment detection process of the upgrade task, in response to the vehicle-mounted communication box entering the remote control state, the upgrade state of the upgrade task is converted to a mutually exclusive state, further comprising: When the vehicle-mounted communication box is in the upgrade environment detection process of the upgrade task, in response to the vehicle-mounted communication box entering the remote control state, the upgrade state of the upgrade task is converted from the start upgrade to the mutually exclusive state; The mutually exclusive state is used as the upgrade result of the upgrade task.
3. The method according to claim 1, characterized in that After sending the upgrade task of the vehicle software to the vehicle communication box, the method further includes: Controlling the vehicle-mounted communication box to perform version detection on the vehicle-mounted software; When the vehicle-mounted communication box detects a new version of the vehicle-mounted software, the vehicle-mounted communication box is controlled to download the vehicle-mounted software installation package of the new version, where the vehicle-mounted software installation package is used to upgrade the vehicle-mounted software.
4. The method according to claim 3, characterized in that The vehicle is provided with a central control screen, and after controlling the vehicle communication box to download the new version of the vehicle software installation package, the method further includes: The central control screen is controlled to click on the screen to set the scheduled upgrade time of the vehicle-mounted software, and the upgrade status of the vehicle-mounted software is to start upgrading at the scheduled upgrade time.
5. The method according to claim 4, characterized in that After setting the scheduled upgrade time of the vehicle-mounted software, the method further includes: Feedback the scheduled upgrade time to the vehicle communication box; According to the scheduled upgrade time, controlling the vehicle-mounted communication box to start countdown and enabling the vehicle-mounted communication box to keep feeding back the upgrade status of the vehicle-mounted software to the over-the-air download technology platform; After the countdown ends, it is obtained that the vehicle-mounted communication box feeds back to the over-the-air download technology platform that the upgrade status of the vehicle-mounted software is starting to upgrade.
6. The method according to claim 2, characterized in that The vehicle is provided with a central control screen, and the upgrading state of the upgrading task is converted from the upgrading start state to the mutually exclusive state, including: Controlling the vehicle-mounted communication box to feed back the mutually exclusive information of the mutually exclusive state to the over-the-air download technology platform and the central control screen; Acquire an event in which the over-the-air download technology platform determines that the upgrade environment detection process fails, and suspend the upgrade task of the vehicle-mounted software; Control the central control screen to display the mutually exclusive information of the mutually exclusive state.
7. The method according to claim 4, characterized in that The method further comprises: The central control screen is controlled by the Android debugging bridge to perform screen clicks to set the scheduled upgrade time of the vehicle-mounted software.
8. A vehicle testing device, characterized in that: Applied to a terminal device, the vehicle is equipped with a vehicle-mounted communication box, the vehicle-mounted communication box is installed with vehicle-mounted software, the vehicle-mounted communication box is connected to the terminal device and the over-the-air download technology platform, and the device includes: An upgrade task sending module, used for sending the upgrade task of the vehicle-mounted software to the vehicle-mounted communication box, so that the vehicle-mounted communication box can feedback the upgrade status according to the upgrade task; A remote control instruction sending module, used for sending a vehicle remote control instruction to the vehicle communication box when the upgrade state is to start upgrading, so that the vehicle communication box enters the remote control state; An upgrade result acquisition module, for converting the upgrade state of the upgrade task into a mutually exclusive state in response to the vehicle-mounted communication box entering a remote control state when the vehicle-mounted communication box is in the upgrade environment detection process of the upgrade task, and the mutually exclusive state serves as the upgrade result of the upgrade task; The test result output module is used to output the test result of the mutually exclusive state.
9. An electronic device, characterized in that: include: processor; and A memory having executable codes stored thereon, which, when executed, enable the processor to perform the vehicle testing method as claimed in one or more of claims 1-7.
10. One or more machine-readable media having executable codes stored thereon, which, when executed, cause a processor to perform the vehicle testing method as claimed in one or more of claims 1-7.
