Automatic upgrading method and device for vehicle electronic controller and electronic equipment
By implementing an automatic upgrade method on the vehicle electronic controller, including obtaining and transmitting upgrade packages, selecting appropriate upgrade instructions and monitoring progress, the problem of low upgrade efficiency of vehicle electronic controllers is solved, and efficient and reliable automatic upgrade is achieved.
Patent Information
- Application Number
- CN202410749902.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2025-03-11
AI Technical Summary
How to improve the upgrade efficiency of vehicle electronic controllers (ECUs) and meet the requirements of rapid updates and iterations of modern automotive software.
It provides an automatic upgrade method for vehicle electronic controllers, obtaining upgrade packages through the upper computer, confirming the connection status, transmitting upgrade packages, and selecting different upgrade instructions based on the upgrade package information to upgrade. The method includes obtaining pre- and post-upgrade software attribute information to determine the upgrade success, and monitoring progress in real time and restarting the controller during the upgrade process.
It improves the upgrade efficiency of vehicle electronic controllers, ensures automation and reliability of the upgrade process, and adapts to the needs of rapid updates of modern automotive software.
Smart Images

Figure CN119597311A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle networking technology, and in particular to a method, device, electronic equipment, computer storage medium and computer program product for automatic upgrading of a vehicle electronic controller. Background Art
[0002] With the rapid development of the automotive industry, the proportion of vehicle electronic controllers (Electronic Control Unit, ECU) in the whole vehicle is increasing. Correspondingly, there are more and more ECUs in the car, and their functions are becoming more and more powerful. At present, the frequency of automobile software updates is relatively high. In order to ensure the efficient operation of in-car electronic products, the ECUs in in-car electronic products need to be upgraded in a timely manner.
[0003] Therefore, in order to meet the requirements of rapid updates and iterations of modern automotive software, how to improve the efficiency of vehicle ECU upgrades has become a technical problem that needs to be solved. Summary of the invention
[0004] The present invention is completed to solve the above-mentioned problem, and its purpose is to provide a vehicle electronic controller automatic upgrade method, device, electronic equipment, computer storage medium and computer program product to improve the efficiency of vehicle electronic controller upgrade.
[0005] According to one aspect of the present invention, there is provided a method for automatically upgrading a vehicle electronic controller, the method being used in a host computer connected to the vehicle electronic controller, the method comprising: obtaining an upgrade package of the vehicle electronic controller;
[0006] Confirm whether the host computer is normally connected to the vehicle electronic controller; if the host computer is normally connected to the vehicle electronic controller, transmit the upgrade package to the vehicle electronic controller; and obtain upgrade package information, and select different upgrade instructions to upgrade the vehicle electronic controller based on the upgrade package information.
[0007] Preferably, upgrade package information is obtained, and different upgrade instructions are selected based on the upgrade package information to upgrade the vehicle electronic controller. The upgrade package information includes upgrade package size information. If the upgrade package size is greater than a preset threshold, a double-sided upgrade instruction is used to upgrade the vehicle electronic controller. If the upgrade package size is less than or equal to the preset threshold, a single-sided upgrade instruction is used to upgrade the vehicle electronic controller.
[0008] Preferably, the vehicle electronic controller automatic upgrade method further includes: before the vehicle electronic controller is upgraded, obtaining the pre-upgrade software attribute information of the vehicle electronic controller; after completing the upgrade of the vehicle electronic controller, obtaining the post-upgrade software attribute information of the vehicle electronic controller; and comparing the pre-upgrade software attribute information and the post-upgrade software attribute information to determine whether the upgrade is successful.
[0009] Preferably, the vehicle electronic controller automatic upgrade method further comprises: during the process of upgrading the vehicle electronic controller, real-time monitoring of the upgrade progress of the vehicle electronic controller.
[0010] Preferably, the vehicle electronic controller automatic upgrade method further comprises: after the vehicle electronic controller is upgraded, detecting whether the vehicle electronic controller automatically restarts, and if the vehicle electronic controller does not automatically restart, restarting the vehicle electronic controller.
[0011] Preferably, the vehicle electronic controller is restarted by controlling the power supply to be powered on and off again.
[0012] Preferably, the host computer is connected to the vehicle electronic controller via Ethernet, and the connection protocol adopts SSH protocol.
[0013] According to another aspect of the present invention, there is provided an automatic upgrade device for a vehicle electronic controller, the device being connected to the vehicle electronic controller and comprising: an upgrade package acquisition unit for acquiring an upgrade package for the vehicle electronic controller; a confirmation unit for confirming whether a host computer is normally connected to the vehicle electronic controller; a transmission unit for transmitting the upgrade package to the vehicle electronic controller when the host computer is normally connected to the vehicle electronic controller; and an upgrade unit for acquiring upgrade package information and selecting different upgrade instructions to upgrade the vehicle electronic controller based on the upgrade package information.
[0014] According to another aspect of the present invention, an electronic device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded by the processor and executes the method described in the above aspect.
[0015] According to another aspect of the present invention, a computer storage medium is provided, wherein at least one instruction or at least one program is stored in the storage medium, and the at least one instruction or the at least one program is loaded by a processor and executes the method according to the above aspect of claim 1.
[0016] According to another aspect of the present invention, a computer program product is provided, comprising at least one instruction or at least one program segment, wherein the at least one instruction or the at least one program segment is loaded by a processor and executes the method according to the above aspect of claim 1 . BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a flow chart of a method for automatically upgrading a vehicle electronic controller provided in an embodiment of the present invention.
[0018] Figure 2 It is a flowchart of an example of upgrading a vehicle electronic controller by selecting different upgrade instructions based on upgrade package information in an embodiment of the present invention.
[0019] Figure 3 It is a structural block diagram of a vehicle electronic controller automatic upgrade device provided by an embodiment of the present invention.
[0020] Figure 4 It is a structural block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0021] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0022] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present invention, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined as such herein.
[0023] The present invention provides a vehicle electronic controller automatic upgrade method, device, electronic device, computer storage medium and computer program product to improve the efficiency of vehicle ECU upgrade. The method and the device are based on the same concept. Since the method and the device solve the problem in a similar principle, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.
[0024] Figure 1It is a flow chart of the automatic upgrade method of the vehicle electronic controller provided in the embodiment of the present invention. The automatic upgrade method of the vehicle electronic controller provided in the embodiment of the present invention is used for a host computer connected to the vehicle electronic controller. This specification provides method operation steps such as the embodiments or flow charts, but more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiments is only one way of executing the steps among many orders, and does not represent the only order of execution. When the actual system or server product is executed, it can be executed in the order of the methods shown in the embodiments or the drawings or in parallel (for example, in a parallel processor or multi-threaded processing environment).
[0025] S101: Obtain an upgrade package for the vehicle electronic controller.
[0026] It should be noted that the host computer in the embodiment of the present invention may obtain the upgrade package of the vehicle electronic controller from the server, or may obtain the upgrade package of the vehicle electronic controller manually.
[0027] S102: Confirm whether the host computer is normally connected to the vehicle electronic controller.
[0028] In this step, it is detected whether the host computer is normally connected to the vehicle electronic controller to be upgraded, and if not, an error is reported. In addition, the host computer and the vehicle electronic controller can be connected via Ethernet, for example.
[0029] S103: Transmit the upgrade package to the vehicle electronic controller.
[0030] In this step, the upgrade package in the host computer is transmitted to the vehicle electronic controller to be upgraded. Here, for example, the upgrade package can be transmitted to the specified path of the vehicle electronic controller to be upgraded through the Secure Shell (SSH) protocol.
[0031] S104: Acquire upgrade package information, and select different upgrade instructions based on the upgrade package information to upgrade the vehicle electronic controller.
[0032] This step may further include a series of sub-steps, Figure 2 A schematic diagram of an example of step S104 is shown below. Figure 2 A series of sub-steps of step S104 are described.
[0033] S1041: Before the vehicle electronic controller is upgraded, obtaining software attribute information of the vehicle electronic controller before the upgrade.
[0034] The pre-upgrade software attribute information includes the version number information of the pre-upgrade software of the vehicle electronic controller.
[0035] S1042: Obtain upgrade package information, and determine whether the size of the upgrade package is greater than a preset threshold based on the upgrade package information.
[0036] The upgrade package information includes the upgrade package size information. Based on the upgrade package information, it is determined whether the upgrade package size is greater than a preset threshold. If the upgrade package size is greater than the preset threshold, the process proceeds to step S1043. If the upgrade package size is less than or equal to the preset threshold, the process proceeds to step S1044. The preset threshold can be set to 300M, for example.
[0037] S1043: Use a double-sided upgrade instruction to upgrade the vehicle electronic controller.
[0038] S1044: Use a single-side upgrade instruction to upgrade the vehicle electronic controller.
[0039] The host computer can store double-sided upgrade instructions and single-sided upgrade instructions in advance, respectively, and can determine whether the upgrade package size is greater than a preset threshold based on the upgrade package information to call different upgrade instructions for upgrading. When the upgrade package size is small, the speed of upgrading using the single-sided upgrade instruction is faster and more efficient. Therefore, selecting different upgrade instructions based on the upgrade package information to upgrade the vehicle electronic controller can improve the efficiency of upgrading the vehicle electronic controller.
[0040] S1045: During the process of upgrading the vehicle electronic controller, monitor the upgrading progress of the vehicle electronic controller in real time.
[0041] S1046: After the upgrade is completed, check whether the vehicle electronic controller automatically restarts. If not, restart the vehicle electronic controller.
[0042] After the vehicle electronic controller upgrade is completed through monitoring in step S1045, it is detected whether the vehicle electronic controller automatically restarts. Under normal circumstances, the vehicle electronic controller automatically restarts after the upgrade is completed. If the vehicle electronic controller is not detected to automatically restart, the vehicle electronic controller is restarted by controlling the power supply to power on and off again.
[0043] S1047: After completing the upgrade of the vehicle electronic controller, obtain the upgraded software attribute information of the vehicle electronic controller.
[0044] Likewise, the upgraded software attribute information includes the version number information of the upgraded software of the vehicle electronic controller.
[0045] S1048: Compare the software attribute information before the upgrade and the software attribute information after the upgrade to determine whether the upgrade is successful.
[0046] If the software attribute information before the upgrade is inconsistent with the software attribute information after the upgrade, it means that the upgrade is successful. If the software attribute information before the upgrade is consistent with the software attribute information after the upgrade, it means that the upgrade is unsuccessful. When the upgrade is unsuccessful, a warning message can be issued.
[0047] The example described here includes steps S1041, S1045, S1046, S1047, and S1048, but the present invention is not limited thereto and may not include the above steps or may only include some of the above steps.
[0048] Figure 3 The structure block diagram of the automatic upgrade device for a vehicle electronic controller provided by an embodiment of the present invention is shown, and the automatic upgrade device for a vehicle electronic controller 200 is connected to the vehicle electronic controller. Figure 3 As shown, the vehicle electronic controller automatic upgrading device 200 includes: an upgrading package acquiring unit 201 , a confirming unit 202 , a transmitting unit 203 and an upgrading unit 204 .
[0049] Among them, the upgrade package acquisition unit 201 is used to obtain the upgrade package of the vehicle electronic controller. The confirmation unit 202 is used to confirm whether the host computer is normally connected to the vehicle electronic controller. The transmission unit 203 is used to transmit the upgrade package to the vehicle electronic controller. The upgrade unit 204 is used to obtain the upgrade package information and select different upgrade instructions to upgrade the vehicle electronic controller based on the upgrade package information.
[0050] Figure 4 is a structural block diagram of an electronic device provided by an embodiment of the present invention. Figure 4 As shown, the present invention also provides an electronic device 300, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded by the processor and executes the method described in the above embodiment.
[0051] The present invention also provides a computer storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or at least one program is loaded by a processor to execute the method described in the above embodiment.
[0052] The present invention also provides a computer program product, comprising at least one instruction or at least one program segment, characterized in that the at least one instruction or the at least one program segment is loaded by a processor and executes the method described in the above embodiment.
[0053] Optionally, in this embodiment, the storage medium may be located in at least one of the multiple network servers of the computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0054] Those skilled in the art should be able to appreciate that the modules, units and method 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 electronic hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in electronic hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may 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 the present invention.
[0055] Although the present invention has been described with reference to the current specific embodiments, those skilled in the art should recognize that the scope of the invention involved in the present invention is not limited to the technical solutions formed by the specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present invention (but not limited to) by each other.
Claims
1. A method for automatically upgrading a vehicle electronic controller, characterized in that: The method is used for a host computer connected to a vehicle electronic controller, and the method comprises: Get the upgrade package for the vehicle's electronic controller; Confirm whether the host computer is properly connected to the vehicle electronic controller; When the host computer is normally connected to the vehicle electronic controller, the upgrade package is transmitted to the vehicle electronic controller; and Acquire upgrade package information, and select different upgrade instructions based on the upgrade package information to upgrade the vehicle electronic controller.
2. The vehicle electronic controller automatic upgrade method according to claim 1, characterized in that: Acquire upgrade package information, and select different upgrade instructions based on the upgrade package information to upgrade the vehicle electronic controller. The upgrade package information includes upgrade package size information. If the upgrade package size is greater than a preset threshold, a double-sided upgrade instruction is used to upgrade the vehicle electronic controller. If the upgrade package size is less than or equal to the preset threshold, a single-sided upgrade instruction is used to upgrade the vehicle electronic controller.
3. The vehicle electronic controller automatic upgrade method according to claim 1 or 2, characterized in that: Further including: Before the vehicle electronic controller is upgraded, obtaining software attribute information of the vehicle electronic controller before the upgrade; After completing the upgrade of the vehicle electronic controller, obtaining upgraded software attribute information of the vehicle electronic controller; and The pre-upgrade software attribute information and the post-upgrade software attribute information are compared to determine whether the upgrade is successful.
4. The vehicle electronic controller automatic upgrade method according to claim 1 or 2, characterized in that: Further including: During the process of upgrading the vehicle electronic controller, the upgrading progress of the vehicle electronic controller is monitored in real time.
5. The vehicle electronic controller automatic upgrade method according to claim 1 or 2, characterized in that: Further including: After the vehicle electronic controller is upgraded, it is detected whether the vehicle electronic controller automatically restarts. If the vehicle electronic controller does not automatically restart, the vehicle electronic controller is restarted.
6. The method for automatically upgrading a vehicle electronic controller as claimed in claim 5, characterized in that: The vehicle electronic controller is restarted by controlling the power supply to be powered on and off again.
7. The vehicle electronic controller automatic upgrade method according to claim 1 or 2, characterized in that: The host computer is connected to the vehicle electronic controller via Ethernet, and the connection protocol adopts the SSH protocol.
8. A vehicle electronic controller automatic upgrade device, characterized in that: The device is connected to the vehicle electronic controller and includes: An upgrade package acquisition unit, used to acquire an upgrade package of a vehicle electronic controller; A confirmation unit, used to confirm whether the host computer is normally connected to the vehicle electronic controller; a transmission unit, used to transmit the upgrade package to the vehicle electronic controller when the host computer and the vehicle electronic controller are normally connected; and The upgrade unit is used to obtain upgrade package information and select different upgrade instructions based on the upgrade package information to upgrade the vehicle electronic controller.
9. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded by the processor and executes the method according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that: The storage medium stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded by a processor and executes the method according to any one of claims 1 to 7.
11. A computer program product, comprising at least one instruction or at least one program, characterized in that: The at least one instruction or the at least one program is loaded by a processor and executes the method according to any one of claims 1 to 7.