WO2020168567A1 - Data processing method and device, and mobile terminal - Google Patents

Data processing method and device, and mobile terminal Download PDF

Info

Publication number
WO2020168567A1
WO2020168567A1 PCT/CN2019/075943 CN2019075943W WO2020168567A1 WO 2020168567 A1 WO2020168567 A1 WO 2020168567A1 CN 2019075943 W CN2019075943 W CN 2019075943W WO 2020168567 A1 WO2020168567 A1 WO 2020168567A1
Authority
WO
WIPO (PCT)
Prior art keywords
data processing
processing instruction
sdk plug
target sdk
interface
Prior art date
Application number
PCT/CN2019/075943
Other languages
French (fr)
Chinese (zh)
Inventor
朱洪波
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN201980077010.6A priority Critical patent/CN113168332B/en
Priority to PCT/CN2019/075943 priority patent/WO2020168567A1/en
Publication of WO2020168567A1 publication Critical patent/WO2020168567A1/en

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

Definitions

  • This application relates to the field of Internet of Things, and more specifically, to a data processing method, device, and mobile terminal.
  • Quick application is a new type of application that is deeply integrated with the operating system and provides a scene-based experience. Like small programs, it has the features of free installation and direct opening. With the popularization of fast apps, fast apps can be used to control smart home devices. However, fast apps have not yet been able to flexibly control devices from multiple manufacturers, and the user experience needs to be improved.
  • this application proposes a data processing method, device and mobile terminal to improve the above problems.
  • this application provides a data processing method applied to a client.
  • the method includes: receiving a data processing instruction sent by the fast application engine through an extension interface configured to the fast application engine, and the data processing The instruction is sent by the quick application engine in response to a trigger operation in the operation interface, the operation interface is generated by the quick application engine, the data processing instruction carries the identification information of the target SDK; based on the identification information, the corresponding The target SDK plug-in; call the target SDK plug-in to execute the data processing instruction.
  • this application provides a data processing method applied to a fast application engine, the method comprising: generating a data processing instruction in response to a touch operation in an operation interface, the operation interface being generated by the fast application engine Call the extension interface configured by the client for the fast application engine, send the data processing instruction to the client through the extension interface; receive the execution of the data returned by the client based on the extension interface The result information of the processing instruction.
  • the present application provides a data processing device that runs on a mobile terminal.
  • the device includes: a data receiving unit configured to receive data processing sent by the quick application engine through an extension interface configured to the quick application engine Instruction, the data processing instruction is sent by the fast application engine in response to a trigger operation in an operation interface, the operation interface is generated by the fast application engine, and the data processing instruction carries identification information of the target SDK; data detection The unit is used to obtain the corresponding target SDK plug-in based on the identification information; the SDK calling unit is used to call the target SDK plug-in to execute the data processing instruction.
  • the present application provides a data processing device that runs on a mobile terminal.
  • the device includes an operation detection unit for generating data processing instructions in response to a touch operation in an operation interface.
  • the present application provides a mobile terminal, including one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be The one or more processors execute, and the one or more programs are configured to execute the above methods.
  • the present application provides a computer-readable storage medium having program code stored in the computer-readable storage medium, wherein the above method is executed when the program code is running.
  • the data processing method, device, and mobile terminal provided by this application, by configuring the extension interface for the fast application engine in the client, enable the client to be configured to the fast application during the process of controlling the SDK plug-in through the fast application
  • the extension interface of the engine which receives the data processing instruction sent by the quick application engine in response to the touch operation in the quick application, obtains the corresponding target SDK plug-in based on the data processing instruction, and calls the target SDK plug-in to execute the data Processing instructions.
  • the quick app triggers the client to control the SDK plug-in based on a cross-application method, and then realizes that the quick app can call the SDK plug-in, and greatly expands the function of the quick app to facilitate the realization of mobile Call other components in the terminal.
  • FIG. 1 shows a schematic diagram of the architecture of the Internet of Things proposed in an embodiment of the present application
  • FIG. 2 shows a schematic diagram of another architecture of the Internet of Things proposed in an embodiment of the present application
  • FIG. 3 shows a schematic diagram of yet another architecture of the Internet of Things proposed by an embodiment of the present application
  • FIG. 4 shows a schematic diagram of a fast application engine architecture proposed by an embodiment of the present application
  • FIG. 5 shows a schematic diagram of a communication mode between a client and a server proposed by an embodiment of the present application
  • FIG. 6 shows a schematic diagram of the operating environment of the data processing method proposed in an embodiment of the present application
  • FIG. 7 shows a flowchart of a data processing method proposed in an embodiment of the present application.
  • FIG. 8 shows a schematic diagram of an entry of an operation interface in a data processing method proposed in an embodiment of the present application
  • FIG. 9 shows a schematic diagram of an entry of another operation interface in a data processing method proposed by an embodiment of the present application.
  • FIG. 10 shows a schematic diagram of an entry of yet another operation interface in a data processing method proposed in an embodiment of the present application
  • FIG. 11 shows a flowchart of a data processing method proposed by another embodiment of the present application.
  • FIG. 12 shows a flowchart of a data processing method proposed in another embodiment of the present application.
  • FIG. 13 shows a flowchart of a data processing method proposed by another embodiment of the present application.
  • FIG. 14 shows a flowchart of a data processing method proposed by another embodiment of the present application.
  • FIG. 15 shows a structural block diagram of a data processing device proposed in an embodiment of the present application.
  • FIG. 16 shows a structural block diagram of a data processing device proposed by another embodiment of the present application.
  • FIG. 17 shows a structural block diagram of a data processing device proposed by another embodiment of the present application.
  • FIG. 18 shows a structural block diagram of a data processing device proposed by another embodiment of the present application.
  • FIG. 19 shows a structural block diagram of a data processing device proposed by another embodiment of the present application.
  • FIG. 20 shows a structural block diagram of a mobile terminal of the present application for executing the data processing method according to an embodiment of the present application
  • Fig. 21 is a storage unit for storing or carrying program codes for implementing the device control method according to the embodiment of the present application.
  • the Internet of Things is a network concept that extends and expands its user end to any item and item for information exchange and communication based on the "Internet concept".
  • IoT technology With the development of IoT technology, some scenarios can be configured in the IoT system. For the configuration scenario, multiple controlled devices may be involved, and multiple controlled devices have a certain linkage relationship and can work together.
  • the controlled devices can be projectors, projection screens, smart lights, smart sockets, human sensors, door and window sensors, wireless switches, air conditioners, smoke alarms, smart curtain motors, and mobile terminals such as air purifiers and smart speakers.
  • the mobile terminal 100 that plays a control role can implement data interaction with the controlled device 99 by directly establishing a wireless connection with the router 90.
  • the mobile terminal 100 can also realize data interaction with the controlled device 99 through the data link between the cloud 91 and the router 90 after establishing a connection with the cloud 91.
  • the mobile terminal 100 directly establishes data interaction with the first cloud 91a, and then implements the mobile terminal 100 based on the data interaction between the first cloud 91a and the second cloud 91b.
  • Data interaction with the second cloud 91b, and then the second cloud 91b can perform data interaction with the controlled device 99, the mobile terminal 100 further realizes the data interaction with the controlled device 99.
  • the controlled device 99 may establish a wireless connection with the router 90 through the gateway 98.
  • the data interaction may include the mobile terminal sending a control instruction to the controlled device, and may also include the controlled device returning status information to the mobile terminal or returning the instruction execution result.
  • the data interaction between the mobile terminal and the controlled device can be triggered by a client installed in the mobile terminal.
  • the fast application is a new application form based on the hardware platform of the terminal device. It does not need to be installed, it is click-to-use, and it has the original application experience (performance, system integration, interaction, etc.).
  • the structure diagram of the fast application engine, the front-end design of fast application draws on and integrates the design ideas of mainstream front-end frameworks (Vue, React, etc.): build applications in a componentized way, with data binding as the core
  • the MVVM design mode uses V-DOM to improve performance, while choosing a concise and clear Vue-like template.
  • each manufacturer will develop its own SDK plug-in for the client in the mobile terminal to call.
  • the client loads the manufacturer's SDK plug-in, it can call the loaded SDK plug-in, and then interact with the manufacturer's server through the SDK plug-in.
  • the client 110 shown in FIG. 5 is loaded with the SDK plug-in 111 of manufacturer A and the SDK plug-in 112 of manufacturer B.
  • the client 110 can communicate with manufacturer A by calling the SDK plug-in of manufacturer A.
  • the server 210 of manufacturer B performs data interaction, and the client 110 can interact with the server 220 of manufacturer B by calling the SDK plug-in of manufacturer B.
  • Quick App can trigger the client to control the SDK plug-in based on a cross-application approach, thereby realizing that Quick App can call the SDK plug-in and greatly expanding the functions of Quick App. , So that the data processing method, device and mobile terminal for calling other components in the mobile terminal can be realized through the quick application.
  • a fast application and a client 110 are running.
  • the fast application runs on the fast application engine, and an extended interface 97 provided by the client is set in the fast application engine.
  • the client 110 is provided with an extension interface 96 that communicates with the extension interface 97.
  • the client 110 can call SDK plug-ins of various manufacturers through an extended interface.
  • the SDK plug-in 111 of manufacturer A, the SDK plug-in 112 of manufacturer B, and the SDK plug-in 113 of manufacturer C in the figure can be called.
  • the data processing instructions triggered in the fast application can be transferred to the extended interface 96 in the client through the extension interface 97 set in the fast application engine, and then the data processing instructions are transmitted to the SDK plug-ins of various manufacturers .
  • a data processing method provided by an embodiment of the present application is applied to a client, and the method includes:
  • Step S110 Receive a data processing instruction sent by the quick application engine through the extended interface configured to the quick application engine, the data processing instruction being sent by the quick application engine in response to a trigger operation in the operation interface, the operation interface Generated by the fast application engine, and the data processing instruction carries identification information of the target SDK.
  • the operation interface that can be used for operation is rendered and generated by the quick application engine, and in the quick application-based operation mode, the mobile terminal may have multiple ways to trigger the display of the operation interface.
  • a quick application client can be configured in the mobile terminal, so that the operation interface corresponding to other applications can be entered through the interface of the quick application client. It can be understood that the fast application client here is different from the client run by the data processing method provided in this embodiment.
  • the operation interface 95 shown in FIG. 8, in which the operation interface entry controls of application A, application B, and application C are displayed it can be understood that application A, application The operation interface of B and application C refers to the operation interface generated by the fast application engine.
  • the fast application client detects that the user has touched the entry control of application A
  • the fast application client detects that the user has touched
  • the fast application client detects that the user has touched
  • the fast application client detects that the user has touched
  • the fast application client detects that the user has touched After controlling the entry control of application B, the fast application client can load and display the operation interface of application B.
  • the fast application client detects that the user has touched the entry control of application C
  • the fast application client can load The operation interface of application C is displayed.
  • a quick application card 93 can be displayed in the negative one-screen interface 94 as shown in FIG. 9, and the entry controls of the operation interface generated by the quick application engine corresponding to each application program are displayed in the card.
  • the operation interface entry controls of application A, application B, and application C can still be displayed in card 93.
  • the mobile terminal detects that the entry control of application A in the card is touched it triggers the quick application client to load and display the operation interface of application A
  • the mobile terminal detects that the entry control of application B in the card
  • the quick application client will be triggered to load and display the operation interface of application B.
  • the mobile terminal detects that the entry control of application C in the card it will trigger the quick application client to Load and display the operation interface of application C.
  • the entry control can be set in other clients, for example, the client on which the data processing method provided in the embodiment of the present application runs.
  • the client terminal on which the data processing method provided in the embodiment of the present application runs is a smart home client
  • the interface 92 of the smart home client may display manufacturer A, manufacturer B, and manufacturer C corresponds to the entry control of the operation interface.
  • the operation interface is running on the fast application engine.
  • the client detects that it is acting on the entry control named "Vendor A". After the touch operation, you can send instructions to display the operation interface corresponding to manufacturer A to the fast application engine through the extended interface configured to the fast application engine (more details will be introduced later), thereby triggering the fast application engine to render the display corresponding to manufacturer A The operation interface.
  • the fast application engine renders and displays the data (for example, interface UI data or device status data, etc.) required in the process of rendering and displaying the operation interface of manufacturer A
  • the fast application engine can be transferred to the intelligent The home client requests, and the smart home client calls the SDK plug-in corresponding to vendor A after receiving the request, and then returns it to the fast application engine through the extended interface.
  • the SDK plug-in determines that the required data can be obtained locally, it can be directly searched locally (for example, UI data may have been encapsulated in the SDK plug-in), and if it is determined that it needs to be obtained from the server (for example, device status data, etc.) ), then you can send a data acquisition request to the corresponding vendor server as shown in Figure 5.
  • the server for example, device status data, etc.
  • the fast application engine and the client are two applications that run relatively independently.
  • the extended interface between the fast application engine and the client is based on inter-process communication
  • the expansion interface is based on inter-process communication
  • the extended interface based on inter-process communication includes an AIDL channel interface.
  • the extended interface based on inter-process communication includes a localSocket interface.
  • the fast application engine can call the client through the interface function in the jar package provided by the client, and write the data processing instructions to be executed into the interface function in the form of parameters.
  • the client can obtain data processing instructions in the form of parameters.
  • the fast application engine can judge the package name and application signature in the onTransact callback so that applications without authentication cannot access the AIDL channel interface.
  • the user can realize the network distribution and control of the equipment by operating the operation interface.
  • different fast applications correspond to different operation objects.
  • the client will subsequently call the SDK plug-ins of different manufacturers to execute, so in order to facilitate the subsequent client to distinguish the manufacturer’s equipment to be operated by the data processing instructions, then generate in the fast application engine
  • the identification information of the fast application that triggers the generation of the data processing instruction is added to the data processing instruction.
  • the identification information may be a unique identifier allocated by the mobile terminal, or may be a package name of the quick application.
  • Step S120 Obtain a corresponding target SDK plug-in based on the identification information.
  • the fast application can implement calling applications of multiple types or controlling devices of multiple manufacturers.
  • controlling the devices of multiple vendors it is implemented by calling the SDK plug-ins of multiple vendors loaded in the client. Then, after the client receives the data processing instruction by providing it to the fast application engine, it will first extract the identification information of the SDK plug-in from the data processing instruction, and then find the matching SDK plug-in from the multiple SDK plug-ins recorded before as the target SDK plugin.
  • the client can record the downloaded SDK plug-in after loading the SDK plug-in of a certain manufacturer. You can also record after loading a downloaded SDK plug-in. Then take the package name as an example.
  • QuickApp will store the package name of the vendor’s QuickApp, and then obtain the data processing instruction, and then according to the extracted from the data processing instruction Package name to identify the corresponding target SDK plug-in.
  • Step S130 Call the target SDK plug-in to execute the data processing instruction.
  • the SDK plug-in will expose its interface so that the SDK plug-in can be called through the interface.
  • the interfaces of SDK plug-ins of different vendors are all packaged according to unified setting rules. That is, the interface rules of SDK plug-ins of different manufacturers are the same.
  • the client invokes the target SDK plug-in based on the interface rules defined by the target SDK plug-in, so as to call the target SDK plug-in to execute the data processing instruction.
  • the different SDK plugins called in the client can also be SDK plugins belonging to different devices, or SDK plugins belonging to different applications.
  • the different SDK plug-ins called in the client besides the manufacturer, the device, and the application, there may also be other different ways, which are not specifically limited in the embodiment of the present application.
  • the fast application engine and the client that executes the data processing method in the embodiment of this application can be two independently running applications, or the fast application engine is embedded in the data processing method in the embodiment of this application.
  • the client that is, the client includes the fast application engine.
  • This application provides a data processing method that configures an extended interface for the fast application engine in the client, so that in the process of controlling the SDK plug-in through the fast application, the client can use the extended interface configured to the fast application engine.
  • Receive a data processing instruction sent by the quick application engine in response to a touch operation in the quick application obtain a corresponding target SDK plug-in based on the data processing instruction, and call the target SDK plug-in to execute the data processing instruction.
  • the quick app triggers the client to control the SDK plug-in based on a cross-application method, and then realizes that the quick app can call the SDK plug-in, and greatly expands the function of the quick app to facilitate the realization of mobile Call other components in the terminal.
  • a data processing method provided by an embodiment of the present application is applied to a client, and the method includes:
  • Step S210 Receive a data processing instruction sent by the quick application engine through the extended interface configured to the quick application engine, the data processing instruction being sent by the quick application engine in response to a trigger operation in the operation interface, the operation interface Generated by the fast application engine, and the data processing instruction carries identification information of the target SDK.
  • Step S220 Obtain the corresponding target SDK plug-in based on the identification information.
  • Step S230 Read the version identifier of the fast application carried from the data processing instruction.
  • Step S240 Obtain the version identifier of the target SDK plug-in.
  • Step S250 Determine whether the version identifier of the quick application matches the version identifier of the target SDK plug-in.
  • fast apps of different manufacturers or fast apps of different devices can be upgraded. And the fast application after the upgrade can have more functions. It is understandable that the fast application in the embodiment of this application executes data processing instructions by calling the SDK plug-in in the client. If the function displayed in the operation interface is actually not completed by the corresponding target SDK plug-in, then It may cause data errors and affect user experience. For example, if the function information of obtaining the device status is displayed on the operation interface, but if the SDK plug-in corresponding to the quick application does not have a handle to send the device status to the server, the SDK plug-in cannot execute the touch device state The data processing instructions generated after the acquisition. The inconsistency between the version of the SDK plug-in corresponding to the same manufacturer or the same device and the quick app version may be caused by the mobile terminal not downloading the latest version in time or an error occurred during the update process.
  • Step S260 If it is determined that the version identifier of the quick application matches the version identifier of the target SDK plug-in, call the target SDK plug-in to execute the data processing instruction.
  • Step S261 If it is determined that the version identifier of the quick application does not match the version identifier of the target SDK plug-in, obtain the functions supported by the target SDK plug-in.
  • each SDK plug-in is downloaded from the corresponding server.
  • the SDK plug-in of manufacturer A is downloaded from the server of manufacturer A
  • the SDK plug-in of manufacturer B is downloaded from the server of manufacturer B.
  • the mobile terminal downloads the SDK plug-in, it can also download a corresponding function description file, and the function description file can correspond to the functions supported by the currently downloaded version of the SDK.
  • Step S270 Determine whether the target SDK plug-in can complete the data processing instruction based on the acquired functions supported by the target SDK plug-in.
  • the target SDK plug-in based on the aforementioned acquisition of the functions supported by the target SDK plug-in, if it is determined that the functions supported by the target SDK plug-in include the functions to be executed by the data processing instructions sent by the fast application engine received by the client, then It is determined that the target SDK plug-in can complete the data processing instruction. Otherwise, it is determined that the data processing instruction cannot be completed.
  • step S260 is executed.
  • Step S280 If it is determined that the data processing instruction cannot be completed, a prompt message of an operation error is returned to the quick application based on the extended interface.
  • This application provides a data processing method that configures an extended interface for the fast application engine in the client, so that in the process of controlling the SDK plug-in through the fast application, the client can use the extended interface configured to the fast application engine.
  • Receive the data processing instruction sent by the quick app engine in response to the touch operation in the quick app obtain the corresponding target SDK plug-in based on the data processing instruction, and when it is determined that the obtained target SDK plug-in is the same version as the quick app, Then call the target SDK plug-in to execute the data processing instruction.
  • the quick app triggers the client to control the SDK plug-in based on a cross-application method, and then realizes that the quick app can call the SDK plug-in, and greatly expands the function of the quick app to facilitate the realization of mobile Call other components in the terminal. At the same time, it also avoids data errors caused by inconsistencies between the version of the target SDK plug-in and the version of the quick app, or the execution failure of data processing instructions.
  • a data processing method provided by an embodiment of the present application is applied to a client, and the method includes:
  • Step S310 Receive the data processing instruction sent by the quick application engine through the extended interface configured to the quick application engine, the data processing instruction being sent by the quick application engine in response to a trigger operation in the operation interface, the operation interface Generated by the fast application engine, and the data processing instruction carries identification information of the target SDK.
  • Step S320 Obtain the corresponding target SDK plug-in based on the identification information.
  • Step S330 Read the version identifier of the fast application carried from the data processing instruction.
  • Step S340 Obtain the version identifier of the target SDK plug-in.
  • Step S350 Determine whether the version identifier of the quick application matches the version identifier of the target SDK plug-in.
  • Step S360 If it is determined that the version identifier of the quick application does not match the version identifier of the target SDK plug-in, and the version of the quick application is higher than the version of the target SDK plug-in, update the version of the target SDK plug-in To match the version of the quick application.
  • Step S361 Use the updated target SDK plug-in as a new target SDK plug-in.
  • Step S362 Invoke the new target SDK plug-in to execute the data processing instruction.
  • Step S370 If it is determined that the version identifier of the quick application does not match the version identifier of the target SDK plug-in, and the version of the quick application is lower than the version of the target SDK plug-in, call the target SDK plug-in to execute the Data processing instructions.
  • Step S380 If it is determined that the version identifier of the fast application matches the version identifier of the target SDK plug-in, call the target SDK plug-in to execute the data processing instruction.
  • the data processing method provided in this application enables Quick App to trigger the client to control the SDK plug-in based on a cross-application approach, thereby realizing that Quick App can call the SDK plug-in and greatly expanding the functions of Quick App. , In order to realize the call to other components in the mobile terminal through the fast application.
  • the version of the target SDK plug-in will be updated in time, avoiding data errors or data errors caused by inconsistencies between the version of the target SDK plug-in and the Quick App version The processing instruction failed to execute.
  • a data processing method provided by an embodiment of the present application is applied to a client, and the method includes:
  • Step S410 Receive a data processing instruction sent by the quick application engine through an extended interface configured to the quick application engine, the data processing instruction being sent by the quick application engine in response to a trigger operation in an operation interface, the operation interface Generated by the fast application engine, and the data processing instruction carries identification information of the target SDK.
  • Step S420 Obtain the corresponding target SDK plug-in based on the identification information.
  • Step S430 Determine whether the target SDK plug-in is loaded.
  • Step S440 If it is determined that it is not loaded, dynamically load the target SDK plug-in.
  • Step S441 After the dynamic loading of the target SDK plug-in is completed, call the target SDK plug-in to execute the data processing instruction.
  • Step S450 If it is determined that it has been loaded, call the target SDK plug-in to execute the data processing instruction.
  • the data processing method provided in this application enables Quick App to trigger the client to control the SDK plug-in based on a cross-application approach, thereby realizing that Quick App can call the SDK plug-in and greatly expanding the functions of Quick App. , In order to realize the call to other components in the mobile terminal through the fast application. At the same time, after the target SDK plug-in is obtained, even when it is detected that the target SDK plug-in is not loaded, the target SDK plug-in can be dynamically loaded.
  • the SDK plug-in executes the data processing instructions, which not only eliminates the need to embed the target SDK plug-in in the client at the very beginning, so as to reduce the control occupation of the client, and facilitate the client to be lighter, and it also improves the loading of the SDK plug-in flexibility.
  • a data processing method provided by an embodiment of the present application is applied to a client, and the method includes:
  • Step S510 Generate a data processing instruction in response to a touch operation in an operation interface, the operation interface being generated by the fast application engine.
  • Step S520 Call the extended interface configured by the client for the fast application engine, and send the data processing instruction to the client through the extended interface.
  • Step S530 Receive result information of executing the data processing instruction returned by the client based on the extended interface.
  • the data processing method provided in this application enables Quick App to trigger the client to control the SDK plug-in based on a cross-application approach, thereby realizing that Quick App can call the SDK plug-in and greatly expanding the functions of Quick App. , In order to realize the call to other components in the mobile terminal through the fast application.
  • a data processing device 600 provided by an embodiment of the present application runs on a mobile terminal, and the device 600 includes:
  • the data receiving unit 610 is configured to receive a data processing instruction sent by the quick application engine through an extended interface configured to the quick application engine, the data processing instruction being sent by the quick application engine in response to a trigger operation in the operation interface,
  • the operation interface is generated by the fast application engine, and the data processing instruction carries identification information of the target SDK.
  • the data receiving unit 610 is specifically configured to receive the data processing instruction sent by the fast application engine through an extended interface based on inter-process communication configured to the fast application engine.
  • the extended interface based on inter-process communication includes an AIDL channel interface.
  • the extended interface based on inter-process communication includes a localSocket interface.
  • the data detection unit 620 is configured to obtain the corresponding target SDK plug-in based on the identification information.
  • the data detection unit 620 is specifically configured to obtain the target SDK plug-in from multiple SDK plug-ins based on the data processing instruction, and the interface rules defined by each of the multiple SDK plug-ins are the same.
  • the SDK calling unit 630 is configured to call the target SDK plug-in to execute the data processing instruction.
  • the SDK calling unit 630 is specifically configured to call the target SDK plug-in based on the interface rules defined by the target SDK plug-in, so as to call the target SDK plug-in to execute the data processing instruction.
  • a data processing device 700 provided by an embodiment of the present application runs on a mobile terminal, and the device 700 includes:
  • the data receiving unit 710 is configured to receive a data processing instruction sent by the quick application engine through an extended interface configured to the quick application engine, the data processing instruction being sent by the quick application engine in response to a trigger operation in the operation interface,
  • the operation interface is generated by the fast application engine, and the data processing instruction carries identification information of the target SDK.
  • the data detection unit 720 is configured to obtain the corresponding target SDK plug-in based on the identification information.
  • the version obtaining unit 730 is configured to read the version identifier of the fast application carried in the data processing instruction.
  • the version obtaining unit 730 is further configured to obtain the version identifier of the target SDK plug-in.
  • the version determination unit 731 is configured to determine whether the version identifier of the quick application matches the version identifier of the target SDK plug-in.
  • the SDK calling unit 740 is configured to, if it is determined that the version identifier of the fast application matches the version identifier of the target SDK plug-in, call the target SDK plug-in to execute the data processing instruction.
  • the function acquiring unit 750 is configured to, if it is determined that the version identifier of the quick application does not match the version identifier of the target SDK plug-in, acquire the functions supported by the target SDK plug-in.
  • the function judgment unit 760 is configured to judge whether the target SDK plug-in can complete the data processing instruction based on the acquired functions supported by the target SDK plug-in;
  • the SDK calling unit 740 is further configured to call the target SDK plug-in to execute the data processing instruction if it is determined that the data processing instruction can be completed.
  • the information sending unit 770 is configured to, if it is determined that the data processing instruction cannot be completed, return prompt information of an operation error to the quick application based on the extended interface.
  • a data processing device 800 provided by an embodiment of the present application runs on a mobile terminal, and the device 800 includes:
  • the data receiving unit 810 is configured to receive a data processing instruction sent by the quick application engine through an extended interface configured to the quick application engine, the data processing instruction being sent by the quick application engine in response to a trigger operation in the operation interface,
  • the operation interface is generated by the fast application engine, and the data processing instruction carries identification information of the target SDK.
  • the data detection unit 820 is configured to obtain the corresponding target SDK plug-in based on the identification information.
  • the version obtaining unit 830 is configured to read the version identifier of the fast application carried in the data processing instruction.
  • the version obtaining unit 830 is further configured to obtain the version identifier of the target SDK plug-in.
  • the version determination unit 831 is configured to determine whether the version identifier of the quick application matches the version identifier of the target SDK plug-in.
  • the SDK update unit 840 is configured to: if it is determined that the version identifier of the quick app does not match the version identifier of the target SDK plug-in, and the version of the quick app is higher than the version of the target SDK plug-in, the target SDK The version of the plug-in is updated to match the version of the quick application.
  • the data detection unit 820 is also used to use the updated target SDK plug-in as a new target SDK plug-in.
  • the SDK calling unit 850 is configured to call the new target SDK plug-in to execute the data processing instruction.
  • the SDK calling unit 850 is configured to call the target SDK if it is determined that the version identifier of the quick application does not match the version identifier of the target SDK plug-in, and the version of the quick application is lower than the version of the target SDK plug-in
  • the plug-in executes the data processing instruction.
  • a data processing device 900 provided by an embodiment of the present application runs on a mobile terminal, and the device 900 includes:
  • the data receiving unit 910 is configured to receive a data processing instruction sent by the quick application engine through an extended interface configured to the quick application engine, the data processing instruction being sent by the quick application engine in response to a trigger operation in the operation interface,
  • the operation interface is generated by the fast application engine, and the data processing instruction carries identification information of the target SDK.
  • the data detection unit 920 is configured to obtain the corresponding target SDK plug-in based on the identification information.
  • the loading judgment unit 930 is used to judge whether the target SDK plug-in is loaded.
  • the SDK loading unit 940 is configured to dynamically load the target SDK plug-in if it is determined that it is not loaded.
  • the SDK calling unit 950 is configured to call the target SDK plug-in to execute the data processing instruction after the target SDK plug-in is dynamically loaded.
  • the SDK calling unit 950 is further configured to call the target SDK plug-in to execute the data processing instruction if it is determined that it has been loaded.
  • a data processing device 1000 provided by an embodiment of the present application runs on a mobile terminal.
  • the device 1000 includes:
  • the operation detection unit 1010 is configured to generate a data processing instruction in response to a touch operation in the operation interface.
  • the data sending unit 1020 is configured to call an extended interface configured by the client for the fast application engine, and send the data processing instruction to the client through the extended interface.
  • the data receiving unit 1030 is configured to receive the result information of executing the data processing instruction returned by the client based on the extended interface.
  • the data processing method, device, and mobile terminal provided by this application allow the client to configure the extension interface for the fast application engine, so that the client can control the SDK plug-in through the fast application.
  • the fast app engine receives the data processing instruction sent by the fast app engine in response to the touch operation in the fast app, obtains the corresponding target SDK plug-in based on the data processing instruction, and calls the target SDK The plug-in executes the data processing instruction.
  • the quick app triggers the client to control the SDK plug-in based on a cross-application method, and then realizes that the quick app can call the SDK plug-in, and greatly expands the function of the quick app to facilitate the realization of mobile Call other components in the terminal.
  • an embodiment of the present application also provides another mobile terminal 100 that can execute the aforementioned data processing method.
  • the mobile terminal 100 includes one or more (only one is shown in the figure) a processor 102, a memory 104, and a wireless module 106 coupled to each other.
  • the memory 104 stores a program that can execute the content in the foregoing embodiment, and the processor 102 can execute the program stored in the memory 104.
  • the processor 102 may include one or more processing cores.
  • the processor 102 uses various interfaces and lines to connect various parts of the entire mobile terminal 100, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 104, and calling data stored in the memory 104.
  • Various functions and processing data of the mobile terminal 100 may use at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PDA Programmable Logic Array
  • the processor 102 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), and a modem.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • modem modem
  • the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing of display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 102, but may be implemented by a communication chip alone.
  • the memory 104 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 104 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 104 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions for implementing the following method embodiments, etc.
  • the data storage area can also store data (such as phone book, audio and video data, chat record data) created by the terminal 100 during use.
  • the wireless module 106 is used to receive and send electromagnetic waves, and realize the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other equipment, such as communicating with an audio playback device.
  • the wireless module 106 may include various existing circuit elements for performing these functions, for example, an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a subscriber identity module (SIM) card, a memory, etc. .
  • SIM subscriber identity module
  • the wireless module 106 can communicate with various networks such as the Internet, an intranet, and a wireless network, or communicate with other devices through a wireless network.
  • the aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the wireless module 106 can exchange information with the base station.
  • FIG. 21 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable medium 1100 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
  • the computer-readable storage medium 1100 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 1100 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 1100 has a storage space for executing the program code 810 of any method step in the foregoing method. These program codes can be read out from or written into one or more computer program products.
  • the program code 1110 may be compressed in a suitable form, for example.

Abstract

Disclosed in embodiments of the present application are a data processing method and apparatus, and a mobile terminal. The method comprises: receiving, by means of an expansion interface configured for a fast application engine, a data processing instruction sent by the fast application engine, wherein the data processing instruction is sent by the fast application engine in response to a trigger operation in an operation interface, the operation interface is generated by the fast application engine, and the data processing instruction carries identification information of a target SDK; obtaining a corresponding target SDK plug-in on the basis of the identification information; and calling the target SDK plug-in to execute the data processing instruction. According to the method, the fast application triggers a client to control the SDK plug-in on the basis of a cross-application mode, so that the fast application calls the SDK plug-in, and a function of the fast application is greatly expanded, so as to call other components in the mobile terminal by means of the fast application.

Description

数据处理方法、装置以及移动终端Data processing method, device and mobile terminal 技术领域Technical field
本申请涉及物联网领域,更具体地,涉及一种数据处理方法、装置以及移动终端。This application relates to the field of Internet of Things, and more specifically, to a data processing method, device, and mobile terminal.
背景技术Background technique
快应用是与操作系统深度整合的提供场景化体验的新型应用。它和小程序一样,都有免安装,直接打开的特点。随着快应用的普及,快应用可以被运用到控制智能家居设备,然而快应用还无法实现灵活的对多个厂家的设备进行控制,用户体验还有待提升。Quick application is a new type of application that is deeply integrated with the operating system and provides a scene-based experience. Like small programs, it has the features of free installation and direct opening. With the popularization of fast apps, fast apps can be used to control smart home devices. However, fast apps have not yet been able to flexibly control devices from multiple manufacturers, and the user experience needs to be improved.
发明内容Summary of the invention
鉴于上述问题,本申请提出了一种数据处理方法、装置以及移动终端,以改善上述问题。In view of the above problems, this application proposes a data processing method, device and mobile terminal to improve the above problems.
第一方面,本申请提供了一种数据处理方法,应用于客户端,所述方法包括:通过配置给快应用引擎的扩展接口,接收所述快应用引擎发送的数据处理指令,所述数据处理指令为所述快应用引擎响应于操作界面中的触发操作发送,所述操作界面由所述快应用引擎生成,所述数据处理指令携带有目标SDK的标识信息;基于所述标识信息,获取对应的目标SDK插件;调用所述目标SDK插件执行所述数据处理指令。In the first aspect, this application provides a data processing method applied to a client. The method includes: receiving a data processing instruction sent by the fast application engine through an extension interface configured to the fast application engine, and the data processing The instruction is sent by the quick application engine in response to a trigger operation in the operation interface, the operation interface is generated by the quick application engine, the data processing instruction carries the identification information of the target SDK; based on the identification information, the corresponding The target SDK plug-in; call the target SDK plug-in to execute the data processing instruction.
第二方面,本申请提供了一种数据处理方法,应用于快应用引擎,所述方法包括:响应于操作界面中的触控操作生成数据处理指令,所述操作界面由所述快应用引擎生成;调用客户端配置的给所述快应用引擎的扩展接口,通过所述扩展接口将所述数据处理指令发送给所述客户端;接收所述客户端基于所述扩展接口返回的执行所述数据处理指令的结果信息。In a second aspect, this application provides a data processing method applied to a fast application engine, the method comprising: generating a data processing instruction in response to a touch operation in an operation interface, the operation interface being generated by the fast application engine Call the extension interface configured by the client for the fast application engine, send the data processing instruction to the client through the extension interface; receive the execution of the data returned by the client based on the extension interface The result information of the processing instruction.
第三方面,本申请提供了一种数据处理装置,运行于移动终端,所述装置包括:数据接收单元,用于通过配置给快应用引擎的扩展接口,接收所述快应用引擎发送的数据处理指令,所述数据处理指令为所述快应用引擎响应于操作界面中的触发操作发送,所述操作界面由所述快应用引擎生成,所述数据处理指令携带有目标SDK的标识信息;数据检测单元,用于基于所述标识信息,获取对应的目标SDK插件;SDK调用单元,用于调用所述目标SDK插件执行所述数据处理指令。In a third aspect, the present application provides a data processing device that runs on a mobile terminal. The device includes: a data receiving unit configured to receive data processing sent by the quick application engine through an extension interface configured to the quick application engine Instruction, the data processing instruction is sent by the fast application engine in response to a trigger operation in an operation interface, the operation interface is generated by the fast application engine, and the data processing instruction carries identification information of the target SDK; data detection The unit is used to obtain the corresponding target SDK plug-in based on the identification information; the SDK calling unit is used to call the target SDK plug-in to execute the data processing instruction.
第四方面,本申请提供了一种数据处理装置,运行于移动终端,所述装置包括:操作检测单元,用于响应于操作界面中的触控操作生成数据处理指令,所述操作界面由快应用引擎生成;数据发送单元,用于调用客户端配置的给所述快应用引擎的扩展接口,通过所述扩展接口将所述数据处理指令发送给所述客户端;数据接收单元,用于接收所述客户端基于所述扩展接口返回的执行所述数据处理指令的结果信息。In a fourth aspect, the present application provides a data processing device that runs on a mobile terminal. The device includes an operation detection unit for generating data processing instructions in response to a touch operation in an operation interface. Application engine generation; data sending unit, used to call the extended interface configured by the client to the fast application engine, and send the data processing instruction to the client through the extended interface; data receiving unit, used to receive The client is based on the result information of executing the data processing instruction returned by the extended interface.
第五方面,本申请提供了一种移动终端,包括一个或多个处理器以及存储器;一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述的方法。In a fifth aspect, the present application provides a mobile terminal, including one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be The one or more processors execute, and the one or more programs are configured to execute the above methods.
第六方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码运行时执行上述的方法。In a sixth aspect, the present application provides a computer-readable storage medium having program code stored in the computer-readable storage medium, wherein the above method is executed when the program code is running.
本申请提供的一种数据处理方法、装置以及移动终端,通过在客户端中给快应用引擎配置扩展接口的方式,使得在通过快应用控制SDK插件的过程中,客户端可以通过配置给快应用引擎的扩展接口,接收所述快应用引擎响应于快应用中的触控操作后发送的数据处理指令,基于所述数据处理指令获取对应的目标SDK插件,调用所述目标SDK插件执行所述数据处理指令。从而使得快应用基于跨应用的方式来触发客户端对SDK插件进行控制,进而实现了快应用对SDK插件进行调用,对快应用的功能进行了极大的扩展,以便于通过快应用实现对移动终端中的其他组件进行调用。The data processing method, device, and mobile terminal provided by this application, by configuring the extension interface for the fast application engine in the client, enable the client to be configured to the fast application during the process of controlling the SDK plug-in through the fast application The extension interface of the engine, which receives the data processing instruction sent by the quick application engine in response to the touch operation in the quick application, obtains the corresponding target SDK plug-in based on the data processing instruction, and calls the target SDK plug-in to execute the data Processing instructions. As a result, the quick app triggers the client to control the SDK plug-in based on a cross-application method, and then realizes that the quick app can call the SDK plug-in, and greatly expands the function of the quick app to facilitate the realization of mobile Call other components in the terminal.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
图1示出了本申请实施例提出的一种物联网的架构示意图;FIG. 1 shows a schematic diagram of the architecture of the Internet of Things proposed in an embodiment of the present application;
图2示出了本申请实施例提出的另一种物联网的架构示意图;FIG. 2 shows a schematic diagram of another architecture of the Internet of Things proposed in an embodiment of the present application;
图3示出了本申请实施例提出的再一种物联网的架构示意图;FIG. 3 shows a schematic diagram of yet another architecture of the Internet of Things proposed by an embodiment of the present application;
图4示出了本申请实施例提出的一种快应用引擎架构的示意图;FIG. 4 shows a schematic diagram of a fast application engine architecture proposed by an embodiment of the present application;
图5示出了本申请实施例提出的一种客户端与服务器通信方式的示意图;FIG. 5 shows a schematic diagram of a communication mode between a client and a server proposed by an embodiment of the present application;
图6示出了本申请实施例提出的数据处理方法运行环境示意图;FIG. 6 shows a schematic diagram of the operating environment of the data processing method proposed in an embodiment of the present application;
图7示出了本申请实施例提出的一种数据处理方法的流程图;FIG. 7 shows a flowchart of a data processing method proposed in an embodiment of the present application;
图8示出了本申请实施例提出的一种数据处理方法中一种操作界面的入口的示意图;FIG. 8 shows a schematic diagram of an entry of an operation interface in a data processing method proposed in an embodiment of the present application;
图9示出了本申请实施例提出的一种数据处理方法中另一种操作界面的入口的示意图;FIG. 9 shows a schematic diagram of an entry of another operation interface in a data processing method proposed by an embodiment of the present application;
图10示出了本申请实施例提出的一种数据处理方法中再一种操作界面的入口的示意图;FIG. 10 shows a schematic diagram of an entry of yet another operation interface in a data processing method proposed in an embodiment of the present application;
图11示出了本申请另一实施例提出的一种数据处理方法的流程图;FIG. 11 shows a flowchart of a data processing method proposed by another embodiment of the present application;
图12示出了本申请再一实施例提出的一种数据处理方法的流程图;FIG. 12 shows a flowchart of a data processing method proposed in another embodiment of the present application;
图13示出了本申请又一实施例提出的一种数据处理方法的流程图;FIG. 13 shows a flowchart of a data processing method proposed by another embodiment of the present application;
图14示出了本申请又一实施例提出的一种数据处理方法的流程图;FIG. 14 shows a flowchart of a data processing method proposed by another embodiment of the present application;
图15示出了本申请实施例提出的一种数据处理装置的结构框图;FIG. 15 shows a structural block diagram of a data processing device proposed in an embodiment of the present application;
图16示出了本申请又一实施例提出的一种数据处理装置的结构框图;FIG. 16 shows a structural block diagram of a data processing device proposed by another embodiment of the present application;
图17示出了本申请再一实施例提出的一种数据处理装置的结构框图;FIG. 17 shows a structural block diagram of a data processing device proposed by another embodiment of the present application;
图18示出了本申请又一实施例提出的一种数据处理装置的结构框图;FIG. 18 shows a structural block diagram of a data processing device proposed by another embodiment of the present application;
图19示出了本申请又一实施例提出的一种数据处理装置的结构框图;FIG. 19 shows a structural block diagram of a data processing device proposed by another embodiment of the present application;
图20示出了本申请的用于执行根据本申请实施例的数据处理方法的移动终端的结构框图;FIG. 20 shows a structural block diagram of a mobile terminal of the present application for executing the data processing method according to an embodiment of the present application;
图21是本申请实施例的用于保存或者携带实现根据本申请实施例的设备控制方法的程序代码的存储单元。Fig. 21 is a storage unit for storing or carrying program codes for implementing the device control method according to the embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of this application.
物联网是在“互联网概念”的基础上,将其用户端延伸和扩展到任何物品与物品之间,进行信息交换和通信的一种网络概念。随着物联网技术的发展,在物联网系统中可以配置一些场景。对于配置的场景,可以涉及到多个受控设备,而且多个受控设备之间具有一定的联动关系,能够协同工作。The Internet of Things is a network concept that extends and expands its user end to any item and item for information exchange and communication based on the "Internet concept". With the development of IoT technology, some scenarios can be configured in the IoT system. For the configuration scenario, multiple controlled devices may be involved, and multiple controlled devices have a certain linkage relationship and can work together.
其中,受控设备可以为投影仪、投屏幕、智能灯、智能插座、人体传感器、门窗传感器、无线开关、空调伴侣、烟雾报警器、智能窗帘电机、以及空气净化器、智能音箱等移动终端。在一种方式中,如图1所示,起控制作用的移动终端100可以通过直接与路由器90建立无线连接的方式实现与受控设备99之间进行数据交互。再者,移动终端100也可以通过与云端91建立连接后,通过云端91与路由器90之间的数据链路实现与受控设备99之间的数据交互。Among them, the controlled devices can be projectors, projection screens, smart lights, smart sockets, human sensors, door and window sensors, wireless switches, air conditioners, smoke alarms, smart curtain motors, and mobile terminals such as air purifiers and smart speakers. In one manner, as shown in FIG. 1, the mobile terminal 100 that plays a control role can implement data interaction with the controlled device 99 by directly establishing a wireless connection with the router 90. Furthermore, the mobile terminal 100 can also realize data interaction with the controlled device 99 through the data link between the cloud 91 and the router 90 after establishing a connection with the cloud 91.
作为另外一种方式,如图2所示,移动终端100直接建立与第一云91a之间的数据交互,而再基于第一云91a与第二云91b之间的数据交互,实现移动终端100与第二云91b之间的数据交互,然后再第二云91b可以与受控设备99进行数据交互的情况下,移动终端100进而实现与受控设备99之间的数据交互。As another way, as shown in FIG. 2, the mobile terminal 100 directly establishes data interaction with the first cloud 91a, and then implements the mobile terminal 100 based on the data interaction between the first cloud 91a and the second cloud 91b. Data interaction with the second cloud 91b, and then the second cloud 91b can perform data interaction with the controlled device 99, the mobile terminal 100 further realizes the data interaction with the controlled device 99.
作为再一种方式,如图3所示,受控设备99可以通过网关98与路由器90建立无线连接。其中,数据交互可以包括移动终端向受控设备发送控制指令,还可以包括受控设备向移动终端返回状态信息或者返回指令执行结果等。其中,移动终端与受控设备之间的数据交互可以由移动终端中安装的客户端来触发。As another way, as shown in FIG. 3, the controlled device 99 may establish a wireless connection with the router 90 through the gateway 98. Among them, the data interaction may include the mobile terminal sending a control instruction to the controlled device, and may also include the controlled device returning status information to the mobile terminal or returning the instruction execution result. Among them, the data interaction between the mobile terminal and the controlled device can be triggered by a client installed in the mobile terminal.
而随着快应用的普及,移动终端开发者更期望通过快应用来实现与前述客户端相同的功能,以便提升智能家居功能的开发效率,并同时节约移动终端的存储空间。With the popularization of fast apps, mobile terminal developers expect to implement the same functions as the aforementioned clients through fast apps, so as to improve the development efficiency of smart home functions and at the same time save the storage space of mobile terminals.
其中,快应用是一种基于终端设备硬件平台的新型应用形态,无需安装,即点即用,又兼具原生应用体验(性能、系统整合、交互等)。如图4所示的快应用引擎的结构示意图,快应用的前端 设计借鉴并整合了主流前端框架(Vue,React等)的设计思路:以组件化的方式构建应用,以数据绑定为核心的MVVM设计模式,以V-DOM的方式提升性能,同时选择了简洁清晰的类Vue的模板。Among them, the fast application is a new application form based on the hardware platform of the terminal device. It does not need to be installed, it is click-to-use, and it has the original application experience (performance, system integration, interaction, etc.). As shown in Figure 4, the structure diagram of the fast application engine, the front-end design of fast application draws on and integrates the design ideas of mainstream front-end frameworks (Vue, React, etc.): build applications in a componentized way, with data binding as the core The MVVM design mode uses V-DOM to improve performance, while choosing a concise and clear Vue-like template.
为了便于进行数据的交互,各个厂商都会各自开发自己的SDK插件以便移动终端中的客户端调用。当客户端加载厂商的SDK插件以后,便可以调用所加载的SDK插件,进而通过该SDK插件与厂商的服务器之间进行数据交互。例如,如图5所示,在图5所示的客户端110中加载有厂商A的SDK插件111以及厂商B的SDK插件112,其中客户端110可以通过调用厂商A的SDK插件来与厂商A的服务器210进行数据交互,而客户端110可以通过调用厂商B的SDK插件来与厂商B的服务器220进行数据交互。然而,发明人发现,快应用无法直接调用厂商的SDK插件,并且快应用与可以加载SDK插件的客户端之间无法直接通信,造成快应用也无法通过客户端来调用SDK插件,从而使得快应用无法实现与客户端具备相同的功能。In order to facilitate data interaction, each manufacturer will develop its own SDK plug-in for the client in the mobile terminal to call. After the client loads the manufacturer's SDK plug-in, it can call the loaded SDK plug-in, and then interact with the manufacturer's server through the SDK plug-in. For example, as shown in FIG. 5, the client 110 shown in FIG. 5 is loaded with the SDK plug-in 111 of manufacturer A and the SDK plug-in 112 of manufacturer B. The client 110 can communicate with manufacturer A by calling the SDK plug-in of manufacturer A. The server 210 of manufacturer B performs data interaction, and the client 110 can interact with the server 220 of manufacturer B by calling the SDK plug-in of manufacturer B. However, the inventor found that Quick App cannot directly call the manufacturer’s SDK plug-in, and there is no direct communication between Quick App and the client that can load the SDK plug-in. As a result, Quick App cannot call the SDK plug-in through the client, thus making Quick App. Can not achieve the same function as the client.
因此,发明人提出了本申请中可以使得快应用基于跨应用的方式来触发客户端对SDK插件进行控制,进而实现了快应用对SDK插件进行调用,对快应用的功能进行了极大的扩展,以便于通过快应用实现对移动终端中的其他组件进行调用的数据处理方法、装置以及移动终端。Therefore, the inventor proposes that in this application, Quick App can trigger the client to control the SDK plug-in based on a cross-application approach, thereby realizing that Quick App can call the SDK plug-in and greatly expanding the functions of Quick App. , So that the data processing method, device and mobile terminal for calling other components in the mobile terminal can be realized through the quick application.
下面先结合附图对本申请实施例的应用环境进行介绍。The following first introduces the application environment of the embodiments of the present application in conjunction with the drawings.
如图6所示,在图所示的移动终端100中,运行有快应用以及客户端110。其中快应用是运行于快应用引擎上,并且在快应用引擎中设置有客户端提供的扩展接口97。而在客户端110中设有与扩展接口97通信的扩展接口96。而客户端110可以通过扩展接口调用各个厂商的SDK插件。例如,可以调用图中的厂商A的SDK插件111、厂商B的SDK插件112以及厂商C的SDK插件113。在这种情况下,在快应用中触发的数据处理指令可以通过设置在快应用引擎中的扩展接口97传递到客户端中的扩展接口96,进而再将数据处理指令传输给各个厂商的SDK插件。As shown in FIG. 6, in the mobile terminal 100 shown in the figure, a fast application and a client 110 are running. The fast application runs on the fast application engine, and an extended interface 97 provided by the client is set in the fast application engine. The client 110 is provided with an extension interface 96 that communicates with the extension interface 97. The client 110 can call SDK plug-ins of various manufacturers through an extended interface. For example, the SDK plug-in 111 of manufacturer A, the SDK plug-in 112 of manufacturer B, and the SDK plug-in 113 of manufacturer C in the figure can be called. In this case, the data processing instructions triggered in the fast application can be transferred to the extended interface 96 in the client through the extension interface 97 set in the fast application engine, and then the data processing instructions are transmitted to the SDK plug-ins of various manufacturers .
下面将结合附图具体描述本申请的各实施例。The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
请参阅图7,本申请实施例提供的一种数据处理方法,应用于客户端,所述方法包括:Please refer to FIG. 7, a data processing method provided by an embodiment of the present application is applied to a client, and the method includes:
步骤S110:通过配置给快应用引擎的扩展接口,接收所述快应用引擎发送的数据处理指令,所述数据处理指令为所述快应用引擎响应于操作界面中的触发操作发送,所述操作界面由所述快应用引擎生成,所述数据处理指令携带有目标SDK的标识信息。Step S110: Receive a data processing instruction sent by the quick application engine through the extended interface configured to the quick application engine, the data processing instruction being sent by the quick application engine in response to a trigger operation in the operation interface, the operation interface Generated by the fast application engine, and the data processing instruction carries identification information of the target SDK.
其中,可以用于操作的操作界面是由快应用引擎渲染生成的,而在基于快应用的操作方式下,移动终端可以有多种触发显示该操作界面的方式。Among them, the operation interface that can be used for operation is rendered and generated by the quick application engine, and in the quick application-based operation mode, the mobile terminal may have multiple ways to trigger the display of the operation interface.
作为一种方式,移动终端中可以配置一个快应用客户端,从而可以通过在该快应用客户端的界面中进入其他应用程序对应的操作界面。可以理解的是,这里的快应用客户端和本实施例所提供的数据处理方法所运行的客户端不同。As a way, a quick application client can be configured in the mobile terminal, so that the operation interface corresponding to other applications can be entered through the interface of the quick application client. It can be understood that the fast application client here is different from the client run by the data processing method provided in this embodiment.
例如,图8所示的操作界面95,在该操作界面95中,显示有应用程序A、应用程序B以及应用程序C的操作界面入口控件,可以理解的是,这里的应用程序A、应用程序B以及应用程序C的操作界面是指由快应用引擎生成的操作界面。在这种情况下,当快应用客户端检测到用户触控了应用程序A的入口控件后,快应用客户端就可以加载显示应用程序A的操作界面,而当快应用客户端检测到用户触控了应用程序B的入口控件后,快应用客户端就可以加载显示应用程序B的操作界面,快应用客户端检测到用户触控了应用程序C的入口控件后,快应用客户端就可以加载显示应用程序C的操作界面。For example, the operation interface 95 shown in FIG. 8, in which the operation interface entry controls of application A, application B, and application C are displayed, it can be understood that application A, application The operation interface of B and application C refers to the operation interface generated by the fast application engine. In this case, when the fast application client detects that the user has touched the entry control of application A, the fast application client can load and display the operation interface of application A, and the fast application client detects that the user has touched After controlling the entry control of application B, the fast application client can load and display the operation interface of application B. After the fast application client detects that the user has touched the entry control of application C, the fast application client can load The operation interface of application C is displayed.
作为另外一种方式,可以在如图9所示的负一屏的界面94中显示一个快应用的卡片93,在该卡片中显示各个应用程序对应的由快应用引擎生成的操作界面的入口控件。例如,依然可以在卡片93中显示应用程序A、应用程序B以及应用程序C的操作界面入口控件。相应的,在移动终端检测到卡片中的应用程序A的入口控件被触控以后,会触发快应用客户端来加载显示应用程序A的操作界面,而移动终端检测到卡片中的应用程序B的入口控件被触控以后,会触发快应用客户端来加载显示应用程序B的操作界面,那么当移动终端检测到卡片中的应用程序C的入口控件被触控以后,会触发快应用客户端来加载显示应用程序C的操作界面。As another way, a quick application card 93 can be displayed in the negative one-screen interface 94 as shown in FIG. 9, and the entry controls of the operation interface generated by the quick application engine corresponding to each application program are displayed in the card. . For example, the operation interface entry controls of application A, application B, and application C can still be displayed in card 93. Correspondingly, after the mobile terminal detects that the entry control of application A in the card is touched, it triggers the quick application client to load and display the operation interface of application A, and the mobile terminal detects that the entry control of application B in the card After the entry control is touched, the quick application client will be triggered to load and display the operation interface of application B. Then when the mobile terminal detects that the entry control of application C in the card is touched, it will trigger the quick application client to Load and display the operation interface of application C.
而作为再一种方式,可以在其他的客户端中,例如,本申请实施例提供的数据处理方法所运行的客户端中设置入口控件。例如,如图10所示,在本申请实施例提供的数据处理方法所运行的客户端为智能家居客户端的情况下,在该智能家居客户端的界面92中可以显示有厂商A、厂商B以及厂商C对应的操作界面的入口控件。可以理解的是,正如前述图6中所示的内容,操作界面是运行于快应用引擎之上的,那么基于这种情况,客户端在检测到作用于名称为“厂商A”的入口控件的触控操作以后,就可以通过配置给快应用引擎的扩展接口(后续会再详细介绍)将显示厂商A对应的操作界面的指令发送给快应用引擎,从而触发快应用引擎来渲染显示厂商A对应的操作界面。As another way, the entry control can be set in other clients, for example, the client on which the data processing method provided in the embodiment of the present application runs. For example, as shown in FIG. 10, in the case where the client terminal on which the data processing method provided in the embodiment of the present application runs is a smart home client, the interface 92 of the smart home client may display manufacturer A, manufacturer B, and manufacturer C corresponds to the entry control of the operation interface. It is understandable that, just like the content shown in Figure 6 above, the operation interface is running on the fast application engine. Based on this situation, the client detects that it is acting on the entry control named "Vendor A". After the touch operation, you can send instructions to display the operation interface corresponding to manufacturer A to the fast application engine through the extended interface configured to the fast application engine (more details will be introduced later), thereby triggering the fast application engine to render the display corresponding to manufacturer A The operation interface.
其中,可以理解的是,如果快应用引擎在渲染显示厂商A的操作界面过程中所需的数据(例如,界面UI数据或者设备状态数据等),可以由快应用引擎通过前述的扩展接口向智能家居客户端请求,而智能家居客户端在接收到该请求以后从加载的厂商A对应的SDK插件中进行调取,并再通过扩展 接口返回给快应用引擎。其中,SDK插件对于所需的数据如果判定可以从本地获取,那么可以直接在本地查找(例如,UI数据可能已经封装在SDK插件内),而如果判定需要从服务器获取(例如,设备状态数据等),那么就可以如图5所示的向对应的厂商服务器发送数据获取请求。Among them, it can be understood that if the fast application engine renders and displays the data (for example, interface UI data or device status data, etc.) required in the process of rendering and displaying the operation interface of manufacturer A, the fast application engine can be transferred to the intelligent The home client requests, and the smart home client calls the SDK plug-in corresponding to vendor A after receiving the request, and then returns it to the fast application engine through the extended interface. Among them, if the SDK plug-in determines that the required data can be obtained locally, it can be directly searched locally (for example, UI data may have been encapsulated in the SDK plug-in), and if it is determined that it needs to be obtained from the server (for example, device status data, etc.) ), then you can send a data acquisition request to the corresponding vendor server as shown in Figure 5.
需要说明的是,在一种方式中,快应用引擎和客户端是相对独立运行的两个应用程序,那么在这种情况下,快应用引擎和客户端之间的扩展接口为基于进程间通信的扩展接口。可选的,所述基于进程间通信的扩展接口包括AIDL通道接口。可选的,所述基于进程间通信的扩展接口包括localSocket接口。It should be noted that in one way, the fast application engine and the client are two applications that run relatively independently. In this case, the extended interface between the fast application engine and the client is based on inter-process communication The expansion interface. Optionally, the extended interface based on inter-process communication includes an AIDL channel interface. Optionally, the extended interface based on inter-process communication includes a localSocket interface.
在AIDL通道接口这种实现方式中,快应用引擎可以通过客户端提供的jar包的中的接口函数来调用客户端,并且将所要执行的数据处理指令以参数的形式写入到接口函数中,进而使得客户端可以获取到参数形式的数据处理指令。再者,作为一种提升安全性的方式,快应用引擎可以通过onTransact回调中对包名和应用程序的签名判断使得没有认证的应用程序无法访问AIDL通道接口。In the implementation of the AIDL channel interface, the fast application engine can call the client through the interface function in the jar package provided by the client, and write the data processing instructions to be executed into the interface function in the form of parameters. In turn, the client can obtain data processing instructions in the form of parameters. Furthermore, as a way to improve security, the fast application engine can judge the package name and application signature in the onTransact callback so that applications without authentication cannot access the AIDL channel interface.
当显示操作界面以后,用户可以通过操作该操作界面实现设备的配网、控制等。其中,作为一种方式,不同的快应用所对应的操作对象不同。After the operation interface is displayed, the user can realize the network distribution and control of the equipment by operating the operation interface. Among them, as a way, different fast applications correspond to different operation objects.
例如,如果是通过图10中所示的厂商A的入口控件所进入到的操作界面,那么所执行的操作是对厂商A的设备做出的,而若是通过图10中所示的厂商B的入口控件所进入到的操作界面,那么所执行的操作是对厂商B的设备做出的。可以理解的是,对于不同厂商的设备的数据处理指令,客户端后续会调用不同厂商的SDK插件来执行,那么为了便于后续客户端区分数据处理指令所要操作的厂商设备,那么在快应用引擎生成数据处理指令的过程中,会在数据处理指令中加入触发生成该数据处理指令的快应用的标识信息。该标识信息可以为移动终端所分配的唯一性标识符,也可以为快应用的包名。For example, if you enter the operation interface through the entry control of manufacturer A shown in Figure 10, then the executed operation is made on the equipment of manufacturer A, and if it is through manufacturer B shown in Figure 10 The operation interface entered by the entry control, then the operation performed is made on the equipment of manufacturer B. It is understandable that for the data processing instructions of devices of different manufacturers, the client will subsequently call the SDK plug-ins of different manufacturers to execute, so in order to facilitate the subsequent client to distinguish the manufacturer’s equipment to be operated by the data processing instructions, then generate in the fast application engine In the process of the data processing instruction, the identification information of the fast application that triggers the generation of the data processing instruction is added to the data processing instruction. The identification information may be a unique identifier allocated by the mobile terminal, or may be a package name of the quick application.
步骤S120:基于所述标识信息,获取对应的目标SDK插件。Step S120: Obtain a corresponding target SDK plug-in based on the identification information.
可以理解的是,在本申请实施例中快应用可以实现对多种类别的应用程序进行调用或者对多个厂商的设备的进行控制。而在对多个厂商的设备进行控制的过程中,是通过调用客户端中加载的多个厂商各自的SDK插件来实现的。那么客户端在通过提供给快应用引擎接收到数据处理指令后,会首先从该数据处理指令中提取出SDK插件的标识信息,然后从之前记录的多个SDK插件中查找匹配的SDK插件作为目标SDK插件。It is understandable that, in the embodiments of the present application, the fast application can implement calling applications of multiple types or controlling devices of multiple manufacturers. In the process of controlling the devices of multiple vendors, it is implemented by calling the SDK plug-ins of multiple vendors loaded in the client. Then, after the client receives the data processing instruction by providing it to the fast application engine, it will first extract the identification information of the SDK plug-in from the data processing instruction, and then find the matching SDK plug-in from the multiple SDK plug-ins recorded before as the target SDK plugin.
其中,作为一种方式,客户端可以在加载某个厂商的SDK插件后就将其所下载的SDK插件进行记录。也可以在将某个下载的SDK插件进行加载以后再进行记录。那么以包名为例,快应用对于记录的属于某个厂商的SDK插件,会对应存储该厂商的快应用的包名,然后再获取到数据处理指令后,再根据从数据处理指令中提取的包名来识别对应的目标SDK插件。Among them, as a way, the client can record the downloaded SDK plug-in after loading the SDK plug-in of a certain manufacturer. You can also record after loading a downloaded SDK plug-in. Then take the package name as an example. For the recorded SDK plug-ins belonging to a certain vendor, QuickApp will store the package name of the vendor’s QuickApp, and then obtain the data processing instruction, and then according to the extracted from the data processing instruction Package name to identify the corresponding target SDK plug-in.
步骤S130:调用所述目标SDK插件执行所述数据处理指令。Step S130: Call the target SDK plug-in to execute the data processing instruction.
可以理解的是,SDK插件的内部都封装有一些软件函数,通过该软件函数的运行可以实现对应的功能。而为了便于外部程序调用SDK插件,SDK插件会暴露其接口,以便通过该接口对SDK插件进行调用。在本申请的实施例中,为了便于统一的进行调用,不同厂商的SDK插件的接口均是按照统一的设定规则封装的。也就是不同的厂商的SDK插件的接口规则是相同的。那么客户端在调用目标SDK插件的过程中,是基于所述目标SDK插件所定义的接口规则调用所述目标SDK插件,以调用所述目标SDK插件执行所述数据处理指令。It is understandable that some software functions are encapsulated inside the SDK plug-in, and the corresponding functions can be realized through the operation of the software functions. In order to facilitate the external program to call the SDK plug-in, the SDK plug-in will expose its interface so that the SDK plug-in can be called through the interface. In the embodiments of the present application, in order to facilitate unified calls, the interfaces of SDK plug-ins of different vendors are all packaged according to unified setting rules. That is, the interface rules of SDK plug-ins of different manufacturers are the same. Then, in the process of calling the target SDK plug-in, the client invokes the target SDK plug-in based on the interface rules defined by the target SDK plug-in, so as to call the target SDK plug-in to execute the data processing instruction.
需要说明的是,对于客户端中所调用的不同的SDK插件除了可以是属于不同厂商的SDK插件以外,还可以使属于不同设备的SDK插件,也可以是属于不同应用程序的SDK插件。对于客户端中所调用的不同的SDK插件的区别除了厂商、设备以及应用程序外也还可以有其他的区别方式,本申请实施例不做具体限定。It should be noted that, in addition to the SDK plugins belonging to different manufacturers, the different SDK plugins called in the client can also be SDK plugins belonging to different devices, or SDK plugins belonging to different applications. For the difference between the different SDK plug-ins called in the client, besides the manufacturer, the device, and the application, there may also be other different ways, which are not specifically limited in the embodiment of the present application.
需要说明的是,快应用引擎和执行本申请实施例中的数据处理方法的客户端可以是两个独立运行的应用程序,也可以是快应用引擎嵌设在本申请实施例中的数据处理方法的客户端中,即该客户端包括快应用引擎。It should be noted that the fast application engine and the client that executes the data processing method in the embodiment of this application can be two independently running applications, or the fast application engine is embedded in the data processing method in the embodiment of this application. In the client, that is, the client includes the fast application engine.
本申请提供的一种数据处理方法,通过在客户端中给快应用引擎配置扩展接口的方式,使得在通过快应用控制SDK插件的过程中,客户端可以通过配置给快应用引擎的扩展接口,接收所述快应用引擎响应于快应用中的触控操作后发送的数据处理指令,基于所述数据处理指令获取对应的目标SDK插件,调用所述目标SDK插件执行所述数据处理指令。从而使得快应用基于跨应用的方式来触发客户端对SDK插件进行控制,进而实现了快应用对SDK插件进行调用,对快应用的功能进行了极大的扩展,以便于通过快应用实现对移动终端中的其他组件进行调用。This application provides a data processing method that configures an extended interface for the fast application engine in the client, so that in the process of controlling the SDK plug-in through the fast application, the client can use the extended interface configured to the fast application engine. Receive a data processing instruction sent by the quick application engine in response to a touch operation in the quick application, obtain a corresponding target SDK plug-in based on the data processing instruction, and call the target SDK plug-in to execute the data processing instruction. As a result, the quick app triggers the client to control the SDK plug-in based on a cross-application method, and then realizes that the quick app can call the SDK plug-in, and greatly expands the function of the quick app to facilitate the realization of mobile Call other components in the terminal.
请参阅图11,本申请实施例提供的一种数据处理方法,应用于客户端,所述方法包括:Referring to FIG. 11, a data processing method provided by an embodiment of the present application is applied to a client, and the method includes:
步骤S210:通过配置给快应用引擎的扩展接口,接收所述快应用引擎发送的数据处理指令,所述数据处理指令为所述快应用引擎响应于操作界面中的触发操作发送,所述操作界面由所述快应用引擎生 成,所述数据处理指令携带有目标SDK的标识信息。Step S210: Receive a data processing instruction sent by the quick application engine through the extended interface configured to the quick application engine, the data processing instruction being sent by the quick application engine in response to a trigger operation in the operation interface, the operation interface Generated by the fast application engine, and the data processing instruction carries identification information of the target SDK.
步骤S220:基于所述标识信息,获取对应的目标SDK插件。Step S220: Obtain the corresponding target SDK plug-in based on the identification information.
步骤S230:从所述数据处理指令中读取携带的所述快应用的版本标识。Step S230: Read the version identifier of the fast application carried from the data processing instruction.
步骤S240:获取所述目标SDK插件的版本标识。Step S240: Obtain the version identifier of the target SDK plug-in.
步骤S250:判断所述快应用的版本标识与所述目标SDK插件的版本标识是否匹配。Step S250: Determine whether the version identifier of the quick application matches the version identifier of the target SDK plug-in.
随着快应用的更新,不同厂商的快应用或者不同设备的快应用可以随着升级。而在升级之后的快应用可以具备更多的功能。可以理解的是,本申请实施例中的快应用是通过调用客户端中SDK插件来执行数据处理指令的,那么如果操作界面中所展示的功能,实际上其对应的目标SDK插件完成不了,那么就可能会造成数据错误,进而影响用户体验。例如,在操作界面上显示有设备状态获取这个功能信息,然而若该快应用所对应的SDK插件并没有具备向服务器发送设备状态获取的句柄的情况下,SDK插件是无法执行该触控设备状态获取后生成的数据处理指令的。而造成同一个厂商或者同一个设备对应的SDK插件的版本与快应用版本不一致的情况可能是因为,移动终端没有及时下载最新的版本或者更新过程中发生错误。With the update of fast apps, fast apps of different manufacturers or fast apps of different devices can be upgraded. And the fast application after the upgrade can have more functions. It is understandable that the fast application in the embodiment of this application executes data processing instructions by calling the SDK plug-in in the client. If the function displayed in the operation interface is actually not completed by the corresponding target SDK plug-in, then It may cause data errors and affect user experience. For example, if the function information of obtaining the device status is displayed on the operation interface, but if the SDK plug-in corresponding to the quick application does not have a handle to send the device status to the server, the SDK plug-in cannot execute the touch device state The data processing instructions generated after the acquisition. The inconsistency between the version of the SDK plug-in corresponding to the same manufacturer or the same device and the quick app version may be caused by the mobile terminal not downloading the latest version in time or an error occurred during the update process.
步骤S260:若判定所述快应用的版本标识与所述目标SDK插件的版本标识匹配,调用所述目标SDK插件执行所述数据处理指令。Step S260: If it is determined that the version identifier of the quick application matches the version identifier of the target SDK plug-in, call the target SDK plug-in to execute the data processing instruction.
步骤S261:若判定所述快应用的版本标识与所述目标SDK插件的版本标识不匹配,获取所述目标SDK插件所支持的功能。Step S261: If it is determined that the version identifier of the quick application does not match the version identifier of the target SDK plug-in, obtain the functions supported by the target SDK plug-in.
可以理解的是,作为一种方式,每个SDK插件都是从对应的服务器下载获取的。例如,如图5所示,厂商A的SDK插件是从厂商A的服务器下载的,而厂商B的SDK插件是从厂商B的服务器下载的。而在移动终端下载SDK插件时,还可以对应下载一个功能描述文件,在该功能描述文件中可以对应记录当前所下载版本的SDK所支持的功能。It is understandable that, as a way, each SDK plug-in is downloaded from the corresponding server. For example, as shown in Figure 5, the SDK plug-in of manufacturer A is downloaded from the server of manufacturer A, and the SDK plug-in of manufacturer B is downloaded from the server of manufacturer B. When the mobile terminal downloads the SDK plug-in, it can also download a corresponding function description file, and the function description file can correspond to the functions supported by the currently downloaded version of the SDK.
步骤S270:基于获取的所述目标SDK插件所支持的功能,判断所述目标SDK插件是否能够完成所述数据处理指令。Step S270: Determine whether the target SDK plug-in can complete the data processing instruction based on the acquired functions supported by the target SDK plug-in.
可以理解的是,在基于前述获取目标SDK插件所支持的功能的情况下,若判断目标SDK插件所支持的功能中包括客户端接收到的快应用引擎发送的数据处理指令所要执行的功能,那么判定目标SDK插件可以完成所述数据处理指令。否则,判定不能完成所述数据处理指令。It is understandable that based on the aforementioned acquisition of the functions supported by the target SDK plug-in, if it is determined that the functions supported by the target SDK plug-in include the functions to be executed by the data processing instructions sent by the fast application engine received by the client, then It is determined that the target SDK plug-in can complete the data processing instruction. Otherwise, it is determined that the data processing instruction cannot be completed.
若判定能够完成所述数据处理指令,则执行步骤S260。If it is determined that the data processing instruction can be completed, step S260 is executed.
步骤S280:若判定无法完成所述数据处理指令,基于所述扩展接口向所述快应用返回操作错误的提示信息。Step S280: If it is determined that the data processing instruction cannot be completed, a prompt message of an operation error is returned to the quick application based on the extended interface.
本申请提供的一种数据处理方法,通过在客户端中给快应用引擎配置扩展接口的方式,使得在通过快应用控制SDK插件的过程中,客户端可以通过配置给快应用引擎的扩展接口,接收所述快应用引擎响应于快应用中的触控操作后发送的数据处理指令,基于所述数据处理指令获取对应的目标SDK插件,在判断获取的目标SDK插件与快应用的版本相同时,再调用所述目标SDK插件执行所述数据处理指令。从而使得快应用基于跨应用的方式来触发客户端对SDK插件进行控制,进而实现了快应用对SDK插件进行调用,对快应用的功能进行了极大的扩展,以便于通过快应用实现对移动终端中的其他组件进行调用。同时,也避免了因为目标SDK插件的版本与快应用的版本不一致造成的数据错误,或者是数据处理指令执行失败。This application provides a data processing method that configures an extended interface for the fast application engine in the client, so that in the process of controlling the SDK plug-in through the fast application, the client can use the extended interface configured to the fast application engine. Receive the data processing instruction sent by the quick app engine in response to the touch operation in the quick app, obtain the corresponding target SDK plug-in based on the data processing instruction, and when it is determined that the obtained target SDK plug-in is the same version as the quick app, Then call the target SDK plug-in to execute the data processing instruction. As a result, the quick app triggers the client to control the SDK plug-in based on a cross-application method, and then realizes that the quick app can call the SDK plug-in, and greatly expands the function of the quick app to facilitate the realization of mobile Call other components in the terminal. At the same time, it also avoids data errors caused by inconsistencies between the version of the target SDK plug-in and the version of the quick app, or the execution failure of data processing instructions.
请参阅图12,本申请实施例提供的一种数据处理方法,应用于客户端,所述方法包括:Referring to FIG. 12, a data processing method provided by an embodiment of the present application is applied to a client, and the method includes:
步骤S310:通过配置给快应用引擎的扩展接口,接收所述快应用引擎发送的数据处理指令,所述数据处理指令为所述快应用引擎响应于操作界面中的触发操作发送,所述操作界面由所述快应用引擎生成,所述数据处理指令携带有目标SDK的标识信息。Step S310: Receive the data processing instruction sent by the quick application engine through the extended interface configured to the quick application engine, the data processing instruction being sent by the quick application engine in response to a trigger operation in the operation interface, the operation interface Generated by the fast application engine, and the data processing instruction carries identification information of the target SDK.
步骤S320:基于所述标识信息,获取对应的目标SDK插件。Step S320: Obtain the corresponding target SDK plug-in based on the identification information.
步骤S330:从所述数据处理指令中读取携带的所述快应用的版本标识。Step S330: Read the version identifier of the fast application carried from the data processing instruction.
步骤S340:获取所述目标SDK插件的版本标识。Step S340: Obtain the version identifier of the target SDK plug-in.
步骤S350:判断所述快应用的版本标识与所述目标SDK插件的版本标识是否匹配。Step S350: Determine whether the version identifier of the quick application matches the version identifier of the target SDK plug-in.
步骤S360:若判定所述快应用的版本标识与所述目标SDK插件的版本标识不匹配,且所述快应用的版本高于所述目标SDK插件的版本,将所述目标SDK插件的版本更新为与所述快应用的版本匹配。Step S360: If it is determined that the version identifier of the quick application does not match the version identifier of the target SDK plug-in, and the version of the quick application is higher than the version of the target SDK plug-in, update the version of the target SDK plug-in To match the version of the quick application.
步骤S361:将更新后的目标SDK插件作为新的目标SDK插件。Step S361: Use the updated target SDK plug-in as a new target SDK plug-in.
步骤S362:调用所述新的目标SDK插件执行所述数据处理指令。Step S362: Invoke the new target SDK plug-in to execute the data processing instruction.
步骤S370:若判定所述快应用的版本标识与所述目标SDK插件的版本标识不匹配,且所述快应用的版本低于所述目标SDK插件的版本,调用所述目标SDK插件执行所述数据处理指令。Step S370: If it is determined that the version identifier of the quick application does not match the version identifier of the target SDK plug-in, and the version of the quick application is lower than the version of the target SDK plug-in, call the target SDK plug-in to execute the Data processing instructions.
步骤S380:若判定所述快应用的版本标识与所述目标SDK插件的版本标识匹配,调用所述目标 SDK插件执行所述数据处理指令。Step S380: If it is determined that the version identifier of the fast application matches the version identifier of the target SDK plug-in, call the target SDK plug-in to execute the data processing instruction.
本申请提供的一种数据处理方法,使得快应用基于跨应用的方式来触发客户端对SDK插件进行控制,进而实现了快应用对SDK插件进行调用,对快应用的功能进行了极大的扩展,以便于通过快应用实现对移动终端中的其他组件进行调用。同时,在检测到快应用的版本高于所述目标SDK插件的版本后会及时更新目标SDK插件的版本,避免了因为目标SDK插件的版本与快应用的版本不一致造成的数据错误,或者是数据处理指令执行失败。The data processing method provided in this application enables Quick App to trigger the client to control the SDK plug-in based on a cross-application approach, thereby realizing that Quick App can call the SDK plug-in and greatly expanding the functions of Quick App. , In order to realize the call to other components in the mobile terminal through the fast application. At the same time, after detecting that the version of Quick App is higher than the version of the target SDK plug-in, the version of the target SDK plug-in will be updated in time, avoiding data errors or data errors caused by inconsistencies between the version of the target SDK plug-in and the Quick App version The processing instruction failed to execute.
请参阅图13,本申请实施例提供的一种数据处理方法,应用于客户端,所述方法包括:Please refer to FIG. 13, a data processing method provided by an embodiment of the present application is applied to a client, and the method includes:
步骤S410:通过配置给快应用引擎的扩展接口,接收所述快应用引擎发送的数据处理指令,所述数据处理指令为所述快应用引擎响应于操作界面中的触发操作发送,所述操作界面由所述快应用引擎生成,所述数据处理指令携带有目标SDK的标识信息。Step S410: Receive a data processing instruction sent by the quick application engine through an extended interface configured to the quick application engine, the data processing instruction being sent by the quick application engine in response to a trigger operation in an operation interface, the operation interface Generated by the fast application engine, and the data processing instruction carries identification information of the target SDK.
步骤S420:基于所述标识信息,获取对应的目标SDK插件。Step S420: Obtain the corresponding target SDK plug-in based on the identification information.
步骤S430:判断所述目标SDK插件是否加载。Step S430: Determine whether the target SDK plug-in is loaded.
步骤S440:若判定未加载,动态加载所述目标SDK插件。Step S440: If it is determined that it is not loaded, dynamically load the target SDK plug-in.
步骤S441:在所述目标SDK插件动态加载完成后,调用所述目标SDK插件执行所述数据处理指令。Step S441: After the dynamic loading of the target SDK plug-in is completed, call the target SDK plug-in to execute the data processing instruction.
步骤S450:若判定已加载,调用所述目标SDK插件执行所述数据处理指令。Step S450: If it is determined that it has been loaded, call the target SDK plug-in to execute the data processing instruction.
本申请提供的一种数据处理方法,使得快应用基于跨应用的方式来触发客户端对SDK插件进行控制,进而实现了快应用对SDK插件进行调用,对快应用的功能进行了极大的扩展,以便于通过快应用实现对移动终端中的其他组件进行调用。同时,可以在获取到目标SDK插件以后,即使在检测到目标SDK插件未加载的情况下,通过动态加载所述目标SDK插件的方式,在所述目标SDK插件动态加载完成后,调用所述目标SDK插件执行所述数据处理指令,进而不仅使得不必在最开始就在客户端中嵌入目标SDK插件,以减小客户端的控件占用,便于客户端可以轻量化,再者还提升了SDK插件加载的灵活性。The data processing method provided in this application enables Quick App to trigger the client to control the SDK plug-in based on a cross-application approach, thereby realizing that Quick App can call the SDK plug-in and greatly expanding the functions of Quick App. , In order to realize the call to other components in the mobile terminal through the fast application. At the same time, after the target SDK plug-in is obtained, even when it is detected that the target SDK plug-in is not loaded, the target SDK plug-in can be dynamically loaded. After the target SDK plug-in is dynamically loaded, the target can be called The SDK plug-in executes the data processing instructions, which not only eliminates the need to embed the target SDK plug-in in the client at the very beginning, so as to reduce the control occupation of the client, and facilitate the client to be lighter, and it also improves the loading of the SDK plug-in flexibility.
请参阅图14,本申请实施例提供的一种数据处理方法,应用于客户端,所述方法包括:Referring to FIG. 14, a data processing method provided by an embodiment of the present application is applied to a client, and the method includes:
步骤S510:响应于操作界面中的触控操作生成数据处理指令,所述操作界面由所述快应用引擎生成。Step S510: Generate a data processing instruction in response to a touch operation in an operation interface, the operation interface being generated by the fast application engine.
步骤S520:调用客户端配置的给所述快应用引擎的扩展接口,通过所述扩展接口将所述数据处理指令发送给所述客户端。Step S520: Call the extended interface configured by the client for the fast application engine, and send the data processing instruction to the client through the extended interface.
步骤S530:接收所述客户端基于所述扩展接口返回的执行所述数据处理指令的结果信息。Step S530: Receive result information of executing the data processing instruction returned by the client based on the extended interface.
本申请提供的一种数据处理方法,使得快应用基于跨应用的方式来触发客户端对SDK插件进行控制,进而实现了快应用对SDK插件进行调用,对快应用的功能进行了极大的扩展,以便于通过快应用实现对移动终端中的其他组件进行调用。The data processing method provided in this application enables Quick App to trigger the client to control the SDK plug-in based on a cross-application approach, thereby realizing that Quick App can call the SDK plug-in and greatly expanding the functions of Quick App. , In order to realize the call to other components in the mobile terminal through the fast application.
请参阅图15,本申请实施例提供的一种数据处理装置600,运行于移动终端,所述装置600包括:Referring to FIG. 15, a data processing device 600 provided by an embodiment of the present application runs on a mobile terminal, and the device 600 includes:
数据接收单元610,用于通过配置给快应用引擎的扩展接口,接收所述快应用引擎发送的数据处理指令,所述数据处理指令为所述快应用引擎响应于操作界面中的触发操作发送,所述操作界面由所述快应用引擎生成,所述数据处理指令携带有目标SDK的标识信息。The data receiving unit 610 is configured to receive a data processing instruction sent by the quick application engine through an extended interface configured to the quick application engine, the data processing instruction being sent by the quick application engine in response to a trigger operation in the operation interface, The operation interface is generated by the fast application engine, and the data processing instruction carries identification information of the target SDK.
作为一种方式,数据接收单元610,具体用于通过配置给快应用引擎的基于进程间通信的扩展接口,接收所述快应用引擎发送的数据处理指令。As a way, the data receiving unit 610 is specifically configured to receive the data processing instruction sent by the fast application engine through an extended interface based on inter-process communication configured to the fast application engine.
可选的,所述基于进程间通信的扩展接口包括AIDL通道接口。Optionally, the extended interface based on inter-process communication includes an AIDL channel interface.
可选的,所述基于进程间通信的扩展接口包括localSocket接口。Optionally, the extended interface based on inter-process communication includes a localSocket interface.
数据检测单元620,用于基于所述标识信息,获取对应的目标SDK插件。The data detection unit 620 is configured to obtain the corresponding target SDK plug-in based on the identification information.
数据检测单元620,具体用于基于所述数据处理指令从多个SDK插件中获取目标SDK插件,且所述多个SDK插件各自所定义的所述接口规则相同。The data detection unit 620 is specifically configured to obtain the target SDK plug-in from multiple SDK plug-ins based on the data processing instruction, and the interface rules defined by each of the multiple SDK plug-ins are the same.
SDK调用单元630,用于调用所述目标SDK插件执行所述数据处理指令。The SDK calling unit 630 is configured to call the target SDK plug-in to execute the data processing instruction.
SDK调用单元630,具体用于基于所述目标SDK插件所定义的接口规则调用所述目标SDK插件,以调用所述目标SDK插件执行所述数据处理指令。The SDK calling unit 630 is specifically configured to call the target SDK plug-in based on the interface rules defined by the target SDK plug-in, so as to call the target SDK plug-in to execute the data processing instruction.
请参阅图16,本申请实施例提供的一种数据处理装置700,运行于移动终端,所述装置700包括:Referring to FIG. 16, a data processing device 700 provided by an embodiment of the present application runs on a mobile terminal, and the device 700 includes:
数据接收单元710,用于通过配置给快应用引擎的扩展接口,接收所述快应用引擎发送的数据处理指令,所述数据处理指令为所述快应用引擎响应于操作界面中的触发操作发送,所述操作界面由所述快应用引擎生成,所述数据处理指令携带有目标SDK的标识信息。The data receiving unit 710 is configured to receive a data processing instruction sent by the quick application engine through an extended interface configured to the quick application engine, the data processing instruction being sent by the quick application engine in response to a trigger operation in the operation interface, The operation interface is generated by the fast application engine, and the data processing instruction carries identification information of the target SDK.
数据检测单元720,用于基于所述标识信息,获取对应的目标SDK插件。The data detection unit 720 is configured to obtain the corresponding target SDK plug-in based on the identification information.
版本获取单元730,用于从所述数据处理指令中读取携带的所述快应用的版本标识。The version obtaining unit 730 is configured to read the version identifier of the fast application carried in the data processing instruction.
版本获取单元730,还用于获取所述目标SDK插件的版本标识。The version obtaining unit 730 is further configured to obtain the version identifier of the target SDK plug-in.
版本判断单元731,用于判断所述快应用的版本标识与所述目标SDK插件的版本标识是否匹配。The version determination unit 731 is configured to determine whether the version identifier of the quick application matches the version identifier of the target SDK plug-in.
SDK调用单元740,用于若判定所述快应用的版本标识与所述目标SDK插件的版本标识匹配,调用所述目标SDK插件执行所述数据处理指令。The SDK calling unit 740 is configured to, if it is determined that the version identifier of the fast application matches the version identifier of the target SDK plug-in, call the target SDK plug-in to execute the data processing instruction.
功能获取单元750,用于若判定所述快应用的版本标识与所述目标SDK插件的版本标识不匹配,获取所述目标SDK插件所支持的功能。The function acquiring unit 750 is configured to, if it is determined that the version identifier of the quick application does not match the version identifier of the target SDK plug-in, acquire the functions supported by the target SDK plug-in.
功能判断单元760,用于基于获取的所述目标SDK插件所支持的功能,判断所述目标SDK插件是否能够完成所述数据处理指令;The function judgment unit 760 is configured to judge whether the target SDK plug-in can complete the data processing instruction based on the acquired functions supported by the target SDK plug-in;
SDK调用单元740,还用于若判定能够完成所述数据处理指令,调用所述目标SDK插件执行所述数据处理指令。The SDK calling unit 740 is further configured to call the target SDK plug-in to execute the data processing instruction if it is determined that the data processing instruction can be completed.
信息发送单元770,用于若判定无法完成所述数据处理指令,基于所述扩展接口向所述快应用返回操作错误的提示信息。The information sending unit 770 is configured to, if it is determined that the data processing instruction cannot be completed, return prompt information of an operation error to the quick application based on the extended interface.
请参阅图17,本申请实施例提供的一种数据处理装置800,运行于移动终端,所述装置800包括:Referring to FIG. 17, a data processing device 800 provided by an embodiment of the present application runs on a mobile terminal, and the device 800 includes:
数据接收单元810,用于通过配置给快应用引擎的扩展接口,接收所述快应用引擎发送的数据处理指令,所述数据处理指令为所述快应用引擎响应于操作界面中的触发操作发送,所述操作界面由所述快应用引擎生成,所述数据处理指令携带有目标SDK的标识信息。The data receiving unit 810 is configured to receive a data processing instruction sent by the quick application engine through an extended interface configured to the quick application engine, the data processing instruction being sent by the quick application engine in response to a trigger operation in the operation interface, The operation interface is generated by the fast application engine, and the data processing instruction carries identification information of the target SDK.
数据检测单元820,用于基于所述标识信息,获取对应的目标SDK插件。The data detection unit 820 is configured to obtain the corresponding target SDK plug-in based on the identification information.
版本获取单元830,用于从所述数据处理指令中读取携带的所述快应用的版本标识。The version obtaining unit 830 is configured to read the version identifier of the fast application carried in the data processing instruction.
版本获取单元830,还用于获取所述目标SDK插件的版本标识。The version obtaining unit 830 is further configured to obtain the version identifier of the target SDK plug-in.
版本判断单元831,用于判断所述快应用的版本标识与所述目标SDK插件的版本标识是否匹配。The version determination unit 831 is configured to determine whether the version identifier of the quick application matches the version identifier of the target SDK plug-in.
SDK更新单元840,用于若判定所述快应用的版本标识与所述目标SDK插件的版本标识不匹配,且所述快应用的版本高于所述目标SDK插件的版本,将所述目标SDK插件的版本更新为与所述快应用的版本匹配。The SDK update unit 840 is configured to: if it is determined that the version identifier of the quick app does not match the version identifier of the target SDK plug-in, and the version of the quick app is higher than the version of the target SDK plug-in, the target SDK The version of the plug-in is updated to match the version of the quick application.
数据检测单元820,还用于将更新后的目标SDK插件作为新的目标SDK插件。The data detection unit 820 is also used to use the updated target SDK plug-in as a new target SDK plug-in.
SDK调用单元850,用于调用所述新的目标SDK插件执行所述数据处理指令。The SDK calling unit 850 is configured to call the new target SDK plug-in to execute the data processing instruction.
SDK调用单元850,用于若判定所述快应用的版本标识与所述目标SDK插件的版本标识不匹配,且所述快应用的版本低于所述目标SDK插件的版本,调用所述目标SDK插件执行所述数据处理指令。The SDK calling unit 850 is configured to call the target SDK if it is determined that the version identifier of the quick application does not match the version identifier of the target SDK plug-in, and the version of the quick application is lower than the version of the target SDK plug-in The plug-in executes the data processing instruction.
请参阅图18,本申请实施例提供的一种数据处理装置900,运行于移动终端,所述装置900包括:Referring to FIG. 18, a data processing device 900 provided by an embodiment of the present application runs on a mobile terminal, and the device 900 includes:
数据接收单元910,用于通过配置给快应用引擎的扩展接口,接收所述快应用引擎发送的数据处理指令,所述数据处理指令为所述快应用引擎响应于操作界面中的触发操作发送,所述操作界面由所述快应用引擎生成,所述数据处理指令携带有目标SDK的标识信息。The data receiving unit 910 is configured to receive a data processing instruction sent by the quick application engine through an extended interface configured to the quick application engine, the data processing instruction being sent by the quick application engine in response to a trigger operation in the operation interface, The operation interface is generated by the fast application engine, and the data processing instruction carries identification information of the target SDK.
数据检测单元920,用于基于所述标识信息,获取对应的目标SDK插件。The data detection unit 920 is configured to obtain the corresponding target SDK plug-in based on the identification information.
加载判断单元930,用于判断所述目标SDK插件是否加载。The loading judgment unit 930 is used to judge whether the target SDK plug-in is loaded.
SDK加载单元940,用于若判定未加载,动态加载所述目标SDK插件。The SDK loading unit 940 is configured to dynamically load the target SDK plug-in if it is determined that it is not loaded.
SDK调用单元950,用于在所述目标SDK插件动态加载完成后,调用所述目标SDK插件执行所述数据处理指令。The SDK calling unit 950 is configured to call the target SDK plug-in to execute the data processing instruction after the target SDK plug-in is dynamically loaded.
SDK调用单元950,还用于若判定已加载,调用所述目标SDK插件执行所述数据处理指令。The SDK calling unit 950 is further configured to call the target SDK plug-in to execute the data processing instruction if it is determined that it has been loaded.
请参阅图19,本申请实施例提供的一种数据处理装置1000,运行于移动终端,所述装置1000包括:Referring to FIG. 19, a data processing device 1000 provided by an embodiment of the present application runs on a mobile terminal. The device 1000 includes:
操作检测单元1010,用于响应于操作界面中的触控操作生成数据处理指令。The operation detection unit 1010 is configured to generate a data processing instruction in response to a touch operation in the operation interface.
数据发送单元1020,用于调用客户端配置的给所述快应用引擎的扩展接口,通过所述扩展接口将所述数据处理指令发送给所述客户端。The data sending unit 1020 is configured to call an extended interface configured by the client for the fast application engine, and send the data processing instruction to the client through the extended interface.
数据接收单元1030,用于接收所述客户端基于所述扩展接口返回的执行所述数据处理指令的结果信息。The data receiving unit 1030 is configured to receive the result information of executing the data processing instruction returned by the client based on the extended interface.
需要说明的是,本申请中装置实施例与前述方法实施例是相互对应的,装置实施例中具体的原理可以参见前述方法实施例中的内容,此处不再赘述。It should be noted that the device embodiment in this application and the foregoing method embodiment correspond to each other, and the specific principles in the device embodiment can be referred to the content in the foregoing method embodiment, which is not repeated here.
综上所述,本申请提供的一种数据处理方法、装置以及移动终端,通过在客户端中给快应用引擎配置扩展接口的方式,使得在通过快应用控制SDK插件的过程中,客户端可以通过配置给快应用引擎的扩展接口,接收所述快应用引擎响应于快应用中的触控操作后发送的数据处理指令,基于所述数据处理指令获取对应的目标SDK插件,调用所述目标SDK插件执行所述数据处理指令。从而使得快应用基于跨应用的方式来触发客户端对SDK插件进行控制,进而实现了快应用对SDK插件进行调用,对快应用的功能进行了极大的扩展,以便于通过快应用实现对移动终端中的其他组件进行调用。In summary, the data processing method, device, and mobile terminal provided by this application allow the client to configure the extension interface for the fast application engine, so that the client can control the SDK plug-in through the fast application. Through the extended interface configured to the fast app engine, the fast app engine receives the data processing instruction sent by the fast app engine in response to the touch operation in the fast app, obtains the corresponding target SDK plug-in based on the data processing instruction, and calls the target SDK The plug-in executes the data processing instruction. As a result, the quick app triggers the client to control the SDK plug-in based on a cross-application method, and then realizes that the quick app can call the SDK plug-in, and greatly expands the function of the quick app to facilitate the realization of mobile Call other components in the terminal.
下面将结合图20对本申请提供的一种移动终端进行说明。Hereinafter, a mobile terminal provided by the present application will be described with reference to FIG. 20.
请参阅图20,基于上述的数据处理方法、装置,本申请实施例还提供的另一种可以执行前述数据处理方法的移动终端100。移动终端100包括相互耦合的一个或多个(图中仅示出一个)处理器102、存储器104以及无线模块106。其中,该存储器104中存储有可以执行前述实施例中内容的程序,而处理器102可以执行该存储器104中存储的程序。Referring to FIG. 20, based on the above-mentioned data processing method and device, an embodiment of the present application also provides another mobile terminal 100 that can execute the aforementioned data processing method. The mobile terminal 100 includes one or more (only one is shown in the figure) a processor 102, a memory 104, and a wireless module 106 coupled to each other. Wherein, the memory 104 stores a program that can execute the content in the foregoing embodiment, and the processor 102 can execute the program stored in the memory 104.
其中,处理器102可以包括一个或者多个处理核。处理器102利用各种接口和线路连接整个移动终端100内的各个部分,通过运行或执行存储在存储器104内的指令、程序、代码集或指令集,以及调用存储在存储器104内的数据,执行移动终端100的各种功能和处理数据。可选地,处理器102可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器102可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器102中,单独通过一块通信芯片进行实现。The processor 102 may include one or more processing cores. The processor 102 uses various interfaces and lines to connect various parts of the entire mobile terminal 100, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 104, and calling data stored in the memory 104. Various functions and processing data of the mobile terminal 100. Optionally, the processor 102 may use at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). A kind of hardware form to realize. The processor 102 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing of display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 102, but may be implemented by a communication chip alone.
存储器104可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器104可用于存储指令、程序、代码、代码集或指令集。存储器104可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 104 may include random access memory (RAM) or read-only memory (Read-Only Memory). The memory 104 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 104 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions for implementing the following method embodiments, etc. The data storage area can also store data (such as phone book, audio and video data, chat record data) created by the terminal 100 during use.
所述无线模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯,例如和音频播放设备进行通讯。所述无线模块106可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述无线模块106可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。例如,无线模块106可以与基站进行信息交互。The wireless module 106 is used to receive and send electromagnetic waves, and realize the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other equipment, such as communicating with an audio playback device. The wireless module 106 may include various existing circuit elements for performing these functions, for example, an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a subscriber identity module (SIM) card, a memory, etc. . The wireless module 106 can communicate with various networks such as the Internet, an intranet, and a wireless network, or communicate with other devices through a wireless network. The aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. For example, the wireless module 106 can exchange information with the base station.
请参考图21,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质1100中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 21, which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable medium 1100 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
计算机可读存储介质1100可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质1100包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质1100具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码1110可以例如以适当形式进行压缩。The computer-readable storage medium 1100 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 1100 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 1100 has a storage space for executing the program code 810 of any method step in the foregoing method. These program codes can be read out from or written into one or more computer program products. The program code 1110 may be compressed in a suitable form, for example.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application, not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the foregoing embodiments are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (18)

  1. 一种数据处理方法,其特征在于,应用于客户端,所述方法包括:A data processing method, characterized in that it is applied to a client, the method includes:
    通过配置给快应用引擎的扩展接口,接收所述快应用引擎发送的数据处理指令,所述数据处理指令为所述快应用引擎响应于操作界面中的触发操作发送,所述操作界面由所述快应用引擎生成,所述数据处理指令携带有目标SDK的标识信息;The data processing instruction sent by the fast application engine is received through the extended interface configured to the fast application engine, and the data processing instruction is sent by the fast application engine in response to a trigger operation in the operation interface, and the operation interface is sent by the Generated by the fast application engine, and the data processing instruction carries the identification information of the target SDK;
    基于所述标识信息,获取对应的目标SDK插件;Obtain the corresponding target SDK plug-in based on the identification information;
    调用所述目标SDK插件执行所述数据处理指令。Invoke the target SDK plug-in to execute the data processing instruction.
  2. 根据权利要求1所述的方法,其特征在于,所述目标SDK的标识信息包括包名;所述基于所述数据处理指令获取对应的目标SDK插件的步骤包括:The method according to claim 1, wherein the identification information of the target SDK includes a package name; the step of obtaining the corresponding target SDK plug-in based on the data processing instruction comprises:
    从所述数据处理指令中读取携带的包名;Read the carried package name from the data processing instruction;
    将与所述包名对应的SDK插件作为目标SDK插件。Use the SDK plug-in corresponding to the package name as the target SDK plug-in.
  3. 根据权利要求1或2所述的方法,其特征在于,所述通过配置给快应用引擎的扩展接口,接收所述快应用引擎发送的数据处理指令的步骤包括:The method according to claim 1 or 2, wherein the step of receiving the data processing instruction sent by the fast application engine through the extended interface configured to the fast application engine comprises:
    通过配置给快应用引擎的基于进程间通信的扩展接口,接收所述快应用引擎发送的数据处理指令。The data processing instruction sent by the fast application engine is received through an extended interface based on inter-process communication configured to the fast application engine.
  4. 根据权利要求3所述的方法,其特征在于,所述基于进程间通信的扩展接口包括AIDL通道接口。The method according to claim 3, wherein the extended interface based on inter-process communication comprises an AIDL channel interface.
  5. 根据权利要求3所述的方法,其特征在于,所述基于进程间通信的扩展接口包括localSocket接口。The method according to claim 3, wherein the extended interface based on inter-process communication comprises a localSocket interface.
  6. 根据权利要求1-5任一所述的方法,其特征在于,所述数据处理指令中携带有所述快应用的版本标识,所述调用所述目标SDK插件执行所述数据处理指令的步骤之前还包括:The method according to any one of claims 1 to 5, wherein the data processing instruction carries the version identifier of the fast application, and before the step of calling the target SDK plug-in to execute the data processing instruction Also includes:
    从所述数据处理指令中读取携带的所述快应用的版本标识;Read the version identifier of the fast application carried from the data processing instruction;
    获取所述目标SDK插件的版本标识;Acquiring the version identifier of the target SDK plug-in;
    判断所述快应用的版本标识与所述目标SDK插件的版本标识是否匹配;Determining whether the version identifier of the quick application matches the version identifier of the target SDK plug-in;
    若判定所述快应用的版本标识与所述目标SDK插件的版本标识匹配,执行所述调用所述目标SDK插件执行所述数据处理指令。If it is determined that the version identifier of the quick application matches the version identifier of the target SDK plug-in, executing the invoking the target SDK plug-in to execute the data processing instruction.
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, wherein the method further comprises:
    若判定所述快应用的版本标识与所述目标SDK插件的版本标识不匹配,且所述快应用的版本高于所述目标SDK插件的版本,将所述目标SDK插件的版本更新为与所述快应用的版本匹配;If it is determined that the version identifier of the quick app does not match the version identifier of the target SDK plug-in, and the version of the quick app is higher than the version of the target SDK plug-in, update the version of the target SDK plug-in to Match the version of the fast application;
    将更新后的目标SDK插件作为新的目标SDK插件;Use the updated target SDK plugin as the new target SDK plugin;
    所述调用所述目标SDK插件执行所述数据处理指令的步骤包括:The step of calling the target SDK plug-in to execute the data processing instruction includes:
    调用所述新的目标SDK插件执行所述数据处理指令。Call the new target SDK plug-in to execute the data processing instruction.
  8. 根据权利要求1-7任一所述的方法,其特征在于,所述调用所述目标SDK插件执行所述数据处理指令的步骤之前还包括:The method according to any one of claims 1-7, wherein before the step of invoking the target SDK plug-in to execute the data processing instruction, the method further comprises:
    判断所述目标SDK插件是否加载;Determine whether the target SDK plug-in is loaded;
    若判定未加载,动态加载所述目标SDK插件;If it is determined that it is not loaded, dynamically load the target SDK plug-in;
    在所述目标SDK插件动态加载完成后,调用所述目标SDK插件执行所述数据处理指令。After the target SDK plug-in is dynamically loaded, the target SDK plug-in is called to execute the data processing instruction.
  9. 根据权利要求1-8任一所述的方法,其特征在于,所述数据处理指令表征对目标设备进行控制;所述调用所述目标SDK插件执行所述数据处理指令的步骤包括:The method according to any one of claims 1-8, wherein the data processing instruction represents controlling a target device; the step of invoking the target SDK plug-in to execute the data processing instruction comprises:
    使所述目标SDK插件向对应的服务器发送控制所述目标设备的指令,以使所述服务器控制所述目标设备。Make the target SDK plug-in send an instruction to control the target device to the corresponding server, so that the server controls the target device.
  10. 根据权利要求1-9任一所述的方法,其特征在于,所述数据处理指令表征本地数据获取请求;所述调用所述目标SDK插件执行所述数据处理指令的步骤包括:The method according to any one of claims 1-9, wherein the data processing instruction represents a local data acquisition request; the step of invoking the target SDK plug-in to execute the data processing instruction comprises:
    使所述目标SDK插件从本地读取所请求的数据;Enabling the target SDK plug-in to read the requested data locally;
    将读取的数据通过所述扩展接口返回给所述快应用引擎。The read data is returned to the fast application engine through the extended interface.
  11. 根据权利要求1-10任一所述的方法,其特征在于,所述通过配置给快应用引擎的扩展接口,接收所述快应用引擎响应于快应用中的触控操作后发送的数据处理指令的步骤之前还包括:The method according to any one of claims 1-10, wherein the extension interface configured to the fast application engine receives a data processing instruction sent by the fast application engine in response to a touch operation in the fast application Before the steps include:
    响应于快应用启动指令,显示所述操作界面。In response to the quick application start instruction, the operation interface is displayed.
  12. 根据权利要求1-11任一所述的方法,其特征在于,所述快应用引擎设置在所述客户端内。The method according to any one of claims 1-11, wherein the quick application engine is set in the client.
  13. 一种数据处理方法,其特征在于,应用于快应用引擎,所述方法包括:A data processing method, characterized in that it is applied to a fast application engine, and the method includes:
    响应于操作界面中的触控操作生成数据处理指令,所述操作界面由所述快应用引擎生成;Generating a data processing instruction in response to a touch operation in an operation interface, the operation interface being generated by the fast application engine;
    调用客户端配置的给所述快应用引擎的扩展接口,通过所述扩展接口将所述数据处理指令发送给所述客户端;Call the extended interface configured by the client for the fast application engine, and send the data processing instruction to the client through the extended interface;
    接收所述客户端基于所述扩展接口返回的执行所述数据处理指令的结果信息。Receiving result information of executing the data processing instruction returned by the client based on the extended interface.
  14. 一种数据处理装置,其特征在于,运行于移动终端,所述装置包括:A data processing device, characterized in that it runs on a mobile terminal, and includes:
    数据接收单元,用于通过配置给快应用引擎的扩展接口,接收所述快应用引擎发送的数据处理指令,所述数据处理指令为所述快应用引擎响应于操作界面中的触发操作发送,所述操作界面由所述快应用引擎生成,所述数据处理指令携带有目标SDK的标识信息;The data receiving unit is configured to receive the data processing instruction sent by the quick application engine through the extended interface configured to the quick application engine, and the data processing instruction is sent by the quick application engine in response to a trigger operation in the operation interface, so The operation interface is generated by the fast application engine, and the data processing instruction carries identification information of the target SDK;
    数据检测单元,用于基于所述标识信息,获取对应的目标SDK插件;The data detection unit is configured to obtain the corresponding target SDK plug-in based on the identification information;
    SDK调用单元,用于调用所述目标SDK插件执行所述数据处理指令。The SDK calling unit is used to call the target SDK plug-in to execute the data processing instruction.
  15. 根据权利要求14所述的装置,其特征在于,所述SDK调用单元具体用于基于所述目标SDK插件所定义的接口规则调用所述目标SDK插件,以调用所述目标SDK插件执行所述数据处理指令。The device according to claim 14, wherein the SDK calling unit is specifically configured to call the target SDK plug-in based on the interface rules defined by the target SDK plug-in, so as to call the target SDK plug-in to execute the data Processing instructions.
  16. 一种数据处理装置,其特征在于,运行于移动终端,所述装置包括:A data processing device, characterized in that it runs on a mobile terminal, and includes:
    操作检测单元,用于响应于操作界面中的触控操作生成数据处理指令,所述操作界面由快应用引擎生成;The operation detection unit is configured to generate data processing instructions in response to the touch operation in the operation interface, the operation interface being generated by the fast application engine;
    数据发送单元,用于调用客户端配置的给所述快应用引擎的扩展接口,通过所述扩展接口将所述数据处理指令发送给所述客户端;A data sending unit, configured to call an extension interface configured by the client for the fast application engine, and send the data processing instruction to the client through the extension interface;
    数据接收单元,用于接收所述客户端基于所述扩展接口返回的执行所述数据处理指令的结果信息。The data receiving unit is configured to receive the result information of executing the data processing instruction returned by the client based on the extended interface.
  17. 一种移动终端,其特征在于,包括一个或多个处理器以及存储器;A mobile terminal, characterized in that it comprises one or more processors and a memory;
    一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行权利要求1-12任一所述的方法或者执行权利要求13所述的方法。One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute claim 1 -12 Any of the methods described in or execute the method described in claim 13.
  18. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码运行时执行权利要求1-12任一所述的方法或者执行权利要求13所述的方法。A computer-readable storage medium, characterized in that a program code is stored in the computer-readable storage medium, wherein the method according to any one of claims 1-12 is executed when the program code is running or the claims are executed 13. The method described.
PCT/CN2019/075943 2019-02-22 2019-02-22 Data processing method and device, and mobile terminal WO2020168567A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980077010.6A CN113168332B (en) 2019-02-22 2019-02-22 Data processing method and device and mobile terminal
PCT/CN2019/075943 WO2020168567A1 (en) 2019-02-22 2019-02-22 Data processing method and device, and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/075943 WO2020168567A1 (en) 2019-02-22 2019-02-22 Data processing method and device, and mobile terminal

Publications (1)

Publication Number Publication Date
WO2020168567A1 true WO2020168567A1 (en) 2020-08-27

Family

ID=72144475

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/075943 WO2020168567A1 (en) 2019-02-22 2019-02-22 Data processing method and device, and mobile terminal

Country Status (2)

Country Link
CN (1) CN113168332B (en)
WO (1) WO2020168567A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113821200A (en) * 2021-08-20 2021-12-21 浙江时空道宇科技有限公司 Draggable modeling method and system for big data task, storage medium and terminal

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114501079A (en) * 2022-01-29 2022-05-13 京东方科技集团股份有限公司 Method for processing multimedia data and related device
CN117425877A (en) * 2022-05-18 2024-01-19 北京小米移动软件有限公司 Access method and device for web application program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014107003A1 (en) * 2013-01-07 2014-07-10 에스케이플래닛 주식회사 Method for managing application in mobile device, and system and apparatus therefor
CN105204894A (en) * 2015-08-28 2015-12-30 小米科技有限责任公司 Method and device for installing plug-in of intelligent equipment
CN108768803A (en) * 2018-05-28 2018-11-06 北京小米移动软件有限公司 Add the method, apparatus and storage medium of smart machine
CN109032691A (en) * 2018-06-25 2018-12-18 腾讯科技(深圳)有限公司 A kind of small routine operation method, device and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140358958A1 (en) * 2013-05-29 2014-12-04 Microsoft Corporation Surfacing direct app actions
CN103488489B (en) * 2013-09-30 2017-02-01 乐视网信息技术(北京)股份有限公司 Data processing method and device
CN106843978B (en) * 2017-01-23 2020-04-03 北京乐盟互动科技有限公司 SDK access method and system
CN107682238B (en) * 2017-09-15 2020-10-16 阿里巴巴(中国)有限公司 Intelligent household platform equipment and terminal electronic equipment
CN109271239A (en) * 2018-08-10 2019-01-25 北京达佳互联信息技术有限公司 Method, apparatus, system, equipment and the medium of data processing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014107003A1 (en) * 2013-01-07 2014-07-10 에스케이플래닛 주식회사 Method for managing application in mobile device, and system and apparatus therefor
CN105204894A (en) * 2015-08-28 2015-12-30 小米科技有限责任公司 Method and device for installing plug-in of intelligent equipment
CN108768803A (en) * 2018-05-28 2018-11-06 北京小米移动软件有限公司 Add the method, apparatus and storage medium of smart machine
CN109032691A (en) * 2018-06-25 2018-12-18 腾讯科技(深圳)有限公司 A kind of small routine operation method, device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113821200A (en) * 2021-08-20 2021-12-21 浙江时空道宇科技有限公司 Draggable modeling method and system for big data task, storage medium and terminal
CN113821200B (en) * 2021-08-20 2022-08-30 浙江时空道宇科技有限公司 Draggable modeling method and system for big data task, storage medium and terminal

Also Published As

Publication number Publication date
CN113168332A (en) 2021-07-23
CN113168332B (en) 2023-11-10

Similar Documents

Publication Publication Date Title
CN108536524B (en) Resource updating method, device, terminal and storage medium
CN110225487B (en) Profile generating and acquiring method, related equipment and storage medium
CN110032512B (en) Debugging method of small program, related equipment and terminal
WO2020168569A1 (en) Intelligent device network distribution method, apparatus, electronic device and storage medium
CN108241500B (en) Method, device and system for repairing hardware component and storage medium
WO2020168567A1 (en) Data processing method and device, and mobile terminal
US20220052866A1 (en) Smart home system control method and apparatus, electronic device
EP2608585B1 (en) Method, device and system for triggering terminal operation
CN107526605B (en) Method and device for realizing application program loading service assembly
CN106406940B (en) System upgrading method, device and terminal
CN105677335A (en) Method and device for increasing first starting speed of mobile terminal
CN105528229A (en) Method and device for improving first starting speed of mobile terminal
JP5710680B2 (en) System and method for reducing factory program time for wireless devices
WO2020168568A1 (en) Data processing method and apparatus, electronic device and readable storage medium
WO2023185166A1 (en) Service call method and apparatus, device and storage medium
CN107291427B (en) Method, device and system for optimizing game engine
CN113572862A (en) Cluster deployment method and device, electronic equipment and storage medium
CN109714195B (en) Equipment control method and device, electronic equipment and Internet of things system
CN111459524A (en) Software upgrading method, device and system
CN108052401B (en) System attribute monitoring method, terminal device and computer readable storage medium
CN116567133A (en) Resource playing method and related device
CN109933960B (en) Service calling control method, service calling method, device and terminal
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium
WO2018121652A1 (en) Method and device for connecting wireless access point through application in user equipment
CN112799641A (en) Method and device for expanding software development kit, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19916203

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19916203

Country of ref document: EP

Kind code of ref document: A1