Firmware upgrade package downloading method and system, vehicle and program product
By commissioning the download of firmware upgrade packages from other domain controllers in intelligent connected vehicles, the problem of tight network load under OTA technology is solved, and the download efficiency and resource utilization of firmware upgrade packages are improved.
Patent Information
- Application Number
- CN202411527422.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-01-03
AI Technical Summary
In intelligent connected vehicles, when using OTA technology to download the firmware upgrade package, users may trigger other services such as entertainment Internet access and navigation, resulting in tight network load and affecting the download efficiency of the firmware upgrade package.
By performing the firmware upgrade package download task on the second domain controller, if the network load state meets the preset state and the task is a give-off task, the third domain controller that meets the network resource requirements will be determined from other domain controllers and to it Send a delegate download request to ensure that the firmware upgrade package is downloaded by the third domain controller and transmitted to the second domain controller.
It ensures the download efficiency of firmware upgrade packages, improves the resource utilization rate of domain controllers, and avoids resource waste caused by tight network resources and repeated downloads.
Smart Images

Figure CN119254768A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a firmware upgrade package downloading method, system, vehicle and program product. Background Art
[0002] Over The Air (OTA) is a method of remotely updating device firmware or software through wireless communication technology. In the current automotive industry, OTA technology can be used to download firmware upgrade packages. Generally, the upgrade master usually triggers one or more target domain controllers to download firmware upgrade packages. However, with more and more intelligent scenarios of smart connected vehicles, when using OTA technology to download firmware upgrade packages, users may trigger some other services, such as entertainment Internet services, navigation services, autonomous driving services, etc. These services require network load resources, and downloading firmware upgrade packages also requires a certain amount of network load, which in turn causes network load resource tension and affects the download efficiency of firmware upgrade packages. Summary of the invention
[0003] The embodiments of the present disclosure at least provide a firmware upgrade package downloading method, system, vehicle and program product.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for downloading a firmware upgrade package, which is applied to a first domain controller and includes:
[0005] After determining that there is a firmware upgrade package that has not been downloaded, informing the second domain controller to start executing the firmware upgrade package download task;
[0006] In the process of executing the firmware upgrade package download task, if it is determined that the network load state of the second domain controller meets the first preset state, and the firmware upgrade package download task is a yield task, a third domain controller that meets the network resource requirements of the firmware upgrade package download service is determined from other domain controllers except the second domain controller;
[0007] A delegate download request is sent to the third domain controller, wherein the third domain controller is used to download a firmware upgrade package and transmit the downloaded firmware upgrade package to the second domain controller.
[0008] In a possible implementation manner, after sending the delegate download request to the third domain controller, the method further includes:
[0009] Receive transmission progress information periodically transmitted by the third domain controller, wherein the transmission progress information is used to indicate the transmission progress of the downloaded firmware upgrade package transmitted by the third domain controller to the second domain controller.
[0010] In a possible implementation manner, determining a third domain controller that meets the network resource requirements of the firmware upgrade package download service from other domain controllers except the second domain controller includes:
[0011] Obtaining, through the network load monitoring module of the first domain controller, the network load status of the domain controller to which it belongs monitored by the network load monitoring modules of other domain controllers;
[0012] According to the network load status of the other domain controllers, a third domain controller that meets the network resource demand of the firmware upgrade package download service is determined from the other domain controllers.
[0013] In one possible implementation, the delegated download request carries the current download progress information of the firmware upgrade package by the second domain controller; the third domain controller is used to download the firmware upgrade package content based on the download progress information; the firmware upgrade package content includes the firmware upgrade package content in the firmware upgrade package that is located after the download progress indicated by the download progress information.
[0014] In a possible implementation manner, determining a third domain controller that meets the network resource requirements of the firmware upgrade package download service from other domain controllers except the second domain controller includes:
[0015] Determine the download progress information of the firmware upgrade package currently being executed by the second domain controller, and the execution progress information of a first task currently being executed that has a higher priority than the firmware upgrade package download task;
[0016] Determining whether a download entrustment condition is met according to the download progress information and the execution progress information of the first task;
[0017] After determining that the delegated download condition is met, a third domain controller that meets the network resource requirements of the firmware upgrade package download task is determined from other domain controllers.
[0018] In a possible implementation manner, after sending the delegate download request to the third domain controller, the method further includes: receiving delegate feedback information sent by the third domain controller to indicate acceptance of the delegate download request.
[0019] In a possible implementation manner, before determining a third domain controller that meets the network resource requirements of the firmware upgrade package download service from other domain controllers except the second domain controller, the method further includes:
[0020] receiving a yield indication message sent by the second domain controller; the yield indication message is used to indicate that the firmware upgrade package download task is a yield task in the second domain controller;
[0021] In response to the yield instruction information, a pause request is generated and sent to the second domain controller; the pause request is used to instruct the second domain controller to pause the execution of the firmware upgrade package download task.
[0022] In a second aspect, an embodiment of the present disclosure provides a method for downloading a firmware upgrade package, which is applied to a second domain controller, and includes:
[0023] In response to the notification from the first domain controller, start executing the firmware upgrade package download task;
[0024] Acquire a network load state of the second domain controller monitored by a network load monitoring module of the second domain controller, and determine whether the network load state of the second domain controller satisfies a first preset state;
[0025] If the conditions are met, determining a yielding task from among the firmware upgrade package download task and other tasks according to priority information of the firmware upgrade package download task and other tasks currently being executed;
[0026] When the yielding task includes the firmware upgrade package downloading task, the execution of the firmware upgrade package downloading task is suspended, and the downloaded firmware upgrade package transmitted by the third domain controller is received.
[0027] In a possible implementation manner, determining the yielding task from the firmware upgrade package downloading task and other tasks according to priority information of the firmware upgrade package downloading task and other tasks currently being executed includes:
[0028] Determine, according to priority information of the firmware upgrade package download task and other tasks currently executed by the first domain controller, a first task having a higher priority than the firmware upgrade package download task and a second task having a lower priority than the firmware upgrade package download task;
[0029] If the total network resources required to be occupied by the first task and the firmware upgrade package downloading task exceeds the resource threshold indicated by the first preset condition, determining that the yielding task includes the firmware upgrade package downloading task;
[0030] If the total network resources required to be occupied by the first task and the firmware upgrade package downloading task does not exceed the resource threshold indicated by the first preset condition, it is determined that the yielding task includes the second task.
[0031] In a possible implementation manner, when the yielding task includes the firmware upgrade package downloading task, suspending the execution of the firmware upgrade package downloading task includes:
[0032] When the yielding task includes the firmware upgrade package downloading task, sending yielding indication information to the first domain controller; the yielding indication information is used to indicate that the firmware upgrade package downloading task is a yielding task in the second domain controller;
[0033] receiving a pause request sent by the first domain controller, wherein the pause request is generated in response to the yield instruction information;
[0034] In response to the pause request, the firmware upgrade package download task is suspended.
[0035] In a third aspect, an embodiment of the present disclosure provides a method for downloading a firmware upgrade package, which is applied to a third domain controller, including:
[0036] receiving a delegate download request sent by the first domain controller; the delegate download request is used to request downloading of a firmware upgrade package;
[0037] The firmware upgrade package is downloaded, and the downloaded firmware upgrade package is transmitted to the second domain controller indicated by the delegate download request.
[0038] In a possible implementation, the method further includes: periodically sending transmission progress information to the first domain controller, wherein the transmission progress information is used to indicate the transmission progress of the downloaded firmware upgrade package transmitted by the third domain controller to the second domain controller.
[0039] In a possible implementation manner, after receiving the delegate download request sent by the first domain controller, the method further includes: generating delegate feedback information for indicating acceptance of the delegate download request, and sending the delegate feedback information to the first domain controller.
[0040] In a fourth aspect, an embodiment of the present disclosure further provides a firmware upgrade package download system, comprising a first domain controller, a second domain controller, and a third domain controller;
[0041] The first domain controller is configured to notify the second domain controller to start executing the firmware upgrade package download task after determining that there is a firmware upgrade package that has not been downloaded; in the process of executing the firmware upgrade package download task, if it is determined that the network load state of the second domain controller meets the first preset state, and the firmware upgrade package download task is a yield task, determine a third domain controller that meets the network resource requirements of the firmware upgrade package download service from other domain controllers except the second domain controller, and send a delegate download request to the third domain controller;
[0042] The second domain controller is used to, during the execution of the firmware upgrade package download task, if the network load state of the second domain controller meets the first preset state and the firmware upgrade package download task is a yield task, suspend the execution of the firmware upgrade package download task and receive the downloaded firmware upgrade package transmitted by the third domain controller;
[0043] The third domain controller is used to receive the entrusted download request sent by the first domain controller, download the firmware upgrade package, and transmit the downloaded firmware upgrade package to the second domain controller.
[0044] In a fifth aspect, an embodiment of the present disclosure further provides a vehicle, which is used to execute the steps in the first aspect or any possible implementation of the first aspect, or to execute the steps in the second aspect or any possible implementation of the second aspect, or to execute the steps in the third aspect or any possible implementation of the third aspect.
[0045] In a sixth aspect, an embodiment of the present disclosure further provides a computer program product, comprising a computer program, which, when executed, implements the method described in the first aspect above, or any possible implementation of the first aspect; or, implements the method described in the second aspect above, or any possible implementation of the second aspect; or, implements the method described in the third aspect above, or any possible implementation of the third aspect.
[0046] The firmware upgrade package downloading method, system, vehicle and program product provided by the embodiments of the present disclosure, during the process of executing the firmware upgrade package downloading task on the second domain controller, if it is determined that the network load state of the second domain controller meets the first preset state and the firmware upgrade package downloading task is a yielding task, then a third domain controller that meets the network resource requirements of the firmware upgrade package downloading business is determined from other domain controllers except the second domain controller; a delegate download request is sent to the third domain controller so that the third domain controller can download the firmware upgrade package, and the downloaded firmware upgrade package is transmitted to the second domain controller, so as to ensure the download efficiency of the firmware upgrade package and improve the resource utilization rate of the domain controller.
[0047] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.
[0049] Figure 1 A flowchart of a method for downloading a firmware upgrade package provided by an embodiment of the present disclosure is shown;
[0050] Figure 2 A flowchart of another firmware upgrade package downloading method provided by an embodiment of the present disclosure is shown;
[0051] Figure 3 A flowchart of another firmware upgrade package downloading method provided by an embodiment of the present disclosure is shown;
[0052] Figure 4 A schematic diagram showing interactions between multiple domain controllers provided by an embodiment of the present disclosure is shown;
[0053] Figure 5 An interactive flow chart of a method for downloading a firmware upgrade package provided in an embodiment of the present disclosure is shown;
[0054] Figure 6 An interactive flow chart of a firmware upgrade package download method provided in an embodiment of the present disclosure is shown;
[0055] Figure 7 A schematic diagram of the structure of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure claimed for protection, but merely represents selected embodiments of the present disclosure.
[0057] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0058] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.
[0059] In related technologies, the upgrade master usually triggers one or more target domain controllers to download the firmware upgrade package. However, with the increasing number of intelligent scenarios of smart connected vehicles, when using OTA technology to download the firmware upgrade package, users may trigger some other services, such as entertainment Internet services, navigation services, and autonomous driving services. These services require network load resources, and downloading the firmware upgrade package also requires a certain amount of network load, which in turn causes a shortage of network load resources and affects the download efficiency of the firmware upgrade package.
[0060] Based on the above research, the present disclosure provides a firmware upgrade package downloading method, system, vehicle and program product. During the process of executing the firmware upgrade package downloading task on the second domain controller, if it is determined that the network load state of the second domain controller meets the first preset state and the firmware upgrade package downloading task is a yielding task, a third domain controller that meets the network resource requirements of the firmware upgrade package downloading business is determined from other domain controllers except the second domain controller; a delegated download request is sent to the third domain controller so that the third domain controller can download the firmware upgrade package, and the downloaded firmware upgrade package is transmitted to the second domain controller, so as to ensure the download efficiency of the firmware upgrade package and improve the resource utilization rate of the domain controller.
[0061] See also Figure 1 As shown, it is a flowchart of a method for downloading a firmware upgrade package provided in an embodiment of the present disclosure, which is applied to a first domain controller. The method includes S101 to S103, wherein:
[0062] S101. After determining that there is a firmware upgrade package that has not been downloaded, notify the second domain controller to start executing a firmware upgrade package download task.
[0063] The first domain controller can be deployed with an upgrade master Fota Master, which is used to achieve overall control of the firmware upgrade process, such as version detection, download, installation and other business process control. And each domain controller can be deployed with an update agent (UA) module to use the UA module to achieve download, installation, activation, rollback and other functions of the firmware upgrade package.
[0064] During implementation, an OTA task request can be sent to the server through Fota Master. When the server has an OTA task, it is determined that there is a firmware upgrade package that has not been downloaded, and a notification is sent to the second domain controller corresponding to the OTA task, notifying the second domain controller to start executing the firmware upgrade package download task, that is, the UA module of the second domain controller downloads the firmware upgrade package. For example, the UA module of the second domain controller can download the firmware upgrade package from the content delivery network (Content Delivery Network, CDN).
[0065] The second domain controller corresponding to the OTA task may be one or more. When there are multiple second domain controllers, Fota Master triggers multiple second domain controllers to download the firmware upgrade package.
[0066] S102. During the execution of the firmware upgrade package download task, if it is determined that the network load state of the second domain controller meets the first preset state, and the firmware upgrade package download task is a yield task, a third domain controller that meets the network resource requirements of the firmware upgrade package download service is determined from other domain controllers except the second domain controller.
[0067] A network load monitoring module is deployed on the second domain controller, and the network load monitoring module is used to monitor the network load status of the second domain controller in real time. In the process of the second domain controller executing the firmware upgrade package download task, the network load monitoring module deployed on the second domain controller can be used to determine whether the network load status of the second domain controller meets the first preset state. For example, the network load monitoring module can monitor the bandwidth utilization, packet loss rate, network throughput, used bandwidth, remaining bandwidth and other information of the second domain controller, and then measure whether the network load status of the second domain controller meets the first preset state through the bandwidth utilization, packet loss rate, network throughput, used bandwidth, remaining bandwidth and other information. For example, if the bandwidth utilization is greater than the utilization threshold, or the packet loss rate is greater than the loss threshold, or the used bandwidth is greater than or equal to the set bandwidth tolerance value, it is determined that the network load status of the second domain controller meets the first preset state, that is, the first preset state is used to characterize the congestion of the network load of the second domain controller. When it is determined that the network load state of the second domain controller meets the first preset state, that is, when it is determined that the network bandwidth resources of the second domain controller are tight, it is necessary to determine the yielding task in the second domain controller so as to control the suspension of the yielding task so that the yielding task releases the bandwidth resources to alleviate the problem of tight network resources of the second domain controller and ensure the normal execution of other tasks.
[0068] Alternatively, data between the network load monitoring modules of the first domain controller, the second domain controller, and the third domain controller can be shared, so the network load monitoring module deployed on the first domain controller can also be used to determine whether the network load state of the second domain controller meets the first preset state. When it is determined that the network load state of the second domain controller meets the first preset state, the first domain controller sends network load indication information to the second domain controller so that the second domain controller determines the yield task.
[0069] If it is determined that the firmware upgrade package download task is a yield task, the firmware upgrade package download task is suspended, that is, the second domain controller suspends the execution of the firmware upgrade package download task. After the firmware upgrade package download task is suspended, the first domain controller can determine a third domain controller that meets the network resource requirements of the firmware upgrade package download service from other domain controllers except the second domain controller.
[0070] Optionally, before determining a third domain controller that meets the network resource requirements of the firmware upgrade package download service from other domain controllers other than the second domain controller, it also includes: receiving a yield indication information sent by the second domain controller; the yield indication information is used to indicate that the firmware upgrade package download task is a yield task in the second domain controller; in response to the yield indication information, generating a pause request, and sending the pause request to the second domain controller; the pause request is used to instruct the second domain controller to pause the execution of the firmware upgrade package download task.
[0071] During specific implementation, when the second domain controller determines that the network load state meets the first preset state and the firmware upgrade package download task is a yielding task, it can generate yielding indication information and send the yielding indication information to the first domain controller. The yielding indication information is used to indicate that the firmware upgrade package download task is a yielding task in the second domain controller. After receiving the yielding indication information, the first domain controller generates a pause request and sends the pause request to the second domain controller, so that the second domain controller responds to the pause request and pauses the execution of the firmware upgrade package download task. Subsequently, the first domain controller can determine a third domain controller that meets the network resource requirements of the firmware upgrade package download service from other domain controllers except the second domain controller, so that the third domain controller can download the firmware upgrade package. While ensuring the execution efficiency of the firmware upgrade package download task, the problem of resource waste caused by repeated downloading of the firmware upgrade package by the second domain controller and the third domain controller is avoided.
[0072] Optionally, determining a third domain controller that meets the network resource requirements of the firmware upgrade package download service from domain controllers other than the second domain controller includes: obtaining, through the network load monitoring module of the first domain controller, the network load status of the domain controller monitored by the network load monitoring modules of other domain controllers; and determining, based on the network load status of the other domain controllers, a third domain controller that meets the network resource requirements of the firmware upgrade package download service from the other domain controllers.
[0073] During implementation, a network load monitoring module can be set on each domain controller so that the network load monitoring module can monitor the network load status of the domain controller to which it belongs, and the network load monitoring modules corresponding to multiple domain controllers can share data. Therefore, the first domain controller can obtain the network load status of the domain controller to which it belongs monitored by the network load monitoring modules of other domain controllers through the network load monitoring module on the first domain controller.
[0074] According to the network load status of other domain controllers, a third domain controller that meets the network resource requirements of the firmware upgrade package download service is determined from other domain controllers. For example, a candidate domain controller whose remaining network bandwidth indicated by the network load status is greater than the network resource requirements of the firmware upgrade package download service can be determined, and the candidate domain controller with the largest remaining network bandwidth is selected as the third domain controller.
[0075] Through the above process, the third domain controller can be selected more accurately, so as to use the third domain controller to download the firmware upgrade package, thereby improving download efficiency and resource utilization.
[0076] In an optional implementation, determining a third domain controller that meets the network resource requirements of the firmware upgrade package download service from domain controllers other than the second domain controller includes: determining the current download progress information of the firmware upgrade package by the second domain controller, and the execution progress information of a first task that is currently being executed and has a higher priority than the firmware upgrade package download task; determining whether a delegated download condition is met based on the download progress information and the execution progress information of the first task; after determining that the delegated download condition is met, determining a third domain controller that meets the network resource requirements of the firmware upgrade package download task from other domain controllers.
[0077] After the firmware upgrade package download task is suspended, the download progress information of the firmware upgrade package currently being executed by the second domain controller, as well as the execution progress information of the first task currently being executed in the second domain controller and having a higher priority than the firmware upgrade package download task, can also be determined. If the download progress information of the firmware upgrade package is greater than the first preset progress, and the execution progress information of the first task is greater than the second preset progress, it can be determined that the first task is about to be executed and the remaining download content of the firmware upgrade package download task is small. At this time, the second domain controller can continue to be used to execute the firmware upgrade package download task to reduce the information interaction process, so in this case it is determined that the delegated download condition is not met. On the contrary, if the download progress information of the firmware upgrade package is less than or equal to the first preset progress, and / or the execution progress information of the first task is less than or equal to the second preset progress, then in this case it is determined that the delegated download condition is met, and a third domain controller that meets the network resource requirements of the firmware upgrade package download task is determined from other domain controllers. The first preset progress and the second preset progress can be set according to business needs.
[0078] S103: Send a delegate download request to the third domain controller, wherein the third domain controller is used to download a firmware upgrade package and transmit the downloaded firmware upgrade package to the second domain controller.
[0079] After determining the third domain controller, a delegate download request can be sent to the third domain controller, wherein the delegate download request can carry the UA information of the second domain controller, the description information of the downloaded file, and the delegate download request carries the download progress information of the second domain controller for the firmware upgrade package, that is, the breakpoint information. The description information of the downloaded file may include, but is not limited to: the file uniform resource locator (URL), the size of the current download, the key and other information. The third domain controller is used to download the firmware upgrade package content based on the download progress information; the firmware upgrade package content includes the firmware upgrade package content in the firmware upgrade package that is located after the download progress indicated by the download progress information. For example, if the first domain controller downloads 30% of the firmware upgrade package content, the third domain controller can download the remaining 70% of the firmware upgrade package content to achieve a complete download of the firmware upgrade package to avoid waste of resources caused by repeated downloads.
[0080] Optionally, after sending the delegate download request to the third domain controller, the method further includes: receiving delegate feedback information sent by the third domain controller to indicate acceptance of the delegate download request.
[0081] In specific implementation, the first domain controller sends a delegate download request to the third domain controller, and the third domain controller can determine whether to accept the delegate download request. If accepted, delegate feedback information indicating acceptance of the delegation is generated. On the contrary, if not accepted, delegate feedback information indicating rejection of the delegation is generated. And the delegate feedback information is sent to the first domain controller. After the third domain controller accepts the delegation, the firmware upgrade package content is downloaded based on the breakpoint information and the description information of the download file, and the downloaded firmware upgrade package content is transmitted to the second domain controller based on the UA information of the second domain controller carried in the delegate download request. For example, the downloaded firmware upgrade package content can be transmitted to the second domain controller in real time via Ethernet.
[0082] Exemplarily, if the first domain controller receives delegation feedback information indicating acceptance of a delegation download request, the first domain controller may also send first indication information to the second domain controller indicating that the download request has been accepted, and the second domain controller does not need to perform the firmware upgrade package download service subsequently.
[0083] When the first domain controller receives the entrustment feedback information indicating the rejection of the entrustment, the first domain controller can also re-determine a third domain controller that meets the network resource requirements of the firmware upgrade package download service. If the third domain controller that accepts the entrustment download request is not determined, the first domain controller can send a second indication information indicating the entrustment failure to the second domain controller, so that the firmware upgrade package download task can be queued in the second domain controller, and the firmware upgrade package can be continued to be downloaded when the second domain controller meets the network resource requirements of the firmware upgrade package download service.
[0084] Optionally, in order to control the download status of the firmware upgrade package in real time and ensure the download integrity of the firmware upgrade package, after sending a delegated download request to the third domain controller, it also includes: receiving transmission progress information periodically transmitted by the third domain controller, wherein the transmission progress information is used to indicate the transmission progress of the downloaded firmware upgrade package from the third domain controller to the second domain controller.
[0085] During implementation, when downloading and transmitting the contents of the firmware upgrade package, the third domain controller may also periodically send transmission progress information to the first domain controller, where the transmission progress information is used to indicate the transmission progress of the downloaded firmware upgrade package from the third domain controller to the second domain controller.
[0086] And the second domain controller may also periodically send download progress information to the first domain controller to ensure the download integrity of the firmware upgrade package.
[0087] In specific implementation, if a third domain controller that meets the requirements is not determined, the first domain controller can also send a task start instruction to the second domain controller when the network bandwidth resources of the second domain controller meet the network resource requirements of the firmware upgrade package, so that the second domain controller continues to execute the firmware upgrade package download task in response to the task start instruction.
[0088] Based on the same inventive concept, see Figure 2 As shown, the embodiment of the present disclosure also provides a method for downloading a firmware upgrade package, which is applied to a second domain controller and includes:
[0089] S201, in response to a notification from the first domain controller, starting a firmware upgrade package download task;
[0090] S202, obtaining a network load state of the second domain controller monitored by a network load monitoring module of the second domain controller, and determining whether the network load state of the second domain controller meets a first preset state;
[0091] S203: If the conditions are met, determining a yielding task from among the firmware upgrade package downloading task and other tasks according to priority information of the firmware upgrade package downloading task and other tasks currently being executed;
[0092] S204: When the yielding task includes the firmware upgrade package downloading task, suspend the execution of the firmware upgrade package downloading task, and receive the downloaded firmware upgrade package transmitted by the third domain controller.
[0093] When the upgrade master of the first domain controller requests an OTA task, a notification is sent to the UA module of the second domain controller corresponding to the OTA task. The UA module of the second domain controller responds to the notification of the first domain controller and starts executing the firmware upgrade package download task.
[0094] The second domain controller is deployed with a network load monitoring module, which is used to monitor the network load status of the second domain controller in real time and determine whether the network load status of the second domain controller meets the first preset status. Exemplarily, the network load monitoring module can determine in real time the occupied bandwidth of other tasks currently executed by the second domain controller, and when the bandwidth occupied by other tasks and the bandwidth occupied by the firmware upgrade package download task are greater than the set overall bandwidth tolerance value, it is determined that the network load status of the second domain controller meets the first preset status.
[0095] During implementation, the network load monitoring module can load a configuration file at startup, which can include the domain controller name, the overall bandwidth tolerance value set for the domain controller, and one or more application names, priority information and maximum bandwidth requirement information of each application, etc.
[0096] The configuration file can also set the priority information of each task in each vehicle state for each vehicle state. The priority information of tasks can be different in different vehicle states. For example, when the vehicle is in driving state, the priority of navigation task can be higher than that of firmware upgrade package download task; when the vehicle is in parking state, the priority of firmware upgrade package download task can be higher than that of navigation task, etc. The priority information of each task can be determined according to the business scenario and is not specifically limited here.
[0097] When it is determined that the network load state of the second domain controller meets the first preset state, it is determined that the network resources of the second domain controller are tight. Then, based on the priority information of the firmware upgrade package download task and other tasks currently being executed, a yielding task can be determined from the firmware upgrade package download task and other tasks, so as to control the suspension of the yielding task, thereby releasing network bandwidth resources and alleviating the problem of tight network resources.
[0098] In S203, determining the giving way task from the firmware upgrade package download task and other tasks based on the priority information of the firmware upgrade package download task and other tasks currently being executed may include: determining a first task having a higher priority than the firmware upgrade package download task, and a second task having a lower priority than the firmware upgrade package download task based on the priority information of the firmware upgrade package download task and other tasks currently being executed by the first domain controller.
[0099] In one case, if the total network resources required by the first task and the firmware upgrade package download task exceed the resource threshold indicated by the first preset condition, it is determined that the yielding task includes the firmware upgrade package download task. The resource threshold is the network resource tolerance value that the first domain controller can normally execute the task.
[0100] For example, if the total network resources required for the first task and the firmware upgrade package download task exceed the resource threshold indicated by the first preset condition, it means that the network resources are still tight when executing the first task and the firmware upgrade package download task, so it is determined that the task to be given priority includes the firmware upgrade package download task, or, the task to be given priority includes the second task and the firmware upgrade package download task.
[0101] In another case, if the total network resources required to be occupied by the first task and the firmware upgrade package downloading task does not exceed the resource threshold indicated by the first preset condition, it is determined that the yielding task includes the second task.
[0102] For another example, if the total network resources required for the first task and the firmware upgrade package download task do not exceed the resource threshold indicated by the first preset condition, it means that the network resources are not tight when executing the first task and the firmware upgrade package download task, so it is determined that the task to give way does not include the firmware upgrade package download task, that is, the task to give way includes the second task.
[0103] During implementation, the network resource value to be released may also be determined based on the resource threshold indicated by the first preset condition and the network resource value currently used by the second domain controller. Then, according to the network resource value to be released, the yielding task is determined in order of priority from low to high. The sum of the network resource values yielded by the yielding task is greater than or equal to the network resource value to be released.
[0104] Through the above process, the yielding task can be determined more accurately to alleviate the problem of network resource shortage.
[0105] During implementation, if the yielding task includes other tasks, the network load monitoring module may send yielding notification information to the application corresponding to the yielding task, so that the application may control the yielding task to be suspended in response to the yielding notification information.
[0106] In the present disclosure, when downloading a firmware upgrade package, if the second domain controller executes a new task that causes a shortage of network bandwidth resources, if the priority of the new task is higher, the download of the firmware upgrade package can be suspended so that the second domain controller can better execute the new task with a higher priority and improve the user experience. Also, if the second domain controller determines that the network bandwidth resources are tight when downloading the firmware upgrade package, it can determine a task with a lower priority than the download task and suspend the low-priority task to ensure efficient execution of the download task. The present disclosure implements monitoring of network bandwidth resources and task balancing, ensuring the download efficiency of the firmware upgrade package while satisfying the execution of other Internet tasks.
[0107] After determining the yielding task, the display terminal can also be controlled to display the task information of the yielding task, including, for example, the task name, occupied network resources, etc., so that the user can select the task that needs to be suspended or closed from the yielding tasks to release network bandwidth resources.
[0108] In S204, when the task to be performed includes the firmware upgrade package download task, the UA of the second domain controller can directly suspend the execution of the firmware upgrade package download task, and send task suspension feedback information to the upgrade master of the first domain controller, so that the first domain controller can determine the third domain controller and entrust the third domain controller to execute the firmware upgrade package download task. Then, the second domain controller can receive the downloaded firmware upgrade package transmitted by the third domain controller.
[0109] Alternatively, the network load monitoring module of the second domain controller may send a yield indication message to the first domain controller when the yielding task includes the firmware upgrade package downloading task, wherein the yield indication message is used to indicate that the firmware upgrade package downloading task is a yielding task in the second domain controller; so that after receiving the yield indication message, the first domain controller generates a pause request in response to the yield indication message; the first domain controller sends the pause request to the second domain controller. The second domain controller receives the pause request sent by the first domain controller, and in response to the pause request, pauses the execution of the firmware upgrade package downloading task.
[0110] Based on the same inventive concept, see Figure 3 As shown, the embodiment of the present disclosure also provides a firmware upgrade package download method, which is applied to a third domain controller and includes:
[0111] S301, receiving a delegate download request sent by a first domain controller; the delegate download request is used to request downloading of a firmware upgrade package;
[0112] S302: Download the firmware upgrade package, and transmit the downloaded firmware upgrade package to the second domain controller indicated by the delegate download request.
[0113] In an optional implementation, the method further includes: periodically sending transmission progress information to the first domain controller, wherein the transmission progress information is used to indicate the transmission progress of the downloaded firmware upgrade package transmitted by the third domain controller to the second domain controller.
[0114] In an optional implementation, after receiving the delegate download request sent by the first domain controller, the method further includes: generating delegate feedback information for indicating acceptance of the delegate download request, and sending the delegate feedback information to the first domain controller.
[0115] During implementation, the third domain controller may receive a delegate download request sent by the first domain controller. The generation process of the delegate download request may refer to the above description and will not be repeated here. The third domain controller downloads the firmware upgrade package according to the delegate download request, and transmits the downloaded firmware upgrade package to the second domain controller indicated by the delegate download request.
[0116] See also Figure 4 The interaction diagram of multiple domain controllers shown in FIG. Figure 4 The firmware upgrade package download method proposed in the present disclosure is described by way of example. Figure 4 It can be seen that each domain controller is deployed with a UA module and a network load monitoring module, and the network load monitoring module is used to monitor the network load status of the domain controller in real time. The first domain controller in this disclosure is a domain controller for managing the upgrade package download service, so Figure 4The domain controller A is the first domain controller, and the first domain controller is provided with a Fota Master.
[0117] In specific implementation, assuming that domain controller B is the second domain controller, the method includes: the FotaMaster of domain controller A requests an OTA task from the OTA Server; when the Fota Master requests the OTA task, that is, there is a new version of the firmware upgrade package, it notifies domain controller B to start executing the firmware upgrade package download task, that is, download the firmware upgrade package from the CDN. In the process of downloading the firmware upgrade package, the network load monitoring module of domain controller B determines whether the network load status of the second domain controller meets the first preset status; if it does, the task to yield is determined from the firmware upgrade package download task and other tasks according to the priority information of the firmware upgrade package download task and other tasks currently executed by the second domain controller. When the yielding task includes the firmware upgrade package download task, the second domain controller can directly suspend downloading the firmware upgrade package; or, the network load monitoring module can also send a yielding indication message to the Fota Master; after receiving the yielding indication message, the first domain controller sends a pause request to the second domain controller, and the second domain controller responds to the pause request and suspends downloading the firmware upgrade package.
[0118] After the second domain controller stops downloading the firmware upgrade package, the first domain controller can also obtain the network load status of the domain controller monitored by the network load monitoring module of other domain controllers, that is, Figure 4 In the Fota Master, the network load status of domain controller A and domain controller C can be obtained; and according to the network load status of other domain controllers, a third domain controller that meets the network resource requirements of the firmware upgrade package download service can be determined from other domain controllers, that is, the third domain controller can be determined from domain controller A and domain controller C. If domain controller C is the third domain controller, a delegate download request is sent to the UA module of the third domain controller, and the UA module of the third domain controller responds to the delegate download request, downloads the firmware upgrade package, and transmits the downloaded firmware upgrade package to the second domain controller, for example, the firmware upgrade package can be transmitted via Ethernet.
[0119] Among them, Fota Master has version collection function, download management function, installation management function, post-processing function, status synchronization function, etc. The above process of the present disclosure involves version collection function and download management function, and the present disclosure does not specifically limit the specific process of other functions. Similarly, the UA module has download function, installation function, activation function, and rollback function. The above process of downloading the firmware upgrade package of the present disclosure involves the download function, and the present disclosure does not specifically limit the specific process of other functions.
[0120] For example, see Figure 5As shown, the method includes: the network load monitoring module can load a configuration file, and the configuration file can be set with information such as the priority information of each task, the bandwidth tolerance value of the domain controller, etc., so that the network load monitoring module can determine the network load status of the domain controller according to the file content of the configuration file, and determine the yielding task, etc. After the Fota Master of the first domain controller requests the OTA task, the UA of the second domain controller is controlled to start executing the firmware upgrade package download task, that is, the second domain controller downloads the firmware upgrade package from the cloud. Among them, the second domain controller can be the domain controller corresponding to the OTA task.
[0121] During the process of the second domain controller executing the firmware upgrade package download task, the network load monitoring module of the second domain controller monitors the network load status of the second domain controller in real time, and determines whether the network load status of the second domain controller meets the first preset status. If it meets the first preset status, it belongs to the scenario where the network bandwidth reaches the overall tolerance, then according to the priority information of the firmware upgrade package download task and other tasks currently being executed, the task to yield is determined from the firmware upgrade package download task and other tasks.
[0122] When the network load monitoring module determines that the yielding task includes the firmware upgrade package downloading task, it sends a yielding indication message to the Fota Master of the first domain controller, i.e., notifies the Fota Master to yield the downloading task. After receiving the yielding indication message, the first domain controller sends a pause request to the second domain controller. The second domain controller responds to the pause request and pauses downloading the firmware upgrade package.
[0123] Subsequently, if the network load monitoring module determines that the network load status of the second domain controller does not meet the first preset status, that is, the scenario of network bandwidth recovery, if the firmware upgrade package task has not been executed by other domain controllers, it can also send task recovery information to Fota Master to notify the download task recovery. After receiving the task recovery information, the first domain controller sends a recovery request to the second domain controller. The second domain controller responds to the recovery request and continues to download the firmware upgrade package.
[0124] See also Figure 6 As shown, after the second domain controller suspends downloading the firmware upgrade package, the FotaMaster of the first domain controller obtains the network load status of the domain controller monitored by the network load monitoring modules of other domain controllers through the network load monitoring module of the first domain controller; according to the network load status of other domain controllers, a third domain controller that meets the network resource requirements of the firmware upgrade package download service is determined from the other domain controllers.
[0125] The first domain controller sends a delegate download request to the third domain controller, and the delegate download request may carry the UA information of the second domain controller, the description information of the downloaded file, the breakpoint information, etc. The UA module of the third domain controller sends a delegate feedback message to the first domain controller, and the delegate feedback message carries the delegate result, and the delegate result includes accepting the delegate or not accepting the delegate. After the third domain controller accepts the delegate, the third domain controller downloads the firmware upgrade package and transmits the downloaded firmware upgrade package to the second domain controller.
[0126] The third domain controller may also periodically send transmission progress information to the first domain controller, where the transmission progress information is used to indicate the transmission progress of the downloaded firmware upgrade package transmitted by the third domain controller to the second domain controller. The second domain controller may also periodically send download progress information to the first domain controller.
[0127] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0128] Based on the same technical concept, the embodiment of the present disclosure also provides a firmware upgrade package download system, including a first domain controller, a second domain controller and a third domain controller;
[0129] The first domain controller is configured to notify the second domain controller to start executing the firmware upgrade package download task after determining that there is a firmware upgrade package that has not been downloaded; in the process of executing the firmware upgrade package download task, if it is determined that the network load state of the second domain controller meets the first preset state, and the firmware upgrade package download task is a yield task, determine a third domain controller that meets the network resource requirements of the firmware upgrade package download service from other domain controllers except the second domain controller, and send a delegate download request to the third domain controller;
[0130] The second domain controller is used to, during the execution of the firmware upgrade package download task, if the network load state of the second domain controller meets the first preset state and the firmware upgrade package download task is a yield task, suspend the execution of the firmware upgrade package download task and receive the downloaded firmware upgrade package transmitted by the third domain controller;
[0131] The third domain controller is used to receive the entrusted download request sent by the first domain controller, download the firmware upgrade package, and transmit the downloaded firmware upgrade package to the second domain controller.
[0132] The execution process of the first domain controller, the second domain controller and the third domain controller, as well as the interaction process between different domain controllers, can refer to the description of the aforementioned method process and will not be described in detail here.
[0133] Based on the same technical concept, the embodiment of the present disclosure also provides a computer device. Figure 7 As shown, it is a schematic diagram of the structure of a computer device 700 provided in an embodiment of the present disclosure, including a processor 701, a memory 702, and a bus 703. Among them, the memory 702 is used to store execution instructions, including a memory 7021 and an external memory 7022; the memory 7021 here is also called an internal memory, which is used to temporarily store the operation data in the processor 701, and the data exchanged with the external memory 7022 such as a hard disk. The processor 701 exchanges data with the external memory 7022 through the memory 7021. When the computer device 700 is running, the processor 701 communicates with the memory 702 through the bus 703, so that the processor 701 executes the following instructions:
[0134] After determining that there is a firmware upgrade package that has not been downloaded, informing the second domain controller to start executing the firmware upgrade package download task;
[0135] In the process of executing the firmware upgrade package download task, if it is determined that the network load state of the second domain controller meets the first preset state, and the firmware upgrade package download task is a yield task, a third domain controller that meets the network resource requirements of the firmware upgrade package download service is determined from other domain controllers except the second domain controller;
[0136] A delegate download request is sent to the third domain controller, wherein the third domain controller is used to download a firmware upgrade package and transmit the downloaded firmware upgrade package to the second domain controller.
[0137] In a possible implementation manner, the instructions of the processor 701, after sending the delegate download request to the third domain controller, further include:
[0138] Receive transmission progress information periodically transmitted by the third domain controller, wherein the transmission progress information is used to indicate the transmission progress of the downloaded firmware upgrade package transmitted by the third domain controller to the second domain controller.
[0139] In a possible implementation manner, the instruction of the processor 701, determining a third domain controller that meets the network resource requirements of the firmware upgrade package download service from other domain controllers except the second domain controller, includes:
[0140] Obtaining, through the network load monitoring module of the first domain controller, the network load status of the domain controller to which it belongs monitored by the network load monitoring modules of other domain controllers;
[0141] According to the network load status of the other domain controllers, a third domain controller that meets the network resource demand of the firmware upgrade package download service is determined from the other domain controllers.
[0142] In one possible implementation, in the instruction of the processor 701, the delegated download request carries the current download progress information of the firmware upgrade package by the second domain controller; the third domain controller is used to download the firmware upgrade package content based on the download progress information; the firmware upgrade package content includes the firmware upgrade package content in the firmware upgrade package that is located after the download progress indicated by the download progress information.
[0143] In a possible implementation manner, in the instruction of the processor 701, determining a third domain controller that meets the network resource requirements of the firmware upgrade package download service from other domain controllers except the second domain controller includes:
[0144] Determine the download progress information of the firmware upgrade package currently being executed by the second domain controller, and the execution progress information of a first task currently being executed that has a higher priority than the firmware upgrade package download task;
[0145] Determining whether a download entrustment condition is met according to the download progress information and the execution progress information of the first task;
[0146] After determining that the delegated download condition is met, a third domain controller that meets the network resource requirements of the firmware upgrade package download task is determined from other domain controllers.
[0147] In a possible implementation manner, after sending the delegate download request to the third domain controller, the instructions of the processor 701 further include: receiving delegate feedback information sent by the third domain controller to indicate acceptance of the delegate download request.
[0148] In a possible implementation manner, the instruction of the processor 701, before determining a third domain controller that meets the network resource requirements of the firmware upgrade package download service from other domain controllers except the second domain controller, further includes:
[0149] receiving a yield indication message sent by the second domain controller; the yield indication message is used to indicate that the firmware upgrade package download task is a yield task in the second domain controller;
[0150] In response to the yield instruction information, a pause request is generated and sent to the second domain controller; the pause request is used to instruct the second domain controller to pause the execution of the firmware upgrade package download task.
[0151] Alternatively, the processor 701 is further configured to execute the following instructions:
[0152] In response to the notification from the first domain controller, start executing the firmware upgrade package download task;
[0153] Acquire a network load state of the second domain controller monitored by a network load monitoring module of the second domain controller, and determine whether the network load state of the second domain controller satisfies a first preset state;
[0154] If the conditions are met, determining a yielding task from among the firmware upgrade package download task and other tasks according to priority information of the firmware upgrade package download task and other tasks currently being executed;
[0155] When the yielding task includes the firmware upgrade package downloading task, the execution of the firmware upgrade package downloading task is suspended, and the downloaded firmware upgrade package transmitted by the third domain controller is received.
[0156] In a possible implementation manner, in the instruction of the processor 701, determining the yielding task from the firmware upgrade package downloading task and other tasks according to priority information of the firmware upgrade package downloading task and other tasks currently being executed includes:
[0157] Determine, according to priority information of the firmware upgrade package download task and other tasks currently executed by the first domain controller, a first task having a higher priority than the firmware upgrade package download task and a second task having a lower priority than the firmware upgrade package download task;
[0158] If the total network resources required to be occupied by the first task and the firmware upgrade package downloading task exceeds the resource threshold indicated by the first preset condition, determining that the yielding task includes the firmware upgrade package downloading task;
[0159] If the total network resources required to be occupied by the first task and the firmware upgrade package downloading task does not exceed the resource threshold indicated by the first preset condition, it is determined that the yielding task includes the second task.
[0160] In a possible implementation manner, in the instruction of the processor 701, when the yielding task includes the firmware upgrade package downloading task, suspending execution of the firmware upgrade package downloading task includes:
[0161] When the yielding task includes the firmware upgrade package downloading task, sending yielding indication information to the first domain controller; the yielding indication information is used to indicate that the firmware upgrade package downloading task is a yielding task in the second domain controller;
[0162] receiving a pause request sent by the first domain controller, wherein the pause request is generated in response to the yield instruction information;
[0163] In response to the pause request, the firmware upgrade package download task is suspended.
[0164] Alternatively, the processor 701 is further configured to execute the following instructions:
[0165] receiving a delegate download request sent by the first domain controller; the delegate download request is used to request downloading of a firmware upgrade package;
[0166] The firmware upgrade package is downloaded, and the downloaded firmware upgrade package is transmitted to the second domain controller indicated by the delegate download request.
[0167] In a possible implementation, the instructions of the processor 701 further include: periodically sending transmission progress information to the first domain controller, wherein the transmission progress information is used to indicate the transmission progress of the downloaded firmware upgrade package transmitted by the third domain controller to the second domain controller.
[0168] In a possible implementation manner, after receiving the delegate download request sent by the first domain controller, the instructions of the processor 701 further include: generating delegate feedback information for indicating acceptance of the delegate download request, and sending the delegate feedback information to the first domain controller.
[0169] The embodiment of the present disclosure also provides a vehicle, which is used to execute the steps of the firmware upgrade package downloading method described in the above method embodiment.
[0170] The embodiments of the present disclosure also provide a computer program product, which carries a program code. The instructions included in the program code can be used to execute the steps of the firmware upgrade package downloading method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.
[0171] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer program product. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0172] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. 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. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.
[0173] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0174] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0175] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable program product that can be executed by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a program product and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned program products include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0176] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for downloading a firmware upgrade package, characterized in that: Applied to the first domain controller, including: After determining that there is a firmware upgrade package that has not been downloaded, informing the second domain controller to start executing the firmware upgrade package download task; In the process of executing the firmware upgrade package download task, if it is determined that the network load state of the second domain controller meets the first preset state, and the firmware upgrade package download task is a yield task, a third domain controller that meets the network resource requirements of the firmware upgrade package download service is determined from other domain controllers except the second domain controller; A delegate download request is sent to the third domain controller, wherein the third domain controller is used to download a firmware upgrade package and transmit the downloaded firmware upgrade package to the second domain controller.
2. The method according to claim 1, characterized in that After sending the delegate download request to the third domain controller, the method further includes: Receive transmission progress information periodically transmitted by the third domain controller, wherein the transmission progress information is used to indicate the transmission progress of the downloaded firmware upgrade package transmitted by the third domain controller to the second domain controller.
3. The method according to claim 1, characterized in that Determining a third domain controller that meets the network resource requirements of the firmware upgrade package download service from other domain controllers except the second domain controller includes: Obtaining, through the network load monitoring module of the first domain controller, the network load status of the domain controller to which it belongs monitored by the network load monitoring modules of other domain controllers; According to the network load status of the other domain controllers, a third domain controller that meets the network resource demand of the firmware upgrade package download service is determined from the other domain controllers.
4. The method according to claim 1, characterized in that The delegated download request carries the current download progress information of the firmware upgrade package by the second domain controller; the third domain controller is used to download the firmware upgrade package content based on the download progress information; the firmware upgrade package content includes the firmware upgrade package content in the firmware upgrade package that is located after the download progress indicated by the download progress information.
5. The method according to claim 1, characterized in that The determining, from other domain controllers except the second domain controller, a third domain controller that meets the network resource requirements of the firmware upgrade package download service includes: Determine the download progress information of the firmware upgrade package currently being executed by the second domain controller, and the execution progress information of a first task currently being executed that has a higher priority than the firmware upgrade package download task; Determining whether a download entrustment condition is met according to the download progress information and the execution progress information of the first task; After determining that the delegated download condition is met, a third domain controller that meets the network resource requirements of the firmware upgrade package download task is determined from other domain controllers.
6. The method according to claim 1, characterized in that After sending the delegate download request to the third domain controller, the method further includes: Receive the delegation feedback information sent by the third domain controller to indicate acceptance of the delegation download request.
7. The method according to claim 1, characterized in that Before determining a third domain controller that meets the network resource requirements of the firmware upgrade package download service from other domain controllers except the second domain controller, the method further includes: receiving a yield indication message sent by the second domain controller; the yield indication message is used to indicate that the firmware upgrade package download task is a yield task in the second domain controller; In response to the yield instruction information, a pause request is generated and sent to the second domain controller; the pause request is used to instruct the second domain controller to pause the execution of the firmware upgrade package download task.
8. A method for downloading a firmware upgrade package, characterized in that: Applied to the second domain controller, including: In response to the notification from the first domain controller, start executing the firmware upgrade package download task; Acquire a network load state of the second domain controller monitored by a network load monitoring module of the second domain controller, and determine whether the network load state of the second domain controller satisfies a first preset state; If the conditions are met, determining a yielding task from among the firmware upgrade package download task and other tasks according to priority information of the firmware upgrade package download task and other tasks currently being executed; When the yielding task includes the firmware upgrade package downloading task, the execution of the firmware upgrade package downloading task is suspended, and the downloaded firmware upgrade package transmitted by the third domain controller is received.
9. The method according to claim 8, characterized in that The step of determining the yielding task from among the firmware upgrade package download task and other tasks according to priority information of the firmware upgrade package download task and other tasks currently being executed includes: Determine, according to priority information of the firmware upgrade package download task and other tasks currently executed by the first domain controller, a first task having a higher priority than the firmware upgrade package download task and a second task having a lower priority than the firmware upgrade package download task; If the total network resources required to be occupied by the first task and the firmware upgrade package downloading task exceeds the resource threshold indicated by the first preset condition, determining that the yielding task includes the firmware upgrade package downloading task; If the total network resources required to be occupied by the first task and the firmware upgrade package downloading task does not exceed the resource threshold indicated by the first preset condition, it is determined that the yielding task includes the second task.
10. The method according to claim 8, characterized in that When the yielding task includes the firmware upgrade package downloading task, suspending the execution of the firmware upgrade package downloading task includes: When the yielding task includes the firmware upgrade package downloading task, sending yielding indication information to the first domain controller; the yielding indication information is used to indicate that the firmware upgrade package downloading task is a yielding task in the second domain controller; receiving a pause request sent by the first domain controller, wherein the pause request is generated in response to the yield instruction information; In response to the pause request, the firmware upgrade package download task is suspended.
11. A method for downloading a firmware upgrade package, characterized in that: Applied to the third domain controller, including: receiving a delegate download request sent by the first domain controller; the delegate download request is used to request downloading of a firmware upgrade package; The firmware upgrade package is downloaded, and the downloaded firmware upgrade package is transmitted to the second domain controller indicated by the delegate download request.
12. The method according to claim 11, characterized in that Also includes: Periodically sending transmission progress information to the first domain controller, wherein the transmission progress information is used to indicate the transmission progress of the downloaded firmware upgrade package transmitted by the third domain controller to the second domain controller.
13. The method according to claim 11, characterized in that After receiving the delegate download request sent by the first domain controller, the method further includes: Generate delegation feedback information for indicating acceptance of the delegation download request, and send the delegation feedback information to the first domain controller.
14. A firmware upgrade package download system, characterized in that: including a first domain controller, a second domain controller and a third domain controller; The first domain controller is used to notify the second domain controller to start executing the firmware upgrade package download task after determining that there is a firmware upgrade package that has not been downloaded; In the process of executing the firmware upgrade package download task, if it is determined that the network load state of the second domain controller meets the first preset state, and the firmware upgrade package download task is a yield task, a third domain controller that meets the network resource requirements of the firmware upgrade package download service is determined from other domain controllers except the second domain controller, and a delegate download request is sent to the third domain controller; The second domain controller is used to, during the execution of the firmware upgrade package download task, if the network load state of the second domain controller meets the first preset state and the firmware upgrade package download task is a yield task, suspend the execution of the firmware upgrade package download task and receive the downloaded firmware upgrade package transmitted by the third domain controller; The third domain controller is used to receive the entrusted download request sent by the first domain controller, download the firmware upgrade package, and transmit the downloaded firmware upgrade package to the second domain controller.
15. A vehicle, characterized in that: The vehicle is used to execute the steps of the firmware upgrade package downloading method as described in any one of claims 1 to 13.
16. A computer program product comprising a computer program, characterized in that When the computer program is executed, the steps of the firmware upgrade package downloading method according to any one of claims 1 to 13 are implemented.
Citation Information
Cited By
Firmware remote upgrading method and device and related equipment
CN120455275A
