Vehicle machine system upgrading method, device and equipment and storage medium

By releasing free resources in the vehicle system to increase storage space, the problem of the vehicle system stopping upgrade due to insufficient storage space during upgrading is solved, and the automatic online upgrade of the vehicle system is realized, and the resources are restored after the upgrade is restored. Reduce the impact on users.

CN119473354APending Publication Date: 2025-02-18DONGFENG MOTOR CO LTD DONGFENG NISSAN PASSENGER VEHICLE CO
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411543966.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The vehicle-machine system requires a large amount of storage space during the upgrade and iteration process, which causes the vehicle to directly stop upgrading when it detects insufficient storage space, which limits the automatic online upgrade of the vehicle-machine system.

Method used

By detecting that the vehicle system needs to be upgraded but the available memory is insufficient, obtain and release freed resources, such as offline map data packets, multimedia resource packets and installed vehicle applications, clean and record resource data, and ensure sufficient storage space to upgrade. And restore the released resources after the upgrade is completed.

Benefits of technology

It realizes that when the available memory of the vehicle system does not meet the upgrade requirements, the resources are automatically released to ensure the success of the upgrade, and the resources are restored after the upgrade, minimizing the impact on users as much as possible.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473354A_ABST
    Figure CN119473354A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicle control, and discloses a vehicle machine system upgrading method, device and equipment and a storage medium, and the method comprises the steps: obtaining at least one releasable resource when it is detected that a vehicle machine system needs to be upgraded and an available memory of the vehicle machine system does not meet a system upgrading demand; clearing releasable resources in the in-vehicle infotainment system, and recording cleared resource data; if the available memory of the vehicle-mounted terminal system meets the system upgrading requirement after cleaning, downloading a vehicle-mounted terminal upgrading package, and upgrading the vehicle-mounted terminal system according to the vehicle-mounted terminal upgrading package; in the upgrading process and / or after upgrading is completed, resource recovery is carried out on the in-vehicle infotainment system according to the recorded resource cleaning data. When the available memory of the vehicle-mounted terminal system does not meet the upgrading requirement, part of resources in the vehicle-mounted terminal system can be automatically released, normal updating of the vehicle-mounted terminal system can be guaranteed, the released resources can be recovered after updating, non-inductive operation of a user is guaranteed as much as possible, and influence on actual operation of the user is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] At present, with the rapid development of vehicle intelligence, the car computer system in the vehicle will also be quickly upgraded and iterated. In order to cope with the rapid upgrade and iteration of the car computer system, the car computer system in the vehicle is generally upgraded online, that is, the latest car computer system installation package (also called car computer upgrade package) is downloaded through the WIFI network or Internet of Things connected to the vehicle, and the car computer system in the vehicle is upgraded and iterated through the car computer system installation package.

[0003] However, the vehicle system will require a large amount of storage space during the upgrade and iteration process (the size of the storage space required for the upgrade is generally much larger than the size of the vehicle system installation package, and may be many times the size of the vehicle system installation package). As a result, the vehicle can download the vehicle system installation package, but the remaining storage space in the vehicle's vehicle system is insufficient to support the upgrade. Currently, once the vehicle's vehicle system detects that the storage space of the vehicle system is insufficient for an upgrade, it will stop the corresponding upgrade operation, resulting in the actual online upgrade being limited, making it difficult to complete the automatic online upgrade of the vehicle system. Summary of the invention

[0004] The main purpose of this application is to provide a vehicle system upgrade method, device, equipment and storage medium, aiming to solve the technical problem that once the prior art detects that the storage space of the vehicle system is insufficient for upgrading, the upgrade will be directly stopped, resulting in limited automatic upgrade of the vehicle system.

[0005] To achieve the above purpose, the present application proposes a vehicle system upgrade method, the method comprising:

[0006] When it is detected that the vehicle computer system needs to be upgraded and the available memory of the vehicle computer system does not meet the system upgrade requirements, at least one releasable resource is obtained;

[0007] Cleaning up the releasable resources in the vehicle system and recording cleaned-up resource data;

[0008] If after cleaning, the available memory of the vehicle system meets the system upgrade requirements, then download the vehicle upgrade package, and upgrade the vehicle system according to the vehicle upgrade package;

[0009] During the upgrade process, and / or when the upgrade is completed, the vehicle system resources are restored based on the recorded cleanup resource data.

[0010] Optionally, the releasable resources include offline map data packets;

[0011] The clearing of the releasable resources in the vehicle system and recording cleared resource data includes:

[0012] Obtaining a data retrieval interface corresponding to the map navigation software in the vehicle system;

[0013] Obtaining the offline map data package in the vehicle system by calling the data retrieval interface;

[0014] Sort each offline map data package from low to high based on the corresponding map usage frequency to obtain a map sorting result;

[0015] The top N offline map data packets in the map sorting result are used as the map data packets to be cleaned up;

[0016] The map data packet to be cleared is cleared, and resource data is cleared according to data packet information corresponding to the map data packet to be cleared, wherein the data packet information includes a map area corresponding to the offline map data packet and a map navigation software to which the offline map data packet belongs.

[0017] Optionally, the releasable resources include a multimedia resource package;

[0018] The clearing of the releasable resources in the vehicle system and recording cleared resource data includes:

[0019] Acquire a multimedia resource package in the vehicle system;

[0020] Obtain the last usage time and usage frequency corresponding to each multimedia resource package;

[0021] The multimedia resource packages whose corresponding last usage time is not within the preset time range are taken as the resource packages to be selected;

[0022] Sorting the resource packages to be selected from low to high according to the usage frequencies corresponding to the resource packages to be selected, to obtain a multimedia sorting result;

[0023] The top N resource packages to be selected in the multimedia sorting result are used as resource packages to be cleaned up;

[0024] Perform cloud storage on the resource package to be cleaned and obtain a cloud storage path;

[0025] The resource data is cleaned up according to the cloud storage path and the resource information record of the resource package to be cleaned up, and the resource package to be cleaned up is cleared, wherein the resource information includes the resource package size of the multimedia resource package and the multimedia software to which the multimedia resource package belongs.

[0026] Optionally, the releasable resources include installed vehicle-mounted applications;

[0027] The clearing of the releasable resources in the vehicle system and recording cleared resource data includes:

[0028] Acquire a non-common application in the vehicle system, where the non-common application is an installed vehicle system application that is set in the vehicle system and has not been started within a preset time range;

[0029] Using a portion of the uncommonly used applications provided by the application market as applications to be selected;

[0030] Sort the applications to be selected from low to high according to the usage frequencies corresponding to the applications to be selected, and obtain the application sorting result;

[0031] The top N applications to be selected in the application sorting result are used as applications to be cleaned;

[0032] The resource data is cleaned up according to the application information corresponding to the application to be cleaned up, and the application to be cleaned up in the vehicle system is uninstalled, wherein the application information includes an application version number and an application identifier.

[0033] Optionally, the releasable resources include vehicle machine application cache;

[0034] The clearing of the releasable resources in the vehicle system and recording cleared resource data includes:

[0035] Acquire a target vehicle-machine application in the vehicle-machine system, where the target vehicle-machine application is a vehicle-machine application that is set in the vehicle-machine system and has an application cache;

[0036] Sorting the target vehicle computer applications from low to high according to the corresponding usage frequencies, and generating a sorting result;

[0037] The top N target vehicle computer applications in the sorting result are used as applications to be cleaned up;

[0038] Perform cache cleaning on the application to be cleaned, and obtain the total amount of cache cleaning data;

[0039] The resource data is cleaned up according to the total amount of cleaned up data.

[0040] Optionally, during the upgrade process and / or after the upgrade is completed, the vehicle system is restored with resources according to the recorded cleanup resource data, including:

[0041] During the upgrade process and / or when the upgrade is completed, obtain the recorded cleanup resource data;

[0042] Get the releasable resources corresponding to the cleanup resource data;

[0043] If the releasable resource is a recoverable resource, the vehicle system is restored according to the resource cleanup data, and the recoverable resource is a releasable resource of a non-application cache type.

[0044] Optionally, the acquiring at least one releasable resource includes:

[0045] Obtain a resource priority queue, wherein the resource priority queue contains a plurality of releasable resources, and the various releasable resources are sorted from high to low according to release priority;

[0046] Extracting at least one releasable resource from the resource priority queue;

[0047] After the releasable resources in the vehicle system are cleaned up and the cleaned resource data are recorded, the method further includes:

[0048] If after cleaning, the available memory of the vehicle system still does not meet the system upgrade requirements, then detecting whether there are any unextracted releasable resources in the resource priority queue;

[0049] If so, return to the step of extracting at least one releasable resource from the resource priority queue.

[0050] In addition, to achieve the above purpose, the present application also provides a vehicle system upgrade device, the device comprising:

[0051] A detection module, used to obtain at least one releasable resource when it is detected that the vehicle system needs to be upgraded and the available memory of the vehicle system does not meet the system upgrade requirements;

[0052] A cleaning module, used for cleaning the releasable resources in the vehicle system and recording the cleaned resource data;

[0053] An upgrade module, used for downloading a vehicle computer upgrade package if the available memory of the vehicle computer system meets the system upgrade requirements after cleaning, and upgrading the vehicle computer system according to the vehicle computer upgrade package;

[0054] The recovery module is used to restore the resources of the vehicle computer system according to the recorded cleanup resource data during the upgrade process and / or when the upgrade is completed.

[0055] In addition, to achieve the above-mentioned purpose, the present application also provides a vehicle system upgrade device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the vehicle system upgrade method as described above.

[0056] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the vehicle system upgrade method as described above are implemented.

[0057] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the vehicle system upgrade method described above are implemented.

[0058] One or more technical solutions proposed in this application have at least the following technical effects:

[0059] When the available memory of the vehicle system does not meet the upgrade requirements, some resources in the vehicle system can be automatically released to ensure that the vehicle system can be updated normally. After the update, the released resources will also be restored to ensure that the user has no sense of operation as much as possible and avoid affecting the user's actual operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0061] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0062] Figure 1 A flowchart of the first embodiment of the vehicle system upgrade method of the present application is provided;

[0063] Figure 2 This is a schematic diagram of the upgrade timing of the vehicle system according to an embodiment of the present application;

[0064] Figure 3 A flowchart of the second embodiment of the vehicle system upgrade method of the present application is provided;

[0065] Figure 4 A flowchart of the third embodiment of the vehicle system upgrade method of the present application is provided;

[0066] Figure 5 This is a schematic diagram of the module structure of the vehicle system upgrade device according to an embodiment of the present application;

[0067] Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the vehicle system upgrade method in the embodiment of the present application.

[0068] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0069] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0070] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0071] Based on this, the embodiment of the present application provides a vehicle system upgrade method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the vehicle system upgrade method of the present application.

[0072] In this embodiment, the vehicle system upgrade method includes steps S10 to S40:

[0073] Step S10: when it is detected that the vehicle computer system needs to be upgraded and the available memory of the vehicle computer system does not meet the system upgrade requirement, at least one releasable resource is acquired.

[0074] It should be noted that the executor of this embodiment can be the vehicle itself or a vehicle system upgrade device installed in the vehicle. The vehicle system upgrade device can be a controller in the vehicle, such as an ECU or other controllers. This embodiment does not limit this. In this embodiment and the following embodiments, the vehicle system upgrade method of this application is explained by taking the vehicle system upgrade device as an example.

[0075] It should be noted that the vehicle system upgrade device can be connected to the vehicle management platform (or management server), and can regularly obtain the latest version number of the vehicle system from the vehicle management platform. If the version number of the vehicle system in the vehicle is lower than the latest version number of the vehicle system, it can be determined that the vehicle system needs to be upgraded. The available memory of the vehicle system can be the available storage space in the vehicle system of the vehicle. The system upgrade requirements may include the storage space required when upgrading the vehicle system.

[0076] In actual use, when setting up the latest vehicle system, the relevant managers or developers of the vehicle management platform can determine the storage space required for the latest vehicle system upgrade package to upgrade the vehicle system based on actual vehicle verification and other methods, and set the system upgrade requirements for the vehicle system upgrade package.

[0077] In actual application, the vehicle system upgrade equipment can obtain the latest system upgrade requirements corresponding to the vehicle system from the connected vehicle management platform, and compare the available memory of the vehicle system with the system upgrade requirements. If the available storage space in the vehicle system is less than the storage space required when upgrading the vehicle system, it can be determined that the available memory of the vehicle system does not meet the system upgrade requirements.

[0078] It is understandable that if the vehicle system needs to be upgraded and the available memory of the vehicle system does not meet the system upgrade requirements, it can be determined that if no processing is performed at this time, the online upgrade will definitely fail due to insufficient resources. At this time, in order to ensure that the vehicle system can be upgraded normally, it is necessary to increase the size of the available storage space in the vehicle system. At this time, it is necessary to try to release some resources. Therefore, at least one releasable resource can be obtained.

[0079] Among them, the releasable resources may include at least one of the vehicle application cache, offline map data package, multimedia resource package, installed vehicle application, etc.

[0080] Step S20: clearing the releasable resources in the vehicle system and recording cleared resource data.

[0081] It should be noted that after determining the releasable resources, the releasable resources in the vehicle system can be cleaned up to increase the size of the available storage space in the vehicle system. In order to ensure the actual usage experience of vehicle users, it is necessary to ensure that the cleaned resources can be restored subsequently. Therefore, while cleaning the releasable resources in the vehicle system, the cleaned resource data can also be recorded. By recording the information of the cleaned related resource data, it can be ensured that it can be restored later.

[0082] In actual use, the recorded cleaning resource data can be stored in a pre-set cleaning resource list. The cleaning resource list can be set in a specific storage space in the vehicle system upgrade device that will not be cleaned or overwritten when the vehicle system is upgraded. Of course, setting the cleaning resource list in the vehicle system upgrade device may still be risky (occupying storage space, which may affect the upgrade process, and may also be cleaned up if set incorrectly). In order to avoid risks, the cleaning resource list can also be set in the vehicle management platform.

[0083] Step S30: If the available memory of the vehicle computer system meets the system upgrade requirements after cleaning, then the vehicle computer upgrade package is downloaded, and the vehicle computer system is upgraded according to the vehicle computer upgrade package.

[0084] It should be noted that after cleaning, the available storage space in the vehicle system can be regained. If the available storage space in the vehicle system is greater than or equal to the storage space required when upgrading the vehicle system, it can be determined that the available memory of the vehicle system meets the system upgrade requirements.

[0085] Of course, since it may be time-consuming to count the available storage space in the vehicle system, when it is determined in step S10 that the available memory of the vehicle system does not meet the system upgrade requirements, the total amount of storage space to be released can be calculated based on the available memory of the vehicle system and the system upgrade requirements. After cleaning, the total amount of storage space released by the cleaning resources is obtained. If the total amount of storage space released is greater than or equal to the total amount of storage space required to be released, it can be determined that the available memory of the vehicle system meets the system upgrade requirements.

[0086] For example: Assuming that step S10 determines that the available memory of the vehicle system does not meet the system upgrade requirements, the total amount of storage space to be released is calculated as a based on the available memory of the vehicle system and the system upgrade requirements. When cleaning, the releasable resources cleaned up include four types: machine application cache, offline map data package, multimedia resource package, and installed vehicle application. After cleaning various releasable resources, the sizes of released storage space are b1, b2, b3, and b4 respectively. The total amount of storage space released by cleaning resources is b=b1+b2+b3+b4. If a<b at this time, it can be determined that the available memory of the vehicle system meets the system upgrade requirements.

[0087] It is understandable that if the available memory of the vehicle system meets the system upgrade requirements after cleaning, it means that the vehicle system can be upgraded online at this time. Therefore, the vehicle upgrade package can be downloaded, and then the vehicle system can be upgraded according to the vehicle upgrade package.

[0088] Among them, the vehicle computer upgrade package can be downloaded from the vehicle management platform.

[0089] Step S40: During the upgrade process and / or after the upgrade is completed, restore the resources of the vehicle system according to the recorded cleanup resource data.

[0090] It should be noted that since some resources in the vehicle system may have been cleared before, during the upgrade process and / or when the upgrade is completed, the resources of the vehicle system can be restored based on the recorded cleared resource data, and the previously cleared resources can be reloaded into the vehicle system to avoid affecting the actual use of the user.

[0091] In actual use, after the cleaning is completed, the downloaded car computer upgrade package can be cleared to avoid occupying too much storage space. Specifically, after the car computer system online upgrade (OTA) is completed, the car computer upgrade package can be deleted and the data can be restored without feeling at the same time. The implementation method is:

[0092] The deletion of the vehicle upgrade package adopts a separate deletion process, and the recovery of each resource data also adopts a separate process. For example, the navigation offline map data package, audio and video APP, and application store all have separate deletion and download recovery processes. In the process of deleting the vehicle upgrade package, the memory space size is monitored in real time. Once there is enough space, the deleted resources can be restored in batches. For example, if the memory is enough for the offline map of a certain city in the offline map data, it will be downloaded and restored first. And so on, eventually multiple processes can be carried out simultaneously, and the cleared data can be restored synchronously in batches to ensure that users can experience better and seamless recovery.

[0093] Of course, the vehicle computer upgrade package can also be stored in the vehicle computer system as a system backup. At this time, only the remaining storage space of the vehicle computer system will be detected. When the free capacity of the storage space is sufficient, resources will be restored. This embodiment does not limit this.

[0094] For ease of understanding, now combined Figure 2 This is for illustration only, but not for limitation. Figure 2 This is a schematic diagram of the vehicle system upgrade timing of this embodiment.

[0095] like Figure 2 As shown, the complete execution process of the vehicle system upgrade method includes: multiple execution steps from resource file deletion to resource file download recovery #2, during which process, process 1 is responsible for resource file deletion (i.e., cleanup of released resources), process 2 is responsible for downloading, decompressing and decrypting the upgrade package (i.e., vehicle upgrade package), process 3 is responsible for managing partition A, which represents the vehicle system before the upgrade, and process 4 is responsible for managing partition B, which represents the vehicle system after the upgrade;

[0096] Before the restart, the system of partition A is still running. During the upgrade process, some storage space will be gradually released due to the deletion of upgrade packages (compressed packages) or the cleaning of loaded files during the upgrade process. Based on this, the system of partition A that is still running can be used to download and restore resource files. When the upgrade is completed, resource files can also be downloaded and restored.

[0097] Therefore, there are two opportunities for resource file download resumption, namely Figure 2 As shown in , the resource file download resumes at #1 (i.e. during the upgrade process) and the resource file download resumes at #2 (i.e. after the upgrade is completed);

[0098] If there are fewer resource files to be cleaned up, the resource recovery may be completed in the relevant steps of resource file download recovery #1. In this case, the resource file download recovery #2 step may not be executed, that is, the resources of the vehicle system are only recovered during the upgrade process;

[0099] If there are many cleaned resource files, they may not be completely restored in the related steps of resource file download recovery #1. In this case, some cleaned resources can be restored in the step of resource file download recovery #1, and then the step of resource file download recovery #2 can be executed to restore the remaining resource files, so as to ensure that the previously deleted resource files are restored as completely as possible, that is, the resources of the vehicle system are restored during the upgrade process and after the upgrade is completed;

[0100] Of course, if necessary (such as if you are worried that restoring resource files will affect system restart), you can also not execute the relevant steps of resource file download and recovery #1, and only execute the steps of resource file download and recovery #2, that is, only restore the resources of the vehicle system when the upgrade is completed.

[0101] Among them, some cleared resources may require the upgraded vehicle system to start (i.e. Figure 2 For such resources, they can be restored only in the step of resource file download recovery #2, or restored in conjunction with source file download recovery #1 and source file download recovery #2. For example, because the old system (the system before the upgrade) will be discontinued later, the cleared car computer applications need to be installed after the updated car computer system is started to truly realize resource recovery. In this case, the car computer application can be restored only when executing source file download recovery #2; or the installation package of the car computer application can be downloaded when executing source file download recovery #1, and the downloaded installation package can be installed when executing source file download recovery #2, thereby realizing the recovery of the car computer application.

[0102] This embodiment provides a method for upgrading a vehicle computer system. When the available memory of the vehicle computer system does not meet the upgrade requirements, some resources in the vehicle computer system can be automatically released to ensure that the vehicle computer system can be updated normally. After the update, the released resources will also be restored to ensure that the user has no sense of operation as much as possible and avoid affecting the user's actual operation.

[0103] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 3 , step S10 includes steps S101 to S102:

[0104] Step S101: when it is detected that the vehicle computer system needs to be upgraded and the available memory of the vehicle computer system does not meet the system upgrade requirement, a resource priority queue is obtained.

[0105] Step S102: extracting at least one releasable resource from the resource priority queue.

[0106] It should be noted that the resource priority queue contains a variety of releasable resources (such as all or part of the releasable resources set by the administrator of the vehicle system upgrade equipment), and the various releasable resources are sorted from high to low according to the release priority. The release priority is used to characterize the degree of impact on the actual use of the user after the releasable resources are cleared. The higher the release priority, the smaller the impact on the actual use of the user after the corresponding releasable resources are cleared.

[0107] For example: assuming that the releasable resources include vehicle application cache, offline map data package, multimedia resource package and installed vehicle application, and the impact on the actual user usage after cleaning is the smallest for application cache, followed by map data package, then multimedia resource package, and the largest for installed vehicle application, then the resource priority queue can be "vehicle application cache-offline map data package-multimedia resource package-installed vehicle application".

[0108] In actual use, at least one releasable resource may be extracted from the queue head of the resource priority queue, wherein the queue head may be the side with the highest release priority in the queue, and the extracted releasable resource will be removed from the resource priority queue.

[0109] In this embodiment, after step S20, steps S30'-S40' are further included:

[0110] Step S30 ′: if the available memory of the vehicle system still does not meet the system upgrade requirement after the cleaning, then it is detected whether there are any unextracted releasable resources in the resource priority queue.

[0111] Step S40': If yes, return to the step of extracting at least one releasable resource from the resource priority queue.

[0112] It should be noted that if after cleaning, the available memory of the vehicle system still does not meet the system upgrade requirements, it means that even after cleaning, the size of the available storage space in the vehicle system is still smaller than the size of the storage space required when upgrading the vehicle system. You can try to continue releasing resources. Therefore, you can detect whether there are any unextracted releasable resources in the resource priority queue.

[0113] It is understandable that if there are still unextracted releasable resources in the resource priority queue, the releasable resources can continue to be extracted from the resource priority queue, and attempts to release the resources can continue, so the process can return to step S102.

[0114] In a feasible implementation, the releasable resources may include a vehicle machine application cache, and in order to ensure that the impact on user operations when releasing resources is as small as possible, step S20 in this embodiment may include:

[0115] Obtaining a target vehicle-machine application in the vehicle-machine system;

[0116] Sorting the target vehicle computer applications from low to high according to the corresponding usage frequencies, and generating a sorting result;

[0117] The top N target vehicle computer applications in the sorting result are used as applications to be cleaned up;

[0118] Perform cache cleaning on the application to be cleaned, and obtain the total amount of cache cleaning data;

[0119] The resource data is cleaned up according to the total amount of cleaned up data.

[0120] It should be noted that the target vehicle-mounted application is a vehicle-mounted application that is set in the vehicle-mounted system and has an application cache. The application cache can be temporary data stored on the device by the vehicle-mounted application to speed up the application loading speed and improve the user experience. Clearing such temporary data will cause the subsequent vehicle-mounted application to load more slowly, or cause some user settings or change information to be lost, which will have a certain impact on the actual use of the user, but the overall impact is small. Therefore, you can try to increase the available storage space in the vehicle-mounted system by clearing the cache.

[0121] In actual use, in order to minimize the impact on the actual use of users, when clearing the cache, you can give priority to clearing the cache in the car computer applications that are used less frequently by users. Therefore, you can first scan the car computer system to determine the target car computer applications with application caches, and then sort the target car computer applications from low to high according to the usage frequency corresponding to each target car computer application. Then, the top N target car computer applications in the sorting result are used as applications to be cleaned, and finally, the cache of the applications to be cleaned is cleaned.

[0122] Wherein, N can be a positive integer and can be pre-set by the administrator of the vehicle system upgrade device. Cache cleaning can call the cache cleaning tool or interface provided by the application to be cleaned to achieve cache cleaning, or it can be performed through a global cleaning tool (such as security guard), which is not limited in this embodiment. The usage frequency corresponding to the target vehicle application can be the number of times the target vehicle application is used within a preset time range (such as 30 days).

[0123] In actual application, since application cache recovery is difficult and the recovery value is relatively low, cache recovery may not be attempted, but the user needs to be able to confirm that the cache has been cleared. Therefore, after the clearing is completed, the clearing resource data may be recorded only based on the total amount of cache clearing data.

[0124] Specifically, the implementation process of recording the cleaning resource data according to the total amount of cleaning data of the cache cleaning may be to construct the cleaning resource data according to the total amount of cleaning data of the cache cleaning, and add the cleaning resource data to the cleaning resource list.

[0125] In a feasible implementation, the releasable resource may include an offline map data package, and in order to ensure that the impact on user operations when releasing resources is as small as possible, step S20 in this embodiment may include:

[0126] Obtaining a data retrieval interface corresponding to the map navigation software in the vehicle system;

[0127] Obtaining the offline map data package in the vehicle system by calling the data retrieval interface;

[0128] Sort each offline map data package from low to high based on the corresponding map usage frequency to obtain a map sorting result;

[0129] The top N offline map data packets in the map sorting result are used as the map data packets to be cleaned up;

[0130] The map data packet to be cleared is cleared, and resource data is cleared according to the data packet information record corresponding to the map data packet to be cleared.

[0131] It should be noted that offline map data packets can be map data packets that are downloaded and stored locally by map navigation software for ease of use. However, offline map data packets of general map navigation software are usually encrypted or specially processed (such as file name obfuscation, or data packets in a specific format). It is difficult for the vehicle system upgrade device to directly scan offline map data packets. In order to obtain relevant information of offline map data packets, the data retrieval interface corresponding to the map navigation software in the vehicle system can be obtained first, and then the offline map data packets in the vehicle system can be obtained by calling the data retrieval interface.

[0132] Among them, the data retrieval interface corresponding to the map navigation software can be an interface provided by the map navigation software for managing offline map data packets, and the manager of the vehicle system upgrade equipment can parse and determine the instructions for use or code description of the map navigation software in advance.

[0133] In actual use, there may be multiple map navigation software installed in the vehicle system, and the data retrieval interface corresponding to each map navigation software may also be different. In order to ensure that the data retrieval interface can be correctly obtained, the manager of the vehicle system upgrade equipment can pre-set the navigation software interface mapping table. The mapping relationship between each map navigation software and the data retrieval interface is stored in the navigation software interface mapping table. At this time, the specific implementation process of obtaining the data retrieval interface corresponding to the map navigation software in the vehicle system can be to read the data retrieval interface corresponding to the map navigation software from the navigation software interface mapping table.

[0134] In actual use, since there is a possibility of recovery failure during subsequent recovery, in order to minimize the impact on user operations, when cleaning, you can give priority to cleaning offline map data packages that are used less frequently by users. Therefore, you can sort each offline map data package from low to high according to the map usage frequency corresponding to each offline map data package to obtain a map sorting result. Afterwards, the top N offline map data packages in the map sorting result are used as map data packages to be cleaned.

[0135] Wherein, N may be a positive integer and may be pre-set by the administrator of the vehicle system upgrade device. The map usage frequency corresponding to the offline map data package may be the number of times the offline map data package is loaded and used within a preset time range (eg, within two months).

[0136] In actual application, the map package cleaning interface provided by the map navigation software can be used to clean up the map data package to be cleaned, or the file corresponding to the map data package to be cleaned can be directly cleaned, which is not limited in this embodiment.

[0137] In order to ensure that the offline map data package can be restored and cleared automatically after the system upgrade is completed, the resource data can be cleared according to the data package information record corresponding to the map data package to be cleared. Specifically, the resource data can be constructed according to the data package information, and then the resource data can be added to the resource list.

[0138] Among them, since the map navigation software generally requires at least a map area (such as province, city, street, etc.) when downloading an offline map data package, and in order to distinguish which map navigation software the cleared offline map data package belongs to, when constructing the cleanup resource data, the data package information used includes at least the map area corresponding to the offline map data package, and the map navigation software to which the offline map data package belongs.

[0139] Of course, if necessary, the data packet information may also include other information. For example, for verification purposes, it may also include the map package size corresponding to the offline map data packet; in order to ensure that the restored offline map data packet can be correctly loaded by the map navigation software, it may also include the file name, storage path and other information of the offline map data packet.

[0140] Of course, if necessary, you can also store the map data package to be cleared in the cloud first and then clear it. Later, you can use the cloud stored files to restore it.

[0141] In a feasible implementation, the releasable resources may include multimedia resource packages (such as video resources, audio resources, etc.), and in order to ensure that the impact on user operations when releasing resources is as small as possible, step S20 in this embodiment may include:

[0142] Acquire a multimedia resource package in the vehicle system;

[0143] Obtain the last usage time and usage frequency corresponding to each multimedia resource package;

[0144] The multimedia resource packages whose corresponding last usage time is not within the preset time range are taken as the resource packages to be selected;

[0145] Sorting the resource packages to be selected from low to high according to the usage frequencies corresponding to the resource packages to be selected, to obtain a multimedia sorting result;

[0146] The top N resource packages to be selected in the multimedia sorting result are used as resource packages to be cleaned up;

[0147] Perform cloud storage on the resource package to be cleaned and obtain a cloud storage path;

[0148] The resource data is cleaned up according to the cloud storage path and the resource information record of the resource package to be cleaned up, and the resource package to be cleaned up is cleared.

[0149] It should be noted that in order to minimize the impact on user operations, it is necessary to screen the multimedia resource packages in the vehicle system, so that the last usage time and usage frequency corresponding to each multimedia resource package can be obtained. The preset time range can be pre-set by the administrator of the vehicle system upgrade equipment, and the specific time range is close to the current time, such as setting the preset time range to within a week or a month from the current time.

[0150] Since there is a possibility of recovery failure during subsequent recovery, it is necessary to avoid clearing the multimedia resource packages that the user has recently used. If the last usage time corresponding to the multimedia resource package is not within the preset time range, it means that the user has not used the multimedia resource package recently. Therefore, such multimedia resource packages can be used as multimedia sorting results.

[0151] In order to minimize the impact on users' actual use, when cleaning multimedia resource packages, the less frequently used parts can be cleaned up first. Therefore, the resource packages to be selected can be sorted from low to high according to the usage frequency corresponding to each resource package to be selected, and the multimedia sorting result can be obtained. After that, the top N resource packages to be selected in the multimedia sorting result are used as resource packages to be cleaned.

[0152] Wherein, N may be a positive integer and may be pre-set by the administrator of the vehicle system upgrade device. The usage frequency corresponding to the resource package to be selected may be the number of times the resource package to be selected is loaded and played within a preset time range (such as within two months or a longer time range).

[0153] In actual application, it is actually difficult to obtain a suitable download path for multimedia data packets (due to the data differences of multimedia data packets and the difficulty in determining the data source). In order to ensure that the cleaned multimedia data packets can be restored later, the resource package to be cleaned can be transmitted to a cloud storage server for cloud storage, and the corresponding cloud storage path can be obtained. According to the cloud storage path and the resource information of the resource package to be cleaned, the cleaned resource data is recorded, and the resource package to be cleaned is cleared;

[0154] Specifically, the implementation process of recording the cleanup resource data according to the cloud storage path and the resource information of the resource package to be cleaned up may be to construct the cleanup resource data according to the cloud storage path and the resource information of the resource package to be cleaned up, and add the cleanup resource data to the cleanup resource list.

[0155] Among them, in order to ensure that the restored multimedia resource package can be verified subsequently, the resource information includes the resource package size of the multimedia resource package. In order to ensure that the multimedia software originally associated with the subsequently restored multimedia resource package is loaded normally, the resource information may also include the multimedia software to which the multimedia resource package belongs. In order to ensure that the storage path of the subsequently restored multimedia resource package remains unchanged and to ensure that the user can obtain the multimedia resource package according to their original habits, the resource information may also include the storage path of the multimedia resource package in the vehicle system.

[0156] In a feasible implementation, the releasable resources may include installed vehicle-mounted applications. In order to ensure that the impact on user operations when releasing resources is as small as possible, step S20 in this embodiment may include:

[0157] Obtaining uncommon applications in the vehicle system;

[0158] Using a portion of the uncommonly used applications provided by the application market as applications to be selected;

[0159] Sort the applications to be selected from low to high according to the usage frequencies corresponding to the applications to be selected, and obtain the application sorting result;

[0160] The top N applications to be selected in the application sorting result are used as applications to be cleaned;

[0161] The resource data is cleaned up according to the application information corresponding to the application to be cleaned up, and the application to be cleaned up in the vehicle system is uninstalled.

[0162] It should be noted that uncommon applications may be installed car applications that are set in the car system and have not been started within the preset time range, that is, car applications that have not been used recently. The preset time range can be pre-set by the administrator of the car system upgrade equipment, specifically a time range close to the current time, such as setting the preset time range to within a week or a month from the current time.

[0163] In actual use, the vehicle system can generally only automatically install applications from specific channels. When cleaning up installed vehicle applications, it is necessary to avoid clearing vehicle applications that cannot be automatically installed by the vehicle system. Therefore, the part of the infrequently used applications provided by the application market can be used as the application to be selected, that is, the part of the infrequently used applications that can be downloaded from the application market can be used as the application to be selected. The application market here can be the vehicle manufacturer, or an application market provided by an enterprise with industry authority.

[0164] When actually cleaning up applications, in order to minimize the impact on actual user use, when cleaning up installed car-mounted applications, you can prioritize cleaning up the less frequently used applications. Therefore, you can first sort each application to be selected from low to high according to its corresponding usage frequency to obtain the application sorting result, and use the top N applications to be selected in the application sorting result as applications to be cleaned. Record and clean up resource data according to the application information corresponding to the applications to be cleaned, and uninstall the applications to be cleaned in the car-mounted system.

[0165] Specifically, the implementation process of recording the cleaning resource data according to the application information corresponding to the application to be cleaned may be: constructing the cleaning resource data according to the application information corresponding to the application to be cleaned, and adding the cleaning resource data to the cleaning resource list.

[0166] Wherein, N may be a positive integer and may be pre-set by the administrator of the vehicle system upgrade device. The usage frequency corresponding to the to-be-selected application may be the number of times the to-be-selected application is started and / or operated within a pre-set time range (eg, within two months or longer).

[0167] In actual use, since applications are downloaded from the application market, at least a unique identifier of the application (such as the application name or the application number in the application market) is required, and applications generally have multiple versions, and the functions of each version may be different. In order to ensure that the subsequently restored application is consistent with the uninstalled application, the application information used when constructing the cleanup resource data includes at least the application version number and the application identifier. If necessary, other information may also be included, such as the application file size.

[0168] Of course, if necessary, the application files of the application to be cleaned can be stored in the cloud before uninstalling, and then the application files stored in the cloud can be used for restoration.

[0169] For different releasable resources, the preset parameters configured therefor may be different, that is, for different releasable resources, different N values, preset time ranges, etc. may be set.

[0170] It should be noted that if after cleaning, the available memory of the vehicle system still does not meet the system upgrade requirements, and there are no unextracted releasable resources in the resource priority queue, the automatic upgrade of the vehicle system can be stopped;

[0171] Of course, you can also modify the corresponding parameters (such as increasing the N value, modifying the preset time range, modifying the statistical period for statistical usage frequency, etc.), and then rebuild the resource priority queue, and then return to step S102 to continue trying to clean up resources.

[0172] This embodiment provides a method for upgrading a vehicle system. Since each releasable resource can be sorted according to the release priority, a resource priority queue can be constructed, and the resources in the vehicle system can be gradually released based on the resource priority queue, ensuring that when resources need to be released for automatic upgrading of the vehicle system, the impact on actual user use is minimized as much as possible.

[0173] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. Figure 4 , step S40 includes steps S401 to S403:

[0174] Step S401: During the upgrade process and / or when the upgrade is completed, obtain the recorded cleanup resource data.

[0175] It should be noted that since some resources in the vehicle system may have been cleared before the vehicle system is upgraded, in order to avoid reducing the user's actual usage experience as much as possible, when the vehicle system is upgraded, it is necessary to restore the previously cleared resources as much as possible. Therefore, the recorded cleanup resource data can be obtained.

[0176] Specifically, obtaining the recorded cleaning resource data may be reading the corresponding cleaning resource data from the cleaning resource list.

[0177] Among them, since more than one or more than one resource may be cleared when clearing resources, the cleanup resource list may contain multiple records. At this time, the multiple records in the cleanup resource list can be processed sequentially to restore the corresponding resources, such as traversing the cleanup resource list.

[0178] Step S402: Acquire releasable resources corresponding to the cleanup resource data.

[0179] It should be noted that the construction method and data used for cleaning resource data of different releasable resources are different. At this time, it is possible to determine which releasable resource the cleaning resource data corresponds to based on the data and / or construction format in the cleaning resource data.

[0180] Step S403: If the releasable resource is a recoverable resource, the vehicle system is restored according to the cleaned resource data.

[0181] It should be noted that the recoverable resources may be releasable resources of non-application cache type. This is because application cache recovery is difficult and the recovery value is relatively low, so cache recovery may not be attempted. Therefore, all releasable resources except for the application cache type may be set as recoverable resources.

[0182] If the resources are recoverable, the vehicle system can recover the resources based on the cleaned resource data.

[0183] For ease of understanding, the following example is given:

[0184] Assuming that the releasable resources include the vehicle application cache, offline map data package, multimedia resource package and installed vehicle application, then the recoverable resources may include the offline map data package, multimedia resource package and installed vehicle application;

[0185] At this time, the recovery methods for offline map data packages can be divided into two categories:

[0186] 1. The map area and map navigation software can be extracted from the cleaned resource data, and then the offline map download interface in the map navigation software is called to download the offline map data package of the map area;

[0187] 2. If the cleaned map data package to be cleaned has been stored in the cloud before, the cloud storage path, data package size and storage path of the offline map data package in the vehicle system can be extracted from the cleaned resource data at this time, and the file corresponding to the cloud storage path can be downloaded. The size of the downloaded file can be verified by the data package size. If the sizes are consistent, the downloaded file can be stored in the storage path of the offline map data package in the vehicle system;

[0188] Of course, the above two methods can also be combined, for example: download the file corresponding to the cloud storage path, verify the size of the downloaded file by the size of the data packet, and if the sizes are the same, store the downloaded file in the storage path of the offline map data packet in the vehicle system;

[0189] If the sizes are inconsistent, the map area and the map navigation software are extracted from the cleaned resource data, and then the offline map download interface in the map navigation software is called to download the offline map data package of the map area.

[0190] For multimedia resource packages, the recovery method is: extract the cloud storage path, resource package size and storage path of the multimedia resource package in the vehicle system from the cleaned resource data, then download the file corresponding to the cloud storage path, and verify the downloaded file size through the resource package size. If the sizes are consistent, the downloaded file will be stored in the storage path of the multimedia resource package in the vehicle system.

[0191] For installed car applications, the recovery methods can be divided into two types:

[0192] 1. Extract the application version number and application ID from the cleaned resource data, download the corresponding vehicle application package in the application market according to the application version number and application ID, and install it, so as to restore the installed vehicle application;

[0193] 2. Previously, the application files of the cleaned applications were stored in the cloud. At this time, the cloud storage path, application file size and storage path of the application files in the vehicle system can be extracted from the cleaned resource data, and the file corresponding to the cloud storage path can be downloaded. The size of the downloaded file can be verified by the application file size. If the sizes are consistent, the downloaded file will be stored in the storage path of the application files in the vehicle system. Afterwards, the corresponding global parameter settings or application registry additions can be performed on the application in the vehicle system.

[0194] Of course, the above two methods can also be combined, such as:

[0195] Extract the cloud storage path, application file size and storage path of the application file in the vehicle system from the cleaned resource data, download the file corresponding to the cloud storage path, verify the size of the downloaded file by the application file size, if the sizes are the same, store the downloaded file in the storage path of the application file in the vehicle system, and then perform corresponding global parameter settings or application registry addition on the application in the vehicle system;

[0196] If the sizes are inconsistent, the application version number and application identifier are extracted from the cleaned resource data, and the corresponding vehicle application package is downloaded from the application market according to the application version number and application identifier, and installed, thereby realizing the recovery of the installed vehicle application.

[0197] This embodiment provides a method for upgrading a vehicle system. Since it distinguishes whether a resource is recoverable when restoring the resource, it ensures that the previously cleared resources can be restored while avoiding the recovery of cached data of relatively low value. This saves device resources and network resources while minimizing the impact on the user's actual operations.

[0198] This application also provides a vehicle system upgrade device, please refer to Figure 5 , the vehicle system upgrade device comprises:

[0199] The detection module 10 is used to obtain at least one releasable resource when it is detected that the vehicle system needs to be upgraded and the available memory of the vehicle system does not meet the system upgrade requirements;

[0200] A cleaning module 20, used for cleaning the releasable resources in the vehicle system and recording the cleaned resource data;

[0201] The upgrade module 30 is used to download the vehicle computer upgrade package if the available memory of the vehicle computer system meets the system upgrade requirements after the cleaning, and upgrade the vehicle computer system according to the vehicle computer upgrade package;

[0202] The recovery module 40 is used to recover the resources of the vehicle system according to the recorded cleanup resource data during the upgrade process and / or after the upgrade is completed.

[0203] The vehicle system upgrade device provided by the present application adopts the vehicle system upgrade method in the above embodiment, which can solve the technical problem that once the existing technology detects that the storage space of the vehicle system is insufficient for upgrading, it will directly stop upgrading, resulting in the limitation of automatic upgrading of the vehicle system. Compared with the prior art, the beneficial effects of the vehicle system upgrade device provided by the present application are the same as the beneficial effects of the vehicle system upgrade method provided by the above embodiment, and the other technical features in the vehicle system upgrade device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0204] The present application provides a vehicle system upgrade device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the vehicle system upgrade method in the above-mentioned embodiment one.

[0205] Reference below Figure 6 , which shows a schematic diagram of the structure of a vehicle system upgrade device suitable for implementing the embodiment of the present application. The vehicle system upgrade device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The vehicle system upgrade device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0206] like Figure 6As shown, the vehicle system upgrade device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM: Read Only Memory) 1002 or the program loaded from the storage device 1003 to the random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the vehicle system upgrade device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the vehicle system upgrade device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a vehicle system upgrade device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.

[0207] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0208] The vehicle system upgrade device provided by the present application adopts the vehicle system upgrade method in the above embodiment, which can solve the technical problem that once the existing technology detects that the storage space of the vehicle system is insufficient for upgrading, it will directly stop upgrading, resulting in the limitation of automatic upgrading of the vehicle system. Compared with the prior art, the beneficial effects of the vehicle system upgrade device provided by the present application are the same as the beneficial effects of the vehicle system upgrade method provided by the above embodiment, and the other technical features of the vehicle system upgrade device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0209] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0210] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0211] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the vehicle system upgrade method in the above-mentioned embodiment.

[0212] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0213] The computer-readable storage medium may be included in the vehicle system upgrade device; or may exist independently without being installed in the vehicle system upgrade device.

[0214] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the vehicle system upgrade device, the vehicle system upgrade device: when it is detected that the vehicle system needs to be upgraded and the available memory of the vehicle system does not meet the system upgrade requirements, obtain at least one releasable resource; clean up the releasable resources in the vehicle system and record the cleaned resource data; if the available memory of the vehicle system meets the system upgrade requirements after cleaning, download the vehicle upgrade package and upgrade the vehicle system according to the vehicle upgrade package; during the upgrade process, and / or when the upgrade is completed, restore the resources of the vehicle system according to the recorded cleaned resource data.

[0215] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0216] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0217] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0218] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned vehicle system upgrade method, and can solve the technical problem that once the existing technology detects that the storage space of the vehicle system is insufficient for upgrading, it will directly stop upgrading, resulting in the limitation of the automatic upgrade of the vehicle system. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the vehicle system upgrade method provided by the above-mentioned embodiment, and will not be repeated here.

[0219] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned vehicle system upgrade method when executed by a processor.

[0220] The computer program product provided by the present application can solve the technical problem that once the existing technology detects that the storage space of the vehicle system is insufficient for upgrading, it will directly stop upgrading, resulting in the technical problem that the automatic upgrading of the vehicle system is limited. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the vehicle system upgrading method provided by the above embodiment, which will not be described in detail here.

[0221] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A vehicle computer system upgrade method, characterized in that: The method comprises: When it is detected that the vehicle computer system needs to be upgraded and the available memory of the vehicle computer system does not meet the system upgrade requirements, at least one releasable resource is obtained; Cleaning up the releasable resources in the vehicle system and recording cleaned-up resource data; If after cleaning, the available memory of the vehicle system meets the system upgrade requirements, then download the vehicle upgrade package, and upgrade the vehicle system according to the vehicle upgrade package; During the upgrade process, and / or when the upgrade is completed, the vehicle system resources are restored based on the recorded cleanup resource data.

2. The vehicle computer system upgrade method according to claim 1, characterized in that: The releasable resources include offline map data packets; The clearing of the releasable resources in the vehicle system and recording cleared resource data includes: Obtaining a data retrieval interface corresponding to the map navigation software in the vehicle system; Obtaining the offline map data package in the vehicle system by calling the data retrieval interface; Sort each offline map data package from low to high based on the corresponding map usage frequency to obtain a map sorting result; The top N offline map data packets in the map sorting result are used as the map data packets to be cleaned up; The map data packet to be cleared is cleared, and resource data is cleared according to data packet information corresponding to the map data packet to be cleared, wherein the data packet information includes a map area corresponding to the offline map data packet and a map navigation software to which the offline map data packet belongs.

3. The vehicle system upgrade method according to claim 1, characterized in that: The releasable resources include multimedia resource packages; The clearing of the releasable resources in the vehicle system and recording cleared resource data includes: Acquire a multimedia resource package in the vehicle system; Obtain the last usage time and usage frequency corresponding to each multimedia resource package; The multimedia resource packages whose corresponding last usage time is not within the preset time range are taken as the resource packages to be selected; Sorting the resource packages to be selected from low to high according to the usage frequencies corresponding to the resource packages to be selected, to obtain a multimedia sorting result; The top N resource packages to be selected in the multimedia sorting result are used as resource packages to be cleaned up; Perform cloud storage on the resource package to be cleaned and obtain a cloud storage path; Resource data is cleaned up according to the cloud storage path and the resource information record of the resource package to be cleaned up, and the resource package to be cleaned up is cleared, wherein the resource information includes the resource package size of the multimedia resource package and the multimedia software to which the multimedia resource package belongs.

4. The vehicle system upgrade method according to claim 1, characterized in that: The releasable resources include installed vehicle applications; The clearing of the releasable resources in the vehicle system and recording cleared resource data includes: Acquire a non-common application in the vehicle system, where the non-common application is an installed vehicle system application that is set in the vehicle system and has not been started within a preset time range; Using a portion of the uncommonly used applications provided by the application market as applications to be selected; Sort the applications to be selected from low to high according to the usage frequencies corresponding to the applications to be selected, and obtain the application sorting result; The top N applications to be selected in the application sorting result are used as applications to be cleaned; The resource data is cleaned up according to the application information corresponding to the application to be cleaned up, and the application to be cleaned up in the vehicle system is uninstalled, wherein the application information includes an application version number and an application identifier.

5. The vehicle computer system upgrade method according to claim 1, characterized in that: The releasable resources include vehicle application cache; The clearing of the releasable resources in the vehicle system and recording cleared resource data includes: Acquire a target vehicle-machine application in the vehicle-machine system, where the target vehicle-machine application is a vehicle-machine application that is set in the vehicle-machine system and has an application cache; Sorting the target vehicle computer applications from low to high according to the corresponding usage frequencies, and generating a sorting result; The top N target vehicle computer applications in the sorting result are used as applications to be cleaned up; Perform cache cleaning on the application to be cleaned, and obtain the total amount of cache cleaning data; The resource data is cleaned up according to the total amount of cleaned up data.

6. The vehicle system upgrade method according to claim 1, characterized in that: During the upgrade process and / or after the upgrade is completed, the vehicle system is restored based on the recorded cleanup resource data, including: During the upgrade process and / or when the upgrade is completed, obtain the recorded cleanup resource data; Get the releasable resources corresponding to the cleanup resource data; If the releasable resource is a recoverable resource, the vehicle system is restored according to the resource cleanup data, and the recoverable resource is a releasable resource of a non-application cache type.

7. The vehicle computer system upgrade method according to any one of claims 1 to 6, characterized in that: The acquiring of at least one releasable resource comprises: Obtain a resource priority queue, wherein the resource priority queue contains a plurality of releasable resources, and the various releasable resources are sorted from high to low according to release priority; Extracting at least one releasable resource from the resource priority queue; After the releasable resources in the vehicle system are cleaned up and the cleaned resource data are recorded, the method further includes: If after cleaning, the available memory of the vehicle system still does not meet the system upgrade requirements, then detecting whether there are any unextracted releasable resources in the resource priority queue; If so, return to the step of extracting at least one releasable resource from the resource priority queue.

8. A vehicle system upgrade device, characterized in that: The device comprises: A detection module, used to obtain at least one releasable resource when it is detected that the vehicle system needs to be upgraded and the available memory of the vehicle system does not meet the system upgrade requirements; A cleaning module, used for cleaning the releasable resources in the vehicle system and recording the cleaned resource data; An upgrade module, used for downloading a vehicle computer upgrade package if the available memory of the vehicle computer system meets the system upgrade requirements after cleaning, and upgrading the vehicle computer system according to the vehicle computer upgrade package; The recovery module is used to restore the resources of the vehicle computer system according to the recorded cleanup resource data during the upgrade process and / or when the upgrade is completed.

9. A vehicle system upgrade device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle system upgrade method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle system upgrade method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method for carrying out OTA upgrade on system software of Android smart television

    CN107493290A

  • System automatic continuous updating method, mobile terminal and storage medium

    CN111176671A

  • Reservation upgrading method, reservation upgrading system and storage medium

    CN116521206A

  • Offline map data downloading method and device

    CN116546083A