CN114764352A - Business service providing method, intelligent device and storage medium - Google Patents

Business service providing method, intelligent device and storage medium Download PDF

Info

Publication number
CN114764352A
CN114764352A CN202110053264.3A CN202110053264A CN114764352A CN 114764352 A CN114764352 A CN 114764352A CN 202110053264 A CN202110053264 A CN 202110053264A CN 114764352 A CN114764352 A CN 114764352A
Authority
CN
China
Prior art keywords
service
code
calling
business
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.)
Pending
Application number
CN202110053264.3A
Other languages
Chinese (zh)
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 Orion Star Technology Co Ltd
Original Assignee
Beijing Orion Star Technology 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 Orion Star Technology Co Ltd filed Critical Beijing Orion Star Technology Co Ltd
Priority to CN202110053264.3A priority Critical patent/CN114764352A/en
Publication of CN114764352A publication Critical patent/CN114764352A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44536Selecting among different versions

Abstract

The application discloses a business service providing method, an intelligent device and a storage medium, wherein the method comprises the following steps: the method comprises the steps of generating service resources of each service in advance, uploading the service resources to a server, subsequently downloading the service resources of a target service from the server when the intelligent equipment is required to provide the target service, wherein the service resources comprise service codes required by the target service and calling codes of the service codes, loading the service codes required by the target service when a preset service resource loading condition is met, executing the calling codes to obtain calling description information, and calling the loaded service codes according to the calling description information to provide the target service. Therefore, the service resources of each service are independently developed, the service services provided by the intelligent equipment can be changed by downloading the service resources, and the free combination of each service user is facilitated, so that the development difficulty of the intelligent equipment can be reduced, and the landing service user of the intelligent equipment can be accelerated.

Description

Business service providing method, intelligent device and storage medium
Technical Field
The present application relates to the field of artificial intelligence technologies, and in particular, to a method for providing a service, an intelligent device, and a storage medium.
Background
With the rapid development of artificial intelligence technology, more and more intelligent devices such as robots, intelligent sound boxes and the like appear, and because the intelligent devices have wide application prospects, research and development projects related to the intelligent devices are more and more.
In the related art, all business services which need to be provided by intelligent equipment are developed in a research and development project, and finally a service resource such as an OPK file package is formed. However, since a plurality of business services are included in a research and development project, which are relatively large, the amount of code required to form an OPK file package is large, and the development difficulty of the research and development project is relatively high. Moreover, in the process of forming the OPK file package, developers also need to write the calling description information of each business service in advance, which increases the debugging difficulty of the research and development project. These are not conducive to quickly landing a smart device to service a user.
Disclosure of Invention
The embodiment of the application provides a business service providing method, an intelligent device and a storage medium, which are used for solving the problems that in the prior art, the development of the intelligent device is complex and the intelligent device is not beneficial to rapidly landing a service user.
In a first aspect, an embodiment of the present application provides a method for providing a service, where a service resource of each service is generated in advance, and the service resource is uploaded to a server, where the method includes:
the method comprises the steps that an intelligent device obtains a business service adding instruction, wherein the business service adding instruction comprises service resource downloading address information of a target business service;
downloading service resources from the server according to the service resource downloading address information, wherein the downloaded service resources comprise service codes required by providing the target business service and calling codes of the service codes;
when a preset service resource loading condition is met, loading a service code required by providing the target service, and executing the calling code to obtain calling description information;
and calling the loaded service code by using the calling description information so as to provide the target business service.
In a possible implementation manner, the invoking description information includes invoking opportunity description information and invoking mode description information, and the loaded service code is invoked by using the invoking description information to provide the target service, including:
monitoring the service state of the intelligent equipment and the obtained service instruction;
and if the service state of the intelligent equipment or the obtained service instruction is determined to be matched with the calling opportunity description information, calling the loaded service code according to the calling mode description information so as to provide the target service.
In a possible implementation manner, the server stores first version information of a common code library corresponding to the target business service and second version information of a common code library local to the intelligent device, and the downloaded service resource is allowed to be downloaded by the intelligent device after the server determines that the common code library corresponding to the target business service is compatible with the version of the common code library local to the intelligent device according to the first version information and the second version information.
In one possible embodiment, the service codes required to provide the target business service comprise a common service code and a business service code;
loading service codes required for providing the target business service, wherein the loading comprises the following steps:
loading the public service code from a public code base local to the intelligent equipment, and loading the business service code from the downloaded service resource; or
And loading the public service code and the business service code from the downloaded service resource.
In one possible embodiment, the method further comprises:
acquiring a business service upgrading instruction, wherein the business service upgrading instruction comprises latest service resource downloading address information of the target business service;
and upgrading the downloaded service resources of the target service according to the latest service resource downloading address information.
In one possible implementation, the method further includes:
acquiring a service deleting instruction, wherein the service deleting instruction comprises a service identifier of the target service;
and deleting the service resource corresponding to the service identifier, and deleting the calling description information obtained by executing the calling code in the service resource.
In one possible embodiment, the target business service is a standard business service or a custom business service.
In a second aspect, an embodiment of the present application provides an intelligent device, which generates service resources of each service in advance and uploads the service resources to a server, where the intelligent device includes:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a business service adding instruction which comprises service resource downloading address information of a target business service;
the downloading module is used for downloading the service resources from the server according to the downloading address information of the service resources, wherein the downloaded service resources comprise service codes for providing the target business service and calling codes of the service codes;
the loading module is used for loading a service code required by providing the target business service when a preset service resource loading condition is met, and executing the calling code to obtain calling description information;
and the calling module is used for calling the loaded service code by using the calling description information so as to provide the target service.
In a possible implementation manner, the call description information includes call opportunity description information and call mode description information, and the call module is specifically configured to:
monitoring the service state of the intelligent equipment and the obtained service instruction;
and if the service state of the intelligent equipment or the obtained service instruction is determined to be matched with the calling opportunity description information, calling the loaded service code according to the calling mode description information so as to provide the target service.
In a possible implementation manner, the server stores first version information of a common code library corresponding to the target business service and second version information of a common code library local to the intelligent device, and the downloaded service resource is that the server allows the downloading module to download after determining that the version of the common code library corresponding to the target business service is compatible with that of the common code library local to the intelligent device according to the first version information and the second version information.
In a possible implementation manner, the service code required for providing the target business service includes a common service code and a business service code, and the loading module is specifically configured to:
loading the public service code from a public code base local to the intelligent equipment, and loading the business service code from the downloaded service resource; or
And loading the public service code and the business service code from the downloaded service resource.
In a possible implementation, the management module is further configured to:
the acquisition module is further used for acquiring a business service upgrading instruction, wherein the business service upgrading instruction comprises the latest service resource downloading address information of the target business service;
and the management module is used for upgrading the downloaded service resources of the target service according to the latest service resource downloading address information.
In a possible implementation, the method further includes:
the acquisition module is further configured to acquire a service deletion instruction, where the service deletion instruction includes a service identifier of the target service;
and the management module is used for deleting the service resource corresponding to the service identifier and deleting the calling description information obtained by executing the calling code in the service resource.
In one possible embodiment, the target business service is a standard business service or a custom business service.
In a third aspect, an embodiment of the present application provides an intelligent device, including: at least one processor, and a memory communicatively coupled to the at least one processor, wherein:
the memory stores instructions executable by the at least one processor to enable the smart device to perform the business service providing method described above.
In a fourth aspect, an embodiment of the present application provides a storage medium, and when instructions in the storage medium are executed by a processor of a smart device, the smart device is capable of executing the above business service providing method.
In the embodiment of the application, the service resources of each business service are generated in advance and uploaded to the server, so that the service resources of different business services are independently developed, and the isolation between the business services is good. Subsequently, when the intelligent device is required to provide the target business service, the service resources of the target business service can be downloaded from the server, the service resources comprise service codes required by the target business service and calling codes of the service codes, when the preset loading conditions of the service resources are met, the service codes required by the target business service are loaded, the calling codes are executed, calling description information of the service codes is obtained, and the target business service can be provided by calling the loaded service codes according to the calling description information. Therefore, the service resources are downloaded to change the service provided by the intelligent equipment, the calling condition of the service does not need to be considered in the development stage, the intelligent equipment is favorable for freely combining all the service services to serve the user, and therefore the development complexity of the intelligent equipment can be reduced, and the intelligent equipment can quickly fall to the ground to serve the user.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart of a business service providing method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an OPK package according to an embodiment of the present disclosure;
fig. 3 is a diagram illustrating a business service providing architecture according to an embodiment of the present application;
fig. 4 is a block diagram of an intelligent device according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a hardware structure of an intelligent device for implementing a service providing method according to an embodiment of the present application.
Detailed Description
In order to solve the problems that the development of intelligent equipment is complex and is not beneficial to the intelligent equipment to quickly fall to the ground to serve users in the prior art, the embodiment of the application provides a business service providing method, the intelligent equipment and a storage medium.
The preferred embodiments of the present application will be described below with reference to the accompanying drawings of the specification, it should be understood that the preferred embodiments described herein are merely for illustrating and explaining the present application, and are not intended to limit the present application, and that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
In the related art, all business services which need to be provided by intelligent equipment are developed in a research and development project, and finally a service resource such as an OPK file package is formed. However, since a plurality of business services are included in a research and development project, which are relatively large, the amount of code required to form an OPK file package is large, and the development difficulty of the research and development project is relatively high. Moreover, in the process of forming the OPK file package, developers also need to write the calling description information of each business service in advance, which increases the debugging difficulty of the research and development project. These are not conducive to quickly landing a smart device to service a user.
In addition, in practical application, the intelligent devices have different forms and different landing scenes, and the required functions are different, for example, some business services are required in the scene and are not required in another scene, and some users hope to customize the business services to be embedded into the intelligent devices, and can reuse the business services in other intelligent devices to create an intelligent device with own business features.
Therefore, how to reduce the development complexity of the intelligent device and enable the intelligent device to quickly land to serve the user becomes a problem which needs to be solved urgently according to the needs of the user or the scene.
In order to solve the above problems, in the embodiment of the present application, a development project may be divided into multiple business services in advance, a developer of a business service provider may write a code of each business service by using a development tool, such as ReactNative, and the like, compile the written code to obtain a service resource of the business service, upload the service resource to a server, and issue the service resource to a service resource store by the server, where the service resource of each business service includes a service code required for providing the business service and a call code of the service code. Therefore, service resources of different business services in a research and development project are independently developed, and isolation between the business services is better.
Subsequently, when the intelligent device is required to provide the target business service, the service resource of the target business service can be downloaded from the server through the service resource store, the service code required by providing the target business service is loaded when the preset service resource loading condition is met, the call code in the downloaded service resource of the target business service is analyzed to obtain the call description information, the loaded service code is called according to the call description information, and the intelligent device can provide the target business service.
Therefore, the service resources are downloaded to change the service provided by the intelligent equipment, the calling condition of the service does not need to be considered in the development stage, and the intelligent equipment is favorable for freely combining all the service services to serve the user, so that the development complexity of the intelligent equipment can be reduced, and the intelligent equipment can quickly fall to the ground to serve the user.
Fig. 1 is a flowchart of a business service providing method provided in an embodiment of the present application, where an execution subject of the method may be an intelligent device, and the flowchart of the method may include the following steps:
s101: and acquiring a business service adding instruction, wherein the business service adding instruction comprises service resource downloading address information of the target business service.
In order to facilitate the creation of the intelligent equipment with the service characteristics of the user who buys the intelligent equipment, the user who buys the intelligent equipment can be allowed to serve as a developer, and the service resources of the service developed by the user are uploaded to the server and then released to the service resource store. Thus, the target business service may be a standard business service or a custom business service.
Therefore, the user can not only multiplex the standard business service provided by the business service provider to provide the business service, but also embed the customized business service with own characteristics in the intelligent equipment, the development flexibility of the business service is better, and the intelligent equipment can be conveniently and quickly landed to serve the user.
S102: and downloading the service resources from the server according to the service resource downloading address information, wherein the downloaded service resources comprise service codes required for providing the target business service and calling codes of the service codes.
In specific implementation, the service resource of each service has its own download address in the service resource store, and the service resource of the service can be downloaded from the server through the download address.
It is considered that the versions of the common code bases attached to the development tools used by different developers in developing the business services may be different, and the common code bases of different versions may conflict with each other, thereby affecting the intelligent device to provide the business services. To cope with this problem, the server may store in advance version information of a common code library corresponding to each business service (i.e., a common code library attached to a development tool used by a developer in developing the business service), and store version information of the common code library local to the smart device.
Subsequently, when the intelligent device requests to download the service resource of the target business service, the server can judge whether the version of the public code base corresponding to the target business service is compatible with the version of the local public code base of the intelligent device according to the first version information of the public code base corresponding to the target business service and the second version information of the local public code base of the intelligent device, and if the versions are compatible, the intelligent device is allowed to download the service resource of the target business service; and if the service resources are determined to be incompatible, the intelligent equipment can be refused to download the service resources of the target service.
S103: and when the preset service resource loading condition is met, loading the service code required by providing the target service, and executing the calling code to obtain the calling description information of the service code.
In specific implementation, when a development tool is used to compile codes written by a developer into service resources, codes that refer to a common code base attached to the development tool (i.e., common service codes) and codes that do not refer to the common code base (i.e., business service codes) may be separately packaged, and thus, the service codes of each business service may include common service codes and business service codes.
In one possible embodiment, when the service code required for providing the target business service is loaded, the common service code and the business service code may be directly loaded from the service resource of the downloaded target business service.
In another possible embodiment, when loading the service code loading required for providing the target business service, the common service code may be loaded from the common code library local to the intelligent device, and the business service code may be loaded from the downloaded service resource.
The local common code base of the intelligent equipment is uniformly installed by the service provider, and the version of the common code base can be determined by the service provider, so that the common service codes are loaded from the local common code base of the intelligent equipment, service resources of all service services downloaded to the intelligent equipment can share the common code base with the same version, and the probability that the intelligent equipment cannot normally provide the service due to incompatibility of the versions of the common code base is reduced as much as possible.
In some possible embodiments, the intelligent device is installed with a master application, and when it is determined that the master application is started (a preset service resource loading condition), the intelligent device loads a service code corresponding to each downloaded service (including a target service), and executes a call code in a service resource of each service to obtain call information of the service code of the service. Therefore, the service services which can be provided by the downloaded service resources of the intelligent equipment are the service services which the intelligent equipment has. And when the intelligent equipment downloads new service resources, the main application is restarted, so that the service of the intelligent equipment can be expanded, and the service provided by the intelligent equipment can be updated.
S104: and calling the loaded service code by using the calling description information to provide the target business service.
In specific implementation, if the calling description information includes calling opportunity description information and calling mode description information, the service state of the intelligent device and the obtained service instruction can be monitored, and if the service state of the intelligent device or the obtained service instruction is determined to be matched with the calling opportunity description information, the loaded service code can be called according to the calling mode description information to provide a target service, wherein the calling mode description information describes which interface is called, which class is called and the like.
Taking the target service as a lead service as an example, the call opportunity description information of the service code required for providing the lead service may be a service instruction such as "take me to go to a certain place", "want to go to a certain place", "ask how to go to a certain place", and the like. In addition, considering that the lead service is seamlessly switched with the standby service in some cases, the call timing description information providing the service code required for the lead service may also be a service state in which the standby service is ended.
In addition, if the service upgrading instruction is obtained, the downloaded service resource of the target service can be upgraded according to the latest service resource downloading address information of the target service contained in the service upgrading instruction. Therefore, the target business service is easy to update, and the iterative development of the intelligent equipment is facilitated.
In specific implementation, if the service deletion instruction is obtained, the corresponding service resource may be deleted according to the service identifier of the target service included in the service deletion instruction, and the call description information obtained by executing the call code in the corresponding service resource is deleted, so as to release the storage space of the intelligent device to the maximum extent.
In the embodiment of the application, the service resources of each service in one research and development project are independently developed, so that each service is favorably developed in an iterative manner, the service resources of each service can be dynamically downloaded to serve users, the service resources of each service can be conveniently upgraded and deleted, and the plugging and unplugging performance of the service is better. Therefore, the method is beneficial to freely combining all service users, and the intelligent equipment meeting the requirements of users or scenes is quickly developed, so that the development complexity of the intelligent equipment can be reduced, and the intelligent equipment can quickly land on the ground to serve the users.
The following describes the technical solution of the present application by taking an example in which the intelligent device is a robot and the service resource of each service is an OPK package.
In specific implementation, developers can utilize real Native to develop OPK file packages of various business services. Fig. 2 is a schematic structural diagram of an OPK package according to an embodiment of the present application, where the OPK information is description information of the OPK package, such as Platform Bundle encryption information, service Bundle encryption information, package editing time, version information, and the like; the Platform Bundle stores a public service code; the business Bundle stores business service codes; the resources are data such as pictures and voice required for providing corresponding service.
It should be noted that the service code of the service is included in the Platform Bundle and the service Bundle of the OPK package, and the call code of the service code is included in the service Bundle.
Fig. 3 is a diagram of a business service providing architecture provided in an embodiment of the present application, where the left side is a schematic diagram of a business service providing of a robot in the related art, and the right side is a schematic diagram of a business service providing of a robot in an embodiment of the present application.
In specific implementation, an original research and development project (corresponding to a certain OPK file package in the left service architecture) may be split into more independent service services, one service corresponds to one scene OPK file package in the right service architecture (fig. 3 includes N scene OPK file packages), and the right service architecture further includes a scheduling OPK file package, a basic OPK file package, and a third-party OPK file package.
The basic OPK file package is mainly used for providing navigation information of the OPK file package, and a user can know which OPK file packages can be downloaded and where to download the OPK file packages through the basic OPK file package;
the platform (corresponding to the main application) is mainly used for providing a calling interface for bottom hardware of the robot for each OPK file package so as to help each OPK file package to provide corresponding business service;
and scheduling the OPK file package, which is mainly used for loading the public service codes required by all the OPK file packages except the OPK file package, and switching the service corresponding to each OPK file package according to the obtained service instruction, wherein the service corresponding to the OPK file package is provided by any scene or the third-party OPK file package when the OPK file package is called. And, the Platform Bundle of the scheduling OPK can preset the common service code required by other OPK file packages.
During specific implementation, the OPK file packages of all the business services are independent and can be independently developed and independently debugged and operated, and the OPK file packages of all the business services are isolated from each other, so that the method is favorable for quick iterative updating of the OPK file packages and reducing development and test periods. And the OPK file package of each business service can be released to a service resource store, so that a user can install the required OPK file package on the robot through the service resource store and can unload the installed OPK file package of the robot through the service resource store.
Further, what services the robot is required to provide may be to download the corresponding OPK package from the service asset store. Subsequently, when the main application on the robot is started, the scheduling OPK file package is loaded (i.e. the public service codes required by other OPK file packages included in the scheduling OPK file package are loaded), then the other OPK file packages are loaded (i.e. the service codes in the other OPK file packages are loaded), and the call codes in the other OPK file packages are executed, so as to obtain the call description information of the service codes in the other OPK file packages, such as the supported voice instruction, the function module identifier, and the entry function of the function module. And then, when a voice interaction instruction is received, determining a service code capable of responding to the current instruction according to the voice instruction supported by the service code in each OPK file packet, and executing the loaded corresponding service code to provide corresponding service.
Therefore, if the OPK file packet downloaded by the robot changes, the main application is restarted, and the robot can provide new business services by using each OPK file packet downloaded latest. The mechanism for dynamically downloading the OPK file package enables developers to be free from paying attention to calling information of each business service in a development stage, a user can freely select the needed OPK file package to install from a service resource store according to the scene where the robot is located, and the OPK file package customized by the user can be published to the service resource store and then installed on the robot. Therefore, the robot is beneficial to quickly adapting to all scenes, meeting the customized requirements of customers, enabling the robot to quickly land on the ground to serve the users and realizing the minimum open source authorization of source codes.
In addition, in order to ensure independent development of each business service, developers of business service providers can provide a development tool such as ReactNative, different users as developers can develop an OPK file package with own business characteristics by using the development tool, and when the development tool is used for compiling and generating service resources of any business service, service codes developed by the developers can be divided into two parts: the first part of codes are public service codes of a public code library attached by ReactNative, and the public codes can be preset in an OPK (open client Key) scheduling file package to prevent the problem of public code version conflict; the second part of codes are business service codes which do not use public codes, in order to prevent code conflicts between different business services, such as OPK file packages with the same name under the same path, and resource conflicts, such as image names used by different OPK file packages, from being the same, business service identifiers can be arranged on the business code files and the resource identifiers during compiling, and then the business code files and the resources are searched through the business service identifiers during using.
In the embodiment of the application, the OPK file packages of all the business services are independently developed, when any business service is needed, the OPK file package of the business service is downloaded to the robot from the service resource store, then, when the main application of the robot is started, the service code in the OPK file package is loaded, the calling code in the OPK file package is executed, and the calling information of the service code is obtained, so that the robot is in a ready state for providing the business service. Subsequently, if the calling time meeting the service code is determined according to the calling information, the loaded service code can be executed to provide the business service. Therefore, the method is beneficial to any combination of all business services, supports the user to customize the embedding of the OPK file packet, can realize data sharing among the OPKs of different business services and any switching of the OPKs of all business services, can reduce the development complexity of the robot, and can ensure that the robot can quickly land on the ground to serve the user.
Take the development of a dance service as an example.
When the dance service is developed, interfaces for controlling the robot are needed, the interfaces are developed in advance by developers of service providers and uploaded to a code warehouse, and the code warehouse is equivalent to a public service library. Subsequently, when any developer develops the dance service, the developer declares which package in the imported code warehouse is in the configuration file, the development tool automatically downloads the codes in the corresponding package from the code warehouse for the developer to call, the developer writes the relevant codes of the dance service in the development tool, then compiles the relevant codes to obtain the OPK package corresponding to the dance service, and the part of the codes (namely the codes in the imported package) which are not written by the developer at the compiling stage are packaged into the Platform Bundle of the OPK package, and the codes written by the developer are packaged into the service Bundle of the OPK package. In addition, an entry file may be provided in the OPK package, and a developer may perform some initialization work (i.e., write a calling code) on the entry file, such as writing calling opportunity description information and calling mode description information.
Assuming that the robot downloads the OPK file package corresponding to the dance service, when it is determined that the main application on the robot is started, the service code in the OPK file package may be loaded, and the entry file (i.e., the execution calling code) in the OPK file package is parsed to obtain the calling description information of the loaded service code, at this time, the robot has entered a preparation state for providing the dance service. Subsequently, if the received voice command such as 'dancing me for me' is matched with the calling opportunity in the calling description information, the loaded service code can be called according to the calling mode description information in the calling description information, and the robot can provide dancing service.
In addition, when the method is implemented specifically, the service codes in the OPK file package and the service codes in other OPK file packages can be scheduled to run in one process, so that data sharing among all the service services is facilitated, and communication among all the service services is simple; the service codes in the OPK file package and the service codes in other OPK file packages can be scheduled to run in a plurality of processes, for example, the service code in each OPK file package runs in one process, so that each business service can be independently provided, the single business service provided by the robot is abnormal, the other business services cannot be influenced, and the stability is good.
When the method provided in the embodiments of the present application is implemented in software or hardware or a combination of software and hardware, a plurality of functional modules may be included in the smart device, and each functional module may include software, hardware or a combination thereof.
Fig. 4 is a block diagram of an intelligent device provided in an embodiment of the present application, and includes an obtaining module 401, a downloading module 402, a loading module 403, and a calling module 404.
An obtaining module 401, configured to obtain a service adding instruction, where the service adding instruction includes service resource downloading address information of a target service;
a downloading module 402, configured to download a service resource from the server according to the service resource downloading address information, where the downloaded service resource includes a service code for providing the target service and a call code for the service code;
a loading module 403, configured to load a service code required for providing the target service when a preset service resource loading condition is met, and execute the call code to obtain call description information;
a calling module 404, configured to call the loaded service code by using the call description information, so as to provide the target service.
In a possible implementation manner, the invocation description information includes invocation opportunity description information and invocation mode description information, and the invocation module 404 is specifically configured to:
monitoring the service state of the intelligent equipment and the obtained service instruction;
and if the service state of the intelligent equipment or the obtained service instruction is determined to be matched with the calling opportunity description information, calling the loaded service code according to the calling mode description information so as to provide the target service.
In a possible implementation manner, the server stores first version information of a common code library corresponding to the target business service and second version information of a common code library local to the intelligent device, and the downloaded service resource is allowed to be downloaded by the downloading module after the server determines that the common code library corresponding to the target business service is compatible with the version of the common code library local to the intelligent device according to the first version information and the second version information.
In a possible implementation manner, the service codes required for providing the target business service include a common service code and a business service code, and the loading module 403 is specifically configured to:
loading the public service code from a public code base local to the intelligent equipment, and loading the business service code from the downloaded service resource; or
And loading the public service code and the business service code from the downloaded service resource.
In one possible implementation, the management module 405 is further included:
the obtaining module 401 is further configured to obtain a service upgrade instruction, where the service upgrade instruction includes latest service resource download address information of the target service;
the management module 405 is configured to upgrade the downloaded service resource of the target service according to the latest service resource download address information.
In one possible implementation, the management module 405 is further included:
the obtaining module 401 is further configured to obtain a service deletion instruction, where the service deletion instruction includes a service identifier of the target service;
the management module 405 is configured to delete the service resource corresponding to the service identifier, and delete the call description information obtained by executing the call code in the service resource.
In one possible embodiment, the target business service is a standard business service or a custom business service.
The division of the modules in the embodiments of the present application is schematic, and is only a logical function division, and in actual implementation, there may be another division manner, and in addition, each functional module in each embodiment of the present application may be integrated in one processor, or may exist alone physically, or two or more modules are integrated in one module. The coupling of the various modules to each other may be through interfaces that are typically electrical communication interfaces, but mechanical or other forms of interfaces are not excluded. Thus, modules described as separate components may or may not be physically separate, may be located in one place, or may be distributed in different locations on the same or different devices. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Fig. 5 is a schematic structural diagram of an intelligent device according to an embodiment of the present disclosure, where the intelligent device includes a transceiver 501 and a processor 502, where the processor 502 may be a Central Processing Unit (CPU), a microprocessor, an application specific integrated circuit, a programmable logic circuit, a large scale integrated circuit, or a digital Processing Unit. The transceiver 501 is used for data transceiving between the smart device and other devices.
The smart device may also include a memory 503 for storing software instructions executed by the processor 502, but may also store some other data required by the smart device, such as identification information of the smart device, encryption information of the smart device, user data, etc. The Memory 503 may be a Volatile Memory (Volatile Memory), such as a Random-Access Memory (RAM); the Memory 503 may also be a Non-Volatile Memory (Non-Volatile Memory) such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD) or a Solid-State Drive (SSD), or the Memory 503 may be any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto. The memory 503 may be a combination of the above memories.
The specific connection medium between the processor 502, the memory 503 and the transceiver 501 is not limited in the embodiments of the present application. In fig. 5, the embodiment of the present application is described by taking only an example that the memory 503, the processor 502, and the transceiver 501 are connected through the bus 504, the bus is shown by a thick line in fig. 5, and the connection manner between other components is merely illustrative and not limited thereto. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but that does not indicate only one bus or one type of bus.
The processor 502 may be dedicated hardware or a processor running software, and when the processor 502 may run software, the processor 502 reads software instructions stored in the memory 503 and executes the business service providing method involved in the foregoing embodiments under the drive of the software instructions.
The intelligent device provided by the embodiment of the application can be, but is not limited to, a robot.
The embodiment of the present application further provides a storage medium, and when instructions in the storage medium are executed by a processor of an intelligent device, the intelligent device is capable of executing the business service providing method in the foregoing embodiment.
In some possible embodiments, the aspects of the business service providing method provided by the present application may also be implemented in the form of a program product, where the program product includes program code, and when the program product runs on an intelligent device, the program code is used to make the intelligent device execute the business service providing method in the foregoing embodiments.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable Disk, a hard Disk, a RAM, a ROM, an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a Compact Disk Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The program product for business services in the embodiments of the present application may be a CD-ROM and include program code, and may be run on a computing device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In situations involving remote computing devices, the remote computing devices may be connected to the user computing device over any kind of Network, such as a Local Area Network (LAN) or Wide Area Network (WAN), or may be connected to external computing devices (e.g., over the internet using an internet service provider).
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more units described above may be embodied in one unit, according to embodiments of the application. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Further, while the operations of the methods of the present application are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the present application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A business service providing method, characterized in that a service resource of each business service is generated in advance and uploaded to a server, the method comprising:
the method comprises the steps that an intelligent device obtains a business service adding instruction, wherein the business service adding instruction comprises service resource downloading address information of a target business service;
downloading service resources from the server according to the service resource downloading address information, wherein the downloaded service resources comprise service codes required by providing the target business service and calling codes of the service codes;
when a preset service resource loading condition is met, loading a service code required by providing the target service, and executing the calling code to obtain calling description information;
and calling the loaded service code by using the calling description information so as to provide the target business service.
2. The method of claim 1, wherein the call description information includes call occasion description information and call mode description information, and the calling the loaded service code using the call description information to provide the target service comprises:
monitoring the service state of the intelligent equipment and the obtained service instruction;
and if the service state of the intelligent equipment or the obtained service instruction is determined to be matched with the calling opportunity description information, calling the loaded service code according to the calling mode description information so as to provide the target service.
3. The method of claim 1, wherein the server stores therein first version information of a common code library corresponding to the target business service and second version information of the common code library local to the smart device, and the downloaded service resource is allowed to be downloaded by the smart device after the server determines that the version of the common code library corresponding to the target business service is compatible with the version of the common code library local to the smart device according to the first version information and the second version information.
4. A method according to any of claims 1-3, wherein the service codes required to provide the target business service comprise a common service code and a business service code;
loading service codes required for providing the target business service, wherein the loading service codes comprise:
loading the public service code from a public code base local to the intelligent equipment, and loading the business service code from the downloaded service resource; or
And loading the public service code and the business service code from the downloaded service resource.
5. The method of claim 1, further comprising:
acquiring a business service upgrading instruction, wherein the business service upgrading instruction comprises latest service resource downloading address information of the target business service;
and upgrading the downloaded service resources of the target service according to the latest service resource downloading address information.
6. The method of claim 1, further comprising:
acquiring a service deleting instruction, wherein the service deleting instruction comprises a service identifier of the target service;
and deleting the service resource corresponding to the service identifier, and deleting the calling description information obtained by executing the calling code in the service resource.
7. The method of claim 1, wherein the target business service is a standard business service or a custom business service.
8. An intelligent device, wherein a service resource of each business service is generated in advance and uploaded to a server, the intelligent device comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a business service adding instruction which comprises service resource downloading address information of a target business service;
the downloading module is used for downloading the service resources from the server according to the downloading address information of the service resources, wherein the downloaded service resources comprise service codes for providing the target business service and calling codes of the service codes;
the loading module is used for loading a service code required by providing the target business service when a preset service resource loading condition is met, and executing the calling code to obtain calling description information;
and the calling module is used for calling the loaded service code by using the calling description information so as to provide the target business service.
9. A smart device, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein:
the memory stores instructions executable by the at least one processor to enable the smart device to perform the method of any of claims 1-7.
10. A storage medium, wherein instructions in the storage medium, when executed by a processor of a smart device, enable the smart device to perform the method of any of claims 1-7.
CN202110053264.3A 2021-01-15 2021-01-15 Business service providing method, intelligent device and storage medium Pending CN114764352A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110053264.3A CN114764352A (en) 2021-01-15 2021-01-15 Business service providing method, intelligent device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110053264.3A CN114764352A (en) 2021-01-15 2021-01-15 Business service providing method, intelligent device and storage medium

Publications (1)

Publication Number Publication Date
CN114764352A true CN114764352A (en) 2022-07-19

Family

ID=82364075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110053264.3A Pending CN114764352A (en) 2021-01-15 2021-01-15 Business service providing method, intelligent device and storage medium

Country Status (1)

Country Link
CN (1) CN114764352A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388445A (en) * 2018-03-09 2018-08-10 北京四方继保自动化股份有限公司 One kind being based on the continuous integrating method of " platform+application " pattern
CN108491236A (en) * 2018-03-23 2018-09-04 努比亚技术有限公司 A kind of plug-in loading method, device and computer readable storage medium
CN110333868A (en) * 2019-06-12 2019-10-15 阿里巴巴集团控股有限公司 For generating the method and system of the installation kit of sub- application
CN110515673A (en) * 2019-07-24 2019-11-29 百度在线网络技术(北京)有限公司 Plug-in unit system and method
CN111258587A (en) * 2020-01-17 2020-06-09 苏宁云计算有限公司 Method, device, equipment and storage medium for realizing android application plug-in
CN111949261A (en) * 2020-07-13 2020-11-17 福建天泉教育科技有限公司 High-multiplexing application development configuration method and system
CN112035095A (en) * 2019-06-03 2020-12-04 北京沃东天骏信息技术有限公司 Application processing method, application processing apparatus, computer device, and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388445A (en) * 2018-03-09 2018-08-10 北京四方继保自动化股份有限公司 One kind being based on the continuous integrating method of " platform+application " pattern
CN108491236A (en) * 2018-03-23 2018-09-04 努比亚技术有限公司 A kind of plug-in loading method, device and computer readable storage medium
CN112035095A (en) * 2019-06-03 2020-12-04 北京沃东天骏信息技术有限公司 Application processing method, application processing apparatus, computer device, and medium
CN110333868A (en) * 2019-06-12 2019-10-15 阿里巴巴集团控股有限公司 For generating the method and system of the installation kit of sub- application
CN110515673A (en) * 2019-07-24 2019-11-29 百度在线网络技术(北京)有限公司 Plug-in unit system and method
CN111258587A (en) * 2020-01-17 2020-06-09 苏宁云计算有限公司 Method, device, equipment and storage medium for realizing android application plug-in
CN111949261A (en) * 2020-07-13 2020-11-17 福建天泉教育科技有限公司 High-multiplexing application development configuration method and system

Similar Documents

Publication Publication Date Title
CN105657191B (en) Application increment upgrading method and system based on Android system
CN105490860A (en) Method, device and system for deploying application program operation environment
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
CN110321131B (en) Service component packaging method, system and server
CN106569880B (en) Method and system for dynamically sharing resources between Android applications
CN105302563A (en) Plug-in method and system for mobile application service
CN113190282A (en) Android operating environment construction method and device
CN116049207A (en) Application SQL script processing method and device, processor and electronic equipment
CN114490062A (en) Local disk scheduling method and device, electronic equipment and storage medium
US20230239212A1 (en) Stable References for Network Function Life Cycle Management Automation
CN114072765B (en) Method for container-based virtualization system
CN113296828A (en) Method, server and system for issuing application
CN111897565A (en) Data processing method, device and equipment based on Internet of things
CN114490103A (en) Operating system interface calling method and device and electronic equipment
US20200133709A1 (en) System and method for content - application split
CN110806891A (en) Method and device for generating software version of embedded equipment
CN116028163A (en) Method, device and storage medium for scheduling dynamic link library of container group
CN114764352A (en) Business service providing method, intelligent device and storage medium
CN117112122A (en) Cluster deployment method and device
US11372627B2 (en) System and method for providing integrated development environment (IDE) for programmable software system
CN114860202A (en) Project operation method, device, server and storage medium
CN113961232A (en) Terminal, method and platform server for providing integrated development environment
WO2019157891A1 (en) Application installation method and application installer generating method
CN114356423B (en) Board-level support packet processing method and device, electronic equipment and storage medium
CN116661813A (en) Application upgrading method, device 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