CN111770062A - Information processing method, device and storage medium - Google Patents

Information processing method, device and storage medium Download PDF

Info

Publication number
CN111770062A
CN111770062A CN202010494952.9A CN202010494952A CN111770062A CN 111770062 A CN111770062 A CN 111770062A CN 202010494952 A CN202010494952 A CN 202010494952A CN 111770062 A CN111770062 A CN 111770062A
Authority
CN
China
Prior art keywords
service
application
mobile terminal
cloud
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010494952.9A
Other languages
Chinese (zh)
Other versions
CN111770062B (en
Inventor
李吉峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Pinecone Electronic Co Ltd
Original Assignee
Beijing Xiaomi Pinecone Electronic Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Pinecone Electronic Co Ltd filed Critical Beijing Xiaomi Pinecone Electronic Co Ltd
Priority to CN202010494952.9A priority Critical patent/CN111770062B/en
Publication of CN111770062A publication Critical patent/CN111770062A/en
Application granted granted Critical
Publication of CN111770062B publication Critical patent/CN111770062B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/541Interprogram communication via adapters, e.g. between incompatible applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The embodiment of the disclosure discloses an information processing method applied to a mobile terminal, comprising the following steps: receiving, by a first application on the mobile terminal, a service invocation request of a second application; selecting, by the first application, a target service matching the service invocation request from a plurality of local services installed in the mobile terminal and/or a plurality of cloud services provided by a cloud service platform; and requesting a calling result from the target service by the first application, and returning the calling result to the second application. The embodiment of the disclosure also discloses an information processing device, a terminal and a storage medium.

Description

Information processing method, device and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to an information processing method, an information processing apparatus, and a storage medium.
Background
At present, services of algorithm capability provided for various items applied in various fields are increasing, for example, the services may be image recognition, emotion analysis, voice recognition, and the like. However, as the types of services increase and the integration of Application development becomes more cumbersome, most terminals do not have Application programs (APPs) integrating the development capabilities of multiple services. Or, even if the relevant APP that will handle numerous services is accessed to the terminal's own platform, the cost required for the terminal to update and iterate the APP is undoubtedly increased.
Disclosure of Invention
The disclosure provides an information processing method, an information processing device, a terminal and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided an information processing method applied to a mobile terminal, including:
receiving, by a first application on the mobile terminal, a service invocation request of a second application;
selecting, by the first application, a target service matching the service invocation request from a plurality of local services installed in the mobile terminal and/or a plurality of cloud services provided by a cloud service platform;
and requesting a calling result from the target service by the first application, and returning the calling result to the second application.
In the foregoing solution, the selecting, by the first application, a target service matching the service invocation request from a plurality of local services installed in the mobile terminal and/or a plurality of cloud services provided by a cloud service platform includes:
extracting service information contained in the service calling request, wherein the service information comprises at least one of the following: service type, service vendor, service version and service parameters;
determining whether the target service matching the service information exists in the plurality of local services;
when the target service exists in the plurality of local services, determining whether data resources required for calling the target service are stored on the mobile terminal;
and when the data resource is not stored in the mobile terminal, downloading the data resource through a network and calling the target service.
In the foregoing solution, the selecting, by the first application, a target service matching the service invocation request from a plurality of local services installed in the mobile terminal and/or a plurality of cloud services provided by a cloud service platform, further includes:
when the target service does not exist in the plurality of local services, requesting configuration information of a plurality of cloud services from a cloud service platform of the first application;
receiving the configuration information of the plurality of cloud services returned by the cloud service platform;
selecting the target service from the plurality of cloud services based on the configuration information.
In the foregoing solution, the receiving, by the first application on the mobile terminal, the service invocation request of the second application includes:
receiving, by the first application on the mobile terminal, a service invocation request of the second application through a first communication interface; wherein the first communication interface is an interface common to a plurality of the second applications;
the receiving the configuration information of the plurality of cloud services returned by the cloud service platform includes:
the first application receives the configuration information of the plurality of cloud services returned by the cloud service platform through a second communication interface.
In the above scheme, the method further comprises:
packaging the calling result into a format corresponding to the first communication interface;
the returning the call result to the second application includes:
and returning the calling result packaged into the format corresponding to the first communication interface to the second application.
In the foregoing solution, the determining whether the target service matching the service information exists in the plurality of local services includes:
determining whether a first service specified by the service calling request is installed in the mobile terminal;
and if the first service serving as the target service is installed in the mobile terminal, determining that the target service matched with the service information exists in the plurality of local services.
In the foregoing solution, the determining whether the target service matching the service information exists in the plurality of local services further includes:
if the first service is not installed in the mobile terminal, determining whether a second service capable of responding to a calling requirement corresponding to the service calling request is installed in the mobile terminal;
and if the mobile terminal comprises the second service serving as the target service, determining that the target service matched with the service information exists in the plurality of local services.
In the above scheme, the method further comprises:
and realizing the interaction of the service calling request and/or the calling result between the first application and the second application based on the mode of an android interface definition language AIDL.
According to a second aspect of the embodiments of the present disclosure, there is provided an information processing apparatus including:
an obtaining module, configured to receive, by a first application on the mobile terminal, a service invocation request of a second application;
the processing module is used for selecting a target service matched with the service calling request from a plurality of local services installed in the mobile terminal and/or a plurality of cloud services provided by a cloud service platform by the first application;
and the return module is used for requesting a calling result from the target service by the first application and returning the calling result to the second application.
In the foregoing solution, the processing module includes:
an extracting unit, configured to extract service information included in the service invocation request, where the service information includes at least one of: service type, service vendor, service version and service parameters;
a determining unit configured to determine whether the target service matching the service information exists in the plurality of local services; when the target service exists in the plurality of local services, determining whether data resources required for calling the target service are stored on the mobile terminal;
and the calling unit is used for downloading the data resource through a network and calling the target service when the data resource is not stored on the mobile terminal.
In the foregoing solution, the processing module includes:
a sending unit, configured to request configuration information of a plurality of cloud services from a cloud service platform of the first application when the target service does not exist in the plurality of local services;
the receiving unit is used for receiving the configuration information of the plurality of cloud services returned by the cloud service platform;
a selecting unit, configured to select the target service from the plurality of cloud services based on the configuration information.
In the foregoing solution, the obtaining module is configured to receive, by the first application on the mobile terminal through a first communication interface, a service invocation request of the second application; wherein the first communication interface is an interface common to a plurality of the second applications;
the receiving unit is configured to receive, by the first application, the configuration information of the plurality of cloud services returned by the cloud service platform through a second communication interface.
In the foregoing solution, the processing module is further configured to encapsulate the call result into a format corresponding to the first communication interface;
the return module is configured to return the call result encapsulated in the format corresponding to the first communication interface to the second application.
In the foregoing solution, the determining unit is configured to determine whether a first service specified by the service invocation request is installed in the mobile terminal;
and if the first service serving as the target service is installed in the mobile terminal, determining that the target service matched with the service information exists in the plurality of local services.
In the foregoing solution, the determining unit is configured to determine whether a second service capable of responding to a call requirement corresponding to the service call request is installed in the mobile terminal if the first service is not installed in the mobile terminal;
and if the mobile terminal comprises the second service serving as the target service, determining that the target service matched with the service information exists in the plurality of local services.
In the foregoing solution, the processing module is further configured to implement interaction of the service invocation request and/or the invocation result between the first application and the second application based on an android interface definition language aid l.
According to a third aspect of the embodiments of the present disclosure, there is provided a mobile terminal including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: when the executable instructions are executed, the information processing method of any embodiment of the disclosure is realized.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium storing an executable program, wherein the executable program, when executed by a processor, implements the information processing method according to any one of the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the method comprises the steps that a first application on the mobile terminal receives a service calling request of a second application; selecting, by the first application, a target service matching the service invocation request from a plurality of local services installed in the mobile terminal and/or a plurality of cloud services provided by a cloud service platform; and requesting a calling result from the target service by the first application, and returning the calling result to the second application. Therefore, the target service required to be called by any one second application can be called only by one first application, and the corresponding calling result is obtained; thereby enabling to reduce high costs due to repeated docking of the target service by a plurality of second applications.
And if the general communication SDK interface of the target service is changed, the SDK interface does not need to be changed by each second application to be connected with the target service, and only the first application needs to change the SDK interface. Therefore, when any one second application sends a service calling request and needs to call the target service, the corresponding calling result can be obtained without changing the SDK interface of the second application, and the cost increased by changing the SDK interface of each second application can be reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a diagram illustrating a method of providing a service to a mobile terminal according to an example embodiment.
Fig. 2 is a diagram illustrating a method of providing services to a mobile terminal according to an example embodiment.
FIG. 3 is a flow chart illustrating an information processing method according to an example embodiment.
Fig. 4 is a diagram illustrating an information processing method according to an example embodiment.
FIG. 5 is a flow chart illustrating another method of information processing according to an example embodiment.
Fig. 6 is a flow chart illustrating yet another information processing method according to an example embodiment.
Fig. 7 is a block diagram illustrating an information processing apparatus according to an example embodiment.
Fig. 8 is a block diagram illustrating a mobile terminal according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
As the number of service types increases, the following two ways are generally adopted to provide the functions of the service to the mobile terminal:
first, as shown in fig. 1, a third-party Software Development Kit (SDK) SDK is accessed to the mobile terminal. Therefore, the service is packaged and encapsulated in the application program APP of the mobile terminal and is called by the APP for use. For example, the third party payment platform is a Ping + + aggregation payment system, a hand-trip QuickSDK, and the like.
However, in the first mode, if the third party aggregation software kit SDK encapsulates many services, various services are indirectly integrated in the APP of the mobile terminal. Even if some services are not used, they will still update the iterations, thus increasing the cost of updating the APP for the mobile terminal and the impact of the services on the APP.
In the second mode, as shown in fig. 2, cloud services are integrated by each APP of the mobile terminal. For example, when an image recognition service is used in a mobile terminal, the image recognition service is integrated in a cloud server. Thus, each client can realize the functions of the required service based on the cloud server.
However, in the second method, the workload of accessing the mobile terminal to the cloud server is cumbersome; and the quality of service cannot be guaranteed due to problems such as network transmission and the like. Moreover, the method also has the problem of large workload for replacing and optimizing the service.
Fig. 3 is a flowchart illustrating an information processing method, as shown in fig. 3, applied to a mobile terminal, according to an exemplary embodiment, the method including the following steps.
Step S11, receiving a service calling request of a second application by a first application on the mobile terminal;
step S12, selecting, by the first application, a target service matching the service invocation request from a plurality of local services installed in the mobile terminal and/or a plurality of cloud services provided by a cloud service platform;
step S13, the first application requests a call result from the target service, and returns the call result to the second application.
In the embodiment of the present disclosure, the mobile terminal may be an electronic device such as a mobile phone, a computer, a server, and a tablet computer. The cloud service platform can be a cloud service platform of a service provider where the mobile terminal is located, or a cloud service platform of a service provider where other mobile terminals are located. Here, the number of the cloud service platforms may be one or more.
For example, the cloud service platform may include, but is not limited to, at least one of: the system comprises a millet cloud service platform, a Baidu cloud service platform and a Tencent cloud service platform.
In the embodiment of the present disclosure, the second application may be an application including one application program APP, and the second application may be an application including at least one application program. In one embodiment, the step S11 includes: receiving, by a first application of the mobile terminal, a service invocation request of at least one of the second applications.
In an embodiment, the second application is an aggregated application.
In another embodiment, the second application is an AI aggregation application.
It can be understood that, in practical applications, the AI aggregation application is installed in the mobile terminal, and the AI aggregation application has no interface in the mobile terminal and is only externally embodied as a general communication SDK interface; the AI aggregation application is accessible to a plurality of second applications. Specifically, a plurality of second applications access the AI aggregation service through the SDK interface; and sending the service calling request to the AI aggregation application program through the SDK interface, and acquiring a calling result from the AI aggregation application program. Here, the SKD interface is the first communication interface in the following embodiments.
The AI aggregation application also interfaces with various different AI services; for example, a plurality of local services of the mobile terminal and/or a plurality of cloud services of a cloud service platform can be interfaced; and the AI aggregation application program carries out information interaction through SDK interfaces with different services. Here, the specific SDK interface of the AI aggregation application interacting with the services is the second communication interface in the subsequent embodiment.
For example, as shown in fig. 4, an AI aggregation application is installed in the mobile terminal; the AI aggregation application program corresponds to a plurality of second applications, wherein the plurality of second applications are APP1, APP2 and APP 3; the AI aggregation application interacts with the APP1, the APP2, and the APP3 through the first communication interface. The AI aggregation service also interfaces a plurality of services; the plurality of services are respectively a service 1 and a service 2 of the mobile terminal, a service 3 and a service 4 of a first cloud service platform and a service 5 of a second cloud service platform; the AI aggregation application interacts with second communication interfaces specific to the service 1, the service 2, the service 3, the service 4, and the service 5, respectively. The first cloud service platform is a cloud service platform of a service provider where the mobile terminal is located, and the second cloud service platform is a cloud service platform of a service provider where other mobile terminals are located.
Here, the application program APP may include, but is not limited to, at least one of: WeChat, beautiful picture, payment treasure, intelligent voice and millet sound boxes.
In the disclosed embodiment, the service includes various services in various fields. For example, the service may be a service applied in the fields of internet, communication, or finance. As another example, the service may be a service in the fields of artificial intelligence AI, block chaining, big data, or cloud computing. As another example, the service may be a blockchain, a neural network, or a learning-enhancement related service.
In one embodiment, the service is an artificial intelligence AI service. Here, the AI service is a service related to artificial intelligence. For example, the AI service may be: image recognition, emotion analysis, virtual reality or speech enhancement, etc. Thus, in the embodiment, a function can be provided for the artificial intelligence service.
In the embodiment of the present disclosure, the local service is a service existing in the mobile terminal; the cloud service is a service existing in the cloud service platform. Here, the target service is a service matching the service invocation request.
Here, the service invocation request includes: service information; the service information includes, but is not limited to, at least one of: service type, service vendor, service version, and service parameters.
Wherein the service parameters comprise input parameters required for the service to operate. For example, if the service is image recognition, the service parameter is image information to be recognized. For another example, if the service is voice enhancement, the service parameter is voice information that needs to be enhanced. If the service is emotion analysis, the service parameter is emotion information which needs emotion analysis.
Here, the statistical data may be time-consuming for each service; the test report may be: the test result between different vendors of the same type service, or the test result between different service versions of the same type service, etc.
Here, the call result includes a result obtained by the service operation. For example, if the service is image recognition, the call result is an image recognition result obtained by recognizing an input image. For another example, if the service is voice enhancement, the calling result is voice information obtained by enhancing the input voice information. If the service emotion analysis is performed, the calling result is an analysis result obtained by analyzing the input emotion information.
In the embodiment of the disclosure, a service call request of a second application may be received by a first application, and a target service matching the service call request is selected from a plurality of local services and/or a plurality of cloud services. Therefore, the target service which needs to be called by any one second application can be called by only one first application, and the corresponding calling result is obtained, so that the high cost caused by repeated butt joint of a plurality of second applications to the target service can be reduced.
And if the general communication SDK interface of the target service is changed, the SDK interface does not need to be changed by each second application to be connected with the target service, and only the first application needs to change the SDK interface. Therefore, when any one second application sends a service calling request and needs to call the target service, the corresponding calling result can be obtained without changing the SDK interface of the second application, and the cost increased by changing the SDK interface of each second application can be reduced.
In some embodiments, the step S12 includes:
extracting service information contained in the service calling request, wherein the service information comprises at least one of the following: service type, service vendor, service version and service parameters;
determining whether the target service matching the service information exists in the plurality of local services;
when the target service exists in the plurality of local services, determining whether data resources required for calling the target service are stored on the mobile terminal;
and when the data resource is not stored in the mobile terminal, downloading the data resource through a network and calling the target service.
In practical application, one implementation manner of determining whether the target service matching the service information exists in a plurality of local services is as follows: configuring a configuration table in the mobile terminal, wherein the configuration table comprises the corresponding relation between various service information and local services; querying whether the target service corresponding to the service information exists in the configuration table; if yes, determining that the target service matched with the service information exists in the local service; and if the service information does not exist, determining that the target service matched with the service information does not exist in the local service.
Of course, the mobile terminal may set a configuration table to record the corresponding relationship between the service information and the local service, and may also record the corresponding relationship between the service information and the service by setting two-dimensional data or other manners, which is not limited herein.
For example, please refer to fig. 4 again, if the first application receives the service invocation request, it searches whether there is the target service matching the service information from local services of the mobile terminal, such as service 1 and service 2, based on the service information; and if so, determining that the target service exists in the local service.
Here, the data resource may be an algorithm corresponding to the target service; wherein, the algorithm can be a single service function or a set of service functions. For example, if the target service is image recognition, the algorithm may be a neural network algorithm.
Illustratively, the algorithm may include, but is not limited to, at least one of: decision tree, logistic regression, Bayes, K-means algorithm, neural network and support vector machine.
In the embodiment of the present disclosure, whether a target service matching the service invocation request exists in the local service may be determined through the service information included in the service invocation request, and if it is determined that the target service exists, the target service may be preferentially acquired from the local service to invoke. Further, it is determined whether a data resource required for invoking the target service exists in the mobile terminal, and if not, the data resource may be downloaded from a network, such as a wireless network or a data traffic network, and the target service is invoked based on the data resource.
In addition, in the disclosed embodiment, the target service can be selected to be called in the mobile terminal, so that the quality and timeliness of the obtained calling result can be further ensured.
In some embodiments, the determining whether the target service matching the service information exists in the plurality of local services comprises:
determining whether a first service specified by the service calling request is installed in the mobile terminal;
and if the first service serving as the target service is installed in the mobile terminal, determining that the target service matched with the service information exists in the plurality of local services.
In an embodiment, the first service is a specified service.
In this disclosure, if a plurality of candidate services are determined according to the service invocation request, the first service designated by the mobile terminal may be selected from the plurality of candidate services as the target service.
For example, if it is determined that the alternative services providing image recognition include face recognition service, scene recognition, and clothing recognition, if it is determined that the image recognition face recognition service specified by the mobile terminal is determined, the first service specified by the mobile terminal is face recognition service; and if the face recognition service is installed in the mobile terminal, determining that the face recognition service is a target service.
If the alternative services for providing the face recognition include the face recognition of the company A, the face recognition of the company B and the face recognition of the company C, the first service designated by the mobile terminal is the face recognition of the company A; and if the face recognition service of company A is installed in the mobile terminal, determining the face recognition of company A as the target service.
In an embodiment, the method further comprises:
and determining the first service specified by the service calling request based on the identification information carried in the service calling request.
Here, the identification information is used to uniquely identify the service; the identification information may be a service type, a service manufacturer, a service version, and the like; the identification information may also be a character string including at least one of letters, numbers, and special characters. In an embodiment, the identification information is information in the service information.
In practical application, the service calling request carries service information, and the service information includes identification information for uniquely identifying the service. After the first application acquires the service calling request, acquiring identification information from the service calling request; and determining the first service specified by the service calling request based on the identification information.
In still other embodiments, the determining whether the target service matching the service information exists in the plurality of local services further comprises:
if the first service is not installed in the mobile terminal, determining whether a second service capable of responding to a calling requirement corresponding to the service calling request is installed in the mobile terminal;
and if the mobile terminal comprises the second service serving as the target service, determining that the target service matched with the service information exists in the plurality of local services.
Here, the second service is the same type of service as the first service.
In the embodiment of the disclosure, if the mobile terminal does not have the first service specified by the mobile terminal, determining whether the mobile terminal has a second service similar to the first service, where the second service can also respond to the service invocation request; and if so, taking the second service as the target service.
For example, if it is determined that the alternative services providing face recognition include face recognition of company a, face recognition of company B, and face recognition of company C, if the first service specified by the mobile terminal is face recognition of company a and the face recognition service of company a is not installed in the mobile terminal; and if the face recognition service of the company B is determined to be installed in the mobile terminal, determining the face recognition service of the company B as the target service.
Thus, in the embodiment of the present disclosure, if a plurality of alternative services are queried based on a service invocation request, the first service may be selected as the target service to invoke based on the first service specified by the mobile terminal, and if the specified first service is installed in the mobile terminal; if the specified first service is not installed in the mobile terminal, a second service similar to the first service is installed in the mobile terminal and can be selected as the target service to be called. Therefore, the probability of selecting the appropriate target service based on the service calling request can be greatly improved.
Of course, in other embodiments, if the specified first service is not installed in the mobile terminal, the call may also be performed based on a predetermined rule set in the mobile terminal, for example, a third service that is used last and can respond to the service call request is selected as the target service to be called, and the predetermined rule is not limited herein.
In some embodiments, the step S12 includes:
when the target service does not exist in the plurality of local services, requesting configuration information of a plurality of cloud services from a cloud service platform of the first application;
receiving the configuration information of the plurality of cloud services returned by the cloud service platform;
selecting the target service from the plurality of cloud services based on the configuration information.
In an embodiment, the configuration information is a configuration table. In another embodiment, the configuration information is a two-dimensional array.
Here, the configuration information includes at least service information of the plurality of cloud services.
Here, the cloud service platform includes: the first cloud service platform and/or the second cloud service platform. The first cloud service platform is connected with the mobile terminal; the second cloud service platform is a cloud service platform connected with other mobile terminals except the mobile terminal.
Correspondingly, the configuration information of the first cloud service platform is first configuration information; the configuration information of the second cloud service platform is second configuration information.
Illustratively, one implementation manner of the step S12 is: when the target service does not exist in the plurality of local services, requesting first configuration information of a plurality of cloud services from the first cloud service platform; receiving the first configuration information returned by the first cloud service platform; and determining whether the target service exists based on the first configuration information; and if so, selecting the target service. If the second configuration information does not exist, second configuration information of a plurality of cloud services is requested from the second cloud service platform; receiving the second configuration information returned by the second cloud service platform; and selecting the target service based on the second configuration information.
For example, referring to fig. 4 again, if the first application receives the service invocation request, the target service matching the service information is searched from local services of the mobile terminal, such as service 1 and service 2, based on the service information. If the service 1 and the service 2 are not the target service, sending first configuration information requesting a plurality of cloud services to the first cloud service platform, and receiving first configuration information of the service 3 and the service 4 returned from the first cloud service platform. If one of the service 3 and the service 4 is determined to be the target service, second configuration information requesting a plurality of cloud services does not need to be sent to the second cloud service. And if the service 3 and the service 4 are determined not to be the target service, sending second configuration information requesting a plurality of cloud services to the second cloud service platform.
Of course, in other embodiments, the services that can be included in the second cloud service platform may be multiple types and/or multiple, and are not limited to the service 5; similarly, the services of the first cloud platform and the mobile terminal may include multiple types and/or multiple types, which are only exemplary.
In an embodiment, the configuration information may further include: statistics and/or test reports. Therefore, the target service corresponding to the service calling request can be obtained from multiple dimensions; the target service can be determined more quickly.
In the embodiment of the disclosure, if it is determined that the target service does not exist in the mobile terminal, the target service may be acquired from a cloud service platform. Furthermore, the target service may be obtained from a first cloud service platform of a service provider where the mobile terminal is located, and if it is determined that the first cloud service platform does not have the target service; and then, the target service is obtained from a second cloud service platform of a service provider where other mobile terminals are located. Therefore, the risk that the target service cannot be called to obtain the calling result if the target service does not exist in the mobile terminal can be reduced, and the probability that the second application obtains the calling result can be greatly improved.
And if the target service is acquired from the cloud service platform, the target service of the cloud service platform can be called. The operation of the calling result obtained by running the target service can be executed in a cloud service platform without being executed in the mobile terminal, so that the burden of the mobile terminal can be reduced.
In addition, in the embodiment of the disclosure, a target service can be acquired from the cloud service platform, so that the target service can be more flexibly called.
In some embodiments, the step S11 includes:
receiving, by the first application on the mobile terminal, a service invocation request of the second application through a first communication interface; wherein the first communication interface is an interface common to a plurality of the second applications;
the receiving the configuration information of the plurality of cloud services returned by the cloud service platform includes:
the first application receives the configuration information of the plurality of cloud services returned by the cloud service platform through a second communication interface.
In an embodiment of the disclosure, the first application may interact with the second application based on the first communication interface. For example, as shown in fig. 4, application APP1, application APP2, and application APP3 share the first communication interface to interact with the first application. And the first application also communicates with each service based on the second communication interface corresponding to each service. For example, as shown in fig. 4, the second communication interface based on the service 1 interacts with the service 1, or the second communication interface based on the service 3 interacts with the service 3 of the first cloud service platform, or the second communication interface based on the service 5 interacts with the service 5 of the second cloud service platform, and so on.
In the embodiment of the disclosure, the plurality of second applications do not need to be all provided with communication interfaces to be connected with each target service so as to be called; the plurality of second applications can interact with the first application through a common first communication interface, and the corresponding target service is called by obtaining the second application based on the first application, so that the cost of repeatedly setting the plurality of communication interfaces by the plurality of second applications can be reduced.
In some embodiments, the method further comprises:
packaging the calling result into a format corresponding to the first communication interface;
the returning the call result to the second application includes:
and returning the calling result packaged into the format corresponding to the first communication interface to the second application.
In the embodiment of the disclosure, a format corresponding to the call result may be determined based on a format corresponding to the first communication interface; thus, the call interface can be guaranteed to return to the second application.
In other embodiments, the method further comprises:
and realizing the interaction of the service calling request and/or the calling result between the first application and the second application based on the mode of an android interface definition language AIDL.
It will be appreciated that memory cannot be shared between different processes and therefore some mechanism needs to be provided for communicating data between different processes. And the communication among the processes can be realized by adopting an AIDL (aid language) mode of an android interface. In the embodiment of the present disclosure, the different services are generally applied in different applications, and thus, the communication between the services is cross-process communication.
In an embodiment, one implementation manner of implementing the interaction of the service invocation request in different services based on the aid id manner is as follows: and converting the service calling request into a first AIDL file, and realizing the interaction of the first AIDL file in different services.
In another embodiment, the implementing, in the aid l-based manner, the interaction of the call result with different services includes: and converting the calling result into a second AIDL file, and realizing the interaction of the second AIDL file in different services.
Thus, in the embodiment of the present disclosure, the service invocation request and/or the invocation result may be interacted between different services based on the aid dl; cross-process communication can be achieved.
Moreover, because the AIDL mode is used, the service calling request and/or the calling result are communicated between two different services, and a certain collision avoidance mechanism is used; therefore, if the service calling request and/or the calling result with larger transmission flow for transmitting the image information are transmitted, the occurrence of transmission interruption can be greatly reduced, and the transmission quality is ensured.
In some embodiments, the mobile terminal interacts the configuration information and/or the calling result with the cloud service platform through a simple object protocol.
Here, the Simple Object Access Protocol (SOAP) is a specification of an interactive data Protocol.
It can be understood that, in the embodiment of the present disclosure, the information that the mobile terminal and the cloud service platform need to interact is configuration information and/or a calling result; the configuration information or the calling result is not a data resource which needs to run the service, and is only some identification information or calling result and the like, so that the configuration information or calling result is light-weight data; thus, the configuration information and/or the invocation results may be interacted with using the simple object protocol.
Of course, in other embodiments, the interaction of the configuration information and/or the call result may be implemented based on other protocols; for example, the transmission control protocol TCP, the internet protocol IP, or the hypertext transfer protocol HTTP may be utilized, without limitation.
Example 1
As shown in fig. 5, the embodiment of the present disclosure further discloses an information processing method; the method is applied to the mobile terminal and comprises the following steps:
step S201: checking an AI service;
optionally, the mobile terminal checks the AI service.
Step S202: determining whether to initialize the AI service; if not, executing step S203; if yes, go to step S204;
optionally, the mobile terminal determines whether to initialize the AI service; if not, executing step S203; if yes, go to step S204.
Step S203: outputting error prompt information;
optionally, the mobile terminal outputs an error prompt message.
Step S204: acquiring configuration information of the AI service;
optionally, the mobile terminal acquires configuration information of the AI service; wherein, the configuration information includes a device identifier.
Step S205: determining whether the AI service is a local service; if not, go to step S206; if yes, go to step S207;
here, the local service is a service that the mobile terminal itself can operate.
Optionally, the mobile terminal determines whether the AI service is a local service based on the device identifier; if not, go to step S206; if yes, go to step S207.
Step S206: outputting error prompt information;
optionally, the mobile terminal outputs an error prompt message.
Step S207: downloading data resources;
optionally, the mobile terminal determines that the AI service is a local service, and downloads a data resource required for invoking the AI service.
In an optional embodiment, the mobile terminal determines that the data resource is not available locally, and downloads the data resource through a network.
Step S208: determining whether the downloading of the data resource is completed; if yes, go to step S209; if not, go to step S213;
optionally, the mobile terminal determines whether the downloading of the data resource is completed; if yes, go to step S209; if not, go to step S213;
step S209: initializing the AI service;
optionally, the mobile terminal initializes the AI service based on the data resource;
step S210: determining whether initializing the AI service is successful; if yes, go to step S211; if not, go to step S212;
optionally, the mobile terminal determines whether the AI service is successfully initialized; if yes, go to step S211; if not, go to step S212.
Step S211: outputting success prompt information;
optionally, the mobile terminal outputs success prompt information.
Step S212: outputting error prompt information;
optionally, the mobile terminal outputs an error prompt message.
Step S213: acquiring a network type;
optionally, the mobile terminal obtains a current network type.
Here, the network type includes, but is not limited to, at least one of: a no network type, a data traffic network type, and a wireless network type.
Here, the no network type is a network of a predetermined threshold value of a network transmission speed. For example, the network transmission speed is less than 3 bps. The quantity flow network type is a network formed by utilizing a base station; the wireless network type is a network formed by utilizing a wireless router.
Step S214: determining that the network type is a no-network type;
optionally, the mobile terminal determines that the current network type is a no-network type.
Step S215: outputting error prompt information;
optionally, the mobile terminal outputs an error prompt message.
Step S216: determining that the network type is a data traffic network type;
optionally, the mobile terminal determines that the current network type is a data traffic network type.
Step S217: determining whether downloading is allowed using the data traffic network type; if not, go to step S218; if yes, go to step S220;
optionally, the mobile terminal determines whether to allow downloading the data resource by using the data traffic network type; if not, go to step S218; if yes, go to step S220;
step S218: outputting error prompt information;
optionally, the mobile terminal outputs an error prompt message.
Step S219: determining that the network type is a wireless network type;
optionally, the mobile terminal determines that the current network type is a wireless network type.
Step S220: downloading the data resource;
optionally, if the mobile terminal determines that the current network type is a wireless network type, downloading the data resource based on the wireless network type; and if the mobile terminal determines that the current network type is the data traffic network type, downloading the data resource based on the data traffic network type.
Step S221: determining whether the download is interrupted; if yes, go to step S222; if not, go to step S223;
optionally, the mobile terminal determines whether downloading the data resource is interrupted; if yes, go to step S222; if not, go to step S223.
Step S222: outputting error prompt information;
optionally, the mobile terminal outputs an error prompt message.
Step S223: determining whether the download is complete; if yes, go to step S224; if not, go to step S225;
optionally, the mobile terminal determines that the data resource is downloaded; if yes, go to step S224; if not, go to step S225.
Step S224: outputting success prompt information;
optionally, the mobile terminal outputs success prompt information;
step S225: and outputting error prompt information.
Optionally, the mobile terminal outputs an error prompt message.
In the embodiment of the present disclosure, whether an AI service is a local service may be determined based on a device identifier in configuration information of the AI service; if it is determined that the AI service is a local service, the service may be directly executed in the mobile terminal. And if it is determined that the mobile terminal does not locally store the data resource required for invoking the AI service, the data resource may be downloaded from a network resource, and specifically, the data resource may be downloaded from a wireless network or a data traffic network, so as to implement invoking the AI service.
Example two
As shown in fig. 6, the embodiment of the present disclosure further discloses an information processing method; the method is applied to the client, and comprises the following steps:
step S301: sending a service invocation request through a first communication interface;
optionally, the second application of the client sends a configuration service invocation request to the AI aggregation management module through the first communication interface, where the service invocation request includes: service information and device identification.
Here, the AI aggregation management module is configured to aggregate a plurality of applications.
Here, the client may be a mobile terminal in the above embodiment.
Step S302: acquiring configuration information of local service and/or cloud service according to the service calling request;
optionally, the AI aggregation management module obtains configuration information of a local service and/or a cloud service of the client based on the service invocation request.
In an optional embodiment, the AI aggregation management module obtains the configuration information from an AI aggregation configuration (config) table configured by the client. Here, the AI aggregation configuration table includes a plurality of AI services.
Step S303: returning error prompt information;
optionally, if the configuration information is not queried from the AI aggregation configuration table, returning an error prompt message.
Step S304: determining a corresponding target AI service according to the configuration information;
optionally, the AI aggregation management module determines an AI service corresponding to the target based on the configuration information.
Step S305: initializing the target AI service, and selecting a cloud service platform or a client to run the target AI service;
optionally, the AI aggregation management module initializes the target AI service; and determining that the target AI service is operated in a cloud service platform or a client.
Step S306: calling the target AI service to run;
optionally, if it is determined that the target AI service is the client local service, running the target AI service in the client; or if the target AI service is determined to be the cloud service of the cloud service platform, the client requests to operate the target AI service on the cloud service platform, and receives a call result of operating the target AI service returned by the cloud service platform.
Step S307: and (5) carrying out resource processing.
Optionally, if it is determined that the target AI service is running in the client, calling a data resource required by the target AI service from an encapsulation library to run the target AI service; or if the target AI service is determined to run in the cloud service platform, calling the data resource required by the target AI service from the encapsulation library of the cloud service platform to run the target AI service.
In an optional embodiment, if it is determined that the data resource required for invoking the target AI service is not stored in the client or the cloud service platform, the data resource is downloaded from the internet.
Note that, since the AI aggregation configuration table and the package library are virtual modules, in fig. 6, the steps S303 and S307 are indicated by dotted lines.
In the embodiment of the disclosure, a plurality of AI services may be aggregated in one AI aggregation application program, and managed based on an AI aggregation management module; therefore, when one or more second applications need to run the AI service, the target AI service can be called only by sending corresponding configuration information to the AI aggregation management module. Therefore, on one hand, if each second application calls the corresponding AI service, each application can be called through one unified first communication interface, the cost of repeatedly accessing the AI aggregation management module is prevented, and the cost is reduced; on the other hand, when each AI service is changed, only the interface of one AI aggregation application program needs to be changed without sending a change to the SDK interface corresponding to each second application, thereby further simplifying the work of the second application for calling the AI service, reducing the workload for updating the AI service, and the like.
Fig. 7 is a block diagram illustrating an information processing apparatus according to an example embodiment. Referring to fig. 2, the apparatus includes an acquisition module 41, a processing module 42, and a return module 43; wherein the content of the first and second substances,
the obtaining module 41 is configured to receive, by a first application on the mobile terminal, a service invocation request of a second application;
the processing module 42 is configured to select, by the first application, a target service matching the service invocation request from a plurality of local services installed in the mobile terminal and/or a plurality of cloud services provided by a cloud service platform;
the returning module 43 is configured to request a call result from the first application to the target service, and return the call result to the second application.
In some embodiments, the processing module 42 includes:
the extracting unit 421 is configured to extract service information included in the service invocation request, where the service information includes at least one of: service type, service vendor, service version and service parameters;
a determining unit 422, configured to determine whether the target service matching the service information exists in the plurality of local services; when the target service exists in the plurality of local services, determining whether data resources required for calling the target service are stored on the mobile terminal;
a calling unit 423, configured to download the data resource through the network and call the target service when the data resource is not stored in the mobile terminal.
In some embodiments, the processing module 42 includes:
a sending unit 424, configured to request configuration information of a plurality of cloud services from a cloud service platform of the first application when the target service does not exist in the plurality of local services;
a receiving unit 425, configured to receive the configuration information of the plurality of cloud services returned by the cloud service platform;
a selecting unit 426, configured to select the target service from the plurality of cloud services based on the configuration information.
In some embodiments, the obtaining module 41 is configured to receive, by the first application on the mobile terminal, a service invocation request of the second application through a first communication interface; wherein the first communication interface is an interface common to a plurality of the second applications;
the receiving unit 425 is configured to receive, by the first application, the configuration information of the plurality of cloud services returned by the cloud service platform through a second communication interface.
In some embodiments, the processing module 42 is further configured to encapsulate the calling result into a format corresponding to the first communication interface;
the returning module 43 is configured to return the call result encapsulated into the format corresponding to the first communication interface to the second application.
In some embodiments, the determining unit 422 is configured to determine whether a first service specified by the service invocation request is installed in the mobile terminal;
and if the first service serving as the target service is installed in the mobile terminal, determining that the target service matched with the service information exists in the plurality of local services.
In some embodiments, the determining unit 422 is configured to determine whether a second service capable of responding to a call requirement corresponding to the service call request is installed in the mobile terminal if the first service is not installed in the mobile terminal;
and if the mobile terminal comprises the second service serving as the target service, determining that the target service matched with the service information exists in the plurality of local services.
In some embodiments, the processing module 42 is further configured to implement interaction of the service call request and/or the call result between the first application and the second application based on an android interface definition language aid l.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An embodiment of the present disclosure further provides a mobile terminal, which includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: when the executable instructions are executed, the information processing method according to any embodiment of the disclosure is realized.
The memory may include various types of storage media, which are non-transitory computer storage media capable of continuing to remember the information stored thereon after a communication device has been powered down.
The processor may be connected to the memory via a bus or the like for reading the executable program stored on the memory, for example, for implementing at least one of the methods shown in fig. 3, 5 to 6.
Embodiments of the present disclosure also provide a computer-readable storage medium storing an executable program, where the executable program, when executed by a processor, implements the information processing method according to any embodiment of the present disclosure. For example, at least one of the methods shown in fig. 3, 5-6 is implemented.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 8 is a block diagram illustrating a terminal 800 according to an example embodiment. For example, the terminal 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 8, terminal 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the terminal 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on terminal 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of terminal 800. Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal 800.
The multimedia component 808 includes a screen providing an output interface between the terminal 800 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the terminal 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for terminal 800. For example, sensor assembly 814 can detect the open/closed state of device 800, the relative positioning of components, such as a display and keypad of terminal 800, sensor assembly 814 can also detect a change in position of terminal 800 or a component of terminal 800, the presence or absence of user contact with terminal 800, orientation or acceleration/deceleration of terminal 800, and a change in temperature of terminal 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communication component 816 is configured to facilitate communications between terminal 800 and other devices in a wired or wireless manner. The terminal 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the terminal 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (18)

1. An information processing method applied to a mobile terminal includes:
receiving, by a first application on the mobile terminal, a service invocation request of a second application;
selecting, by the first application, a target service matching the service invocation request from a plurality of local services installed in the mobile terminal and/or a plurality of cloud services provided by a cloud service platform;
and requesting a calling result from the target service by the first application, and returning the calling result to the second application.
2. The method of claim 1, wherein selecting, by the first application, a target service matching the service invocation request from a plurality of local services installed in the mobile terminal and/or a plurality of cloud services provided by a cloud service platform comprises:
extracting service information contained in the service calling request, wherein the service information comprises at least one of the following: service type, service vendor, service version and service parameters;
determining whether the target service matching the service information exists in the plurality of local services;
when the target service exists in the plurality of local services, determining whether data resources required for calling the target service are stored on the mobile terminal;
and when the data resource is not stored in the mobile terminal, downloading the data resource through a network and calling the target service.
3. The method of claim 2, wherein the selecting, by the first application, the target service matching the service invocation request from a plurality of local services installed in the mobile terminal and/or a plurality of cloud services provided by a cloud service platform, further comprises:
when the target service does not exist in the plurality of local services, requesting configuration information of a plurality of cloud services from a cloud service platform of the first application;
receiving the configuration information of the plurality of cloud services returned by the cloud service platform;
selecting the target service from the plurality of cloud services based on the configuration information.
4. The method of claim 3, wherein receiving, by a first application on the mobile terminal, a service invocation request for a second application comprises:
receiving, by the first application on the mobile terminal, a service invocation request of the second application through a first communication interface; wherein the first communication interface is an interface common to a plurality of the second applications;
the receiving the configuration information of the plurality of cloud services returned by the cloud service platform includes:
the first application receives the configuration information of the plurality of cloud services returned by the cloud service platform through a second communication interface.
5. The method of claim 4, further comprising:
packaging the calling result into a format corresponding to the first communication interface;
the returning the call result to the second application includes:
and returning the calling result packaged into the format corresponding to the first communication interface to the second application.
6. The method of claim 2, wherein the determining whether the target service matching the service information exists in the plurality of local services comprises:
determining whether a first service specified by the service calling request is installed in the mobile terminal;
and if the first service serving as the target service is installed in the mobile terminal, determining that the target service matched with the service information exists in the plurality of local services.
7. The method of claim 6, wherein the determining whether the target service matching the service information exists in the plurality of local services further comprises:
if the first service is not installed in the mobile terminal, determining whether a second service capable of responding to a calling requirement corresponding to the service calling request is installed in the mobile terminal;
and if the mobile terminal comprises the second service serving as the target service, determining that the target service matched with the service information exists in the plurality of local services.
8. The method of claim 1, further comprising:
and realizing the interaction of the service calling request and/or the calling result between the first application and the second application based on the mode of an android interface definition language AIDL.
9. An information processing apparatus characterized by comprising:
an obtaining module, configured to receive, by a first application on the mobile terminal, a service invocation request of a second application;
the processing module is used for selecting a target service matched with the service calling request from a plurality of local services installed in the mobile terminal and/or a plurality of cloud services provided by a cloud service platform by the first application;
and the return module is used for requesting a calling result from the target service by the first application and returning the calling result to the second application.
10. The apparatus of claim 9, wherein the processing module comprises:
an extracting unit, configured to extract service information included in the service invocation request, where the service information includes at least one of: service type, service vendor, service version and service parameters;
a determining unit configured to determine whether the target service matching the service information exists in the plurality of local services; when the target service exists in the plurality of local services, determining whether data resources required for calling the target service are stored on the mobile terminal;
and the calling unit is used for downloading the data resource through a network and calling the target service when the data resource is not stored on the mobile terminal.
11. The apparatus of claim 10, wherein the processing module comprises:
a sending unit, configured to request configuration information of a plurality of cloud services from a cloud service platform of the first application when the target service does not exist in the plurality of local services;
the receiving unit is used for receiving the configuration information of the plurality of cloud services returned by the cloud service platform;
a selecting unit, configured to select the target service from the plurality of cloud services based on the configuration information.
12. The apparatus according to claim 11, wherein the obtaining module is configured to receive, by the first application on the mobile terminal, a service invocation request of the second application through a first communication interface; wherein the first communication interface is an interface common to a plurality of the second applications;
the receiving unit is configured to receive, by the first application, the configuration information of the plurality of cloud services returned by the cloud service platform through a second communication interface.
13. The apparatus according to claim 12, wherein the processing module is further configured to encapsulate the invocation result into a format corresponding to the first communication interface;
the return module is configured to return the call result encapsulated in the format corresponding to the first communication interface to the second application.
14. The apparatus according to claim 10, wherein the determining unit is configured to determine whether a first service specified by the service invocation request is installed in the mobile terminal;
and if the first service serving as the target service is installed in the mobile terminal, determining that the target service matched with the service information exists in the plurality of local services.
15. The apparatus according to claim 14, wherein the determining unit is configured to determine whether a second service capable of responding to a call requirement corresponding to the service call request is installed in the mobile terminal if the first service is not installed in the mobile terminal;
and if the mobile terminal comprises the second service serving as the target service, determining that the target service matched with the service information exists in the plurality of local services.
16. The apparatus according to claim 10, wherein the processing module is further configured to implement interaction of the service invocation request and/or the invocation result between the first application and the second application based on an android interface definition language aid l.
17. A mobile terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: for implementing the information processing method of any one of claims 1-8 when executing the executable instructions.
18. A computer-readable storage medium, characterized in that the readable storage medium stores an executable program, wherein the executable program, when executed by a processor, implements the information processing method of any one of claims 1 to 8.
CN202010494952.9A 2020-06-03 2020-06-03 Information processing method, device and storage medium Active CN111770062B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010494952.9A CN111770062B (en) 2020-06-03 2020-06-03 Information processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010494952.9A CN111770062B (en) 2020-06-03 2020-06-03 Information processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN111770062A true CN111770062A (en) 2020-10-13
CN111770062B CN111770062B (en) 2022-08-05

Family

ID=72720042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010494952.9A Active CN111770062B (en) 2020-06-03 2020-06-03 Information processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN111770062B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824795A (en) * 2021-10-21 2021-12-21 上海波顿诺华智能科技有限公司 Communication method, device and system of vehicle end and cloud end
CN115277687A (en) * 2021-04-30 2022-11-01 北京小米移动软件有限公司 Resource data acquisition method, resource data acquisition device, and storage medium
EP4266756A4 (en) * 2020-12-17 2024-02-21 Guangdong Oppo Mobile Telecommunications Corp Ltd Network resource selection method, and terminal device and network device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656955A (en) * 2008-08-20 2010-02-24 飞力凯网路股份有限公司 Information processing apparatus, information processing method, information processing program and information processing system
CN103207733A (en) * 2013-03-27 2013-07-17 四川长虹电器股份有限公司 Setting method for aggregation application procedures based on operating system
CN103493462A (en) * 2012-12-31 2014-01-01 华为技术有限公司 System, method and device for providing application service
CN105915575A (en) * 2015-12-15 2016-08-31 乐视网信息技术(北京)股份有限公司 Service calling method and equipment
CN109389449A (en) * 2017-08-08 2019-02-26 腾讯科技(深圳)有限公司 A kind of information processing method, server and storage medium
CN110166564A (en) * 2019-05-28 2019-08-23 北京小米移动软件有限公司 Information communicating method, terminal and storage medium
US20200167215A1 (en) * 2018-11-28 2020-05-28 Centurylink Intellectual Property Llc Method and System for Implementing an Application Programming Interface Automation Platform

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656955A (en) * 2008-08-20 2010-02-24 飞力凯网路股份有限公司 Information processing apparatus, information processing method, information processing program and information processing system
CN103493462A (en) * 2012-12-31 2014-01-01 华为技术有限公司 System, method and device for providing application service
CN103207733A (en) * 2013-03-27 2013-07-17 四川长虹电器股份有限公司 Setting method for aggregation application procedures based on operating system
CN105915575A (en) * 2015-12-15 2016-08-31 乐视网信息技术(北京)股份有限公司 Service calling method and equipment
CN109389449A (en) * 2017-08-08 2019-02-26 腾讯科技(深圳)有限公司 A kind of information processing method, server and storage medium
US20200167215A1 (en) * 2018-11-28 2020-05-28 Centurylink Intellectual Property Llc Method and System for Implementing an Application Programming Interface Automation Platform
CN110166564A (en) * 2019-05-28 2019-08-23 北京小米移动软件有限公司 Information communicating method, terminal and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4266756A4 (en) * 2020-12-17 2024-02-21 Guangdong Oppo Mobile Telecommunications Corp Ltd Network resource selection method, and terminal device and network device
CN115277687A (en) * 2021-04-30 2022-11-01 北京小米移动软件有限公司 Resource data acquisition method, resource data acquisition device, and storage medium
CN115277687B (en) * 2021-04-30 2024-02-23 北京小米移动软件有限公司 Resource data acquisition method, resource data acquisition device and storage medium
CN113824795A (en) * 2021-10-21 2021-12-21 上海波顿诺华智能科技有限公司 Communication method, device and system of vehicle end and cloud end

Also Published As

Publication number Publication date
CN111770062B (en) 2022-08-05

Similar Documents

Publication Publication Date Title
CN111770062B (en) Information processing method, device and storage medium
CN110990075B (en) Method, device, equipment and storage medium for starting fast application
CN109710259B (en) Data processing method, device and storage medium
CN110851108A (en) Electronic equipment operation method and device, electronic equipment and storage medium
CN115185717B (en) Interface calling method and device, electronic equipment and storage medium
CN112420217A (en) Message pushing method, device, equipment and storage medium
CN112243016B (en) Middleware platform, terminal equipment, 5G artificial intelligence cloud processing system and processing method
CN111078325B (en) Application program running method and device, electronic equipment and storage medium
CN113110931A (en) Kernel operation optimization method, device and system
CN109558553B (en) Method and device for determining style
CN113312103A (en) Software definition method and device for intelligent camera, electronic equipment and storage medium
CN111314419B (en) Network request method and device
CN110865864B (en) Interface display method, device and equipment for quick application and storage medium
CN112328330A (en) iOS component calling method, device, middleware, electronic equipment and medium
CN111090463B (en) Resource identification method and device and computer storage medium
CN111046265B (en) Card data display method, device, equipment and storage medium
CN109976872B (en) Data processing method and device, electronic equipment and storage medium
CN115329181A (en) Information query method, query server and client
CN111221613B (en) Program calling method and device and storage medium
CN111104183B (en) Application program running method and device, electronic equipment and storage medium
CN110868640A (en) Resource transfer method, device, equipment and storage medium
CN109032583B (en) Data interaction method and device
CN114745495B (en) Image generation method, device and storage medium
CN112069437A (en) Webpage request processing method and device, electronic equipment and storage medium
CN110837817A (en) Target object identification method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant