Method, device and medium for upgrading vehicle system
By obtaining and extracting resource files from the upgrade package and syncing them to a single partition of the vehicle computer system, the problem that the existing technology cannot realize the silent upgrade of single partitions in the Android system is solved, and the sensingless upgrade of single partitions is achieved, satisfying the The need to store data during development improves the flexibility of system updates.
Patent Information
- Application Number
- CN202011427208.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-09
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2040-12-09
AI Technical Summary
The existing A/B system upgrade solution cannot achieve the silent and unsensible upgrade of single partitions in Android system, and cannot meet the needs of adding additional single partition storage materials in development.
By obtaining the upgrade package, extracting the upgrade files, creating a temporary mount directory, mounting a single partition to a temporary directory, extracting resource files and syncing them to a single partition, realizing silent and senseless upgrade of a single partition.
It realizes the silent and unsensible upgrade of single partitions in the car computer system, meets the need to add additional single partition storage data to the Android system, and improves the flexibility and user experience of system updates.
Smart Images

Figure CN114610361B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of system upgrade, and in particular to a method, device and medium for upgrading a vehicle system. Background Art
[0002] With the development of Internet technology, car computer systems are becoming increasingly intelligent and functional, meeting people's growing demand for more functions.
[0003] Devices using Android 7.0 and above are equipped with A / B dual systems. The existing system update method can achieve silent upgrade of the Android system by implementing a single system upgrade of A or B without the user's awareness. Due to development needs, it is sometimes necessary to add an additional single partition in the Android system to store relevant data. When a single partition in the system needs to be upgraded, the existing A / B system upgrade solution cannot be implemented. Summary of the invention
[0004] The embodiments of the present application provide a method, device and medium for upgrading a vehicle system, so as to realize a silent and imperceptible upgrade of a single partition in the vehicle system.
[0005] In a first aspect, an embodiment of the present application provides a method for upgrading a vehicle system, comprising:
[0006] Obtain an upgrade package, extract an upgrade file in the upgrade package, the upgrade package is used to upgrade a vehicle system, the vehicle system includes a running first system and a non-running second system, and the second system of the vehicle system is upgraded according to the upgrade file;
[0007] Create a temporary mount directory under a preset directory, mount a single partition of the vehicle system to the temporary mount directory, the single partition is used to store files required for running applications in the vehicle system, and the temporary mount directory is used to perform read and write operations on the single partition;
[0008] Extract the resource files in the upgrade package and store the resource files in the temporary mount directory;
[0009] The resource files under the temporary mount directory are synchronized to the single partition.
[0010] In a second aspect, an embodiment of the present application provides a device for upgrading a vehicle system, including:
[0011] an acquisition unit, configured to acquire an upgrade package and extract an upgrade file from the upgrade package, wherein the upgrade package is used to upgrade a vehicle system, wherein the vehicle system includes a first system that is in operation and a second system that is not in operation, and the second system of the vehicle system is upgraded according to the upgrade file;
[0012] A directory creation unit, used to create a temporary mount directory under the preset directory, mount a single partition of the vehicle system to the temporary mount directory, the single partition is used to store files required for running applications in the vehicle system, and the temporary mount directory is used to perform read and write operations on the single partition;
[0013] A resource file extraction unit, used to extract resource files in the upgrade package and store the resource files in the temporary mount directory;
[0014] The single partition upgrade unit is used to synchronize the resource files under the temporary mount directory to the single partition.
[0015] In a third aspect, an embodiment of the present application provides a device for updating data, including:
[0016] A processor, a memory and a bus, wherein the processor and the memory are connected via a bus, wherein the memory is used to store a set of program codes, and the processor is used to call the program codes stored in the memory to execute the method in the first aspect or any possible implementation of the first aspect.
[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program includes instructions for executing the method in the first aspect or any possible implementation of the first aspect.
[0018] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes: a computer program code, when the computer program code is run on a computer, enables the computer to execute the method in the above-mentioned first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The following is an introduction to the drawings used in the embodiments of the present application.
[0020] Figure 1 It is a schematic diagram of the architecture of a system for upgrading a vehicle system provided in an embodiment of the present application;
[0021] Figure 2 It is a flowchart of a method for upgrading a vehicle system provided in an embodiment of the present application;
[0022] Figure 3 It is a schematic diagram of the composition of a vehicle system upgrade device provided in an embodiment of the present application;
[0023] Figure 4 It is a schematic diagram of the composition of another device for upgrading a vehicle system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application.
[0025] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0026] See also Figure 1 , is a schematic diagram of the architecture of a system for upgrading a vehicle system provided in an embodiment of the present application. The architecture of the system may include a terminal 10 and a server 20.
[0027] Among them, the terminal 10 can also be called user equipment (UE for short). It can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted; it can also be deployed on the water surface (such as on a ship, etc.); it can also be deployed in the air (for example, on an airplane, a balloon, and a satellite, etc.). It can also be called a user terminal, terminal equipment, access terminal equipment, vehicle-mounted terminal, UE unit, UE station, mobile station, mobile station, remote station, remote terminal equipment, mobile device, UE terminal equipment, mobile terminal, wireless communication equipment, UE agent or UE device, etc. The terminal can be fixed or mobile, etc. Its specific form can be a mobile phone, a tablet computer (Pad), a computer with wireless transceiver function, a vehicle-mounted terminal device, a wireless terminal in a smart home, a wearable terminal device, etc. It is an entity on the user side for receiving or transmitting signals. In an embodiment of the present application, the terminal 10 can receive the version number of the upgrade package sent by the server 20, and compare the version number with the current version number of the vehicle system. If the version number is higher than the current version number of the vehicle system, the system update information is pushed on the system interface to prompt the user to upgrade the vehicle system and obtain the upgrade package sent by the server 20. Furthermore, the terminal 10 can obtain the resource files in the upgrade package and upgrade a single partition of the vehicle system. For the sake of simplicity of description, the embodiment of the present application only shows one terminal 10. In an actual scenario, there may be one or more users who receive the version number of the upgrade package sent by the server 20 and obtain the upgrade package sent by the server 20. Therefore, the number of terminals 10 may also be one or more, and the embodiment of the present application does not impose any limitation.
[0028] The server 20, which can also be called a backend server, a business server, etc., can be used to provide various business services to users. For example, in this application, the system version number and the system upgrade package can be sent to the user, and the system update service can be provided to the user.
[0029] See also Figure 2 , is a flow chart of a method for upgrading a vehicle system provided in an embodiment of the present application, comprising the following steps:
[0030] S201, obtaining an upgrade package, extracting upgrade files in the upgrade package, and upgrading the second system of the vehicle system.
[0031] For example, after obtaining the upgrade package, the second system can be upgraded by reading the payload.bin file in the upgrade package that records the data for upgrading the second system, and using the background upgrade program update_engine. The entire update process is completed in the background and is invisible to users.
[0032] The upgrade package is used to upgrade the vehicle system, and the vehicle system includes a running first system and a non-running second system.
[0033] In a possible implementation, the user may obtain the upgrade package through Over The Air (OTA) technology.
[0034] For example, the upgrade package can be obtained through SMS. The user sends a short message to the server through the terminal to request the server to download the upgrade package service. The server sends the download data to the user's terminal device through SMS.
[0035] Alternatively, the upgrade package can be obtained in a browser-based manner. The user logs in to the server, searches for the application menu, and downloads the corresponding upgrade package from the network backend server as needed;
[0036] Alternatively, the developer may send a link notification of the upgrade package download to the terminal user via SMS or mobile email according to business needs, and the user clicks the link to realize remote automatic upgrade. The embodiment of the present application does not impose any limitation on the method of obtaining the upgrade package.
[0037] Through the above method, it is easier for users to obtain upgrade packages. By upgrading the second system that is not running in the vehicle system, a silent and seamless upgrade of the vehicle system can be achieved.
[0038] Optionally, obtaining the upgrade package includes:
[0039] In response to a confirmation instruction from a user to upgrade the vehicle system, obtaining an upgrade package and verifying the upgrade package;
[0040] If the verification passes, mapping the upgrade package into the memory;
[0041] If the verification fails, the system upgrade is terminated.
[0042] Optionally, the verifying the upgrade package includes:
[0043] The upgrade package is subjected to an integrity check and a signature check, wherein the integrity check is used to ensure the integrity of the upgrade package, and the signature check is used to ensure that the upgrade package matches the vehicle system.
[0044] For example, the integrity check of the upgrade package is performed using Message Digest Algorithm 5 (MD5 for short). The md5 value in the upgrade package is obtained and compared with the md5 value of the original upgrade package pre-stored on the server. If the md5 value in the upgrade package is the same as the md5 value of the original upgrade package pre-stored on the server, the upgrade package is complete and the integrity check passes; if the md5 value in the upgrade package is different from the md5 value of the original upgrade package pre-stored on the server, the upgrade package is incomplete and the integrity check fails. The algorithm for performing integrity check on the upgrade package can also be Secure Hash Algorithm 2 (SHA-2 for short) or Message Authentication Code (MAC for short), etc., which is not limited in any way in the embodiments of the present application.
[0045] At the same time, the upgrade package obtained by the above method will have a digital signature, which is a digital string that identifies the server identity. The terminal can find the digital signature of the current system installation package and compare it with the digital signature in the upgrade package to determine whether the digital signatures are consistent. If the digital signatures are consistent, the upgrade package matches the vehicle system and the signature verification of the upgrade package passes; the terminal can also obtain a digital signature from the server and compare it with the digital signature in the upgrade package to determine whether the digital signatures are consistent. The embodiment of the present application does not impose any restrictions on the method of obtaining the digital signature.
[0046] By performing integrity verification and signature verification on the upgrade package, the integrity of the upgrade package can be guaranteed, and the upgrade package can also be guaranteed to match the vehicle system.
[0047] S202, creating a temporary mounting directory under a preset directory, and mounting a single partition of the vehicle system to the temporary mounting directory.
[0048] For example, the default directory can be the / mnt / tmp directory under the root directory where the system is located. You can use the subdirectory creation command mkdir to create a temporary mount directory resc under the default directory / mnt / tmp / , and use the partition mount command mount to mount the single partition resc storing voice resources in read-write mode to the temporary mount directory mnt / tmp / resc.
[0049] The single partition is used to store files required for running applications in the vehicle system, and the temporary mount directory is used to read and write the single partition. For example, the single partition can be used to store voice resources, downloaded pictures, music and user photos, or offline map data, etc. At the same time, the single partition of the vehicle system can be one or more, and this embodiment of the application does not impose any limitation on this.
[0050] Optionally, before creating a temporary mount directory under the preset directory, the method further includes:
[0051] The command script and command parser in the upgrade package are stored in the preset directory.
[0052] The command script is used to store commands related to system upgrade, and the command parser is used to parse the commands in the command script.
[0053] For example, the command script may be updater-script, and the command parser may be update-binary.
[0054] S203, extracting resource files of the upgrade package, and storing the resource files in the temporary mounting directory.
[0055] Optionally, extracting resource files from the upgrade package and storing the resource files in the temporary mount directory includes:
[0056] Obtain an extraction command in the command script, parse the extraction command through the command parser, extract resource files in the upgrade package according to the extraction command, and store the resource files in the temporary mount directory.
[0057] For example, the package_extract_dir("RESOURCE"," / mnt / tmp / resc") command can be extracted from the command script, and the command is parsed by the command parser to replace the resource files in the RESCOURCE directory in the upgrade package with the temporary mount directory. The directory structure of the RESCOURCE directory in the upgrade package is the same as that of the temporary mount directory.
[0058] Optionally, the resource file includes voice resources, map offline resources, or a database required for application operation.
[0059] S204: Synchronize the resource files in the temporary mount directory to the single partition.
[0060] Optionally, synchronizing the resource files in the temporary mount directory to the single partition includes:
[0061] Determine whether the upgrade package is a full upgrade package or a differential upgrade package, the resource files of the full upgrade package include all files required for upgrading the single partition, and the resource files of the differential upgrade package include supplementary files required for upgrading the single partition;
[0062] If the upgrade package is a full upgrade package, all files in the single partition are replaced with resource files in the temporary mount directory;
[0063] If the upgrade package is a differential upgrade package, the resource files under the temporary mount directory are added to the single partition.
[0064] In a possible implementation, if the upgrade package is a differential upgrade package, and the differential upgrade package only contains resource files for upgrading a single partition, the purpose of upgrading only a single partition can be achieved without upgrading the first system or the second system.
[0065] By synchronizing the resource files in the temporary mount directory to the single partition, a silent and seamless upgrade of the single partition can be achieved.
[0066] Optionally, the method further includes: modifying the startup flag of the vehicle system, setting the second system as the target object after the system is restarted, and setting the first system as a non-startable object.
[0067] For example, when the system has not been updated, the first system is running, in a startable, successful and active state, while the second system as a backup system is not currently running, in a startable, successful and dormant state;
[0068] While the systems are being updated, the first system is not affected and remains in a bootable, successful and active state, while the second system is being updated and is now in an unbootable, unsuccessful and dormant state;
[0069] When the system update is completed but has not been restarted, the first system is still running, but it should be set to the bootable, successful and dormant states, indicating that although the first system can be started and has run successfully, it is now in a dormant state, that is, the first system is set as a non-bootable object, and the first system will not be started first after the system is restarted; while the second system has been updated at this time, it should be set to the bootable and active states, that is, the second system is set as the target object after the system restarts, indicating that the second system will be started first after the system restarts. Because the second system has not yet run, the second system is in a non-successful state at this time;
[0070] After the system restarts successfully, the second system is set to a bootable, successful, and active state.
[0071] Through the above method, the startup flags of the first system and the second system can be modified in time to ensure that the updated second system is applied after the system is restarted.
[0072] Optionally, before obtaining the upgrade package, the method further includes:
[0073] Receiving the version number of the upgrade package, and comparing the version number with the current version number of the vehicle system;
[0074] If the version number is higher than the current version number of the vehicle system, system update information is pushed on the system interface to prompt the user to upgrade the vehicle system;
[0075] If the version number is not higher than the current version number of the vehicle system, continue to loop to detect whether there is system update information.
[0076] See also Figure 3 , which is a schematic diagram of a composition of a vehicle system upgrade device provided in an embodiment of the present application, may include:
[0077] The acquisition unit 100 is used to acquire an upgrade package and extract an upgrade file in the upgrade package, wherein the upgrade package is used to upgrade a vehicle system, wherein the vehicle system includes a running first system and a non-running second system, and the second system of the vehicle system is upgraded according to the upgrade file;
[0078] A directory creation unit 200 is used to create a temporary mount directory under the preset directory, and mount a single partition of the vehicle system to the temporary mount directory, wherein the single partition is used to store files required for running applications in the vehicle system, and the temporary mount directory is used to perform read and write operations on the single partition;
[0079] The resource file extraction unit 300 is used to extract the resource files in the upgrade package and store the resource files in the temporary mounting directory;
[0080] The single partition upgrade unit 400 synchronizes the resource files under the temporary mount directory to the single partition.
[0081] Optionally, the resource file includes voice resources, map offline resources, or a database required for application operation.
[0082] Optionally, before creating a temporary mount directory under the preset directory, the directory creation unit 200 is also used to store the command script and command parser in the upgrade package under the preset directory, the command script being used to store commands related to the system upgrade, and the command parser being used to parse the commands in the command script.
[0083] Optionally, storing the resource file in the temporary mount directory includes:
[0084] Obtain an extraction command in the command script, parse the extraction command through the command parser, extract resource files in the upgrade package according to the extraction command, and store the resource files in the temporary mount directory.
[0085] Optionally, executing the synchronization command to synchronize the resource files in the temporary mount directory to the single partition includes:
[0086] Determine whether the upgrade package is a full upgrade package or a differential upgrade package, the resource files of the full upgrade package include all files required for upgrading the single partition, and the resource files of the differential upgrade package include supplementary files required for upgrading the single partition;
[0087] If the upgrade package is a full upgrade package, all files in the single partition are replaced with resource files in the temporary mount directory;
[0088] If the upgrade package is a differential upgrade package, the resource files under the temporary mount directory are added to the single partition.
[0089] Optionally, obtaining the upgrade package includes:
[0090] In response to a confirmation instruction from a user to upgrade the vehicle system, obtaining an upgrade package and verifying the upgrade package;
[0091] If the verification passes, mapping the upgrade package into the memory;
[0092] If the verification fails, the system upgrade is terminated.
[0093] Optionally, the verifying the upgrade package includes:
[0094] The upgrade package is subjected to an integrity check and a signature check, wherein the integrity check is used to ensure the integrity of the upgrade package, and the signature check is used to ensure that the upgrade package matches the vehicle system.
[0095] The device further includes a startup flag modifying unit 500 and a version number detecting unit 600 .
[0096] The startup flag modification unit 500 is used to modify the startup flag of the vehicle system, set the second system as the target object after the system is restarted, and set the first system as a non-startable object.
[0097] The version number detection unit 600 is used to receive the version number of the upgrade package and compare the version number with the current version number of the vehicle system;
[0098] If the version number is higher than the current version number of the vehicle system, system update information is pushed on the system interface to prompt the user to upgrade the vehicle system;
[0099] If the version number is not higher than the current version number of the vehicle system, continue to loop to detect whether there is system update information.
[0100] See also Figure 4 , which is a schematic diagram of another vehicle system upgrade device provided in an embodiment of the present application, may include:
[0101] Processor 110, memory 120 and transceiver 130. Processor 110, memory 120 and transceiver 130 are connected via bus 140. The memory 120 is used to store instructions, and the processor 110 is used to execute the instructions stored in the memory 120 to implement the above Figure 1-Figure 2 The steps in the corresponding method.
[0102] The processor 110 is used to execute the instructions stored in the memory 120 to control the transceiver 130 to receive and send signals and complete the steps in the above method. The memory 120 can be integrated in the processor 110 or set separately from the processor 110.
[0103] As an implementation, the function of the transceiver 130 may be implemented by a transceiver circuit or a dedicated chip for transceiver. The processor 110 may be implemented by a dedicated processing chip, a processing circuit, a processor or a general-purpose chip.
[0104] As another implementation, it is possible to use a general-purpose computer to implement the apparatus provided in the embodiment of the present application. That is, the program code for implementing the functions of the processor 110 and the transceiver 130 is stored in the memory 120, and the general-purpose processor implements the functions of the processor 110 and the transceiver 130 by executing the code in the memory 120.
[0105] For the concepts, explanations, detailed descriptions and other steps related to the technical solutions provided in the embodiments of the present application involved in the device for upgrading the vehicle system, please refer to the description of the method steps executed by the device for upgrading the vehicle system in the aforementioned method or other embodiments, which will not be repeated here.
[0106] As another implementation of this embodiment, a computer-readable storage medium is provided, on which instructions are stored. When the instructions are executed, the method in the above method embodiment is executed.
[0107] As another implementation of this embodiment, a computer program product including instructions is provided, and when the instructions are executed, the method in the above method embodiment is performed.
[0108] Those skilled in the art will appreciate that for ease of description, Figure 4 Only one memory and processor are shown. In an actual device, there may be multiple processors and memories. The memory may also be referred to as a storage medium or a storage device, etc., which is not limited in the embodiments of the present application.
[0109] It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
[0110] It should also be understood that the memory mentioned in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM).
[0111] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, the memory (storage module) is integrated in the processor.
[0112] It should be noted that the memory described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0113] In addition to the data bus, the bus may also include a power bus, a control bus, a status signal bus, etc. However, for the sake of clarity, various buses are marked as buses in the figure.
[0114] It should also be understood that the first, second, third, fourth and various numerical numbers involved in this document are only distinctions made for the convenience of description and are not intended to limit the scope of the present application.
[0115] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0116] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0117] In various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0118] Those skilled in the art will appreciate that the various illustrative logical blocks (ILBs) and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0119] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0120] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0121] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0122] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0123] 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.
Claims
1. A method for upgrading a vehicle system, characterized in that: include: Obtain an upgrade package, extract an upgrade file in the upgrade package, the upgrade package is used to upgrade a vehicle system, the vehicle system includes a running first system and a non-running second system, and the second system of the vehicle system is upgraded according to the upgrade file; Create a temporary mount directory under a preset directory, mount a single partition of the vehicle system to the temporary mount directory, the single partition is used to store files required for running applications in the vehicle system, and the temporary mount directory is used to perform read and write operations on the single partition; Extract the resource files in the upgrade package and store the resource files in the temporary mount directory; The resource files under the temporary mount directory are synchronized to the single partition.
2. According to the method of claim 1, the resource file includes voice resources, map offline resources or a database required for application operation.
3. According to the method of claim 1 or 2, before creating a temporary mount directory under the preset directory, the method further comprises: The command script and the command parser in the upgrade package are stored in the preset directory, the command script is used to store commands related to the system upgrade, and the command parser is used to parse the commands in the command script.
4. The method according to any one of claims 3, wherein extracting resource files from the upgrade package and storing the resource files in the temporary mount directory comprises: Obtain an extraction command in the command script, parse the extraction command through the command parser, extract resource files in the upgrade package according to the extraction command, and store the resource files in the temporary mount directory.
5. The method according to any one of claims 1, wherein synchronizing the resource files in the temporary mount directory to the single partition comprises: Determine whether the upgrade package is a full upgrade package or a differential upgrade package, the resource files of the full upgrade package include all files required for upgrading the single partition, and the resource files of the differential upgrade package include supplementary files required for upgrading the single partition; If the upgrade package is a full upgrade package, all files in the single partition are replaced with resource files in the temporary mount directory; If the upgrade package is a differential upgrade package, the resource files under the temporary mount directory are added to the single partition.
6. The method according to any one of claims 1, further comprising: The startup flag of the vehicle system is modified, the second system is set as the target object after the system is restarted, and the first system is set as a non-startable object.
7. The method according to any one of claims 1, wherein obtaining the upgrade package comprises: In response to a confirmation instruction from a user to upgrade the vehicle system, obtaining an upgrade package and verifying the upgrade package; If the verification passes, mapping the upgrade package into the memory; If the verification fails, the system upgrade is terminated.
8. The method according to claim 7, wherein the verifying the upgrade package comprises: The upgrade package is subjected to an integrity check and a signature check, wherein the integrity check is used to ensure the integrity of the upgrade package, and the signature check is used to ensure that the upgrade package matches the vehicle system.
9. According to the method according to any one of claims 5 to 8, before obtaining the upgrade package, the method further comprises: Receiving the version number of the upgrade package, and comparing the version number with the current version number of the vehicle system; If the version number is higher than the current version number of the vehicle system, system update information is pushed on the system interface to prompt the user to upgrade the vehicle system; If the version number is not higher than the current version number of the vehicle system, continue to loop to detect whether there is system update information.
10. A device for upgrading a vehicle system, characterized in that: include: an acquisition unit, configured to acquire an upgrade package and extract an upgrade file from the upgrade package, wherein the upgrade package is used to upgrade a vehicle system, wherein the vehicle system includes a first system that is in operation and a second system that is not in operation, and the second system of the vehicle system is upgraded according to the upgrade file; A directory creation unit, used to create a temporary mount directory under a preset directory, mount a single partition of the vehicle system to the temporary mount directory, the single partition is used to store files required for running applications in the vehicle system, and the temporary mount directory is used to perform read and write operations on the single partition; A resource file extraction unit, used to extract resource files from the upgrade package and store the resource files in the temporary mount directory; The single partition upgrade unit is used to synchronize the resource files under the temporary mount directory to the single partition.
11. A device for upgrading a vehicle system, characterized in that: include: A processor, a memory and a bus, wherein the processor and the memory are connected via a bus, wherein the memory is used to store a set of program codes, and the processor is used to call the program codes stored in the memory to execute the method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores instructions, which, when executed on a computer, implement the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
System upgrading method, device and equipment and computer readable medium
CN110333882A
Method and equipment for updating vehicle-mounted terminal equipment system
CN110851157A