CN111638882B - Method and device for generating operation interface, storage medium and processor - Google Patents

Method and device for generating operation interface, storage medium and processor Download PDF

Info

Publication number
CN111638882B
CN111638882B CN202010479936.2A CN202010479936A CN111638882B CN 111638882 B CN111638882 B CN 111638882B CN 202010479936 A CN202010479936 A CN 202010479936A CN 111638882 B CN111638882 B CN 111638882B
Authority
CN
China
Prior art keywords
plug
target
equipment
panel plug
panel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010479936.2A
Other languages
Chinese (zh)
Other versions
CN111638882A (en
Inventor
章锦跃
费斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hongyan IOT Technology Co.,Ltd.
Putian Hongyan Internet Of Things Technology Co ltd
Hangzhou Honyar Electrical Co Ltd
Original Assignee
Hangzhou Honyar Electrical Co Ltd
Putian Intelligent Lighting Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Honyar Electrical Co Ltd, Putian Intelligent Lighting Institute Co Ltd filed Critical Hangzhou Honyar Electrical Co Ltd
Priority to CN202010479936.2A priority Critical patent/CN111638882B/en
Publication of CN111638882A publication Critical patent/CN111638882A/en
Application granted granted Critical
Publication of CN111638882B publication Critical patent/CN111638882B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a device for generating an operation interface, a storage medium and a processor. Wherein, the method comprises the following steps: acquiring a public resource data packet and at least one equipment panel data packet, wherein the public resource data packet comprises public data used for generating operation interfaces with different functions, and the equipment panel data packet comprises data used for generating the operation interfaces; generating an equipment panel plug-in unit through each equipment panel data packet and the public resource data packet to obtain at least one equipment panel plug-in unit; and allocating each equipment panel plug-in to the corresponding target equipment, wherein each equipment panel plug-in is used for generating a target operation interface of the target equipment based on the request of the target equipment. The invention solves the technical problem of low interface generation efficiency.

Description

Method and device for generating operation interface, storage medium and processor
Technical Field
The invention relates to the field of computers, in particular to a method and a device for generating an operation interface, a storage medium and a processor.
Background
At present, with the rapid development of the internet of things, the traditional product equipment manufacturing industry has made the intellectualization of the internet of things +' product an important direction for enterprise transformation and transformation.
Because the function and the form of equipment are changing constantly, and along with the function demand of equipment is abundant constantly, new product is constantly promoted, and even the customization product also needs to use third party's technique and standard, this just leads to aiming at every kind of Application (APP for short) program, in the development process, the operating interface of equipment and the degree of coupling of the whole engineering of equipment are higher, unable independent development, the function change or the replacement of equipment can lead to operating interface to need carry out secondary development on the basis of former operating interface, and cause uncertain influence to original normal function, thereby there is the technical problem that the generating efficiency of interface is low.
In view of the problem of low interface generation efficiency in the prior art, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for generating an operation interface, a storage medium and a processor, which are used for at least solving the technical problem of low interface generation efficiency.
According to an aspect of the embodiments of the present invention, there is provided a method for generating an operation interface, including: acquiring a public resource data packet and at least one equipment panel data packet, wherein the public resource data packet comprises public data used for generating operation interfaces with different functions, and the equipment panel data packet comprises data used for generating the operation interfaces; generating an equipment panel plug-in unit through each equipment panel data packet and the public resource data packet to obtain at least one equipment panel plug-in unit; and allocating each equipment panel plug-in to the corresponding target equipment, wherein each equipment panel plug-in is used for generating a target operation interface of the target equipment based on the request of the target equipment.
Optionally, after assigning each device panel plug-in to a corresponding target device, the method further comprises: and storing each equipment panel plug-in into a target database, wherein the target database is used for providing the equipment panel plug-ins for a server, and the server is used for receiving and responding to the request and sending the set information of the equipment panel plug-ins to the target equipment.
Optionally, the set information of the device panel plug-in includes the following contents: code for a device panel plug-in; style information of the device panel plug-in; version number of the device panel plug-in; a download path for the device panel plug-in; identification of device panel plug-ins.
Optionally, the code of the device panel plug-in corresponds to a plurality of styles of device panel plug-ins.
Optionally, obtaining the common resource packet and the at least one device panel packet includes: a common resource packet and at least one device panel packet derived based on a fifth generation hypertext markup language are obtained.
Optionally, generating a device panel plug-in from each device panel packet and the public resource packet includes: and matching each equipment panel data packet with the public resource data packet to obtain the equipment panel plug-in.
Optionally, assigning each device panel plug-in to a corresponding target device comprises: the target device is granted access to each device panel plug-in.
Optionally, after granting the target device the right to use each device panel plug-in, the method further comprises: the right to use each device panel plug-in is granted to the target device is revoked.
Optionally, after assigning each device panel plug-in to a corresponding target device, the method further comprises: acquiring an updating equipment panel data packet, wherein the updating equipment panel data packet comprises data used for updating a target operation interface; generating an updated equipment panel plug-in through the updated equipment panel data packet and the public resource data packet; and updating the equipment panel plug-in through the updated equipment panel plug-in, and distributing the updated equipment panel plug-in to the target equipment, wherein the updated equipment panel plug-in is used for generating an updated operation interface of the target equipment based on the request of the target equipment.
According to another aspect of the embodiment of the invention, another method for generating the operation interface is also provided. The method can comprise the following steps: acquiring a request sent by target equipment; and responding to the request, and sending the device panel plug-in matched with the target device to the target device, wherein the device panel plug-in is used for generating a target operation interface on the target device and is generated by the plug-in management platform through a device panel data packet and a public resource data packet, the public resource data packet comprises public data used for generating operation interfaces with different functions, and the device panel data packet comprises data used for generating the operation interfaces.
Optionally, before sending the device panel plug-in matching with the target device to the target device, the method further includes: and acquiring the equipment panel plug-in from the target database, wherein the equipment panel plug-in is stored in the target database by the plug-in management platform.
Optionally, the obtaining the request sent by the target device includes: the request is obtained through an application program interface.
Optionally, sending the device panel plug-in matched with the target device to the target device includes: sending the set information of the device panel plug-ins matched with the target device to the target device, wherein the set information of the device panel plug-ins comprises the following contents: the code of the equipment panel plug-in, the style information of the equipment panel plug-in, the version number of the equipment panel plug-in, the download path of the equipment panel plug-in and the identification of the equipment panel plug-in.
According to another aspect of the embodiment of the invention, another method for generating the operation interface is also provided. The method can comprise the following steps: sending a request to a server; acquiring an equipment panel plug-in sent by a server response request, wherein the equipment panel plug-in is generated by a plug-in management platform through an equipment panel data packet and a public resource data packet, the public resource data packet comprises public data used for generating operation interfaces with different functions, and the equipment panel data packet comprises data used for generating the operation interfaces; and generating and displaying a target operation interface based on the equipment panel plug-in.
Optionally, the obtaining of the device panel plug-in sent by the server in response to the request includes: acquiring the set information of the equipment panel plug-ins sent by the server in response to the request, wherein the set information of the equipment panel plug-ins comprises the following contents: the code of the equipment panel plug-in, the style information of the equipment panel plug-in, the version number of the equipment panel plug-in, the download path of the equipment panel plug-in and the identification of the equipment panel plug-in.
Optionally, the method further comprises: and under the condition that the set information of the equipment panel plug-in is empty, outputting prompt information, wherein the prompt information is used for prompting that the generation of the target operation interface fails.
Optionally, generating and displaying the target operation interface based on the device panel plug-in includes: in a case where the set information includes information of a plurality of device panel plug-ins, if a default device panel plug-in is included in the plurality of device panel plug-ins, a target operation interface is generated based on the default device panel plug-in.
Optionally, the method further comprises: selecting one device panel plug-in from the plurality of device panel plug-ins if the default device panel plug-in is not included in the plurality of device panel plug-ins; and generating a target operation interface based on the selected equipment panel plug-in.
Optionally, after generating and displaying the target operation interface based on the device panel plug-in, the method further includes: responding to the switching operation, and sending a switching request to a server; acquiring the set information of the updated equipment panel plug-in sent by the server responding to the switching request, wherein the set information of the updated equipment panel plug-in comprises the following contents: updating the code of the equipment panel plug-in, updating the style information of the equipment panel plug-in, updating the version number of the equipment panel plug-in, updating the download path of the equipment panel plug-in and updating the identifier of the equipment panel plug-in; generating a plurality of styles of operation interfaces based on the set information of the updated equipment panel plug-in; responding to the selection operation, and selecting an operation interface to be switched to from the operation interfaces of the multiple styles; and displaying the switched operation interface.
According to another aspect of the embodiment of the invention, a system for generating the operation interface is also provided. The system may include: plug-in management platform, server and target device, wherein: the plug-in management platform is used for acquiring a public resource data packet and at least one equipment panel data packet, wherein the public resource data packet comprises public data used for generating operation interfaces with different functions, and the equipment panel data packet comprises data used for generating the operation interfaces; generating an equipment panel plug-in unit through each equipment panel data packet and the public resource data packet to obtain at least one equipment panel plug-in unit; the server is used for acquiring and responding to a request sent by the target equipment and sending the equipment panel plug-in matched with the target equipment to the target equipment; and the target equipment is used for generating and displaying a target operation interface based on the equipment panel plug-in.
According to another aspect of the embodiment of the invention, a device for generating the operation interface is also provided. The apparatus may include: the device comprises a first acquisition unit, a second acquisition unit and a display unit, wherein the first acquisition unit is used for acquiring a public resource data packet and at least one device panel data packet, the public resource data packet comprises public data used for generating operation interfaces with different functions, and the device panel data packet comprises data used for generating the operation interfaces; the first generating unit is used for generating a device panel plug-in unit through each device panel data packet and the public resource data packet to obtain at least one device panel plug-in unit; an allocation unit, configured to allocate each device panel plug-in to a corresponding target device, where each device panel plug-in is configured to generate a target operation interface of the target device based on a request of the target device
According to another aspect of the embodiment of the invention, another device for generating the operation interface is also provided. The apparatus may include: the second acquisition unit is used for acquiring the request sent by the target equipment; and the first sending unit is used for responding to the request and sending the device panel plug-in matched with the target device to the target device, wherein the device panel plug-in is used for generating a target operation interface on the target device and is generated by the plug-in management platform through a device panel data packet and a public resource data packet, the public resource data packet comprises public data used for generating operation interfaces with different functions, and the device panel data packet comprises data used for generating the operation interfaces.
According to another aspect of the embodiment of the invention, another device for generating the operation interface is also provided. The apparatus may include: a second sending unit, configured to send a request to the server; the third acquisition unit is used for acquiring the equipment panel plug-in sent by the server in response to the request, wherein the equipment panel plug-in is generated by the plug-in management platform through an equipment panel data packet and a public resource data packet, the public resource data packet comprises public data used for generating operation interfaces with different functions, and the equipment panel data packet comprises data used for generating the operation interfaces; and the second generation unit is used for generating and displaying the target operation interface based on the equipment panel plug-in.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium. The storage medium includes a stored program, and when the program is executed by the processor, the storage medium controls the device to execute the method for generating the operation interface according to the embodiment of the present invention.
According to another aspect of the embodiments of the present invention, there is also provided a processor. The processor is used for running a program, wherein the program runs the generation method of the operation interface of the embodiment of the invention.
In the embodiment of the invention, a public resource data packet and at least one equipment panel data packet are obtained, wherein the public resource data packet comprises public data used for generating operation interfaces with different functions, and the equipment panel data packet comprises data used for generating the operation interfaces; generating an equipment panel plug-in unit through each equipment panel data packet and the public resource data packet to obtain at least one equipment panel plug-in unit; and allocating each equipment panel plug-in to the corresponding target equipment, wherein each equipment panel plug-in is used for generating a target operation interface of the target equipment based on the request of the target equipment. The embodiment enables the operation interfaces to be plugged in, each operation interface is an independent plug-in, so that from the development perspective, the development of the operation interfaces of different devices can be independently developed by different personnel without mutual interference, from the user perspective, one device can support multiple operation interfaces, the requirements of users on different operation habits can be met, the technical problem of low interface generation efficiency is solved, and the technical effect of improving the interface generation efficiency is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of an operator interface generation system according to an embodiment of the present invention;
fig. 2 is a flowchart of a method of generating an operation interface according to an embodiment of the present invention;
FIG. 3 is a flow chart of another method for generating an operator interface according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for generating an operation interface according to an embodiment of the present invention;
fig. 5(a) is a schematic diagram of selecting a style of a dimming debugging panel according to an embodiment of the present invention;
FIG. 5(B) is a schematic diagram of an operation interface of style one of the dimming and toning panel according to the embodiment of the invention
FIG. 6(A) is a schematic diagram of another style of selecting a dimming debugging panel according to an embodiment of the present invention;
FIG. 6(B) is a schematic diagram of an operation interface of style two of the dimming and toning panel according to the embodiment of the present invention;
FIG. 7 is a schematic diagram of a system for device panel plug-in for smart control applications, according to an embodiment of the present invention;
FIG. 8 is a flow diagram of a plug-in to obtain a device panel from a publication of a device panel plug-in to a user, according to an embodiment of the invention;
FIG. 9 is a flow diagram of a method for device panel update and expansion according to an embodiment of the present invention;
FIG. 10 is a flow diagram of a method for a user to set style preferences for a device panel in accordance with an embodiment of the present invention;
fig. 11 is a schematic diagram of another operation interface generation apparatus according to the embodiment of the present invention;
fig. 12 is a schematic diagram of another operation interface generation apparatus according to the embodiment of the present invention; and
fig. 13 is a schematic diagram of another operation interface generation apparatus according to the embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
The embodiment of the invention provides a system for generating an operation interface.
Fig. 1 is a schematic diagram of an operation interface generation system according to an embodiment of the present invention. As shown in fig. 1, the operation interface generation system 10 may include: a plug-in management platform 11, a server 12 and a target device 13.
The plug-in management platform 11 is configured to obtain a public resource packet and at least one device panel packet, where the public resource packet includes public data used for generating operation interfaces with different functions, and the device panel packet includes data used for generating the operation interfaces; and generating a device panel plug-in unit by each device panel data packet and the public resource data packet to obtain at least one device panel plug-in unit (plugin).
In this embodiment, the plug-in management platform 11 may be a plug-in manager configured to obtain a common resource packet and at least one device panel packet, wherein the common resource packet includes common data for generating operation interfaces of different functions, and the device panel packet includes data for generating the operation interfaces.
Optionally, the data packets acquired by the plug-in management platform 11 in this embodiment may be divided into two types, i.e., a common resource data packet and a device panel data packet, according to whether the resources or the functions of the data packets are common or not. The public resource data packet, that is, the public resource data packet, may include general basic functions and data, and may include, but is not limited to, a data transmission encryption function, a security authentication function, a public picture, a public style, a public JS, a public component, and the like, and the file size of the public resource data packet in this embodiment is large, and the update frequency is low; the equipment panel data package also is the equipment panel data package for the specific function to every equipment and the data of development operation interface, this equipment panel data package need rely on above-mentioned public resource data package just can normally be used on APP, and the file size of equipment panel data package is less, can load the completion fast on APP, and wherein, APP can be intelligent house APP, can adopt APP to adopt native (native) to mix the H5 mode.
The plug-in management platform 11 obtains an independently available device panel plug-in generated by collocating each device panel packet with a common resource packet. The plug-in management platform 11 of this embodiment may be configured to provide management functionality for device panel plug-ins.
The plug-in management platform 11 may also be configured to assign the resulting device panel plug-ins per target device 13. That is, the association relationship between each device panel plug-in and the target device 13 may be that each device panel plug-in is authorized to the target device 13, that is, the target device 13 may generate the target operation interface by using the device panel plug-in. If each device panel plug-in is not suitable for the target device 13 to generate the corresponding target operation interface after verification, in order to avoid affecting the operation interface generated by the target device 13 in the later period, the embodiment may also cancel the authority granted to the target device 13 for using each device panel plug-in.
The plug-in management platform 11 of this embodiment may be configured to provide functionality such as upload, download, update, delete, etc. of device panel plug-ins. Optionally, in some applications, the packaged device panel plug-ins are uploaded to the plug-in management platform 11, and a plug-in code and style may be specified when uploading, for example, a plug-in code may correspond to multiple styles of device panel plug-ins.
And the server 12 is used for acquiring and responding to the request sent by the target device 13, and sending the device panel plug-in matched with the target device 13 to the target device 13.
The server 12, that is, a cloud server, is a remote server, and is configured to obtain a request sent by the target device 13, where the request is used to request access to a device panel plug-in that matches the target device 13. Alternatively, in this embodiment, a general program of a plurality of functions may be installed in the server 12 to realize linkage of functions between different devices.
The server 12 of this embodiment may determine a device panel 13 plug-in matching the target device 13 from among the at least one device panel plug-in and send it to the target device 13.
Alternatively, the server 12 and the plug-in management platform 11 of this embodiment share the same target database, and the server 12 may transmit the device panel plug-in corresponding to the target device 13 in response to the request transmitted by the target device 13.
Optionally, the server 12 is provided with an API interface for providing access to the API interface, and the server 12 may obtain the request sent by the target device 13 through the application program interface, and the API interface returns the device panel plug-in already allocated for the target device 13. The server 12 may obtain set information of the device panel plug-in according to a product key value (product key), where the set information of the device panel plug-in may include a code of the device panel plug-in, that is, a code for implementing a plug-in function; style information of the device panel plug-in, i.e. for indicating the plug-in style, may also be included, information for indicating different plug-in styles may be included; the version number of the device panel plug-in may also be included, for example, the version number of each device panel plug-in version after updating; a download path of the device panel plug-in may also be included, that is, a path including data for downloading the device panel plug-in; an identification of the device panel plug-in may also be included, such as including a default identification of the device panel plug-in, and the like.
Optionally, in this embodiment, the server 12 provides an API interface for control applications and for fifth generation hypertext Markup Language (HTML) module calls, i.e., for the H5 module. When an H5 engineering module project is constructed, the H5 engineering module can be divided into a common resource engineering module and an equipment panel engineering module, and each piece of equipment can perform independent equipment panel function development on the common resource engineering module. Alternatively, the processor may be configured to output a common resource packet and a plurality of device panel packets by constructing the H5 engineering module, each device panel packet configured to be generated as an independently usable device panel plug-in when collocated with the common resource packet. The control application may be referred to as an intelligent control application, and refers to an application program or an application tool applied to any smart home product, and a hardware component or an installation plug-in having a peer-to-peer function with such an application program/tool. For example, the smart control application may include an application program installed in a memory/buffer of each smart home device to perform an intelligent control function, or may include a general-purpose program with multiple functions, where the general-purpose program is installed in a remote server to implement function linkage between different smart home devices.
And the target equipment 13 is used for generating and displaying a target operation interface based on the equipment panel plug-in.
The target device 13 may send a request to the server 12. Alternatively, when the user opens access to any one of the operation interfaces on the visual interface provided by the control application, the control application of the setting target device 13 may initiate an access request to the API interface of the server 12. The target device 13 may be a device product that needs to generate an operation interface, for example, a home device product. The target device 13 is provided with an intelligent control application, which may be an application program or application tool in any device, and a hardware component or installation plug-in having a peer-to-peer function with such application program/tool, etc. For example, the intelligent control application may include an application program installed in a memory/buffer of each device to perform an intelligent control function, or may include a general-purpose program with multiple functions, which is installed in a remote server to implement functional linkage between different devices.
In this embodiment, the target operation interface of the target device 13, that is, the operation interface of the target device 13 displayed through the interface of the APP, may also be referred to as a device panel, and the request is also an access request. Each device panel plug-in may be acquired by the server 12, and when the server 12 responds to a request of the target device 13, the device panel plug-in is transmitted to the target device 13 by the server 12, so that the target device 13 generates and displays a target operation interface of the target device 13 based on the device panel plug-in. The target operation interface of the target device 13, that is, the operation interface of the target device 13 displayed through the APP interface, may also be referred to as a device panel, and the request is also an access request.
Optionally, in this embodiment, the device panel may be a panel-mounted product providing functions of a smart home product, and may be a configuration form of a smart home device, and may be used to represent a flat surface interface or a combination form of multiple surfaces that is convenient for a user to manipulate, and the device panel may be actually mounted in a building surface or a compact structure that is movable to manipulate, and may also be presented virtually. Alternatively, the electronic function of the physical device panel may include, for example, a switch panel providing a lamp switch, a dimming function, a function providing a wireless network or an infrared manipulation, or a response and a mechanical/electronic action providing an environment sensing function, etc., which are not limited in particular herein.
In this embodiment, a common resource packet and at least one device panel packet are obtained by the plug-in management platform 11, where the common resource packet includes common data for generating operation interfaces of different functions, and the device panel packet includes data for generating the operation interfaces; generating an equipment panel plug-in unit through each equipment panel data packet and the public resource data packet to obtain at least one equipment panel plug-in unit; the server 12 acquires and responds to a request sent by the target equipment, and sends the equipment panel plug-in matched with the target equipment 13 to the target equipment 13; the target device 13 generates and displays a target operation interface based on the device panel plug-in. That is to say, the embodiment plugins the operation interfaces, each operation interface is an independent plugin, so that from the development perspective, the development of the operation interfaces of different devices can be independently developed by different personnel without interference, from the user perspective, one device can support multiple operation interfaces, and the requirements of the user on different operation habits can be met, so that the functions of the operation interfaces of the device of the embodiment can be replaced, expanded and selected, and the requirements of manufacturer customization and user personalization are met, so that the technical problem of low interface generation efficiency is solved, and the technical effect of improving the interface generation efficiency is achieved.
Example 2
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for generating an operation interface, where it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than that herein.
The following describes a method for generating an operation interface according to an embodiment of the present invention from the plug-in management platform side.
Fig. 2 is a flowchart of a method for generating an operation interface according to an embodiment of the present invention. As shown in fig. 2, the method comprises the steps of:
step S202, a common resource data packet and at least one device panel data packet are acquired.
In the technical solution provided by step S202 of the present invention, the plug-in management platform, that is, the plug-in manager, acquires a public resource packet and at least one device panel packet, where the public resource packet includes public data used for generating operation interfaces with different functions, and the device panel packet includes data used for generating the operation interfaces.
In this embodiment, the data packets acquired by the plug-in management platform may be divided into two types, i.e., a common resource data packet and a device panel data packet, according to whether the resources or functions of the data packets are common. The public resource data packet, that is, the public resource data packet, may include general basic functions and data, and may include, but is not limited to, a data transmission encryption function, a security authentication function, a public picture, a public style, a public JS, a public component, and the like, and the file size of the public resource data packet in this embodiment is large, and the update frequency is low; the equipment panel data package also is the equipment panel data package for the specific function to every equipment and the data of development operation interface, this equipment panel data package need rely on above-mentioned public resource data package just can normally be used on APP, and the file size of equipment panel data package is less, can load the completion fast on APP, and wherein, APP can be intelligent house APP, can adopt APP to adopt native (native) to mix the H5 mode.
Optionally, the plug-in management platform of this embodiment may obtain the encapsulated public resource packets and the at least one device panel packet.
Step S204, generating an equipment panel plug-in unit through each equipment panel data packet and the public resource data packet to obtain at least one equipment panel plug-in unit.
In the technical solution provided in step S204 of the present invention, after the common resource packet and the at least one device panel packet are obtained, a device panel plug-in is generated through each device panel packet and the common resource packet, so as to obtain the at least one device panel plug-in.
In this embodiment, the plug-in management platform obtains an independently available device panel plug-in generated by concatenating each device panel packet with a common resource packet. The plug-in management platform of this embodiment may be configured to provide management functionality for device panel plug-ins.
And step S206, distributing each equipment panel plug-in to the corresponding target equipment, wherein each equipment panel plug-in is used for generating a target operation interface of the target equipment based on the request of the target equipment.
In the technical solution provided in step S206 of the present invention, after the plug-in management platform generates a device panel plug-in through each device panel data packet and the public resource data packet to obtain at least one device panel plug-in, each device panel plug-in is allocated to a corresponding target device, where each device panel plug-in is used to generate a target operation interface of the target device based on a request of the target device.
In this embodiment, the plug-in management platform may be further configured to assign the obtained device panel plug-in to each target device, where the target device may be a device product that needs to generate an operation interface, for example, a home device product. Each device panel plug-in can be acquired by the server, and when the server responds to the request of the target device, the server sends the device panel plug-in to the target device, so that the target device generates and displays a target operation interface of the target device based on the device panel plug-in. The target operation interface of the target device, that is, the operation interface of the target device displayed through the APP interface, may also be referred to as a device panel, and the request is also an access request.
Optionally, in this embodiment, the device panel may be a panel-mounted product providing functions of a smart home product, and may be a configuration form of a smart home device, and may be used to represent a flat surface interface or a combination form of multiple surfaces that is convenient for a user to manipulate, and the device panel may be actually mounted in a building surface or a compact structure that is movable to manipulate, and may also be presented virtually. Alternatively, the electronic function of the physical device panel may include, for example, a switch panel providing a lamp switch, a dimming function, a function providing a wireless network or an infrared manipulation, or a response and a mechanical/electronic action providing an environment sensing function, etc., which are not limited in particular herein.
Through the steps S202 to S206, a common resource packet and at least one device panel packet are obtained, where the common resource packet includes common data used for generating operation interfaces with different functions, and the device panel packet includes data used for generating the operation interfaces; generating an equipment panel plug-in unit through each equipment panel data packet and the public resource data packet to obtain at least one equipment panel plug-in unit; and allocating each equipment panel plug-in to the corresponding target equipment, wherein each equipment panel plug-in is used for generating a target operation interface of the target equipment based on the request of the target equipment. That is to say, the embodiment makes the operation interfaces plug-in, each operation interface is an independent plug-in, so that from the development perspective, the development of the operation interfaces of different devices can be independently developed by different personnel without interference, from the user perspective, one device can support multiple operation interfaces, and the requirements of the user on different operation habits can be met, so that the technical problem of low interface generation efficiency is solved, and the technical effect of improving the interface generation efficiency is obtained.
The above-described method of this embodiment is further described below.
As an optional implementation manner, after assigning each device panel plug-in to the corresponding target device in step S206, the method further includes: and storing each equipment panel plug-in into a target database, wherein the target database is used for providing the equipment panel plug-ins for a server, and the server is used for receiving and responding to the request and sending the set information of the equipment panel plug-ins to the target equipment.
In this embodiment, the plug-in management platform and the server may share the same target database. After the plug-in management platform allocates each device panel plug-in to the corresponding target device, the plug-in management platform may store each device panel plug-in the target database, and the server may receive and respond to the request sent by the target device, obtain the requested device panel plug-in from the target database, and further send the set information of the device panel plug-in to the target device, where the set information of the device panel plug-in may also be referred to as plug-in set information.
As an optional implementation, the set information of the device panel plug-in includes the following contents: code for a device panel plug-in; style information of the device panel plug-in; version number of the device panel plug-in; a download path for the device panel plug-in; identification of device panel plug-ins.
In this embodiment, the set information of the device panel plug-in may include a code of the device panel plug-in, that is, a code (plugin key) for implementing a plug-in function; style information of the device panel plug-in, that is, information indicating a plug-in style (style), may also be included, and information indicating a different plug-in style may be included; the version number of the device panel plug-in may also be included, for example, the version number of each device panel plug-in version after updating; a download path of the device panel plug-in may also be included, that is, a path including data for downloading the device panel plug-in; an identification of the device panel plug-in may also be included, such as including a default identification of the device panel plug-in, and the like.
As an alternative embodiment, the code of the device panel plug-in corresponds to a plurality of styles of device panel plug-ins.
In this embodiment, a plurality of styles of device panel plug-ins can be corresponded under the plug-in code of one device panel plug-in. Alternatively, the plug-in management platform may obtain data specifying plug-in code and corresponding multiple styles.
As an alternative implementation, step S202, acquiring a common resource packet and at least one device panel packet, includes: a common resource packet and at least one device panel packet derived based on a fifth generation hypertext markup language are obtained.
In this embodiment, the fifth generation hypertext markup language is also H5. When the engineering module project is constructed based on the H5 engineering module, the H5 engineering module can be set to be divided into a public resource engineering module and an equipment panel engineering module, each piece of equipment can develop independent equipment panel functions on the public resource engineering module, and the H5 engineering module can be developed through a processor. Optionally, the processor is configured to output a common resource packet and a plurality of device panel packets by constructing an H5 engineering module, where each device panel packet is configured to generate an independently available device panel plug-in when collocated with the common resource packet, and the plug-in management platform obtains the device panel plug-in.
Optionally, the H5 engineering module of this embodiment may design different operation styles according to different functional attributes, and output a device panel data packet corresponding to the different styles, for example, the target device is a product for implementing dimming and color mixing, and the H5 engineering module may design two different styles of operation interfaces according to the functional attributes of the product for implementing dimming and color mixing, and finally output two device panel data packets corresponding to the two styles, which may be a dimming and color mixing _ style1.zip device panel data packet, and a dimming and color mixing _ style2.zip device panel data packet. Then, the H5 engineering module uploads the two device panel data packets to the plug-in management platform, and since the two device panel data packets are device panels of different styles under the same product, the same plug-in code and different styles need to be input during uploading, optionally, dimming and toning _ style1.zip (plugin key DLT _ control, style1), dimming and toning _ style1.zip (plugin key DLT _ control, style2), and finally, distributing the plug-in DLT _ control to the product for realizing dimming and toning in the plug-in management platform. Therefore, when the APP corresponding to the target device is opened, two different styles of operation interfaces of the product which can be selected can be displayed.
As an alternative implementation, step S204, generating a device panel plug-in from each device panel packet and public resource packet includes: and matching each equipment panel data packet with the public resource data packet to obtain the equipment panel plug-in.
In this embodiment, the common resource packet may be used to generate a plurality of operation interfaces, and each device panel data packet may be matched with the common resource packet, or each device panel data packet may be matched with the common resource packet, so as to obtain an independently available device panel plug-in for the target device.
As an alternative embodiment, step S206, assigning each device panel plug-in to a corresponding target device includes: the target device is granted access to each device panel plug-in.
In this implementation, each device panel plug-in is assigned to a corresponding target device, that is, an association relationship is established between each device panel plug-in and the target device, and each device panel plug-in may be authorized to the target device, that is, the target device may generate the target operation interface using the device panel plug-in.
As an optional implementation, after granting the target device the right to use each device panel plug-in, the method further comprises: the right to use each device panel plug-in is granted to the target device is revoked.
In this embodiment, after the target device is granted the right to use each device panel plug-in, if it is verified that each device panel plug-in is not suitable for the target device to generate the corresponding target operation interface, in order to avoid affecting the operation interface generated by the target device in the later period, this embodiment may also cancel the right to use each device panel plug-in granted to the target device.
As an optional implementation manner, after allocating each device panel plug-in to the corresponding target device in step S204, the method further includes: acquiring an updating equipment panel data packet, wherein the updating equipment panel data packet comprises data used for updating a target operation interface; generating an updated equipment panel plug-in through the updated equipment panel data packet and the public resource data packet; and updating the equipment panel plug-in through the updated equipment panel plug-in, and distributing the updated equipment panel plug-in to the target equipment, wherein the updated equipment panel plug-in is used for generating an updated operation interface of the target equipment based on the request of the target equipment.
In this embodiment, the function of the target device may be updated, and may be an update including a new function, an optimization function, or a security performance, so that the operation interface of the target device for implementing the function also needs to be updated. The embodiment may obtain an update device dashboard packet, which may include data that has changed from a previous device dashboard packet, for updating the target operator interface. In this embodiment, the updated device panel plug-in is generated by the updated device panel packet and the public resource packet, so that the original device panel plug-in can be replaced by the updated device panel plug-in, and the updated device panel plug-in is allocated to the target device. Optionally, the update device panel plug-in of this embodiment is sent by the server to the target device in response to a request from the target device.
In this embodiment, the plug-in management platform may be configured to provide functionality such as upload, download, update, delete, etc. of device panel plug-ins. Optionally, in some applications, the packaged device panel plug-ins are uploaded to a plug-in management platform, and a plug-in code and style may be specified during uploading, for example, a plurality of styles of device panel plug-ins may be corresponding to one plug-in code.
The embodiment of the invention also provides another method for generating the operation interface from the server side.
Fig. 3 is a flowchart of another operation interface generation method according to an embodiment of the present invention. As shown in fig. 3, the method may include the steps of:
step S302, a request sent by the target device is acquired.
In the technical solution provided by step S302 of the present invention, the server, that is, the cloud server, is configured to obtain a request sent by the target device, where the request is for requesting access to a device panel plug-in that is matched with the target device. Alternatively, in this embodiment, a general program of a plurality of functions may be installed in the server to realize linkage of functions between different devices.
And step S304, responding to the request, and sending the device panel plug-in matched with the target device to the target device.
In the technical solution provided in step S304 of the present invention, after the server obtains the request sent by the target device, in response to the request, the server sends the device panel plug-in matched with the target device to the target device, where the device panel plug-in is used to generate a target operation interface on the target device, and is generated by the plug-in management platform through a device panel data packet and a public resource data packet, the public resource data packet includes public data used to generate operation interfaces with different functions, and the device panel data packet includes data used to generate operation interfaces.
In this embodiment, after the plugin management platform generates one device panel plugin through each device panel data packet and the public resource data packet, and obtains at least one device panel plugin, the server may determine a device panel plugin matching the target device from the at least one device panel plugin, and send the device panel plugin matching the target device to the target device, so that the target device generates and displays a target operation interface of the target device based on the device panel plugin. The target operation interface of the target device, that is, the operation interface of the target device displayed through the APP interface, may also be referred to as a device panel, and the request is also an access request.
The application obtains the request sent by the target device through the steps S302 to S304; and responding to the request, and sending the device panel plug-in matched with the target device to the target device, wherein the device panel plug-in is used for generating a target operation interface on the target device and is generated by the plug-in management platform through a device panel data packet and a public resource data packet, the public resource data packet comprises public data used for generating operation interfaces with different functions, and the device panel data packet comprises data used for generating the operation interfaces. That is to say, the embodiment makes the operation interfaces plug-in, each operation interface is an independent plug-in, so that from the development perspective, the development of the operation interfaces of different devices can be independently developed by different personnel without interference, from the user perspective, one device can support multiple operation interfaces, and the requirements of the user on different operation habits can be met, so that the technical problem of low interface generation efficiency is solved, and the technical effect of improving the interface generation efficiency is obtained.
The above-described method of this embodiment is further described below.
Optionally, in step S304, before sending the device panel plug-in matching with the target device to the target device, the method further includes: and acquiring the equipment panel plug-in from the target database, wherein the equipment panel plug-in is stored in the target database by the plug-in management platform.
In this embodiment, at least one device panel plug-in generated by the plug-in management platform is stored in the target database, the server and the plug-in management platform of this embodiment share the same target database, and the server may respond to a request sent by the target device and send a device panel plug-in corresponding to the target device, so that the target device generates the target operation interface based on the device panel plug-in.
Optionally, the obtaining the request sent by the target device includes: the request is obtained through an application program interface.
In this embodiment, the server is provided with an API interface for providing access to the API interface, and the server may obtain the request sent by the target device through the application program interface, and the API interface returns the device panel plug-in that has been allocated to the target device.
Optionally, in this embodiment, the server provides an API interface for control applications and H5 module calls. When an H5 engineering module project is constructed, the H5 engineering module can be divided into a common resource engineering module and an equipment panel engineering module, and each piece of equipment can perform independent equipment panel function development on the common resource engineering module. Alternatively, the processor may be configured to output a common resource packet and a plurality of device panel packets by constructing the H5 engineering module, each device panel packet configured to be generated as an independently usable device panel plug-in when collocated with the common resource packet.
Optionally, sending the device panel plug-in matched with the target device to the target device includes: sending the set information of the device panel plug-ins matched with the target device to the target device, wherein the set information of the device panel plug-ins comprises the following contents: the code of the equipment panel plug-in, the style information of the equipment panel plug-in, the version number of the equipment panel plug-in, the download path of the equipment panel plug-in and the identification of the equipment panel plug-in.
In this embodiment, the server may obtain the set information of the device panel plug-in according to a product key (product key), where the set information of the device panel plug-in may include a code of the device panel plug-in, that is, a code for implementing a plug-in function; style information of the device panel plug-in, i.e. for indicating the plug-in style, may also be included, information for indicating different plug-in styles may be included; the version number of the device panel plug-in may also be included, for example, the version number of each device panel plug-in version after updating; a download path of the device panel plug-in may also be included, that is, a path including data for downloading the device panel plug-in; an identification of the device panel plug-in may also be included, such as including a default identification of the device panel plug-in, and the like.
The embodiment of the invention also provides another generation method of the operation interface from the equipment side.
Fig. 4 is a flowchart of a method for generating an operation interface according to an embodiment of the present invention. As shown in fig. 4, the method may include the steps of:
step S402, a request is sent to the server.
In the technical solution provided by step S402 of the present invention, the target device may send a request to the server. Alternatively, when the user opens access to any one of the operation interfaces on the visual interface provided by the control application, the control application of the setup target device may initiate an access request to the API interface of the server. The target device may be a device product that needs to generate an operation interface, for example, a home device product. The target device is provided with an intelligent control application, and the intelligent control application can be an application program or an application tool in any device, a hardware component or an installation plug-in having a peer-to-peer function with the application program/tool, and the like. For example, the intelligent control application may include an application program installed in a memory/buffer of each device to perform an intelligent control function, or may include a general-purpose program with multiple functions, which is installed in a remote server to implement functional linkage between different devices.
Step S404, acquiring the equipment panel plug-in sent by the server response request.
In the technical solution provided by step S404 of the present invention, after the request is sent to the server, the device panel plug-in sent by the server in response to the request is obtained. The equipment panel plug-in is generated by the plug-in management platform through an equipment panel data packet and a public resource data packet, the public resource data packet comprises public data used for generating operation interfaces with different functions, and the equipment panel data packet comprises data used for generating the operation interfaces.
The device panel plug-in of this embodiment may be generated by the plug-in management platform through a device panel data packet and a public resource data packet, and obtained by the server from the target database, so that the target device obtains the device panel plug-in sent by the server in response to the request sent by the target device.
Step S406, generating and displaying a target operation interface based on the equipment panel plug-in.
In the technical solution provided by step S406 of the present invention, after obtaining the device panel plug-in sent by the server in response to the request, the target device may generate and display a target operation interface based on the device panel plug-in.
In this embodiment, the target device may be configured to display a target operation interface with different functions, for example, the target operation interface may be an operation interface for implementing a function of dimming and toning, which may be referred to as a dimming debugging panel. After obtaining the device panel plug-in sent by the server, the target device may generate and display a target operation interface based on the device panel plug-in.
Alternatively, if a device panel plug-in of the same type and version as the device panel plug-in has been downloaded locally, the target operation interface may be directly generated and displayed based on the existing device panel plug-in. Otherwise, the equipment panel plug-in can be downloaded to the local according to the download address in the acquired information of the equipment panel plug-in, and then the target operation interface is generated and displayed based on the downloaded equipment panel plug-in.
The present application sends a request to the server through the above steps S402 to S406; acquiring an equipment panel plug-in sent by a server response request, wherein the equipment panel plug-in is generated by a plug-in management platform through an equipment panel data packet and a public resource data packet, the public resource data packet comprises public data used for generating operation interfaces with different functions, and the equipment panel data packet comprises data used for generating the operation interfaces; and generating and displaying a target operation interface based on the equipment panel plug-in. That is to say, the embodiment makes the operation interfaces plug-in, each operation interface is an independent plug-in, so that from the development perspective, the development of the operation interfaces of different devices can be independently developed by different personnel without interference, from the user perspective, one device can support multiple operation interfaces, and the requirements of the user on different operation habits can be met, so that the technical problem of low interface generation efficiency is solved, and the technical effect of improving the interface generation efficiency is obtained.
The above-described method of this embodiment is further described below.
As an optional implementation manner, in step S404, obtaining the device panel plug-in sent by the server in response to the request includes: acquiring the set information of the equipment panel plug-ins sent by the server in response to the request, wherein the set information of the equipment panel plug-ins comprises the following contents: the code of the equipment panel plug-in, the style information of the equipment panel plug-in, the version number of the equipment panel plug-in, the download path of the equipment panel plug-in and the identification of the equipment panel plug-in.
In this embodiment, when obtaining the device panel plug-in sent by the server response request is implemented, the set information of the device panel plug-in obtained by the server according to the product key value, that is, the set information of the returned result, may include a code of the device panel plug-in, that is, a code for implementing a plug-in function; style information of the device panel plug-in, i.e. for indicating the plug-in style, may also be included, information for indicating different plug-in styles may be included; the version number of the device panel plug-in may also be included, for example, the version number of each device panel plug-in version after updating; a download path of the device panel plug-in may also be included, that is, a path including data for downloading the device panel plug-in; an identification of the device panel plug-in may also be included, such as including a default identification of the device panel plug-in, and the like.
As an optional implementation, the method further comprises: and under the condition that the set information of the equipment panel plug-in is empty, outputting prompt information, wherein the prompt information is used for prompting that the generation of the target operation interface fails.
In this embodiment, if the set information received by the target device is empty, a prompt message may be output, and optionally, the prompt message may be text information, voice information, image information, light information, or the like, where no specific limitation is made here, so as to prompt the user that the generation of the target operation interface fails. For example, an error prompt page is output.
As an optional implementation manner, in step S406, generating and displaying a target operation interface based on the device panel plug-in includes: in a case where the set information includes information of a plurality of device panel plug-ins, if a default device panel plug-in is included in the plurality of device panel plug-ins, a target operation interface is generated based on the default device panel plug-in.
In this embodiment, when generating and displaying the target operation interface based on the device panel plug-in is implemented, if the set information includes information of a plurality of device panel plug-ins, the set information may be traversed, and information of the device panel plug-in having the default identification may be preferentially used to generate the corresponding operation interface.
As an optional implementation, the method further comprises: selecting one device panel plug-in from the plurality of device panel plug-ins if the default device panel plug-in is not included in the plurality of device panel plug-ins; and generating a target operation interface based on the selected equipment panel plug-in.
In this embodiment, the plurality of device panel plug-ins may be ordered in a certain order, and if a default device panel plug-in is not included in the plurality of device panel plug-ins, for example, a device panel plug-in with a default identifier is not included, one device panel plug-in may be selected from the plurality of device panel plug-ins, for example, the first ordered device panel plug-in is selected, and then the target operation interface is generated based on the selected device panel plug-in.
As an optional implementation manner, after generating and displaying the target operation interface based on the device panel plug-in at step S406, the method further includes: responding to the switching operation, and sending a switching request to a server; acquiring the set information of the updated equipment panel plug-in sent by the server responding to the switching request, wherein the set information of the updated equipment panel plug-in comprises the following contents: updating the code of the equipment panel plug-in, updating the style information of the equipment panel plug-in, updating the version number of the equipment panel plug-in, updating the download path of the equipment panel plug-in and updating the identifier of the equipment panel plug-in; generating a plurality of styles of operation interfaces based on the set information of the updated equipment panel plug-in; responding to the selection operation, and selecting an operation interface to be switched to from the operation interfaces of the multiple styles; and displaying the switched operation interface.
In this embodiment, when the currently displayed operation interface of the target device does not meet the preference of the user, the currently displayed operation interface may be switched, for example, the style of the currently displayed operation interface is switched. Alternatively, the target device may send a handover request to the server in response to a handover operation triggered by the user. The server, after receiving the switch request, may send, to the target device, set information of the updated device panel plug-in response to the switch request, where the set information of the updated device panel plug-in may have changed data with respect to the set information of the previous device panel plug-in, for example, including a newly generated device panel packet. The target device obtains the set information of the updated device panel plug-in sent by the server in response to the switching request, wherein the set information may include a code for updating the device panel plug-in, that is, a code for implementing the function of updating the plug-in; the method can also comprise updating style information of the device panel plug-in, namely, for indicating the plug-in style, and can comprise information for indicating different plug-in styles; it may also include updating the version number of the device panel plug-in; a download path for updating the device panel plug-in, that is, a path including data for downloading the device panel plug-in, may also be included; an identification of the updated device panel plug-in may also be included, such as including a default identification of the updated device panel plug-in, and so forth.
For example, when the electronic function of the home equipment product a changes during updating or when the home equipment product a needs to develop a customized plug-in, a corresponding new H5 engineering module is developed through the processor, the development is performed based on the new function and the customized demand of the home equipment product a, an updated equipment panel data packet is output, the equipment panel plug-in is generated through the public resource data packet and the updated equipment panel data packet, the newly generated equipment panel plug-in is uploaded to the plug-in management platform, the plug-in authorization condition of the home equipment product a is changed, and then the replacement and the expansion of the new plug-in can be completed, so that the new equipment panel is allocated to the home equipment product a. When the user opens the equipment panel corresponding to the household equipment product A again after the updating is completed, the original equipment panel can be selectively opened, and a new equipment panel can also be selectively opened, so that the flexibility of equipment panel selection is improved.
As another example, when home device product A corresponds to multiple styles of device panels, the user may set usage preferences. Optionally, the household equipment product A corresponds to two types of plug-ins, namely a style I plug-in and a style II plug-in, and the plug-ins are uploaded to a plug-in management platform and authorized to the household equipment product A; the method includes the steps that a user opens an equipment panel of a household equipment product A on an APP for the first time, the APP defaults to open a first style, the user can select to switch equipment panel styles, the APP obtains set information of a latest plug-in of the household equipment product A from a server, the APP lists the set information for the user to select, the user can select a second style to use, the APP requests the server to set user plug-in preference, and the server can set the default plug-in of the household equipment product A for the user to be the second style.
It should be noted that the target device in this embodiment may be an electronic device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, etc., and this embodiment is not limited in this respect.
The embodiment enables the operation interfaces to be plugged in, each operation interface is an independent plug-in, so that from the development perspective, the development of the operation interfaces of different devices can be independently developed by different personnel without mutual interference, from the user perspective, one device can support multiple operation interfaces, the requirements of users on different operation habits can be met, the technical problem of low interface generation efficiency is solved, and the technical effect of improving the interface generation efficiency is achieved.
Example 3
The method of the examples of the present invention is illustrated below with reference to preferred embodiments. Specifically, the operation interface is taken as an equipment panel for illustration.
With the rapid development of the internet of things, the traditional product equipment manufacturing industry has made the intellectualization of the internet of things +' product an important direction for enterprise transformation and transformation. After the product is intelligent, the equipment can be controlled through the real home panel equipment, and can also be controlled by remote virtual operation through APP programs provided by various manufacturers.
Because the functions and product forms of the existing household equipment are continuously changed, and along with the continuous abundance of functional requirements, new products are continuously released, and even customized products need to use the technology and standard of a third party, so that the following problems can be encountered in the development process aiming at each APP program:
(1) the electronic function change or replacement of the household equipment causes the equipment panel to need secondary development on the original equipment panel, and causes uncertain influence on the original normal function;
(2) the coupling degree of new equipment, customized equipment and the whole project is high, and independent development cannot be realized;
(3) differences in operating habits of different users lead to differences in demands on the device panel.
In order to solve the above problem, this embodiment discloses a method and a system for intelligently controlling the plugins of an application device panel, where such a system may mainly include: the system comprises a control application, a processor, a plug-in management platform and a cloud server. In any embodiment of the present invention, the control application may be referred to as a smart control application, and refers to an application program or an application tool that is referred to as being applied in any smart home product, and a hardware component or an installation plug-in having a peer-to-peer function with such an application program/tool. For example, the smart control application may include an application program installed in a memory/buffer of each smart home device to perform an intelligent control function, or may include a general-purpose program with multiple functions, where the general-purpose program is installed in a remote server to implement functional linkage between different smart home devices.
The device panel of this embodiment refers to a panel-mounted product that is referred to as providing smart home product functionality, and such a panel may also be virtually rendered in some applications of the present invention. Alternatively, the device panel of this embodiment may be a configuration generally referred to as a smart home device, and may represent a flat surface interface or a combination of surfaces that facilitate user manipulation, and may be physically installed in a building or a portable compact structure. The electronic functions of the physical device panel may include, for example, a switch panel providing a light switch, a dimming function, a function providing wireless networking or infrared manipulation, or a response and mechanical/electronic action providing an environment sensing function, etc.
In the construction process of the system, the control application can be developed by adopting a Native interface to mix with a fifth generation HTML (H5) architecture, wherein H5 is used for developing the functions of the equipment panel. The server provides an API interface for control applications and H5 function module calls. When an H5 engineering module project is constructed, the H5 engineering module is set to be divided into a public resource engineering module and an equipment panel engineering module, and each product can perform independent equipment panel function development on the public resource engineering module. The processor may be configured to output a common resource packet and a plurality of device panel packets by constructing the H5 engineering module, each device panel packet configured to fit with the common resource packet to generate an independently usable device panel plug-in.
In this embodiment, the data packets are divided into two types, i.e., common resource packets and device panel packets, according to whether the resources or functions thereof are common. The common resource packet may include general basic functions and data, including but not limited to: data transmission encryption, security authentication, public pictures, public styles, public JS and public components, wherein the file size of a public resource data packet is large, and the updating frequency is low; the equipment panel data package is a functional interface developed aiming at specific functions of each product, the equipment panel data package can be normally used on the APP only by relying on a public resource data package, and the size of the equipment panel data package file is small, so that the rapid loading can be completed on the APP.
The plug-in management platform of this embodiment may be configured to provide, for example, upload, download, update, delete functions for the device panel plug-in. In some applications, the packaged device panel plug-in may be uploaded to a plug-in management platform, and the plug-in code PluginKey and style may be specified at the time of uploading. For example, a plug-in code may correspond to multiple styles of device panel plug-ins. In addition, the plug-in management platform may be further configured to provide management functionality of the device panel plug-ins for assigning the uploaded device panel plug-ins to each of the home device products.
And the server is used for providing API (application program interface) access and acquiring the information of the equipment panel plug-in according to the product key value product key. The API interface returns the aggregated information of the device panel plug-ins that have been assigned for that product, including, for example, plug-in code, plug-in style, version number, download path, default identification, etc. When a user opens and accesses any device panel on a visual interface provided by the control application, the control application can firstly initiate an access request to the API interface. And traversing the set information after the return result is received, preferentially using the equipment panel with the default identification, and using the first equipment panel if the default identification is not used. And if the set information of the returned result is null, giving an error prompt page.
For example, when the electronic function of the home device product a is changed when the prompt is updated, a corresponding new H5 engineering module is developed by the processor, and the generated device panel plug-in is uploaded to the plug-in management platform to assign a new device panel to the home device product a. When the user opens the equipment panel corresponding to the household equipment product A again after the updating is completed, the user can select to open the old equipment panel and can also select to open the new equipment panel.
The technical solution of the present application is further explained below with reference to the drawings and examples.
In APP, a new product is needed, the product name can be a dimming and color-mixing panel, and the product needs to support two different styles of equipment panels. Aiming at the requirements, two different operation styles are designed according to the functional attributes of the dimming and toning panel, and two equipment panel data packets are finally output: dimming and toning _ style1.zip, and dimming and toning _ style2. zip. Then, the two data packets are uploaded to a plug-in management platform, and because the two data packets are equipment panels of different styles of the same product, the same plug-in code and different styles need to be input during uploading, which is specifically as follows: dimming and toning _ style1.zip (plugin key ═ DLT _ control, style ═ style1), and dimming and toning _ style1.zip (plugin key ═ DLT _ control, style ═ style 2). Then, a plug-in DLT _ control is distributed to the product of the product dimming and toning panel in the plug-in management platform.
Fig. 5(a) is a schematic diagram of selecting a style of a dimming and debugging panel according to an embodiment of the present invention, when a dimming and toning panel is clicked, APP displays two selectable styles including a style one and a style two in a set page style, a user may select the style one in the set page style and pop up an operation interface as shown in fig. 5(B), and fig. 5(B) is a schematic diagram of an operation interface of the style one of the dimming and toning panel according to an embodiment of the present invention, on which color temperature and brightness may be adjusted.
Fig. 6(a) is a schematic diagram of another style of selecting a dimming debugging panel according to an embodiment of the present invention. As shown in fig. 6(a), the user may select style two in setting the page style, and pop up the operation interface shown in fig. 6(B), and fig. 6(B) is a schematic diagram of the operation interface of style two of the light and color adjusting panel according to the embodiment of the present invention, on which brightness and color temperature may be adjusted, and other related information may be displayed.
Fig. 7 is a schematic diagram of a system for device panel plug-in an intelligent control application according to an embodiment of the present invention. As shown in fig. 7, the system includes APP 71, H572, cloud service 73, and plug-in management platform 74. The APP 71 is in a native (native) hybrid H5 manner, and may include a device panel module for creating a device panel. H572 may be divided into a common resource project and a multi-device panel project, where each device panel project corresponds to one device panel, for example, corresponds to device panel 1, device panel 2, and so on; the cloud service 73 is used for providing an API interface for calling by APP and H5, and acquiring the set information of the plug-in of the product through the API; the plug-in management platform 74 performs plug-in management and product plug-in management; the plug-in management platform 74 may be used to implement upload, download, update, and delete including plug-ins, product plug-in management including authorization and de-authorization of product plug-ins. Optionally, the cloud service 73 and the plug-in management platform 74 of this embodiment may share the same database and display other related information.
FIG. 8 is a flow diagram of a plug-in to obtain a device panel from a publication of a device panel plug-in to a user, according to an embodiment of the invention. As shown in fig. 8, the method may include the steps of:
step S801, an H5 engineering module is constructed, and a common resource data packet and a plurality of equipment panel data packets are output.
In this embodiment, each device panel packet is combined with a common resource packet to form an independently usable device panel plug-in.
In step S802, the plug-in management platform obtains the device panel plug-in obtained through H5.
Step S803, an equipment panel plug-in is allocated for the product on the plug-in management platform.
Step S804, when a user opens a certain product on the APP, the APP initiates a request to the cloud service API, and the latest plug-in set information of the product is obtained.
In step S805, it is determined whether the set information is empty.
If the set information is not empty, executing step S806; if the set information is determined to be empty, step 812 is performed.
Step S806, traverse the collection information of the plug-ins, and determine whether there is information of the default device panel plug-in.
In this embodiment, when the information of a plurality of style plug-ins is included in the set information, the APP first checks whether there is information of a default plug-in. If yes, go to step S807; if not, step S808 is performed.
In step S807, information of the default device panel plug-in is used.
If the information of the default equipment panel plug-in exists, the information of the default equipment panel plug-in is used.
In step S808, information of a first plug-in of the plurality of style plug-ins is used.
If there is no default device panel plug-in information, then information of a first plug-in of the plurality of style plug-ins is used.
Step S809, determining whether the APP has a local plug-in that is the same as the plug-in corresponding to the acquired information, and the version number is the same.
If the plug-ins corresponding to the acquired information are the same and the version numbers are the same, executing step S810; if not, step S811 is performed.
Step S810, opening the device panel plug-in.
And step S811, downloading the plug-in to the APP local according to the plug-in downloading address URL.
After downloading the plug-in locally according to the plug-in download address URL to the APP, step S810 is performed.
In step S812, the prompt information is output.
In this embodiment, when the set information of the plug-in is empty, the APP may output prompt information, for example, the APP displays a prompt page.
FIG. 9 is a flow chart of a method for device panel update and expansion according to an embodiment of the invention. As shown in fig. 9, the method may include the steps of:
step S901, develop a new H5 device panel package for product a.
When the function of the product A is changed to update the equipment panel or the product A needs to develop a customized plug-in, H5 newly builds an equipment panel project, develops based on the new function and the customized requirement of the product A, and outputs a new equipment panel data packet.
Step S902, upload the new device panel plug-in obtained based on the new H5 device panel data packet to the plug-in management platform.
Step S903, the plug-in management platform authorizes the new equipment panel plug-in to the product A.
After the new equipment package is uploaded to the plug-in management platform, the plug-in management platform changes the plug-in authorization condition of the product A, and then the replacement and the expansion of the new plug-in can be completed.
FIG. 10 is a flow chart of a method for a user to set style preferences for a device dashboard in accordance with an embodiment of the present invention. As shown in fig. 10, the method may include the steps of:
step S1001, developing multiple styles of H5 equipment panel plug-ins for product A.
In this embodiment, when product A is provided with multiple styles of device panel plug-ins, the user can set the style preferences for use.
Step S1002, uploading the H5 equipment panel plug-ins of a plurality of styles to a plug-in management platform, and authorizing the product A through the plug-in management platform.
For example, two types of plug-ins, style one and style two, are developed for product a, uploaded to the plug-in management platform and authorized for product a.
Step S1003, the user selects a style of the switching device panel on the APP.
Optionally, the user opens the device panel of product a on the APP for the first time, the APP defaults to open style one, and the user may select to switch the style of the device panel.
In step S1004, the APP requests the cloud server for the latest plug-in set information of the product.
And the APP acquires the latest plug-in set information of the product A from the cloud service.
In step S1005, the APP lists the device panel plug-ins of the selectable styles to the user for selection based on the latest plug-in set information.
In step S1006, the user selects a style of device panel plug-in from the selectable styles of device panel plug-ins.
Optionally, for selecting use style two.
Step S1007, the cloud server sets the device panel plug-in of the selected style as a default device panel plug-in for the user.
Optionally, the APP requests the cloud server for setting a preference of the user equipment panel plug-in, and the cloud service sets the style of the default equipment panel plug-in of the product a for the user to be style two.
It should be noted that the device panel in this embodiment refers to an operation interface of a certain device displayed through an interface of the APP.
This embodiment plugins the device panels, each of which is a separate plugin. From the development angle, the development of the equipment panels of different products can be independently developed by different personnel without mutual interference, the function change of the products is released in a new plug-in mode, and iterative updating is carried out through the authority. From the perspective of a user, one household equipment product can support multiple equipment panels, the requirements of the user on different operation habits are met, the functions of the equipment panels can be replaced, expanded and selected, the requirements of manufacturers for customization and user personalization are met, the technical problem of low interface generation efficiency is solved, and the technical effect of improving the interface generation efficiency is achieved.
Example 4
The embodiment of the invention also provides a device for generating the operation interface. It should be noted that the generation apparatus of an operation interface of this embodiment may be used to execute the generation method of an operation interface shown in fig. 2.
Fig. 11 is a schematic diagram of another operation interface generation apparatus according to an embodiment of the present invention. As shown in fig. 11, the generating device 110 of the operation interface may include: a first acquisition unit 111, a first generation unit 112, and an assignment unit 113.
The first obtaining unit 111 is configured to obtain a common resource packet and at least one device panel packet, where the common resource packet includes common data for generating operation interfaces with different functions, and the device panel packet includes data for generating the operation interfaces.
A first generating unit 112, configured to generate a device panel plug-in from each device panel packet and the public resource packet, so as to obtain at least one device panel plug-in.
An assigning unit 113, configured to assign each device panel plugin to a corresponding target device, where each device panel plugin is configured to generate a target operation interface of the target device based on a request of the target device.
The embodiment of the invention also provides a device for generating the operation interface. It should be noted that the operation interface generation device of this embodiment can be used in the operation interface generation method of the embodiment shown in fig. 3.
Fig. 12 is a schematic diagram of another operation interface generation apparatus according to the embodiment of the present invention. As shown in fig. 12, the generating device 120 of the operation interface may include: a second acquisition unit 121 and a first transmission unit 122.
A second obtaining unit 121, configured to obtain the request sent by the target device.
And a first sending unit 122, configured to send, in response to the request, a device panel plug-in matched with the target device to the target device, where the device panel plug-in is used to generate a target operation interface on the target device, and is generated by the plug-in management platform through a device panel data packet and a public resource data packet, the public resource data packet includes public data used to generate operation interfaces with different functions, and the device panel data packet includes data used to generate the operation interface.
The embodiment of the invention also provides a device for generating the operation interface. It should be noted that the apparatus for generating an operation interface according to this embodiment may be used in the method for generating an operation interface according to the embodiment shown in fig. 4.
Fig. 13 is a schematic diagram of another operation interface generation apparatus according to the embodiment of the present invention. As shown in fig. 13, the generating device 130 of the operation interface may include: a second sending unit 131 and a third obtaining unit 132.
A second sending unit 131, configured to send the request to the server.
A third obtaining unit 132, configured to obtain a device panel plug-in sent by the server in response to the request, where the device panel plug-in is generated by the plug-in management platform through a device panel data packet and a public resource data packet, the public resource data packet includes public data used for generating operation interfaces with different functions, and the device panel data packet includes data used for generating the operation interfaces; and the second generation unit is used for generating and displaying the target operation interface based on the equipment panel plug-in.
The operation interface generation device of the embodiment enables the operation interfaces to be plugins, each operation interface is an independent plugin, so that from the development perspective, the development of the operation interfaces of different devices can be independently developed by different personnel without interference, from the user perspective, one device can support various operation interfaces, and the requirements of users on different operation habits can be met.
Example 4
According to an embodiment of the present invention, there is also provided a storage medium including a stored program, wherein the program executes the method for generating an operation interface described in embodiment 1.
Example 5
According to an embodiment of the present invention, there is also provided a processor, configured to execute a program, where the program executes the method for generating an operation interface described in embodiment 1 when the program is executed by the processor.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (23)

1. A method for generating an operation interface is characterized by comprising the following steps:
the method comprises the steps of obtaining a public resource data packet and at least one equipment panel data packet, wherein the public resource data packet comprises public data used for generating operation interfaces with different functions, and the equipment panel data packet comprises data used for generating the operation interfaces;
generating an equipment panel plug-in unit through each equipment panel data packet and the public resource data packet to obtain at least one equipment panel plug-in unit;
allocating each equipment panel plug-in to a corresponding target equipment, wherein each equipment panel plug-in is used for generating a target operation interface of the target equipment based on the request of the target equipment;
wherein assigning each of the device panel plug-ins to a corresponding target device comprises:
granting the target device access to each of the device panel plug-ins;
wherein after granting the target device the right to use each of the device panel plug-ins, the method further comprises: and when each device panel plug-in is detected not to be matched with the target operation interface generated by the target device, the permission of using each device panel plug-in is cancelled to the target device.
2. The method of claim 1, wherein after assigning each of the device panel inserts to a corresponding target device, the method further comprises:
and storing each equipment panel plug-in into a target database, wherein the target database is used for providing the equipment panel plug-ins for a server, and the server is used for receiving and responding to the request and sending the set information of the equipment panel plug-ins to the target equipment.
3. The method of claim 2, wherein the set information of the device panel plug-in includes the following:
code for the device panel plug-in;
style information of the device panel plug-in;
a version number of the device panel plug-in;
a download path for the device panel plug-in;
an identification of the device panel insert.
4. The method of claim 3, wherein the code for each of the device panel plug-ins corresponds to a plurality of styles of the device panel plug-ins.
5. The method of claim 1, wherein retrieving a common resource packet and at least one device panel packet comprises:
obtaining the common resource data packet and at least one of the device panel data packets obtained based on a fifth generation hypertext markup language.
6. The method of claim 1, wherein generating a device panel plug-in from each of the device panel packets and the common resource packets comprises:
and matching each equipment panel data packet with the public resource data packet to obtain the equipment panel plug-in.
7. The method of any of claims 1-6, wherein after assigning each of the device panel plug-ins to a corresponding target device, the method further comprises:
acquiring an updated device panel data packet, wherein the updated device panel data packet comprises data for updating the target operation interface;
generating an updated device panel plug-in through the updated device panel data packet and the common resource data packet;
and updating the equipment panel plug-in through the updated equipment panel plug-in, and distributing the updated equipment panel plug-in to the target equipment, wherein the updated equipment panel plug-in is used for generating an updated operation interface of the target equipment based on the request of the target equipment.
8. A method for generating an operation interface is characterized by comprising the following steps:
acquiring a request sent by target equipment;
responding to the request, and sending a device panel plug-in matched with the target device to the target device, wherein the device panel plug-in is used for generating a target operation interface on the target device and is generated by a plug-in management platform through a device panel data packet and a public resource data packet, the public resource data packet comprises public data used for generating operation interfaces with different functions, and the device panel data packet comprises data used for generating the operation interfaces;
after acquiring a request sent by a target device, allocating each device panel plug-in to the corresponding target device, including:
granting the target device access to each of the device panel plug-ins;
after the plug-in management platform grants the target device the right to use each device panel plug-in, when detecting that each device panel plug-in is not matched with the target operation interface generated by the target device, the plug-in management platform cancels the right to use each device panel plug-in granted to the target device.
9. The method of claim 8, wherein prior to sending the device panel plug-in that matches the target device to the target device, the method further comprises:
and acquiring the equipment panel plug-in from a target database, wherein the equipment panel plug-in is stored into the target database by the plug-in management platform.
10. The method of claim 9, wherein obtaining the request sent by the target device comprises:
the request is obtained through an application program interface.
11. The method of claim 8, wherein sending the device panel plug-in that matches the target device to the target device comprises:
sending the set information of the device panel plug-in matched with the target device to the target device, wherein the set information of the device panel plug-in comprises the following contents: the device panel plug-in module comprises a code of the device panel plug-in module, style information of the device panel plug-in module, a version number of the device panel plug-in module, a download path of the device panel plug-in module and an identifier of the device panel plug-in module.
12. A method for generating an operation interface is characterized by comprising the following steps:
sending a request to a server;
acquiring an equipment panel plug-in sent by the server in response to the request, wherein the equipment panel plug-in is generated by a plug-in management platform through an equipment panel data packet and a public resource data packet, the public resource data packet comprises public data used for generating operation interfaces with different functions, and the equipment panel data packet comprises data used for generating the operation interfaces;
generating and displaying a target operation interface based on the equipment panel plug-in;
before acquiring the equipment panel plug-ins sent by the server in response to the request, acquiring the authority of each equipment panel plug-in;
after the plug-in management platform grants the target device the right to use each device panel plug-in, when detecting that each device panel plug-in is not matched with the target operation interface generated by the target device, the plug-in management platform cancels the right to use each device panel plug-in granted to the target device.
13. The method of claim 12, wherein obtaining the device panel plug-in sent by the server in response to the request comprises:
acquiring the set information of the equipment panel plug-in sent by the server in response to the request, wherein the set information of the equipment panel plug-in comprises the following contents: the device panel plug-in module comprises a code of the device panel plug-in module, style information of the device panel plug-in module, a version number of the device panel plug-in module, a download path of the device panel plug-in module and an identifier of the device panel plug-in module.
14. The method of claim 13, further comprising:
and outputting prompt information under the condition that the set information of the equipment panel plug-in is empty, wherein the prompt information is used for prompting that the generation of the target operation interface fails.
15. The method of claim 13, wherein generating and displaying a target operations interface based on the device panel plug-in comprises:
and if the set information comprises information of a plurality of equipment panel plug-ins, generating the target operation interface based on a default equipment panel plug-in if the plurality of equipment panel plug-ins comprise the default equipment panel plug-in.
16. The method of claim 15, further comprising:
selecting one device panel plug-in from the plurality of device panel plug-ins if a default device panel plug-in is not included in the plurality of device panel plug-ins;
and generating the target operation interface based on the selected equipment panel plug-in.
17. The method of any of claims 12 to 16, wherein after generating and displaying a target operational interface based on the device panel plug-in, the method further comprises:
responding to the switching operation, and sending a switching request to a server;
acquiring the set information of the updated device panel plug-in sent by the server in response to the switching request, wherein the set information of the updated device panel plug-in comprises the following contents: the code of the update equipment panel plug-in, the style information of the update equipment panel plug-in, the version number of the update equipment panel plug-in, the download path of the update equipment panel plug-in and the identification of the update equipment panel plug-in;
generating a plurality of styles of operation interfaces based on the set information of the updated equipment panel plug-in;
responding to selection operation, and selecting an operation interface to be switched to from the operation interfaces of the plurality of styles;
and displaying the switched operation interface.
18. An operation interface generation system, comprising: plug-in management platform, server and target device, wherein:
the plug-in management platform is used for acquiring a public resource data packet and at least one equipment panel data packet, wherein the public resource data packet comprises public data used for generating operation interfaces with different functions, and the equipment panel data packet comprises data used for generating the operation interfaces; generating an equipment panel plug-in unit through each equipment panel data packet and the public resource data packet to obtain at least one equipment panel plug-in unit;
the server is used for acquiring and responding to a request sent by the target equipment and sending the equipment panel plug-in matched with the target equipment to the target equipment;
the target equipment is used for generating and displaying a target operation interface based on the equipment panel plug-in;
the plug-in management platform is further used for granting the target device the right of using each device panel plug-in;
after the target device is granted the right to use each device panel plug-in, the plug-in management platform cancels the right to use each device panel plug-in from the target device when detecting that each device panel plug-in is not matched with the target operation interface generated by the target device.
19. An operation interface generation device, comprising:
the device comprises a first acquisition unit, a second acquisition unit and a display unit, wherein the first acquisition unit is used for acquiring a public resource data packet and at least one device panel data packet, the public resource data packet comprises public data used for generating operation interfaces with different functions, and the device panel data packet comprises data used for generating the operation interfaces;
a first generating unit, configured to generate a device panel plug-in through each device panel packet and the public resource packet, so as to obtain at least one device panel plug-in;
the distribution unit is used for distributing each equipment panel plug-in to corresponding target equipment, wherein each equipment panel plug-in is used for generating a target operation interface of the target equipment based on the request of the target equipment;
the first acquisition unit is further used for granting the target device the authority of using each device panel plug-in;
after the target device is granted the right to use each device panel plug-in, when detecting that each device panel plug-in is not matched with the target operation interface generated by the target device, canceling the right to use each device panel plug-in granted to the target device.
20. An operation interface generation device, comprising:
the second acquisition unit is used for acquiring the request sent by the target equipment;
a first sending unit, configured to send, in response to the request, an equipment panel plug-in matched with the target equipment to the target equipment, where the equipment panel plug-in is configured to generate a target operation interface on the target equipment and is generated by a plug-in management platform through an equipment panel data packet and a public resource data packet, the public resource data packet includes public data used for generating operation interfaces with different functions, and the equipment panel data packet includes data used for generating the operation interfaces;
the second obtaining unit is further configured to allocate each device panel plug-in to a corresponding target device after obtaining a request sent by the target device, and includes:
granting the target device access to each of the device panel plug-ins;
after the target device is granted the right to use each device panel plug-in, when detecting that each device panel plug-in is not matched with the target operation interface generated by the target device, canceling the right to use each device panel plug-in granted to the target device.
21. An operation interface generation device, comprising:
a second sending unit, configured to send a request to the server;
a third obtaining unit, configured to obtain a device panel plug-in sent by the server in response to the request, where the device panel plug-in is generated by a plug-in management platform through a device panel data packet and a public resource data packet, the public resource data packet includes public data used for generating operation interfaces with different functions, and the device panel data packet includes data used for generating the operation interfaces;
the second generating unit is used for generating and displaying a target operation interface based on the equipment panel plug-in;
the third obtaining unit is further configured to obtain the permission of each device panel plug-in before obtaining the device panel plug-in sent by the server in response to the request;
after the target device is granted the right to use each device panel plug-in, when detecting that each device panel plug-in is not matched with the target operation interface generated by the target device, canceling the right to use each device panel plug-in granted to the target device.
22. A storage medium comprising a stored program, wherein the program, when executed by a processor, controls an apparatus in which the storage medium is located to perform the method of any one of claims 1 to 17.
23. A processor, configured to run a program, wherein the program when running performs the method of any one of claims 1 to 17.
CN202010479936.2A 2020-05-29 2020-05-29 Method and device for generating operation interface, storage medium and processor Active CN111638882B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010479936.2A CN111638882B (en) 2020-05-29 2020-05-29 Method and device for generating operation interface, storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010479936.2A CN111638882B (en) 2020-05-29 2020-05-29 Method and device for generating operation interface, storage medium and processor

Publications (2)

Publication Number Publication Date
CN111638882A CN111638882A (en) 2020-09-08
CN111638882B true CN111638882B (en) 2022-03-11

Family

ID=72329518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010479936.2A Active CN111638882B (en) 2020-05-29 2020-05-29 Method and device for generating operation interface, storage medium and processor

Country Status (1)

Country Link
CN (1) CN111638882B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113741871A (en) * 2021-08-23 2021-12-03 珠海格力电器股份有限公司 Plug-in generation method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9881102B2 (en) * 2013-04-22 2018-01-30 Microsoft Technology Licensing, Llc Aggregating personalized suggestions from multiple sources
CN108462604A (en) * 2018-02-05 2018-08-28 成都数智凌云科技有限公司 Adaptability control method for movement towards intelligent terminal and system
CN108897291A (en) * 2018-07-12 2018-11-27 四川虹美智能科技有限公司 A kind of control method of intelligent appliance, mobile terminal and control system
CN109542445A (en) * 2017-08-01 2019-03-29 北京京东尚科信息技术有限公司 A kind of method and apparatus that Android plug-in unit melts hair
CN110647278A (en) * 2019-09-05 2020-01-03 珠海格力电器股份有限公司 Method and device for controlling plug-in display, computing equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3334897B1 (en) * 2015-08-14 2023-07-26 Services Pétroliers Schlumberger Bore penetration data matching
CN109144533B (en) * 2017-06-28 2021-05-04 北京嘀嘀无限科技发展有限公司 Method, system and computer device for updating and loading application program
CN110768877B (en) * 2019-09-27 2022-05-27 百度在线网络技术(北京)有限公司 Voice control instruction processing method and device, electronic equipment and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9881102B2 (en) * 2013-04-22 2018-01-30 Microsoft Technology Licensing, Llc Aggregating personalized suggestions from multiple sources
CN109542445A (en) * 2017-08-01 2019-03-29 北京京东尚科信息技术有限公司 A kind of method and apparatus that Android plug-in unit melts hair
CN108462604A (en) * 2018-02-05 2018-08-28 成都数智凌云科技有限公司 Adaptability control method for movement towards intelligent terminal and system
CN108897291A (en) * 2018-07-12 2018-11-27 四川虹美智能科技有限公司 A kind of control method of intelligent appliance, mobile terminal and control system
CN110647278A (en) * 2019-09-05 2020-01-03 珠海格力电器股份有限公司 Method and device for controlling plug-in display, computing equipment and storage medium

Also Published As

Publication number Publication date
CN111638882A (en) 2020-09-08

Similar Documents

Publication Publication Date Title
CN110944330B (en) MEC platform deployment method and device
US9525592B2 (en) Client/server network environment setup method and system
US20160007070A1 (en) Remote Control Processing Method, Device and System
CN104838618A (en) Method and apparatus for authenticating access authorization in wireless communication system
CN108540433B (en) User identity verification method and device
KR20190082926A (en) Messaging Protocol Communication Management
CN110463164A (en) Device credential management
TWI436677B (en) Methods and apparatus for simultaneously hosting multiple service providers on a network
US10645568B2 (en) Carrier configuration processing method, device and system, and computer storage medium
KR100757896B1 (en) System and method for remote home-service download in home network system
CN112399130B (en) Processing method and device of cloud video conference information, storage medium and communication equipment
CN114070888B (en) Service processing method, server, equipment and system based on cloud terminal
CN106230977B (en) A kind of client functionality loading method, system, client and server-side
CN113168334A (en) Data processing method and device, electronic equipment and readable storage medium
US11356434B2 (en) Technical layer for portable electronic assistant
JP6358063B2 (en) Request transmission method, information processing apparatus, and program
CN111638882B (en) Method and device for generating operation interface, storage medium and processor
EP4133363A1 (en) Presentation and technical layers for portable electronic assistant
CN111008023B (en) Instance deployment method and system
CN109451497B (en) Wireless network connection method and device, electronic equipment and storage medium
CN104570967A (en) Android system based remote control method and system
CN112270000B (en) Cryptographic service providing method, device and computer readable storage medium
CN109218259B (en) License management method and device, APPLM functional entity and computer readable storage medium
CN112989314B (en) Data authentication method, device and terminal
CN114389868A (en) Method, system and device for distributing cloud resources and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Huahong building, 248 Tianmushan Road, Xihu District, Hangzhou, Zhejiang 310007

Patentee after: HANGZHOU HONYAR ELECTRICAL Co.,Ltd.

Patentee after: Hangzhou Hongyan IOT Technology Co.,Ltd.

Address before: Huahong building, 248 Tianmushan Road, Xihu District, Hangzhou, Zhejiang 310007

Patentee before: HANGZHOU HONYAR ELECTRICAL Co.,Ltd.

Patentee before: Putian Hongyan Internet of things Technology Co.,Ltd.

Address after: Huahong building, 248 Tianmushan Road, Xihu District, Hangzhou, Zhejiang 310007

Patentee after: HANGZHOU HONYAR ELECTRICAL Co.,Ltd.

Patentee after: Putian Hongyan Internet of things Technology Co.,Ltd.

Address before: Huahong building, 248 Tianmushan Road, Xihu District, Hangzhou, Zhejiang 310007

Patentee before: HANGZHOU HONYAR ELECTRICAL Co.,Ltd.

Patentee before: PUTIAN INTELLIGENT LIGHTING INSTITUTE Co.,Ltd.