Controller upgrading method, vehicle, device, and medium
By introducing a parallel upgrade mechanism of the first and second nodes in the controller, the problem of low upgrade efficiency of heterogeneous multi-core system-level chip domain controllers is solved, and the upgrade efficiency is improved and load balancing is achieved, ensuring the upgrade process stability and user experience.
Patent Information
- Application Number
- PCT/CN2024/090882
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-09
- Filing Date
- 2024-04-30
- Publication Date
- 2024-11-14
AI Technical Summary
The existing OTA upgrade technology has low efficiency in upgrading domain controllers with heterogeneous multi-core system-based chip architectures, long upgrade time and excessive load on a single SoC, affecting the user experience.
Using the controller upgrade method, after receiving the upgrade packet data through the first node and verifying it, the upgrade packet data is transmitted to the second node, thereby realizing parallel upgrades to multiple nodes to ensure improvement without affecting the critical path. Upgrade efficiency and balance node load.
It realizes the parallel processing of enhanced upgrade targets without increasing the upgrade time, reduces the possibility of upgrade failure caused by excessive node load, and improves the efficiency and reliability of OTA upgrades.
Smart Images

Figure CN2024090882_14112024_PF_FP_ABST
Abstract
Description
Controller upgrade method, vehicle, device and medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on May 9, 2023, with application number 202310520699.3 and application name “A controller upgrade method, vehicle, equipment and medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of vehicle upgrade technology, and in particular to a controller upgrade method, vehicle, device, and medium. Background Art
[0003] The commonly used OTA (Over-the-Air Technology) upgrade technology is currently aimed at upgrading electronic control units (ECUs). However, the structure of ECUs is relatively simple, generally only having one microcontroller unit (MCU). However, domain controllers are usually heterogeneous multi-core system-on-chip (SoC) architectures. Upgrading domain controllers requires upgrading each SoC, MCU, and other components. Existing OTA upgrades are serial upgrades. Using existing OTA upgrades to upgrade domain controllers in heterogeneous multi-core SoC architectures may result in problems such as long upgrade times and excessive load on a single SoC during the upgrade process, affecting the user's car experience. Therefore, how to improve the upgrade process of heterogeneous multi-core domain controllers to improve the efficiency of OTA upgrades has become an urgent problem to be solved.
[0004] Summary of the Invention
[0005] In view of this, embodiments of the present application provide a controller upgrade method, vehicle, device and medium to solve the problem of improving the upgrade process of a domain controller with a heterogeneous multi-core structure to improve the efficiency of OTA upgrades.
[0006] In a first aspect, an embodiment of the present application provides a controller upgrade method, the controller including a first node and a second node, the upgrade method being executed in the first node and comprising:
[0007] Receive upgrade package data sent by upstream devices;
[0008] Upgrading the program in the first node using the upgrade package data;
[0009] The upgrade package data is transmitted to the second node to instruct the second node to upgrade the program in the second node using the upgrade package data. In a second aspect, an embodiment of the present application provides a vehicle, the vehicle including a controller, the controller being configured to implement the upgrade method as described in the first aspect.
[0010] In a third aspect, an embodiment of the present application provides a computer device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the upgrade method described in the first aspect when executing the computer program.
[0011] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the upgrade method as described in the first aspect is implemented.
[0012] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0013] The present application provides a controller upgrade method, which includes a first node and a second node. The upgrade method runs in the first node, including receiving upgrade package data sent by an upstream device; using the upgrade package data to upgrade the program in the first node; transmitting the upgrade package data to the second node to instruct the second node to use the upgrade package data to upgrade the program in the second node. Without affecting the critical path, the first node controls the various nodes in the controller to perform parallel upgrades, ensuring that the number of upgrade targets increases while the upgrade time remains unchanged. At the same time, the load of each node during the upgrade process can be balanced, reducing the possibility of upgrade failure due to excessive node load. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0015] FIG1 is a schematic diagram of an application environment of a controller upgrade method provided in Example 1 of the present application;
[0016] FIG2 is a flow chart of a controller upgrade method provided in Example 1 of the present application;
[0017] FIG3 is a schematic diagram of a hardware reset process provided in Example 1 of the present application;
[0018] FIG4 is a schematic structural diagram of a computer device provided in Example 11 of the present application. DETAILED DESCRIPTION
[0019] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.
[0020] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.
[0021] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0022] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0023] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0024] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0025] It should be understood that the size of the serial numbers of the steps in the following embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0026] In order to illustrate the technical solution of the present application, specific embodiments are provided below.
[0027] A controller upgrade method provided in a first embodiment of the present application can be applied in an application environment as shown in FIG1 , wherein a vehicle side communicates with a server side. The vehicle side includes, but is not limited to, computer devices such as controllers with computing capabilities. The server side can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0028] This upgrade method can be applied to the scenario of updating the software version of the controller. The above-mentioned vehicle end can be the central control device of the vehicle. The central control device of the vehicle communicates with the server to obtain the updated version of the software. The vehicle end serves as the upstream device of the controller and sends the updated version of the software to the controller of the vehicle to enable the controller to perform the upgrade operation according to the upgrade package data sent by the server.
[0029] See Figure 2, which is a flowchart of a controller upgrade method provided in Example 1 of the present application. As shown in Figure 2, the controller includes a first node and a second node. The upgrade method is executed in the first node and may include the following steps:
[0030] Step S201: receiving upgrade package data sent by an upstream device.
[0031] Among them, the first node refers to the system-on-chip (SoC) connected to the upstream device. The upstream device can be a server that is communicatively connected to the controller. The server stores the software version information of multiple controllers, as well as various latest upgrade package data provided by the developer. It is understandable that in order to upgrade vehicle performance or improve user experience, the software version of the controller needs to be updated at any time. For the latest software version of the controller, a version comparison can be performed on the server. For example, the controller sends its current software version to the server. After comparison, the server determines whether the current software version is the latest software version. If the current software version is not the latest software version, the upgrade package data corresponding to the latest software version is sent to the controller. The upgrade package data can be for different functional modules in the controller. The software version is updated separately. The upgrade packages corresponding to each functional module are packaged together to form upgrade package data. Therefore, when the controller is upgraded, the first node receives the upgrade package data sent by the upstream device.
[0032] As an embodiment, after receiving the upgrade package data sent by the upstream device, the method further includes:
[0033] Perform data verification on the upgrade package data to obtain the data verification result;
[0034] If the data verification result is passed, the step of using the upgrade package data to upgrade the program in the first node is executed.
[0035] Among them, in order to further strengthen the protection of the upgrade package data, after receiving the upgrade package data sent by the upstream device, the upgrade package data is verified to obtain the data verification result. If the data verification result is passed, the step of using the upgrade package data to upgrade the program in the first node is executed to prevent the upgrade package data from being tampered with and ensure the upgrade security of the controller.
[0036] As an implementation method, data verification is performed on the upgrade package data, and the data verification result obtained includes:
[0037] Performing integrity check on the upgrade package data to obtain a first check result;
[0038] If the first verification result is detected to be passed, the authenticity of the upgrade package data is verified to obtain a second verification result;
[0039] If it is detected that the second verification result is passed, it is determined that the data verification result is passed.
[0040] After receiving the upgrade package data, an integrity check is performed on the upgrade package data, that is, the digital signature information of the upgrade package data is verified to confirm that the upgrade package data is not damaged during the download process. For example, the MD5 message digest algorithm (MD5 Message-Digest Algorithm) is used to perform an MD5 integrity check on the upgrade package data. After confirming that the upgrade package data is not damaged, the authenticity of the upgrade package data is verified by using a file verification code to ensure the correctness of the upgrade package data. For example, the file verification code can be a hash value such as a cyclic redundancy check (CRC32) or a secure hash algorithm 1 (SHA1). There is no restriction on which file verification code is selected. Preferably, CRC32 is selected in this application.
[0041] Step S202: Upgrade the program in the first node using the upgrade package data.
[0042] After the upgrade package data passes data verification, the upgrade package data is used to upgrade the program in the first node. It is worth noting that the first node is connected to the child node, and the first node uses the upgrade package data to upgrade the child node connected to the first node.
[0043] As an implementation method, upgrading the program in the first node using the upgrade package data includes:
[0044] Parse the upgrade package data to obtain N first upgrade targets managed by the first node, where the first upgrade target includes a child node connected to the first node, and the child node includes a second node. Create a parallel upgrade thread for each first upgrade target to control all first upgrade targets to perform upgrade operations simultaneously, where N is an integer greater than zero.
[0045] Among them, in the controller, when there is at least one child node in the first node, the child node includes device software, a microcontroller unit MCU, and a second node, etc., decompress the upgrade package data, obtain the first upgrade package of the first node and the second upgrade package of each child node respectively, analyze the configuration files in the first upgrade package and the second upgrade package, and determine whether the configuration files are the same as the current software version. If so, it is determined that the corresponding first node or child node does not need to be upgraded. If not, it is determined that the corresponding first node or child node needs to be upgraded and confirmed as the first upgrade target. Then, based on the confirmed first upgrade target, a parallel upgrade thread is created for each first upgrade target to control all first upgrade targets to perform upgrade operations at the same time, that is, control each first upgrade target to replace the current software version with the latest software version corresponding to the upgrade package data at the same time, thereby improving upgrade efficiency.
[0046] Step S203: Transmit the upgrade package data to the second node to instruct the second node to upgrade the program in the second node using the upgrade package data.
[0047] The second node refers to a system-on-chip connected to the first node, that is, a child node of the first node. It is understood that the second node belongs to any first upgrade target of the first node, and the first node creates parallel upgrade threads for all first upgrade targets, including creating parallel upgrade threads for the second node. Therefore, based on the parallel upgrade threads created by the first node for the second node, the first node can transmit upgrade package data to the second node, instructing the second node to use the upgrade package data to upgrade the program in the second node. It is worth noting that the second node connects to the child node, and the second node uses the upgrade package data to upgrade the child node connected to the second node.
[0048] In one embodiment, instructing the second node to upgrade the program in the second node using the upgrade package data includes:
[0049] The second node parses the upgrade package data to obtain M second upgrade targets managed by the second node, and creates a parallel upgrade thread for each second upgrade target to control all the second upgrade targets to perform upgrade operations simultaneously, where M is an integer greater than zero;
[0050] The second upgrade progress of each second upgrade target is obtained, and a total upgrade progress is generated according to all the second upgrade progresses, and the total upgrade progress is sent to the first node as the first upgrade progress.
[0051] Among them, after the second node obtains the upgrade package data sent by the first node, it parses the upgrade package data to obtain M second upgrade targets managed by the second node, where M is an integer greater than zero. The second upgrade target includes the second node and multiple sub-nodes managed by it, and the sub-nodes include device software, micro control unit MCU, etc. The upgrade package data is decompressed to obtain the second node, the first upgrade package, and the second upgrade package of each sub-node respectively. The configuration files in the first upgrade package and the second upgrade package are analyzed to determine whether the configuration files are the same as the current software version. If so, it is determined that the corresponding second node or sub-node does not need to be upgraded. If not, it is determined that the corresponding second node or sub-node needs to be upgraded and confirmed as the second upgrade target. Then, based on the confirmed second upgrade target, a parallel upgrade thread is created for each second upgrade target to control all second upgrade targets to perform the upgrade operation at the same time, that is, each second upgrade target is controlled to replace the current software version with the latest software version corresponding to the upgrade package data at the same time, thereby improving the upgrade efficiency.
[0052] During the upgrade operation, the second upgrade progress of each second upgrade target is obtained respectively, and all the second upgrade progress are weighted summed to obtain the weighted sum result, and the weighted sum result is confirmed as the total upgrade progress, for example: the total upgrade progress p = ∑k i ·p i , where k i is the state weight of the second upgrade target i, p i The second upgrade progress of the second upgrade target i is the second upgrade progress, and the sum of the state weights of all the second upgrade targets is 1, and then the total upgrade progress is sent to the first node as the first upgrade progress, thereby improving the computing power of the first node. The embodiment of the present application provides a controller upgrade method, the controller includes a first node and a second node, the upgrade method is run in the first node, including receiving upgrade package data sent by an upstream device; using the upgrade package data to upgrade the program in the first node; transmitting the upgrade package data to the second node to instruct the second node to use the upgrade package data to upgrade the program in the second node. Without affecting the critical path, the first node controls the various nodes in the controller to perform parallel upgrades, ensuring that the number of upgrade targets increases while the upgrade time remains unchanged. At the same time, the load of each node during the upgrade process can be balanced, reducing the possibility of upgrade failure due to excessive node load.
[0053] As an implementation manner, based on the first embodiment of FIG. 2 above, FIG. 3 is a flowchart of a hardware reset provided by the present application. After upgrading the program in the first node using the upgrade package data, the upgrade method further includes:
[0054] Step S301: Acquire the first upgrade progress of each first upgrade target, and send an upgrade completion status to an upstream device when all first upgrade progress are completed.
[0055] The upstream device is configured to send a hardware reset request to the first node after obtaining the upgrade completion status. The first upgrade target includes the first node and its child nodes. Therefore, after upgrading the program in the first node using the upgrade package data, the first upgrade progress of each first upgrade target is obtained. When all first upgrade progresses are completed, the upgrade completion status is sent to the upstream device to obtain real-time upgrade status.
[0056] As an implementation manner, before obtaining the first upgrade progress of each first upgrade target, the following steps are included:
[0057] Detecting whether the upgrade status of each first upgrade target is a normal upgrade status;
[0058] If it is detected that the upgrade status of at least one first upgrade target is not a normal upgrade status, then the upgrade of all first upgrade targets is stopped;
[0059] The version contents of all first upgrade targets before the upgrade are obtained, and a recovery operation is performed on all first upgrade targets according to the version contents.
[0060] Among them, the upgrade progress of the upgrade target is represented by a number, the normal upgrade status is represented by a number in the range of [0, 100], and the abnormal upgrade status is represented by a number outside the range of [0, 100]. When the number corresponding to the first upgrade target is within the range of [0, 100], it is confirmed that the upgrade status of the corresponding first upgrade target is a normal upgrade status. Conversely, when the number corresponding to the first upgrade target is not within the range of [0, 100], it is confirmed that the upgrade status of the corresponding first upgrade target is an abnormal upgrade status. If it is detected that the upgrade status of at least one first upgrade target is not a normal upgrade status, it means that the overall upgrade status is in an abnormal upgrade status, and then the upgrade operation of all first upgrade targets is stopped, and then a recovery operation is performed to restore the upgrade status of the upgraded first upgrade targets to the state before the upgrade. The specific recovery operation is to obtain the version content of all first upgrade targets before the upgrade, and perform a recovery operation on all first upgrade targets according to the version content to maintain the overall upgrade in a normal state.
[0061] As an implementation manner, after obtaining the first upgrade progress of each first upgrade target, the following steps are included:
[0062] Check whether the progress of each first upgrade meets the preset requirements;
[0063] If it is detected that each first upgrade progress reaches the preset requirement, it is confirmed that all first upgrade progresses are completed.
[0064] When it is confirmed that all first upgrade targets are in a normal upgrade state, the first upgrade progress of each first upgrade target is obtained. When the first upgrade progress of all first upgrade targets is within the range of [0, 100], the overall upgrade progress of the first node p=∑k i ·p i , where k i is the state weight of the first upgrade target i, p i is the first upgrade progress of the first upgrade target i, and the sum of the state weights of all first upgrade targets is 1. When the first upgrade progress of all first upgrade targets is 100, the overall upgrade progress of the first node p = ∑k i ·p i =(∑k i )·100=100, thereby determining that the first upgrade progress of all first upgrade targets is completed.
[0065] Step S302: Obtain a hardware reset request, distribute the hardware reset request to all upgrade targets, obtain reset results sent by all upgrade targets, and send all reset results to an upstream device.
[0066] All upgrade targets are configured to perform a hardware reset upon receiving a hardware reset request and send the reset result to the first node. Therefore, when all first upgrade progress is complete, the first node sends the overall upgrade progress to the upstream device. Upon receiving the upgrade completion status, the upstream device sends a hardware reset request to the first node. The first node then distributes the received hardware reset request to all upgrade targets. For example, when the upstream device learns that the overall upgrade progress of the first node is 100, it sends a hardware reset request to the first node.
[0067] All upgrade targets include the first node, the second node, and the child nodes in the controller. Therefore, after each upgrade target receives a hardware reset request, it performs its own hardware reset according to the hardware reset request. During the hardware reset process, all upgrade targets send their own reset results to the first node, and then the first node sends all reset results to the upstream device to detect the operating status of all upgrade targets after the upgrade.
[0068] It should be noted that after the hardware is reset, each upgrade target needs to send the upgrade results before the hardware reset to the first node, and the first node feeds back all the upgrade results to the upstream device.
[0069] In embodiment 2, based on embodiment 1, the first node and the second node are connected to a sub-node, the first node uses the upgrade package data to upgrade the sub-node connected to the first node, and the second node uses the upgrade package data to upgrade the sub-node connected to the second node.
[0070] In the third embodiment, based on the first embodiment, the first node is connected to the child node, and the first node upgrades the child node connected to the first node using the upgrade package data.
[0071] In the fourth embodiment, based on the first embodiment, the second node is connected to the child node, and the second node uses the upgrade package data to upgrade the child node connected to the second node.
[0072] In the fifth embodiment, based on any one of the first to fourth embodiments, the step of upgrading the program in the first node by using the upgrade package data includes:
[0073] Parse the upgrade package data to obtain N first upgrade targets managed by the first node, where the first upgrade target includes the child node connected to the first node, and the child node includes the second node. Create a parallel upgrade thread for each first upgrade target to control all first upgrade targets to perform upgrade operations simultaneously, where N is an integer greater than zero.
[0074] In the sixth embodiment, based on any one of the first to fifth embodiments, after the program in the first node is upgraded using the upgrade package data, the method includes:
[0075] Obtaining a first upgrade progress of each first upgrade target, and when all first upgrade progress are completed, sending an upgrade completion status to the upstream device, wherein the upstream device is configured to send a hardware reset request to the first node after obtaining the upgrade completion status;
[0076] Obtaining the hardware reset request, and distributing the hardware reset request to all upgrade targets, so that all upgrade targets are configured to perform a hardware reset after receiving the hardware reset request and send a reset result to the first node;
[0077] Acquire the reset results sent by all upgrade targets, and send all the reset results to the upstream device.
[0078] In the seventh embodiment, based on any one of the first to sixth embodiments, the step of instructing the second node to upgrade the program in the second node using the upgrade package data includes:
[0079] The second node parses the upgrade package data to obtain M second upgrade targets managed by the second node, and creates a parallel upgrade thread for each second upgrade target to control all the second upgrade targets to perform upgrade operations simultaneously, where M is an integer greater than zero;
[0080] The second upgrade progress of each second upgrade target is obtained, and a total upgrade progress is generated according to all the second upgrade progresses, and the total upgrade progress is sent to the first node as the first upgrade progress.
[0081] In the eighth embodiment, based on any one of the first to seventh embodiments, after obtaining the first upgrade progress of each first upgrade target, the following steps are included:
[0082] Detecting whether each of the first upgrade progresses meets preset requirements;
[0083] If it is detected that each of the first upgrade progresses meets the preset requirement, it is confirmed that all the first upgrade progresses are completed.
[0084] In the ninth embodiment, based on any one of the first to eighth embodiments, before obtaining the first upgrade progress of each first upgrade target, the method includes:
[0085] Detecting whether the upgrade status of each first upgrade target is a normal upgrade status;
[0086] If it is detected that the upgrade status of at least one of the first upgrade targets is not a normal upgrade status, stopping the upgrade of all first upgrade targets;
[0087] The version contents of all first upgrade targets before the upgrade are obtained, and a recovery operation is performed on all first upgrade targets according to the version contents.
[0088] Embodiment 10 of the present application provides a vehicle, which includes a controller, and the controller is used to implement the upgrade method of embodiment 1.
[0089] The controller includes a first node and a second node, and the upgrade method is executed in the first node, including:
[0090] Receive upgrade package data sent by upstream devices;
[0091] Upgrading the program in the first node using the upgrade package data;
[0092] The upgrade package data is transmitted to the second node to instruct the second node to upgrade the program in the second node using the upgrade package data.
[0093] FIG4 is a schematic diagram of the structure of a computer device provided in Example 11 of the present application. As shown in FIG4 , the computer device of this embodiment includes: at least one processor (only one is shown in FIG4 ), a memory, and a computer program stored in the memory and executable by the at least one processor. When the processor executes the computer program, the steps of any of the above-mentioned upgrade method embodiments are implemented.
[0094] The computer device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that FIG4 is merely an example of a computer device and does not limit the computer device. The computer device may include more or fewer components than shown, or a combination of certain components, or different components. For example, it may also include a network interface, a display screen, and an input device.
[0095] The processor may be a CPU, other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or any conventional processor, etc.
[0096] The memory includes a readable storage medium, an internal memory, etc., wherein the internal memory can be the memory of a computer device, and the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the readable storage medium. The readable storage medium can be the hard disk of the computer device, and in other embodiments, it can also be an external storage device of the computer device, for example, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device. Furthermore, the memory can also include both the internal storage unit of the computer device and the external storage device. The memory is used to store the operating system, application programs, boot loaders (BootLoader), data, and other programs, such as the program code of the computer program. The memory can also be used to temporarily store data that has been output or is about to be output.
[0097] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned device can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here. 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 computer-readable storage medium. Based on this understanding, the present application implements all or part of the process of any one of the above embodiments from Example 1 to Example 9, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, it can implement the steps of the above method embodiment. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include at least: any entity or device capable of carrying computer program code, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0098] The present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed through a computer program product. When the computer program product runs on a computer device, the computer device can implement the steps in the above-mentioned method embodiment when executing it.
[0099] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0100] Those skilled 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, or a combination of computer software and electronic hardware. 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 beyond the scope of this application.
[0101] In the embodiments provided in this application, it should be understood that the disclosed apparatus / computer equipment and methods can be implemented in other ways. For example, the apparatus / computer equipment embodiments described above are merely schematic. For example, the division of modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of the apparatus or unit, which can be electrical, mechanical or other forms.
[0102] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0103] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A controller upgrade method, It is characterized in that The controller includes a first node and a second node, and the upgrade method is executed in the first node, including: Receive upgrade package data sent by upstream devices; Using the upgrade package data to upgrade the program in the first node; The upgrade package data is transmitted to the second node to instruct the second node to upgrade the program in the second node using the upgrade package data.
2. The upgrading method according to claim 1, It is characterized in that The first node and / or the second node are connected to sub-nodes, and the first node uses the upgrade package data to upgrade the sub-nodes connected to the first node, and / or the second node uses the upgrade package data to upgrade the sub-nodes connected to the second node.
3. The upgrading method according to any one of claims 1 to 2, It is characterized in that The step of upgrading the program in the first node by using the upgrade package data includes: Parse the upgrade package data to obtain N first upgrade targets managed by the first node, the first upgrade target including the child node connected to the first node, the child node including the second node, and create a parallel upgrade thread for each first upgrade target to control all the first upgrade targets to perform upgrade operations simultaneously, wherein N is an integer greater than zero.
4. The upgrading method according to any one of claims 1 to 3, It is characterized in that After the program in the first node is upgraded by using the upgrade package data, the method includes: Acquire a first upgrade progress of each first upgrade target, and when all first upgrade progresses are completed, send an upgrade completion status to the upstream device, and the upstream device is used to send a hardware reset request to the first node after acquiring the upgrade completion status; Obtaining the hardware reset request, distributing the hardware reset request to all upgrade targets, so that all upgrade targets are used to perform hardware reset after receiving the hardware reset request and send a reset result to the first node; Acquire the reset results sent by all upgrade targets, and send all the reset results to the upstream device.
5. The upgrading method according to any one of claims 1 to 4, It is characterized in that The instructing the second node to upgrade the program in the second node using the upgrade package data includes: The second node parses the upgrade package data to obtain M second upgrade targets managed by the second node, and creates a parallel upgrade thread for each second upgrade target to control all the second upgrade targets to perform upgrade operations simultaneously, where M is an integer greater than zero; The second upgrade progress of each second upgrade target is obtained, and a total upgrade progress is generated according to all the second upgrade progresses, and the total upgrade progress is sent to the first node as the first upgrade progress.
6. The upgrading method according to any one of claims 1 to 5, It is characterized in that After obtaining the first upgrade progress of each first upgrade target, including: Detecting whether each of the first upgrade progresses meets preset requirements; If it is detected that each of the first upgrade progresses reaches a preset requirement, it is confirmed that all the first upgrade progresses are completed.
7. The upgrading method according to any one of claims 1 to 6, It is characterized in that Before obtaining the first upgrade progress of each first upgrade target, including: Detecting whether the upgrade status of each first upgrade target is a normal upgrade status; If it is detected that the upgrade status of at least one of the first upgrade targets is not a normal upgrade status, stopping the upgrade of all first upgrade targets; The version contents of all the first upgrade targets before the upgrade are obtained, and according to the version contents, a recovery operation is performed on all the first upgrade targets.
8. A vehicle, It is characterized in that The vehicle comprises a controller, and the controller is used to implement the upgrading method according to any one of claims 1 to 7.
9. A computer device, It is characterized in that The computer device includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the upgrade method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the upgrading method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Automobile electronic control unit upgrading method and system and terminal device
CN110032382A
Vehicle end OTA parallel flashing control method and system
CN114968302A
Vehicle remote upgrading method and device, electronic equipment and storage medium
CN115454463A
Vehicle remote automatic upgrading method and device, server, equipment and medium
CN116048587A
Outdated Resource Handling and Multiple-Version Upgrade of Cloud Software
US20180067736A1
Cited By
Storage cluster system upgrading method and device, electronic equipment, medium and product
CN120560693A
Software kernel upgrading data processing method and system
CN120803500A
