Plugin Application Method, Device, Equipment and Storage Medium

By obtaining indicator parameters on cloud devices to access the plug-in, the problems of high maintenance costs and difficult testing are solved, and the centralized and unified management and efficient maintenance of the plug-in are achieved.

CN113867842BActive Publication Date: 2025-07-11GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111160106.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-30
Publication Date
2025-07-11
Estimated Expiration
2041-09-30

AI Technical Summary

Technical Problem

With the iteration of software projects, plug-ins are under high maintenance costs and difficult to test.

Method used

By obtaining indicator parameters, accessing plug-ins deployed on cloud devices and controlling the operation of smart home devices based on the plug-in, centralized and unified maintenance and testing of plug-ins are achieved.

Benefits of technology

It reduces the maintenance cost and testing difficulty of plug-ins, and improves the efficiency and user experience of plug-in management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113867842B_ABST
    Figure CN113867842B_ABST
Patent Text Reader

Abstract

The present application relates to a plug-in application method, device, equipment and storage medium. The method includes obtaining an indication parameter for accessing a plug-in, where the plug-in can control the operation of a smart home device; accessing the plug-in deployed on a cloud device based on the indication parameter, and controlling the operation of the smart home device based on the plug-in. Since the plug-in is deployed on the cloud device, maintenance and testing of the plug-in can be carried out centrally and uniformly, thus reducing the maintenance cost of the plug-in and the difficulty of testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computers, and in particular, to a method, device, equipment, and storage medium for plug-in applications. Background Art

[0002] For software projects, with the continuous iteration of the project, code extraction and plug-in encapsulation are everywhere. However, with the increasing number of plug-ins, various problems such as high maintenance costs and difficult testing of various plug-ins have emerged. Summary of the Invention

[0003] This application provides a method, device, equipment, and storage medium for plug-in applications to solve the problems of high maintenance costs and difficult testing of plug-ins.

[0004] In a first aspect, a method for plug-in application is provided, including:

[0005] Obtaining an indication parameter for accessing a plug-in, where the plug-in can control the operation of a smart home device;

[0006] Accessing the plug-in deployed on a cloud device based on the indication parameter, and controlling the operation of the smart home device based on the plug-in.

[0007] Optionally, obtaining an indication parameter for accessing a plug-in includes:

[0008] Obtaining the indication parameter from the network configuration information of the firmware of the smart home device;

[0009] Or,

[0010] Obtaining the indication parameter from the configuration information of the application program matched by the plug-in;

[0011] Or,

[0012] Obtaining the indication parameter based on the device type identifier of the smart home device.

[0013] Optionally, the indication parameter includes the URL address of the plug-in.

[0014] Optionally, accessing the plug-in deployed on a cloud device based on the indication parameter includes:

[0015] Downloading the plug-in from the cloud device based on the indication parameter, and running the plug-in in the application program matched by the plug-in.

[0016] Optionally, after accessing the plug-in deployed on a cloud device based on the indication parameter and controlling the operation of the smart home device based on the plug-in, it further includes:

[0017] Query the current version information of the plugin from the cloud device based on the device type identifier of the smart home device;

[0018] When the current version information indicates that the version of the plugin is higher than the version of the locally deployed plugin, download the plugin corresponding to the current version information from the cloud device based on the indication parameter and through the network, and update the locally deployed plugin with the plugin corresponding to the current version.

[0019] Optionally, before downloading the plugin corresponding to the current version information from the cloud device based on the indication parameter and through the network, further include:

[0020] Determine that the network is in an idle state.

[0021] In a second aspect, there is provided a plugin application system, including:

[0022] An electronic device, a cloud device deployed with a plugin, and a smart home device;

[0023] The electronic device is configured to obtain an indication parameter for accessing the plugin, where the plugin can control the operation of the smart home device; access the plugin deployed on the cloud device and corresponding to the indication parameter, and control the operation of the smart home device based on the plugin.

[0024] In a third aspect, there is provided a plugin application device, including:

[0025] An acquisition unit, configured to obtain an indication parameter for accessing a plugin, where the plugin can control the operation of a smart home device;

[0026] A control unit, configured to access the plugin deployed on the cloud device based on the indication parameter, and control the operation of the smart home device based on the plugin.

[0027] Optionally, the acquisition unit is configured to:

[0028] Obtain the indication parameter from the network configuration information of the firmware of the smart home device;

[0029] Or,

[0030] Obtain the indication parameter from the configuration information of the application program matched by the plugin;

[0031] Or,

[0032] Obtain the indication parameter based on the device type identifier of the smart home device.

[0033] Optionally, the indication parameter includes the URL address of the plugin.

[0034] Optionally, the control unit is configured to:

[0035] Download the plugin from the cloud device based on the indication parameter, and run the plugin in the application that matches the plugin.

[0036] Optionally, the device is further configured to:

[0037] After accessing the plugin deployed on the cloud device based on the indication parameter and controlling the smart home device to run based on the plugin, query the current version information of the plugin from the cloud device based on the device type identifier of the smart home device;

[0038] When the current version information indicates that the version of the plugin is higher than the version of the locally deployed plugin, download the plugin corresponding to the current version information from the cloud device based on the indication parameter through the network, and update the locally deployed plugin with the plugin corresponding to the current version.

[0039] Optionally, the device is further configured to:

[0040] Before downloading the plugin corresponding to the current version information from the cloud device based on the indication parameter through the network, determine that the network is in an idle state.

[0041] In a fourth aspect, an electronic device is provided, including: a processor, a memory, and a communication bus, where the processor and the memory complete communication with each other through the communication bus;

[0042] The memory is used to store a computer program;

[0043] The processor is configured to execute the program stored in the memory to implement the plugin application method described in the first aspect.

[0044] In a fifth aspect, a computer-readable storage medium is provided, storing a computer program, where the computer program, when executed by a processor, implements the plugin application method described in the first aspect.

[0045] The above technical solutions provided in the embodiments of the present application have the following advantages compared with the prior art: In the technical solutions provided in the embodiments of the present application, an indication parameter for accessing a plugin is obtained, and the plugin can control the operation of a smart home device; the plugin deployed on the cloud device is accessed based on the indication parameter, and the smart home device is controlled to run based on the plugin. Since the plugin is deployed on the cloud device, maintenance and testing of the plugin can be centralized and unified, thus reducing the maintenance cost of the plugin and the difficulty of testing. Description of the Drawings

[0046] The accompanying drawings herein are incorporated into and form a part of this specification, showing embodiments in accordance with the present invention, and, together with the specification, are used to explain the principles of the present invention.

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0048] Figure 1 It is a schematic flowchart of the plug-in application method in the embodiments of the present application;

[0049] Figure 2 It is a schematic structural diagram of the plug-in application system in the embodiments of the present application;

[0050] Figure 3 It is a schematic structural diagram of the plug-in application device in the embodiments of the present application;

[0051] Figure 4 It is a schematic structural diagram of the electronic device in the embodiments of the present application. Detailed implementation manners

[0052] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present application.

[0053] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned accompanying drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these process, method, product, or device.

[0054] In the related art, the maintenance and testing of plugins are both carried out locally on the client side. Therefore, when there are more and more plugins, when maintaining and testing the plugins, it is necessary to maintain and test the plugins one by one on different clients respectively, resulting in high maintenance costs and difficult testing of the plugins.

[0055] An embodiment of the present application provides a plugin application method, which can be applied to any electronic device;

[0056] The electronic devices described in the embodiments of the present application may include smart phones (such as Android phones, iOS phones, Windows Phone phones, etc.), tablet computers, palmtop computers, laptop computers, video matrices, monitoring platforms, mobile Internet devices (MIDs), or wearable devices, etc. The above are only examples, not exhaustive, including but not limited to the above devices. Of course, the above electronic devices may also be servers, for example, cloud servers.

[0057] As Figure 1 shown, the method may include the following steps:

[0058] Step 101, obtain an indication parameter for accessing a plugin, and the plugin can control the operation of a smart home device.

[0059] In this embodiment, an application program (APP) for controlling a smart home device is deployed on the electronic device, and different plugins can run on the application program. Each plugin is used to control the operation of a smart home device of a certain device category, and the smart home devices belonging to the same device category are controlled by the same plugin.

[0060] Exemplarily, the device categories of smart home devices may be air conditioner category, washing machine category, refrigerator category, electric light category, access control device category, etc.

[0061] In this embodiment, the indication parameter for accessing the plugin is obtained by any one of the following three methods:

[0062] First, obtain the indication parameter from the network configuration information of the firmware of the smart home device.

[0063] It should be understood that the firmware is a program written into an EPROM (erasable programmable read-only memory) or an EEPROM (electrically erasable programmable read-only memory). The firmware refers to the "driver program" stored inside the device. Through the firmware, the operating system can implement the running actions of specific machines according to the standard device drivers. For example, optical drives, burners, etc. all have internal firmware.

[0064] Firmware is the software that undertakes the most fundamental and lowest-level work of a system. In hardware devices, firmware is the soul of the hardware device. Since some hardware devices have no other software components except firmware, firmware thus determines the functions and performance of the hardware device.

[0065] In this embodiment, before the smart home device leaves the factory, the indication parameter can be written into the network configuration information of the firmware of the smart home device in advance. In the application, before the application program controls the smart home device, it is necessary to first control the networking through forms such as Bluetooth, that is, to configure the network for the smart home. After the smart home device is successfully network-configured, the network configuration information of the smart home device can be obtained, and the indication parameter is included in the network configuration information.

[0066] Second, obtain the indication parameter from the configuration information of the application program matched by the plugin.

[0067] In this embodiment, the indication parameters corresponding to different plugins are written into the configuration information of the application program in advance, so the indication parameter can be obtained from the configuration information of the application program.

[0068] Exemplarily, the configuration information of the application program may include indication parameters set based on the device type of the smart device. For example, the indication parameter of the plugin for controlling the air conditioner is A, the indication parameter of the plugin for controlling the refrigerator is B, and the indication parameter of the plugin for controlling the TV is C. Therefore, when the user needs to control the smart home device through the plugin of the application program, according to the device type of the smart home device indicated by the user (such as the air conditioner type), the electronic device obtains the indication parameter corresponding to the device type (such as indication parameter A) from the configuration information of the application program.

[0069] It should be understood that the device type identifier of the smart home device is pre-stored on the electronic device side. When the user needs to control the smart home device through the plugin of the application program, according to the device type of the smart home device indicated by the user, the device type identifier of the smart home device is obtained, and then the indication parameter corresponding to the device type identifier of the smart home device is obtained from the configuration information of the application program, and the indication parameter corresponding to the device type identifier of the smart home device is used as the indication parameter corresponding to the device type.

[0070] Third, obtain the indication parameter based on the device type identifier of the smart home device.

[0071] In this embodiment, the device type identifier of the smart home device to be controlled is pre-stored on the electronic device side. When the user needs to control the smart home device through the plugin of the application program, according to the device type of the smart home device indicated by the user, the device type identifier of the smart home device is obtained, and then through the cloud interface of the cloud device, the indication parameter corresponding to the device type identifier is obtained from the cloud device.

[0072] In this embodiment, the indication parameter includes, but is not limited to, the URL (Uniform Resource Locator) address of the plugin. It should be understood that in the application, the indication parameter can also be a plugin identifier used to uniquely identify the plugin.

[0073] Step 102: Access the plugin deployed on the cloud device based on the indication parameter, and control the operation of the smart home device based on the plugin.

[0074] In this embodiment, when the electronic device accesses the plugin deployed on the cloud device based on the indication parameter and controls the operation of the smart home device based on the plugin, there can be the following two methods:

[0075] First, in order to save storage space on the electronic device side, the plugin runs on the cloud device. The application program of the electronic device accesses the plugin running on the cloud device through the URL address of the plugin, and controls the operation of the smart home device based on the plugin.

[0076] In this case, the application program side of the electronic device can display a client interface corresponding to the URL address. The user can input control parameters for the smart home device through the client interface, so as to enable the plugin to control the operation of the smart home device based on the control parameters.

[0077] Taking the smart home device as an air conditioner as an example, the control parameters input by the user through the client interface for the smart home device can be refrigeration, maximum wind speed, and timing for 30 minutes. After the plugin obtains the control parameters, it controls the air conditioner to run in the refrigeration mode at the maximum wind speed according to the control parameters, and ends refrigeration after running for 30 minutes.

[0078] Second, in order to reduce situations such as delays in the interaction between the client and the plugin when accessing the plugin, it can be accessed by downloading. Download the plugin from the cloud device based on the indication parameter, and run the plugin in the application program that matches the plugin.

[0079] In this case, since the plugin runs on the electronic device side, the control of the plugin can be free from the problem of low control efficiency due to network bandwidth reasons.

[0080] In the application, the cloud device can download the plugin in real time when it is necessary to control the smart home device, or it can be a pre-download process. Still taking the smart home device as an air conditioner as an example, when realizing pre-download, the App performs connection and network configuration operations on the air conditioner through forms such as wifi and Bluetooth. While performing network configuration, it can access the cloud to pre-download the plugin corresponding to the air conditioner. When the user needs to control the air conditioner through the App, the download time is reduced, and the user experience is optimized.

[0081] In the technical solution provided by the embodiments of the present application, an indication parameter for accessing a plugin is obtained, and the plugin can control the operation of a smart home device; the plugin deployed on the cloud device is accessed based on the indication parameter, and the smart home device is controlled to operate based on the plugin. Since the plugin is deployed on the cloud device, maintenance and testing of the plugin can be centralized and unified, thus reducing the maintenance cost of the plugin and the difficulty of testing.

[0082] For the convenience of comparison, an example is given: Before the plugin is deployed on the cloud device, the code of the plugin is saved on the client. When testing the plugin for air conditioners, the air conditioner is networked, and then the client interface corresponding to the plugin is entered from the air conditioner, and then the plugin is tested; when the plugin is deployed on the cloud device, when the plugin needs to be tested, the tester can directly run the plugin on the cloud device or open the URL of the plugin for debugging, saving the development time cost.

[0083] When accessing the plugin deployed on the cloud device by the method of downloading the plugin from the cloud device based on the indication parameter and running the plugin in the application that matches the plugin, the plugin downloaded on the electronic device side can also be updated.

[0084] In a specific embodiment, after accessing the plugin deployed on the cloud device based on the indication parameter and controlling the smart home device to operate based on the plugin, it further includes: querying the current version information of the plugin from the cloud device based on the device type identifier of the smart home device; when the current version information indicates that the version of the plugin is higher than the version of the plugin deployed locally, downloading the plugin corresponding to the current version information from the cloud device based on the indication parameter and through the network, and updating the plugin deployed locally with the plugin corresponding to the current version.

[0085] In the application, the detection and update of the version of the plugin on the electronic device side can be performed in real time, periodically, or when the application is started each time. The embodiments of the present application do not make specific limitations on this.

[0086] Taking the case of performing it when the application is started each time as an example, when the application is started each time, the version of the plugin deployed locally is compared with the version of the plugin deployed on the cloud device, and when it is determined that the versions are inconsistent, the plugin deployed locally is updated.

[0087] In this embodiment, in order to improve the user experience and achieve a seamless update operation, it is set to update the plugin preferably when the network is idle. That is to say, before downloading the plugin corresponding to the current version information from the cloud device based on the indication parameter and through the network, it is necessary to obtain the current network status, and when it is determined that the network is idle based on the current network status, the step of downloading the plugin corresponding to the current version is executed.

[0088] In an application, there may be a situation where a plugin needs to be used before it is completely updated. If the user needs to use the plugin before it is updated, it is necessary to force the update to be completed before allowing the use of the plugin, and the user should be reminded to wait through methods such as pop-up prompts.

[0089] In another embodiment of the present application, in order to enable access to the plugin from a cloud device, it is also necessary to pre-package the plugin and upload it to the cloud device so that the cloud device can obtain the indication parameters of the plugin. Specifically, when implemented, the cloud device can cloudify the plugin to generate a cloudified link of the plugin, that is, a URL address.

[0090] To more clearly illustrate the embodiments of the present application, the following uses a smart home device, an air conditioner as an example, to describe the solution of the present application.

[0091] After a certain function is developed and packaged into a plugin, it is uploaded to the cloud for cloudification operations. After the client obtains the cloudified link, it can freely choose the loading method of the plugin for use. The specific process is as follows:

[0092] Plugin cloudification: Package and extract the functions that need to be cloudified in the project, and independently upload them to the server for cloudification.

[0093] Client usage: When the client needs to use the plugin, it can choose to directly access through the URL. In order to reduce situations such as delays in the interaction between the client accessing the plugin and the plugin, it can be accessed through the pre-download method. The specific implementation when accessing through the pre-download method is as follows:

[0094] First, the App links and configures the network of the air conditioner through forms such as wifi and Bluetooth. While configuring the network, it can access the cloud to pre-download the corresponding plugin of the air conditioner. When the user needs to control the air conditioner through the App, the download time is reduced, optimizing the user experience.

[0095] Among them, the ways for the client to obtain the URL are as follows:

[0096] Returned from the firmware: When configuring the network, relevant network configuration information of the firmware will be obtained, including the plugin URL download link, and the client can obtain the URL for downloading.

[0097] Client configure the URL: Configure the corresponding URL for each plugin. When downloading is required, access the specified plugin URL to download.

[0098] Provide the URL of the plugin by obtaining the air conditioner id through the cloud interface.

[0099] Update of the client plugin: Each time the client starts, compare the locally existing plugin with the cloud version. 1. Give priority to background updating of the plugin when the client network is idle to achieve a seamless update operation and improve the user experience; 2. If the plugin needs to be used before the client update is completed and it is required to be forcibly updated to be used, update it immediately and remind the user to wait through methods such as pop-up prompts; 3. Finally, the plugin can be updated through solutions such as client version upgrade and manual detection upgrade.

[0100] Adopting the solution of this application, the client no longer needs to concern itself with the plugin implementation logic. It only needs to load or download the cloud plugin to be able to use it, which is both convenient and can reduce the burden on the client. Through the cloud management of plugins, plugins can be managed more efficiently, enabling one plugin to be used on multiple devices, achieving independent development and independent testing, and saving unnecessary operation and maintenance costs.

[0101] Based on the same concept, an embodiment of this application provides a plugin application system. For the specific implementation of this system, reference can be made to the description in the method embodiment section. Repeated parts will not be elaborated again. As Figure 2 shown, this system mainly includes:

[0102] An electronic device 201, a cloud device 202 deployed with plugins, and a smart home device 203;

[0103] The electronic device 201 is used to obtain an indication parameter for accessing the plugin, and the plugin can control the operation of the smart home device 203; access the plugin deployed on the cloud device 202 and corresponding to the indication parameter, and control the operation of the smart home device 203 based on the plugin.

[0104] Based on the same concept, an embodiment of this application provides a plugin application device. For the specific implementation of this device, reference can be made to the description in the method embodiment section. Repeated parts will not be elaborated again. As Figure 3 shown, this device mainly includes:

[0105] An acquisition unit 301, configured to obtain an indication parameter for accessing the plugin, and the plugin can control the operation of the smart home device;

[0106] A control unit 302, configured to access the plugin deployed on the cloud device based on the indication parameter, and control the operation of the smart home device based on the plugin.

[0107] Optionally, the acquisition unit 301 is used for:

[0108] Obtain the indication parameter from the network configuration information of the firmware of the smart home device;

[0109] Or,

[0110] Obtain the indication parameter from the configuration information of the application program matched by the plugin;

[0111] Or

[0112] Obtain an indication parameter based on the device type identifier of the smart home device.

[0113] Optionally, the indication parameter includes the URL address of the plugin.

[0114] Optionally, the control unit 302 is configured to:

[0115] Download the plugin from the cloud device based on the indication parameter and run the plugin in the application that matches the plugin.

[0116] Optionally, the apparatus is further configured to:

[0117] After accessing the plugin deployed on the cloud device based on the indication parameter and controlling the smart home device to run based on the plugin, query the current version information of the plugin from the cloud device based on the device type identifier of the smart home device;

[0118] When the current version information indicates that the version of the plugin is higher than the version of the locally deployed plugin, download the plugin corresponding to the current version information from the cloud device based on the indication parameter and update the locally deployed plugin with the plugin corresponding to the current version.

[0119] Optionally, the apparatus is further configured to:

[0120] Before downloading the plugin corresponding to the current version information from the cloud device based on the indication parameter and through the network, determine that the network is in an idle state.

[0121] Based on the same concept, an electronic device is further provided in an embodiment of the present application. As Figure 4 shown, the electronic device mainly includes: a processor 401, a memory 402, and a communication bus 403. Among them, the processor 401 and the memory 402 complete mutual communication through the communication bus 403. Among them, a program executable by the processor 401 is stored in the memory 402, and the processor 401 executes the program stored in the memory 402 to implement the following steps:

[0122] Obtain an indication parameter for accessing the plugin, and the plugin can control the operation of the smart home device;

[0123] Access the plugin deployed on the cloud device based on the indication parameter and control the smart home device to run based on the plugin.

[0124] The communication bus 403 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 403 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 it is only represented by a thick line in Figure 4 , but this does not mean that there is only one bus or one type of bus.

[0125] The memory 402 may include a Random Access Memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located far from the aforementioned processor 401.

[0126] The aforementioned processor 401 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc., and may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0127] In another embodiment of the present application, a computer-readable storage medium is further provided. A computer program is stored in the computer-readable storage medium. When the computer program runs on a computer, the computer is caused to execute the plug-in application method described in the above embodiment.

[0128] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions are transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape, etc.), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state drive), etc.

[0129] It should be noted that in this document, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the element.

[0130] The above are only specific embodiments of the present invention, enabling those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to these embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A plug-in application method, characterized in that, Including: An electronic device with an application for controlling smart home devices obtains an indication parameter for accessing a plug-in. The plug-in can control the operation of smart home devices. Each plug-in is used to control the operation of smart home devices of a certain device category, and smart home devices belonging to the same device category are controlled by the same plug-in; Based on the indication parameter, access the plug-in deployed on the cloud device and control the operation of the smart home device based on the plug-in, including: accessing the plug-in running on the cloud device through the URL address of the plug-in and controlling the operation of the smart home device based on the plug-in, or downloading the plug-in from the cloud device based on the indication parameter and running the plug-in in an application that matches the plug-in, and controlling the operation of the smart home device based on the plug-in; Wherein, after accessing the plug-in deployed on the cloud device based on the indication parameter and controlling the operation of the smart home device based on the plug-in, it further includes: querying the current version information of the plug-in from the cloud device based on the device type identifier of the smart home device; when the current version information indicates that the version of the plug-in is higher than the version of the locally deployed plug-in, downloading the plug-in corresponding to the current version information from the cloud device based on the indication parameter and through the network, and updating the locally deployed plug-in with the plug-in corresponding to the current version.

2. The method according to claim 1, wherein Obtaining an indication parameter for accessing a plug-in includes: Obtaining the indication parameter from the network configuration information of the firmware of the smart home device; Or, Obtaining the indication parameter from the configuration information of the application that matches the plug-in; Or, Obtaining the indication parameter based on the device type identifier of the smart home device.

3. The method according to claim 1 or 2, characterized in that The indication parameter includes the URL address of the plug-in.

4. The method according to claim 1, characterized in that Accessing the plug-in deployed on the cloud device based on the indication parameter includes: Downloading the plug-in from the cloud device based on the indication parameter and running the plug-in in an application that matches the plug-in.

5. The method according to claim 1, wherein Before downloading the plug-in corresponding to the current version information from the cloud device based on the indication parameter and through the network, it further includes: Determining that the network is in an idle state.

6. A plug-in application system, characterized in that, Including: An electronic device with an application for controlling smart home devices, a cloud device with a plug-in deployed, and smart home devices; The electronic device is used to obtain an indication parameter for accessing a plugin, and the plugin can control the operation of the smart home device. Each plugin is used to control the operation of smart home devices of a certain device category, and smart home devices belonging to the same device category are controlled by the same plugin; accessing the plugin deployed on the cloud device and corresponding to the indication parameter, and controlling the operation of the smart home device based on the plugin, including: accessing the plugin running on the cloud device through the URL address of the plugin, and controlling the operation of the smart home device based on the plugin, or downloading the plugin from the cloud device based on the indication parameter, and running the plugin in an application program matching the plugin, and controlling the operation of the smart home device based on the plugin; Wherein, after accessing the plugin deployed on the cloud device and controlling the operation of the smart home device based on the plugin, it further includes: querying the current version information of the plugin from the cloud device based on the device type identifier of the smart home device; when the current version information indicates that the version of the plugin is higher than the version of the plugin deployed locally, downloading the plugin corresponding to the current version information from the cloud device based on the indication parameter and through the network, and updating the plugin deployed locally with the plugin corresponding to the current version.

7. A plug-in application device, characterized in that, It includes: An acquisition unit, configured to obtain an indication parameter for accessing a plugin through an electronic device deployed with an application program for controlling a smart home device, where the plugin can control the operation of the smart home device. Each plugin is used to control the operation of smart home devices of a certain device category, and smart home devices belonging to the same device category are controlled by the same plugin; A control unit, configured to access the plugin deployed on the cloud device based on the indication parameter, and control the operation of the smart home device based on the plugin, including: accessing the plugin running on the cloud device through the URL address of the plugin, and controlling the operation of the smart home device based on the plugin, or downloading the plugin from the cloud device based on the indication parameter, and running the plugin in an application program matching the plugin, and controlling the operation of the smart home device based on the plugin; Wherein, after accessing the plugin deployed on the cloud device based on the indication parameter and controlling the operation of the smart home device based on the plugin, it further includes: querying the current version information of the plugin from the cloud device based on the device type identifier of the smart home device; when the current version information indicates that the version of the plugin is higher than the version of the plugin deployed locally, downloading the plugin corresponding to the current version information from the cloud device based on the indication parameter and through the network, and updating the plugin deployed locally with the plugin corresponding to the current version.

8. An electronic device, characterized in that, It includes: A processor, a memory and a communication bus. The processor and the memory complete communication with each other through the communication bus; The memory is used to store a computer program; The processor is configured to execute the program stored in the memory to implement the plug-in application method according to any one of claims 1-5.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the plug-in application method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Method and device for installing plug-in of intelligent equipment

    CN105204894A

  • Request processing method and device

    CN111414190A

  • Remote control method and system and virtual machine server

    CN112261083A