Application processing method and device, electronic equipment and vehicle

By configuring the management library and service agent, it simplifies the invocation of third-party application components and native services in the vehicle system, solves the problems of long call processing time and logical modification after version upgrade, and realizes safe and efficient service invocation.

CN118764536APending Publication Date: 2024-10-11GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410830133.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

In the existing technology, third-party application components in the vehicle-machine system need to use indirect methods such as reflection when calling native services, resulting in a long call processing time, and the APK logic needs to be modified after the system version is upgraded, which increases complexity and inconvenient.

Method used

By configuring the management library and service proxy, we can achieve matching and permission constraints between third-party application components and native services, simplify the calling process, and directly call native services to reduce processing time.

Benefits of technology

It simplifies the process of third-party application components calling native services, improves calling efficiency, ensures the security of the vehicle system, and reduces the need for modification after system version upgrade.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764536A_ABST
    Figure CN118764536A_ABST
Patent Text Reader

Abstract

The invention provides an application processing method and device, electronic equipment and a vehicle, and the method comprises the steps: receiving an application service request sent by a service request end, the service request end being a third-party application component matched based on an access port configured with an SDK (Software Development Kit); analyzing the application service request, and determining whether a corresponding request service can be called or not; if yes, determining whether a service agent corresponding to the application service request exists based on a configuration management library; and if the application service request exists, processing the application service request by using the native service connected with the service agent to obtain corresponding feedback data, and returning the feedback data to the service request end, so that the service request end calls the corresponding native service based on the feedback data. According to the invention, authority constraint is carried out on the third-party application component matched with the access port configured with the SDK, and the service agent corresponding to the application service request is utilized to provide the service for the service request end, so that the time of calling the native service by the third-party application component is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle processing technology, and in particular to an application processing method, device, electronic equipment and vehicle. Background Art

[0002] At present, most applications in the vehicle's onboard system need to use native services, such as Bluetooth, Wifi, hotspot and other native services. When a third-party application component uses the native service method, since it is not an application of the onboard system itself, it has no permission to directly use the native service and can only call it through some unconventional methods, such as reflection. This not only makes the logic of the application package APK of the third-party application component complicated, but also after the version of the onboard system is upgraded, all third-party application components need to modify the logic of the APK.

[0003] In summary, through the above method, it can be seen that the call processing time required for calling the native service in the car system is relatively long. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides an application processing method, device, electronic device and vehicle to solve the problem of long call processing time existing in the prior art.

[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0006] A first aspect shows an application processing method, the method comprising:

[0007] Receiving an application service request sent by a service request end, wherein the service request end is a third-party application component that matches an access port of a configuration software development kit SDK;

[0008] Analyze the application service request to determine whether the corresponding requested service can be called;

[0009] If so, determining whether there is a service agent corresponding to the application service request based on a configuration management repository, the configuration management repository being pre-set;

[0010] If so, the application service request is processed using the native service to which the service proxy is connected to obtain corresponding feedback data, and the feedback data is returned to the service request end so that the service request end can call the corresponding native service based on the feedback data.

[0011] Optionally, analyzing the application service request to determine whether a corresponding requested service can be called includes:

[0012] Determine the application type corresponding to the service request end based on the basic information in the application service request;

[0013] Determining, based on the application type, whether the service request end can call a native service carried in the application service request;

[0014] If so, it is determined that the service request end can call the corresponding request service.

[0015] Optionally, analyzing the application service request to determine whether a corresponding requested service can be called includes:

[0016] Determine whether the service request end is in the service list based on the basic information in the application service request;

[0017] If so, it is determined that the service request end can call the corresponding request service.

[0018] Optionally, the pre-configuration process for the configuration management library includes:

[0019] Determine the native services in the vehicle system;

[0020] For each native service, a corresponding service proxy is constructed based on the native service;

[0021] Connect the service agent to the corresponding native service through the native service SDK;

[0022] Build a configuration management library based on the service proxy connected to the corresponding native service.

[0023] Optionally, determining whether there is a service agent corresponding to the application service request based on the configuration management library includes:

[0024] Traversing the configuration database to determine whether there is a service proxy corresponding to the native service carried by the application service request;

[0025] If so, determining that a service agent corresponding to the application service request exists;

[0026] If it does not exist, a prompt message is output to indicate that the native service called by the service request end does not exist.

[0027] Optionally, also include:

[0028] Get the access information sent by the service requester;

[0029] Determine whether the access information matches the access port encapsulated by the configuration SDK;

[0030] If they match, it is determined that the service request end has accessed successfully.

[0031] Optionally, before the native service connected to the service proxy is used to process the application service request to obtain corresponding feedback data, the method further includes:

[0032] Determining whether the current number of requests processed by the service agent is less than a preset threshold;

[0033] If it is less than, executing the step of processing the application service request by using the native service connected to the service proxy to obtain corresponding feedback data.

[0034] A second aspect shows an application processing device, the device comprising:

[0035] An access unit, configured to receive an application service request sent by a service request end, wherein the service request end is a third-party application component that matches an access port configured with the SDK;

[0036] An analysis unit, configured to analyze the application service request to determine whether a corresponding requested service can be called; if so, determine whether a service agent corresponding to the application service request exists based on a configuration management library, the configuration management library being pre-set;

[0037] The processing unit is used to: if it exists, use the native service connected to the service proxy to process the application service request to obtain corresponding feedback data, and return it to the service request end so that the service request end calls the corresponding native service based on the feedback data.

[0038] The third aspect shows an electronic device, including: a processor and a memory, wherein the processor and the memory are connected via a communication bus; wherein the processor is used to call and execute a program stored in the memory; and the memory is used to store a program, wherein the program is used to implement the application processing method shown in the first aspect of an embodiment of the present invention.

[0039] The fourth aspect shows a vehicle, comprising the electronic device shown in the third aspect of the embodiment of the present invention, wherein the electronic device is used to execute the application processing method shown in the first aspect of the embodiment of the present invention.

[0040] Based on the above-mentioned embodiment of the present invention, an application processing method, device, electronic device and vehicle are provided, the method includes: receiving an application service request sent by a service request end, the service request end is a third-party application component matching the access port of the configuration software development kit SDK; analyzing the application service request to determine whether the corresponding request service can be called; if so, determining whether there is a service agent corresponding to the application service request based on the configuration management library, the configuration management library is pre-set; if so, using the native service connected to the service agent to process the application service request to obtain corresponding feedback data, and return it to the service request end, so that the service request end can call the corresponding native service based on the feedback data. In the embodiment of the present invention, for the third-party application component matching the access port of the configuration SDK, that is, the service request end; first determine whether the service request end has the authority to call the native service carried by the application service request, so as to restrict the authority of the accessed third-party component, thereby ensuring the security of the vehicle system; then, use the service agent corresponding to the application service request to provide services for the service request end, so as to reduce the time for the third-party application component to call the native service, simplify the calling process, and thus achieve the purpose of simplifying the operation process. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0042] Figure 1 A schematic diagram of the connection architecture of the in-vehicle configuration manager SettingManager, third-party application components and native services shown in an embodiment of the present invention;

[0043] Figure 2 A schematic diagram of a flow chart of an application processing method according to an embodiment of the present invention;

[0044] Figure 3 This is an architecture diagram of a configuration manager SettingManager connecting native services and third-party application components shown in an embodiment of the present invention;

[0045] Figure 4 A schematic flow chart of another application processing method according to an embodiment of the present invention;

[0046] Figure 5 A schematic flow chart of another application processing method according to an embodiment of the present invention;

[0047] Figure 6The present invention is a schematic diagram of the structure of an application processing device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0050] It should be noted that the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0051] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0052] See also Figure 1This is a schematic diagram of the connection architecture of the in-vehicle configuration manager SettingManager, third-party application components and native services shown in an embodiment of the present invention.

[0053] The third-party application component 20 is connected to the configuration manager 10 through the configuration SDK, and the configuration manager 10 is connected to the native service 30, that is, the configuration manager 10 is connected through the SDK corresponding to the native service 30.

[0054] As the access party of the vehicle system service, the configuration manager SettingManager10 is configured as a vehicle system application, and android:sharedUserId="android.uid.system" is configured in the menifest.xml file in the vehicle.

[0055] The configuration manager 10 and the native service 30 are controlled by a vehicle controller (not shown in the figure) in the vehicle and are configured in accordance with the vehicle system. The third-party application component 20 is controlled by a corresponding server (not shown in the figure).

[0056] It should be noted that the native service 30 may be an Android native service or an IOS native service, etc., which is not limited in this embodiment of the present invention.

[0057] Optionally, the configuration manager SettingManager10 shown in the present application may be arranged between the business application layer and the basic service layer of the vehicle system.

[0058] Based on the above-mentioned architecture diagram, the specific process of implementing application processing includes:

[0059] The vehicle controller receives the service request end, that is, the application service request sent by the third-party application component 20 through its own server, and the service request end is the third-party application component matching the access port of the configuration SDK;

[0060] The vehicle controller controls the configuration manager SettingManager10 to analyze the application service request to determine whether the corresponding request service can be called; if so, determine whether there is a service agent corresponding to the application service request based on the configuration management library in the configuration manager SettingManager10, and the configuration management library is pre-set; if so, use the native service 30 connected to the service agent to process the application service request to obtain corresponding feedback data, and return it to the service request end, that is, the third-party application component 20, so that the service request end, that is, the third-party application component 20, can call the corresponding native service 30 based on the feedback data.

[0061] In the embodiment of the present invention, for the third-party application component that matches the access port of the configuration SDK, i.e., the service request end, it is first determined whether the service request end has the authority to call the native service carried by the application service request, so as to restrict the authority of the accessed third-party component, thereby ensuring the security of the vehicle system; then, the service agent corresponding to the application service request is used to provide services for the service request end, so as to reduce the time for the third-party application component to call the native service and simplify the calling process.

[0062] See also Figure 2 , is a flow chart of an application processing method shown in an embodiment of the present invention, the method comprising:

[0063] Step S201: receiving an application service request sent by a service request end.

[0064] In step S201, the service request end is a third-party application component that matches the access port of the configured SDK.

[0065] Optionally, when the user triggers the first start of a third-party application component, the server corresponding to the third-party application component responds to the operation triggered by the user on the third-party application component. If the business function corresponding to the operation needs to call a native service, based on the native service that needs to be called by the operation, the information corresponding to the native service, and the basic information of the third-party application component generate a corresponding application service request, and send the application service request to the vehicle controller for receipt by the vehicle controller.

[0066] It should be noted that the third-party application component that sends the application service request is called the service request end.

[0067] Step S202: Analyze the application service request to determine whether the corresponding request service can be called. If so, execute step S203. If not, output a prompt message to prompt that the call of the service request end is unreasonable and is not allowed.

[0068] It should be noted that there are multiple implementation methods in the process of implementing step 202.

[0069] The first implementation method includes the following steps:

[0070] Step S11: Based on the basic information in the application service request, determine the application type corresponding to the service request end.

[0071] In the specific implementation of step S11, the vehicle controller controls the configuration manager to traverse the corresponding relationship between the function and the application type in each basic information pre-stored by itself, so as to obtain the application type corresponding to the basic information.

[0072] It should be noted that the corresponding relationship between functions and application types is set and stored in advance based on multiple experiences or experiments.

[0073] Step S12: Determine whether the service request end can call the native service carried by the application service request based on the application type. If so, execute step S13. If not, output a prompt message to prompt that the call of the service request end is unreasonable and is not allowed.

[0074] In the process of implementing step S12, the vehicle controller controls the configuration manager to traverse the correspondence between the application types and the callable services pre-stored in itself, determine the native services that can be called by the application type, and whether the native service carried by the application service request is the same as the native service that can be called by any application type. If they are the same, step S13 is executed; if they are not the same, a prompt message is output to prompt that the call of the service request end is unreasonable and its call is not allowed.

[0075] It should be noted that the relationship between application types and callable services is set and stored in advance based on multiple experiences or experiments.

[0076] For example: the function of the basic information of the service request end A realizes music playback, and its corresponding application type is a; the vehicle controller controls the configuration manager to traverse the correspondence between the application types and the callable services pre-stored in itself, and determines that the native services that can be called by the application type a are Q, W, and R; assuming that the native service carried by the application service request is Q, determine whether the native service Q carried by the application service request is the same as the native service Q, W, and R that can be called by any application type, determine whether the native service Q carried by the application service request is the same as the native service Q that can be called by the application type, determine that the corresponding request service can be called, and execute step S13.

[0077] Step S13: Determine that the service request end can call the corresponding request service, and execute step S203.

[0078] In an embodiment of the present invention, the configuration manager SettingManager determines whether the service request end has the authority to call the native service carried by the application service request through the application type, so as to restrict the authority of the connected third-party components, thereby ensuring the security of the vehicle system.

[0079] The second implementation method comprises the following steps:

[0080] Step S21: Determine whether the service request end is in the service list based on the basic information in the application service request. If so, execute step S22; if not, execute step S23.

[0081] In the specific implementation of step S21, the vehicle controller controls the configuration manager to use the basic information in the application service request to search the service list and determine whether the service request end is in the service list. If so, step S22 is executed, and if not, step S23 is executed.

[0082] It should be noted that the service list is pre-set based on actual conditions, such as a list of third-party application components that are legal and from compliant sources.

[0083] Step S22: Determine whether the service request end can call the corresponding request service.

[0084] Step S23: if it is determined that the service request end cannot call the corresponding requested service, a prompt message is output to prompt that the call of the service request end is unreasonable and is not allowed.

[0085] In an embodiment of the present invention, the configuration manager SettingManager determines whether the service request end has the authority to call the native service carried by the application service request through the service list, so as to restrict the authority of the connected third-party components, thereby ensuring the security of the vehicle system.

[0086] Step S203: Determine whether there is a service agent corresponding to the application service request in the configuration management library. If so, execute step S204. If not, output a prompt message to prompt that the native service called by the service request end does not exist.

[0087] In step S203, the service agent in the configuration management library is pre-set;

[0088] It should be noted that the pre-setting process of the configuration management library includes:

[0089] Step S31: determining the native service in the vehicle system;

[0090] In the specific implementation of step S31, the vehicle controller controls the configuration manager to obtain all native services in the vehicle.

[0091] It should be noted that native services refer to applications developed by a certain operating system, such as iOS, Android, etc. They can only run on their respective mobile devices and cannot be deleted.

[0092] Step S32: For each native service, a corresponding service proxy is constructed based on the native service.

[0093] In the specific implementation process of step S32, for each native service, the code for implementing the access to the corresponding native service function is constructed into a software package, and dynamically loaded into the virtual machine for simulation to generate a corresponding service proxy.

[0094] Among them, the software package includes native service function annotations, automatically generated Proxy proxy classes, dynamic data sources and other code modules.

[0095] A virtual machine is a complete computer system with complete hardware functions that is simulated by software and runs in a completely isolated environment.

[0096] For example, for Bluetooth services, the code for accessing Bluetooth services is constructed as a software package and dynamically loaded into a virtual machine for simulation to generate a Bluetooth proxy bluetoothProxy, wherein the Bluetooth service proxy bluetoothProxy has the ability to access Bluetooth services in the system.

[0097] For network services, the code for implementing the access network service function is constructed as a software package and dynamically loaded into a virtual machine for simulation to generate a network proxy networkProxy, wherein the network service proxy networkProxy has the ability to access network services in the system.

[0098] Similarly, for other proxy otherProxy, it has the ability to access other system services, such as Figure 3 shown.

[0099] Step S33: connecting the service agent to the corresponding native service through the native service software development kit SDK.

[0100] In the specific implementation of step S33, the service agent connects to the corresponding native service through the application program interface API provided by the SDK of the corresponding native service.

[0101] It should be noted that the software development kit SDK of the native service is specific to the native service, that is, one native service corresponds to one SDK.

[0102] For example, the SDK for Bluetooth service is sdk1, the SDK for network service is sdk2, and the SDK for other services is sdk3. Figure 3 shown.

[0103] The Bluetooth agent connects to the Bluetooth service through the application program interface API provided by sdk1, the network agent connects to the network service through the application program interface API provided by sdk2, and other services connect to other services through the application program interface API provided by sdk3.

[0104] Step S34: construct a configuration management library based on the service proxy connected to the corresponding native service.

[0105] It should be noted that the configuration management library settings are in the SettingManager configuration manager, such as Figure 3 For example, the SettingManager configuration manager includes the Bluetooth proxy bluetoothProxy, the network proxy networkProxy, and other proxies otherProxy.

[0106] In an embodiment of the present invention, a corresponding service proxy is constructed in the configuration manager SettingManager through different native services in the vehicle computer, so as to subsequently provide services for third-party application components based on the corresponding service proxy, thereby reducing the time for third-party application components to call native services.

[0107] The specific implementation process of step S203 includes the following steps:

[0108] Step S41: traverse the configuration database to determine whether there is a service proxy corresponding to the native service carried by the application service request. If so, execute step S42; if not, execute step S43.

[0109] In the process of implementing step S41, the service agent with the same name in the configuration database is searched through the name in the information corresponding to the native service carried by the application service request. If it exists, step S42 is executed; if not, step S43 is executed.

[0110] Step S42: Determine whether there is a service agent corresponding to the application service request.

[0111] Step S43: outputting a prompt message to indicate that the native service called by the service request end does not exist.

[0112] In an embodiment of the present invention, the service agents in the configuration database are traversed to determine the service agent that can process the application service request, so as to subsequently provide services to the third-party application component based on the corresponding service agent, thereby reducing the time for the third-party application component to call the native service.

[0113] Step S204: Process the application service request using the native service to which the service proxy is connected to obtain corresponding feedback data, and return the feedback data to the service request end so that the service request end can call the corresponding native service based on the feedback data.

[0114] In the process of specifically implementing step S204, the application service request is processed using the native service to which the service proxy is connected, and a method for calling the native service to perform a corresponding operation is obtained, and feedback data is generated and returned to the service request end, so that the service request end calls the corresponding native service to implement the corresponding function based on the method for calling the native service to perform the corresponding operation.

[0115] For example, if the feedback data is a method for calling a Bluetooth service to perform a corresponding activation operation, the service request end can call the corresponding Bluetooth service method based on the call to perform the corresponding activation operation to realize the corresponding activation of the Bluetooth function. The code for activating the Bluetooth function is:

[0116] try{

[0117] SettingManager.getInstance().getBluetoothService().setBtState(true);

[0118] }catch(RemoteException e){

[0119] e.printStackTrace();

[0120] }

[0121] For example, if the feedback data is a method for calling a network service to perform a corresponding shutdown operation, the service request end can call the corresponding network service method based on the call to perform the corresponding shutdown operation to implement the corresponding WIFI shutdown function. The code for shutting down the WIFI function is:

[0122] try{

[0123] SettingManager.getInstance().getNetworkService().setWifiEnabled(false);

[0124] }catch(RemoteException e){

[0125] e.printStackTrace();

[0126] }

[0127] In the embodiment of the present invention, for the third-party application component that matches the access port of the configuration SDK, i.e., the service request end, it is first determined whether the service request end has the authority to call the native service carried by the application service request, so as to restrict the authority of the accessed third-party component, thereby ensuring the security of the vehicle system; then, the service agent corresponding to the application service request is used to provide services for the service request end, so as to reduce the time for the third-party application component to call the native service, simplify the calling process, and thus achieve the purpose of simplifying the operation process.

[0128] See also Figure 4 , is a flow chart of an application processing method shown in an embodiment of the present invention, the method comprising:

[0129] Step S401: obtaining access information sent by the service requesting end;

[0130] In the specific implementation process of step S401, after the third-party application component is successfully downloaded to the vehicle computer, the vehicle computer controller detects a prompt that the third-party application component has been successfully downloaded, indicating that the third-party application component can be used on the vehicle computer, but it cannot be determined whether the third-party application component can call the native service inside the vehicle computer.

[0131] Next, obtain the access information of the successfully downloaded third-party application component, that is, the service request end;

[0132] It should be noted that the access information includes interface information, component name, version, model, function and other basic information of the third-party application component.

[0133] The applicant found that, first, due to the restriction of permissions in the car computer, the third-party application components cannot directly call the native services in the car computer during use, and dynamic permission application is required at this time. Secondly, due to the different usage environments and interfaces of the third-party application components, the native services in the car computer cannot be directly called. At this time, multiple conversion calls are required, which requires more operations, resulting in complex and cumbersome calling operations.

[0134] The embodiment of the present invention determines the service request end matching the access port of the configuration SDK through the application service request, so as to process the application service through the configuration manager, such as Figure 3 shown.

[0135] Figure 3 The desktop widgets shown in the figure are third-party application components, the system settings module of the car computer, and the status bar module that can control the docking.

[0136] Step S402: determine whether the access information matches the access port configured with the SDK package. If so, execute step S403. If not, the service request end is not allowed to call the native service of the system.

[0137] The configuration manager SettingManager of this application uses the Android interface definition language AIDL to define the access port to provide services to the outside world, and encapsulates the connection, reconnection and other processes of the AIDL into a configuration SDK for external provision, thereby simplifying the access process of the access party.

[0138] In the specific implementation of step S402, the access information is matched with the access port encapsulated by the configured SDK. If the match is successful, step S403 is executed. If the match is not successful, the service request end is not allowed to call the native service of the system.

[0139] Step S403: Determine that the service request end has accessed successfully.

[0140] In the specific implementation of step S403, the service request end is connected to the configuration manager SettingManager by using the connection, reconnection and other process methods of AIDL in the configuration SDK.

[0141] The code for accessing SettingSDK and obtaining SettingManager service determined based on the specific implementation process of the above steps S401 to S403 is as follows:

[0142] SettingManager.getInstance().addOnServiceConnectedListener(new

[0143] SettingManager.OnServiceStateListener(){

[0144] @Override

[0145] public void onConnected(){

[0146] Log.i(TAG,"setting service onConnected");

[0147] }

[0148] @Override

[0149] public void onDisconnected(){

[0150] Log.i(TAG,"setting service onDisconnected");

[0151] }

[0152] });

[0153] SettingManager.getInstance().init(application);

[0154] In an embodiment of the present invention, an application service request is determined to match the access port of the configuration SDK to determine whether the service request end can access the vehicle system. When the application service request of the service request end is determined to match the access port of the configuration SDK, it is determined that the service request end can access the vehicle system, which can greatly reduce the time for the third-party application component to access the system process, so that the application service needs to be processed by the configuration manager later.

[0155] Step S404: receiving an application service request sent by a service request end, where the service request end is a third-party application component that matches the access port of the configured SDK;

[0156] Step S405: Analyze the application service request to determine whether the corresponding requested service can be called. If so, execute step S406. If not, output a prompt message to indicate that the call of the service request end is unreasonable and is not allowed.

[0157] Step S406: Determine whether there is a service agent corresponding to the application service request in the configuration management library. If so, execute step S407. If not, output a prompt message to prompt that the native service called by the service request end does not exist.

[0158] In step S406, the service agent in the configuration management library is pre-set;

[0159] Step S407: Process the application service request using the native service to which the service proxy is connected to obtain corresponding feedback data, and return the data to the service request end so that the service request end can call the corresponding native service based on the feedback data.

[0160] It should be noted that the specific implementation process of step S404 to step S407 is the same as the specific implementation process of step S202 to step S204 described above, and they can refer to each other.

[0161] In an embodiment of the present invention, the application service request is determined to match the access port of the configuration SDK to determine whether the service request end can access the vehicle system, which can greatly reduce the time for the third-party application component to access the system process; for the third-party application component that matches the access port of the configuration SDK, that is, the service request end. First, determine whether the service request end has the authority to call the native service carried by the application service request to restrict the access authority of the third-party component, thereby ensuring the security of the vehicle system; then, use the service agent corresponding to the application service request to provide services to the service request end, so as to reduce the time for the third-party application component to call the native service, simplify the calling process, and thus achieve the purpose of simplifying the operation process.

[0162] Based on the application processing method shown in the above embodiment of the present invention, accordingly, the embodiment of the present invention shows a flow chart of another application processing method, such as Figure 5 Said method comprises:

[0163] Step S501: receiving an application service request sent by a service request end, where the service request end is a third-party application component that matches an access port configured with an SDK;

[0164] Step S502: Analyze the application service request to determine whether the corresponding requested service can be called. If so, execute step S503. If not, output a prompt message to indicate that the call of the service request end is unreasonable and is not allowed.

[0165] Step S503: Determine whether there is a service agent corresponding to the application service request in the configuration management library. If so, execute step S504. If not, output a prompt message to prompt that the native service called by the service request end does not exist.

[0166] In step S503, the service agent in the configuration management library is pre-set.

[0167] It should be noted that the specific implementation process of step S501 to step S503 is the same as the specific implementation process of step S201 to step S203, and they can refer to each other, and the embodiment of the present invention is not limited to this.

[0168] Step S504: determine whether the current request processing quantity of the service agent is less than a preset threshold. If so, execute step S505. If so, output a prompt to enter waiting.

[0169] It should be noted that the number of requests that a service agent can process at the same time is certain, and the number of requests that it can process, that is, the preset threshold, is set based on multiple tests.

[0170] In the process of implementing step S504, the vehicle controller obtains the current request processing number of the service agent corresponding to the application service request in the configuration manager, compares the current request processing number of the service agent with the preset threshold, and if it is less than, executes step S505; if it is greater than or equal to, outputs a prompt to enter waiting.

[0171] Step S505: Process the application service request using the native service to which the service proxy is connected to obtain corresponding feedback data, and return the data to the service request end so that the service request end can call the corresponding native service based on the feedback data.

[0172] It should be noted that the specific implementation process of step S505 is the same as the specific implementation process of the above step S204, and they can refer to each other, and this embodiment of the present invention is not limited to this.

[0173] In the embodiment of the present invention, the application service request determines whether the service request end can access the vehicle system by matching the access port of the configuration SDK, which can greatly reduce the time for the third-party application component to access the system process; for the third-party application component that matches the access port of the configuration SDK, that is, the service request end. First determine whether the service request end has the authority to call the native service carried by the application service request to restrict the authority of the accessed third-party component; the service agent determines whether the request can be processed in time by judging the number of received application service requests.

[0174] Based on the above-mentioned application processing method shown in the embodiment of the present invention, correspondingly, the embodiment of the present invention shows an application processing device, such as Figure 6 As shown, the device comprises:

[0175] The access unit 601 is used to receive an application service request sent by a service request end, where the service request end is a third-party application component that matches the access port configured with the SDK;

[0176] An analysis unit 602 is used to analyze the application service request to determine whether the corresponding request service can be called; if so, determine whether there is a service agent corresponding to the application service request based on a configuration management library, and the configuration management library is pre-set;

[0177] The processing unit 603 is used to: if it exists, use the native service connected to the service proxy to process the application service request to obtain corresponding feedback data, and return it to the service request end, so that the service request end calls the corresponding native service based on the feedback data.

[0178] The specific principles and execution processes of each unit in the application processing device disclosed in the above embodiment of the present invention are the same as the corresponding contents in the application processing method provided in the above embodiment of the present invention. Please refer to the corresponding parts of the application processing method disclosed in the above embodiment of the present invention, and will not be repeated here.

[0179] In the embodiment of the present invention, for the third-party application component that matches the access port of the configuration SDK, i.e., the service request end, it is first determined whether the service request end has the authority to call the native service carried by the application service request, so as to restrict the authority of the accessed third-party component, thereby ensuring the security of the vehicle system; then, the service agent corresponding to the application service request is used to provide services for the service request end, so as to reduce the time for the third-party application component to call the native service, simplify the calling process, and thus achieve the purpose of simplifying the operation process.

[0180] Optionally, based on the application processing device shown in the above embodiment of the present invention, the analysis unit 602 analyzes the application service request to determine whether the corresponding request service can be called, which is specifically used to:

[0181] Determine the application type corresponding to the service request end based on the basic information in the application service request;

[0182] Determining, based on the application type, whether the service request end can call a native service carried in the application service request;

[0183] If so, it is determined that the service request end can call the corresponding request service.

[0184] Optionally, based on the application processing device shown in the above embodiment of the present invention, the analysis unit 602 analyzes the application service request to determine whether the corresponding request service can be called, which is specifically used to:

[0185] Determine whether the service request end is in the service list based on the basic information in the application service request;

[0186] If so, it is determined that the service request end can call the corresponding request service.

[0187] Optionally, based on the application processing device shown in the above embodiment of the present invention, the analysis unit 602 of the pre-setting process of the configuration management library is specifically used to:

[0188] Determine the native services in the vehicle system;

[0189] For each native service, a corresponding service proxy is constructed based on the native service;

[0190] Connect the service agent to the corresponding native service through the native service software development kit SDK;

[0191] Build a configuration management library based on the service proxy that connects to the corresponding native service.

[0192] Optionally, based on the application processing device shown in the above embodiment of the present invention, the analysis unit 602 that determines whether there is a service agent corresponding to the application service request based on the configuration management library is specifically used to:

[0193] Traversing the configuration database to determine whether there is a service proxy corresponding to the native service carried by the application service request;

[0194] If so, determining that a service agent corresponding to the application service request exists;

[0195] If it does not exist, a prompt message is output to indicate that the native service called by the service request end does not exist.

[0196] Optionally, based on the application processing device shown in the above embodiment of the present invention, the processing unit 603 is further used to: obtain access information sent by the service request end;

[0197] Determine whether the access information matches the access port encapsulated by the configuration SDK;

[0198] If they match, it is determined that the service request end has accessed successfully.

[0199] Optionally, based on the application processing device shown in the above embodiment of the present invention, the processing unit 603 is further configured to:

[0200] Determining whether the current number of requests processed by the service agent is less than a preset threshold;

[0201] If it is less than, executing the step of processing the application service request by using the native service connected to the service proxy to obtain corresponding feedback data.

[0202] An embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory is used to store program codes and data for fault processing, and the processor is used to call program instructions in the memory to execute the steps shown in the application processing method in the above embodiment.

[0203] An embodiment of the present invention provides a vehicle, the vehicle includes the electronic device provided by the above-mentioned embodiment of the present application, and the electronic device is used to execute the application processing method disclosed in the embodiment of the present application.

[0204] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0205] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0206] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An application processing method, characterized in that: The method comprises: Receiving an application service request sent by a service request end, wherein the service request end is a third-party application component that matches an access port of a configuration software development kit SDK; Analyze the application service request to determine whether the corresponding requested service can be called; If so, determining whether there is a service agent corresponding to the application service request based on a configuration management repository, the configuration management repository being pre-set; If so, the application service request is processed using the native service to which the service proxy is connected to obtain corresponding feedback data, and the feedback data is returned to the service request end so that the service request end can call the corresponding native service based on the feedback data.

2. The method according to claim 1, characterized in that Analyze the application service request to determine whether the corresponding request service can be called, including: Determine the application type corresponding to the service request end based on the basic information in the application service request; Determining, based on the application type, whether the service request end can call a native service carried in the application service request; If so, it is determined that the service request end can call the corresponding request service.

3. The method according to claim 1, characterized in that Analyze the application service request to determine whether the corresponding request service can be called, including: Determine whether the service request end is in the service list based on the basic information in the application service request; If so, it is determined that the service request end can call the corresponding request service.

4. The method according to claim 1, characterized in that: The pre-configuration process for the configuration management library includes: Determine the native services in the vehicle system; For each native service, a corresponding service proxy is constructed based on the native service; Connect the service agent to the corresponding native service through the native service SDK; Build a configuration management library based on the service proxy connected to the corresponding native service.

5. The method according to claim 1, characterized in that Determining whether there is a service agent corresponding to the application service request based on the configuration management library includes: Traversing the configuration database to determine whether there is a service proxy corresponding to the native service carried by the application service request; If so, determining that a service agent corresponding to the application service request exists; If it does not exist, a prompt message is output to indicate that the native service called by the service request end does not exist.

6. The method according to claim 1, characterized in that Also includes: Get the access information sent by the service requester; Determine whether the access information matches the access port encapsulated by the configuration SDK; If they match, it is determined that the service request end has accessed successfully.

7. The method according to claim 1, characterized in that Before using the native service connected to the service proxy to process the application service request to obtain corresponding feedback data, the method further includes: Determining whether the current number of requests processed by the service agent is less than a preset threshold; If it is less than, executing the step of processing the application service request by using the native service connected to the service proxy to obtain corresponding feedback data.

8. An application processing device, characterized in that: The device comprises: An access unit, configured to receive an application service request sent by a service request end, wherein the service request end is a third-party application component that matches an access port configured with the SDK; An analysis unit, configured to analyze the application service request to determine whether a corresponding requested service can be called; if so, determine whether a service agent corresponding to the application service request exists based on a configuration management library, the configuration management library being pre-set; The processing unit is used to: if it exists, use the native service connected to the service proxy to process the application service request to obtain corresponding feedback data, and return it to the service request end so that the service request end calls the corresponding native service based on the feedback data.

9. An electronic device, characterized in that: include: A processor and a memory, wherein the processor and the memory are connected via a communication bus; wherein the processor is used to call and execute a program stored in the memory; The memory is used to store a program, and the program is used to implement the application processing method according to any one of claims 1 to 7.

10. A vehicle, characterized in that: The electronic device comprises the electronic device described in claim 9, wherein the electronic device is used to execute the application processing method described in any one of claims 1-7.