Vehicle machine upgrading method, device and equipment and storage medium

By using the differential upgrade package to differentially upgrade the car computer backup partition and adjust the startup boot, the problem of long car computer OTA upgrade time is solved, and users can still use the car computer system during the upgrade process, improving the user experience.

CN120743322APending Publication Date: 2025-10-03DONGFENG MOTOR CO LTD DONGFENG NISSAN PASSENGER VEHICLE CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510871650.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-26
Publication Date
2025-10-03

AI Technical Summary

Technical Problem

In the existing technology, the OTA upgrade time of the car machine is too long, and users need to wait for a long time, which affects the user experience.

Method used

Use the differential upgrade package to perform differential upgrades on each system file in the vehicle computer backup partition one by one, and adjust the system startup boot when the upgrade is completed, and restart the vehicle computer system from the backup partition.

Benefits of technology

It greatly shortens the upgrade time from the user's perspective, improves the user experience, and ensures that users can still use the car system during the upgrade process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120743322A_ABST
    Figure CN120743322A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle machine upgrading method, device and equipment and a storage medium, and relates to the technical field of vehicle upgrading, the method comprises the steps that a downloaded differential upgrading package is decompressed to obtain a differential data set, the differential upgrading package is obtained by comparing a newest file with a file of a previous upgrading version one by one, and the difference data set is obtained by comparing the newest file with the file of the previous upgrading version one by one; differential data generated by differential calculation is packaged and compressed to obtain a file package; respectively carrying out differential upgrading on each system file in the vehicle machine backup partition based on the differential data set; and when the differential upgrading is finished, adjusting the system starting guide of the vehicle machine system so as to restart the vehicle machine system from the vehicle machine backup partition. The differential upgrading is performed on the system files in the vehicle-mounted terminal backup partition one by one according to the differential upgrading package, and the system is modified to guide the vehicle-mounted terminal system to be restarted from the vehicle-mounted terminal backup partition after the upgrading is finished, so that a user can still use the vehicle-mounted terminal system in the upgrading process, the upgrading time consumption from the perspective of the user is greatly shortened, and the user experience is improved. And the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the increasing functionality of vehicle computers and the rapid development of the smart cockpit sector, the content and frequency of over-the-air (OTA) updates are increasing. OTA upgrade packages have increased from 200-300MB to approximately 1.5GB today, and are expected to continue to increase in the future, potentially reaching 3-5GB or more.

[0003] In this case, even if differential OTA upgrades are used, the overall upgrade time will continue to deteriorate, reaching 20-30 minutes, or even more. During this upgrade process, users cannot use the car computer and can only use the car computer system after the upgrade is completed and the system is restarted, which seriously affects the user experience. Therefore, it is necessary to consider a new OTA upgrade method to reduce user waiting time. Summary of the Invention

[0004] The main purpose of this application is to provide a vehicle computer upgrade method, device, equipment and storage medium, aiming to solve the technical problem that the existing vehicle computer OTA upgrade takes longer and longer time and the users have to wait longer and longer.

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

[0006] Decompress the downloaded differential upgrade package to obtain a differential data set. The differential upgrade package is a file package obtained by compressing the differential data generated by comparing the latest file with the files of the previous upgrade version one by one and performing differential calculations;

[0007] performing differential upgrade on each system file in the vehicle computer backup partition based on the differential data set;

[0008] When the differential upgrade is completed, the system startup boot of the vehicle computer system is adjusted to restart the vehicle computer system from the vehicle computer backup partition.

[0009] Optionally, performing differential upgrade on each system file in the vehicle computer backup partition based on the differential data set includes:

[0010] Extracting a list of files to be upgraded from the differential data set;

[0011] Traversing the list of files to be upgraded, and using the traversed file information to be upgraded as the current file information;

[0012] Searching for a system file corresponding to the current file information in the vehicle computer backup partition to obtain the current file;

[0013] Extracting differential data corresponding to the current file from the differential data set;

[0014] Performing differential restoration on the current file based on differential data corresponding to the current file to generate an upgraded file;

[0015] Installing the upgraded file into the vehicle computer backup partition;

[0016] At the end of the traversal, it is determined that the differential upgrade is complete.

[0017] Optionally, performing differential restoration on the current file based on differential data corresponding to the current file to generate an upgraded file includes:

[0018] Obtaining file meta-attributes of the current file;

[0019] Determining whether the current file is an executable file based on the file meta-attribute;

[0020] If it is an executable file, obtain the executable type corresponding to the current file;

[0021] Based on the differential data corresponding to the current file, the current file is differentially restored according to the file differential algorithm corresponding to the executable type to generate an upgraded file.

[0022] Optionally, after determining whether the current file is an executable file based on the file meta-attribute, the method further includes:

[0023] If it is not an executable file, then obtain the file size corresponding to the current file;

[0024] If the file size is larger than a preset size threshold, matching the file size with each preset size interval to determine a target size interval corresponding to the current file;

[0025] Based on the differential data corresponding to the current file, the current file is differentially restored according to the file differential algorithm corresponding to the target size interval to generate an upgraded file.

[0026] Optionally, if the file is not an executable file, after obtaining the file size corresponding to the current file, the method further includes:

[0027] If the file size is less than or equal to a preset size threshold, obtaining the file extension corresponding to the current file;

[0028] Determine whether the current file is a system configuration file according to the file extension;

[0029] If it is a system configuration file, further determining the configuration file type according to the file extension;

[0030] Based on the differential data corresponding to the current file, the current file is differentially restored according to a file differential algorithm corresponding to the configuration file type to generate an upgraded file.

[0031] Optionally, obtaining the file extension corresponding to the current file includes:

[0032] Get the full file name corresponding to the current file;

[0033] Locate the symbol position corresponding to the last extension separator in the complete name of the file;

[0034] The complete file name is truncated based on the symbol position to obtain a file extension.

[0035] Optionally, when the differential upgrade is completed, adjusting the system startup boot of the vehicle system to restart the vehicle system from the vehicle backup partition includes:

[0036] When the differential upgrade is completed, the user data list is extracted from the main system partition of the vehicle computer;

[0037] Determining user data to be synchronized based on the user data list;

[0038] Synchronize the user data to be synchronized to the vehicle computer backup partition;

[0039] When the synchronization is completed, the system startup boot of the vehicle system is adjusted to restart the vehicle system from the vehicle backup partition.

[0040] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle computer upgrade device, which includes:

[0041] A decompression module is used to decompress the downloaded differential upgrade package to obtain a differential data set. The differential upgrade package is a file package obtained by compressing the differential data generated by comparing the latest file with the files of the previous upgrade version one by one and performing differential calculations;

[0042] An upgrade module, configured to perform differential upgrade on each system file in the vehicle computer backup partition based on the differential data set;

[0043] The adjustment module is used to adjust the system startup boot of the vehicle computer system when the differential upgrade is completed, so as to restart the vehicle computer system from the vehicle computer backup partition.

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

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

[0046] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the steps of the vehicle computer upgrade method described above.

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

[0048] Since each system file in the car computer backup partition is differentially upgraded one by one according to the differential upgrade package, and the system boot is modified to restart the car computer system from the car computer backup partition when the upgrade is completed, it ensures that the user can still use the car computer system during the upgrade process, greatly shortening the upgrade time from the user's perspective and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

[0051] Figure 1 A flowchart of the first embodiment of the vehicle computer upgrade method of this application is provided;

[0052] Figure 2 A flowchart of the second embodiment of the vehicle computer upgrade method of this application is provided;

[0053] Figure 3 This is a schematic diagram of the module structure of the vehicle computer upgrade device according to an embodiment of the present application;

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

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

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

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

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

[0059] In this embodiment, the vehicle computer upgrade method includes steps S10 to S30:

[0060] Step S10: decompress the downloaded differential upgrade package to obtain a differential data set.

[0061] It should be noted that the executor of this embodiment can be the vehicle computer upgrade device, or the vehicle itself. The vehicle computer upgrade device can be a controller set in the vehicle, such as an ECU controller, or other devices that can achieve the same or similar functions. This embodiment does not limit this. In this embodiment and the following embodiments, the vehicle computer upgrade method of this application is explained by taking the vehicle computer upgrade device as an example.

[0062] It should be noted that the differential upgrade package in this embodiment is not a traditional differential upgrade package. A traditional differential upgrade package is a differential file package generated by performing differential calculation on the complete installation package (or installation image) of the current upgrade and the complete installation package (or installation image) of the previous version;

[0063] The differential upgrade package in this embodiment is a file package obtained by comparing the latest file with the file of the previous upgraded version one by one, performing differential calculation to generate differential data, and then compressing it. Therefore, when in use, the downloaded differential upgrade package can be decompressed to obtain a differential data set. The differential data set stores the differential data corresponding to each file. The differential data can be used to perform differential restoration on each file to obtain the latest file.

[0064] Step S20: performing differential upgrade on each system file in the vehicle computer backup partition based on the differential data set.

[0065] It should be noted that the differential upgrade package in this embodiment is produced differently from the traditional differential upgrade package. Based on this, the use of the differential upgrade package in this embodiment is also different from the use of the traditional differential upgrade package. The function of the traditional differential upgrade package is to perform differential restoration between the differential upgrade package and the previous version of the upgrade package (or upgrade image) to generate a complete upgrade package (or upgrade image). After that, the complete upgrade package (or upgrade image) is used for decompression and upgrade.

[0066] The use of the differential upgrade package in this embodiment is actually to perform differential restoration on each system file to be upgraded respectively using the differential data set obtained by decompression, thereby obtaining the latest system file.

[0067] In actual use, in order to avoid the upgrade affecting the user's use of the system, a car computer backup partition can be set up in the vehicle. The car computer backup partition stores the same system as the car computer main system partition. In order to avoid affecting the user, the system files in the car computer backup partition can be differentially upgraded based on the differential data set, instead of directly upgrading the system files in the car computer main system partition. At this time, the user can still use the car computer system normally, thereby ensuring that the user's perception of the upgrade can be reduced, thereby improving the user's actual usage experience.

[0068] Step S30: When the differential upgrade is completed, the system startup boot of the vehicle system is adjusted to restart the vehicle system from the vehicle backup partition.

[0069] It is understandable that when the differential upgrade is completed, the system in the car computer backup partition has been upgraded to the latest version. At this time, in order to ensure that users can use the latest version of the upgraded system, the system startup boot of the car computer system can be adjusted to ensure that when the car computer system is restarted, it is restarted from the car computer backup partition.

[0070] In actual use, after restarting the car computer system from the car computer backup partition, the car computer system can be verified. If the car computer system can be used normally, the partition can be adjusted, and the car computer backup partition can be used as the new car computer main system partition, and the car computer main system partition before the upgrade can be used as the new car computer backup partition. At the same time, in order to ensure that the system files of the car computer backup partition are also the latest, so as to facilitate the next upgrade, the system files in the new car computer backup partition (that is, the car computer main system partition before the upgrade) can be differentially upgraded based on the differential data set.

[0071] In a specific implementation, to avoid loss of user usage data, step S30 in this embodiment may include:

[0072] When the differential upgrade is completed, the user data list is extracted from the main system partition of the vehicle computer;

[0073] Determining user data to be synchronized based on the user data list;

[0074] Synchronize the user data to be synchronized to the vehicle computer backup partition;

[0075] When the synchronization is completed, the system startup boot of the vehicle system is adjusted to restart the vehicle system from the vehicle backup partition.

[0076] It should be noted that the user data list may be a list recording user data storage directories, in which storage paths of various user data are recorded. User data may include cache, logs, media files and other data.

[0077] In actual use, since the last upgrade may have been a long time ago, and in order to avoid unnecessary performance consumption, the data in the main system partition and the backup partition of the vehicle computer are generally not synchronized frequently. At the same time, when performing a differential upgrade on the system files in the backup partition of the vehicle computer, the user may still be using the vehicle computer system in the main system partition of the vehicle computer, and the user data will also change at this time. Therefore, the user data in the backup partition of the vehicle computer may be significantly different from the actual user data at the current moment;

[0078] Based on this, in order to ensure that user data can be kept up to date, when the differential upgrade is completed, the latest user data can be read from the vehicle main system partition according to the user data list to obtain the user data to be synchronized. Afterwards, the user data to be synchronized is synchronized to the vehicle backup partition to the same path as the vehicle main system partition to ensure that the user data is up to date.

[0079] It is understandable that when the synchronization is completed, the system files in the car computer backup partition are already the latest, and the user data is also the latest. Based on this, the system startup boot of the car computer system can be adjusted to restart the car computer system from the car computer backup partition. At this time, the user's perception is actually just a system restart, and the overall perception of the upgrade takes a short time, and the user data will not change, ensuring that the time for the car computer upgrade is greatly shortened at the user perception level, thereby improving the user experience.

[0080] This embodiment provides a vehicle computer upgrade method. Since each system file in the vehicle computer backup partition is differentially upgraded one by one according to the differential upgrade package, and when the upgrade is completed, the system boot is modified to restart the vehicle computer system from the vehicle computer backup partition, ensuring that the user can still use the vehicle computer system during the upgrade process, greatly shortening the upgrade time from the user's perspective and improving the user experience.

[0081] 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 embodiment 1 can be referred to the above introduction and will not be described in detail later. Figure 2 , step S20 includes steps S201 to S207:

[0082] Step S201: extracting a list of files to be upgraded from the differential data set.

[0083] Step S202: traverse the list of files to be upgraded, and use the traversed file information to be upgraded as current file information.

[0084] It should be noted that as the system is upgraded, the number of system files will increase. The differential data set of this embodiment actually only contains the differential data of the system files whose file contents have changed during this upgrade. In order to speed up the upgrade rate, it is necessary to avoid traversing files that have not changed. Based on this, when making a differential upgrade package, you can add a list to record the file information of the system files that have changed during this upgrade, that is, the list of files to be upgraded. Therefore, during the upgrade, in order to avoid traversing files that have not changed, you can extract the list of files to be upgraded from the differential data set. Afterwards, traverse the list of files to be upgraded, and use the traversed information of the files to be upgraded as the current file information.

[0085] Among them, in order to improve the upgrade efficiency, multi-threaded synchronization can be used when traversing the list of files to be upgraded. For example, when traversing the list of files to be upgraded, multiple files to be upgraded information are obtained at one time and distributed to multiple threads. Each thread obtains one file to be upgraded information as the current file information and performs subsequent processing.

[0086] Step S203: searching the vehicle computer backup partition for a system file corresponding to the current file information to obtain the current file.

[0087] Step S204: extracting the differential data corresponding to the current file from the differential data set.

[0088] Step S205: performing differential restoration on the current file based on the differential data corresponding to the current file to generate an upgraded file.

[0089] Step S206: Install the upgraded file into the vehicle computer backup partition.

[0090] It should be noted that after determining the current file information, the corresponding system file can be searched in the vehicle computer backup partition according to the current file information, and it can be used as the current file. The differential data corresponding to the current file can be extracted from the differential data set. After that, the differential restoration algorithm can be used to perform differential restoration using the corresponding differential data to generate the latest system file corresponding to the current file, that is, the upgraded file. After that, the upgraded file can be installed in the vehicle computer backup partition.

[0091] In actual use, installing the upgraded files to the backup partition of the vehicle computer can be done by replacing the original system files in the backup partition with the upgraded files. Of course, for some systems, simply replacing files may affect their application. Based on this, other processing can also be performed, such as adding global variables, etc. This embodiment does not limit this.

[0092] Step S207: When the traversal is finished, it is determined that the differential upgrade is completed.

[0093] It is understandable that at the end of the traversal, the system files corresponding to each piece of information in the list of files to be upgraded have actually completed the differential upgrade. Therefore, it can be determined that the differential upgrade is completed and subsequent processing is performed.

[0094] In a specific implementation, to ensure correct differential restoration, step S205 in this embodiment may include:

[0095] Obtaining file meta-attributes of the current file;

[0096] Determining whether the current file is an executable file based on the file meta-attribute;

[0097] If it is an executable file, obtain the executable type corresponding to the current file;

[0098] Based on the differential data corresponding to the current file, the current file is differentially restored according to the file differential algorithm corresponding to the executable type to generate an upgraded file.

[0099] It should be noted that when making a differential upgrade package, the differential data is obtained by dividing and calculating each file separately. Different differential algorithms have different execution efficiency for different types of files. For example, the bsdiff differential algorithm can efficiently handle binary differences and is suitable for small-scale code changes; algorithms such as hdiff and xdelta3 support block comparison and are more suitable for local changes of large files; VCDIFF has a high compression rate for duplicate file content and is more suitable for differential calculations of text data.

[0100] Based on this, in order to ensure differential efficiency, when calculating differential data, the differential algorithms used for different types of files may also be different. Accordingly, in order to ensure that differential restoration can be performed correctly, it is also necessary to use the corresponding file differential algorithm for differential restoration according to the different file types.

[0101] In actual use, a more suitable differential algorithm is generally used for executable files, and the differential algorithms used for executable files of different executable types (such as so dynamic libraries, APK installation packages, etc.) may also be different. In this case, in order to ensure correct differential restoration, you can first obtain the file meta-attributes of the current file, and determine whether the current file is an executable file based on the file meta-attributes. If it is an executable file, further determine the executable type corresponding to the current file, and based on the differential data corresponding to the current file, perform differential restoration on the current file according to the file differential algorithm corresponding to the executable type to generate an upgraded file.

[0102] For example: call the stat() function of the File class to read the file meta-attributes of the current file, and determine whether the current file is an executable file (such as a binary file, i.e., a Bin file) based on the file meta-attributes. If it is an executable file, further determine the executable type based on the file suffix or other information such as the code in the file, perform differential restoration based on the differential algorithm corresponding to the executable type (such as the bsdiff differential algorithm), obtain the upgraded file, and then install the upgraded file to the vehicle computer backup partition.

[0103] In a specific implementation, in order to correctly perform differential restoration, after the step of determining whether the current file is an executable file based on the file meta-attribute in this embodiment, the following steps are further included:

[0104] If it is not an executable file, then obtain the file size corresponding to the current file;

[0105] If the file size is larger than a preset size threshold, matching the file size with each preset size interval to determine a target size interval corresponding to the current file;

[0106] Based on the differential data corresponding to the current file, the current file is differentially restored according to the file differential algorithm corresponding to the target size interval to generate an upgraded file.

[0107] It should be noted that some file differential algorithms are more suitable for processing large files. Based on this, in order to proceed correctly, the file size corresponding to the current file can be obtained. If the file size is greater than the preset size threshold, it means that the current file is a large file. At this time, the file size can be further matched with each preset size interval to determine the target size interval corresponding to the current file. Finally, the differential data corresponding to the current file is used to perform differential restoration on the current file according to the file differential algorithm corresponding to the target size interval to generate an upgraded file.

[0108] Among them, the preset size threshold can be set in advance by the manager of the vehicle computer upgrade equipment, such as setting the preset size threshold to 100M; each preset size interval can correspond to a different file differential algorithm, such as the first preset size interval corresponds to the Rsync differential algorithm, the second preset size interval corresponds to the xdelta3 differential algorithm, etc.

[0109] In a specific implementation, in order to correctly perform differential restoration, if the file is not an executable file, after obtaining the file size corresponding to the current file, the following steps are further included:

[0110] If the file size is less than or equal to a preset size threshold, obtaining the file extension corresponding to the current file;

[0111] Determine whether the current file is a system configuration file according to the file extension;

[0112] If it is a system configuration file, further determining the configuration file type according to the file extension;

[0113] Based on the differential data corresponding to the current file, the current file is differentially restored according to a file differential algorithm corresponding to the configuration file type to generate an upgraded file.

[0114] It should be noted that if the file size is less than or equal to the preset size threshold, it means that the current file is a small file, and small files also include a variety of files, such as system configuration files, small multimedia files, system log files, etc. For system configuration files, the differential algorithm used may be different when the configuration file type is different. In order to use the correct file differential algorithm for differential restoration, you can first obtain the file extension corresponding to the current file, and then determine whether the current file is a system configuration file based on the file extension. If it is a system configuration file, you can further determine the configuration file type based on the file extension. Then, based on the differential data corresponding to the current file, perform differential restoration on the current file according to the file differential algorithm corresponding to the configuration file type to generate an upgraded file.

[0115] For example, the configuration extension list records the file extensions of system configuration files, and further divides the configuration file types according to the file extensions, such as InI, Json, and Properties as the first category, XML and YAML as the second category, and TOML format as the third category. If the existence function is used to quickly determine whether the file extension of the current file is in the configuration extension list, the current file can be determined to be a system configuration file. Then, the configuration file type to which the file extension further belongs can be found. Then, based on the differential data corresponding to the current file, the current file is differentially restored according to the file differential algorithm corresponding to the configuration file type to generate an upgraded file.

[0116] In actual applications, if the current file is not a system configuration file, it means that the specificity of the current file is low. At this time, the default file differential algorithm can be used for differential restoration. For example, if the default file differential algorithm is the rsync differential algorithm, when it is determined that the current file is not a system configuration file, the differential data corresponding to the current file can be used to perform differential restoration on the current file according to the rsync file differential algorithm to generate an upgraded file.

[0117] In a specific implementation, in order to accurately obtain the file extension, the step of obtaining the file extension corresponding to the current file in this embodiment may include:

[0118] Get the full file name corresponding to the current file;

[0119] Locate the symbol position corresponding to the last extension separator in the complete name of the file;

[0120] The complete file name is truncated based on the symbol position to obtain a file extension.

[0121] It should be noted that the extension separator may be a separator for distinguishing a file name from an extension. For example, in Windows, the extension separator is “.”.

[0122] In actual use, in some cases, extension separators may also appear in file names. In order to correctly obtain the file extension in this case, you can first use the file name acquisition function to extract the full file name corresponding to the current file. Then, use the character matching algorithm to locate the symbol position corresponding to the last extension separator in the full file name. Finally, use the string truncation algorithm to truncate characters from the symbol position corresponding to the last extension separator backwards to obtain the file extension.

[0123] For example: Taking Java as an example, you can first use the getName() function of File to read the full name of the current file, then use the lastIndexOf() function to locate the symbol position of the last extension separator in the full name, and finally, use the string interception function substring() to intercept the characters backward based on the symbol position to obtain the file extension.

[0124] This embodiment provides a vehicle computer upgrade method. Since different file differential algorithms can be used according to different file types during the query and restoration process, different differential algorithms can be used for targeted differential processing for different system files, thereby improving the overall execution efficiency.

[0125] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the vehicle computer upgrade method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0126] This application also provides a vehicle upgrade device, please refer to Figure 3 , the vehicle computer upgrading device includes:

[0127] The decompression module 10 is used to decompress the downloaded differential upgrade package to obtain a differential data set. The differential upgrade package is a file package obtained by compressing the differential data generated by comparing the latest file with the files of the previous upgrade version one by one and performing differential calculations;

[0128] An upgrade module 20 is configured to perform differential upgrade on each system file in the vehicle computer backup partition based on the differential data set;

[0129] The adjustment module 30 is used to adjust the system startup boot of the vehicle system when the differential upgrade is completed, so as to restart the vehicle system from the vehicle backup partition.

[0130] The vehicle-machine upgrade device provided in this application, which utilizes the vehicle-machine upgrade method described in the aforementioned embodiment, can address the technical issues associated with prior art vehicle-machine OTA upgrades, which are increasingly time-consuming and require users to wait longer and longer. Compared to the prior art, the vehicle-machine upgrade device provided in this application offers the same beneficial effects as the vehicle-machine upgrade method described in the aforementioned embodiment. Other technical features of the vehicle-machine upgrade device are the same as those disclosed in the aforementioned embodiment and are not further elaborated here.

[0131] The present application provides a vehicle computer upgrade device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed 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 computer upgrade method in the above-mentioned embodiment one.

[0132] Reference below Figure 4 , which shows a schematic structural diagram of a vehicle upgrade device suitable for implementing an embodiment of the present application. The vehicle 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-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The vehicle upgrade device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0133] like Figure 4 As shown, the vehicle upgrade device may include a processing device 1001 (e.g., a central processing unit, graphics processing unit, etc.), which can perform various appropriate actions and processes based on programs stored in a read-only memory 1002 or programs loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the vehicle upgrade device. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: an input device 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; a storage device 1003 including, for example, a magnetic tape or hard disk; and a communication device 1009. The communication device 1009 allows the vehicle upgrade device to communicate with other devices wirelessly or wired to exchange data. Although the figure shows a vehicle upgrade device with various systems, it should be understood that it is not required to implement or include all of the systems shown. More or fewer systems may be implemented or included instead.

[0134] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising 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 via a communication device, or installed from a storage device 1003, or installed from a read-only memory 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 performed.

[0135] The vehicle-machine upgrade device provided in this application, which utilizes the vehicle-machine upgrade method described in the aforementioned embodiment, can address the technical issues associated with prior art vehicle-machine OTA upgrades, which are increasingly time-consuming and require users to wait longer and longer. Compared to the prior art, the vehicle-machine upgrade device provided in this application offers the same beneficial effects as the vehicle-machine upgrade method described in the aforementioned embodiment. Other technical features of the vehicle-machine upgrade device are the same as those disclosed in the aforementioned embodiment and are not further elaborated upon here.

[0136] It should be understood that the various parts disclosed in this application can be implemented using 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.

[0137] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

[0138] 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 computer upgrade method in the above-mentioned embodiment.

[0139] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. 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 thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution 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 thereof.

[0140] The computer-readable storage medium may be included in the vehicle computer upgrade device; or it may exist independently without being assembled into the vehicle computer upgrade device.

[0141] 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-computer upgrade device, the vehicle-computer upgrade device: decompresses the downloaded differential upgrade package to obtain a differential data set, where the differential upgrade package is a file package obtained by packaging and compressing the differential data generated by comparing the latest file with the file of the previous upgrade version one by one, performing differential calculation; based on the differential data set, each system file in the vehicle-computer backup partition is differentially upgraded; when the differential upgrade is completed, adjusts the system startup boot of the vehicle-computer system to restart the vehicle-computer system from the vehicle-computer backup partition.

[0142] 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 stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving 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., through the Internet using an Internet service provider).

[0143] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of 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 box can also occur in a different order than that marked in the accompanying drawings. For example, two 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 box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.

[0144] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.

[0145] The computer-readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned vehicle-mounted system upgrade method. This computer-readable storage medium can address the technical issues associated with prior art vehicle-mounted system OTA upgrades, which are increasingly time-consuming and require users to wait longer and longer. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the vehicle-mounted system upgrade method provided in the aforementioned embodiments, and are not further elaborated here.

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

[0147] The computer program product provided in this application can solve the technical problem of the existing technology of vehicle-mounted over-the-air (OTA) upgrades, which are increasingly time-consuming and require users to wait longer and longer. Compared with the existing technology, the beneficial effects of the computer program product provided in this application are the same as those of the vehicle-mounted upgrade method provided in the above embodiment, and will not be elaborated here.

[0148] The above description is only part of the embodiments of the present application and does not limit the patent scope of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A vehicle computer upgrade method, characterized in that: The vehicle computer upgrade method includes: Decompress the downloaded differential upgrade package to obtain a differential data set. The differential upgrade package is a file package obtained by compressing the differential data generated by comparing the latest file with the files of the previous upgrade version one by one and performing differential calculations; performing differential upgrade on each system file in the vehicle computer backup partition based on the differential data set; When the differential upgrade is completed, the system startup boot of the vehicle computer system is adjusted to restart the vehicle computer system from the vehicle computer backup partition.

2. The vehicle computer upgrade method according to claim 1, characterized in that: The differential upgrade of each system file in the vehicle computer backup partition based on the differential data set includes: Extracting a list of files to be upgraded from the differential data set; Traversing the list of files to be upgraded, and using the traversed file information to be upgraded as the current file information; Searching for a system file corresponding to the current file information in the vehicle computer backup partition to obtain the current file; Extracting differential data corresponding to the current file from the differential data set; Performing differential restoration on the current file based on differential data corresponding to the current file to generate an upgraded file; Installing the upgraded file into the vehicle computer backup partition; At the end of the traversal, it is determined that the differential upgrade is complete.

3. The vehicle computer upgrade method according to claim 2, characterized in that: The performing differential restoration on the current file based on the differential data corresponding to the current file to generate an upgraded file includes: Obtaining file meta-attributes of the current file; Determining whether the current file is an executable file based on the file meta-attribute; If it is an executable file, obtain the executable type corresponding to the current file; Based on the differential data corresponding to the current file, the current file is differentially restored according to the file differential algorithm corresponding to the executable type to generate an upgraded file.

4. The vehicle computer upgrade method according to claim 3, characterized in that: After determining whether the current file is an executable file based on the file meta-attribute, the method further includes: If it is not an executable file, then obtain the file size corresponding to the current file; If the file size is larger than a preset size threshold, matching the file size with each preset size interval to determine a target size interval corresponding to the current file; Based on the differential data corresponding to the current file, the current file is differentially restored according to the file differential algorithm corresponding to the target size interval to generate an upgraded file.

5. The vehicle computer upgrade method according to claim 3, characterized in that: If the file is not an executable file, after obtaining the file size corresponding to the current file, the method further includes: If the file size is less than or equal to a preset size threshold, obtaining the file extension corresponding to the current file; Determine whether the current file is a system configuration file according to the file extension; If it is a system configuration file, further determining the configuration file type according to the file extension; Based on the differential data corresponding to the current file, the current file is differentially restored according to a file differential algorithm corresponding to the configuration file type to generate an upgraded file.

6. The vehicle computer upgrade method according to claim 5, characterized in that: The obtaining of the file extension corresponding to the current file includes: Get the full file name corresponding to the current file; Locate the symbol position corresponding to the last extension separator in the complete name of the file; The complete file name is truncated based on the symbol position to obtain a file extension.

7. The vehicle computer upgrade method according to any one of claims 1 to 6, characterized in that: When the differential upgrade is completed, adjusting the system startup boot of the vehicle system to restart the vehicle system from the vehicle backup partition includes: When the differential upgrade is completed, the user data list is extracted from the main system partition of the vehicle computer; Determining user data to be synchronized based on the user data list; Synchronize the user data to be synchronized to the vehicle computer backup partition; When the synchronization is completed, the system startup boot of the vehicle system is adjusted to restart the vehicle system from the vehicle backup partition.

8. A vehicle computer upgrade device, characterized in that: The vehicle computer upgrading device includes: A decompression module is used to decompress the downloaded differential upgrade package to obtain a differential data set. The differential upgrade package is a file package obtained by compressing the differential data generated by comparing the latest file with the files of the previous upgrade version one by one and performing differential calculations; An upgrade module, configured to perform differential upgrade on each system file in the vehicle computer backup partition based on the differential data set; The adjustment module is used to adjust the system startup boot of the vehicle computer system when the differential upgrade is completed, so as to restart the vehicle computer system from the vehicle computer backup partition.

9. A vehicle computer upgrade device, characterized in that: The device includes: 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 computer 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 computer upgrade method according to any one of claims 1 to 7 are implemented.