Vehicle service processing method and system, server and storage medium
By refining the business code of smart cars and managing it in the resource center, the containerization and hot loading of smart car model services are achieved, and the maintenance cost and complexity of model service capabilities are solved, reducing maintenance costs and reuse difficulties. Save server resources.
Patent Information
- Application Number
- CN202411048149.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-19
AI Technical Summary
With the increase of smart car models and versions, the maintenance cost and complexity of model service capabilities continue to increase, and the existing technology is difficult to effectively reduce, resulting in high maintenance costs and high reuse difficulties.
By separating the business code from the service, performing resource management, maintaining it in the resource center, the cloud server obtains model resource files from the resource center, loads the corresponding model service capabilities, realizes service containerization, supports multi-model version services, and through the hot Load and uninstall old resources to complete dynamic updates of the service.
It reduces the maintenance cost and complexity of vehicle service capabilities, saves server resources, realizes support for multi-model services by a single service node, avoids the deployment of multiple service nodes, and improves maintenance efficiency.
Smart Images

Figure CN118981379A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent automobile technology, and in particular to a vehicle service processing method, system, server and storage medium. Background Art
[0002] With the continuous development of smart car technology, vehicle service capabilities (also known as vehicle business capabilities) are also an important reference factor in evaluating smart cars.
[0003] Vehicle model service capabilities may include voice-related capabilities included in a certain vehicle model and voice version, such as more voice command coverage, faster conversation capabilities, etc. Vehicle users can obtain the latest voice version by updating the vehicle's voice version. The vehicle's voice service capabilities can generally be determined by the vehicle model + voice version.
[0004] In the related technology, a service is deployed for each vehicle model version. As the number of vehicle models and released versions increases (for example, there are users who do not update each version), the cloud service needs to support more versions. As the number of vehicle models and versions continues to increase, the judgment logic in the business code becomes more complex, which increases the maintenance cost and complexity of vehicle model service capabilities. Summary of the invention
[0005] In order to solve or partially solve the problems existing in the related technology, the present application provides a vehicle service processing method, system, server and storage medium, which can reduce the maintenance cost of vehicle model service capabilities and reduce maintenance complexity.
[0006] The first aspect of the present application provides a vehicle service processing method, comprising:
[0007] The cloud server obtains a vehicle model resource file from a resource center, wherein the vehicle model resource file includes a business code;
[0008] The corresponding vehicle model service capability is loaded according to the vehicle model resource file so that different vehicle terminals can call the vehicle model service capability.
[0009] In one embodiment, the cloud server obtains the vehicle model resource file from the resource center, including:
[0010] During the initialization process, the cloud server sends server information to the resource center;
[0011] Receive the vehicle model resource file returned by the resource center according to the server information.
[0012] In one embodiment, the cloud server obtains the vehicle model resource file from the resource center, including: the cloud server obtains the vehicle model resource file in jar format from the resource center;
[0013] The loading of the corresponding vehicle model service capability according to the vehicle model resource file includes:
[0014] The vehicle model resource file in the jar format is compiled into executable bytecode, and the corresponding vehicle model service capability is generated by executing the executable bytecode.
[0015] In one embodiment, the cloud server obtains the vehicle model resource file from the resource center, including: the cloud server obtains the updated vehicle model resource file from the resource center during operation;
[0016] The loading of the corresponding vehicle model service capability according to the vehicle model resource file so that different vehicle terminals can call the vehicle model service capability includes:
[0017] According to the updated vehicle model resource file, the corresponding updated vehicle model service capability is loaded so that different vehicle terminals can call the updated vehicle model service capability.
[0018] In one embodiment, the method further comprises:
[0019] Uninstall the historical vehicle model resource file and historical vehicle model service capabilities corresponding to the updated vehicle model resource file.
[0020] In one implementation, the loading of the corresponding vehicle model service capability according to the vehicle model resource file includes:
[0021] The pluggable capability component set in the cloud server loads the corresponding vehicle model service capability according to the vehicle model resource file.
[0022] A second aspect of the present application provides a vehicle service processing system, comprising:
[0023] The cloud server is used to obtain a vehicle model resource file from a resource center, wherein the vehicle model resource file includes a business code; load the corresponding vehicle model service capability according to the vehicle model resource file, so that different vehicle terminals can call the vehicle model service capability;
[0024] The resource center is used to provide vehicle model resource files to the cloud server.
[0025] A third aspect of the present application provides a cloud server, comprising:
[0026] A resource acquisition module, used to acquire a vehicle model resource file from a resource center, wherein the vehicle model resource file includes a business code;
[0027] The service generation module is used to load the corresponding vehicle model service capabilities according to the vehicle model resource file obtained by the resource acquisition module, so that different vehicle terminals can call the vehicle model service capabilities.
[0028] In one embodiment, the resource acquisition module includes:
[0029] The first acquisition submodule is used to send server information to the resource center during the initialization process; and receive the vehicle model resource file returned by the resource center according to the server information.
[0030] In one embodiment, the resource acquisition module includes:
[0031] The second acquisition submodule is used to obtain updated vehicle model resource files from the resource center during operation;
[0032] The service generation module loads the corresponding updated vehicle model service capability according to the updated vehicle model resource file obtained by the second obtaining submodule, so that different vehicle terminals can call the updated vehicle model service capability.
[0033] In one embodiment, the cloud server further includes:
[0034] An uninstall module is used to uninstall the historical vehicle model resource file and the historical vehicle model service capability corresponding to the updated vehicle model resource file.
[0035] A fourth aspect of the present application is a cloud server, comprising:
[0036] Processor; and
[0037] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.
[0038] A fifth aspect of the present application provides a computer-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of a vehicle, the processor is caused to execute the method as described above.
[0039] The technical solution provided by this application may have the following beneficial effects:
[0040] According to the technical solution of the present application, the cloud server can obtain the vehicle model resource file from the resource center, wherein the vehicle model resource file contains the business code; the corresponding vehicle model service capability is loaded according to the vehicle model resource file, so that different vehicle ends can call the vehicle model service capability. The present application is to separate the business code from the service and maintain it in the resource center. In other words, the present application is to containerize the service and resource the business code. The service itself may no longer contain any business logic, but it can be like a container, by obtaining the vehicle model resource file from the resource center and then loading the corresponding vehicle model service capability, so as to complete the support for different vehicle model versions of the business. After the business code is resourced, the vehicle model resource file itself will contain the vehicle model business message, so that a large number of conditional judgments in the business code are no longer required, which greatly reduces the maintenance cost of the vehicle model service capability and reduces the maintenance complexity; in addition, multiple vehicle model resources can be loaded through a cloud server to complete the support of a single service node for multiple vehicle model services, and multiple service nodes are no longer required to provide business support, which also saves a lot of server resources.
[0041] Furthermore, during operation, the present application can also obtain updated vehicle model resource files from the resource center, and load the corresponding updated vehicle model service capabilities according to the updated vehicle model resource files, so that different vehicle terminals can call the updated vehicle model service capabilities; and unload the historical vehicle model resource files and historical vehicle model service capabilities corresponding to the updated vehicle model resource files. Therefore, the hot loading of services can be completed by loading new vehicle model resources and unloading old vehicle model resources without relying on the redeployment of services, further reducing the maintenance cost of vehicle model service capabilities and reducing the complexity of maintenance.
[0042] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The above and other objects, features and advantages of the present application will become more apparent by describing in more detail exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.
[0044] Figure 1 is a flow chart of a vehicle service processing method shown in an embodiment of the present application;
[0045] Figure 2 is a flow chart of a vehicle service processing method according to another embodiment of the present application;
[0046] Figure 3 is an application schematic diagram of a vehicle service processing method shown in an embodiment of the present application;
[0047] Figure 4is a schematic diagram comparing the vehicle service processing method shown in the embodiment of the present application with the processing method of the related art;
[0048] Figure 5 It is a flowchart of the service initialization and operation process of the vehicle service processing method shown in the embodiment of the present application;
[0049] Figure 6 It is a schematic diagram of implementing resource plugging and unplugging in the vehicle service processing method shown in an embodiment of the present application;
[0050] Figure 7 is a structural diagram of a vehicle service processing system shown in an embodiment of the present application;
[0051] Figure 8 It is a schematic diagram of the structure of a cloud server shown in an embodiment of the present application;
[0052] Fig. 9 It is a schematic diagram of the structure of a cloud server shown in another embodiment of the present application. DETAILED DESCRIPTION
[0053] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0054] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0055] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0056] In the related art, as the number of vehicle models and versions continues to increase, the judgment logic in the business code becomes more and more complex, which causes the maintenance cost of vehicle model service capabilities to continue to increase, and the maintenance complexity continues to increase. The present application provides a vehicle service processing method that can reduce the maintenance cost of vehicle model service capabilities and reduce the maintenance complexity.
[0057] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0058] Figure 1 It is a flow chart of the vehicle service processing method shown in an embodiment of the present application.
[0059] See also Figure 1 , the method comprising:
[0060] S101. The cloud server obtains a vehicle model resource file from a resource center, where the vehicle model resource file includes a business code.
[0061] The cloud server obtains the vehicle model resource file from the resource center, which may include: the cloud server sends server information to the resource center during initialization; and receives the vehicle model resource file returned by the resource center according to the server information.
[0062] Among them, the cloud server can obtain the vehicle model resource file in jar format from the resource center.
[0063] The cloud server obtains the vehicle model resource file from the resource center, which may include: the cloud server obtains the updated vehicle model resource file from the resource center during operation. The updated vehicle model resource file pushed by the resource center may be obtained, but is not limited thereto, and the updated vehicle model resource file may also be actively obtained from the resource center.
[0064] S102. Load the corresponding vehicle model service capability according to the vehicle model resource file, so that different vehicle terminals can call the vehicle model service capability.
[0065] Among them, the cloud server can compile the vehicle model resource file in jar format into executable bytecode, and generate the corresponding vehicle model service capabilities by executing the executable bytecode.
[0066] Among them, the plug-in capability component set in the cloud server can load the corresponding vehicle model service capability according to the vehicle model resource file.
[0067] Among them, the cloud server can load the corresponding updated vehicle model service capabilities according to the updated vehicle model resource file, so that different vehicle terminals can call the updated vehicle model service capabilities.
[0068] According to the technical solution of the embodiment of the present application, the cloud server can obtain the vehicle model resource file from the resource center, wherein the vehicle model resource file contains the business code; the corresponding vehicle model service capability is loaded according to the vehicle model resource file, so that different vehicle ends can call the vehicle model service capability. The present application is to separate the business code from the service and maintain it in the resource center. In other words, the present application is to containerize the service and resource the business code. The service itself may no longer contain any business logic, but it can be like a container, by obtaining the vehicle model resource file from the resource center and then loading the corresponding vehicle model service capability, so as to complete the support for different vehicle model versions of the business. After the business code is resourced, the vehicle model resource file itself will contain the vehicle model business message, so that a large number of conditional judgments in the business code are no longer required, which greatly reduces the maintenance cost of the vehicle model service capability and reduces the maintenance complexity; in addition, multiple vehicle model resources can be loaded through a cloud server to complete the support of a single service node for multiple vehicle model services, and multiple service nodes are no longer required to provide business support, which also saves a lot of server resources.
[0069] Figure 2 It is a flowchart of a vehicle service processing method shown in another embodiment of the present application.
[0070] The maintenance of vehicle model service capabilities of related technologies has many problems when facing the simultaneous launch of multiple vehicle models. For example, the basic vehicle model capabilities can actually be reused across vehicle models and versions, but as the number of models and versions continues to increase, the judgment logic in the business code becomes more and more complex, which makes the maintenance cost and the difficulty of capability reuse increase exponentially. When the basic vehicle model capabilities need to be launched, each vehicle model service also needs to be deployed throughout the entire process, which is time-consuming and labor-intensive. In addition, as time goes by, there are more and more vehicle model versions, and fewer and fewer users of old versions. In other words, the services will occupy more and more resources, but the utilization rate will decrease. At this time, more human resources are needed to support the release of more vehicle models, which greatly increases the complexity and cost of maintenance.
[0071] The vehicle service processing method proposed in this application is a pluggable solution for services and resources. This method reduces the maintenance cost of vehicle model service capabilities and the complexity of maintenance by containerizing services and resourceizing business codes. With this application solution, the service itself no longer contains any business logic, but can support different vehicle model versions of services by placing different vehicle model version resources, just like a container. In this application solution, after the business code is resourced, the resource itself will contain vehicle model business messages, so that a large number of conditional judgments in the business code are no longer required, which greatly reduces maintenance costs. Using this application solution, the service can load multiple vehicle model resources, thereby completing the support of multiple vehicle model services by a single service node, which can save a lot of server resources. In this application solution, by loading new vehicle model resources and unloading old vehicle model resources, the hot loading of the service can be completed without relying on the redeployment of the service, providing a platform-based capability to support multiple vehicle models.
[0072] See also Figure 2 , the method comprising:
[0073] S201. During the initialization process, the cloud server sends server information to the resource center; and receives a vehicle model resource file returned by the resource center according to the server information, wherein the vehicle model resource file includes a business code.
[0074] The cloud server first completes the initial service startup, that is, completes the initialization. When the cloud server is cold started, the business code of the resource center can be called to complete the initialization. The so-called cold start generally refers to the first startup after the service is deployed.
[0075] The server information may include service deployment environment, service name, service cluster and other information. The resource center can be set up on a separate server, mainly for resource management and external calls. The resource center searches for the vehicle resource files required by the cloud server based on the server information. The vehicle resource files contain business codes, which enables the business codes to be separated from the service and maintained in the resource center, i.e., business code resourceization.
[0076] See also Figure 3 , the vehicle end on the user side may have various models + versions, and this application solution can support the corresponding capabilities through the cloud service of a cloud server. Figure 3 As shown, the vehicle side of the user includes CarA-v1.0, CarA-v1.1, and CarB-v1.1, and the cloud service of the cloud server can simultaneously support the vehicle service capabilities of CarA-v1.0, CarA-v1.1, and CarB-v1.1. Taking CarA-v1.1 as an example, CarA-v1.1 represents vehicle A with a voice version of v1.1.
[0077] In this application plan, the business code will be separated from the service and maintained in the resource center. Figure 4 , this application splits the business logic and changes the old model of multi-business services into a new model of single service loading business resources. The old business model in the related art is to deploy a service for each vehicle version. For example, a service is deployed for CarA-v1.0, CarA-v1.1, and CarB-v1.1 respectively, which is time-consuming and labor-intensive, and difficult to maintain. This application proposes a plug-in service + resource model, which strips business-related business codes from each set of services and converges them in the resource center as vehicle resource files for external calls. For example, the business codes of CarA-v1.0, CarA-v1.1, and CarB-v1.1 are all concentrated in the resource center as vehicle resource files, and the services of the cloud server can obtain these vehicle resource files from the resource center. Among them, the business code can be written in Java language, and after resourceization, it can be packaged into a vehicle resource file in jar format, so that it can be stored in the resource center in the form of a file and called externally.
[0078] Among them, Java is a mainstream programming language. The jar format is a software package file format, which is usually used to aggregate a large number of Java class files, related metadata and resource (text, pictures, etc.) files into one file.
[0079] S202. Load the corresponding vehicle model service capability according to the vehicle model resource file, so that different vehicle terminals can call the vehicle model service capability.
[0080] The cloud server can compile the vehicle model resource file in jar format into executable bytecode, and generate the corresponding vehicle model service capabilities by executing the executable bytecode, so that different vehicle ends can call the vehicle model service capabilities.
[0081] The pluggable capability component set in the cloud server can load the corresponding vehicle model service capability according to the vehicle model resource file, so that the vehicle end can subsequently call the corresponding vehicle model service capability from the cloud server. The pluggable capability component can be a hot-swappable component.
[0082] The processing of S201-S202 can also be seen in Figure 5 shown.
[0083] See also Figure 5 , including the initial startup of the service (cold start) and process processing when the service is running.
[0084] Figure 5 The process of initial service startup (cold start) includes:
[0085] Step 1a: The cloud server sends server information to the resource center.
[0086] The cloud server sends server information to the resource center. The server information may include service deployment environment, service name, service cluster, and other information.
[0087] Step 1b: The resource center returns the vehicle model resource file to the cloud server.
[0088] The resource center can return the vehicle model resource file that needs to be loaded by this service to the cloud server based on the received server information, for example, returning the vehicle model resource file of CarA-v1.0, the vehicle model resource file of CarA-v1.1, and the vehicle model resource file of CarB-v1.1.
[0089] Step 1c: The hot-swappable component in the cloud server loads the corresponding vehicle model service capability according to the vehicle model resource file returned by the resource center.
[0090] The hot-swappable component (reload sdk for short) in the cloud server is a capability component integrated in the server. The hot-swappable component can be, for example, a multi-car hot-swappable component. The hot-swappable component obtains the car model resource file returned by the resource center, and the car model resource file can be in jar format, for example, in the form of a jar package. The hot-swappable component can compile the jar file into executable bytecode through ClassLoader (class loader), execute the executable bytecode so that it can run in the service, and generate the corresponding car model service capability. Among them, ClassLoader is a loader used to load Java classes into the Java virtual machine.
[0091] Step 1d: The vehicle on the user side calls the vehicle model service capability from the cloud server.
[0092] At this point, the cloud server service has completed loading the vehicle model service capabilities, and the user-side vehicle end can call the vehicle model service capabilities from the cloud server. A cloud server service can support the capabilities of multiple vehicle models. For example, the vehicle end may include CarA and the v1.0 version of the vehicle machine, and CarB and the v1.1 version of the vehicle machine.
[0093] S203. During operation, the cloud server obtains updated vehicle model resource files from the resource center.
[0094] Hot reloading generally refers to the cloud server completing the update of service capabilities while the service is running, without the need to restart the service.
[0095] When the cloud server service is running, the resource center can actively initiate resource push, but it is not limited to this. The cloud server can also actively request the resource center to obtain updated vehicle model resource files. For example, the resource center pushes updated vehicle model resource files to the cloud server, and the cloud server obtains updated vehicle model resource files from the resource center during operation, so that multiple models and versions of vehicle model resource files can be loaded for the service.
[0096] When the service of the cloud server is running, since the capability is resourced, the service can load resource files from the resource center to support new vehicle model service capabilities, and can also uninstall resource files to take offline old vehicle model service capabilities that are not needed or have problems, that is, to realize the pluggable vehicle model service capabilities proposed in this application.
[0097] S204. According to the updated vehicle model resource file, the corresponding updated vehicle model service capability is loaded so that different vehicle terminals can call the updated vehicle model service capability.
[0098] The cloud server can compile the updated vehicle model resource files in jar format into executable bytecodes, and generate corresponding updated vehicle model service capabilities by executing the executable bytecodes, so that different vehicle terminals can call the vehicle model service capabilities.
[0099] S205. Uninstall the historical vehicle model resource files and historical vehicle model service capabilities corresponding to the updated vehicle model resource files.
[0100] The cloud server can also uninstall resource files to offline the service capabilities of old models that are not needed or have problems. In this step, the cloud server uninstalls the historical model resource files and historical model service capabilities corresponding to the updated model resource files.
[0101] See also Figure 6, which shows the process of reload sdk (hot-swappable component) in the cloud server plugging and unplugging resources in the service. Among them, in process 1, the old vehicle model resources are in operation, for example, the vehicle end on the user side calls the vehicle model service capability of vehicle model A V1.0 of the cloud server to run; in process 2, after receiving the new vehicle model resource event, for example, the resource center pushes the updated vehicle model resource file vehicle model A V1.1 to the cloud server, at this time, the service of vehicle model A V1.1 of the cloud server is initialized, and the vehicle end continues to call the vehicle model service capability of vehicle model A V1.0 of the cloud server; in process 3, switch to the new vehicle model resources, at this time, the service of vehicle model A V1.1 of the cloud server completes the initialization, and the vehicle end calls the vehicle model service capability of vehicle model A V1.1 of the cloud server; in process 4, uninstall the old vehicle model resources, at this time, the vehicle model resource file of vehicle model A V1.0 and the corresponding vehicle model service capability are uninstalled, and the vehicle end continues to call the vehicle model service capability of vehicle model A V1.1 of the cloud server; in process 5, the new vehicle model resources continue to run, waiting for the next update event, at this time, the vehicle end continues to call the vehicle model service capability of vehicle model A V1.1 of the cloud server.
[0102] After the resource update is completed, the vehicle model service capabilities called by the vehicle side are converted from the old version of the vehicle model service capabilities to the new version of the vehicle model service capabilities.
[0103] The processing of S203-S205 can also be referred to Figure 5 shown.
[0104] Figure 5 Process processing during service runtime, including:
[0105] Step 2a: The resource center pushes the updated vehicle model resource file to the cloud server, and the cloud server obtains the updated vehicle model resource file.
[0106] When a new vehicle model version needs to be launched to overwrite the old version, the resource center pushes the updated vehicle model resource file to the cloud server, but is not limited to this. The cloud server may also actively request an updated vehicle model resource file.
[0107] For example, the old version v1.1 of CarA has a bug, and the new version v1.2 is released to fix it. The cloud server obtains the updated vehicle model resource file CarA-v1.2.
[0108] Step 2b: The hot-swappable component in the cloud server loads the updated vehicle model service capability according to the updated vehicle model resource file pushed by the resource center.
[0109] Reload sdk (hot-swappable component), start loading new vehicle model resource files according to the updated vehicle model resource files pushed by the resource center, and load the updated vehicle model service capabilities corresponding to the new vehicle model resource files.
[0110] Step 2c: Uninstall the historical vehicle model resource files and historical vehicle model service capabilities from the cloud server.
[0111] Reload sdk (hot-swappable component) to start uninstalling the old model resource files and the model service capabilities corresponding to the old model resource files.
[0112] Step 2d: The vehicle end on the user side calls and switches to the updated vehicle model service capability.
[0113] After the updated vehicle model service capability is loaded on the cloud server, the vehicle side calls and switches to the updated vehicle model service capability. For example, it switches from the vehicle model service capability of CarA-v1.1 to the vehicle model service capability of CarA-v1.2.
[0114] It can be found that the embodiment of the present application will separate the business code from the service and maintain it in the resource center. The service itself may no longer contain any business logic. By obtaining the vehicle model resource file from the resource center and then loading the corresponding vehicle model service capability, support for different vehicle model version services is completed, which greatly reduces the maintenance cost of the vehicle model service capability and reduces the maintenance complexity. In addition, multiple vehicle model resources can be loaded through a cloud server, completing the support of multiple vehicle model services by a single service node, and also saving a lot of server resources.
[0115] In addition, the embodiments of the present application can complete hot loading of services by loading new vehicle model resources and unloading old vehicle model resources without relying on redeployment of services, thereby further reducing the maintenance cost of vehicle model service capabilities and reducing maintenance complexity.
[0116] Corresponding to the aforementioned application function implementation method embodiment, the present application also provides a vehicle service processing system, a cloud server and corresponding embodiments.
[0117] Figure 7 It is a structural diagram of a vehicle service processing system shown in an embodiment of the present application.
[0118] See also Figure 7 A vehicle service processing system 70 provided in an embodiment of the present application includes: a cloud server 71 and a resource center 72.
[0119] The cloud server 71 is used to obtain a vehicle model resource file from a resource center 72, wherein the vehicle model resource file includes a business code; load the corresponding vehicle model service capability according to the vehicle model resource file, so that different vehicle terminals can call the vehicle model service capability;
[0120] The resource center 72 is used to provide vehicle model resource files to the cloud server 71 .
[0121] The cloud server 71 obtains the vehicle model resource file from the resource center 72 , which may include: the cloud server 71 sends server information to the resource center 72 during initialization; and receives the vehicle model resource file returned by the resource center 72 according to the server information.
[0122] The cloud server 71 obtains the vehicle model resource file from the resource center 72, which may include: the cloud server 71 obtains the updated vehicle model resource file from the resource center 72 during operation. The updated vehicle model resource file pushed by the resource center 72 may be obtained, but is not limited thereto, and the updated vehicle model resource file may also be actively obtained from the resource center 72.
[0123] The system provided in the embodiment of the present application separates the business code from the service and maintains it in the resource center. The cloud server obtains the vehicle model resource file from the resource center and then loads the corresponding vehicle model service capability, thereby completing the support for different vehicle model version services, thereby greatly reducing the maintenance cost of the vehicle model service capability and reducing the maintenance complexity. In addition, multiple vehicle model resources can be loaded through one cloud server, which also saves a lot of server resources.
[0124] Figure 8 It is a schematic diagram of the structure of the cloud server shown in the embodiment of the present application.
[0125] See also Figure 8 , a cloud server 80 includes: a resource acquisition module 81 and a service generation module 82.
[0126] The resource acquisition module 81 is used to acquire a vehicle model resource file from a resource center, wherein the vehicle model resource file includes a business code;
[0127] The service generation module 82 is used to load the corresponding vehicle model service capabilities according to the vehicle model resource file obtained by the resource acquisition module 81, so that different vehicle terminals can call the vehicle model service capabilities.
[0128] Among them, the service generation module 82 can compile the vehicle model resource file in jar format into executable bytecode, and generate the corresponding vehicle model service capability by executing the executable bytecode.
[0129] The resource acquisition module 81 may include: a first acquisition submodule 811 .
[0130] The first acquisition submodule 811 is used to send server information to the resource center during the initialization process; and receive the vehicle model resource file returned by the resource center according to the server information.
[0131] The service generation module 82 may include: a first generation submodule 821 .
[0132] The first generating submodule 821 is used to load the corresponding vehicle model service capability according to the vehicle model resource file obtained by the first obtaining submodule 811, so that different vehicle terminals can call the vehicle model service capability.
[0133] The resource acquisition module 81 may include: a second acquisition submodule 812 .
[0134] The second acquisition submodule 812 is used to acquire updated vehicle model resource files from the resource center during operation;
[0135] The service generation module 82 loads the corresponding updated vehicle model service capability according to the updated vehicle model resource file obtained by the second acquisition submodule 812, so that different vehicle terminals can call the updated vehicle model service capability.
[0136] The service generation module 82 may include: a second generation submodule 822 .
[0137] The second generation submodule 822 is used to load the corresponding updated vehicle model service capabilities according to the updated vehicle model resource file obtained by the second acquisition submodule 812, so that different vehicle terminals can call the updated vehicle model service capabilities.
[0138] The cloud server 80 may further include: an uninstall module 83 .
[0139] The uninstall module 83 is used to uninstall the historical vehicle model resource file and the historical vehicle model service capability corresponding to the updated vehicle model resource file.
[0140] The cloud server shown in the embodiment of the present application can obtain the vehicle model resource file from the resource center, wherein the vehicle model resource file contains the business code; the corresponding vehicle model service capability is loaded according to the vehicle model resource file, so that different vehicle ends can call the vehicle model service capability. The present application is to separate the business code from the service and maintain it in the resource center, that is, the present application is to containerize the service and resourceize the business code. The service itself may no longer contain any business logic, but it can be like a container, by obtaining the vehicle model resource file from the resource center and then loading the corresponding vehicle model service capability, so as to complete the support for different vehicle model versions of the business. Since the business code is resourced, the vehicle model resource file itself will contain the vehicle model business message, so that a large number of conditional judgments in the business code are no longer required, so that the maintenance cost of the vehicle model service capability is greatly reduced, and the maintenance complexity is also reduced; in addition, multiple vehicle model resources can be loaded through a cloud server, and the support of a single service node for multiple vehicle model services is completed, and multiple service nodes are no longer required to provide business support, which also saves a lot of server resources. Further, the cloud server can complete the hot loading of the service by loading new vehicle model resources and unloading old vehicle model resources without relying on the redeployment of the service, further reducing the maintenance cost of the vehicle model service capability and reducing the maintenance complexity.
[0141] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated again here.
[0142] Fig. 9 It is a schematic diagram of the structure of a cloud server shown in another embodiment of the present application.
[0143] See also Fig. 9 , the cloud server 1000 includes a memory 1010 and a processor 1020 .
[0144] The processor 1020 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0145] The memory 1010 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 1020 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 1010 may include any combination of computer-readable storage media, including various types of semiconductor storage chips (such as DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 1010 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0146] The memory 1010 stores executable codes, and when the executable codes are processed by the processor 1020 , the processor 1020 can execute part or all of the methods described above.
[0147] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.
[0148] Alternatively, the present application can also be implemented as a computer-readable storage medium (or non-temporary machine-readable storage medium or machine-readable storage medium) on which executable code (or computer program or computer instruction code) is stored. When the executable code (or computer program or computer instruction code) is executed by a processor of a vehicle (or electronic device, or server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.
[0149] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A vehicle service processing method, It is characterized in that include: The cloud server obtains a vehicle model resource file from a resource center, wherein the vehicle model resource file includes a business code; The corresponding vehicle model service capability is loaded according to the vehicle model resource file so that different vehicle terminals can call the vehicle model service capability.
2. The method according to claim 1, It is characterized in that The cloud server obtains the vehicle model resource file from the resource center, including: During the initialization process, the cloud server sends server information to the resource center; Receive the vehicle model resource file returned by the resource center according to the server information.
3. The method according to claim 1, It is characterized in that The cloud server obtains the vehicle model resource file from the resource center, including: the cloud server obtains the vehicle model resource file in jar format from the resource center; The loading of the corresponding vehicle model service capability according to the vehicle model resource file includes: The vehicle model resource file in the jar format is compiled into executable bytecode, and the corresponding vehicle model service capability is generated by executing the executable bytecode.
4. The method according to claim 1, It is characterized in that The cloud server obtains the vehicle model resource file from the resource center, including: the cloud server obtains the updated vehicle model resource file from the resource center during operation; The loading of the corresponding vehicle model service capability according to the vehicle model resource file so that different vehicle terminals can call the vehicle model service capability includes: According to the updated vehicle model resource file, the corresponding updated vehicle model service capability is loaded so that different vehicle terminals can call the updated vehicle model service capability.
5. The method according to claim 4, It is characterized in that The method further comprises: Uninstall the historical vehicle model resource file and historical vehicle model service capability corresponding to the updated vehicle model resource file.
6. The method according to claim 1, It is characterized in that The loading of the corresponding vehicle model service capability according to the vehicle model resource file includes: The pluggable capability component set in the cloud server loads the corresponding vehicle model service capability according to the vehicle model resource file.
7. A vehicle service processing system, It is characterized in that include: A cloud server, used to obtain a vehicle model resource file from a resource center, wherein the vehicle model resource file includes a business code; Loading corresponding vehicle model service capabilities according to the vehicle model resource file, so that different vehicle terminals can call the vehicle model service capabilities; The resource center is used to provide vehicle model resource files to the cloud server.
8. A cloud server, It is characterized in that include: A resource acquisition module, used to acquire a vehicle model resource file from a resource center, wherein the vehicle model resource file includes a business code; The service generation module is used to load the corresponding vehicle model service capabilities according to the vehicle model resource file obtained by the resource acquisition module, so that different vehicle terminals can call the vehicle model service capabilities.
9. The cloud server according to claim 8, It is characterized in that The resource acquisition module includes: The first acquisition submodule is used to send server information to the resource center during the initialization process; and receive the vehicle model resource file returned by the resource center according to the server information.
10. The cloud server according to claim 8, It is characterized in that The resource acquisition module includes: The second acquisition submodule is used to obtain updated vehicle model resource files from the resource center during operation; The service generation module loads the corresponding updated vehicle model service capability according to the updated vehicle model resource file obtained by the second obtaining submodule, so that different vehicle terminals can call the updated vehicle model service capability.
11. The cloud server according to claim 10, It is characterized in that The cloud server also includes: An uninstall module is used to uninstall the historical vehicle model resource file and the historical vehicle model service capability corresponding to the updated vehicle model resource file.
12. A cloud server, It is characterized in that include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 6.
13. A computer-readable storage medium, Features: An executable code is stored thereon, and when the executable code is executed by a processor of a vehicle, the processor is caused to execute the method according to any one of claims 1 to 6.
