Upgrade package downloading control method and device, computer equipment and storage medium

By selecting the appropriate download resource scheduling strategy based on the vehicle's work scenario, the problem of firmware upgrade package occupies system resources is solved, ensuring that other equipment in the vehicle is operating normally and improving user experience.

CN119496795APending Publication Date: 2025-02-21SHANGHAI JIDU AUTOMOBILE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311051392.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-18
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

When upgrading the vehicle firmware, the download of the firmware upgrade package will occupy system resources, affecting the normal operation of other devices, resulting in the vehicle being unable to use normally and the user experience is poor.

Method used

By judging the current work scenario of the vehicle, selecting the appropriate download resource scheduling strategy to download the firmware upgrade package, avoiding seizing system resources, and switching the download resource scheduling strategy in real time when switching the work scenario.

Benefits of technology

Ensure that other devices operate normally during firmware upgrade, avoid affecting the normal use of the vehicle, improve user experience, and meet the resource usage needs of various functions of the vehicle during uninterrupted download.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119496795A_ABST
    Figure CN119496795A_ABST
Patent Text Reader

Abstract

The invention provides an upgrade package downloading control method and device, computer equipment and a storage medium, and the method comprises the steps: responding to a downloading condition meeting a firmware upgrade package, and determining a first working scene of a vehicle based on first state data of the vehicle; according to a first working scene of the vehicle, selecting a first downloading resource scheduling strategy under the first working scene for the vehicle; according to the first downloading resource scheduling strategy, scheduling system resources to download a firmware upgrade package; and in the process that the vehicle downloads the firmware upgrade package, when the vehicle is switched to a second working scene, switching the first downloading resource scheduling strategy to a second downloading resource scheduling strategy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of firmware upgrade, and in particular to a download control method, device, computer equipment and storage medium for an upgrade package. Background Art

[0002] When upgrading the firmware in the vehicle, Over-The-Air technology (OTA) can be used to implement the firmware upgrade.

[0003] Generally, the file size of a firmware upgrade package is relatively large and will occupy system resources when being downloaded. This will affect the operation of other devices that also use system resources, causing the vehicle to be unable to be used normally and a poor user experience. Summary of the invention

[0004] The embodiments of the present disclosure at least provide a method, apparatus, computer device and storage medium for controlling downloading of an upgrade package.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for controlling download of an upgrade package, comprising: in response to satisfying a download condition for a firmware upgrade package, determining a first working scenario of a vehicle based on first status data of the vehicle; selecting a first download resource scheduling strategy under the first working scenario for the vehicle according to the first working scenario of the vehicle; scheduling system resources for downloading a firmware upgrade package according to the first download resource scheduling strategy; and when the vehicle switches to a second working scenario during the process of the vehicle downloading the firmware upgrade package, switching the first download resource scheduling strategy to a second download resource scheduling strategy.

[0006] Based on the above first aspect, under the condition that the firmware upgrade package is downloaded, the first working scene of the vehicle can be determined according to the current state data of the vehicle, and the first working scene determined here is used to express the usage of various functions of the vehicle. In this way, according to the first working scene of the vehicle, a more suitable download resource scheduling strategy can be selected to download the firmware upgrade package to avoid occupying the system resources required by other devices currently in use in the vehicle during operation, so that the normal operation of other devices can be guaranteed under the selected download resource scheduling strategy, the vehicle can be used normally, and the user experience will be better. Further, when the working scene is switched, the embodiment of the present disclosure can switch the download resource scheduling strategy of the upgrade package in real time to continue downloading the firmware upgrade package using the switched download resource scheduling strategy. That is, the embodiment of the present disclosure can switch to different download resource scheduling strategies in real time according to the switching of the vehicle working scene during the firmware upgrade package download process to continue downloading the firmware upgrade package. By adopting the download resource scheduling strategy adapted to the working scene after the switch, the allocation of system resources can be adjusted in time, so that the resource usage requirements of various functions of the vehicle can be better met in the case of uninterrupted firmware upgrade package download process.

[0007] In an optional embodiment, the vehicle is determined to switch to a second working scene according to the following steps: obtaining the vehicle driving function usage status and the on-board application usage status of the vehicle; when any of the vehicle driving function usage status and the on-board application usage status of the vehicle switches state, determining the second working scene after the vehicle switches from multiple working scenes; wherein different working scenes correspond to different vehicle driving function usage states, or different working scenes correspond to different on-board application usage states.

[0008] In this way, not only the switching of the vehicle driving function usage status will affect the switching of the working scene, but also the different usage status of the vehicle-mounted application will affect the switching of the working scene, so that a more reasonable download resource scheduling strategy can be adopted. For example, the working scene here can include the vehicle driving scene, the in-cabin application usage scene, and the vehicle leaving scene, etc.; the in-cabin application usage scene can include at least one application usage sub-scene, and in the case of including multiple application usage sub-scenes, different application usage sub-scenes correspond to different usage states of the vehicle-mounted application.

[0009] In an optional implementation, a download resource scheduling strategy in any working scenario is determined according to the following steps; any working scenario is the first working scenario or the second working scenario; according to the working scenario, the system resource occupancy rate for downloading the firmware upgrade package corresponding to each of the multiple system resources is determined; according to the total amount of system resources of various system resources in the vehicle and the system resource occupancy rate for downloading the firmware upgrade package corresponding to each system resource, the download resource scheduling strategy is determined, and the download resource scheduling strategy is used to schedule system resources for downloading the firmware upgrade package.

[0010] In this way, according to different working scenarios, a more suitable system resource usage rate when downloading the firmware upgrade package can be determined in a targeted manner, and the usage of each system resource is also taken into consideration when determining the system resource usage rate, so the selection strategy is more detailed.

[0011] In an optional implementation, the system resource occupancy rate is determined according to the working scenario, including: determining a first system resource occupancy rate under the working scenario according to the working scenario; determining a maximum system resource occupancy rate of the vehicle for system resources according to the system resource usage of the vehicle; and determining the system resource occupancy rate for downloading a firmware upgrade package according to the first system resource occupancy rate and the maximum system resource occupancy rate.

[0012] In this way, on the basis of considering the working scenario, the system resource usage of the vehicle is also considered. For example, when the current system resource usage is high, in order to better meet the use of vehicle functions, the system resource occupancy rate used for downloading firmware upgrade packages in the corresponding working scenario can be reduced, so as to better meet the needs of vehicle functions.

[0013] In an optional implementation, the download resource scheduling strategy is determined based on the total amount of system resources of various system resources in the vehicle and the system resource occupancy rate for downloading the firmware upgrade package corresponding to each system resource, including: determining the total amount of network bandwidth resources of the vehicle based on the network status of the vehicle, and determining the amount of network bandwidth resources used for downloading the firmware upgrade package based on the total amount of network bandwidth resources and the network bandwidth resource occupancy rate in the system resource occupancy rate; determining the first system resource amount initially allocated for downloading the firmware upgrade package for the other system resources based on the total amount of system resources other than the network bandwidth resources in the vehicle and the corresponding system resource occupancy rate; determining the second system resource amount of other system resources matching the network bandwidth resource amount based on the network bandwidth resource amount used for downloading the firmware upgrade package; determining the download resource scheduling strategy based on the network bandwidth resource amount, the first system resource amount and the second system resource amount of the other system resources; wherein, in the download resource scheduling strategy, the resource scheduling amount of the other system resources is the smaller value between the first system resource amount and the second system resource amount.

[0014] In the above implementation, different system resources in the vehicle are mutually constrained. For example, if the currently available network bandwidth resources are small, the transmission of input and output data per unit time will be affected, which will lead to a decrease in the demand for input and output resources. Therefore, the disclosed embodiment can adaptively adjust the download resource scheduling strategy according to different network states, so that the final scheduling of system resources is more reasonable.

[0015] In an optional implementation, the firmware upgrade package includes upgrade packages corresponding to multiple firmwares in the vehicle; the scheduling system resources to download the firmware upgrade package includes: determining the priority information of each firmware based on the user's historical usage data of the vehicle functions corresponding to each firmware in the firmware upgrade package, and the security level corresponding to the vehicle function; and downloading the upgrade packages corresponding to each firmware from the firmware upgrade package one by one according to the priority information.

[0016] In this way, the upgrade packages corresponding to more important or commonly used firmware can be downloaded to the vehicle first to ensure that the vehicle can upgrade these firmware first after receiving the upgrade packages corresponding to these firmware, so as to prioritize the safety of vehicle driving.

[0017] In an optional implementation, according to the priority information, the upgrade packages corresponding to each of the firmwares are downloaded one by one from the firmware upgrade package, including: based on the first status data of the vehicle, determining the continuous download time that can currently be used to download the firmware upgrade package, and determining the estimated download time for downloading the upgrade packages corresponding to each of the firmwares in the firmware upgrade package according to the download resource scheduling strategy; based on the estimated download time corresponding to the upgrade packages of each of the firmwares and the priority information corresponding to each of the firmwares, determining, from the multiple upgrade packages corresponding to the firmwares, an upgrade package corresponding to at least one firmware whose corresponding download time is less than or equal to the estimated download time; according to the priority information corresponding to the at least one firmware, downloading the upgrade packages corresponding to each of the firmwares one by one from the firmware upgrade package.

[0018] In this way, in addition to determining the sorting order of the firmware upgrade packages during downloading by priority, the firmware upgrade packages are also screened by the time limit of the downloading time, which can avoid wasting effective downloading time and reducing the download efficiency of the firmware upgrade packages.

[0019] In a second aspect, an embodiment of the present disclosure also provides a download control device for an upgrade package, comprising: a determination module, for determining a first working scenario of a vehicle based on first status data of the vehicle in response to satisfying a download condition for a firmware upgrade package; a selection module, for selecting a first download resource scheduling strategy under the first working scenario for the vehicle according to the first working scenario of the vehicle; a scheduling module, for scheduling system resources for downloading the firmware upgrade package according to the first download resource scheduling strategy; and a switching module, for switching the first download resource scheduling strategy to a second download resource scheduling strategy when the vehicle switches to a second working scenario during the process of the vehicle downloading the firmware upgrade package.

[0020] In an optional embodiment, the vehicle is determined to switch to a second working scene according to the following steps: obtaining the vehicle driving function usage status and the on-board application usage status of the vehicle; when any of the vehicle driving function usage status and the on-board application usage status of the vehicle switches state, determining the second working scene after the vehicle switches from multiple working scenes; wherein different working scenes correspond to different vehicle driving function usage states, or different working scenes correspond to different on-board application usage states.

[0021] In an optional implementation, a download resource scheduling strategy in any working scenario is determined according to the following steps; any working scenario is the first working scenario or the second working scenario; according to the working scenario, the system resource occupancy rate for downloading the firmware upgrade package corresponding to each of the multiple system resources is determined; according to the total amount of system resources of various system resources in the vehicle and the system resource occupancy rate for downloading the firmware upgrade package corresponding to each system resource, the download resource scheduling strategy is determined, and the download resource scheduling strategy is used to schedule system resources for downloading the firmware upgrade package.

[0022] In an optional implementation, when determining the system resource occupancy rate based on the working scenario: determine a first system resource occupancy rate under the working scenario based on the working scenario; determine the maximum system resource occupancy rate of the vehicle for system resources based on the system resource usage of the vehicle; determine the system resource occupancy rate for downloading the firmware upgrade package based on the first system resource occupancy rate and the maximum system resource occupancy rate.

[0023] In an optional implementation, when determining the download resource scheduling strategy based on the total amount of system resources of various system resources in the vehicle and the system resource occupancy rate for downloading the firmware upgrade package corresponding to each system resource: determine the total amount of network bandwidth resources of the vehicle based on the network status of the vehicle, and determine the amount of network bandwidth resources for downloading the firmware upgrade package based on the total amount of network bandwidth resources and the network bandwidth resource occupancy rate in the system resource occupancy rate; determine the first system resource amount initially allocated for downloading the firmware upgrade package for the other system resources based on the total amount of system resources other than the network bandwidth resources in the vehicle and the corresponding system resource occupancy rate; determine the second system resource amount of other system resources matching the network bandwidth resource amount based on the network bandwidth resource amount for downloading the firmware upgrade package; determine the download resource scheduling strategy based on the network bandwidth resource amount, the first system resource amount and the second system resource amount of the other system resources; wherein, in the download resource scheduling strategy, the resource scheduling amount of the other system resources is the smaller value between the first system resource amount and the second system resource amount.

[0024] In an optional implementation, the firmware upgrade package includes upgrade packages corresponding to multiple firmwares in the vehicle; when the scheduling module schedules system resources to download the firmware upgrade package, it is used to: determine the priority information of each firmware based on the user's historical usage data of the vehicle functions corresponding to each firmware in the firmware upgrade package, and the security level corresponding to the vehicle function; and download the upgrade packages corresponding to each firmware from the firmware upgrade package one by one according to the priority information.

[0025] In an optional embodiment, when the scheduling module downloads the upgrade packages corresponding to each of the firmwares one by one from the firmware upgrade package according to the priority information, it is used to: determine the continuous download time that can be currently used to download the firmware upgrade package based on the first status data of the vehicle, and determine the estimated download time for downloading the upgrade packages corresponding to each of the firmwares in the firmware upgrade package according to the download resource scheduling strategy; based on the estimated download time corresponding to the upgrade packages of each of the firmwares and the priority information corresponding to each of the firmwares, determine, from the multiple upgrade packages corresponding to the firmwares, an upgrade package corresponding to at least one firmware whose corresponding download time is less than or equal to the estimated download time; and download the upgrade packages corresponding to each of the firmwares one by one from the firmware upgrade package according to the priority information corresponding to the at least one firmware.

[0026] In a third aspect, an optional implementation of the present disclosure further provides a computer device, a processor, and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the processor is used to execute the machine-readable instructions stored in the memory, and when the machine-readable instructions are executed by the processor, the machine-readable instructions perform the steps of the above-mentioned first aspect, or any possible implementation of the first aspect.

[0027] In a fourth aspect, an optional implementation of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the steps of the above-mentioned first aspect, or any possible implementation of the first aspect are executed.

[0028] The download control method, device, computer equipment and storage medium of the upgrade package provided in the disclosed embodiment can determine the first working scenario of the vehicle according to the current status data of the vehicle when the download conditions of the firmware upgrade package are met. The first working scenario determined here is used to express the usage of each device in the vehicle. In this way, according to the first working scenario of the vehicle, a more suitable download resource scheduling strategy can be selected to download the firmware upgrade package to avoid occupying the system resources required by other devices currently in use in the vehicle during operation, so that the normal operation of other devices can be guaranteed under the selected download resource scheduling strategy, the vehicle can be used normally, and the user experience will be better.

[0029] Furthermore, when the working scene switches, the download resource scheduling strategy for the upgrade package can also be switched to specifically meet the actual situation and requirements of the firmware upgrade package download in the vehicle. That is, during the firmware upgrade package download process, the disclosed embodiment can switch to different download resource scheduling strategies in real time according to the switching of the vehicle working scene to continue downloading the firmware upgrade package. By adopting the download resource scheduling strategy adapted to the working scene after the switch, the allocation of system resources can be adjusted in time, so that the resource usage requirements of various functions of the vehicle can be better met without interrupting the firmware upgrade package download process.

[0030] 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

[0031] Figure 1 A flow chart of a download control method of an upgrade package provided by an embodiment of the present disclosure is shown;

[0032] Figure 2 A flow chart for determining a first working scenario provided by an embodiment of the present disclosure is shown;

[0033] Figure 3 A schematic diagram of an upgrade package download control system provided by an embodiment of the present disclosure is shown;

[0034] Figure 4 A schematic diagram of a download control device for an upgrade package provided by an embodiment of the present disclosure is shown;

[0035] Figure 5 A schematic diagram of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be described clearly and completely in conjunction with the drawings in the embodiments of the present disclosure. It has been found through research that when receiving a firmware upgrade package to implement a firmware upgrade using OTA technology, since the file size of the firmware upgrade package is relatively large, it will also occupy the system resources required for the cockpit system control, navigation, multimedia devices and other devices in the vehicle when downloading, which will affect the normal operation of these running devices, thereby causing the vehicle to be unable to be used normally and the user experience to be poor.

[0037] Based on the above research, the present disclosure provides a download control method for an upgrade package. When the download conditions of the firmware upgrade package are met, the first working scenario of the vehicle can be determined according to the current status data of the vehicle. The first working scenario determined here is used to express the usage of each device in the vehicle. In this way, according to the first working scenario of the vehicle, a more suitable download resource scheduling strategy can be selected to download the firmware upgrade package to avoid occupying the system resources required by other devices currently in use in the vehicle during operation, so that the normal operation of other devices can be guaranteed under the selected download resource scheduling strategy, the vehicle can be used normally, and the user experience will be better.

[0038] Furthermore, during the firmware upgrade package download process, the disclosed embodiment can switch to different download resource scheduling strategies in real time to continue downloading the firmware upgrade package according to the switching of the vehicle working scene. By adopting the download resource scheduling strategy adapted to the working scene after switching, the allocation of system resources can be adjusted in time, thereby better meeting the resource usage requirements of various functions of the vehicle without interrupting the firmware upgrade package download process.

[0039] To facilitate understanding of this embodiment, a download control method for an upgrade package disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the download control method for the upgrade package provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example: a terminal device or a server or other processing device. The terminal device can be a vehicle-mounted device. The vehicle-mounted device here has a data receiving function and has certain computing power, and can analyze and process the received data and make decisions. In some possible implementations, the download control method for the upgrade package can be implemented by a processor calling a computer-readable instruction stored in a memory.

[0040] The following is an explanation of the download control method of the upgrade package provided in the embodiment of the present disclosure.

[0041] See also Figure 1 FIG. 1 is a flowchart of a method for controlling downloading of an upgrade package provided by an embodiment of the present disclosure, the method comprising:

[0042] S101: In response to satisfying a download condition of a firmware upgrade package, determining a first working scenario of the vehicle based on first state data of the vehicle;

[0043] S102: According to a first working scenario of the vehicle, selecting a first download resource scheduling strategy in the first working scenario for the vehicle;

[0044] S103: Scheduling system resources to download the firmware upgrade package according to the first download resource scheduling strategy;

[0045] S104: When the vehicle switches to a second working scenario during the process of downloading the firmware upgrade package, the first download resource scheduling strategy is switched to a second download resource scheduling strategy.

[0046] With respect to the above S101, the firmware and the firmware upgrade package are first described. Since the embodiments of the present disclosure are specifically aimed at upgrading the firmware of the vehicle, the firmware described here specifically refers to the firmware under the vehicle. Specifically, the firmware can be an automatic driving firmware for the vehicle, or an environmental detection firmware for the vehicle safety, or it can be a multimedia-related human-computer interaction firmware, such as a firmware that provides a voice interaction function, etc., which is not specifically limited in the embodiments of the present disclosure.

[0047] When upgrading the firmware, in one possible case, a firmware upgrade package for firmware upgrade can be sent to the vehicle through the cloud or server. In terms of the included content, the firmware upgrade package can specifically include the differential file required when the original file currently applied by the firmware is updated to the target file used under the new version, or it can also include the target file directly selected under the firmware for updating.

[0048] In addition, for the indicated firmware, in one possible case, if there is only one firmware to be upgraded, the corresponding firmware upgrade package may include an upgrade package corresponding to the firmware selected for upgrade. In another possible case, if there are multiple firmware to be upgraded, the corresponding firmware upgrade package may specifically include upgrade packages corresponding to the multiple firmwares, or there is one upgrade package corresponding to each firmware, and multiple upgrade packages corresponding to each firmware are issued to the vehicle.

[0049] When determining whether the download condition of the firmware upgrade package is met, it can be specifically set to determine that the download condition is met when receiving an instruction from the cloud or server to send a firmware upgrade to the vehicle. That is, meeting the download condition can at least correspond to the following scenario: determining that there is a firmware upgrade package sent by the cloud or server to the vehicle.

[0050] When it is determined that the download conditions of the firmware upgrade package are met, the first working scene of the vehicle can be determined according to the first state data of the vehicle. The first working scene of the vehicle determined under the first state data here can also specifically indicate the current state data before the state data changes, and the corresponding current working scene. Here, the first state data of the vehicle can be specifically determined according to the use state of the vehicle driving function and the use state of the vehicle-mounted application. The use state of the vehicle driving function indicates whether the current vehicle is being driven, which can be specifically expressed as driving state, reversing state, non-driving state, leaving the vehicle and locking state, etc. In the use state of the vehicle-mounted application, the vehicle-mounted application can specifically include audio and video applications, reversing display applications, navigation applications, etc. under the entertainment function. The use state of the vehicle-mounted application can be specifically determined according to whether these vehicle-mounted applications are enabled and the enabled state. The enabled state includes running in the background or being used in the foreground.

[0051] When determining the first working scene of the vehicle, the first working scene can be determined according to the selected device. For example, taking the vehicle driving function usage status and multiple applications including audio and video applications and reversing display applications listed in the above example as examples, three possible working scenes can be determined, including vehicle driving scene, in-cabin application usage scene, and out-of-car scene. The application usage is different in different working scenes.

[0052] For example, the first working scene of the vehicle can be determined by the use state of the vehicle driving function and the use state of the vehicle-mounted application in the following manner. Figure 2 As shown, a flow chart for determining a first working scenario provided by an embodiment of the present disclosure is as follows:

[0053] S201: Acquire vehicle driving status;

[0054] S202: Determine whether the vehicle driving state is a driving state, if so, determine that the first working scene is a vehicle driving scene; if not, execute S203;

[0055] S203: Obtaining the working status of the audio and video application;

[0056] S204: Determine whether the audio and video application is in working state, if so, determine that the first working scene is the in-cabin application use scene; if not, execute S205;

[0057] S205: Acquire the usage status of the vehicle door lock;

[0058] S206: Determine whether the use state of the vehicle door lock is the locked state. If so, determine that the first working scene is the leaving vehicle scene; if not, determine that the first working scene is the leaving vehicle locking scene.

[0059] That is, when determining the first working scene in the above manner, the devices with different functions are first sorted, for example, the driving state of the vehicle is detected first, then the working state of the audio-visual device, and finally the use state of the vehicle door lock. If the first working scene can be determined by the working state corresponding to the device that is sorted first, there is no need to continue to perform the acquisition or judgment steps thereunder, which can reduce the data acquisition and judgment process as much as possible.

[0060] However, in another possible case, parallel synchronous judgment can also be performed, such as executing steps S201, S203, and S205 at the same time, and determining the first working scene by obtaining the working status of each device. Compared with the method of obtaining the working status of each device one by one and then confirming the current working scene one by one in the above example, this method uses the method of synchronous acquisition and comprehensive judgment, and the time required in some cases will be less. For example, in the above example, it is necessary to proceed to step S206 to determine the first working scene, but in this example, only two steps are required to determine the first working scene.

[0061] Here, the above embodiments only select some possible exemplary situations for illustration, and other solutions that can be implemented under the same concept are also within the protection scope of this application.

[0062] With respect to the above S102, when the first working scenario of the vehicle is determined according to the above steps, a first download resource scheduling strategy may be selected for the vehicle according to the determined first working scenario.

[0063] Here, since the working scene of the vehicle is dynamically changing, if there is a switch in the working scene during the download of the firmware upgrade package, the corresponding download resource scheduling strategy will also be updated and changed. For example, when the first working scene of the vehicle is switched to the second working scene, the first download scheduling strategy under the first working scene will be changed to the second download scheduling strategy under the second working scene. For details, please refer to the following description of step S104. The first working scene and the second working scene are only to distinguish between two different working scenes before and after the working scene is switched, and it does not mean that the vehicle has only two different working scenes.

[0064] In specific implementation, for different working scenarios, the method of determining the download resource scheduling strategy is similar, so the following directly describes the method of determining the download resource scheduling strategy in any working scenario. Any working scenario described here includes the first working scenario and the second working scenario described above.

[0065] Specifically, according to the working scenario, the system resource occupancy rate of each of the multiple system resources for downloading the firmware upgrade package can be determined; according to the total amount of system resources of various system resources in the vehicle and the system resource occupancy rate of each system resource for downloading the firmware upgrade package, the download resource scheduling strategy can be determined, and the download resource scheduling strategy is used to schedule system resources for downloading the firmware upgrade package.

[0066] Here, the system resources specifically include network bandwidth resources and other system resources, and other system resources specifically include a central processing unit (CPU), a graphics processing unit (Graphics Processing Unit), an interface (I / O), and memory resources for data processing, etc. In addition, when determining the system resource occupancy rate, it can also be selected to replace it with determining the system resource occupancy amount. The difference between determining the system resource occupancy rate or the system resource occupancy amount is that the system resource occupancy rate expresses a specific occupancy ratio, while the system resource occupancy amount expresses a specific occupancy size.

[0067] Next, taking the determination of system resource occupancy rate as an example, the method of determining the download resource scheduling strategy is specifically described.

[0068] In view of the above description of the background technology, cockpit system control, navigation, multimedia devices and other devices will also occupy at least part of these system resources. In order to avoid preempting system resources when downloading the firmware upgrade package, which causes these devices to be unable to occupy sufficient system resources normally, the system resource occupancy rate corresponding to the system resources that can be called upon for downloading the current firmware upgrade package can be determined based on the first working scenario determined by utilizing the working status of these devices.

[0069] Here, when determining the system resource occupancy rate, since different devices occupy different types of system resources and occupy different amounts of resources, the remaining system resources that can be used to download the firmware upgrade package in different current working scenarios are also different in terms of the amount of resources of different types. For example, taking the central processing unit in the system resources as an example, if the current working scenario is determined to be a vehicle driving scenario in the above steps, more resources of the central processing unit will be occupied, and the amount of resources that can be used to download the firmware upgrade package will be relatively small; and if the current working scenario is determined to be an in-cabin application usage scenario in the above steps, the amount of resources occupied by the central processing unit will be smaller than in the vehicle driving scenario, so the amount of resources that can be used to download the firmware upgrade package will be relatively large.

[0070] Therefore, when determining the system resource occupancy rate for downloading the firmware upgrade package based on the current working scenario of the vehicle, the download resource scheduling strategy can be determined based on the total system resource occupancy rate of various system resources in the vehicle and the system resource occupancy rate for downloading the firmware upgrade package corresponding to each system resource. The download resource scheduling strategy is used to schedule system resources for downloading the firmware upgrade package.

[0071] When determining the system resource occupancy rate according to the working scenario, specifically, a first system resource occupancy rate under the working scenario can be determined according to the working scenario; the maximum system resource occupancy rate of the vehicle for system resources can be determined according to the system resource usage of the vehicle; and the system resource occupancy rate for downloading the firmware upgrade package can be determined according to the first system resource occupancy rate and the maximum system resource occupancy rate.

[0072] Here, the first system resource occupancy rate can be determined by the working scenario. The first system resource occupancy rate refers to the predetermined proportion of system resources required to be occupied by the equipment in the vehicle under the working scenario, such as the maximum occupancy rate. For example, it can be determined that in the vehicle driving scenario, the CPU proportion required to be occupied by the equipment in the vehicle is 70%, the corresponding application usage scenario in the cockpit is 50%, the corresponding leaving the vehicle scenario is 20%, and the corresponding leaving the vehicle and locking the scene is 0%. Taking the vehicle driving scenario as an example, the first system resource occupancy rate is 70%. Furthermore, it can be determined accordingly that the maximum CPU proportion that can be scheduled and allocated when the firmware upgrade package is downloaded is 30%.

[0073] In addition, since the above determination is the maximum occupancy rate of system resources by the equipment in the vehicle, rather than the occupancy rate during actual use, if the occupancy rate of system resources by the equipment in the vehicle during actual use does not reach the maximum occupancy rate, it is also possible to choose to occupy a portion of the system resources. Therefore, the maximum system resource occupancy rate of the vehicle for system resources can also be determined based on the system resource usage of the vehicle. For example, in the above example, the maximum CPU ratio occupied by the device in the vehicle driving scenario is 70%, but the occupancy rate in actual use is only 60%, and it can be determined accordingly that the reserved 40% of CPU resources can be allocated to downloading the firmware upgrade package.

[0074] Therefore, in this case, there can be multiple ways to allocate system resource occupancy rates to the firmware upgrade package download. Taking the system resources including CPU as an example, the first system resource occupancy rate determined above is 70%, and the maximum system resource occupancy rate of the vehicle for system resources is 60%. In the first case, the system resource occupancy rate for the firmware upgrade package download can be directly determined according to the first system resource occupancy rate, that is, 30%. In this way, by considering the maximum occupancy rate of the system resources of the device in the vehicle under each working scenario as the first system resource occupancy rate, when determining the system resource occupancy rate for the firmware upgrade package download, since the maximum occupancy rate of the system resources of the device in the vehicle is considered, the system resource occupancy rate selected when the firmware upgrade package is downloaded is used to schedule the system resources for downloading the firmware upgrade package, and it will not affect the normal use of system resources by the device in the vehicle. Secondly, since the first system resource occupancy rate of the device for the system resources can be determined in advance, when the current working scenario of the vehicle is determined, the system resource occupancy rate that can be allocated for downloading the firmware upgrade package can be directly determined accordingly, so the judgment logic is simpler and more convenient when allocating system resources for downloading the firmware upgrade package.

[0075] In another possible case, since the maximum system resource occupancy rate is less than or equal to the first system resource occupancy rate, for example, in the above example, the actual system resource occupancy rate is only 60%, which does not reach 70%. Therefore, it is also possible to select the maximum system occupancy rate to determine the system resource occupancy rate for downloading the firmware upgrade package. For example, the system resource occupancy rate is selected to be 40%. In this way, compared with the above-mentioned direct selection of the system resource occupancy rate for downloading the firmware upgrade package in the current working scenario, this flexible adjustment method can reduce the waste of system resources, and can also ensure that as many system resources as possible can be obtained when downloading the firmware upgrade package, thereby improving the download efficiency.

[0076] Furthermore, since the occupation of system resources by vehicle equipment may fluctuate at the first system resource occupation rate, for example, fluctuating around 60% occupation rate after reaching a maximum of 70% CPU occupation, in order to reduce the preemption of system resources required by vehicle equipment, redundancy may be retained, such as 5% or 10%, that is, a system resource occupation rate of 35% or 30% is selected to ensure that the CPU resources are not fully occupied, to avoid repeated switching of part of the CPU resources to download firmware upgrade packages or use by vehicle equipment, and to reduce system freezes caused by full load use.

[0077] In actual implementation, different system resources in the vehicle are mutually restrained. For example, if the currently available network bandwidth resources are small, it will affect the transmission of input and output data per unit time, which will lead to a decrease in the demand for input and output resources. Therefore, the disclosed embodiment can adaptively adjust the download resource scheduling strategy according to different network states, so that the final scheduling of system resources is more reasonable. That is, when determining the download resource scheduling strategy based on the total amount of system resources of various system resources in the vehicle and the system resource occupancy rate of each system resource for downloading the firmware upgrade package, the following steps a1-a4 can be specifically adopted:

[0078] a1: Determine the total amount of network bandwidth resources of the vehicle according to the network status of the vehicle, and determine the amount of network bandwidth resources used for downloading the firmware upgrade package according to the total amount of network bandwidth resources and the network bandwidth resource occupancy rate in the system resource occupancy rate.

[0079] Here, network bandwidth refers to the amount of data transmitted per unit time. Based on the network status of the vehicle, such as whether it is connected to the network, what signal network it is currently connected to, and the signal strength and network speed of the current signal network, the network status of the vehicle can be determined to determine the total amount of network bandwidth resources of the vehicle under the network status. For the devices on the vehicle, there may also be situations where network bandwidth resources are used, such as connecting to the network to listen to music or turn on navigation, and these occupied network bandwidth resources cannot be reused for downloading firmware upgrade packages. Therefore, the occupancy rate of network bandwidth resources in the system resource occupancy rate will also be determined, so that the amount of network bandwidth resources used for downloading firmware upgrade packages can be determined.

[0080] a2: Determine, based on the total amount of system resources other than the network bandwidth resources in the vehicle and the corresponding system resource occupancy rates, a first amount of system resources initially allocated for downloading the firmware upgrade package for the other system resources.

[0081] Here, for other system resources except network bandwidth resources, the amount of the first system resource initially allocated for downloading the firmware upgrade package can also be determined. For example, for the CPU resources described in the above example, the resources that can be allocated by the CPU resources include, for example, threads. Taking a four-thread CPU as an example, the total amount of system resources is four threads, and the system resource occupancy rate is 50%. For example, it can be determined that the amount of the first system resource initially allocated for downloading the firmware upgrade package is the remaining two threads.

[0082] a3: According to the network bandwidth resource amount used for downloading the firmware upgrade package, determine a second system resource amount of other system resources that matches the network bandwidth resource amount.

[0083] Here, in a specific implementation, if the amount of network bandwidth resources is small, that is, the amount of data to be processed per unit time is small, it is not necessary to configure higher other system resources. Therefore, according to the amount of network bandwidth resources for downloading the firmware upgrade package determined in step a1 above, a second system resource amount of other system resources matching the amount of network bandwidth resources can also be determined.

[0084] a4: Determine the download resource scheduling strategy based on the network bandwidth resource amount, the first system resource amount and the second system resource amount of the other system resources; wherein, in the download resource scheduling strategy, the resource scheduling amount of the other system resources takes the smaller value of the first system resource amount and the second system resource amount.

[0085] Here, according to the description of the above step a3, in addition to the required network bandwidth resource amount, it can be determined whether to spend a larger amount of system resources for downloading the firmware upgrade package according to the network bandwidth resource amount. For example, if in step a3, when the network bandwidth resource amount is actually small, the required second system resource amount to be matched is small, then it is not necessary to spend two threads of CPU resources to complete the firmware upgrade package download, but it is sufficient to select and call one thread of CPU resources. Therefore, when determining the resource scheduling amount for other system resources, the smaller value of the first system resource amount and the second system resource amount can be taken.

[0086] Alternatively, taking I / O interface resources as an example, if it is determined that the actual file size of the firmware upgrade package is small when the firmware upgrade package is currently being transmitted to the vehicle, then you can choose to use fewer I / O interface resources so that other devices under the vehicle can continue to select and call the remaining I / O resources; conversely, if the file size of the firmware upgrade package is large, then in order to reduce the time required for transmission, you can consider providing more I / O interfaces to transmit the firmware upgrade package synchronously. For example, in the case of containing multiple firmware corresponding upgrade packages, you can choose to split the firmware upgrade package into firmware units, and then transmit the upgrade packages corresponding to multiple firmwares through multiple I / O interfaces to reduce transmission time.

[0087] With respect to the above S103, when a first download resource scheduling strategy is determined for downloading the firmware upgrade package, system resources may be scheduled to download the firmware upgrade package according to the first download resource scheduling strategy.

[0088] In one possible case, the firmware upgrade package may also include upgrade packages corresponding to multiple firmwares in the vehicle. Here, the following situation can be specifically considered: if the upgrade packages corresponding to each firmware in the firmware upgrade package can be separated, the upgrade packages corresponding to each firmware can be sent one by one when transmitting to the vehicle.

[0089] Furthermore, after receiving the upgrade package corresponding to any firmware, the vehicle can use the received upgrade package to upgrade the firmware. The firmware corresponding to these upgrade packages has priority distinction, and this priority setting can be used to distinguish the importance of upgrade packages under different firmware. For example, the detection firmware related to autonomous driving will have a higher priority than the firmware for improving seat comfort, because compared with the improvement of seat comfort, the change of autonomous driving function will affect driving safety.

[0090] Therefore, when scheduling system resources to download the firmware upgrade package according to the determined download resource scheduling strategy, the following methods can be specifically adopted:

[0091] Priority information of each firmware is determined based on historical user usage data of the vehicle functions corresponding to each firmware in the firmware upgrade package and the security level corresponding to the vehicle function; and upgrade packages corresponding to each firmware are downloaded one by one from the firmware upgrade package based on the priority information.

[0092] Among them, the corresponding priority of each firmware indicated in the firmware upgrade package can be predetermined. When determining the priority, it can be determined based on the user's historical usage data of the vehicle functions corresponding to each firmware, and the security level corresponding to the vehicle function. The user's historical usage data can be used to determine the frequency of use of each firmware. For example, the navigation will be turned on continuously while driving. The security level can be reflected in the autonomous driving related firmware in the above example. When setting the priority, it will be higher than the firmware that improves seat comfort.

[0093] In this way, by sorting by priority, the sorting order of the upgrade packages corresponding to each firmware can be determined when downloading. For firmware that undertakes more important tasks in the vehicle or directly affects the most basic safety requirements of vehicle driving, as well as firmware that is commonly used when driving the vehicle, the corresponding upgrade packages can be transmitted first, and after the vehicle has received the upgrade package corresponding to the firmware, the firmware can be upgraded using the upgrade package in time to ensure the driving safety of the vehicle.

[0094] For the above example, the following situation can also be considered: if the upgrade package corresponding to any firmware cannot be downloaded within a continuous period of time, such as a network abnormality occurs in the middle, part of the downloaded data will be released due to the failure of continuous download, or the download of the firmware upgrade package will be directly shut down.

[0095] That is, for the download of the firmware upgrade package, it is also possible to consider whether it can be completely downloaded. In the embodiment of the present disclosure, when determining whether any firmware upgrade package can be completely downloaded, a method is selected to compare the estimated download time of the upgrade package corresponding to the firmware with the download time of the firmware upgrade package available for downloading for the current vehicle.

[0096] In a specific implementation, the following method can be specifically adopted: based on the first status data of the vehicle, determining the continuous download time that can be currently used to download the firmware upgrade package, and determining the estimated download time for downloading the upgrade packages corresponding to each of the firmware in the firmware upgrade package according to the download resource scheduling strategy; based on the estimated download time corresponding to the upgrade packages of each of the firmware and the priority information corresponding to each of the firmware, determining, from the multiple upgrade packages corresponding to the firmware, an upgrade package corresponding to at least one firmware whose corresponding download time is less than or equal to the estimated download time; and downloading the upgrade packages corresponding to each of the firmware from the firmware upgrade package one by one according to the priority information corresponding to the at least one firmware.

[0097] For example, when determining the continuous download duration that can be used for downloading the firmware upgrade package based on the first state data of the vehicle, it can be determined based on whether the vehicle can use network resources in the future. In one possible case, whether network resources can be used is specifically related to the driving environment. For example, in driving environments such as tunnels and underground garages, network resources may not be available. Therefore, based on the first state data of the vehicle, it is specifically possible to determine the environment that the vehicle may reach in the future, and determine whether different environments will affect the normal use of network resources.

[0098] For example, according to the first state data of the vehicle, it is determined that there is no available network resource in the underground garage, and the continuous download time that can be used to download the firmware upgrade package is determined to be 0, that is, there is no ability to receive the firmware upgrade package. Alternatively, according to the first state data of the vehicle, it is determined that there is currently a network resource, but in 10 minutes it will pass through a tunnel section, making the network resource unavailable, and the continuous download time that can be provided for downloading the firmware upgrade package is 10 minutes.

[0099] The estimated download time of the upgrade packages corresponding to each firmware in the firmware upgrade package can be determined based on the file size and / or the download rate determined by the network resource, which can be sent by the cloud or server, or determined by the vehicle-mounted device.

[0100] Therefore, when downloading the upgrade packages corresponding to each firmware one by one from the firmware upgrade package, you can first select from the upgrade packages corresponding to multiple firmwares, at least one upgrade package corresponding to the firmware whose estimated download time is less than or equal to the continuous download time, to ensure that when the upgrade package is currently being downloaded, it can be downloaded smoothly without the above-mentioned download interruption. Then, according to the priority information of the firmware corresponding to these selected upgrade packages, determine the sorting order of the upgrade packages corresponding to each firmware when downloading.

[0101] In this way, by limiting the duration, it is possible to avoid wasting effective download time and reducing the efficiency of downloading firmware upgrade packages. For example, if the download duration is not used for screening, the following situation may occur: the vehicle is currently only allowed to download firmware upgrade packages within 5 minutes, but only based on the priority information, it is determined that the upgrade package corresponding to the firmware that is downloaded first needs 10 minutes to complete the download. Then, after spending 5 minutes to download the firmware upgrade package, the data downloaded within these 5 minutes will be released because the download has not been completed; then, after the network is restored, it is necessary to have a complete 10 minutes of stable network resources to download the firmware upgrade package and continue to download the next firmware upgrade package. Therefore, the 5 minutes that can be used to download the upgrade package are actually wasted, and the download of all firmware corresponding upgrade packages in the firmware upgrade package will take longer due to such time waste.

[0102] In addition, for the above Figure 2 The vehicle leaving and locking scenario determined in the determination of the corresponding download resource scheduling strategy also has a time limit on downloading. Specifically, after the vehicle is locked, the vehicle will be powered off after a certain period of time, and the firmware upgrade package cannot be downloaded after the power is off. Therefore, in combination with the above embodiment, when determining the continuous download duration through the first state data of the vehicle, it can also be considered that in the vehicle leaving and locking scenario, the corresponding continuous download duration is the available duration before the vehicle is powered off, and the firmware is continuously screened and the priority information is sorted in the above manner, so as to download the upgrade packages corresponding to each of the firmware one by one from the firmware upgrade package, and realize the download of the firmware upgrade package.

[0103] Regarding the above S104, according to the description in the above embodiment, the working scene of the vehicle may change, such as switching from the first working scene to the second working scene. Accordingly, when downloading the firmware upgrade package to the vehicle, the first download resource scheduling strategy will be switched to the second download resource scheduling strategy.

[0104] In order to determine whether the working scene has been switched, in a possible implementation, the vehicle status data may be monitored in real time to determine whether the vehicle status data may cause a change in the working scene. The real-time monitoring here may be timed monitoring.

[0105] After determining that the vehicle has switched working scenes through the vehicle status data, a second download resource scheduling strategy in the second working scene can be determined in a manner similar to the above steps S101-S103. Then, the second download resource scheduling strategy is used to continue downloading the upgrade package.

[0106] In another embodiment of the present disclosure, a system for controlling the download of an upgrade package is also provided. Figure 3 FIG. 1 is a schematic diagram of an upgrade package download control system provided by an embodiment of the present disclosure, which includes:

[0107] Interactive display page 31: The interactive display page 31 is a human-machine interface (HMI) for controlling the download of the firmware upgrade package. In this page, relevant information such as the download progress of the firmware upgrade package can be dynamically displayed.

[0108] The client 32 is actually associated with the interactive display page 31, and can specifically receive a service request for downloading a firmware upgrade package from the cloud, and obtain the firmware upgrade package by parsing the image data, and determine whether to start downloading the firmware upgrade package according to the user's instructions, or determine which firmware to receive the firmware upgrade package corresponding to the firmware according to the user's active selection operation.

[0109] Download management module 33: The download management module 33 can download the firmware upgrade package according to the instructions of the client 32, that is, it specifically serves as an execution module for downloading. The download management module can be responsible for obtaining the vehicle gear position, various devices responsible for entertainment functions, and status information of the vehicle lock in the vehicle in response to meeting the download conditions of the firmware upgrade package, and obtaining the current CPU resources, memory resources, I / O interface resources and other system resources, as well as the usage of network resources, determining the download resource scheduling strategy in the current working scenario, and scheduling system resources to download the firmware upgrade package. The specific process here can be found in the description of the above embodiment, and will not be repeated here.

[0110] Vehicle status detection module 34: The vehicle status detection module 34 is specifically used to provide the download management module 33 with status information of the vehicle gear position, various devices responsible for entertainment functions, and vehicle locks in the vehicle.

[0111] System resource management module 35: The system resource management module 35 is specifically used to provide the download management module 33 with the usage of system resources such as CPU resources, memory resources, I / O interface resources, and network resources in the vehicle.

[0112] For the above-mentioned upgrade package download control system, when the download conditions of the firmware upgrade package are met, the current working scene of the vehicle can be judged according to the current state data of the vehicle. The current working scene determined here is used to express the usage of each device in the vehicle. In this way, according to the current working scene of the vehicle, a more suitable download resource scheduling strategy can be selected to download the firmware upgrade package to avoid occupying the system resources required by other devices currently in use in the vehicle. In this way, under the selected download resource scheduling strategy, the normal operation of other devices can be guaranteed, the vehicle can be used normally, and the user experience will be better.

[0113] 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.

[0114] Based on the same inventive concept, the embodiment of the present disclosure also provides a download control device for the upgrade package corresponding to the download control method for the upgrade package. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the download control method for the upgrade package in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0115] Reference Figure 4 , which is a schematic diagram of a download control device for an upgrade package provided by an embodiment of the present disclosure, the device comprises: a determination module 41, a selection module 42, a scheduling module 43, and a switching module 44; wherein,

[0116] A determination module 41, configured to determine a first working scenario of the vehicle based on first state data of the vehicle in response to satisfying a download condition of the firmware upgrade package;

[0117] A selection module 42, configured to select a first download resource scheduling strategy for the vehicle in the first working scenario according to the first working scenario of the vehicle;

[0118] A scheduling module 43, configured to schedule system resources to download the firmware upgrade package according to the first download resource scheduling strategy;

[0119] The switching module 44 is used to switch the first download resource scheduling strategy to a second download resource scheduling strategy when the vehicle switches to a second working scene during the process of the vehicle downloading the firmware upgrade package.

[0120] In an optional embodiment, the vehicle is determined to switch to a second working scene according to the following steps: obtaining the vehicle driving function usage status and the on-board application usage status of the vehicle; when any of the vehicle driving function usage status and the on-board application usage status of the vehicle switches state, determining the second working scene after the vehicle switches from multiple working scenes; wherein different working scenes correspond to different vehicle driving function usage states, or different working scenes correspond to different on-board application usage states.

[0121] In an optional implementation, a download resource scheduling strategy in any working scenario is determined according to the following steps; any working scenario is the first working scenario or the second working scenario; according to the working scenario, the system resource occupancy rate for downloading the firmware upgrade package corresponding to each of the multiple system resources is determined; according to the total amount of system resources of various system resources in the vehicle and the system resource occupancy rate for downloading the firmware upgrade package corresponding to each system resource, the download resource scheduling strategy is determined, and the download resource scheduling strategy is used to schedule system resources for downloading the firmware upgrade package.

[0122] In an optional implementation, when determining the system resource occupancy rate based on the working scenario: determine a first system resource occupancy rate under the working scenario based on the working scenario; determine the maximum system resource occupancy rate of the vehicle for system resources based on the system resource usage of the vehicle; determine the system resource occupancy rate for downloading the firmware upgrade package based on the first system resource occupancy rate and the maximum system resource occupancy rate.

[0123] In an optional implementation, when determining the download resource scheduling strategy based on the total amount of system resources of various system resources in the vehicle and the system resource occupancy rate for downloading the firmware upgrade package corresponding to each system resource: determine the total amount of network bandwidth resources of the vehicle based on the network status of the vehicle, and determine the amount of network bandwidth resources for downloading the firmware upgrade package based on the total amount of network bandwidth resources and the network bandwidth resource occupancy rate in the system resource occupancy rate; determine the first system resource amount initially allocated for downloading the firmware upgrade package for the other system resources based on the total amount of system resources other than the network bandwidth resources in the vehicle and the corresponding system resource occupancy rate; determine the second system resource amount of other system resources matching the network bandwidth resource amount based on the network bandwidth resource amount for downloading the firmware upgrade package; determine the download resource scheduling strategy based on the network bandwidth resource amount, the first system resource amount and the second system resource amount of the other system resources; wherein, in the download resource scheduling strategy, the resource scheduling amount of the other system resources is the smaller value between the first system resource amount and the second system resource amount.

[0124] In an optional implementation, the firmware upgrade package includes upgrade packages corresponding to multiple firmwares in the vehicle; when scheduling system resources to download the firmware upgrade package, the scheduling module 43 is used to: determine the priority information of each firmware based on the user's historical usage data of the vehicle functions corresponding to each firmware in the firmware upgrade package, and the security level corresponding to the vehicle function; and download the upgrade packages corresponding to each firmware from the firmware upgrade package one by one according to the priority information.

[0125] In an optional embodiment, when the scheduling module 43 downloads the upgrade packages corresponding to each of the firmwares one by one from the firmware upgrade package according to the priority information, it is used to: determine the continuous download time that can be currently used to download the firmware upgrade package based on the first status data of the vehicle, and determine the estimated download time for downloading the upgrade packages corresponding to each of the firmwares in the firmware upgrade package according to the download resource scheduling strategy; based on the estimated download time corresponding to the upgrade packages of each of the firmwares and the priority information corresponding to each of the firmwares, determine, from the multiple upgrade packages corresponding to the firmwares, an upgrade package corresponding to at least one firmware whose corresponding download time is less than or equal to the estimated download time; and download the upgrade packages corresponding to each of the firmwares one by one from the firmware upgrade package according to the priority information corresponding to the at least one firmware.

[0126] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0127] The present disclosure also provides a computer device, such as Figure 5 FIG. 1 is a schematic diagram of a computer device structure provided in an embodiment of the present disclosure, including:

[0128] A processor 10 and a memory 20; the memory 20 stores machine-readable instructions executable by the processor 10, and the processor 10 is used to execute the machine-readable instructions stored in the memory 20. When the machine-readable instructions are executed by the processor 10, the processor 10 performs the following steps:

[0129] In response to satisfying the download conditions of the firmware upgrade package, a first working scenario of the vehicle is determined based on the first status data of the vehicle; according to the first working scenario of the vehicle, a first download resource scheduling strategy under the first working scenario is selected for the vehicle; according to the first download resource scheduling strategy, system resources are scheduled to download the firmware upgrade package; during the process of the vehicle downloading the firmware upgrade package, when the vehicle switches to a second working scenario, the first download resource scheduling strategy is switched to a second download resource scheduling strategy.

[0130] The above-mentioned memory 20 includes an internal memory 210 and an external memory 220; the internal memory 210 here is also called an internal memory, which is used to temporarily store the calculation data in the processor 10, as well as the data exchanged with the external memory 220 such as a hard disk. The processor 10 exchanges data with the external memory 220 through the internal memory 210.

[0131] The specific execution process of the above instructions can refer to the steps of the download control method of the upgrade package described in the embodiment of the present disclosure, which will not be repeated here.

[0132] The embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the download control method of the upgrade package described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0133] The present disclosure also provides a computer program product that carries a program code. The program code includes instructions that can be used to execute the steps of the upgrade package download control method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.

[0134] 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 storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).

[0135] 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.

[0136] 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.

[0137] 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.

[0138] 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 storage medium that is executable 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 storage medium and includes several instructions for 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 storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0139] 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 download control method for an upgrade package, characterized in that: include: In response to satisfying a download condition of the firmware upgrade package, determining a first working scenario of the vehicle based on first state data of the vehicle; According to a first working scenario of the vehicle, selecting a first download resource scheduling strategy in the first working scenario for the vehicle; According to the first download resource scheduling strategy, scheduling system resources to download the firmware upgrade package; During the process of the vehicle downloading the firmware upgrade package, when the vehicle switches to a second working scenario, the first download resource scheduling strategy is switched to a second download resource scheduling strategy.

2. The download control method according to claim 1, characterized in that: Determine that the vehicle switches to the second working scene according to the following steps: Obtain the usage status of the vehicle's driving functions and the usage status of the vehicle's in-vehicle applications; In the event that any one of the vehicle driving function usage state and the vehicle-mounted application usage state of the vehicle switches state, determining a second working scene after the vehicle switches from a plurality of working scenes; Among them, different working scenarios correspond to different usage states of vehicle driving functions, or different working scenarios correspond to different usage states of in-vehicle applications.

3. The download control method according to claim 1 or 2, characterized in that: Determine the download resource scheduling strategy in any working scenario according to the following steps; the any working scenario is the first working scenario or the second working scenario; According to the working scenario, determine the system resource occupancy rate corresponding to each system resource among the multiple system resources and used for downloading the firmware upgrade package; The download resource scheduling strategy is determined based on the total amount of system resources of various system resources in the vehicle and the system resource occupancy rate of each system resource for downloading the firmware upgrade package. The download resource scheduling strategy is used to schedule system resources for downloading the firmware upgrade package.

4. The download control method according to claim 3, characterized in that: Determining the system resource occupancy rate according to the working scenario includes: According to the working scenario, determining a first system resource occupancy rate in the working scenario; Determining a maximum system resource occupancy rate of the vehicle for system resources according to the system resource usage of the vehicle; The system resource occupancy rate for downloading the firmware upgrade package is determined according to the first system resource occupancy rate and the maximum system resource occupancy rate.

5. The method according to claim 3, characterized in that: Determining the download resource scheduling strategy according to the total amount of system resources of various system resources in the vehicle and the system resource occupancy rate corresponding to each system resource for downloading the firmware upgrade package includes: Determine the total amount of network bandwidth resources of the vehicle according to the network status of the vehicle, and determine the amount of network bandwidth resources used for downloading the firmware upgrade package according to the total amount of network bandwidth resources and the network bandwidth resource occupancy rate in the system resource occupancy rate; Determine, according to the total amount of system resources of other system resources in the vehicle except the network bandwidth resources and the corresponding system resource occupancy rates, a first amount of system resources initially allocated for downloading the firmware upgrade package for the other system resources; Determine, according to the network bandwidth resource amount used for downloading the firmware upgrade package, a second system resource amount of other system resources matching the network bandwidth resource amount; The download resource scheduling strategy is determined based on the network bandwidth resource amount, the first system resource amount and the second system resource amount of the other system resources; wherein, in the download resource scheduling strategy, the resource scheduling amount of the other system resources takes the smaller value of the first system resource amount and the second system resource amount.

6. The method according to claim 1, characterized in that The firmware upgrade package includes upgrade packages corresponding to multiple firmware in the vehicle respectively; The scheduling system resources to download the firmware upgrade package includes: Determine the priority information of each firmware according to the user history usage data of the vehicle function corresponding to each firmware in the firmware upgrade package and the security level corresponding to the vehicle function; According to the priority information, the upgrade packages corresponding to the firmwares are downloaded one by one from the firmware upgrade packages.

7. The method according to claim 6, characterized in that According to the priority information, downloading the upgrade packages corresponding to the firmwares one by one from the firmware upgrade packages includes: Based on the first state data of the vehicle, determining a continuous download duration that can currently be used for downloading the firmware upgrade package, and determining an estimated download duration when downloading an upgrade package corresponding to each of the firmware in the firmware upgrade package according to the download resource scheduling strategy; Based on the estimated download duration corresponding to each firmware upgrade package and the priority information corresponding to each firmware, determining, from the upgrade packages corresponding to the multiple firmware, an upgrade package corresponding to at least one firmware whose corresponding download duration is less than or equal to the estimated download duration; According to the priority information corresponding to the at least one firmware, the upgrade packages corresponding to the respective firmwares are downloaded one by one from the firmware upgrade packages.

8. A download control device for an upgrade package, characterized in that: include: A determination module, configured to determine a first working scenario of the vehicle based on first state data of the vehicle in response to satisfying a download condition of the firmware upgrade package; A selection module, configured to select a first download resource scheduling strategy for the vehicle in the first working scenario according to the first working scenario of the vehicle; A scheduling module, used to schedule system resources to download the firmware upgrade package according to the first download resource scheduling strategy; A switching module is used to switch the first download resource scheduling strategy to a second download resource scheduling strategy when the vehicle switches to a second working scene during the process of the vehicle downloading the firmware upgrade package.

9. A computer device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the processor is used to execute the machine-readable instructions stored in the memory. When the machine-readable instructions are executed by the processor, the processor executes the steps of the download control method of the upgrade package as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program. When the computer program is executed by a computer device, the computer device executes the steps of the method for controlling downloading of an upgrade package according to any one of claims 1 to 7.

Citation Information

Cited By

  • Multi-mode software upgrade method and system for embedded system

    CN119759394A