Application updating method and device, vehicle and storage medium

By obtaining resource configuration data of on-board applications and replacing resources based on model configuration information, the waste of storage space and maintenance problems caused by the differences in on-board applications of multiple models are solved, and efficient updates of on-board applications are achieved and development processes are simplified.

CN119149063APending Publication Date: 2024-12-17GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411090667.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

In the development of vehicle computer system, the software functions of multiple models are the same but the resources vary greatly, resulting in many branches of code, occupying a large amount of storage space, wasting resources, and the difficulty of development and maintenance is increased.

Method used

By obtaining resource configuration data of on-board applications, obtaining target dedicated resources based on model configuration information, replacing installed resources, realizing updates of on-board applications, integrating multiple car models resources, reducing code storage, and improving maintenance efficiency.

Benefits of technology

It simplifies the update process of on-board applications, improves the maintenance efficiency of different models, avoids multiple code branches caused by different model resource files, optimizes project management and control strategies, and reduces the maintenance burden of developers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119149063A_ABST
    Figure CN119149063A_ABST
Patent Text Reader

Abstract

The invention provides an application updating method and device, a vehicle and a storage medium, and the method is applied to the field of vehicles, and comprises the steps: obtaining resource configuration data of a vehicle-mounted application when a vehicle machine system of the vehicle meets an application updating condition, obtaining a corresponding target special resource from the resource configuration data according to the vehicle type configuration information of the vehicle, and updating the target special resource according to the vehicle type configuration information of the vehicle; according to the resource mapping relationship in the resource configuration data, determining the replacement application resource corresponding to the target special resource in the installed resources of the vehicle-mounted application, replacing the installed replacement application resource with the target special resource to obtain the updated vehicle-mounted application, and maintaining the resource files of all vehicle types in one configuration resource data, thereby improving the resource utilization rate of the vehicle-mounted application. The code storage amount of application resources can be reduced, the vehicle type configuration information can be switched, the application program can be updated, and the application maintenance efficiency 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 vehicles, and more specifically, to an application updating method, device, vehicle and storage medium in the field of vehicles. Background Art

[0002] In the development of vehicle systems, different car models have many of the same software functions, but depending on the different uses of the models, such as pickup trucks, SUVs, pure electric sedans, etc., the car model resources and skin resources in the software are very different, and different series have different theme colors. Therefore, many application software need to adapt to different car models and theme resources.

[0003] Generally speaking, different models are divided into different code product lines for research and development, and different software modules of different product line branches need to submit different codes to each product line. Multi-product line development will cause the code to occupy a large space and waste storage resources. Summary of the invention

[0004] The present application provides an application update method, device, vehicle and storage medium, which can simplify the update process of vehicle-mounted applications and improve the maintenance efficiency of vehicle-mounted applications of different vehicle models.

[0005] In a first aspect, an application update method is provided, the method comprising: when a vehicle's on-board system meets an application update condition, obtaining resource configuration data of the on-board application, obtaining target-specific resources corresponding to the vehicle model configuration information of the vehicle from the resource configuration data, and based on a resource mapping relationship in the resource configuration data, determining a replacement application resource corresponding to the target-specific resource in the installed resources of the on-board application, replacing the replacement application resource with the target-specific resource to obtain an updated on-board application.

[0006] In the above technical scheme, an application update method is proposed. In this scheme, when the vehicle system meets the application update conditions, the resource configuration data of the vehicle-mounted application is obtained. The resource configuration data stores the application resource data of the vehicle-mounted application and the configuration data related to the vehicle model. According to the resource configuration data, the target-specific resources corresponding to the vehicle model configuration information of the vehicle can be obtained. According to the resource mapping relationship in the resource configuration data, the replacement application resources corresponding to the target-specific resources in the installed resources of the vehicle-mounted application are determined. The replacement application resources refer to the resources that need to be replaced for the current vehicle-mounted application update. The current replacement application resources are replaced according to the obtained target-specific resources to obtain the updated vehicle-mounted application. By storing the application update resources required for various vehicle models in the resource configuration data, the workflow of developing and maintaining the application can be simplified, and the vehicle only needs to update the vehicle-mounted application according to the vehicle model configuration information, thereby improving the efficiency of application update.

[0007] In combination with the first aspect, in some possible implementations, when the vehicle's on-board system installs an in-vehicle application for the first time, the initial configuration data of the in-vehicle application is obtained, the initial dedicated resources of the vehicle are determined in the initial dedicated resource set according to the vehicle model configuration information, and based on the initial resource mapping relationship in the initial configuration data, the initial dedicated resources are used to replace the empty placeholder data corresponding to each empty placeholder in the general resources to obtain the installed in-vehicle application.

[0008] In the above technical scheme, a specific installation scheme for vehicle-mounted applications is proposed. When the vehicle-mounted application is installed for the first time, the initial configuration data of the vehicle-mounted application can be obtained, wherein the initial configuration data includes general resources and initial dedicated resource sets. General resources refer to the common resources of multiple models for the vehicle-mounted application. The replaceable part of the general resources can be occupied by empty placeholder data with a small amount of data. The initial dedicated resource set refers to the exclusive resources corresponding to the vehicle-mounted application of multiple models. After obtaining the initial configuration data, the initial dedicated resources of the vehicle can be confirmed in the initial dedicated resource set according to the vehicle model configuration information. According to the initial resource mapping relationship between the initial dedicated resources and the empty placeholders, the empty placeholder data on the empty placeholders is replaced with the initial dedicated resources to obtain the vehicle-mounted application installed under the model. The same installation package is realized for multiple models, avoiding the problem of multiple code branches caused by different vehicle model resource files, greatly optimizing the project management strategy, and avoiding the maintenance of multiple code branches by developers.

[0009] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, when the vehicle's on-board system meets the application update conditions, before obtaining the resource configuration data of the on-board application, it also includes: obtaining dedicated resources corresponding to multiple vehicle models on which the on-board application is installed, determining the resource mapping relationship between the resource position of each sub-dedicated resource in the dedicated resource and the empty placeholders in the installed resource, storing the dedicated resource according to the vehicle model identification to obtain a dedicated resource set, and generating the resource configuration data of the on-board application based on the dedicated resource set and the resource mapping relationship.

[0010] In the above technical solution, a solution for generating resource configuration data is specifically proposed. In this solution, before the application is updated, the dedicated resources corresponding to the multiple vehicle models installed with the vehicle application can be obtained, and each dedicated resource is stored according to the vehicle model identification to obtain a dedicated resource set, and a resource mapping relationship between each dedicated resource and each empty placeholder in the installed resources of the vehicle application is established, that is, the position of the resource that the dedicated resource should replace is determined, and the resource configuration data of the vehicle application is generated according to the resource mapping relationship and the dedicated resource set. By integrating the dedicated resources of multiple vehicle models under one resource configuration data, developers only need to maintain one code line, realize a set of code product lines shared by multiple vehicle models, and avoid the problem of high storage space occupation caused by multiple code product lines. Furthermore, the application resources of the vehicle application are divided into general resources and special resources. In the general resources of the vehicle application, the position corresponding to the resource that needs to be replaced is an empty placeholder, and only the empty placeholder data is placed in the empty placeholder to reduce the volume of the general resources, and when the application is upgraded, it is not necessary to recompile the entire application, but only to change the dedicated resources.

[0011] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, obtaining the target dedicated resources corresponding to the vehicle model configuration information from the resource configuration data includes: determining the target model identifier corresponding to the vehicle model configuration information, and determining the target dedicated resources of the vehicle from the resource configuration data according to the target model identifier.

[0012] In the above technical solution, a specific implementation scheme is proposed. In this scheme, the dedicated resources stored in the resource configuration data can be stored according to the vehicle model identification. After obtaining the vehicle model configuration information, the target vehicle model identification corresponding to the vehicle model configuration information can be determined, and the target dedicated resources of the vehicle can be determined in the resource configuration data according to the target vehicle model identification. The target dedicated resources of the current vehicle can be searched according to the vehicle model identification, thereby improving the search efficiency.

[0013] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the target dedicated resource is used to replace the replacement application resource to obtain an updated in-vehicle application, including: setting the replacement application resource to a disabled state, setting the target dedicated resource to an enabled state, and obtaining an updated in-vehicle application.

[0014] In the above technical solution, a specific implementation process of resource replacement is proposed. When the application is updated, some of the installed resources do not need to take effect. Therefore, it is necessary to first set these replacement application resources to a disabled state, and set the acquired new target dedicated resources to an enabled state, so as to implement the update of the vehicle application.

[0015] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, when the vehicle's vehicle-mounted system meets the application update conditions, the resource configuration data of the vehicle-mounted application is obtained, including: when the vehicle's vehicle-mounted system is started, determining whether the vehicle model configuration information has changed. If so, the vehicle's vehicle-mounted system meets the application update conditions, and the resource configuration data of the vehicle-mounted application is obtained.

[0016] In the above technical solution, a method for confirming whether a vehicle meets the application update conditions is proposed. In this solution, when the vehicle's on-board system is started, it is determined whether the vehicle model configuration information has changed. When the vehicle model configuration information has changed, it means that the current vehicle has switched models, which means that the application update conditions are met, and the vehicle-mounted application needs to be updated to a version that matches the current model.

[0017] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, when the vehicle's on-board system meets the application update conditions, after obtaining the resource configuration data of the on-board application, it also includes: if not, determining whether the resource configuration data or version identifier corresponding to the on-board application of the vehicle has changed; if so, the vehicle's on-board system meets the application update conditions and obtains the resource configuration data of the on-board application.

[0018] In the above technical solution, another confirmation method of whether the vehicle meets the application update conditions is proposed. This solution determines whether the resource configuration data and version identification of the vehicle-mounted application have changed when the vehicle model configuration information has not changed. When the resource configuration data has changed, it means that the vehicle has received new resource configuration data and needs to update the vehicle-mounted application based on the new resource configuration data; when the version identification of the vehicle-mounted application has changed, it means that the current vehicle-mounted application has a new version, and the corresponding resource configuration data is obtained to update the vehicle-mounted application.

[0019] In a second aspect, an application updating device is provided, the device comprising:

[0020] An acquisition unit, used for acquiring resource configuration data of the vehicle-mounted application when the vehicle system meets the application update condition;

[0021] A matching unit, used to obtain a target dedicated resource corresponding to the vehicle model configuration information of the vehicle from the resource configuration data;

[0022] A mapping unit, configured to determine, based on the resource mapping relationship in the resource configuration data, a replacement application resource corresponding to the target dedicated resource from among the installed resources of the in-vehicle application;

[0023] The updating unit is used to replace the replacement application resource with the target dedicated resource to obtain an updated vehicle-mounted application.

[0024] In a third aspect, a vehicle is provided, comprising a memory and a processor. The memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, so that the vehicle executes the method in the first aspect or any possible implementation of the first aspect.

[0025] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.

[0026] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 is a scenario diagram of an application update method provided in an embodiment of the present application;

[0028] Figure 2 It is a flowchart of an application update method provided in an embodiment of the present application;

[0029] Figure 3 It is a flowchart of an application update method provided in an embodiment of the present application;

[0030] Figure 4 is an example schematic diagram of another application update method provided in an embodiment of the present application;

[0031] Figure 5 is a structural diagram of an application updating device provided in an embodiment of the present application;

[0032] Figure 6 is a structural schematic diagram of a vehicle provided in an embodiment of the present application; DETAILED DESCRIPTION

[0033] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0034] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0035] Figure 1 It is a scenario diagram of an application updating method provided in an embodiment of the present application.

[0036] For example, in the related art, a code base is usually established for each car model to store the in-vehicle application code (data) of each car model. Therefore, when there are N car models, there are N corresponding in-vehicle application code bases. When developers develop the same in-vehicle application for different car models, since there may be some differences in car model resources and skin resources, developers need to submit different codes for N car models, which will cause the code to occupy a large space and waste storage resources.

[0037] Based on the above problems, an embodiment of the present application proposes an application update method, which maintains vehicle-mounted applications of multiple vehicle models in a vehicle-mounted application code library, and generates configuration resource data. When the vehicle's on-board system meets the application update conditions, the resource configuration data of the vehicle-mounted application is obtained, and the corresponding target-specific resources are obtained from the resource configuration data according to the vehicle model configuration information. According to the resource mapping relationship in the resource configuration data, the replacement application resources corresponding to the target-specific resources are determined in the installed resources of the vehicle-mounted application, and the installed replacement application resources are replaced with the target-specific resources to obtain an updated vehicle-mounted application. By maintaining the resource files of all vehicle models in one configuration resource data, not only can the code storage amount of the application resources be reduced, but also the application program can be updated by switching the vehicle model configuration information, thereby improving the efficiency of application maintenance.

[0038] based on Figure 1 The scene shown is shown below. Figure 2-Figure 6 , the application update method provided in the embodiment of the present application is introduced in detail.

[0039] See also Figure 2 , which is a flowchart of an application update method provided in an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps S101-S104.

[0040] S101, when the vehicle system meets the application update condition, obtaining resource configuration data of the vehicle application;

[0041] In one embodiment, after the vehicle-mounted application is installed in the vehicle-mounted system, if there is a need to update the application, the resource configuration data of the vehicle-mounted application can be obtained. The application update conditions may include multiple, such as the vehicle-mounted system of the vehicle changes the theme, the vehicle model changes, the application version is updated, etc. The resource configuration data of the vehicle-mounted application can be downloaded from the server when the vehicle-mounted system meets the application update conditions, or it can be pre-downloaded and stored locally in the vehicle. Exemplarily, the vehicle can send a request to the server to obtain the resource configuration data of the vehicle-mounted application. The resource configuration data stores the application resource data of the vehicle-mounted application and the configuration data related to the vehicle model. The application resource data may include apk (Android application package) files used by different vehicle models to change the style and style of the system / software interface. Users can change the desktop wallpaper, icons, notification bar style, fonts and other elements by installing the application resource data, thereby personalizing their own mobile phone / vehicle interface and realizing the switching of system and application theme styles.

[0042] The in-vehicle application can be a native application in the vehicle system, such as system settings, calendar, map software, etc., or it can be an application downloaded by the user from the application store, without specific limitation. It is understandable that there can be one or more in-vehicle applications. When the theme of the vehicle system is switched, it may be necessary to update multiple in-vehicle applications in the vehicle system at the same time. Therefore, the resource configuration data of the in-vehicle application obtained can be application resource data containing multiple in-vehicle applications and configuration data related to the vehicle model. According to the resource configuration data, multiple in-vehicle applications can be updated at the same time.

[0043] S102, acquiring a target dedicated resource corresponding to the vehicle model configuration information of the vehicle from the resource configuration data;

[0044] In one embodiment, the target-specific resource corresponding to the vehicle model configuration information of the vehicle is obtained according to the resource configuration data. The target-specific resource refers to the dedicated resource corresponding to the vehicle model stored in the resource configuration data. The resource configuration data stores dedicated resources for multiple vehicle models, and the target-specific resource can be queried from the resource configuration data through the vehicle model configuration information. The target-specific resource is the resource required to update the vehicle-mounted application of the vehicle model. For example, if the application updates the theme, the target-specific resource can be a picture, color value, etc. under the new theme. Specifically, the vehicle model configuration information can be a car company configuration word, which refers to a logo established by the car manufacturer to facilitate users to understand the vehicle configuration information. Usually, the car company configuration word will use a combination of English letters or numbers to represent the specific configuration and model information of the vehicle. Each configuration word represents a different configuration option or vehicle model variant, and the user can quickly understand the specific configuration information of the vehicle through the configuration word. The configuration word of a car may represent its engine model, drive form, body style, configuration level and other information.

[0045] S103, determining, based on the resource mapping relationship in the resource configuration data, a replacement application resource corresponding to the target dedicated resource from the installed resources of the in-vehicle application;

[0046] In one embodiment, the resource configuration data stores a resource mapping relationship for indicating the application resources to be replaced in the vehicle-mounted application, that is, the replacement application resources corresponding to the target dedicated resources in the installed resources of the vehicle-mounted application. The installed resources of the vehicle-mounted application refer to the application resources of the vehicle-mounted application currently installed in the vehicle-mounted system.

[0047] S104: Use the target dedicated resource to replace the replacement application resource to obtain an updated in-vehicle application.

[0048] In one embodiment, after determining the replacement application resource, the target dedicated resource is used to replace the replacement application resource in the installed resource, thereby realizing the update of the vehicle-mounted application. Specifically, when performing resource replacement, if the vehicle system is based on the Android system architecture, the dynamic resource replacement mechanism (Runtime Resource Overlay, RRO) can be used to change the resource value used by the target application at runtime. For example, we can dynamically modify the resource value of the application installed on the system image to the resource value defined in another resource package, so as to achieve the purpose of modifying the application to change its interface or behavior.

[0049] In an embodiment of the present application, when the vehicle system of the vehicle meets the application update conditions, the resource configuration data of the vehicle application is obtained. The resource configuration data stores the application resource data of the vehicle application and the configuration data related to the vehicle model. According to the resource configuration data, the target dedicated resources corresponding to the vehicle model configuration information of the vehicle can be obtained. According to the resource mapping relationship in the resource configuration data, the replacement application resources corresponding to the target dedicated resources in the installed resources of the vehicle application are determined. The replacement application resources refer to the resources that need to be replaced for the current vehicle application update. The current replacement application resources are replaced according to the obtained target dedicated resources to obtain the updated vehicle application. By storing the application update resources required for various vehicle models in the resource configuration data, the workflow of developing and maintaining the application can be simplified, and the vehicle only needs to update the vehicle application according to the vehicle model configuration information, thereby improving the efficiency of application update.

[0050] See also Figure 3 , Figure 3 FIG. 1 is a flow chart of another application updating method provided in an embodiment of the present application. Figure 3 As shown, the method of the embodiment of the present application may include the following steps S201-S216.

[0051] S201, when the vehicle system of the vehicle installs the vehicle application for the first time, obtaining initial configuration data of the vehicle application;

[0052] In one embodiment, when the vehicle-mounted application is installed for the first time, the initial configuration data of the vehicle-mounted application can be obtained, wherein the initial configuration data includes general resources and an initial dedicated resource set. General resources refer to the common resources of multiple vehicle models for the vehicle-mounted application. The replaceable part of the general resources can be occupied by empty placeholder data with a small amount of data. The initial dedicated resource set refers to a resource set composed of exclusive resources corresponding to the vehicle-mounted application of multiple vehicle models. Empty placeholder data usually refers to a placeholder or a placeholder file, the purpose of which is to occupy a certain position or serve as a mark to temporarily replace or reserve a file or directory. This file may have no actual content, or only contain basic identification information, which is used to occupy a place in the file system or project structure, and may be replaced or supplemented by a specific file in the future. It can be understood that each dedicated resource corresponds to a vehicle model one by one.

[0053] See also Figure 4 , Figure 4 A flowchart of another application update method provided in an embodiment of the present application is shown as follows: Figure 4As shown, the initial configuration data can store common resources and initial dedicated resource sets in the following table format. Among them, themes is a theme package, which refers to the application resources in the initial configuration data. Further, under the theme package, there can be subdivided application resources of different vehicle software, for example, system settings (Settings), music (Music), etc. Taking the system settings Settings.apk as an example, there is a common main program Settings_common.apk, and different models have different target product line options, such as a01_car1, a02_car1, b02_car1, etc. Settings_a01_car1.apk is a dedicated resource package for a01_car1.

[0054] S202, determining the initial dedicated resources of the vehicle in the initial dedicated resource set according to the vehicle model configuration information of the vehicle;

[0055] In one embodiment, after the initial configuration data is acquired, the initial dedicated resources of the vehicle can be identified in the initial dedicated resource set according to the vehicle model configuration information.

[0056] S203, based on the initial resource mapping relationship in the initial configuration data, using the initial dedicated resources to replace the empty placeholder data corresponding to each empty placeholder in the general resources, to obtain an installed vehicle application;

[0057] In one embodiment, the initial resource mapping relationship is used to indicate the application resources that are to be replaced in the vehicle-mounted application during the initial installation, that is, the correspondence between the initial dedicated resources and the empty placeholders in the general resources, so that the empty placeholder data on the empty placeholders is replaced according to the initial dedicated resources to obtain the installed vehicle-mounted application.

[0058] If the general resources of the vehicle-mounted application change after the vehicle-mounted resources are installed, then when the vehicle-mounted application is updated, it is necessary to send resource configuration data including the general resources and the initial dedicated resource set to update the vehicle-mounted application. If only the dedicated resources have changed, then only the updated initial dedicated resource set for different vehicle models can be stored in the resource configuration data.

[0059] S204, obtaining dedicated resources corresponding to multiple vehicle models on which the in-vehicle application is installed;

[0060] Specifically, when upgrading the in-vehicle application, the dedicated resources corresponding to the different models of the in-vehicle application can be obtained in advance. The developer encodes and updates the dedicated resources for different models to obtain the dedicated resources. It should be noted that the dedicated resources of different models can also have some shared resources, such as models A, B and C share the first resource position. Figure 1, and then other parts of the software, such as the second resource location model A Figure 2 , for Model B Figure 3 , for Model C Figure 4 . Then the dedicated resources of models A, B, and C do not need to store all Figure 1 , you can store only one Figure 1 , in dedicated resources, by means of pointers, etc. Figure 1 , when installing the dedicated resources for model A, obtain Figure 1 It can be a sub-dedicated resource of the first resource position.

[0061] S205, determining a resource mapping relationship between a resource position of each sub-dedicated resource in the dedicated resource and each empty placeholder in the installed resource;

[0062] In one embodiment, the dedicated resource also includes a plurality of sub-dedicated resources, each of which corresponds to each empty placeholder in the installed resources, that is, the position of the resource that the sub-dedicated resource needs to replace is determined, thereby generating a resource mapping relationship. It can be understood that if the dedicated resources of different models are the same in quantity and corresponding empty placeholders, but only the data content is different, then only one resource mapping relationship can be constructed. If the corresponding relationship between the sub-dedicated resources and the empty placeholders of each model is different, then a resource mapping relationship can be generated for the dedicated resources of each model.

[0063] S206, storing the dedicated resources according to the vehicle type identification to obtain a dedicated resource set;

[0064] In one embodiment, the dedicated resources corresponding to different vehicle models are stored according to the vehicle model identification to obtain a dedicated resource set. The vehicle model identification can be a vehicle model configuration word, a vehicle model name, etc., and is not specifically limited as long as it can uniquely identify the vehicle model.

[0065] S207, generating resource configuration data of the in-vehicle application based on the dedicated resource set and the resource mapping relationship;

[0066] In one embodiment, each dedicated resource set and resource mapping relationship are stored in correspondence to obtain resource configuration data of the vehicle-mounted application. Specifically, the resource mapping relationship can be stored in correspondence with each dedicated resource in the dedicated resource set, or the resource mapping relationship and the dedicated resource set can be stored separately, which can be determined based on the content stored in the resource mapping relationship. It should be noted that the above process of generating resource configuration data can also be implemented in the server corresponding to the vehicle.

[0067] S208, when the vehicle system of the vehicle is started, determining whether the vehicle model configuration information of the vehicle has changed;

[0068] In one embodiment, when the vehicle system of the vehicle is started, it is determined whether the vehicle model configuration information has changed, thereby determining whether the vehicle meets the application update condition.

[0069] S209, if yes, the vehicle system meets the application update condition, and obtains resource configuration data of the vehicle application;

[0070] Specifically, when the vehicle model configuration information changes, it means that the current vehicle has switched models, that is, the application update conditions are met, and the in-vehicle application needs to be updated to a version that matches the current model.

[0071] S210, if not, determining whether the resource configuration data or version identification corresponding to the vehicle-mounted application of the vehicle has changed;

[0072] Specifically, when the vehicle model configuration information of the vehicle has not changed, it is determined whether the resource configuration data and version identification of the vehicle-mounted application have changed.

[0073] S211, if yes, the vehicle system of the vehicle meets the application update condition, and obtains resource configuration data of the vehicle application;

[0074] Specifically, when the resource configuration data changes, it means that the vehicle has received new resource configuration data and needs to update the on-board application based on the new resource configuration data; when the version identifier of the on-board application changes, it means that the current on-board application has a new version, and the corresponding resource configuration data is obtained to update the on-board application.

[0075] S212, determining a target vehicle model identifier corresponding to the vehicle model configuration information;

[0076] Specifically, the vehicle model configuration information is information used to indicate the vehicle model in the vehicle, while the vehicle model is indicated by the vehicle model identifier in the resource configuration data. Therefore, there may be differences between the two. The vehicle model configuration information needs to be converted into the vehicle model identifier in order to determine the corresponding dedicated resource in the resource configuration data. It is understandable that in some cases the vehicle model identifier and the vehicle model configuration information may be the same.

[0077] S213, determining the target dedicated resource of the vehicle from the resource configuration data according to the target vehicle model identifier;

[0078] Specifically, the target dedicated resources of the vehicle are determined in the resource configuration data according to the target vehicle model identification, and the target dedicated resources of the current vehicle are searched according to the vehicle model identification, thereby improving the search efficiency.

[0079] S214, determining, based on the resource mapping relationship in the resource configuration data, a replacement application resource corresponding to the target dedicated resource from the installed resources of the in-vehicle application;

[0080] For details, please refer to step S103 in the above-mentioned embodiment of the specification, which will not be described in detail here.

[0081] S215, setting the replacement application resource to a disabled state;

[0082] Specifically, when the application is updated, some resources (replacement application resources) in the installed resources do not need to take effect, that is, (all or part of) the dedicated resources applied in the previous version need to be disabled. Therefore, the replacement application resources are set to a disabled state.

[0083] S216, setting the target dedicated resource to an enabled state to obtain an updated in-vehicle application.

[0084] Specifically, the acquired new target-specific resource is set to an enabled state, that is, the target-specific resource is applied to a corresponding position in the installed resources, thereby implementing an update of the in-vehicle application.

[0085] In an embodiment of the present application, when the vehicle-mounted application is first installed on the vehicle, the initial configuration data of the vehicle-mounted application can be obtained, wherein the initial configuration data includes general resources and initial dedicated resource sets, general resources refer to the shared resources of multiple vehicle models for the vehicle-mounted application, and the replaceable part of the general resources can be occupied by empty placeholder data with a small amount of data, and the initial dedicated resource set refers to the exclusive resources corresponding to the vehicle-mounted application of multiple vehicle models. After obtaining the initial configuration data, the initial dedicated resources of the vehicle can be confirmed in the initial dedicated resource set according to the vehicle model configuration information, and the empty placeholder data on the empty placeholder is replaced with the initial dedicated resource according to the initial resource mapping relationship between the initial dedicated resources and the empty placeholder, so as to obtain the vehicle-mounted application installed under the vehicle model. The same installation package is realized for multiple vehicle models, avoiding the problem of multiple code branches caused by different vehicle model resource files, greatly optimizing the project management strategy, and avoiding the maintenance of multiple code branches by developers. Before the application is updated, the dedicated resources corresponding to the multiple vehicle models installed with the vehicle application can be obtained, and each dedicated resource is stored according to the vehicle model identification to obtain a dedicated resource set, and a resource mapping relationship is established for each dedicated resource in the dedicated resources with each empty placeholder in the installed resources of the vehicle application, that is, the position of the resource that the dedicated resource should replace is determined, and the resource configuration data of the vehicle application is generated according to the resource mapping relationship and the dedicated resource set. By integrating the dedicated resources of multiple vehicle models under one resource configuration data, developers only need to maintain one code line, realize a set of code product lines shared by multiple vehicle models, and avoid the problem of high storage space occupation caused by multiple code product lines. Furthermore, the application resources of the vehicle application are divided into general resources and dedicated resources. In the general resources of the vehicle application, the position corresponding to the resource that needs to be replaced is an empty placeholder, and only the empty placeholder data is placed in the empty placeholder to reduce the volume of the general resources, and when the application is upgraded, there is no need to recompile the entire application, but only to change the dedicated resources. When the vehicle's onboard system is started, determine whether the vehicle's model configuration information has changed. If the vehicle's model configuration information has changed, it means that the current vehicle has switched models, which means that the application update conditions are met and the vehicle-mounted application needs to be updated to a version that matches the current model. When the vehicle's model configuration information has not changed, determine whether the vehicle-mounted application's resource configuration data and version identification have changed. When the resource configuration data has changed, it means that the vehicle has received new resource configuration data and the vehicle-mounted application needs to be updated based on the new resource configuration data; when the vehicle-mounted application's version identification has changed, it means that the current vehicle-mounted application has a new version, and the corresponding resource configuration data is obtained to update the vehicle-mounted application.The dedicated resources stored in the resource configuration data can be stored according to the vehicle model identification. After obtaining the vehicle model configuration information, the target vehicle model identification corresponding to the vehicle model configuration information can be determined, and the target dedicated resources of the vehicle can be determined in the resource configuration data according to the target vehicle model identification. The target dedicated resources of the current vehicle can be searched according to the vehicle model identification to improve the search efficiency. After that, after determining the replacement application resource, the replacement application resource is set to a disabled state, and the acquired new target dedicated resource is set to an enabled state, thereby realizing the update of the vehicle-mounted application.

[0086] based on Figure 1 The following is a schematic diagram of the scene. Figure 5 , the application updating device provided in the embodiment of the present application is introduced in detail. It should be noted that, Figure 5 The application update device in the present invention is used to execute the application Figure 2-Figure 4 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 2-Figure 4 The embodiment shown.

[0087] See also Figure 5 , which shows a schematic diagram of the structure of an application update device provided by an exemplary embodiment of this specification. The application update device can be implemented as all or part of the device through software, hardware or a combination of both. The device 1 includes an acquisition unit 11, a matching unit 12, a mapping unit 13 and an update unit 14.

[0088] The acquisition unit 11 is used to acquire resource configuration data of the vehicle-mounted application when the vehicle system meets the application update condition;

[0089] A matching unit 12, configured to obtain a target dedicated resource corresponding to the vehicle model configuration information of the vehicle from the resource configuration data;

[0090] A mapping unit 13, configured to determine, based on the resource mapping relationship in the resource configuration data, a replacement application resource corresponding to the target dedicated resource from the installed resources of the in-vehicle application;

[0091] The updating unit 14 is configured to replace the replacement application resource with the target dedicated resource to obtain an updated in-vehicle application.

[0092] Optionally, the acquisition unit 11 is further used to acquire initial configuration data of the in-vehicle application when the in-vehicle system of the vehicle installs the in-vehicle application for the first time; the initial configuration data includes a general resource and an initial dedicated resource set;

[0093] Determining the initial dedicated resources of the vehicle in the initial dedicated resource set according to the vehicle model configuration information of the vehicle;

[0094] Based on the initial resource mapping relationship in the initial configuration data, the empty placeholder data corresponding to each empty placeholder in the general resources is replaced with the initial dedicated resources to obtain an installed vehicle-mounted application.

[0095] Optionally, the acquisition unit 11 is further used to acquire dedicated resources corresponding to multiple vehicle models on which the in-vehicle application is installed;

[0096] Determine a resource mapping relationship between a resource position of each sub-dedicated resource in the dedicated resource and each empty placeholder in the installed resource;

[0097] The dedicated resources are stored according to vehicle type identification to obtain a dedicated resource set;

[0098] Based on the dedicated resource set and the resource mapping relationship, resource configuration data of the in-vehicle application is generated.

[0099] Optionally, the acquisition unit 11 is specifically used to determine the target vehicle model identifier corresponding to the vehicle model configuration information;

[0100] The target dedicated resource of the vehicle is determined from the resource configuration data according to the target vehicle model identifier.

[0101] Optionally, the updating unit 14 is specifically configured to set the replacement application resource to a disabled state;

[0102] The target dedicated resource is set to an enabled state to obtain an updated in-vehicle application.

[0103] Optionally, the acquisition unit 11 is specifically used to determine whether the vehicle model configuration information of the vehicle changes when the vehicle system of the vehicle is started;

[0104] If so, the vehicle's on-board system meets the application update conditions and obtains the resource configuration data of the on-board application.

[0105] Optionally, the acquisition unit 11 is specifically configured to determine whether the resource configuration data or version identification corresponding to the vehicle-mounted application of the vehicle has changed if no;

[0106] If so, the vehicle's on-board system meets the application update conditions and obtains the resource configuration data of the on-board application.

[0107] The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. In some cases, the actions or steps recorded in the embodiments of the present application can be performed in an order different from that in the embodiments and can still achieve the desired results. In addition, the process depicted in the accompanying drawings does not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0108] See also Figure 6 , which is a schematic diagram of the structure of a vehicle provided in the embodiment of the present application. Figure 6 As shown, the vehicle 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.

[0109] The processor 501 is the control center of the vehicle 500 and may include one or more processing cores. The processor 501 uses various interfaces and lines to connect various parts of the entire vehicle 500, and executes various functions and processes data of the vehicle 500 by running or calling computer programs stored in the memory 502, and calling data stored in the memory 502, so as to control the vehicle 500 as a whole. Optionally, the processor 501 may be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 501 may integrate one or a combination of CPU, graphics processing unit (GPU), modem, etc. Among them, the CPU mainly processes the operating system, user pages, and applications; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 501, but may be implemented separately through a communication chip.

[0110] The memory 502 can be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502. The memory 502 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, a computer program required for at least one function, etc.; the data storage area can store data created according to the use of the vehicle 500, etc.

[0111] In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.

[0112] In this embodiment, the processor 501 in the vehicle 500 loads instructions corresponding to the processes of one or more computer programs into the memory 502 according to the following steps, and the processor 501 runs the computer program stored in the memory 502 to implement various functions, as follows:

[0113] When the vehicle's onboard system meets the application update conditions, the resource configuration data of the onboard application is obtained;

[0114] Acquire a target dedicated resource corresponding to the vehicle model configuration information of the vehicle from the resource configuration data;

[0115] Based on the resource mapping relationship in the resource configuration data, determining a replacement application resource corresponding to the target dedicated resource from the installed resources of the in-vehicle application;

[0116] The target dedicated resource is used to replace the replacement application resource to obtain an updated in-vehicle application.

[0117] Optionally, the processor 501 may further execute:

[0118] When the vehicle system of the vehicle installs the vehicle application for the first time, obtaining initial configuration data of the vehicle application; the initial configuration data includes a general resource and an initial dedicated resource set;

[0119] Determining the initial dedicated resources of the vehicle in the initial dedicated resource set according to the vehicle model configuration information of the vehicle;

[0120] Based on the initial resource mapping relationship in the initial configuration data, the empty placeholder data corresponding to each empty placeholder in the general resources is replaced with the initial dedicated resources to obtain an installed vehicle-mounted application.

[0121] Optionally, before the processor 501 executes the acquisition of resource configuration data of the vehicle-mounted application when the vehicle-mounted system meets the application update condition, it further executes:

[0122] Acquire dedicated resources corresponding to multiple vehicle models on which the in-vehicle application is installed;

[0123] Determine a resource mapping relationship between a resource position of each sub-dedicated resource in the dedicated resource and each empty placeholder in the installed resource;

[0124] The dedicated resources are stored according to vehicle type identification to obtain a dedicated resource set;

[0125] Based on the dedicated resource set and the resource mapping relationship, resource configuration data of the in-vehicle application is generated.

[0126] Optionally, when the processor 501 executes acquiring the target dedicated resource corresponding to the vehicle model configuration information of the vehicle from the resource configuration data, the processor 501 specifically executes:

[0127] Determine a target vehicle model identifier corresponding to the vehicle model configuration information;

[0128] The target dedicated resource of the vehicle is determined from the resource configuration data according to the target vehicle model identifier.

[0129] Optionally, when the processor 501 replaces the replacement application resource with the target dedicated resource to obtain an updated in-vehicle application, specifically executes:

[0130] Setting the replacement application resource to a disabled state;

[0131] The target dedicated resource is set to an enabled state to obtain an updated in-vehicle application.

[0132] Optionally, when the vehicle system of the vehicle meets the application update condition, the processor 501 obtains the resource configuration data of the vehicle application, specifically executing:

[0133] When the vehicle system of the vehicle is started, determining whether the vehicle model configuration information of the vehicle has changed;

[0134] If so, the vehicle's on-board system meets the application update conditions and obtains the resource configuration data of the on-board application.

[0135] Optionally, after the processor 501 obtains the resource configuration data of the vehicle-mounted application when the vehicle-mounted system meets the application update condition, it further executes:

[0136] If not, determining whether the resource configuration data or version identification corresponding to the vehicle-mounted application of the vehicle has changed;

[0137] If so, the vehicle's on-board system meets the application update conditions and obtains the resource configuration data of the on-board application.

[0138] In addition, the device provided in the embodiment of the present application can specifically be a chip, component or module, and the chip may include a connected processor and memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute an application update method provided in the above embodiment.

[0139] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement an application update method provided by the above-mentioned embodiment.

[0140] This embodiment also provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement an application update method provided by the above embodiment.

[0141] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0142] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0143] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, 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.

[0144] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.

Claims

1. An application update method, It is characterized in that The method comprises: When the vehicle's onboard system meets the application update conditions, the resource configuration data of the onboard application is obtained; Acquire a target dedicated resource corresponding to the vehicle model configuration information of the vehicle from the resource configuration data; Based on the resource mapping relationship in the resource configuration data, determining a replacement application resource corresponding to the target dedicated resource from the installed resources of the in-vehicle application; The target dedicated resource is used to replace the replacement application resource to obtain an updated in-vehicle application.

2. The method according to claim 1, It is characterized in that The method further comprises: When the vehicle system of the vehicle installs the vehicle application for the first time, obtaining initial configuration data of the vehicle application; the initial configuration data includes a general resource and an initial dedicated resource set; Determining the initial dedicated resources of the vehicle in the initial dedicated resource set according to the vehicle model configuration information of the vehicle; Based on the initial resource mapping relationship in the initial configuration data, the empty placeholder data corresponding to each empty placeholder in the general resources is replaced with the initial dedicated resources to obtain an installed vehicle-mounted application.

3. The method according to claim 1, It is characterized in that When the vehicle system meets the application update condition, before obtaining the resource configuration data of the vehicle application, the method further includes: Acquire dedicated resources corresponding to multiple vehicle models on which the in-vehicle application is installed; Determine a resource mapping relationship between a resource position of each sub-dedicated resource in the dedicated resource and each empty placeholder in the installed resource; The dedicated resources are stored according to vehicle type identification to obtain a dedicated resource set; Based on the dedicated resource set and the resource mapping relationship, resource configuration data of the in-vehicle application is generated.

4. The method according to claim 3, It is characterized in that The step of acquiring the target dedicated resource corresponding to the vehicle model configuration information of the vehicle from the resource configuration data includes: Determine a target vehicle model identifier corresponding to the vehicle model configuration information; The target dedicated resource of the vehicle is determined from the resource configuration data according to the target vehicle model identifier.

5. The method according to claim 1, It is characterized in that The step of replacing the replacement application resource with the target dedicated resource to obtain an updated in-vehicle application includes: Setting the replacement application resource to a disabled state; The target dedicated resource is set to an enabled state to obtain an updated in-vehicle application.

6. The method according to claim 1, It is characterized in that When the vehicle system meets the application update condition, the resource configuration data of the vehicle application is obtained, including: When the vehicle system of the vehicle is started, determining whether the vehicle model configuration information of the vehicle has changed; If so, the vehicle's on-board system meets the application update conditions and obtains the resource configuration data of the on-board application.

7. The method according to claim 6, It is characterized in that When the vehicle system meets the application update condition, after obtaining the resource configuration data of the vehicle application, the method further includes: If not, determining whether the resource configuration data or version identification corresponding to the vehicle-mounted application of the vehicle has changed; If so, the vehicle's on-board system meets the application update conditions and obtains the resource configuration data of the on-board application.

8. An application updating device, It is characterized in that The device comprises: An acquisition unit, used to acquire resource configuration data of the vehicle-mounted application when the vehicle system meets the application update condition; A matching unit, used for acquiring a target dedicated resource corresponding to the vehicle model configuration information of the vehicle from the resource configuration data; a mapping unit, configured to determine, based on the resource mapping relationship in the resource configuration data, a replacement application resource corresponding to the target dedicated resource from among the installed resources of the in-vehicle application; An updating unit is used to replace the replacement application resource with the target dedicated resource to obtain an updated in-vehicle application.

9. A vehicle, It is characterized in that The vehicle comprises: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory, so that the vehicle executes the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 7 is implemented.