WO2020228042A1 - 设备操作方法、装置、网关、电子设备及计算机可读介质 - Google Patents

设备操作方法、装置、网关、电子设备及计算机可读介质 Download PDF

Info

Publication number
WO2020228042A1
WO2020228042A1 PCT/CN2019/087313 CN2019087313W WO2020228042A1 WO 2020228042 A1 WO2020228042 A1 WO 2020228042A1 CN 2019087313 W CN2019087313 W CN 2019087313W WO 2020228042 A1 WO2020228042 A1 WO 2020228042A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
operation instruction
smart device
gateway
data interaction
Prior art date
Application number
PCT/CN2019/087313
Other languages
English (en)
French (fr)
Inventor
郭子亮
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2019/087313 priority Critical patent/WO2020228042A1/zh
Priority to CN201980090515.6A priority patent/CN113348725B/zh
Publication of WO2020228042A1 publication Critical patent/WO2020228042A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • This application relates to the field of Internet of Things, and more specifically, to a device operation method, device, gateway, electronic device, and computer-readable medium.
  • Smart home is a residential platform, using integrated wiring technology, network communication technology, security technology, automatic control technology, audio and video technology to integrate the facilities related to home life to build an efficient management system for residential facilities and family schedule affairs, and improve Home safety, convenience, comfort, artistry, and to achieve an environmentally friendly and energy-saving living environment.
  • the control of each device in a smart home is controlled by a mobile terminal, which will occupy the body storage and running memory of the mobile terminal, which increases the requirements for the hardware of the mobile terminal.
  • This application proposes a device operation method, device, gateway, electronic device, and computer readable medium to improve the aforementioned defects.
  • an embodiment of the present application provides a device operation method applied to a gateway of a smart device system.
  • the system further includes multiple device servers.
  • the method includes: obtaining operation instructions corresponding to the target smart device; According to the identifier of the target smart device, the target device server corresponding to the operation instruction is determined by the multiple device servers according to the identifier of the target smart device; the operation instruction is sent to the target device server to indicate The target device server controls the target smart device to execute the operation corresponding to the operation instruction according to the operation instruction.
  • the embodiments of the present application also provide a device operation method applied to an electronic device of a smart device system.
  • the system further includes a gateway and a plurality of device servers.
  • the method includes: obtaining operation instructions input by a user, The operation instruction includes the identification of the target smart device; sending the operation instruction to the gateway instructs the gateway to determine from the multiple device servers according to the identification of the target smart device that the operation instruction corresponds to The target device server sends the operation instruction to the target device server, where the operation instruction is used to instruct the target device server to control the target smart device to execute the operation corresponding to the operation instruction according to the operation instruction.
  • an embodiment of the present application also provides a device operating device applied to a gateway of a smart device system.
  • the system further includes multiple device servers.
  • the device includes: an acquiring unit, a determining unit, and a sending unit.
  • the obtaining unit is used to obtain the operation instruction corresponding to the identifier of the target smart device.
  • the determining unit is configured to determine the target device server corresponding to the operation instruction from the multiple device servers according to the identifier of the target smart device.
  • the sending unit is configured to send the operation instruction to the target device server, and instruct the target device server to control the target smart device to execute the operation corresponding to the operation instruction according to the operation instruction.
  • an embodiment of the present application also provides a device operating device applied to an electronic device of a smart device system.
  • the system further includes a gateway and multiple device servers.
  • the device includes an acquiring unit and a sending unit.
  • the obtaining unit is configured to obtain an operation instruction input by the user, and the operation instruction includes the identification of the target smart device.
  • the sending unit is configured to send the operation instruction to the gateway, and instruct the gateway to determine the target device server corresponding to the operation instruction from among the multiple device servers according to the identifier of the target smart device, and then The operation instruction is sent to the target device server, and the operation instruction is used to instruct the target device server to control the target smart device to execute the operation corresponding to the operation instruction according to the operation instruction.
  • the embodiments of the present application also provide a gateway, which is applied to a smart device system, the system further includes multiple device servers, and the gateway includes: one or more processors; memory; one or more applications A program, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above method.
  • the embodiments of the present application also provide an electronic device applied to a smart device system.
  • the system further includes a gateway and multiple device servers.
  • the electronic device includes: one or more processors; a memory; one Or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above method .
  • an embodiment of the present application also provides a computer-readable medium, and the computer-readable storage medium stores program code, and the program code can be invoked by a processor to execute the foregoing method.
  • the gateway of the smart device system obtains the operation instruction corresponding to the smart device, and the operation instruction includes the identification of the target smart device, determines the target device server corresponding to the identification of the target smart device, Sending the operation instruction to the target device server.
  • the target device server controls the target smart device to execute the operation corresponding to the operation instruction according to the operation instruction.
  • the electronic device can no longer search for the server of the smart device corresponding to the operation and send the operation instruction to the searched server, but the gateway executes and sends the operation instruction to the smart device
  • the operation of the mobile terminal can reduce the programs and data installed in the mobile terminal, reduce the storage and running memory of the body, and reduce the hardware requirements of the mobile terminal.
  • FIG. 1 shows an application network environment diagram of a device operation method and device proposed in an embodiment of the present application
  • FIG. 2 shows an application network environment diagram of a device operation method and device proposed by another embodiment of the present application
  • FIG. 3 shows a method flowchart of a device operation method proposed in an embodiment of the present application
  • FIG. 4 shows a schematic diagram of an operation interface of a smart device proposed in an embodiment of the present application
  • FIG. 5 shows a method flowchart of a device operation method proposed by another embodiment of the present application.
  • Fig. 6 shows a schematic diagram of a smart device system proposed in an embodiment of the present application
  • FIG. 7 shows a method flowchart of a device operation method proposed by another embodiment of the present application.
  • FIG. 8 shows a schematic diagram of a smart device system proposed by another embodiment of the present application.
  • FIG. 9 shows a method flowchart of a device operation method proposed by still another embodiment of the present application.
  • FIG. 10 shows a method flowchart of a device operation method proposed in yet another embodiment of the present application.
  • FIG. 11 shows a block diagram of a device operating device according to an embodiment of the present application.
  • FIG. 12 shows a block diagram of a device operation device proposed by another embodiment of the present application.
  • FIG. 13 shows a module block diagram of a gateway proposed in an embodiment of the present application.
  • FIG. 14 shows a block diagram of a module of an electronic device proposed in an embodiment of the present application.
  • Fig. 15 shows a storage unit used to store or carry program codes for implementing the device operation method according to the embodiment of the present application.
  • the Internet of Things is a network concept that extends and expands its user end to any item and item for information exchange and communication based on the "Internet concept".
  • IoT technology With the development of IoT technology, some scenarios can be configured in the IoT system. For the configuration scenario, multiple controlled devices may be involved, and multiple controlled devices have a certain linkage relationship and can work together.
  • the controlled devices can be projectors, projection screens, smart lights, smart sockets, human sensors, door and window sensors, wireless switches, air conditioners, smoke alarms, smart curtain motors, and mobile terminals such as air purifiers and smart speakers.
  • the electronic device 100 that plays a control role can realize data interaction with the controlled device 99 by directly establishing a wireless connection with the router.
  • the electronic device 100 may also realize data interaction with the controlled device 99 through the data link between the cloud and the router after establishing a connection with the cloud.
  • the controlled device 99 can establish a wireless connection with the router through the gateway 98.
  • the data interaction may include the mobile terminal sending a control instruction to the controlled device, and may also include the controlled device returning status information to the mobile terminal or returning the instruction execution result.
  • the data interaction between the mobile terminal and the controlled device can be triggered by a client installed in the mobile terminal.
  • a client is installed in the electronic device 100, and the client may be an application corresponding to a certain device manufacturer, and can control multiple controlled devices corresponding to the device manufacturer.
  • the manufacturer’s product includes multiple devices, and the client can be used as a control architecture for multiple devices corresponding to the manufacturer, the control and interactive functions of each device need to install a plug-in for each device, as shown in Figure 1. As shown, assuming that the two controlled devices 99 are both from the same equipment manufacturer, they can be controlled by the client.
  • the two controlled devices 99 belong to different types of products, for example, one is a TV of brand x , One is a refrigerator of brand x, or different signal products of the same type, for example, one is a TV of brand x of m1 model, and the other is a TV of brand x of m2 model, in order to control two For devices, the plug-in corresponding to each device needs to be installed separately. As shown in Figures 1 and 2, the control plug-in 1 and the control plug-in 2 can respectively control two different controlled devices.
  • the increasing number of supported manufacturers and the increasing number of manufacturers’ plug-ins integrated in the client will cause the manufacturer’s plug-in files to occupy the storage of the electronic device indefinitely; in addition, in the existing solution, when it is necessary to control multiple
  • an embodiment of the present application provides a device operation method. As shown in FIG. 3, the method is applied to a gateway of a smart device system.
  • the system further includes multiple device servers. Specifically, the method It may include: S301 to S303.
  • the operation instruction is an instruction used to control the smart device to perform a preset operation, and the operation instruction corresponds to the target smart device. Then the target smart device corresponds to an identifier, and the identifier may be the device number or physical address of the smart device and other information used to uniquely identify the identity of the smart device.
  • the operation instruction may be sent by the user to the gateway through the electronic device, or directly input on the gateway.
  • the operation instruction may be input through a gateway.
  • the gateway is provided with an input interface that can display the identities of multiple smart devices and the corresponding operation interface.
  • the user can Input the operation instruction, thus, the gateway can obtain the operation instruction of the target smart device.
  • the operation instruction may be sent by the electronic device to the gateway.
  • a client is provided in the electronic device, and the client includes an application operation interface, and a control button of the smart device is provided in the operation interface.
  • the user can input operation instructions for the smart device after operating the control button.
  • the operation interface corresponding to the air-conditioning device is shown in Fig. 4, and multiple data input controls are displayed in the operation interface.
  • control instructions for the air conditioner such as mode switching, switch, temperature adjustment, etc.
  • the method of inputting the operation instruction may be inputting a touch gesture in the input interface, and the touch gesture corresponds to the identification of the smart device in the interface. It may also be that the operation instruction is input in the form of voice information, and the name of the smart device in the voice information can be obtained by the feature extraction method of the voice information, and the identification of the smart device can be obtained by the name of the smart device.
  • S302 Acquire the identifier of the target smart device, and determine the target device server corresponding to the operation instruction from the multiple device servers according to the identifier of the target smart device.
  • the gateway pre-stores the corresponding relationship between the identifier of each smart device and the identifier of the device server. After obtaining the operation instruction, the gateway parses the operation instruction to obtain the identifier of the target smart device corresponding to the operation instruction. The identification of the device server corresponding to the identification of the target smart device is searched in, so as to determine the target device server corresponding to the operation instruction.
  • S303 Send the operation instruction to the target device server, and instruct the target device server to control the target smart device to perform the operation corresponding to the operation instruction according to the operation instruction.
  • the gateway sends the operation instruction to the device server by sending the operation instruction to the target device server through the data interaction component, or sending the operation instruction to the target through the communication link between the gateway and the device server.
  • Device server Specifically, please refer to the subsequent embodiments, which will be described in detail.
  • the operation instruction carries the identification of the smart device and the temperature control parameters.
  • the current temperature is 26°C
  • the temperature control parameter is +1°C.
  • the gateway sends the operation instruction to the manufacturer's server, the manufacturer server parses the operation instruction to obtain the identification of the smart device and the temperature control parameter, and sends the operation instruction to the smart device corresponding to the identification of the smart device, and the smart device obtains the temperature control parameter according to The temperature control parameter adjusts the temperature of the device. For example, increase the temperature by 1°C.
  • FIG. 5 shows a device operation method provided by an embodiment of the present application.
  • the method is applied to a gateway of a smart device system.
  • the system further includes multiple device servers.
  • the method may include: S501 to S504.
  • S501 Obtain an operation instruction corresponding to the target smart device.
  • S502 Obtain the identifier of the target smart device, and determine the target device server corresponding to the operation instruction from the multiple device servers according to the identifier of the target smart device.
  • S503 Determine the data interaction component of the target smart device corresponding to the identifier of the target smart device.
  • the data interaction component may be a channel used to realize data interaction between the gateway and the device server.
  • the data interaction component can be an SDK plug-in or an API interface. Define the data transmission protocol between the gateway and the device server through the data interaction component.
  • multiple data interaction components are pre-installed in the gateway, and each data interaction component corresponds to a device server, that is, each data interaction component defines the data transmission protocol between the gateway and the corresponding device server, namely Different data interaction components may have different data packaging and transmission methods.
  • the data interaction component may be an SDK plug-in.
  • each SDK plug-in corresponds to a device server.
  • the gateway can communicate with the corresponding device server through the SDK plug-in, and the electronic device can communicate with the device server through the SDK in the gateway, that is, data information Send to the device server through the SDK plug-in.
  • each data interaction component corresponds to an identification of a smart device.
  • the data interaction component Take the data interaction component as an SDK plug-in as an example.
  • the corresponding relationship between the identification of the smart device and the SDK plug-in is set in the gateway.
  • the identification of the smart device can be manually added by the user after the smart device is connected to the network, and the corresponding SDK plug-in can also be Installed after adding the logo of the smart device.
  • the gateway parses the operation instruction to obtain the identification of the smart device corresponding to the operation instruction, and searches for the SDK plug-in corresponding to the identification of the smart device according to the above-mentioned corresponding relationship.
  • smart devices of the same manufacturer correspond to the same SDK plug-in, that is, smart devices of the same manufacturer correspond to the same device server.
  • the specific implementation manner of determining the data interaction component of the target smart device corresponding to the identifier of the target smart device may be: determining the target vendor identifier corresponding to the identifier of the target smart device; determining the corresponding data interaction based on the target vendor identifier Components.
  • the corresponding relationship between multiple SDK plug-ins and manufacturer logos is integrated in the gateway. For example, the corresponding relationship shown in Table 1.
  • different device IDs may correspond to the same manufacturer ID, that is, they may be different devices belonging to the same manufacturer, and if the SDK plug-in corresponding to the same manufacturer ID is the same, then the same manufacturer ID Different devices can use the same SDK plug-in.
  • the manufacturer identification corresponding to the device identification is determined. For example, the device is identified as device 1, and the corresponding manufacturer is identified as manufacturer 1, thereby determining that the corresponding SDK plug-in is identified as SDK1.
  • S504 Send the operation instruction to the target device server through the data interaction component.
  • the specific implementation manner in which the gateway sends the operation instruction to the device server through the target SDK plug-in may be that the gateway obtains the data encapsulation protocol corresponding to the device server; encapsulates the operation instruction into a data packet according to the data encapsulation protocol; The data packet is sent to the device server through the target SDK plug-in.
  • the data encapsulation protocol is an agreement between the device server and the gateway, and the specific encapsulation algorithm is embedded in the SDK plug-in.
  • the SDK plug-in includes an encapsulation interface, and the encapsulation interface includes an algorithm module corresponding to the data encapsulation protocol. , Can encapsulate the data to be sent through the interface according to the algorithm module.
  • the gateway sends the operation instruction to the SDK plug-in, the SDK plug-in encapsulates the operation instruction into a data packet through the encapsulation interface, and sends the data packet to the device server through the target SDK plug-in.
  • the user when the smart device accesses the network, the user installs the SDK plug-in corresponding to the smart device in the gateway. Specifically, the user operates the electronic device to download the installation data of the corresponding SDK plug-in and send it to the gateway.
  • the gateway installs the SDK plug-in after obtaining the installation data of the SDK plug-in, and sets the corresponding smart device identification and the corresponding manufacturer identification for the SDK plug-in. After the operation instruction is obtained, the identification of the smart device corresponding to the operation instruction is determined, the manufacturer identification corresponding to the identification of the smart device is determined, and then the target manufacturer identification is determined according to the correspondence between the data interaction component in the gateway and the manufacturer identification The corresponding data interaction component.
  • the gateway does not find the corresponding SDK plug-in after obtaining the identification of the smart device corresponding to the operation instruction, it means that the SDK plug-in is not installed in the gateway. Then, a component acquisition request is sent to the electronic device, where the component acquisition request is used to instruct the electronic device to acquire the installation data of the data interaction component corresponding to the target manufacturer identifier. Then, after obtaining the component obtaining request, the electronic device parses the component obtaining request to obtain the target vendor identification and downloads the installation data of the SDK plug-in corresponding to the target vendor identification.
  • the component acquisition request sent by the gateway to the electronic device may include the identification of the target smart device, and the electronic device determines the corresponding target vendor identification according to the identification of the target smart device, and then obtains the installation data of the SDK plug-in corresponding to the target vendor identification .
  • the gateway acquires the installation data returned by the electronic device based on the acquisition request, installs the SDK plug-in corresponding to the target smart device according to the installation data, and updates the correspondence between the data interaction component and the manufacturer identifier.
  • the user initiates a control operation request to the smart device of multiple different manufacturers through the smart home APP on the electronic device, and the application process in the gateway will query the manufacturer identification of the smart device according to the request parameters of the operation request, and analyze the control operation request.
  • the application process parses to obtain the manufacturer ID and the corresponding device control instruction, and the gateway separately tunes the SDK of the corresponding manufacturer of each smart device according to the manufacturer ID.
  • the application process can also be set in the electronic device, and the application process in the electronic device will query the manufacturer ID of the smart device according to the request parameters of the operation request, and analyze the ID of the smart device to be controlled and its operation request Then, the parsed manufacturer ID and the corresponding device control command are sent to the gateway, and the gateway respectively tunes up the SDK of the corresponding manufacturer of each smart device according to the manufacturer ID.
  • the gateway sends the received device and its control commands to the device server corresponding to the manufacturer through the SDK of different manufacturers according to the custom communication protocol of the SDK and its manufacturer’s service.
  • the device server receives the device control request sent by its own SDK, it can The manufacturer's custom protocol parses the device control instructions and sends the control instructions to the corresponding device to achieve device control.
  • the smart home APP's occupation of the storage and running memory of the body of the electronic device can be reduced, and the requirements for the hardware of the electronic device can be reduced.
  • the SDK file integration is transferred from the electronic device to the gateway, which avoids the difference between the processing of the SDK in the electronic device, improves the compatibility between different versions of the APP, and reduces the development cost of the APP.
  • the use record of each SDK is stored in the gateway.
  • the use record may also be stored in the data server, and the gateway can obtain the use record of the SDK from the data server.
  • the usage record includes the number of uses of the SDK, the duration of use, the installation time, the time of each startup and the time of each shutdown.
  • the number of starts of each SDK within a certain period of time is obtained, and the SDK whose use number is lower than the number of starts is determined as an inactive SDK plug-in.
  • the certain time period may be a time period set according to demand, for example, it may be a time period of one month or one week.
  • the specified number of times can be a value set according to demand. For example, it may be 3 times or 2 times.
  • the user can send operation instructions to the gateway through the client in the electronic device (such as a mobile terminal), and the gateway sends the operation instructions to the air conditioner
  • the client in the electronic device such as a mobile terminal
  • the gateway sends the operation instructions to the air conditioner
  • the manufacturer server of the device, and the manufacturer server sends the operation instruction to the air conditioning device, and the air conditioning device executes the corresponding operation according to the operation instruction.
  • the user has not sent a control command to via the SDK plug-in for a certain period of time.
  • Air-conditioning equipment, the SDK plug-in corresponding to the air-conditioning equipment has been activated less than the specified number of times in a certain period of time, and the SDK is removed from the gateway, which can save the storage space of the gateway.
  • the use frequency distribution information may be the use times in each time interval within the designated time period, for example, the designated time period is one year, and the certain time period If the segment is a week, the specified number of times is 2. After determining that the number of activations of the air conditioning device in the specified week is less than 2 times, it is determined that the SDK plug-in corresponding to the air conditioning device is an inactive SDK plug-in.
  • the number of activations of the air-conditioning equipment in each week in the past year or several years determine the number of activations of the air-conditioning equipment in each week in the past year or several years. If the number of activations in the specified week is less than 2 times, it is proved that the air-conditioning equipment has been in the past time period within the specified week If the number of starts is very small, it can be determined that the SDK of the air-conditioning device is not used temporarily. For the SDK that is determined to be temporarily unused, it may not be removed, or it may be removed first, and then at a specified time point, a component acquisition request is sent to the electronic device to install the SDK in the gateway again, where the specified The time point can be set according to the distribution information of the number of uses within a specified time period.
  • the found SDK plug-in is used as the candidate SDK plug-in, and then the installation time of the candidate SDK plug-in is obtained to determine whether the time difference between the installation time and the current moment is greater than Specify the length of time. If yes, determine the candidate SDK plug-in as an inactive SDK plug-in, and then remove it.
  • the gateway and each device server may not transmit operation instructions through data interaction components such as SDK, or may be sent through a communication link.
  • the method includes: S701 to S703.
  • S701 Obtain an operation instruction corresponding to the target smart device.
  • S702 Obtain the identifier of the target smart device, and determine the target device server corresponding to the operation instruction from the multiple device servers according to the identifier of the target smart device.
  • S703 Send the operation instruction to the target device server through the communication link between the gateway and the target device server.
  • the communication link between the gateway and the device server can be a communication interface protocol with each device server.
  • the electronic device sends the operation instruction of the target smart device to the gateway, and the gateway according to the target smart
  • the device identifier determines the corresponding device server, and then sends the operation instruction to the device server through the communication interface protocol, and the device server sends the operation instruction to the smart device, and then the smart device executes the corresponding operation through the operation instruction.
  • the way for the gateway to access the device server may be through a link address, for example, a URL address.
  • the link address may be a URL address
  • the link address corresponds to a server.
  • the server may be a vendor server corresponding to the smart device.
  • Different device identifiers correspond to different link addresses.
  • the link address is a URL address.
  • the format of the address is aaaa.com/123, where aaaa.com is the address corresponding to the server, and /123 is the storage location of the data corresponding to the specific device identifier in the server.
  • the link address corresponds to the vendor server
  • the page data is stored in the vendor server
  • the gateway can access the server through the link address, and obtain the page data at the storage location of the vendor server corresponding to the link address.
  • the gateway realizes the direct communication between the server and the manufacturer's service by formulating a unified communication interface protocol, and sends device control instructions to achieve the effect of controlling the device.
  • FIG. 9 shows a device operation method provided by an embodiment of the present application.
  • the method is applied to an electronic device of a smart device system.
  • the system further includes a gateway and multiple device servers.
  • the method may include : S901 and S902.
  • S901 Obtain an operation instruction input by a user, where the operation instruction includes an identifier of a target smart device.
  • S902 Send the operation instruction to the gateway, instruct the gateway to determine the target device server corresponding to the operation instruction from among the multiple device servers according to the identifier of the target smart device, and transfer the operation instruction Sent to the target device server, and the operation instruction is used to instruct the target device server to control the target smart device to execute the operation corresponding to the operation instruction according to the operation instruction.
  • FIG. 10 shows a device operation method provided by an embodiment of the present application.
  • the method is applied to an electronic device of a smart device system.
  • the system further includes a gateway and multiple device servers.
  • the method may include : S1001 and S1004.
  • S1001 Acquire an operation instruction input by a user, where the operation instruction includes an identifier of the target smart device.
  • S1002 Determine whether the target data interaction component corresponding to the identifier of the target smart device is installed locally.
  • a part of the data interaction components corresponding to the smart device can be installed inside the electronic device. Before determining whether the target data interaction component corresponding to the identification of the target smart device is installed locally, the data interaction component that meets the preset standard is installed in the electronic device .
  • the preset standard may be a standard set by the user according to requirements. For example, when operating a smart device to access the network, the user can choose to install the SDK plug-in corresponding to the smart device in the electronic device or in the gateway.
  • a client is installed in the electronic device, and an operation instruction is input through the client.
  • the identification of the smart device is stored in the electronic device, and the electronic device determines that the electronic device is Whether the SDK plug-in of the smart device is installed, if not, a message can be popped up. For example, it can be a dialog box asking the user to install the SDK plug-in of the smart device in the electronic device or the gateway.
  • the user chooses to install it in the electronic device.
  • the electronic device obtains the installation data of the SDK and installs it. If it is installed in the gateway, the installation data is sent to the gateway, and the gateway installs it.
  • the electronic device determines whether the identification of the smart device meets a specified condition, and if so, installs the data corresponding to the identification of the smart device in the electronic device Interactive component; if not satisfied, obtain the installation data of the data interaction component corresponding to the identification of the smart device, send the installation data to the gateway, and instruct the gateway to install the data interaction component according to the installation data .
  • the specified condition can be a condition set by the user according to the needs.
  • the user sets some smart devices as smart devices that meet the specified conditions according to personal needs or preferences, and sets other smart devices to not meet the specified conditions.
  • Conditional smart device For example, the user sets some smart devices as smart devices that meet the specified conditions according to personal needs or preferences, and sets other smart devices to not meet the specified conditions.
  • the smart device can also be set according to the usage of all users of a certain smart device. Specifically, the usage frequency of all users of the same type of product using the smart device within a preset time period can be obtained. If the usage frequency is greater than the specified Frequency, the smart device is judged to be a smart device that meets the specified conditions, otherwise, it is judged to be a smart device that does not meet the specified conditions, so that the SDK plug-in of the smart device with a higher frequency of use can be installed in the electronic device, and the The SDK of the smart device that is not frequently used is installed in the gateway, so that the frequently used smart device can be directly controlled by the electronic device, and the gateway is avoided for control, thereby avoiding the failure of the gateway and causing the smart device to fail to use normally.
  • the smart device is determined as a smart device that does not meet the specified conditions; otherwise, it is determined as a smart device that meets the specified conditions, so that the frequency of use can be determined.
  • the SDK plug-ins of larger smart devices are installed in the gateway, and the SDKs of smart devices that are not frequently used are installed in electronic devices. In this way, the frequently used smart device, that is, the SDK of the smart device that generates a large amount of data, can be stored in the king tube, and excessive data can be avoided to occupy the storage space and memory of the electronic device.
  • an implementation manner for determining whether the identification of the smart device meets a specified condition may also be to determine whether the category of the identification of the smart device is a specified category, wherein the smart device of the specified category is a smart device that is frequently used; If it is a designated category, it is determined that the identification of the smart device meets the specified condition; if it is not a specified category, it is determined that the identification of the smart device does not meet the specified condition.
  • the designated category may be a category set by the user according to requirements.
  • the user marks a smart device that needs to be operated quickly as a designated category, for example, a television, etc. expect to be able to respond to the smart device immediately after issuing a control instruction.
  • S1003 Send the operation instruction to the target device server through the target data interaction component.
  • FIG. 11 shows a structural block diagram of a device operating device 1100 provided by an embodiment of the present application.
  • the device is applied to a gateway of a smart device system.
  • the device may include: an acquiring unit 1101, a determining unit 1102, and a sending unit 1103.
  • the obtaining unit 1101 is configured to obtain an operation instruction corresponding to the identifier of the target smart device.
  • the obtaining unit 1101 is further configured to obtain an operation instruction sent by the electronic device, where the operation instruction includes the identifier of the target smart device.
  • the determining unit 1102 is configured to determine the target device server corresponding to the operation instruction from the multiple device servers according to the identifier of the target smart device.
  • the sending unit 1103 is configured to send the operation instruction to the target device server, and instruct the target device server to control the target smart device to execute the operation corresponding to the operation instruction according to the operation instruction.
  • the sending unit 1103 is further configured to determine the data interaction component of the target smart device corresponding to the identifier of the target smart device; and send the operation instruction to the target device server through the data interaction component.
  • the sending unit 1103 is further configured to determine the target manufacturer identifier corresponding to the identifier of the target smart device; and determine the corresponding data interaction component based on the target manufacturer identifier. Specifically, the data interaction component corresponding to the target manufacturer identifier is searched for the corresponding relationship between the data interaction component pre-stored in the gateway and the manufacturer identifier.
  • the sending unit 1103 is further configured to send the operation instruction to the target device server through the communication link between the gateway and the target device server
  • the device operating device further includes an installation unit, configured to send a component acquisition request to the electronic device if the target manufacturer identifier is not found to determine the corresponding data interaction component, and the component acquisition request is used to instruct the electronic device Obtain the installation data of the data interaction component corresponding to the target manufacturer identifier; acquire the installation data returned by the electronic device based on the acquisition request; install the target manufacturer identifier according to the installation data to determine the corresponding data interaction component.
  • an installation unit configured to send a component acquisition request to the electronic device if the target manufacturer identifier is not found to determine the corresponding data interaction component, and the component acquisition request is used to instruct the electronic device Obtain the installation data of the data interaction component corresponding to the target manufacturer identifier; acquire the installation data returned by the electronic device based on the acquisition request; install the target manufacturer identifier according to the installation data to determine the corresponding data interaction component.
  • the installation unit is also used to obtain the operation data of each of the data interaction components that have been installed; determine the inactive data interaction components among all the data interaction components according to the operation data of each data interaction component; The arrived inactive data interaction components are removed from the gateway. Specifically, according to the activation record of each data interaction component, the number of activations of each data interaction component within a preset time period is obtained; the data interaction component whose activation number is less than a specified value is regarded as inactive data Interactive components.
  • FIG. 12 shows a structural block diagram of a device operating device 1200 provided by an embodiment of the present application.
  • the device is applied to an electronic device of a smart device system and may include: an obtaining unit 1201 and a sending unit 1202.
  • the obtaining unit 1201 is configured to obtain an operation instruction input by a user, and the operation instruction includes an identifier of the target smart device.
  • the sending unit 1202 is configured to send the operation instruction to the gateway, and instruct the gateway to determine the target device server corresponding to the operation instruction from among the multiple device servers according to the identifier of the target smart device, and The operation instruction is sent to the target device server, and the operation instruction is used to instruct the target device server to control the target smart device to execute the operation corresponding to the operation instruction according to the operation instruction.
  • the sending unit 1202 is further configured to determine whether the target data interaction component corresponding to the identifier of the target smart device is installed locally; if so, send the operation instruction to the target device server through the target data interaction component; If not, send the operation instruction to the gateway.
  • the device operating device 1200 further includes an installation unit for installing a data interaction component that meets a preset standard in the electronic device.
  • the installation unit is also used to obtain the identification of the smart device added in the electronic device; determine whether the identification of the smart device meets a specified condition; if so, install the identification of the smart device in the electronic device Corresponding data interaction component; if not satisfied, obtain the installation data of the data interaction component corresponding to the identification of the smart device, send the installation data to the gateway, and instruct the gateway to install the Data interaction components.
  • the installation unit is also used to determine whether the category of the identification of the smart device is a specified category, wherein the smart device of the specified category is a smart device that is frequently used; if it is a specified category, determine whether the smart device is of a specified category The identification meets the specified condition; if it is not a specified category, it is determined that the identification of the smart device does not meet the specified condition.
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules.
  • FIG. 13 shows a structural block diagram of a gateway 98 provided by an embodiment of the present application.
  • the gateway includes: one or more processors 981; a memory 982; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be used by the one or more processors Executing, the one or more programs are configured to execute the above method.
  • the electronic device 100 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, or an e-book.
  • the electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, a client 113, and one or more application programs, of which one or more application programs may be stored in the memory 120 and be It is configured to be executed by one or more processors 110, and one or more programs are configured to execute the method described in the foregoing method embodiment.
  • the fast application engine 112 and the client 113 can refer to the above-mentioned embodiments.
  • the processor 110 may include one or more processing cores.
  • the processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and calling data stored in the memory 120.
  • Various functions and processing data of the electronic device 100 may use at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 110 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem.
  • the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing of display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented by a communication chip alone.
  • the memory 120 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 120 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 120 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions for implementing the following method embodiments, etc.
  • the storage data area can also store data created by the electronic device 100 during use (such as phone book, audio and video data, chat record data) and the like.
  • FIG. 15 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable medium 1500 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
  • the computer-readable storage medium 1500 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 1500 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 1500 has a storage space for the program code 1510 for executing any method steps in the above methods. These program codes can be read out from or written into one or more computer program products.
  • the program code 1510 may be compressed in an appropriate form, for example.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本申请公开了一种设备操作方法、装置、网关、电子设备及计算机可读介质,涉及物联网领域。方法包括:获取对应目标智能设备的操作指令;获取所述目标智能设备的标识,根据所述目标智能设备的标识,由所述多个设备服务器中,确定所述操作指令对应的目标设备服务器;将所述操作指令发送至所述目标设备服务器,指示所述目标设备服务器根据所述操作指令控制所述目标智能设备执行所述操作指令对应的操作。因此,由网关执行将操作指令发送至智能设备的操作,则能够降低移动终端内所安装的程序和数据,减少机身存储和运行内存的占用,降低了对移动终端的硬件的要求。

Description

设备操作方法、装置、网关、电子设备及计算机可读介质 技术领域
本申请涉及物联网领域,更具体地,涉及一种设备操作方法、装置、网关、电子设备及计算机可读介质。
背景技术
智能家居是以住宅为平台,利用综合布线技术、网络通信技术、安全防范技术、自动控制技术、音视频技术将家居生活有关的设施集成,构建高效的住宅设施与家庭日程事务的管理系统,提升家居安全性、便利性、舒适性、艺术性,并实现环保节能的居住环境。
目前,智能家居中的各个设备的控制是由移动终端进行控制的,会占用移动终端的机身存储和运行内存,提高了对移动终端的硬件的要求。
发明内容
本申请提出了一种设备操作方法、装置、网关、电子设备及计算机可读介质,以改善上述缺陷。
第一方面,本申请实施例提供了一种设备操作方法,应用于智能设备系统的网关,所述系统还包括多个设备服务器,所述方法包括:获取对应目标智能设备的操作指令;获取所述目标智能设备的标识,根据所述目标智能设备的标识,由所述多个设备服务器中,确定所述操作指令对应的目标设备服务器;将所述操作指令发送至所述目标设备服务器,指示所述目标设备服务器根据所述操作指令控制所述目标智能设备执行所述操作指令对应的操作。
第二方面,本申请实施例还提供了一种设备操作方法,应用于智能设备系统的电子设备,所述系统还包括网关和多个设备服务器,所述方法包括:获取用户输入的操作指令,所述操作指令包括目标智能设备的标识;发送所述操作指令至所述网关,指示所述网关根据所述目标智能设备的标识,由所述多个设备服务器中,确定所述操作指令对应的目标设备服务器,将所述操作指令发送至所述目标设备服务器,所述操作指令用于指示所述目标设备服务器根据所述操作指令控制所述目标智能设备执行所述操作指令对应的操作。
第三方面,本申请实施例还提供了一种设备操作装置,应用于智能设备系统的网关,所述系统还包括多个设备服务器,所述装置包括:获取单元、确定单元和发送单元。获取单元,用于获取对应目标智能设备的标识的操作指令。确定单元,用于根据所述目标智能设备的标识,由所述多个设备服务器中,确定所述操作指令对应的目标设备服务器。发送单元,用于将所述操作指令发送至所述目标设备服务器,指示所述目标设备服务器根据所述操作指令控制所述目标智能设备执行所述操作指令对应的操作。
第四方面,本申请实施例还提供了一种设备操作装置,应用于智能设备系统的电子设备,所述系统还包括网关和多个设备服务器,所述装置包括:获取单元和发送单元。获取单元,用于获取用户输入的操作指令,所述操作指令包括目标智能设备的标识。发送单元,用于发送所述操作指令至所述网关,指示所述网关根据所述目标智能设备的标识,由所述多个设备服务器中,确定所述操作指令对应的目标设备服务器,将所述操作指令发送至所述目标设备服务器,所述操作指令用于指示所述目标设备服务器根据所述操作指令控制所述目标智能设备执行所述操作指令对应的操作。
第五方面,本申请实施例还提供了一种网关,应用于智能设备系统,所述系统还包括多个设备服务器,所述网关包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述方法。
第六方面,本申请实施例还提供了一种电子设备,应用于智能设备系统,所述系统还包括网关和多个设备服务器,所述电子设备包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述方法。
第七方面,本申请实施例还提供了一种计算机可读介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述方法。
相对于现有技术,本申请提供的方案,智能设备系统的网关获取对应于智能设备的操作指令,该操作指令内包括目标智能设备的标识,确定该目标智能设备的标识对应的标设备服务器,将所述操作指令发送至所述目标设备服务器。目标设备服务器根据所述操作指令控制所述目标智能设备执行所述操作指令对应的操作。因此,用户对目标智能设备的操作,可以不再由电子设备查找该操作所对应的智能设备的服务器,并将操作指令发送至所查找的服务器,而是由网关执行将操作指令发送至智能设备的操作,则能够降低移动终端内所安装的程序和数据,减少机身存储和运行内存的占用,降低了对移动终端的硬件的要求。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了本申请一实施例提出的一种设备操作方法及装置的应用网络环境图;
图2示出了本申请另一实施例提出的一种设备操作方法及装置的应用网络环境图;
图3示出了本申请一实施例提出的一种设备操作方法的方法流程图;
图4示出了本申请一实施例提出的智能设备的操作界面的示意图;
图5示出了本申请另一实施例提出的一种设备操作方法的方法流程图;
图6示出了本申请一实施例提出的智能设备系统的示意图;
图7示出了本申请又一实施例提出的一种设备操作方法的方法流程图;
图8示出了本申请另一实施例提出的智能设备系统的示意图;
图9示出了本申请再一实施例提出的一种设备操作方法的方法流程图;
图10示出了本申请再又一实施例提出的一种设备操作方法的方法流程图;
图11示出了本申请一实施例提出的一种设备操作装置的模块框图;
图12示出了本申请另一实施例提出的一种设备操作装置的模块框图;
图13示出了本申请一实施例提出的网关的模块框图;
图14示出了本申请一实施例提出的电子设备的模块框图;
图15示出了本申请实施例的用于保存或者携带实现根据本申请实施例的设备操作方法的程序代码的存储单元。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
物联网是在“互联网概念”的基础上,将其用户端延伸和扩展到任何物品与物品之间,进行信息交换和通信的一种网络概念。随着物联网技术的发展,在物联网系统中可以配置一些场景。对于配置的场景,可以涉及到多个受控设备,而且多个受控设备之间具有一定的联动关系,能够协同工作。
其中,受控设备可以为投影仪、投屏幕、智能灯、智能插座、人体传感器、门窗传感器、无线开关、空调伴侣、烟雾报警器、智能窗帘电机、以及空气净化器、智能音箱等移动终端。在一种方式中,如图1所示的智能设备系统,起控制作用的电子设备100可以通过直接与路由器建立无线连接的方式实现与受控设备99之间进行数据交互。再者,电子设备100也可以通过与云端建立连接后,通过云端与路由器之间的数据链路实现与受控设备99之间的数据交互。而作为另外一种方式,如图2所示的智能设备系统,受控设备99可以通过网关98与路由器建立无线连接。其中,数据交互可以包括移动终端向受控设备发送控制指令,还可以包括受控设备向移动终端返回状态信息或者返回指令执行结果等。其中,移动终端与受控设备之间的数据交互可以由移动终端中安装的客户端来触发。
具体地,电子设备100内安装有客户端,该客户端可以是对应某个设备厂商的应用程序,能够控制该设备厂商对应的多个受控设备。另外,由于厂商的产品包括多个设备,而该客户端可以作为该厂商对应的多个设备的一个控制架构,而针对每个设备的控制以及交互功能需要安装每个设备的插件,如图1所示,假设两个受控设备99都是来在一个设备厂商,则均可以通过客户端控制,但是,由于两个受控设备99属于不同类型的产品,例如,一个是x品牌的电视机,一个是x品牌的电冰箱,或者属于同一个类型的不同信号产品的,例如,一个是x品牌的m1型号的电视机,另一个是x品牌的m2型号的电视机,则为了控制两个设备,需要分别安装每个设备对应的插件,如图1和2所示,可以是控制插件1和控制插件2分别控制两个不同的受控设备。
发明人在研究中发现,智能设备的控制一般都是由电子设备100发起的,则在电子设备100所安装的客户端内集成有智能设备的厂商服务器所提供的控制插件,但随着客户端所支持的厂商的不断增加,而客户端内所集成的厂商的插件不断增加,就导致厂商的插件文件会无限占用电子设备的机身存储;另外,在现有方案中,当需要同时控制多个厂商的智能设备时,需要在电子设备内运行多个厂商的控制插件的进程,就导致了占用电子设备的内存较高。
因此,为了克服上述缺陷,本申请实施例提供了一种设备操作方法,如图3所示,该方法应用于智能设备系统的网关,所述系统还包括多个设备服务器,具体地,该方法可以包括:S301至S303。
S301:获取对应目标智能设备的操作指令。
其中,操作指令为用于控制智能设备执行预设操作的指令,该操作指令对应目标智能设备。则该目标智能设备对应有标识,则该标识可以是智能设备的设备号或者物理地 址等用于唯一标识该智能设备的身份的信息。
则该操作指令可以是用户通过电子设备发送至网关,也可以是直接在网关上输入的。
作为一种实施方式,该操作指令可以是通过网关输入的,具体地,该网关设置有输入界面,该输入界面能够显示多个智能设备的标识以及对应的操作界面,在该操作界面内用户能够输入操作指令,由此,网关就能够获取目标智能设备的操作指令。
作为另一种实施方式,该操作指令可以是电子设备发送至网关的。具体地,电子设备内设置有客户端,该客户端包括应用操作界面,在该操作界面内设置有智能设备的操控按钮,用户用过操作该操控按钮,就能够输入针对该智能设备的操作指令。例如,如图4所示,假设设备为空调设备,则图4所显示的为该空调设备对应的操作界面,则该操作界面内显示有多个数据输入控件,则在该操作界面下,用户能够输入针对该空调的控制指令,例如,模式切换、开关、温度调节等,从而,能够对应输入不同的操作指令至网关。
其中,输入操作指令的方式可以是,在该输入界面内输入触控手势,该触控手势对应于界面内的智能设备的标识。还可以是,通过语音信息的方式输入操作指令,在通过对该语音信息的特征提取方式,能够得到该语音信息中的智能设备的名称,通过该智能设备的名称获得该智能设备的标识。
S302:获取所述目标智能设备的标识,根据所述目标智能设备的标识,由所述多个设备服务器中,确定所述操作指令对应的目标设备服务器。
网关内预先存储有每个智能设备的标识与设备服务器的标识的对应关系,则网关在获取到操作指令之后,解析该操作指令以获取该操作指令对应的目标智能设备的标识,在上述对应关系内查找该目标智能设备的标识对应的设备服务器的标识,从而确定所述操作指令对应的目标设备服务器。
S303:将所述操作指令发送至所述目标设备服务器,指示所述目标设备服务器根据所述操作指令控制所述目标智能设备执行所述操作指令对应的操作。
网关将操作指令发送至设备服务器的方式,可以是通过数据交互组件将操作指令发送至所述目标设备服务器,也可以是通过网关与设备服务器之间的通信链路将操作指令发送至所述目标设备服务器。具体地,请参阅后续实施例,将详细介绍。
以上述的空调举例,用户在空调对应的操作界面点击温度增加按钮,则输入一个温度升高的操作指令,该操作指令携带有智能设备的标识以及温度调控参数。例如,当前的温度为26℃,在用户点击一下温度增加按钮,温度升高1℃,则温度调控参数+1℃。网关将操作指令发送至厂商服务器,厂商服务器解析该操作指令,以获得智能设备的标识以及温度调控参数,将操作指令发送至智能设备的标识对应的智能设备,智能设备获得该温度调控参数,依据该温度调控参数调节设备的温度。例如,将温度升高1℃。
请参阅图5,示出了本申请实施例提供的一种设备操作方法,该方法应用于智能设备系统的网关,所述系统还包括多个设备服务器,具体地,该方法可以包括:S501至S504。
S501:获取对应目标智能设备的操作指令。
S502:获取所述目标智能设备的标识,根据所述目标智能设备的标识,由所述多个设备服务器中,确定所述操作指令对应的目标设备服务器。
S503:确定所述目标智能设备的标识对应的目标智能设备的数据交互组件。
其中,数据交互组件可以是用于实现网关与设备服务器实现数据交互的通道。该数据交互组件可以是SDK插件或者API接口。通过该数据交互组件定义网关与设备服务器之间的数据传输协议。作为一种实施方式,网关内预先安装有多个数据交互组件,每个 数据交互组件对应一个设备服务器,即每个数据交互组件定义了网关与所对应的设备服务器之间的数据传输协议,即不同的数据交互组件对数据的打包以及传输方式可能不同。
于本申请实施例中,该数据交互组件可以是SDK插件。
网关内安装了多个SDK插件,而每个SDK插件对应一个设备服务器,网关能够通过该SDK插件与所对应的设备服务器通信,则电子设备可以通过网关内的SDK与设备服务器通信,即将数据信息通过SDK插件发送至设备服务器。
具体地,在网关内预先安装多个数据交互组件,每个数据交互组件对应一个智能设备的标识。以数据交互组件为SDK插件为例。作为一种实施方式,在网关内设置有智能设备的标识与SDK插件的对应关系,其中,智能设备的标识可以用智能设备入网之后由用户手动添加的,而所对应的SDK插件也可以是在添加了智能设备的标识之后再安装的。则网关在获取到操作指令之后,解析该操作指令以获取到该操作指令所对应的智能设备的标识,在根据上述对应关系,查找该智能设备的标识对应的SDK插件。
作为一种实施方式,同一个厂商的智能设备对应同一个SDK插件,即同一个厂商的智能设备对应同一个设备服务器。则确定所述目标智能设备的标识对应的目标智能设备的数据交互组件的具体实施方式可以是:确定所述目标智能设备的标识对应的目标厂商标识;基于所述目标厂商标识确定对应的数据交互组件。
网关内集成有多个SDK插件与厂商标识的对应关系。例如,表1所示的对应关系。
表1
设备标识 厂商标识 SDK插件标识
设备1 厂商1 SDK1
设备2 厂商1 SDK1
设备3 厂商2 SDK2
设备4 厂商3 SDK3
设备5 厂商3 SDK3
如上述表1所示,不同的设备标识对应的厂商标识可能一样,即可能是同属于同一个厂商的不同的设备,而相同的而厂商标识所对应的SDK插件相同,则同一个厂商下的不同的设备可以使用相同的SDK插件。
在获取到操作指令内的设备标识之后,确定该设备标识所对应的厂商标识。例如,该设备标识为设备1,所对应的厂商标识为厂商1,从而确定所对应的SDK插件的标识为SDK1。
S504:通过所述数据交互组件将所述操作指令发送至所述目标设备服务器。
网关通过所述目标SDK插件将操作指令发送至设备服务器的具体实施方式可以是所述网关获取所述设备服务器对应的数据封装协议;根据所述数据封装协议将所述操作指令封装成数据包;将所述数据包通过所述目标SDK插件发送至设备服务器。
其中,该数据封装协议为设备服务器与网关之间约定的协议,则具体的封装算法植入SDK插件内,具体地,该SDK插件包括封装接口,该封装接口内包括数据封装协议对应的算法模块,能够将欲通过该接口发送的数据按照算法模块进行封装。网关在获取到操作指令之后,将操作指令发送至SDK插件,SDK插件通过封装接口将操作指令封装成数据包,将所述数据包通过所述目标SDK插件发送至设备服务器。
另外,在一些实施例中,在智能设备入网的时候,用户在网关内安装该智能设备对应的SDK插件,具体地,可以是用户操作电子设备下载对应的SDK插件的安装数据并且发送至网关,网关在获取到SDK插件的安装数据之后将SDK插件安装,并且为该SDK插件设置所对应的智能设备的标识以及所对应的厂商标识。则在获取到操作指令之后,确 定该操作指令对应的智能设备的标识,确定该智能设备的标识对应的厂商标识,然后,再根据网关内的数据交互组件与厂商标识的对应关系确定目标厂商标识对应的数据交互组件。
如果网关在获取到操作指令对应的智能设备的标识之后,未查找到所对应的SDK插件,则表示网关内未安装该SDK插件。则发送组件获取请求至电子设备,所述组件获取请求用于指示所述电子设备获取目标厂商标识对应的数据交互组件的安装数据。则电子设备在获取到该组件获取请求之后,解析该组件获取请求以获取目标厂商标识并下载该目标厂商标识对应的SDK插件的安装数据。另外,需要说明的是,由于网关内并未安装智能设备对应的SDK插件,则可能并没有建立该SDK插件与智能设备的对应关系,则可能无法得知目标智能设备的标识对应的目标厂商标识,则网关发送至电子设备的组件获取请求可以包括目标智能设备的标识,则电子设备根据该目标智能设备的标识确定所对应的目标厂商标识,再获取该目标厂商标识对应的SDK插件的安装数据。
网关获取所述电子设备基于所述获取请求返回的所述安装数据,根据该安装数据安装该目标智能设备对应的SDK插件,并且对数据交互组件与厂商标识的对应关系更新。
因此,用户在电子设备通过智能家居APP对多个不同厂商的智能设备发起控制操作请求,网关内的应用进程会根据该操作请求的请求参数,查询智能设备所属的厂商标识,并解析将要控制的智能设备的标识及其操作请求内的控制指令。应用进程解析得到厂商标识及对应的设备控制指令,网关根据厂商标识分别调起各个智能设备对应厂商的SDK。
另外,该应用进程还可以设置在电子设备内,则电子设备内的应用进程会根据该操作请求的请求参数,查询智能设备所属的厂商标识,并解析将要控制的智能设备的标识及其操作请求内的控制指令,然后将解析得到的厂商标识及对应的设备控制指令发送至网关,网关根据厂商标识分别调起各个智能设备对应厂商的SDK。
网关通过不同厂商的SDK将收到的设备及其控制指令根据SDK和其厂商服务的自定义通信协议发送到厂商对应的设备服务器,设备服务器收到自己SDK发送的设备控制请求时,可根据自己厂商的自定义协议解析设备控制指令,并将控制指令发送到对应的设备,实现设备控制。
因此,可以降低了智能家居APP对电子设备的机身存储和运行内存的占用,降低了对电子设备的硬件的要求。另外,将SDK文件集成从电子设备转移到在网关,避免了在电子设备处理SDK间的差异性,提升了APP不同版本间的兼容性,降低了APP的开发成本。
另外,考虑到网关内安装的SDK过多的时候,网关内的存储空间占用过多,会对网关的正常使用而造成影响,因此,可能在适当的时候对网关内的SDK插件清理,具体地,获取已安装的每个所述数据交互组件的操作数据;根据每个所述数据交互组件的操作数据确定所有数据交互组件中不活跃的数据交互组件;将所查找到的不活跃的数据交互组件由所述网关内移除。
具体地,在网关内存储有每个SDK的使用记录,当然,该使用记录也可以是存储在数据服务器内,网关能够由该数据服务器内获取SDK的使用记录。在该使用记录内包括SDK的使用次数、使用时长、安装时间和每次启动的时刻以及每次关闭的时刻。
则在一些实施例中,获取在一定时间段内,每个SDK的启动次数,将使用次数低于启动次数的SDK,判定为不活跃的SDK插件。其中,一定时间段可以是根据需求而设定的时间段,例如,可以是一个月或者一个周的时间长度。而指定次数可以是根据需求而设定的数值。例如,可以是3次或者2次。通过将第一时间段内的启动次数低于指定次数的SDK插件,判定为不活跃的插件,能够使得已经被移除的智能设备所对应的SDK插件清理掉。例如,用户将一个空调设备入网,并且在网关内安装了空调设备 的SDK插件,则用户可以通过电子设备(如移动终端)内的客户端发送操作指令至网关,由网关将操作指令发送至空调设备的厂商服务器,并且由厂商服务器将操作指令发送至空调设备,则空调设备根据该操作指令执行对应的操作。
然后,用户所使用的空调设备损坏或者被其他的设备更换,而导致该空调设备在较长的一点时间内一直没有被使用,则用户也在一定的时间内一直没有通过SDK插件发送控制指令至空调设备,则导致该空调设备对应的SDK插件在一定时间段内的启动次数低于指定次数,则将该SDK由网关内移除,能够节省网关的存储空间。
另外,考虑到诸如空调这样的设备在一年内的某几个月是不会被打开的,则在查找到不活跃的SDK插件之后,再获取该SDK插件在指定时间段内的使用次数分布信息,其中,该指定时间段大于该一定时间段,则该使用次数分布信息可以是在该指定时间段内每时间间隔内的使用次数情况,例如,该指定时间段为一年,而该一定时间段为一个周,则指定次数为2,则在确定在指定周内的空调设备的启动次数小于2次之后,判定该空调设备对应的SDK插件为不活跃的SDK插件。
然后,再确定该空调设备在过去的一年内或者数年内的每个周的启动次数,如果该指定周内的启动次数小于2次,则证明该空调设备在过去的时间段内,指定周内的启动次数都很少,则可以判定该空调设备的SDK为暂时不使用的SDK。针对被判定该暂时不使用的SDK,可以不移除,也可以先移除,然后在指定时间点,再发送一个组件获取请求至电子设备,从而再次在网关内将该SDK安装,其中,指定时间点可以根据指定时间段内的使用次数分布信息而设定。
另外,在查找到启动次数小于指定数值的SDK插件之后,将所查找到的SDK插件作为待选SDK插件,然后再获取待选SDK插件的安装时间,判断该安装时间与当前时刻的时间差是否大于指定时间长度,如果是,则将该待选SDK插件判定为不活跃的SDK插件,然后移除。
上述步骤中未详细描述的部分,可参考前述实施例,在此不再赘述。
另外,网关与各个设备服务器之间也可以不通过SDK等数据交互组件传输操作指令,也可以是通过通信链路的方式发送。具体地,请参阅图7,该方法包括:S701至S703。
S701:获取对应目标智能设备的操作指令。
S702:获取所述目标智能设备的标识,根据所述目标智能设备的标识,由所述多个设备服务器中,确定所述操作指令对应的目标设备服务器。
S703:通过所述网关与所述目标设备服务器之间的通信链路将所述操作指令发送至所述目标设备服务器。
其中,网关与设备服务器之间的通信链路可以是与每个设备服务器之间的通信接口协议,如图8所示,电子设备将目标智能设备的操作指令发送至网关,网关根据该目标智能设备的标识确定所对应的设备服务器,然后通过通信接口协议将操作指令发送至设备服务器,设备服务器再将操作指令发送至智能设备,然后,智能设备通过操作指令执行相应的操作。
其中,网关访问设备服务器的方式可以是通过链接地址,例如,一个URL地址。链接地址可以是一个URL地址,该链接地址对应一个服务器,具体地,该服务器可以是智能设备对应的厂商服务器,则不同的设备标识对应不同的链接地址,例如,该链接地址为一个URL地址,则该地址的格式为aaaa.com/123,其中,aaaa.com为服务器对应的地址,而/123为具体的该设备的标识对应的数据在服务器内的存储位置。
作为一种实施方式,该链接地址对应厂商服务器,而该页面数据存储在厂商服务器内,网关能够通过该链接地址访问服务器,并且在该链接地址对应的厂商服务器的 存储位置处获取该页面数据。
因此,网关通过制定统一的通信接口协议,实现服务端和厂商服务直接通信,发送设备控制指令,从而达到控制设备的效果。
上述步骤中未详细描述的部分,可参考前述实施例,在此不再赘述。
请参阅图9,示出了本申请实施例提供的一种设备操作方法,该方法应用于智能设备系统的电子设备,所述系统还包括网关和多个设备服务器,具体地,该方法可以包括:S901和S902。
S901:获取用户输入的操作指令,所述操作指令包括目标智能设备的标识。
S902:发送所述操作指令至所述网关,指示所述网关根据所述目标智能设备的标识,由所述多个设备服务器中,确定所述操作指令对应的目标设备服务器,将所述操作指令发送至所述目标设备服务器,所述操作指令用于指示所述目标设备服务器根据所述操作指令控制所述目标智能设备执行所述操作指令对应的操作。
上述步骤中未详细描述的部分,可参考前述实施例,在此不再赘述。
请参阅图10,示出了本申请实施例提供的一种设备操作方法,该方法应用于智能设备系统的电子设备,所述系统还包括网关和多个设备服务器,具体地,该方法可以包括:S1001和S1004。
S1001:获取用户输入的操作指令,所述操作指令包括目标智能设备的标识。
S1002:判断本地是否安装有所述目标智能设备的标识对应的目标数据交互组件。
电子设备内部可以安装一部分智能设备对应的数据交互组件,则判断本地是否安装有所述目标智能设备的标识对应的目标数据交互组件之前,在所述电子设备内安装满足预设标准的数据交互组件。
其中,预设标准可以是用户根据需求设定的标准,例如,用户在操作智能设备入网的时候,可以选择将智能设备对应的SDK插件安装在电子设备内还是网关内。
作为另一种实施方式,电子设备内安装有客户端,通过该客户端输入操作指令,则用户将智能设备入网之后,该智能设备的标识就存储在电子设备内,则电子设备判断电子设备内是否安装有该智能设备的SDK插件,如果没有,则可以弹出一个信息,例如,可以是一个对话框,询问用户将该智能设备的SDK插件安装在电子设备内还是网关内,用户选择安装在电子设备内,则电子设备获取该SDK的安装数据,并安装,如果是选择在网关内安装,则将该安装数据发送至网关,由网关进行安装。
作为又一种实施方式,电子设备在获取到智能设备的标识之后,判断所述智能设备的标识是否满足指定条件,如果满足,则在所述电子设备内安装所述智能设备的标识对应的数据交互组件;如果不满足,则获取所述智能设备的标识对应的数据交互组件的安装数据,将所述安装数据发送至所述网关,指示所述网关根据所述安装数据安装所述数据交互组件。
其中,指定条件可以是用户根据需求而设定的条件,例如,用户根据个人的需求或喜好,而设定一部分智能设备为满足指定条件的智能设备,而将其他的智能设备设置为不满足指定条件的智能设备。
另外,还可以根据某个智能设备的所有用户的使用情况而设定,具体地,获取在预设时间段内,所有使用该智能设备的同类型产品的用户的使用频率,如果使用频率大于指定频率,则将该智能设备判定为满足指定条件的智能设备,否则,就判定为不满足指定条件的智能设备,从而能够将使用频率较大的智能设备的SDK插件安装在电子设备内,而将使用不太频繁的智能设备的SDK安装在网关内,从而,能够使得频繁使用的智能设备可以由电子设备直接控制,而避免使用网关进行控制,进而能够避免网关故障而导致智能设备无法正常使用。
当然,也可以采用相反的方式,例如,如果使用频率大于指定频率,则将该智能设备判定为不满足指定条件的智能设备,否则,就判定为满足指定条件的智能设备,从而能够将使用频率较大的智能设备的SDK插件安装在网关内,而将使用不太频繁的智能设备的SDK安装在电子设备内。从而能够使得经常使用的智能设备即产生较大数据量的智能设备的SDK在王管内存储,而避免过多的数据而占用电子设备的存储空间和内存。
另外,判断所述智能设备的标识是否满足指定条件的实施方式还可以是,判断所述智能设备的标识的类别是否为指定类别,其中,所述指定类别的智能设备为使用频繁的智能设备;若为指定类别,则判定所述智能设备的标识满足指定条件;若不为指定类别,则判定所述智能设备的标识不满足指定条件。
其中,指定类别可以是用户根据需求而设定的类别。例如,用户将需要快速操作的智能设备标记为指定类别,例如,电视机等在发出控制指令之后期望能够立刻相应的智能设备。
S1003:通过所述目标数据交互组件将所述操作指令发送至所述目标设备服务器。
S1004:发送所述操作指令至所述网关。
因此,通过在网关和电子设备内都安装一定的SDK插件,不仅能够兼顾到用户对响应速度和容错率等因素的考虑而直接由电子设备内的SDK插件控制智能设备,还可以兼顾电子设备的存储的空间以及对硬件的需求,而将一部分SDK插件集成在网关,由网关来将操作指令发送至厂商服务器。
上述步骤中未详细描述的部分,可参考前述实施例,在此不再赘述。
请参阅图11,其示出了本申请实施例提供的一种设备操作装置1100的结构框图,该装置应用于智能设备系统的网关,该装置可以包括:获取单元1101、确定单元1102和发送单元1103。
获取单元1101,用于获取对应目标智能设备的标识的操作指令。
具体地,获取单元1101还用于获取所述电子设备发送的操作指令,所述操作指令包括目标智能设备的标识。
确定单元1102,用于根据所述目标智能设备的标识,由所述多个设备服务器中,确定所述操作指令对应的目标设备服务器。
发送单元1103,用于将所述操作指令发送至所述目标设备服务器,指示所述目标设备服务器根据所述操作指令控制所述目标智能设备执行所述操作指令对应的操作。
发送单元1103还用于确定所述目标智能设备的标识对应的目标智能设备的数据交互组件;通过所述数据交互组件将所述操作指令发送至所述目标设备服务器。
进一步,发送单元1103还用于确定所述目标智能设备的标识对应的目标厂商标识;基于所述目标厂商标识确定对应的数据交互组件。具体地,由预先存储在所述网关内的数据交互组件与厂商标识的对应关系,查找所述目标厂商标识对应的数据交互组件。
进一步,发送单元1103还用于通过所述网关与所述目标设备服务器之间的通信链路将所述操作指令发送至所述目标设备服务器
所述设备操作装置还包括安装单元,用于若未查找到所述目标厂商标识确定对应的数据交互组件,发送组件获取请求至所述电子设备,所述组件获取请求用于指示所述电子设备获取目标厂商标识对应的数据交互组件的安装数据;获取所述电子设备基于所述获取请求返回的所述安装数据;根据所述安装数据安装所述目标厂商标识确定对应的数据交互组件。
具体地,安装单元还用于获取已安装的每个所述数据交互组件的操作数据;根据每个所述数据交互组件的操作数据确定所有数据交互组件中不活跃的数据交互组件;将所查找到的不活跃的数据交互组件由所述网关内移除。具体地,根据每个所述数据 交互组件的启动记录,获取在预设时间段内每个所述数据交互组件的启动次数;将所述启动次数小于指定数值的数据交互组件作为不活跃的数据交互组件。
请参阅图12,其示出了本申请实施例提供的一种设备操作装置1200的结构框图,该装置应用于智能设备系统的电子设备,可以包括:获取单元1201和发送单元1202。
获取单元1201,用于获取用户输入的操作指令,所述操作指令包括目标智能设备的标识。
发送单元1202,用于发送所述操作指令至所述网关,指示所述网关根据所述目标智能设备的标识,由所述多个设备服务器中,确定所述操作指令对应的目标设备服务器,将所述操作指令发送至所述目标设备服务器,所述操作指令用于指示所述目标设备服务器根据所述操作指令控制所述目标智能设备执行所述操作指令对应的操作。
发送单元1202,还用于判断本地是否安装有所述目标智能设备的标识对应的目标数据交互组件;如果有,则通过所述目标数据交互组件将所述操作指令发送至所述目标设备服务器;如果没有,则发送所述操作指令至所述网关。
进一步,设备操作装置1200还包括安装单元,用于在所述电子设备内安装满足预设标准的数据交互组件。
该安装单元,还用于获取在所述电子设备内添加的智能设备的标识;判断所述智能设备的标识是否满足指定条件;如果满足,则在所述电子设备内安装所述智能设备的标识对应的数据交互组件;如果不满足,则获取所述智能设备的标识对应的数据交互组件的安装数据,将所述安装数据发送至所述网关,指示所述网关根据所述安装数据安装所述数据交互组件。
进一步地,安装单元还用于判断所述智能设备的标识的类别是否为指定类别,其中,所述指定类别的智能设备为使用频繁的智能设备;若为指定类别,则判定所述智能设备的标识满足指定条件;若不为指定类别,则判定所述智能设备的标识不满足指定条件。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
请参考图13,其示出了本申请实施例提供的一种网关98的结构框图。网关包括:一个或多个处理器981;存储器982;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述方法。
请参考图14,其示出了本申请实施例提供的一种电子设备的结构框图。该电子设备100可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120、客户端113以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。快应用引擎112和客户端113可参考上述实施例。
处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和 处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。
请参考图15,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质1500中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质1500可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质1500包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质1500具有执行上述方法中的任何方法步骤的程序代码1510的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码1510可以例如以适当形式进行压缩。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (20)

  1. 一种设备操作方法,其特征在于,应用于智能设备系统的网关,所述系统还包括多个设备服务器,所述方法包括:
    获取对应目标智能设备的操作指令;
    获取所述目标智能设备的标识,根据所述目标智能设备的标识,由所述多个设备服务器中,确定所述操作指令对应的目标设备服务器;
    将所述操作指令发送至所述目标设备服务器,指示所述目标设备服务器根据所述操作指令控制所述目标智能设备执行所述操作指令对应的操作。
  2. 根据权利要求1所述的方法,其特征在于,所述将所述操作指令发送至所述目标设备服务器,包括:
    确定所述目标智能设备的标识对应的目标智能设备的数据交互组件;
    通过所述数据交互组件将所述操作指令发送至所述目标设备服务器。
  3. 根据权利要求2所述的方法,其特征在于,所述确定所述目标智能设备的标识对应的目标智能设备的数据交互组件,包括:
    确定所述目标智能设备的标识对应的目标厂商标识;
    基于所述目标厂商标识确定对应的数据交互组件。
  4. 根据权利要求3所述的方法,其特征在于,所述网关内安装有多个数据交互组件,每个数据交互组件对应一个厂商标识,所述基于所述目标厂商标识确定对应的数据交互组件,包括:
    由预先存储在所述网关内的数据交互组件与厂商标识的对应关系,查找所述目标厂商标识对应的数据交互组件。
  5. 根据权利要求4所述的方法,其特征在于,所述智能设备系统还包括电子设备,所述方法还包括:
    若未查找到所述目标厂商标识确定对应的数据交互组件,发送组件获取请求至所述电子设备,所述组件获取请求用于指示所述电子设备获取目标厂商标识对应的数据交互组件的安装数据;
    获取所述电子设备基于所述获取请求返回的所述安装数据;
    根据所述安装数据安装所述目标厂商标识确定对应的数据交互组件。
  6. 根据权利要求4或5所述的方法,其特征在于,所述方法还包括:
    获取已安装的每个所述数据交互组件的操作数据;
    根据每个所述数据交互组件的操作数据确定所有数据交互组件中不活跃的数据交互组件;
    将所查找到的不活跃的数据交互组件由所述网关内移除。
  7. 根据权利要求6所述的方法,其特征在于,所述操作数据为启动记录;根据每个所述数据交互组件的操作数据确定所有数据交互组件中不活跃的数据交互组件,包括:
    根据每个所述数据交互组件的启动记录,获取在预设时间段内每个所述数据交互组件的启动次数;
    将所述启动次数小于指定数值的数据交互组件作为不活跃的数据交互组件。
  8. 根据权利要求2-7任一所述的方法,其特征在于,所述数据交互组件为SDK插件。
  9. 根据权利要求1所述的方法,其特征在于,所述将所述操作指令发送至所述目标设备服务器,包括:
    通过所述网关与所述目标设备服务器之间的通信链路将所述操作指令发送至所述 目标设备服务器。
  10. 根据权利要求1所述的方法,其特征在于,所述智能设备系统还包括电子设备,所述目标智能设备的标识,包括:
    获取所述电子设备发送的操作指令,所述操作指令包括目标智能设备的标识。
  11. 一种设备操作方法,其特征在于,应用于智能设备系统的电子设备,所述系统还包括网关和多个设备服务器,所述方法包括:
    获取用户输入的操作指令,所述操作指令包括目标智能设备的标识;
    发送所述操作指令至所述网关,指示所述网关根据所述目标智能设备的标识,由所述多个设备服务器中,确定所述操作指令对应的目标设备服务器,将所述操作指令发送至所述目标设备服务器,所述操作指令用于指示所述目标设备服务器根据所述操作指令控制所述目标智能设备执行所述操作指令对应的操作。
  12. 根据权利要求11所述的方法,其特征在于,所述发送所述操作指令至所述网关,包括:
    判断本地是否安装有所述目标智能设备的标识对应的目标数据交互组件;
    如果有,则通过所述目标数据交互组件将所述操作指令发送至所述目标设备服务器;
    如果没有,则发送所述操作指令至所述网关。
  13. 根据权利要求12所述的方法,其特征在于,所述判断本地是否安装有所述目标智能设备的标识对应的目标数据交互组件之前,还包括:
    在所述电子设备内安装满足预设标准的数据交互组件。
  14. 根据权利要求13所述的方法,其特征在于,所述在所述电子设备内安装满足预设标准的数据交互组件,包括:
    获取在所述电子设备内添加的智能设备的标识;
    判断所述智能设备的标识是否满足指定条件;
    如果满足,则在所述电子设备内安装所述智能设备的标识对应的数据交互组件;
    如果不满足,则获取所述智能设备的标识对应的数据交互组件的安装数据,将所述安装数据发送至所述网关,指示所述网关根据所述安装数据安装所述数据交互组件。
  15. 根据权利要求14所述的方法,其特征在于,所述判断所述智能设备的标识是否满足指定条件,包括:
    判断所述智能设备的标识的类别是否为指定类别,其中,所述指定类别的智能设备为使用频繁的智能设备;
    若为指定类别,则判定所述智能设备的标识满足指定条件;
    若不为指定类别,则判定所述智能设备的标识不满足指定条件。
  16. 一种设备操作装置,其特征在于,应用于智能设备系统的网关,所述系统还包括多个设备服务器,所述装置包括:
    获取单元,用于获取对应目标智能设备的操作指令;
    确定单元,用于获取所述目标智能设备的标识,根据所述目标智能设备的标识,由所述多个设备服务器中,确定所述操作指令对应的目标设备服务器;
    发送单元,用于将所述操作指令发送至所述目标设备服务器,指示所述目标设备服务器根据所述操作指令控制所述目标智能设备执行所述操作指令对应的操作。
  17. 一种设备操作装置,其特征在于,应用于智能设备系统的电子设备,所述系统还包括网关和多个设备服务器,所述装置包括:
    获取单元,用于获取用户输入的操作指令,所述操作指令包括目标智能设备的标识;
    发送单元,用于发送所述操作指令至所述网关,指示所述网关根据所述目标智能设备的标识,由所述多个设备服务器中,确定所述操作指令对应的目标设备服务器,将所述操作指令发送至所述目标设备服务器,所述操作指令用于指示所述目标设备服务器根据所述操作指令控制所述目标智能设备执行所述操作指令对应的操作。
  18. 一种网关,其特征在于,应用于智能设备系统,所述系统还包括多个设备服务器,所述网关包括:
    一个或多个处理器;
    存储器;
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-10任一项所述的方法。
  19. 一种电子设备,其特征在于,应用于智能设备系统,所述系统还包括网关和多个设备服务器,所述电子设备包括:
    一个或多个处理器;
    存储器;
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求11-15任一项所述的方法。
  20. 一种计算机可读介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行所述权利要求1-10任一项所述方法。
PCT/CN2019/087313 2019-05-16 2019-05-16 设备操作方法、装置、网关、电子设备及计算机可读介质 WO2020228042A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/087313 WO2020228042A1 (zh) 2019-05-16 2019-05-16 设备操作方法、装置、网关、电子设备及计算机可读介质
CN201980090515.6A CN113348725B (zh) 2019-05-16 2019-05-16 设备操作方法、装置、网关、电子设备及计算机可读介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/087313 WO2020228042A1 (zh) 2019-05-16 2019-05-16 设备操作方法、装置、网关、电子设备及计算机可读介质

Publications (1)

Publication Number Publication Date
WO2020228042A1 true WO2020228042A1 (zh) 2020-11-19

Family

ID=73290031

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/087313 WO2020228042A1 (zh) 2019-05-16 2019-05-16 设备操作方法、装置、网关、电子设备及计算机可读介质

Country Status (2)

Country Link
CN (1) CN113348725B (zh)
WO (1) WO2020228042A1 (zh)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113556255A (zh) * 2021-08-02 2021-10-26 京东数科海益信息科技有限公司 配置智能家居的方法和装置
CN114115074A (zh) * 2021-12-10 2022-03-01 珠海格力电器股份有限公司 设备控制方法及其装置、计算机可读存储介质、处理器
CN114390025A (zh) * 2021-12-09 2022-04-22 湖北省信产通信服务有限公司数字科技分公司 工业互联网标识解析方法、系统、存储介质和电子设备
CN114765632A (zh) * 2021-01-11 2022-07-19 金卡智能集团股份有限公司 指令下发方法、装置、设备、系统、存储介质及程序产品
CN114860117A (zh) * 2022-04-24 2022-08-05 Oppo广东移动通信有限公司 内容输入方法、装置以及电子设备
CN115001889A (zh) * 2022-05-30 2022-09-02 青岛海尔科技有限公司 设备控制方法、电子设备及存储介质
CN115002206A (zh) * 2022-04-29 2022-09-02 青岛海尔科技有限公司 智能设备的控制方法和装置、存储介质及电子装置

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835347A (zh) * 2021-09-15 2021-12-24 深圳Tcl新技术有限公司 设备状态管理方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577534A (zh) * 2014-10-15 2016-05-11 珠海格力电器股份有限公司 家庭智能网关及智能家居系统
CN107508919A (zh) * 2017-09-29 2017-12-22 珠海市领创智能物联网研究院有限公司 一种基于智能手机的家电智能控制方法
CN108337279A (zh) * 2017-01-20 2018-07-27 阿里巴巴集团控股有限公司 一种智能设备的控制方法及装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170257257A1 (en) * 2008-08-11 2017-09-07 Paul DAWES Coordinated control of connected devices in a premise
CN103276937A (zh) * 2013-05-17 2013-09-04 国家电网公司 电杆临时补强装置
CN104125124A (zh) * 2014-07-11 2014-10-29 京信通信系统(中国)有限公司 一种智能家居远程控制方法、装置及系统
CN105991423A (zh) * 2015-02-27 2016-10-05 北京海尔广科数字技术有限公司 网关及通过网关调用设备的方法
CN106034070A (zh) * 2015-03-16 2016-10-19 中兴通讯股份有限公司 智能网关的功能插件管理方法、客户端及系统
CN107766232B (zh) * 2016-08-23 2020-12-25 杭州海康威视数字技术股份有限公司 一种插件管理方法及装置
CN108512747A (zh) * 2017-02-23 2018-09-07 中兴通讯股份有限公司 家庭网关的插件管理方法以及家庭网关、通信系统
CN107124342A (zh) * 2017-06-28 2017-09-01 广东美的制冷设备有限公司 家电设备控制方法、装置、智慧家居系统及可读存储介质

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577534A (zh) * 2014-10-15 2016-05-11 珠海格力电器股份有限公司 家庭智能网关及智能家居系统
CN108337279A (zh) * 2017-01-20 2018-07-27 阿里巴巴集团控股有限公司 一种智能设备的控制方法及装置
CN107508919A (zh) * 2017-09-29 2017-12-22 珠海市领创智能物联网研究院有限公司 一种基于智能手机的家电智能控制方法

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114765632A (zh) * 2021-01-11 2022-07-19 金卡智能集团股份有限公司 指令下发方法、装置、设备、系统、存储介质及程序产品
CN113556255A (zh) * 2021-08-02 2021-10-26 京东数科海益信息科技有限公司 配置智能家居的方法和装置
CN114390025A (zh) * 2021-12-09 2022-04-22 湖北省信产通信服务有限公司数字科技分公司 工业互联网标识解析方法、系统、存储介质和电子设备
CN114390025B (zh) * 2021-12-09 2024-03-01 湖北省信产通信服务有限公司数字科技分公司 工业互联网标识解析方法、系统、存储介质和电子设备
CN114115074A (zh) * 2021-12-10 2022-03-01 珠海格力电器股份有限公司 设备控制方法及其装置、计算机可读存储介质、处理器
CN114860117A (zh) * 2022-04-24 2022-08-05 Oppo广东移动通信有限公司 内容输入方法、装置以及电子设备
CN115002206A (zh) * 2022-04-29 2022-09-02 青岛海尔科技有限公司 智能设备的控制方法和装置、存储介质及电子装置
CN115002206B (zh) * 2022-04-29 2024-01-26 青岛海尔科技有限公司 智能设备的控制方法和装置、存储介质及电子装置
CN115001889A (zh) * 2022-05-30 2022-09-02 青岛海尔科技有限公司 设备控制方法、电子设备及存储介质
CN115001889B (zh) * 2022-05-30 2024-03-22 青岛海尔科技有限公司 设备控制方法、电子设备及存储介质

Also Published As

Publication number Publication date
CN113348725A (zh) 2021-09-03
CN113348725B (zh) 2023-07-14

Similar Documents

Publication Publication Date Title
WO2020228042A1 (zh) 设备操作方法、装置、网关、电子设备及计算机可读介质
WO2020223854A1 (zh) 设备配网方法、装置、电子设备及存储介质
WO2021196592A1 (zh) 一种设备控制方法及装置
US20180115612A1 (en) Universal internet of things (iot) smart translator
WO2020206693A1 (zh) 智能家居调度方法、装置、系统、服务器及存储介质
CN109725541B (zh) 自动化的生成方法、装置、电子设备及存储介质
WO2020168568A1 (zh) 数据处理方法、装置、电子设备及可读存储介质
US11782590B2 (en) Scene-operation method, electronic device, and non-transitory computer readable medium
US20220052866A1 (en) Smart home system control method and apparatus, electronic device
CN109617963B (zh) 设备控制方法、装置以及物联网系统
US20070121527A1 (en) System and method for remote dynamic network configuration
CN113572799B (zh) 设备接入控制平台的方法、装置和服务器
WO2016169231A1 (zh) 一种基于蓝牙组建稳态微微网的方法及其系统
CN112468595B (zh) 基于网关的设备控制方法、装置和系统
CN111965989B (zh) 系统更新方法、装置、智能家居控制面板以及存储介质
WO2020107698A1 (zh) 空气调节设备的控制方法及空气调节设备
CN103841466A (zh) 屏幕投影方法、计算机端和移动终端
CN112596406A (zh) 智能设备的控制方法、装置、控制面板以及存储介质
CN110583100B (zh) 便于控制照明设备的系统和方法以及计算机可读存储介质
AU2013388030A1 (en) Method, apparatus, and system for intelligently controlling device, and plug-and-play device
US11098914B2 (en) System and method for operating a HVAC system by determining occupied state of a structure via IP address
CN109218994B (zh) 基于网关的等价设备蓝牙通信方法和装置
US8775706B2 (en) Main electronic device for communicating within a network and method for operating a main electronic device for communicating within the network
CN110741605A (zh) 用于隔离BACnet/IP建筑物自动化网络中的设备通信的系统和方法
JP4838096B2 (ja) 家電機器通信制御システム

Legal Events

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

Ref document number: 19928924

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19928924

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS (EPO FORM 1205A DATED 26.04.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19928924

Country of ref document: EP

Kind code of ref document: A1