Vehicle OTA upgrade test method and device, computer equipment and storage medium

By using automated test scripts and serial communicators in vehicle-machine OTA upgrade testing, the problem of low automation in OTA upgrade testing is solved, efficient and accurate vehicle-machine OTA upgrade testing is achieved, and the efficiency and safety of the test are improved.

CN118714602APending Publication Date: 2024-09-27JIANGSU BDSTAR AUTOMOTIVE ELECTRONICS CO LTD +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410828788.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In the process of automobile OTA upgrade, real vehicle resources are limited, the upgrade test efficiency is low and affected by environmental factors, and the degree of automation is low, which affects the accuracy and efficiency of test results.

Method used

Adopting the vehicle OTA upgrade testing method, through the combination of server, serial port communicator and CAN bus analyzer, using Python development library and third-party test library to write automated test scripts to implement version checking, OTA upgrade startup and upgrade of the vehicle to be upgraded Process data recording, real-time acquisition of vehicle and machine status information and output upgrade logs to improve automation.

Benefits of technology

It improves the efficiency, accuracy and safety of vehicle and machine OTA upgrade testing, reduces human errors, and ensures the smooth progress of the upgrade process and real-time monitoring of the vehicle and machine status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118714602A
    Figure CN118714602A
Patent Text Reader

Abstract

The embodiment of the invention discloses an in-vehicle infotainment OTA upgrade test method and device, computer equipment and a storage medium. The method comprises the steps that a server receives upgrade request information from a to-be-upgraded in-vehicle infotainment, compiles an automatic test script according to a preset Python development library and a third-party test library and sends the automatic test script to a serial port communicator; the serial port communicator checks the version of the to-be-upgraded car infotainment according to the automated test script and obtains version information; the serial port communicator carries out OTA upgrading starting processing on the to-be-upgraded vehicle machine, and the automatic test script is used for carrying out upgrading process data recording on the to-be-upgraded vehicle machine; and the serial port communicator sends a CAN signal corresponding to the version information to a CAN bus analyzer to execute an upgrading process, obtains vehicle machine state information in real time and outputs a vehicle machine upgrading log. According to the method, the test is performed by using the automatic test script written by the Python development library, so that the automation degree of the upgrade test is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent driving technology, and in particular to a vehicle computer OTA upgrade test method, device, computer equipment and storage medium. Background Art

[0002] In the automotive industry, OTA (Over-The-Air) upgrades are an important software update method that allows cars to receive and install new software versions over wireless networks without the need for car owners to drive the vehicle to a service center. This upgrade method provides convenience for car owners and also provides automakers with an efficient and economical means of maintaining and upgrading vehicles. However, there are some challenges in the implementation of OTA upgrades. First, the actual vehicle resources are limited, and it is impossible to perform upgrade tests on a large number of vehicles at the same time. Secondly, the OTA upgrade process may take a long time, and may be affected by environmental factors during actual vehicle testing, such as network signal strength, vehicle electrical system status, etc., which may affect the efficiency of the vehicle program upgrade test and the accuracy of the results. Summary of the invention

[0003] The embodiments of the present application provide a vehicle computer OTA upgrade test method, device, computer equipment and storage medium, aiming to solve the problem of low automation level in the vehicle computer upgrade test process.

[0004] In the first aspect, an embodiment of the present application provides a vehicle computer OTA upgrade test method, which is applied to a vehicle computer upgrade test system, wherein the vehicle computer upgrade test system includes a server, a serial port communicator and a CAN bus analyzer, the serial port communicator respectively communicates with the vehicle computer to be upgraded, the server and the CAN bus analyzer, and the vehicle computer to be upgraded is also communicated with the CAN bus analyzer and the server, and is characterized in that the method includes the server receiving upgrade request information from the vehicle computer to be upgraded, writing an automated test script according to a preset Python development library and a third-party test library and sending it to the serial port communicator; the serial port communicator performs version check on the vehicle computer to be upgraded and obtains version information according to the automated test script; the serial port communicator performs OTA upgrade startup processing on the vehicle computer to be upgraded, and the automated test script is used to record upgrade process data for the vehicle computer to be upgraded; the serial port communicator sends the CAN signal corresponding to the version information to the CAN bus analyzer to execute the upgrade process, and obtains the vehicle computer status information in real time and outputs the vehicle computer upgrade log.

[0005] On the second aspect, the embodiment of the present application also provides a vehicle computer OTA upgrade test device, which includes a script writing unit, which is used for the server to receive upgrade request information from the vehicle computer to be upgraded, and write an automated test script according to the preset Python development library and the third-party test library and send it to the serial port communicator; a version checking unit, which is used for the serial port communicator to perform version checking on the vehicle computer to be upgraded and obtain version information according to the automated test script; an upgrade start unit, which is used for the serial port communicator to perform OTA upgrade start processing on the vehicle computer to be upgraded, and the automated test script is used to record the upgrade process data of the vehicle computer to be upgraded; a signal control unit, which is used for the serial port communicator to send the CAN signal corresponding to the version information to the CAN bus analyzer to execute the upgrade process, and obtain the vehicle computer status information in real time and output the vehicle computer upgrade log.

[0006] In a third aspect, an embodiment of the present application further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the above method is implemented when the processor executes the computer program.

[0007] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program includes program instructions, which can implement the above method when executed by a processor.

[0008] The embodiments of the present application provide a vehicle computer OTA upgrade test method, device, computer equipment and storage medium. The method includes a server receiving upgrade request information from the vehicle computer to be upgraded, writing an automated test script according to the preset Python development library and the third-party test library and sending it to the serial port communicator; the serial port communicator performs version check on the vehicle computer to be upgraded and obtains version information according to the automated test script; the serial port communicator performs OTA upgrade startup processing on the vehicle computer to be upgraded, and the automated test script is used to record the upgrade process data of the vehicle computer to be upgraded; the serial port communicator sends the CAN signal corresponding to the version information to the CAN bus analyzer to execute the upgrade process, and obtains the vehicle computer status information in real time and outputs the vehicle computer upgrade log. In general, this vehicle computer OTA upgrade test method improves the efficiency, accuracy and security of vehicle computer OTA upgrade testing through automation, real-time monitoring and error handling mechanisms, and has significant technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0010] Figure 1A flow chart of a vehicle machine OTA upgrade test method provided in an embodiment of the present application;

[0011] Figure 2 A schematic diagram of a sub-process of a vehicle machine OTA upgrade test method provided in an embodiment of the present application;

[0012] Figure 3 A schematic diagram of another sub-process of the vehicle machine OTA upgrade test method provided in an embodiment of the present application;

[0013] Figure 4 A schematic block diagram of a vehicle machine OTA upgrade test device provided in an embodiment of the present application;

[0014] Figure 5 A schematic block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0015] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0016] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0017] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0018] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0019] The embodiments of the present application provide a vehicle computer OTA upgrade test method, device, computer equipment and storage medium.

[0020] The executor of the vehicle computer OTA upgrade test method may be the vehicle computer OTA upgrade test device provided in the embodiment of the present application, wherein the vehicle computer OTA upgrade test device may be implemented in hardware or software, and the device is configured in a vehicle computer upgrade test system, wherein the vehicle computer upgrade test system includes a server, a serial port communicator and a CAN bus analyzer, wherein the serial port communicator is respectively communicated with the vehicle computer to be upgraded, the server and the CAN bus analyzer, and the vehicle computer to be upgraded is also communicated with the CAN bus analyzer and the server, and the vehicle computer upgrade test system applies the above-mentioned vehicle computer OTA upgrade test method, and executes the above-mentioned method through the unit module configured in the above-mentioned device, wherein the server may be a computer device, and the server and the serial port communicator may be implemented as follows: Figure 5 Computer equipment shown.

[0021] The vehicle OTA upgrade test method is applied to Figure 5 In the computer device 500.

[0022] Figure 1 It is a flow chart of the vehicle machine OTA upgrade test method provided in an embodiment of the present application, and the method includes the following steps S110-S140.

[0023] S110: The server receives upgrade request information from the vehicle computer to be upgraded, writes an automated test script according to a preset Python development library and a third-party test library, and sends the script to the serial port communicator.

[0024] S120. The serial port communicator performs version check on the vehicle computer to be upgraded according to the automated test script and obtains version information.

[0025] S130, the serial port communicator performs OTA upgrade startup processing on the vehicle computer to be upgraded, and the automated test script is used to record the upgrade process data of the vehicle computer to be upgraded.

[0026] S140, the serial port communicator sends the CAN signal corresponding to the version information to the CAN bus analyzer to execute the upgrade process, and obtains the vehicle computer status information in real time and outputs the vehicle computer upgrade log.

[0027] Specifically, OTA (Over-The-Air, wireless network remote update) refers to the process of remotely updating software or firmware through a wireless network. In the automotive industry, OTA upgrade refers to the software update that a vehicle receives and installs in a new generation of in-vehicle infotainment system or intelligent driving assistance system through a wireless communication network. This upgrade method allows automakers to provide functional improvements, performance optimizations, and security patches for in-service vehicles without requiring car owners to go to dealers for physical upgrades. The server is configured with an interface for receiving upgrade requests, which can receive upgrade request information sent by the vehicle computer. In this technical solution, the method is applied to a vehicle computer upgrade test system, which includes a server, a serial port communicator, and a CAN bus analyzer, and the serial port communicator is respectively connected to the vehicle computer to be upgraded, the server, and the CAN bus analyzer. The vehicle computer to be upgraded is also connected to the CAN bus analyzer and the server. When requesting an upgrade, the vehicle computer will send its current version information, hardware information, and a list of files required for the upgrade. The server parses the received request information and extracts key data, such as the vehicle computer model, version number, etc. According to the vehicle model and version number, the server queries the preset Python development library and third-party test library to find the corresponding automated test script. The server sends the automated test script to the serial port communicator for use in subsequent steps. The serial port communicator performs version check on the vehicle to be upgraded and obtains version information according to the automated test script: the serial port communicator connects to the vehicle to be upgraded through the initialized serial port and sends a version check command. After receiving the command, the vehicle will return its current system version information. The serial port communicator sends the received version information back to the server for subsequent processing. The serial port communicator performs OTA upgrade startup processing on the vehicle to be upgraded: the serial port communicator sends the OTA upgrade startup command to the vehicle according to the automated test script. After receiving the startup command, the vehicle will enter the OTA upgrade process. The automated test script is used to record various status information of the vehicle during the upgrade process, such as upgrade progress, error code, etc. The serial port communicator sends the CAN signal corresponding to the version information to the CAN bus analyzer to execute the upgrade process, obtain the vehicle computer status information in real time, and output the vehicle computer upgrade log: the serial port communicator converts the vehicle computer version information into a CAN signal and sends it to the CAN bus analyzer. After receiving the CAN signal, the CAN bus analyzer will execute the corresponding upgrade process according to the instructions in the signal. During the upgrade process, the serial port communicator will obtain the vehicle computer status information in real time, such as the current upgrade progress, whether there is an error, etc., and output the vehicle computer upgrade log. The output log information includes key events, status changes, and possible error information during the upgrade process for subsequent analysis and processing. The above steps together constitute the core process of the vehicle computer OTA upgrade test method. Through automated test scripts and serial port communicators, automated control and monitoring of the vehicle computer OTA upgrade process are achieved.In the whole process, the automated test script written based on the Python language environment plays a key role. It is not only used to control the communication between the serial port and the CAN device, but also used to process the logical judgment and data recording in the upgrade process. Through the automated script, the efficiency and accuracy of the upgrade test can be greatly improved, human errors can be reduced, and the status of the vehicle computer can be monitored in real time during the upgrade process to ensure the smooth progress of the upgrade process.

[0028] In summary, the automation level of upgrade testing has been greatly improved by using automated test scripts written using Python development libraries and third-party test libraries. This is mainly reflected in the reduction of manual operations and the risk of operational errors. The automated script can quickly perform tasks such as version checking, OTA upgrade startup, and upgrade process data recording, which improves the efficiency of upgrade testing. During the upgrade process, by obtaining the vehicle computer status information in real time and outputting the vehicle computer upgrade log, you can keep abreast of the upgrade progress and vehicle computer status, which facilitates timely detection and handling of problems. The automated test script used in this method can be customized according to different vehicle computer models and versions, and has good flexibility and scalability.

[0029] When the OTA upgrade fails, you can use Python to call DingTalk to send error information and notify relevant personnel in time, so as to quickly locate and solve the problem. Through the version rollback command, you can quickly roll back the car computer to the previous version when the upgrade fails, ensuring the normal operation of the car computer.

[0030] In general, this vehicle OTA upgrade test method improves the efficiency, accuracy and safety of vehicle OTA upgrade testing through automation, real-time monitoring and error handling mechanisms, and has significant technical effects.

[0031] In a more specific embodiment, Figure 2 As shown, executing method S120 further specifically includes executing steps S121-S123.

[0032] S121. Determine whether the system program of the vehicle computer to be upgraded is the latest version.

[0033] S122: If the system program of the vehicle computer to be upgraded is the latest version, a designated serial port in the serial port communicator is called to send a version rollback command to the vehicle computer.

[0034] S123: Update the version information of the vehicle computer to be upgraded and output the updated version information.

[0035] Specifically, the designated serial port in the serial port communicator is used to communicate with the vehicle computer to be upgraded, and the system program version information of the vehicle computer is read. The read version information is compared with the latest version to determine whether the system program of the vehicle computer is the latest version. If it is determined that the system program of the vehicle computer to be upgraded is the latest version, it is not necessary to upgrade, but to call the designated serial port in the serial port communicator to send a version rollback command to the vehicle computer. The purpose of the version rollback command is to roll back the vehicle computer system program to the previous version for the next OTA upgrade test. Update the version information of the vehicle computer to be upgraded and output the updated version information. If the system program of the vehicle computer is not the latest version, or the version rollback is performed in step S122, the version information of the vehicle computer to be upgraded needs to be updated next. The updated version information may include recording the current version information of the vehicle computer, the upgraded version information, or other data related to version management. The updated version information can be output by printing to a console, recording to a log file, or sending to a remote server, etc., so as to track and manage the version status of the vehicle computer. This specific embodiment demonstrates the specific steps of how to determine the vehicle computer version, perform version rollback, and update and output version information during the vehicle computer OTA upgrade test process. These steps ensure the smooth progress of the vehicle computer system version management and upgrade process.

[0036] In a more specific embodiment, Figure 3 As shown, executing method S130 further specifically includes executing steps S131-S132.

[0037] S131. Determine whether the vehicle computer to be upgraded meets the preset OTA upgrade conditions.

[0038] S132: If the vehicle computer to be upgraded meets the preset OTA upgrade conditions, the designated serial port in the serial port communicator is called to send an OTA upgrade command to the vehicle computer for OTA upgrade.

[0039] Specifically, check whether the vehicle computer meets various conditions for OTA upgrade, which may include but are not limited to: whether the system status of the vehicle computer is stable, whether the vehicle computer is connected to a valid power supply, whether the network connection of the vehicle computer is normal, whether the vehicle computer has enough storage space to store the upgrade package, whether the current version of the vehicle computer supports OTA upgrade, whether the necessary permissions are required for the upgrade operation, and communicate with the vehicle computer through the specified serial port in the serial port communicator to obtain the status information of the vehicle computer for judgment. If the vehicle computer to be upgraded meets the preset OTA upgrade conditions, the specified serial port in the serial port communicator is called to send an OTA upgrade command to the vehicle computer. The OTA upgrade command may be a specific instruction that tells the vehicle computer to start downloading the upgrade package and execute the upgrade process. After sending the command, the vehicle computer should respond to the command and start the upgrade process. At this time, it is necessary to monitor the feedback of the vehicle computer to ensure that the upgrade process proceeds smoothly. Before sending the OTA upgrade command, it is necessary to ensure the security of the vehicle computer system to avoid security vulnerabilities caused by the upgrade. During the upgrade process, it is necessary to monitor the stability of the vehicle computer to ensure that the vehicle operates normally during the upgrade. The upgrade process needs to have a redundant mechanism, such as being able to automatically fall back to the previous version when the upgrade fails to ensure the reliability of the vehicle system. During the upgrade process, detailed log information needs to be recorded so that it can be analyzed and tracked when problems occur. Through these steps, it can be ensured that the OTA upgrade process of the vehicle computer meets the preset conditions and can be carried out safely, stably and reliably.

[0040] In a more specific embodiment, after executing method S140, it further specifically includes executing steps S141-S143.

[0041] S141. The serial port communicator obtains an upgrade keyword sent by the vehicle computer to be upgraded, and determines whether the OTA upgrade process is completed according to the upgrade keyword.

[0042] S142: If the OTA upgrade process is completed, the specified serial port in the serial port communicator is called to send a version rollback command to the vehicle computer to execute the step of determining whether the system program of the vehicle computer to be upgraded is the latest version.

[0043] S143. If the OTA upgrade process fails, the serial port communicator is called to send an upgrade process error message.

[0044] Specifically, during the OTA upgrade process of the vehicle computer, upgrade keywords or status information will be sent regularly to indicate the current upgrade progress or status. The upgrade keyword sent by the vehicle computer is received through the designated serial port in the serial communicator. According to the received upgrade keyword, it is determined whether the OTA upgrade process has been completed. If the OTA upgrade process is completed, the subsequent steps are executed, such as calling the designated serial port in the serial communicator to send a version rollback command to the vehicle computer to execute step S121 to determine whether the system program of the vehicle computer to be upgraded is the latest version. If the OTA upgrade process fails, it is necessary to call the serial communicator to send the upgrade process error information. The error information may include information such as the reason for the upgrade failure, the time point of the failure, and the vehicle computer status at the time of failure, so that technicians can troubleshoot and solve problems. These steps ensure that the upgrade can be judged in time during the OTA upgrade process. Whether it is completed, and the error information can be fed back in time when the upgrade fails, thereby improving the efficiency and reliability of the vehicle computer OTA upgrade test. In this way, the system version of the vehicle computer can be effectively managed to ensure the stability and security of the vehicle computer system.

[0045] In another more specific embodiment, after executing method S140, it further specifically includes executing steps S1401-S1403.

[0046] S1401. The server collects and analyzes the vehicle computer upgrade log to generate a corresponding test report. The vehicle computer upgrade log includes a serial port communication log, a CAN communication log, and vehicle computer status change information.

[0047] S1402. Verify whether the vehicle computer OTA upgrade test results meet expectations based on the test report.

[0048] S1403: If the vehicle computer OTA upgrade test result meets expectations, the vehicle computer is subjected to continuous iterative OTA upgrade test.

[0049] Specifically, during the OTA upgrade process of the vehicle computer, log files will be generated. These log files record key information in the upgrade process, such as serial communication logs, CAN communication logs, and vehicle computer status change information. Collect these log files and use professional analysis tools or write scripts for analysis to extract useful information. Based on the analysis results, a detailed test report is generated. The report should include key events, log records, possible problems, and recommended solutions during the upgrade process. By reviewing the generated test report, verify whether the results of the OTA upgrade test meet the established expected goals. Check whether the upgrade is successful, whether there are any faults or abnormal conditions, and whether the performance of the vehicle computer after the upgrade meets the requirements. If the test results do not meet expectations, it is necessary to conduct an in-depth analysis of the test report to determine the problem and formulate corresponding repair measures. If the OTA upgrade test results meet expectations, it indicates that the current upgrade process and version are stable, and subsequent testing can continue. Continuous iterative testing may include upgrade testing of new versions, performance testing of upgraded vehicle computers, and safety testing. Through continuous iterative testing, it can be ensured that the OTA upgrade process of vehicle computers is continuously optimized and improved to meet the ever-changing technology and market needs. These steps ensure the integrity and continuity of the vehicle computer OTA upgrade test, which helps to improve the stability of the vehicle computer system and user experience. In this way, the version update of the vehicle computer can be effectively managed to ensure the performance and safety of the vehicle.

[0050] Figure 4 It is a schematic block diagram of a vehicle OTA upgrade test device provided in an embodiment of the present application. As shown in the figure, corresponding to the above vehicle OTA upgrade test method, the present application also provides a vehicle OTA upgrade test device 100. The vehicle OTA upgrade test device includes a unit for executing the above vehicle OTA upgrade test method. The vehicle OTA upgrade test device 100, wherein the vehicle OTA upgrade test device can be implemented in hardware or software, and the device is configured in a vehicle upgrade test system. The vehicle upgrade test system includes a server, a serial port communicator and a CAN bus analyzer, wherein the serial port communicator is respectively communicated with the vehicle to be upgraded, the server and the CAN bus analyzer, and the vehicle to be upgraded is also communicated with the CAN bus analyzer and the server. The vehicle upgrade test system applies the above vehicle OTA upgrade test method and executes the above method through the unit module configured in the above device, wherein the server can be a computer device. Specifically, please refer to Figure 4The vehicle computer OTA upgrade test device 100 includes a script writing unit 110, which is used for the server to receive upgrade request information from the vehicle computer to be upgraded, and write an automated test script according to the preset Python development library and the third-party test library and send it to the serial port communicator; a version check unit 120, which is used for the serial port communicator to check the version of the vehicle computer to be upgraded and obtain version information according to the automated test script; an upgrade start unit 130, which is used for the serial port communicator to perform OTA upgrade startup processing on the vehicle computer to be upgraded, and the automated test script is used to record the upgrade process data of the vehicle computer to be upgraded; a signal control unit 140, which is used for the serial port communicator to send the CAN signal corresponding to the version information to the CAN bus analyzer to execute the upgrade process, and obtain the vehicle computer status information in real time and output the vehicle computer upgrade log. The device further includes a first judgment unit, used to judge whether the system program of the vehicle computer to be upgraded is the latest version; a first serial port calling unit, used to call the specified serial port in the serial port communicator to send a version rollback command to the vehicle computer if the system program of the vehicle computer to be upgraded is the latest version; an update information output unit, used to update the version information of the vehicle computer to be upgraded and output the updated version information; a second judgment unit, used to judge whether the vehicle computer to be upgraded meets the preset OTA upgrade conditions; a second serial port calling unit, used to call the specified serial port in the serial port communicator to send an OTA upgrade command to the vehicle computer for OTA upgrade if the vehicle computer to be upgraded meets the preset OTA upgrade conditions.

[0051] It should be noted that technical personnel in the relevant field can clearly understand that the specific implementation process of the above-mentioned vehicle OTA upgrade test device and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and conciseness of the description, it will not be repeated here.

[0052] The above-mentioned vehicle machine OTA upgrade test device can be implemented in the form of a computer program. The computer program can be used in Figure 5 Runs on the computer device shown.

[0053] See also Figure 5 , which shows a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 executes the above method through a unit module configured in the device, and the server can be an independent server or a server cluster composed of multiple servers.

[0054] The computer device 500 includes a processor 502 , a memory, and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .

[0055] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, and when the program instructions are executed, the processor 502 can execute a vehicle machine OTA upgrade test method.

[0056] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .

[0057] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a vehicle OTA upgrade test method.

[0058] The network interface 505 is used to communicate with other devices over the network. Figure 5 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0059] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0060] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0061] Therefore, the present application also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the following steps:

[0062] The server receives upgrade request information from the vehicle computer to be upgraded, writes an automated test script based on the preset Python development library and third-party test library, and sends it to the serial port communicator; the serial port communicator performs version check on the vehicle computer to be upgraded and obtains version information according to the automated test script; the serial port communicator performs OTA upgrade startup processing on the vehicle computer to be upgraded, and the automated test script is used to record the upgrade process data of the vehicle computer to be upgraded; the serial port communicator sends the CAN signal corresponding to the version information to the CAN bus analyzer to execute the upgrade process, and obtains the vehicle computer status information in real time and outputs the vehicle computer upgrade log.

[0063] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.

[0064] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0065] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0066] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present application can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0067] 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 storage medium. Based on this understanding, the technical solution 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, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.

[0068] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A vehicle computer OTA upgrade test method, the method is applied to a vehicle computer upgrade test system, the vehicle computer upgrade test system comprises a server, a serial port communicator and a CAN bus analyzer, the serial port communicator is respectively connected to the vehicle computer to be upgraded, the server and the CAN bus analyzer, the vehicle computer to be upgraded is also connected to the CAN bus analyzer and the server, characterized in that: The method comprises: The server receives upgrade request information from the vehicle computer to be upgraded, writes an automated test script according to a preset Python development library and a third-party test library, and sends the script to the serial port communicator; The serial port communicator performs a version check on the vehicle computer to be upgraded according to the automated test script and obtains version information; The serial port communicator performs OTA upgrade startup processing on the vehicle computer to be upgraded, and the automated test script is used to record upgrade process data of the vehicle computer to be upgraded; The serial port communicator sends the CAN signal corresponding to the version information to the CAN bus analyzer to execute the upgrade process, and obtains the vehicle computer status information in real time and outputs the vehicle computer upgrade log.

2. The vehicle computer OTA upgrade test method according to claim 1 is characterized in that: The serial port communicator performs version checking on the vehicle computer to be upgraded according to the automated test script and obtains version information, including: Determine whether the system program of the vehicle computer to be upgraded is the latest version; If the system program of the vehicle computer to be upgraded is the latest version, calling the designated serial port in the serial port communicator to send a version rollback command to the vehicle computer; The version information of the vehicle computer to be upgraded is updated and the updated version information is output.

3. The vehicle computer OTA upgrade test method according to claim 1 is characterized in that: The serial port communicator performs OTA upgrade startup processing on the vehicle computer to be upgraded, including: Determine whether the vehicle computer to be upgraded meets the preset OTA upgrade conditions; If the vehicle computer to be upgraded meets the preset OTA upgrade conditions, the designated serial port in the serial port communicator is called to send an OTA upgrade command to the vehicle computer for OTA upgrade.

4. The vehicle computer OTA upgrade test method according to claim 2 is characterized in that: After the serial port communicator sends the CAN signal corresponding to the version information to the CAN bus analyzer to execute the upgrade process, the method includes: The serial port communicator obtains an upgrade keyword sent by the vehicle computer to be upgraded, and determines whether the OTA upgrade process is completed according to the upgrade keyword; If the OTA upgrade process is completed, a version rollback command is sent to the vehicle computer through a designated serial port in the serial port communicator to execute the step of determining whether the system program of the vehicle computer to be upgraded is the latest version; If the OTA upgrade process fails, the upgrade process error information is sent by calling the serial port communicator.

5. The vehicle computer OTA upgrade test method according to claim 1 is characterized in that: After obtaining the vehicle computer status information in real time and outputting the vehicle computer upgrade log, the method includes: The server collects and analyzes the vehicle computer upgrade log to generate a corresponding test report, wherein the vehicle computer upgrade log includes a serial port communication log, a CAN communication log, and vehicle computer status change information; Verify whether the vehicle machine OTA upgrade test results meet expectations based on the test report; If the vehicle computer OTA upgrade test result meets expectations, the vehicle computer will be subjected to continuous iterative OTA upgrade testing.

6. A vehicle computer OTA upgrade test device, the device is configured in a vehicle computer upgrade test system, the vehicle computer upgrade test system includes a server, a serial port communicator and a CAN bus analyzer, the serial port communicator is respectively connected to the vehicle computer to be upgraded, the server and the CAN bus analyzer, the vehicle computer to be upgraded is also connected to the CAN bus analyzer and the server, the vehicle computer upgrade test system applies the vehicle computer OTA upgrade test method according to any one of claims 1 to 5, characterized in that: The vehicle OTA upgrade test device includes a script writing unit configured in a server, a version checking unit configured in a serial port communicator, an upgrade starting unit and a signal control unit; A script writing unit, used for the server to receive upgrade request information from the vehicle computer to be upgraded, write an automated test script according to a preset Python development library and a third-party test library, and send the script to the serial port communicator; A version checking unit, used for the serial port communicator to perform version checking on the vehicle computer to be upgraded according to the automated test script and obtain version information; An upgrade startup unit is used for the serial port communicator to perform OTA upgrade startup processing on the vehicle computer to be upgraded, and the automated test script is used to record upgrade process data of the vehicle computer to be upgraded; A signal control unit is used for the serial port communicator to send the CAN signal corresponding to the version information to the CAN bus analyzer to execute the upgrade process, and to obtain the vehicle computer status information in real time and output the vehicle computer upgrade log.

7. The vehicle OTA upgrade test device according to claim 6, characterized in that: The device comprises: A first judging unit, used to judge whether the system program of the vehicle computer to be upgraded is the latest version; A first serial port calling unit is used to call a designated serial port in the serial port communicator to send a version rollback command to the vehicle computer if the system program of the vehicle computer to be upgraded is the latest version; The update information output unit is used to update the version information of the vehicle computer to be upgraded and output the updated version information.

8. The vehicle OTA upgrade test device according to claim 6, characterized in that: The device comprises: A second judgment unit is used to judge whether the vehicle computer to be upgraded meets the preset OTA upgrade conditions; The second serial port calling unit is used to call the designated serial port in the serial port communicator to send an OTA upgrade command to the vehicle computer for OTA upgrade if the vehicle computer to be upgraded meets the preset OTA upgrade conditions.

9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 5 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method according to any one of claims 1 to 5 can be implemented.