Vehicle application updating method, device and storage medium

By setting specific partitions in the vehicle storage space and using operating system programs and boot loaders, flexible updates of vehicle applications are achieved, solving the problem that vehicle applications cannot be flexibly updated in the prior art, and improving user experience.

CN112559002BActive Publication Date: 2025-02-25SAIC MOTOR
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201910919581.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-26
Publication Date
2025-02-25
Estimated Expiration
2039-09-26

AI Technical Summary

Technical Problem

Vehicle applications cannot be flexibly updated in the prior art, which affects the user experience.

Method used

By setting up the main partition, boot partition, extended application area and shared data area in the vehicle storage space, using the operating system program and boot loader, the target application partition to be updated in the extended application area according to the application address list, and in that partition Updated in .

Benefits of technology

It realizes flexible updates and management of vehicle applications, does not affect the operation of the main partition operating system programs, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112559002B_ABST
    Figure CN112559002B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a vehicle application update method, device and storage medium, the vehicle application update method comprising: running an operating system program stored on a main partition in a vehicle storage space; determining a target application partition corresponding to a target vehicle application to be updated in an extended application area in the vehicle storage space according to an application address list in a shared data area in the vehicle storage space, the application address list being used to indicate an application partition address of at least one vehicle application, and the target vehicle application belongs to at least one vehicle application; and updating the target vehicle application in the target application partition according to update data of the target vehicle application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of electronic information technology, and in particular, to a method, device, and storage medium for updating vehicle applications. Background Art

[0002] With the development of science and technology, electronic information technology has been widely used in the vehicle industry. Many functions of the vehicle are controlled by software programs, making it more energy-efficient and comfortable for users to drive and ride in the vehicle. In order to continuously improve the performance of the vehicle and improve the user experience, the applications (English: Application, APP) on the vehicle also need to be constantly updated. However, in the relevant technology, vehicle control is mainly implemented through operating system programs, basic software and application programs, and the overall system exists in a binary file. All applications are solidified in this file, and vehicle applications cannot be flexibly updated, affecting the user experience. Summary of the invention

[0003] In view of this, one of the technical problems solved by the embodiments of the present invention is to provide a vehicle application update method, device and storage medium to overcome the defect in the prior art that vehicle applications cannot be flexibly updated, affecting user experience.

[0004] In a first aspect, an embodiment of the present application provides a method for updating a vehicle application, the method comprising:

[0005] Run the operating system program stored on the main partition in the vehicle storage space; determine the target application partition corresponding to the target vehicle application to be updated in the extended application area in the vehicle storage space according to the application address list in the shared data area in the vehicle storage space, the application address list is used to indicate the application partition address of at least one vehicle application, and the target vehicle application belongs to at least one vehicle application; update the target vehicle application in the target application partition according to the update data of the target vehicle application.

[0006] Optionally, in an embodiment of the present application, updating the target vehicle application in the target application partition according to the update data of the target vehicle application includes:

[0007] A new process is set for the update task of the target vehicle application; and the target vehicle application is updated in the target application partition according to the update data of the target vehicle application using the new process.

[0008] Optionally, in an embodiment of the present application, when the target vehicle application is a newly added application, the method further includes: setting a corresponding target application partition for the target vehicle application in the extended application area.

[0009] Optionally, in an embodiment of the present application, the method further includes: updating the application address list according to the updated target vehicle application.

[0010] Optionally, in one embodiment of the present application, the method further includes:

[0011] The boot loader stored on the boot partition in the vehicle storage space is executed to detect the partition flag of each application partition, where the partition flag is used to indicate whether the application partition has been updated; and the application partition to be updated is updated according to the partition flag of each application.

[0012] In a second aspect, an embodiment of the present application provides an in-vehicle electronic device, including: a processor and a memory, wherein the processor and the memory are electrically connected;

[0013] The memory includes a main partition, a boot partition, an extended application area and a shared data area; the main partition stores an operating system program; the boot partition stores a boot loader; the extended application area includes at least one application partition, each application partition stores a corresponding vehicle application program and data; the shared data area stores at least one data shared between vehicle applications and an application partition address corresponding to each vehicle application in the extended application area;

[0014] A processor, configured to execute a program stored in a memory to implement the following method;

[0015] A processor is used to run an operating system program stored in a primary partition; determine a target application partition corresponding to a target vehicle application to be updated in an extended application area according to an application address list in a shared data area, wherein the application address list is used to indicate an application partition address of at least one vehicle application, and the target vehicle application belongs to at least one vehicle application; and update the target vehicle application in the target application partition according to update data of the target vehicle application.

[0016] Optionally, in one embodiment of the present application, the processor is further used to set a new process for the update task of the target vehicle application; and use the new process to update the target vehicle application in the target application partition according to the update data of the target vehicle application.

[0017] Optionally, in one embodiment of the present application, the processor is further configured to set a corresponding target application partition for the target vehicle application in the extended application area.

[0018] Optionally, in one embodiment of the present application, the processor is further configured to update the application address list according to the updated target vehicle application.

[0019] Optionally, in one embodiment of the present application, the processor is also used to execute a boot loader stored on the boot partition, detect the partition flag of each application partition, and the partition flag is used to indicate whether the application partition has been updated; and update the application partition to be updated according to the partition flag of each application.

[0020] In a third aspect, an embodiment of the present application provides a storage medium, which is a vehicle storage space, and the storage medium includes a main partition, a boot partition, an extended application area, and a shared data area; the main partition stores an operating system program; the boot partition stores a boot loader; the extended application area includes at least one application partition, and each application partition stores programs and data of a corresponding vehicle application; the shared data area stores data shared between at least one vehicle application and an application partition address corresponding to each vehicle application in the extended application area;

[0021] When the processor executes the program stored on the storage medium, the method described in any one of the embodiments of the first aspect or the first aspect is implemented.

[0022] In an embodiment of the present application, the vehicle storage space includes a main partition and an extended application partition. The main partition stores an operating system program. In the extended application partition, each vehicle application has a corresponding application partition. Each vehicle application can be updated flexibly without affecting the operation of the operating system program in the main partition. Vehicle application updates and additions and deletions are more convenient. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Hereinafter, some specific embodiments of the present application will be described in detail in an exemplary and non-limiting manner with reference to the accompanying drawings. The same reference numerals in the accompanying drawings indicate the same or similar components or parts. It should be understood by those skilled in the art that these drawings are not necessarily drawn to scale. In the accompanying drawings:

[0024] Figure 1 A flowchart of a vehicle application update method provided in an embodiment of the present application;

[0025] Figure 2 A structural diagram of an in-vehicle electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The specific implementation of the embodiment of the present invention is further described below in conjunction with the accompanying drawings of the embodiment of the present invention.

[0027] Embodiment 1

[0028] The present application embodiment provides a method for updating a vehicle application, such as Figure 1 As shown, Figure 1 A flowchart of a vehicle application update method provided in an embodiment of the present application. The vehicle application update method comprises the following steps:

[0029] Step 101: Run the operating system program stored in the primary partition in the vehicle storage space.

[0030] The vehicle application update method provided in the embodiment of the present application is applied to an on-board electronic device, and the vehicle storage space may be a storage medium in the on-board electronic device. The vehicle storage space includes multiple areas, such as a main partition, an extended application partition, a boot partition, and a shared data area.

[0031] Among them, the main partition stores the operating system program, and the main partition can also store the core application program. The main partition can be further divided into a first partition and a second partition. The first partition stores the operating system program, and the second partition stores the core application program. If the core application program is updated, it may not affect the operating system program. Of course, this is just an exemplary description and does not mean that the present application is limited to this; the boot partition stores the boot loader. The boot loader is a program that runs before the operating system runs when the vehicle-mounted electronic device is started. It can initialize the hardware device, establish a memory space mapping map, and configure the software environment and hardware environment of the operating system of the vehicle-mounted electronic device; the extended application area includes at least one application partition, and each application partition stores the corresponding vehicle application program and data; the shared data area stores data shared between at least one vehicle application and the application partition address corresponding to each vehicle application in the extended application area.

[0032] Of course, this is just an exemplary explanation. The vehicle storage space may include at least one of a main partition, an extended application partition, a boot partition, and a shared data area. In an embodiment of the present application, the vehicle storage space may include a main partition and an extended application partition.

[0033] When the vehicle storage space includes a boot partition, optionally, in one embodiment of the present application, the method further includes: executing a boot loader stored on the boot partition in the vehicle storage space, detecting a partition flag of each application partition, the partition flag being used to indicate whether the application partition has been updated; and updating the application partition to be updated according to the partition flag of each application.

[0034] The partition flag may include two states, a pending update state and a no update state, which may be represented by a binary digit. For example, a partition flag value of "1" indicates that the corresponding application partition needs to be updated (i.e., a pending update state), and a partition flag value of "0" indicates that the corresponding application partition does not need to be updated (i.e., no update state). Of course, this is just an example. Spatially upgrading and updating each application partition can make each application partition large enough to meet the hardware resource requirements for the corresponding vehicle application update. It should be noted that after updating the application partition, the application partition address of the shared data area also needs to be updated.

[0035] For example, in one application scenario, when the target vehicle application needs to be updated, the partition flag of the target application partition corresponding to the target vehicle application is set to a pending update state. When the on-board electronic device is started next time, the boot loader is run first. At this time, it is determined that the partition flag of the target application partition is in a pending update state, and the target application partition is expanded to reserve sufficient space for updating the target vehicle application.

[0036] Step 102 : Determine a target application partition corresponding to a target vehicle application to be updated in an extended application area in the vehicle storage space according to an application address list in a shared data area in the vehicle storage space.

[0037] It should be noted that, in the present application, the target is only used to indicate the singular and is not limited in any way. For example, the target vehicle application indicates a vehicle application and can be any vehicle application.

[0038] The application address list is used to indicate the application partition address of at least one vehicle application, and the target vehicle application belongs to at least one vehicle application. In the extended application area, each vehicle application corresponds to an application partition, and each application partition has a corresponding application partition address. The application address list is used to indicate the correspondence between at least one vehicle application and at least one application partition address.

[0039] It should be noted that the target vehicle application to be updated can be a vehicle application that has been installed on the on-board electronic device, or it can be an uninstalled vehicle application. If the target vehicle application has been installed, the application partition address of the target vehicle application can be directly found according to the application address list. If the target vehicle application is not installed, it is necessary to first set the corresponding target application partition for the target vehicle application and update the application address list.

[0040] For example, in one embodiment of the present application, when the target vehicle application is a newly added application, the method further includes: setting a corresponding target application partition for the target vehicle application in the extended application area.

[0041] Step 103 : updating the target vehicle application in the target application partition according to the update data of the target vehicle application.

[0042] After determining the target application partition, updating the target vehicle application only requires updating the data in the target application partition, without affecting the operating system program and other vehicle application programs.

[0043] Here, a specific example is given to illustrate how to update the target vehicle application. Optionally, in one embodiment of the present application, updating the target vehicle application in the target application partition according to the update data of the target vehicle application includes:

[0044] A new process is set for the update task of the target vehicle application; and the target vehicle application is updated in the target application partition according to the update data of the target vehicle application using the new process.

[0045] It should be noted that after running the operating system program, a process needs to be assigned to each task to be executed. A process is an operation activity related to a data set and is the basic unit for resource allocation and scheduling of the operating system. When there are multiple application tasks waiting to be executed, each task is called periodically. A fixed time interval (such as 5ms, 1ms or 10ms) can be set to run the corresponding vehicle application according to the process queue and the application address list of the shared data area. The execution cycle of each task is an integer multiple of the fixed time interval.

[0046] Optionally, in one embodiment of the present application, the method further includes: updating the application address list according to the updated target vehicle application. For example, if the target application partition is expanded before the target vehicle application is updated, the storage space size of the target application partition can be restored after the target vehicle application is updated. The specific process is similar to the process of expanding the target application partition in the explanation of step 101, and will not be repeated here.

[0047] In an optional application scenario, the vehicle application on the vehicle-mounted electronic device can also be uninstalled. For example, taking the uninstallation of the target vehicle application as an example, the target application partition corresponding to the target vehicle application in the extended application area is determined according to the application address list. During the operation of the operating system program, a new process is assigned to the uninstallation task of the target vehicle application, and the target vehicle application is uninstalled in the target application partition using the process. Specifically, the programs and data stored in the target application partition can be deleted, and the target application partition can be determined as the storage space to be allocated, and the address of the target application partition can be deleted from the application address list. Not only is flexible updating of each vehicle application achieved, but also installation (i.e., adding) of vehicle applications and uninstallation of vehicle applications are achieved, and flexible management of vehicle applications is achieved. Of course, this is only an exemplary description and does not mean that the present application is limited to this.

[0048] In an embodiment of the present application, the vehicle storage space includes a main partition and an extended application partition. The main partition stores an operating system program. In the extended application partition, each vehicle application has a corresponding application partition. Each vehicle application can be updated flexibly without affecting the operation of the operating system program in the main partition. Vehicle application updates and additions and deletions are more convenient.

[0049] Embodiment 2

[0050] Based on the vehicle application update method described in the above embodiment, the present application embodiment provides a vehicle-mounted electronic device for executing the method described in the above embodiment, such as Figure 2 As shown, the vehicle-mounted electronic device 20 includes: a processor (processor) 202 and a memory (memory) 204;

[0051] Processor 202, memory 204, processor 202 and memory are electrically connected;

[0052] The memory 204 includes a main partition 2041, a boot partition 2042, an extended application area 2043 and a shared data area 2044; the main partition 2041 stores an operating system program; the boot partition 2042 stores a boot loader; the extended application area 2043 includes at least one application partition, each application partition stores a corresponding vehicle application program and data; the shared data area 2044 stores at least one data shared between vehicle applications and an application partition address corresponding to each vehicle application in the extended application area 2043;

[0053] The processor 202 is used to execute the program stored in the memory 204 to implement the following method;

[0054] The processor 202 is used to run the operating system program stored on the main partition 2041; determine the target application partition corresponding to the target vehicle application to be updated in the extended application area 2043 according to the application address list in the shared data area 2044, the application address list is used to indicate the application partition address of at least one vehicle application, and the target vehicle application belongs to at least one vehicle application; update the target vehicle application in the target application partition according to the update data of the target vehicle application.

[0055] It should be noted that, optionally, the processor 202 may be a central processing unit CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the electronic device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.

[0056] The memory 204 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.

[0057] Optionally, in an embodiment of the present application, the vehicle-mounted electronic device 20 may further include a bus 206 and a communication interface (Communications Interface) 208 , wherein the processor 202 , the communication interface 208 , and the memory 204 communicate with each other via the communication bus 206 .

[0058] The communication interface 208 is used to communicate with other devices.

[0059] Optionally, in one embodiment of the present application, the processor 202 is further used to set a new process for the update task of the target vehicle application; and use the new process to update the target vehicle application in the target application partition according to the update data of the target vehicle application.

[0060] Optionally, in one embodiment of the present application, the processor 202 is further configured to set a corresponding target application partition for the target vehicle application in the extended application area 2043 .

[0061] Optionally, in an embodiment of the present application, the processor 202 is further configured to update the application address list according to the updated target vehicle application.

[0062] Optionally, in one embodiment of the present application, the processor 202 is also used to execute the boot loader stored on the boot partition 2042, detect the partition flag of each application partition, and the partition flag is used to indicate whether the application partition has been updated; and update the application partition to be updated according to the partition flag of each application.

[0063] In an embodiment of the present application, the vehicle storage space includes a main partition and an extended application partition. The main partition stores an operating system program. In the extended application partition, each vehicle application has a corresponding application partition. Each vehicle application can be updated flexibly without affecting the operation of the operating system program in the main partition. Vehicle application updates and additions and deletions are more convenient.

[0064] Embodiment 3

[0065] The embodiment of the present application provides a storage medium, which is a vehicle storage space, and the storage medium includes a main partition, a boot partition, an extended application area and a shared data area; the main partition stores an operating system program; the boot partition stores a boot loader; the extended application area includes at least one application partition, each application partition stores a corresponding vehicle application program and data; the shared data area stores at least one vehicle application shared data and an application partition address corresponding to each vehicle application in the extended application area;

[0066] When the processor executes the program stored on the storage medium, the method described in any one of the embodiments of the first aspect or the first aspect is implemented.

[0067] In an embodiment of the present application, the vehicle storage space includes a main partition and an extended application partition. The main partition stores an operating system program. In the extended application partition, each vehicle application has a corresponding application partition. Each vehicle application can be updated flexibly without affecting the operation of the operating system program in the main partition. Vehicle application updates and additions and deletions are more convenient.

[0068] The vehicle-mounted electronic device of the embodiment of the present application exists in various forms, including but not limited to:

[0069] (1) Mobile communication devices: These devices are characterized by having mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.

[0070] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.

[0071] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, smart toys, and portable car navigation devices.

[0072] (4) Other electronic devices with data interaction functions.

[0073] Thus far, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims may be performed in a different order and still achieve the desired results. Additionally, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing may be advantageous.

[0074] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0075] The systems and devices described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0076] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0077] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0078] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0079] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0080] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0081] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0082] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0083] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0084] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0085] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific transactions or implement specific abstract data types. The present application may also be practiced in distributed computing environments where transactions are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0086] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0087] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for updating a vehicle application, characterized in that: include: Run operating system programs stored on the primary partition in the vehicle's storage space; Determine a target application partition corresponding to a target vehicle application to be updated in an extended application area in the vehicle storage space according to an application address list in a shared data area in the vehicle storage space, wherein the application address list is used to indicate an application partition address of at least one vehicle application, and the target vehicle application belongs to the at least one vehicle application; updating the target vehicle application in the target application partition according to the update data of the target vehicle application; Before the operating system program stored in the main partition in the vehicle storage space is run, the method further includes: running a boot loader stored in the boot partition in the vehicle storage space, and if it is determined that the partition flag bit of the target application partition is in a pending update state, expanding the target application partition; The method further includes: after the target vehicle application is updated, restoring the storage space size of the target application partition; When the target vehicle application to be updated is a newly added application, the method further includes: setting a corresponding target application partition for the target vehicle application in the extended application area; or, when the target vehicle application to be updated is an uninstalled application, the method further includes: uninstalling the target vehicle application in the target application partition.

2. The method according to claim 1, characterized in that: Updating the target vehicle application in the target application partition according to the update data of the target vehicle application includes: Setting a new process for the update task of the target vehicle application; The target vehicle application is updated in the target application partition according to the update data of the target vehicle application using the new process.

3. The method according to claim 1, characterized in that The method further comprises: The application address list is updated according to the updated target vehicle application.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: executing a boot loader stored in a boot partition in the vehicle storage space, and detecting a partition flag bit of each application partition, wherein the partition flag bit is used to indicate whether the application partition has been updated; The application partition to be updated is updated according to the partition flag of each application.

5. A vehicle-mounted electronic device, characterized in that: include: A processor and a memory, wherein the processor and the memory are electrically connected; The memory includes a main partition, a boot partition, an extended application area and a shared data area; the main partition stores an operating system program; the boot partition stores a boot loader; the extended application area includes at least one application partition, each application partition stores a corresponding vehicle application program and data; the shared data area stores at least one data shared between vehicle applications and an application partition address corresponding to each vehicle application in the extended application area; The processor is used to execute the program stored in the memory to implement the following method; The processor is used to run the operating system program stored in the main partition; determine the target application partition corresponding to the target vehicle application to be updated in the extended application area according to the application address list in the shared data area, the application address list is used to indicate the application partition address of the at least one vehicle application, and the target vehicle application belongs to the at least one vehicle application; update the target vehicle application in the target application partition according to the update data of the target vehicle application; The processor is further configured to run a boot loader stored in a boot partition in the vehicle storage space before the processor runs an operating system program stored in a main partition in the vehicle storage space, and if it is determined that the partition flag bit of the target application partition is in a pending update state, expand the target application partition; and, after the target vehicle application is updated, restoring the storage space size of the target application partition; The processor is further used to, when the target vehicle application to be updated is a newly added application, set a corresponding target application partition for the target vehicle application in the extended application area; or, when the target vehicle application to be updated is an uninstalled application, uninstall the target vehicle application in the target application partition.

6. The device according to claim 5, characterized in that The processor is further used to set a new process for the update task of the target vehicle application; and use the new process to update the target vehicle application in the target application partition according to the update data of the target vehicle application.

7. The device according to claim 5, characterized in that The processor is further configured to update the application address list according to the updated target vehicle application.

8. The device according to claim 5, characterized in that The processor is further used to execute the boot loader stored on the boot partition, detect the partition flag of each application partition, and the partition flag is used to indicate whether the application partition has been updated; and update the application partition to be updated according to the partition flag of each application.

9. A storage medium, characterized in that: The storage medium stores a computer program, and when the processor executes the computer program stored on the storage medium, the method described in any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Method for upgrading data in flash memory, network TV and interactive set-top box thereof

    CN101520734A

  • Method for updating control device software, preferably for a motor vehicle

    WO2017125181A1